]>
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" | |
2057db16 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_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 | |
970 | --enable-combobox use wxComboBox class | |
971 | --enable-display use wxDisplay class | |
972 | --enable-gauge use wxGauge class | |
973 | --enable-grid use wxGrid class | |
974 | --enable-imaglist use wxImageList class | |
975 | --enable-listbook use wxListbook class | |
976 | --enable-listbox use wxListBox class | |
977 | --enable-listctrl use wxListCtrl class | |
978 | --enable-notebook use wxNotebook class | |
979 | --enable-radiobox use wxRadioBox class | |
980 | --enable-radiobtn use wxRadioButton class | |
981 | --enable-sash use wxSashWindow class | |
982 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
983 | --enable-slider use wxSlider class | |
984 | --enable-spinbtn use wxSpinButton class | |
985 | --enable-spinctrl use wxSpinCtrl class | |
986 | --enable-splitter use wxSplitterWindow class | |
987 | --enable-statbmp use wxStaticBitmap class | |
988 | --enable-statbox use wxStaticBox class | |
989 | --enable-statline use wxStaticLine class | |
990 | --enable-stattext use wxStaticText class | |
991 | --enable-statusbar use wxStatusBar class | |
992 | --enable-tabdialog use wxTabControl class | |
993 | --enable-textctrl use wxTextCtrl class | |
994 | --enable-togglebtn use wxToggleButton class | |
995 | --enable-toolbar use wxToolBar class | |
996 | --enable-tbarnative use native wxToolBar class | |
997 | --enable-tbarsmpl use wxToolBarSimple class | |
998 | --enable-treectrl use wxTreeCtrl class | |
999 | --enable-tipwindow use wxTipWindow class | |
1000 | --enable-popupwin use wxPopUpWindow class | |
1001 | --enable-commondlg use all common dialogs | |
1002 | --enable-choicedlg use wxChoiceDialog | |
1003 | --enable-coldlg use wxColourDialog | |
1004 | --enable-filedlg use wxFileDialog | |
1005 | --enable-finddlg use wxFindReplaceDialog | |
1006 | --enable-fontdlg use wxFontDialog | |
1007 | --enable-dirdlg use wxDirDialog | |
1008 | --enable-msgdlg use wxMessageDialog | |
1009 | --enable-numberdlg use wxNumberEntryDialog | |
1010 | --enable-splash use wxSplashScreen | |
1011 | --enable-textdlg use wxTextDialog | |
1012 | --enable-tipdlg use startup tips | |
1013 | --enable-progressdlg use wxProgressDialog | |
1014 | --enable-wizarddlg use wxWizard | |
1015 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1016 | --enable-miniframe use wxMiniFrame class | |
1017 | --enable-tooltips use wxToolTip class | |
1018 | --enable-splines use spline drawing code | |
1019 | --enable-validators use wxValidator and derived classes | |
1020 | --enable-busyinfo use wxBusyInfo | |
1021 | --enable-joystick use wxJoystick (Linux only) | |
1022 | --enable-metafiles use wxMetaFile (Windows only) | |
1023 | --enable-dragimage use wxDragImage | |
1024 | --enable-accessibility enable accessibility support | |
1025 | --enable-palette use wxPalette class | |
1026 | --enable-image use wxImage class | |
1027 | --enable-gif use gif images (GIF file format) | |
1028 | --enable-pcx use pcx images (PCX file format) | |
1029 | --enable-iff use iff images (IFF file format) | |
1030 | --enable-pnm use pnm images (PNM file format) | |
1031 | --enable-xpm use xpm images (XPM file format) | |
1032 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1033 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1034 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1035 | --disable-largefile omit support for large files | |
1036 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1037 | --disable-gtktest Do not try to compile and run a test GTK program | |
1038 | --disable-sdltest Do not try to compile and run a test SDL program | |
1039 | --enable-omf use OMF object format (OS/2) | |
1040 | --disable-precomp-headers don't use precompiled headers even if compiler can | |
1041 | ||
1042 | Optional Packages: | |
1043 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1044 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1045 | --with-gtk use GTK+ | |
1046 | --with-motif use Motif/Lesstif | |
1047 | --with-mac use Mac OS X | |
1048 | --with-cocoa use Cocoa | |
1049 | --with-wine use Wine | |
1050 | --with-msw use MS-Windows | |
1051 | --with-pm use OS/2 Presentation Manager | |
1052 | --with-mgl use SciTech MGL | |
1053 | --with-microwin use MicroWindows | |
1054 | --with-x11 use X11 | |
1055 | --with-libpng use libpng (PNG image format) | |
1056 | --with-libjpeg use libjpeg (JPEG file format) | |
1057 | --with-libtiff use libtiff (TIFF file format) | |
1058 | --with-libxpm use libxpm (XPM file format) | |
1059 | --with-libmspack use libmspack (CHM help files loading) | |
1060 | --with-sdl use SDL for audio on Unix | |
1061 | --with-opengl use OpenGL (or Mesa) | |
1062 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1063 | --with-regex enable support for wxRegEx class | |
1064 | --with-zlib use zlib for LZW compression | |
1065 | --with-odbc use the IODBC and wxODBC classes | |
1066 | --with-expat enable XML support using expat parser | |
1067 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1068 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1069 | --with-x use the X Window System | |
1070 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1071 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1072 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1073 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1074 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1075 | ||
1076 | Some influential environment variables: | |
dcc1b6ad VS |
1077 | CC C compiler command |
1078 | CFLAGS C compiler flags | |
1079 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1080 | nonstandard directory <lib dir> | |
1081 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1082 | headers in a nonstandard directory <include dir> | |
1083 | CPP C preprocessor | |
1084 | CXX C++ compiler command | |
1085 | CXXFLAGS C++ compiler flags | |
1086 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1087 | |
1088 | Use these variables to override the choices made by `configure' or to help | |
1089 | it to find libraries and programs with nonstandard names/locations. | |
1090 | ||
77ffb593 | 1091 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1092 | _ACEOF |
1093 | fi | |
1094 | ||
1095 | if test "$ac_init_help" = "recursive"; then | |
1096 | # If there are subdirs, report their specific --help. | |
1097 | ac_popdir=`pwd` | |
1098 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1099 | test -d $ac_dir || continue | |
1100 | ac_builddir=. | |
1101 | ||
1102 | if test "$ac_dir" != .; then | |
1103 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1104 | # A "../" for each directory in $ac_dir_suffix. | |
1105 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1106 | else | |
1107 | ac_dir_suffix= ac_top_builddir= | |
1108 | fi | |
1109 | ||
1110 | case $srcdir in | |
1111 | .) # No --srcdir option. We are building in place. | |
1112 | ac_srcdir=. | |
1113 | if test -z "$ac_top_builddir"; then | |
1114 | ac_top_srcdir=. | |
1115 | else | |
1116 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1117 | fi ;; | |
1118 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1119 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1120 | ac_top_srcdir=$srcdir ;; | |
1121 | *) # Relative path. | |
1122 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1123 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1124 | esac | |
ac1cb8d3 VS |
1125 | |
1126 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1127 | # the directories may not exist. | |
1128 | case `pwd` in | |
1129 | .) ac_abs_builddir="$ac_dir";; | |
1130 | *) | |
1131 | case "$ac_dir" in | |
1132 | .) ac_abs_builddir=`pwd`;; | |
1133 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1134 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1135 | esac;; | |
1136 | esac | |
1137 | case $ac_abs_builddir in | |
1138 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1139 | *) | |
1140 | case ${ac_top_builddir}. in | |
1141 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1142 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1143 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1144 | esac;; | |
1145 | esac | |
1146 | case $ac_abs_builddir in | |
1147 | .) ac_abs_srcdir=$ac_srcdir;; | |
1148 | *) | |
1149 | case $ac_srcdir in | |
1150 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1151 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1152 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1153 | esac;; | |
1154 | esac | |
1155 | case $ac_abs_builddir in | |
1156 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1157 | *) | |
1158 | case $ac_top_srcdir in | |
1159 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1160 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1161 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1162 | esac;; | |
1163 | esac | |
a848cd7e SC |
1164 | |
1165 | cd $ac_dir | |
1166 | # Check for guested configure; otherwise get Cygnus style configure. | |
1167 | if test -f $ac_srcdir/configure.gnu; then | |
1168 | echo | |
1169 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1170 | elif test -f $ac_srcdir/configure; then | |
1171 | echo | |
1172 | $SHELL $ac_srcdir/configure --help=recursive | |
1173 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1174 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1175 | echo |
1176 | $ac_configure --help | |
1177 | else | |
1178 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1179 | fi | |
ea7db9ff | 1180 | cd $ac_popdir |
a848cd7e SC |
1181 | done |
1182 | fi | |
1183 | ||
1184 | test -n "$ac_init_help" && exit 0 | |
1185 | if $ac_init_version; then | |
1186 | cat <<\_ACEOF | |
77ffb593 | 1187 | wxWidgets configure 2.5.2 |
ac1cb8d3 | 1188 | generated by GNU Autoconf 2.59 |
a848cd7e | 1189 | |
ac1cb8d3 | 1190 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1191 | This configure script is free software; the Free Software Foundation |
1192 | gives unlimited permission to copy, distribute and modify it. | |
1193 | _ACEOF | |
1194 | exit 0 | |
1195 | fi | |
1196 | exec 5>config.log | |
1197 | cat >&5 <<_ACEOF | |
1198 | This file contains any messages produced by compilers while | |
1199 | running configure, to aid debugging if configure makes a mistake. | |
1200 | ||
77ffb593 | 1201 | It was created by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 1202 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1203 | |
1204 | $ $0 $@ | |
1205 | ||
1206 | _ACEOF | |
1207 | { | |
1208 | cat <<_ASUNAME | |
1209 | ## --------- ## | |
1210 | ## Platform. ## | |
1211 | ## --------- ## | |
1212 | ||
1213 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1214 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1215 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1216 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1217 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1218 | ||
1219 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1220 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1221 | ||
1222 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1223 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1224 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1225 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1226 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1227 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1228 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1229 | ||
1230 | _ASUNAME | |
1231 | ||
1232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1233 | for as_dir in $PATH | |
1234 | do | |
1235 | IFS=$as_save_IFS | |
1236 | test -z "$as_dir" && as_dir=. | |
1237 | echo "PATH: $as_dir" | |
1238 | done | |
1239 | ||
1240 | } >&5 | |
1241 | ||
1242 | cat >&5 <<_ACEOF | |
1243 | ||
1244 | ||
1245 | ## ----------- ## | |
1246 | ## Core tests. ## | |
1247 | ## ----------- ## | |
1248 | ||
1249 | _ACEOF | |
1250 | ||
1251 | ||
1252 | # Keep a trace of the command line. | |
1253 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1254 | # Strip out --silent because we don't want to record it for future runs. | |
1255 | # Also quote any args containing shell meta-characters. | |
1256 | # Make two passes to allow for proper duplicate-argument suppression. | |
1257 | ac_configure_args= | |
1258 | ac_configure_args0= | |
1259 | ac_configure_args1= | |
1260 | ac_sep= | |
1261 | ac_must_keep_next=false | |
1262 | for ac_pass in 1 2 | |
1263 | do | |
1264 | for ac_arg | |
1265 | do | |
1266 | case $ac_arg in | |
1267 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1268 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1269 | | -silent | --silent | --silen | --sile | --sil) | |
1270 | continue ;; | |
1271 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1272 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1273 | esac | |
1274 | case $ac_pass in | |
1275 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1276 | 2) | |
1277 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1278 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1279 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1280 | else |
ac1cb8d3 VS |
1281 | case $ac_arg in |
1282 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1283 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1284 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1285 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1286 | case "$ac_configure_args0 " in | |
1287 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1288 | esac | |
1289 | ;; | |
1290 | -* ) ac_must_keep_next=true ;; | |
1291 | esac | |
a848cd7e SC |
1292 | fi |
1293 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1294 | # Get rid of the leading space. | |
1295 | ac_sep=" " | |
1296 | ;; | |
1297 | esac | |
1298 | done | |
1299 | done | |
1300 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1301 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1302 | ||
1303 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1304 | # config.log. We remove comments because anyway the quotes in there | |
1305 | # would cause problems or look ugly. | |
1306 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1307 | # such as our DU 5.0 friend, will then `close' the trap. | |
1308 | trap 'exit_status=$? | |
1309 | # Save into config.log some information that might help in debugging. | |
1310 | { | |
1311 | echo | |
1312 | ||
1313 | cat <<\_ASBOX | |
1314 | ## ---------------- ## | |
1315 | ## Cache variables. ## | |
1316 | ## ---------------- ## | |
1317 | _ASBOX | |
1318 | echo | |
1319 | # The following way of writing the cache mishandles newlines in values, | |
1320 | { | |
1321 | (set) 2>&1 | | |
1322 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1323 | *ac_space=\ *) | |
1324 | sed -n \ | |
ac1cb8d3 VS |
1325 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1326 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1327 | ;; |
1328 | *) | |
1329 | sed -n \ | |
ac1cb8d3 | 1330 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1331 | ;; |
1332 | esac; | |
1333 | } | |
1334 | echo | |
1335 | ||
1336 | cat <<\_ASBOX | |
1337 | ## ----------------- ## | |
1338 | ## Output variables. ## | |
1339 | ## ----------------- ## | |
1340 | _ASBOX | |
1341 | echo | |
1342 | for ac_var in $ac_subst_vars | |
1343 | do | |
1344 | eval ac_val=$`echo $ac_var` | |
1345 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1346 | done | sort | |
1347 | echo | |
1348 | ||
1349 | if test -n "$ac_subst_files"; then | |
1350 | cat <<\_ASBOX | |
1351 | ## ------------- ## | |
1352 | ## Output files. ## | |
1353 | ## ------------- ## | |
1354 | _ASBOX | |
1355 | echo | |
1356 | for ac_var in $ac_subst_files | |
1357 | do | |
1358 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1359 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1360 | done | sort |
1361 | echo | |
1362 | fi | |
1363 | ||
1364 | if test -s confdefs.h; then | |
1365 | cat <<\_ASBOX | |
1366 | ## ----------- ## | |
1367 | ## confdefs.h. ## | |
1368 | ## ----------- ## | |
1369 | _ASBOX | |
1370 | echo | |
1371 | sed "/^$/d" confdefs.h | sort | |
1372 | echo | |
1373 | fi | |
1374 | test "$ac_signal" != 0 && | |
1375 | echo "$as_me: caught signal $ac_signal" | |
1376 | echo "$as_me: exit $exit_status" | |
1377 | } >&5 | |
ac1cb8d3 | 1378 | rm -f core *.core && |
a848cd7e SC |
1379 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1380 | exit $exit_status | |
1381 | ' 0 | |
1382 | for ac_signal in 1 2 13 15; do | |
1383 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1384 | done | |
1385 | ac_signal=0 | |
1386 | ||
1387 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1388 | rm -rf conftest* confdefs.h | |
1389 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1390 | echo >confdefs.h | |
1391 | ||
1392 | # Predefined preprocessor variables. | |
1393 | ||
1394 | cat >>confdefs.h <<_ACEOF | |
1395 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1396 | _ACEOF | |
1397 | ||
1398 | ||
1399 | cat >>confdefs.h <<_ACEOF | |
1400 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1401 | _ACEOF | |
1402 | ||
1403 | ||
1404 | cat >>confdefs.h <<_ACEOF | |
1405 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1406 | _ACEOF | |
1407 | ||
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | cat >>confdefs.h <<_ACEOF | |
1415 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1416 | _ACEOF | |
1417 | ||
1418 | ||
1419 | # Let the site file select an alternate cache file if it wants to. | |
1420 | # Prefer explicitly selected file to automatically selected ones. | |
1421 | if test -z "$CONFIG_SITE"; then | |
1422 | if test "x$prefix" != xNONE; then | |
1423 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1424 | else | |
1425 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1426 | fi | |
1427 | fi | |
1428 | for ac_site_file in $CONFIG_SITE; do | |
1429 | if test -r "$ac_site_file"; then | |
1430 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1431 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1432 | sed 's/^/| /' "$ac_site_file" >&5 | |
1433 | . "$ac_site_file" | |
1434 | fi | |
1435 | done | |
1436 | ||
1437 | if test -r "$cache_file"; then | |
1438 | # Some versions of bash will fail to source /dev/null (special | |
1439 | # files actually), so we avoid doing that. | |
1440 | if test -f "$cache_file"; then | |
1441 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1442 | echo "$as_me: loading cache $cache_file" >&6;} | |
1443 | case $cache_file in | |
1444 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1445 | *) . ./$cache_file;; | |
1446 | esac | |
1447 | fi | |
1448 | else | |
1449 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1450 | echo "$as_me: creating cache $cache_file" >&6;} | |
1451 | >$cache_file | |
1452 | fi | |
1453 | ||
1454 | # Check that the precious variables saved in the cache have kept the same | |
1455 | # value. | |
1456 | ac_cache_corrupted=false | |
1457 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1458 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1459 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1460 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1461 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1462 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1463 | case $ac_old_set,$ac_new_set in | |
1464 | set,) | |
1465 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1466 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1467 | ac_cache_corrupted=: ;; | |
1468 | ,set) | |
1469 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1470 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1471 | ac_cache_corrupted=: ;; | |
1472 | ,);; | |
1473 | *) | |
1474 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1475 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1476 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1477 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1478 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1479 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1480 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1481 | ac_cache_corrupted=: |
a848cd7e SC |
1482 | fi;; |
1483 | esac | |
1484 | # Pass precious variables to config.status. | |
1485 | if test "$ac_new_set" = set; then | |
1486 | case $ac_new_val in | |
1487 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1488 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1489 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1490 | esac | |
1491 | case " $ac_configure_args " in | |
1492 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1493 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1494 | esac | |
1495 | fi | |
1496 | done | |
1497 | if $ac_cache_corrupted; then | |
1498 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1499 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1500 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1501 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1502 | { (exit 1); exit 1; }; } | |
1503 | fi | |
1504 | ||
1505 | ac_ext=c | |
1506 | ac_cpp='$CPP $CPPFLAGS' | |
1507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ac_aux_dir= | |
1541 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1542 | if test -f $ac_dir/install-sh; then | |
1543 | ac_aux_dir=$ac_dir | |
1544 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1545 | break | |
1546 | elif test -f $ac_dir/install.sh; then | |
1547 | ac_aux_dir=$ac_dir | |
1548 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1549 | break | |
1550 | elif test -f $ac_dir/shtool; then | |
1551 | ac_aux_dir=$ac_dir | |
1552 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1553 | break | |
1554 | fi | |
1555 | done | |
1556 | if test -z "$ac_aux_dir"; then | |
1557 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1558 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1559 | { (exit 1); exit 1; }; } | |
1560 | fi | |
1561 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1562 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1563 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1564 | ||
1565 | # Make sure we can run config.sub. | |
1566 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1567 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1568 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1569 | { (exit 1); exit 1; }; } | |
1570 | ||
1571 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1572 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1573 | if test "${ac_cv_build+set}" = set; then | |
1574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1575 | else | |
1576 | ac_cv_build_alias=$build_alias | |
1577 | test -z "$ac_cv_build_alias" && | |
1578 | ac_cv_build_alias=`$ac_config_guess` | |
1579 | test -z "$ac_cv_build_alias" && | |
1580 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1581 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1584 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1585 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | ||
1588 | fi | |
1589 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1590 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1591 | build=$ac_cv_build | |
1592 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1593 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1594 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1595 | ||
1596 | ||
1597 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1598 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1599 | if test "${ac_cv_host+set}" = set; then | |
1600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1601 | else | |
1602 | ac_cv_host_alias=$host_alias | |
1603 | test -z "$ac_cv_host_alias" && | |
1604 | ac_cv_host_alias=$ac_cv_build_alias | |
1605 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1606 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1607 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1608 | { (exit 1); exit 1; }; } | |
1609 | ||
1610 | fi | |
1611 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1612 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1613 | host=$ac_cv_host | |
1614 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1615 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1616 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1617 | ||
1618 | ||
1619 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1620 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1621 | if test "${ac_cv_target+set}" = set; then | |
1622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1623 | else | |
1624 | ac_cv_target_alias=$target_alias | |
1625 | test "x$ac_cv_target_alias" = "x" && | |
1626 | ac_cv_target_alias=$ac_cv_host_alias | |
1627 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1628 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1629 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1630 | { (exit 1); exit 1; }; } | |
1631 | ||
1632 | fi | |
1633 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1634 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1635 | target=$ac_cv_target | |
1636 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1637 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1638 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1639 | ||
1640 | ||
1641 | # The aliases save the names the user supplied, while $host etc. | |
1642 | # will get canonicalized. | |
1643 | test -n "$target_alias" && | |
1644 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1645 | NONENONEs,x,x, && | |
1646 | program_prefix=${target_alias}- | |
1647 | ||
1648 | ||
1649 | ||
1650 | WX_MAJOR_VERSION_NUMBER=2 | |
1651 | WX_MINOR_VERSION_NUMBER=5 | |
de59c161 | 1652 | WX_RELEASE_NUMBER=2 |
224bf05c | 1653 | WX_SUBRELEASE_NUMBER=3 |
a848cd7e SC |
1654 | |
1655 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1656 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1657 | ||
1658 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1659 | ||
de59c161 | 1660 | WX_CURRENT=2 |
a848cd7e SC |
1661 | WX_REVISION=0 |
1662 | WX_AGE=0 | |
1663 | ||
1664 | ||
1665 | ||
1666 | USE_UNIX=1 | |
1667 | USE_OS2=0 | |
1668 | USE_WIN32=0 | |
1669 | USE_DOS=0 | |
1670 | USE_BEOS=0 | |
1671 | USE_MAC=0 | |
1672 | ||
1673 | USE_AIX= | |
1674 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1675 | USE_GNU= USE_HPUX= | |
1676 | USE_LINUX= | |
1677 | USE_NETBSD= | |
1678 | USE_OPENBSD= | |
1679 | USE_OSF= USE_SGI= | |
1680 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1681 | USE_ULTRIX= | |
1682 | USE_UNIXWARE= | |
1683 | ||
1684 | USE_ALPHA= | |
1685 | ||
1686 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1687 | ||
1688 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1689 | ||
1690 | DEFAULT_wxUSE_COCOA=0 | |
1691 | DEFAULT_wxUSE_GTK=0 | |
1692 | DEFAULT_wxUSE_MAC=0 | |
1693 | DEFAULT_wxUSE_MGL=0 | |
1694 | DEFAULT_wxUSE_MICROWIN=0 | |
1695 | DEFAULT_wxUSE_MOTIF=0 | |
1696 | DEFAULT_wxUSE_MSW=0 | |
1697 | DEFAULT_wxUSE_PM=0 | |
1698 | DEFAULT_wxUSE_X11=0 | |
1699 | ||
1700 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1701 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1702 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1703 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1704 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1705 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1706 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1709 | ||
1710 | PROGRAM_EXT= | |
1711 | SO_SUFFIX=so | |
1712 | SAMPLES_RPATH_FLAG= | |
1713 | SAMPLES_RPATH_POSTLINK= | |
1714 | ||
1715 | case "${host}" in | |
1716 | *-hp-hpux* ) | |
1717 | USE_HPUX=1 | |
1718 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1719 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1720 | SO_SUFFIX=sl | |
1721 | cat >>confdefs.h <<\_ACEOF | |
1722 | #define __HPUX__ 1 | |
1723 | _ACEOF | |
1724 | ||
1725 | ;; | |
1726 | *-*-linux* ) | |
1727 | USE_LINUX=1 | |
1728 | cat >>confdefs.h <<\_ACEOF | |
1729 | #define __LINUX__ 1 | |
1730 | _ACEOF | |
1731 | ||
1732 | TMP=`uname -m` | |
1733 | if test "x$TMP" = "xalpha"; then | |
1734 | USE_ALPHA=1 | |
1735 | cat >>confdefs.h <<\_ACEOF | |
1736 | #define __ALPHA__ 1 | |
1737 | _ACEOF | |
1738 | ||
1739 | fi | |
1740 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1741 | ;; | |
1742 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1743 | USE_GNU=1 | |
1744 | TMP=`uname -m` | |
1745 | if test "x$TMP" = "xalpha"; then | |
1746 | USE_ALPHA=1 | |
1747 | cat >>confdefs.h <<\_ACEOF | |
1748 | #define __ALPHA__ 1 | |
1749 | _ACEOF | |
1750 | ||
1751 | fi | |
1752 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1753 | ;; | |
1754 | *-*-irix5* | *-*-irix6* ) | |
1755 | USE_SGI=1 | |
1756 | USE_SVR4=1 | |
1757 | cat >>confdefs.h <<\_ACEOF | |
1758 | #define __SGI__ 1 | |
1759 | _ACEOF | |
1760 | ||
1761 | cat >>confdefs.h <<\_ACEOF | |
1762 | #define __SVR4__ 1 | |
1763 | _ACEOF | |
1764 | ||
1765 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1766 | ;; | |
1767 | *-*-solaris2* ) | |
1768 | USE_SUN=1 | |
1769 | USE_SOLARIS=1 | |
1770 | USE_SVR4=1 | |
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __SUN__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | cat >>confdefs.h <<\_ACEOF | |
1776 | #define __SOLARIS__ 1 | |
1777 | _ACEOF | |
1778 | ||
1779 | cat >>confdefs.h <<\_ACEOF | |
1780 | #define __SVR4__ 1 | |
1781 | _ACEOF | |
1782 | ||
1783 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1784 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1785 | ;; | |
1786 | *-*-sunos4* ) | |
1787 | USE_SUN=1 | |
1788 | USE_SUNOS=1 | |
1789 | USE_BSD=1 | |
1790 | cat >>confdefs.h <<\_ACEOF | |
1791 | #define __SUN__ 1 | |
1792 | _ACEOF | |
1793 | ||
1794 | cat >>confdefs.h <<\_ACEOF | |
1795 | #define __SUNOS__ 1 | |
1796 | _ACEOF | |
1797 | ||
1798 | cat >>confdefs.h <<\_ACEOF | |
1799 | #define __BSD__ 1 | |
1800 | _ACEOF | |
1801 | ||
1802 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1803 | ;; | |
1804 | *-*-freebsd*) | |
1805 | USE_BSD=1 | |
1806 | USE_FREEBSD=1 | |
1807 | cat >>confdefs.h <<\_ACEOF | |
1808 | #define __FREEBSD__ 1 | |
1809 | _ACEOF | |
1810 | ||
1811 | cat >>confdefs.h <<\_ACEOF | |
1812 | #define __BSD__ 1 | |
1813 | _ACEOF | |
1814 | ||
1815 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1816 | ;; | |
1817 | *-*-openbsd*) | |
1818 | USE_BSD=1 | |
1819 | USE_OPENBSD=1 | |
1820 | cat >>confdefs.h <<\_ACEOF | |
1821 | #define __OPENBSD__ 1 | |
1822 | _ACEOF | |
1823 | ||
1824 | cat >>confdefs.h <<\_ACEOF | |
1825 | #define __BSD__ 1 | |
1826 | _ACEOF | |
1827 | ||
1828 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1829 | ;; | |
1830 | *-*-netbsd*) | |
1831 | USE_BSD=1 | |
1832 | USE_NETBSD=1 | |
1833 | cat >>confdefs.h <<\_ACEOF | |
1834 | #define __NETBSD__ 1 | |
1835 | _ACEOF | |
1836 | ||
1837 | cat >>confdefs.h <<\_ACEOF | |
1838 | #define __BSD__ 1 | |
1839 | _ACEOF | |
1840 | ||
1841 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1842 | ;; | |
1843 | *-*-osf* ) | |
1844 | USE_ALPHA=1 | |
1845 | USE_OSF=1 | |
1846 | cat >>confdefs.h <<\_ACEOF | |
1847 | #define __ALPHA__ 1 | |
1848 | _ACEOF | |
1849 | ||
1850 | cat >>confdefs.h <<\_ACEOF | |
1851 | #define __OSF__ 1 | |
1852 | _ACEOF | |
1853 | ||
1854 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1855 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1856 | ;; | |
1857 | *-*-dgux5* ) | |
1858 | USE_ALPHA=1 | |
1859 | USE_SVR4=1 | |
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __ALPHA__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | cat >>confdefs.h <<\_ACEOF | |
1865 | #define __SVR4__ 1 | |
1866 | _ACEOF | |
1867 | ||
1868 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1869 | ;; | |
1870 | *-*-sysv5* ) | |
1871 | USE_SYSV=1 | |
1872 | USE_SVR4=1 | |
1873 | cat >>confdefs.h <<\_ACEOF | |
1874 | #define __SYSV__ 1 | |
1875 | _ACEOF | |
1876 | ||
1877 | cat >>confdefs.h <<\_ACEOF | |
1878 | #define __SVR4__ 1 | |
1879 | _ACEOF | |
1880 | ||
1881 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1882 | ;; | |
1883 | *-*-aix* ) | |
1884 | USE_AIX=1 | |
1885 | USE_SYSV=1 | |
1886 | USE_SVR4=1 | |
1887 | SO_SUFFIX=a | |
1888 | cat >>confdefs.h <<\_ACEOF | |
1889 | #define __AIX__ 1 | |
1890 | _ACEOF | |
1891 | ||
1892 | cat >>confdefs.h <<\_ACEOF | |
1893 | #define __SYSV__ 1 | |
1894 | _ACEOF | |
1895 | ||
1896 | cat >>confdefs.h <<\_ACEOF | |
1897 | #define __SVR4__ 1 | |
1898 | _ACEOF | |
1899 | ||
1900 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1901 | ;; | |
1902 | ||
1903 | *-*-*UnixWare*) | |
1904 | USE_SYSV=1 | |
1905 | USE_SVR4=1 | |
1906 | USE_UNIXWARE=1 | |
1907 | cat >>confdefs.h <<\_ACEOF | |
1908 | #define __UNIXWARE__ 1 | |
1909 | _ACEOF | |
1910 | ||
1911 | ;; | |
1912 | ||
1913 | *-*-cygwin* | *-*-mingw32* ) | |
1914 | SO_SUFFIX=dll | |
1915 | PROGRAM_EXT=".exe" | |
1916 | RESCOMP=windres | |
1917 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1918 | ;; | |
1919 | ||
1920 | *-pc-msdosdjgpp ) | |
1921 | USE_UNIX=0 | |
1922 | USE_DOS=1 | |
1923 | cat >>confdefs.h <<\_ACEOF | |
1924 | #define __DOS__ 1 | |
1925 | _ACEOF | |
1926 | ||
1927 | PROGRAM_EXT=".exe" | |
1928 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1929 | LIBS="$LIBS -lstdc++" | |
1930 | ;; | |
1931 | ||
1932 | *-pc-os2_emx | *-pc-os2-emx ) | |
1933 | cat >>confdefs.h <<\_ACEOF | |
1934 | #define __EMX__ 1 | |
1935 | _ACEOF | |
1936 | ||
1937 | USE_OS2=1 | |
1938 | cat >>confdefs.h <<\_ACEOF | |
1939 | #define __OS2__ 1 | |
1940 | _ACEOF | |
1941 | ||
1942 | PROGRAM_EXT=".exe" | |
1943 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1944 | CXX=gcc | |
1945 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1946 | ac_executable_extensions=".exe" | |
1947 | export ac_executable_extensions | |
1948 | ac_save_IFS="$IFS" | |
1949 | IFS='\\' | |
1950 | ac_TEMP_PATH= | |
1951 | for ac_dir in $PATH; do | |
1952 | IFS=$ac_save_IFS | |
1953 | if test -z "$ac_TEMP_PATH"; then | |
1954 | ac_TEMP_PATH="$ac_dir" | |
1955 | else | |
1956 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1957 | fi | |
1958 | done | |
1959 | export PATH="$ac_TEMP_PATH" | |
1960 | unset ac_TEMP_PATH | |
1961 | ;; | |
1962 | ||
1963 | powerpc-*-darwin* ) | |
1964 | USE_BSD=1 | |
1965 | USE_DARWIN=1 | |
1966 | SO_SUFFIX=dylib | |
1967 | cat >>confdefs.h <<\_ACEOF | |
1968 | #define __BSD__ 1 | |
1969 | _ACEOF | |
1970 | ||
1971 | cat >>confdefs.h <<\_ACEOF | |
1972 | #define __DARWIN__ 1 | |
1973 | _ACEOF | |
1974 | ||
1975 | cat >>confdefs.h <<\_ACEOF | |
1976 | #define __POWERPC__ 1 | |
1977 | _ACEOF | |
1978 | ||
1979 | cat >>confdefs.h <<\_ACEOF | |
1980 | #define TARGET_CARBON 1 | |
1981 | _ACEOF | |
1982 | ||
1983 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1984 | ;; | |
1985 | ||
1986 | *-*-beos* ) | |
1987 | USE_BEOS=1 | |
1988 | cat >>confdefs.h <<\_ACEOF | |
1989 | #define __BEOS__ 1 | |
1990 | _ACEOF | |
1991 | ||
1992 | ;; | |
1993 | ||
1994 | *) | |
1995 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
1996 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1997 | { (exit 1); exit 1; }; } | |
1998 | esac | |
1999 | ||
2000 | ||
2001 | ||
2002 | ||
2003 | wx_arg_cache_file="configarg.cache" | |
2004 | echo "loading argument cache $wx_arg_cache_file" | |
2005 | rm -f ${wx_arg_cache_file}.tmp | |
2006 | touch ${wx_arg_cache_file}.tmp | |
2007 | touch ${wx_arg_cache_file} | |
2008 | ||
2009 | ||
2010 | DEBUG_CONFIGURE=0 | |
2011 | if test $DEBUG_CONFIGURE = 1; then | |
2012 | DEFAULT_wxUSE_UNIVERSAL=no | |
2013 | DEFAULT_wxUSE_STL=no | |
2014 | ||
2015 | DEFAULT_wxUSE_NANOX=no | |
2016 | ||
2017 | DEFAULT_wxUSE_THREADS=yes | |
2018 | ||
2019 | DEFAULT_wxUSE_SHARED=yes | |
2020 | DEFAULT_wxUSE_OPTIMISE=no | |
2021 | DEFAULT_wxUSE_PROFILE=no | |
2022 | DEFAULT_wxUSE_NO_DEPS=no | |
2023 | DEFAULT_wxUSE_NO_RTTI=no | |
2024 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2025 | DEFAULT_wxUSE_PERMISSIVE=no | |
2026 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2027 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2028 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2029 | DEFAULT_wxUSE_MEM_TRACING=no | |
2030 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2031 | DEFAULT_wxUSE_DMALLOC=no | |
2032 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2033 | ||
2034 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2035 | DEFAULT_wxUSE_LOG=yes | |
2036 | DEFAULT_wxUSE_LOGWINDOW=no | |
2037 | DEFAULT_wxUSE_LOGGUI=no | |
2038 | DEFAULT_wxUSE_LOGDIALOG=no | |
2039 | ||
2040 | DEFAULT_wxUSE_GUI=yes | |
2041 | DEFAULT_wxUSE_CONTROLS=no | |
2042 | ||
2043 | DEFAULT_wxUSE_REGEX=no | |
2044 | DEFAULT_wxUSE_XML=no | |
2045 | DEFAULT_wxUSE_EXPAT=no | |
2046 | DEFAULT_wxUSE_ZLIB=no | |
2047 | DEFAULT_wxUSE_LIBPNG=no | |
2048 | DEFAULT_wxUSE_LIBJPEG=no | |
2049 | DEFAULT_wxUSE_LIBTIFF=no | |
2050 | DEFAULT_wxUSE_LIBXPM=no | |
2051 | DEFAULT_wxUSE_LIBMSPACK=no | |
2052 | DEFAULT_wxUSE_LIBSDL=no | |
2053 | DEFAULT_wxUSE_ODBC=no | |
2054 | DEFAULT_wxUSE_OPENGL=no | |
2055 | ||
2056 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2057 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2058 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2059 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2060 | DEFAULT_wxUSE_DATETIME=no | |
2061 | DEFAULT_wxUSE_TIMER=no | |
2062 | DEFAULT_wxUSE_STOPWATCH=no | |
2063 | DEFAULT_wxUSE_FILE=no | |
2064 | DEFAULT_wxUSE_FFILE=no | |
2065 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2066 | DEFAULT_wxUSE_TEXTFILE=no | |
2067 | DEFAULT_wxUSE_SOUND=no | |
2068 | DEFAULT_wxUSE_INTL=no | |
2069 | DEFAULT_wxUSE_CONFIG=no | |
2070 | DEFAULT_wxUSE_FONTMAP=no | |
2071 | DEFAULT_wxUSE_STREAMS=no | |
2072 | DEFAULT_wxUSE_SOCKETS=no | |
2073 | DEFAULT_wxUSE_OLE=no | |
2074 | DEFAULT_wxUSE_DATAOBJ=no | |
2075 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2076 | DEFAULT_wxUSE_JOYSTICK=no | |
2077 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2078 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2079 | DEFAULT_wxUSE_LONGLONG=no | |
2080 | DEFAULT_wxUSE_GEOMETRY=no | |
2081 | ||
2082 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2083 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2084 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2085 | ||
2086 | DEFAULT_wxUSE_CLIPBOARD=no | |
2087 | DEFAULT_wxUSE_TOOLTIPS=no | |
2088 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2089 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2090 | DEFAULT_wxUSE_SPLINES=no | |
2091 | ||
8a7b1113 | 2092 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2093 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2094 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2095 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2096 | ||
2097 | DEFAULT_wxUSE_RESOURCES=no | |
2098 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2099 | DEFAULT_wxUSE_IPC=no | |
2100 | DEFAULT_wxUSE_HELP=no | |
2101 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2102 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2103 | DEFAULT_wxUSE_TREELAYOUT=no | |
2104 | DEFAULT_wxUSE_METAFILE=no | |
2105 | DEFAULT_wxUSE_MIMETYPE=no | |
2106 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2107 | DEFAULT_wxUSE_PROTOCOL=no | |
2108 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2109 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2110 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2111 | DEFAULT_wxUSE_URL=no | |
2112 | ||
2113 | DEFAULT_wxUSE_COMMONDLGS=no | |
2114 | DEFAULT_wxUSE_CHOICEDLG=no | |
2115 | DEFAULT_wxUSE_COLOURDLG=no | |
2116 | DEFAULT_wxUSE_DIRDLG=no | |
2117 | DEFAULT_wxUSE_FILEDLG=no | |
2118 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2119 | DEFAULT_wxUSE_FONTDLG=no | |
2120 | DEFAULT_wxUSE_MSGDLG=no | |
2121 | DEFAULT_wxUSE_NUMBERDLG=no | |
2122 | DEFAULT_wxUSE_TEXTDLG=no | |
2123 | DEFAULT_wxUSE_SPLASH=no | |
2124 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2125 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2126 | DEFAULT_wxUSE_WIZARDDLG=no | |
2127 | ||
2128 | DEFAULT_wxUSE_MENUS=no | |
2129 | DEFAULT_wxUSE_MINIFRAME=no | |
2130 | DEFAULT_wxUSE_HTML=no | |
646b6ec1 | 2131 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2132 | DEFAULT_wxUSE_FILESYSTEM=no |
2133 | DEFAULT_wxUSE_FS_INET=no | |
2134 | DEFAULT_wxUSE_FS_ZIP=no | |
2135 | DEFAULT_wxUSE_BUSYINFO=no | |
2136 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2137 | DEFAULT_wxUSE_VALIDATORS=no |
2138 | ||
2139 | DEFAULT_wxUSE_ACCEL=no | |
2140 | DEFAULT_wxUSE_BUTTON=no | |
2141 | DEFAULT_wxUSE_BMPBUTTON=no | |
2142 | DEFAULT_wxUSE_CALCTRL=no | |
2143 | DEFAULT_wxUSE_CARET=no | |
2144 | DEFAULT_wxUSE_CHECKBOX=no | |
2145 | DEFAULT_wxUSE_CHECKLST=no | |
2146 | DEFAULT_wxUSE_CHOICE=no | |
2147 | DEFAULT_wxUSE_COMBOBOX=no | |
2148 | DEFAULT_wxUSE_DISPLAY=no | |
2149 | DEFAULT_wxUSE_GAUGE=no | |
2150 | DEFAULT_wxUSE_GRID=no | |
2151 | DEFAULT_wxUSE_IMAGLIST=no | |
2152 | DEFAULT_wxUSE_LISTBOOK=no | |
2153 | DEFAULT_wxUSE_LISTBOX=no | |
2154 | DEFAULT_wxUSE_LISTCTRL=no | |
2155 | DEFAULT_wxUSE_NOTEBOOK=no | |
2156 | DEFAULT_wxUSE_RADIOBOX=no | |
2157 | DEFAULT_wxUSE_RADIOBTN=no | |
2158 | DEFAULT_wxUSE_SASH=no | |
2159 | DEFAULT_wxUSE_SCROLLBAR=no | |
2160 | DEFAULT_wxUSE_SLIDER=no | |
2161 | DEFAULT_wxUSE_SPINBTN=no | |
2162 | DEFAULT_wxUSE_SPINCTRL=no | |
2163 | DEFAULT_wxUSE_SPLITTER=no | |
2164 | DEFAULT_wxUSE_STATBMP=no | |
2165 | DEFAULT_wxUSE_STATBOX=no | |
2166 | DEFAULT_wxUSE_STATLINE=no | |
2167 | DEFAULT_wxUSE_STATTEXT=no | |
2168 | DEFAULT_wxUSE_STATUSBAR=yes | |
2169 | DEFAULT_wxUSE_TABDIALOG=no | |
2170 | DEFAULT_wxUSE_TEXTCTRL=no | |
2171 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2172 | DEFAULT_wxUSE_TOOLBAR=no | |
2173 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2174 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2175 | DEFAULT_wxUSE_TREECTRL=no | |
2176 | DEFAULT_wxUSE_POPUPWIN=no | |
2177 | DEFAULT_wxUSE_TIPWINDOW=no | |
2178 | ||
2179 | DEFAULT_wxUSE_UNICODE=no | |
2180 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2181 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2182 | ||
2183 | DEFAULT_wxUSE_PALETTE=no | |
2184 | DEFAULT_wxUSE_IMAGE=no | |
2185 | DEFAULT_wxUSE_GIF=no | |
2186 | DEFAULT_wxUSE_PCX=no | |
2187 | DEFAULT_wxUSE_PNM=no | |
2188 | DEFAULT_wxUSE_IFF=no | |
2189 | DEFAULT_wxUSE_XPM=no | |
2190 | DEFAULT_wxUSE_ICO_CUR=no | |
2191 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2192 | ||
2193 | DEFAULT_wxUSE_MONOLITHIC=no | |
2194 | DEFAULT_wxUSE_PLUGINS=no | |
2195 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2196 | else | |
2197 | DEFAULT_wxUSE_UNIVERSAL=no | |
2198 | DEFAULT_wxUSE_STL=no | |
2199 | ||
2200 | DEFAULT_wxUSE_NANOX=no | |
2201 | ||
2202 | DEFAULT_wxUSE_THREADS=yes | |
2203 | ||
2204 | DEFAULT_wxUSE_SHARED=yes | |
2205 | DEFAULT_wxUSE_OPTIMISE=yes | |
2206 | DEFAULT_wxUSE_PROFILE=no | |
2207 | DEFAULT_wxUSE_NO_DEPS=no | |
2208 | DEFAULT_wxUSE_NO_RTTI=no | |
2209 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2210 | DEFAULT_wxUSE_PERMISSIVE=no | |
2211 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2212 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2213 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2214 | DEFAULT_wxUSE_MEM_TRACING=no | |
2215 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2216 | DEFAULT_wxUSE_DMALLOC=no | |
2217 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2218 | ||
2219 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2220 | DEFAULT_wxUSE_LOG=yes | |
2221 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2222 | DEFAULT_wxUSE_LOGGUI=yes | |
2223 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2224 | ||
2225 | DEFAULT_wxUSE_GUI=yes | |
2226 | ||
2227 | DEFAULT_wxUSE_REGEX=yes | |
2228 | DEFAULT_wxUSE_XML=yes | |
2229 | DEFAULT_wxUSE_EXPAT=yes | |
2230 | DEFAULT_wxUSE_ZLIB=yes | |
2231 | DEFAULT_wxUSE_LIBPNG=yes | |
2232 | DEFAULT_wxUSE_LIBJPEG=yes | |
2233 | DEFAULT_wxUSE_LIBTIFF=yes | |
2234 | DEFAULT_wxUSE_LIBXPM=yes | |
2235 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2236 | DEFAULT_wxUSE_LIBSDL=no | |
2237 | DEFAULT_wxUSE_ODBC=no | |
2238 | DEFAULT_wxUSE_OPENGL=no | |
2239 | ||
2240 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2241 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2242 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2243 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2244 | DEFAULT_wxUSE_DATETIME=yes | |
2245 | DEFAULT_wxUSE_TIMER=yes | |
2246 | DEFAULT_wxUSE_STOPWATCH=yes | |
2247 | DEFAULT_wxUSE_FILE=yes | |
2248 | DEFAULT_wxUSE_FFILE=yes | |
2249 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2250 | DEFAULT_wxUSE_TEXTFILE=yes | |
2251 | DEFAULT_wxUSE_SOUND=yes | |
2252 | DEFAULT_wxUSE_INTL=yes | |
2253 | DEFAULT_wxUSE_CONFIG=yes | |
2254 | DEFAULT_wxUSE_FONTMAP=yes | |
2255 | DEFAULT_wxUSE_STREAMS=yes | |
2256 | DEFAULT_wxUSE_SOCKETS=yes | |
2257 | DEFAULT_wxUSE_OLE=yes | |
2258 | DEFAULT_wxUSE_DATAOBJ=yes | |
2259 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2260 | DEFAULT_wxUSE_JOYSTICK=yes | |
2261 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2262 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2263 | DEFAULT_wxUSE_LONGLONG=yes | |
2264 | DEFAULT_wxUSE_GEOMETRY=yes | |
2265 | ||
2266 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2267 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2268 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2269 | ||
2270 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2271 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2272 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2273 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2274 | DEFAULT_wxUSE_SPLINES=yes | |
2275 | ||
8a7b1113 | 2276 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2277 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2278 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2279 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2280 | ||
2281 | DEFAULT_wxUSE_RESOURCES=no | |
2282 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2283 | DEFAULT_wxUSE_IPC=yes | |
2284 | DEFAULT_wxUSE_HELP=yes | |
2285 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2286 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2287 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2288 | DEFAULT_wxUSE_METAFILE=yes | |
2289 | DEFAULT_wxUSE_MIMETYPE=yes | |
2290 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2291 | DEFAULT_wxUSE_PROTOCOL=yes | |
2292 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2293 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2294 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2295 | DEFAULT_wxUSE_URL=yes | |
2296 | ||
2297 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2298 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2299 | DEFAULT_wxUSE_COLOURDLG=yes | |
2300 | DEFAULT_wxUSE_DIRDLG=yes | |
2301 | DEFAULT_wxUSE_FILEDLG=yes | |
2302 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2303 | DEFAULT_wxUSE_FONTDLG=yes | |
2304 | DEFAULT_wxUSE_MSGDLG=yes | |
2305 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2306 | DEFAULT_wxUSE_TEXTDLG=yes | |
2307 | DEFAULT_wxUSE_SPLASH=yes | |
2308 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2309 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2310 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2311 | ||
2312 | DEFAULT_wxUSE_MENUS=yes | |
2313 | DEFAULT_wxUSE_MINIFRAME=yes | |
2314 | DEFAULT_wxUSE_HTML=yes | |
646b6ec1 | 2315 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2316 | DEFAULT_wxUSE_FILESYSTEM=yes |
2317 | DEFAULT_wxUSE_FS_INET=yes | |
2318 | DEFAULT_wxUSE_FS_ZIP=yes | |
2319 | DEFAULT_wxUSE_BUSYINFO=yes | |
2320 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2321 | DEFAULT_wxUSE_VALIDATORS=yes |
2322 | ||
2323 | DEFAULT_wxUSE_ACCEL=yes | |
2324 | DEFAULT_wxUSE_BUTTON=yes | |
2325 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2326 | DEFAULT_wxUSE_CALCTRL=yes | |
2327 | DEFAULT_wxUSE_CARET=yes | |
2328 | DEFAULT_wxUSE_CHECKBOX=yes | |
2329 | DEFAULT_wxUSE_CHECKLST=yes | |
2330 | DEFAULT_wxUSE_CHOICE=yes | |
2331 | DEFAULT_wxUSE_COMBOBOX=yes | |
2332 | DEFAULT_wxUSE_DISPLAY=yes | |
2333 | DEFAULT_wxUSE_GAUGE=yes | |
2334 | DEFAULT_wxUSE_GRID=yes | |
2335 | DEFAULT_wxUSE_IMAGLIST=yes | |
2336 | DEFAULT_wxUSE_LISTBOOK=yes | |
2337 | DEFAULT_wxUSE_LISTBOX=yes | |
2338 | DEFAULT_wxUSE_LISTCTRL=yes | |
2339 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2340 | DEFAULT_wxUSE_RADIOBOX=yes | |
2341 | DEFAULT_wxUSE_RADIOBTN=yes | |
2342 | DEFAULT_wxUSE_SASH=yes | |
2343 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2344 | DEFAULT_wxUSE_SLIDER=yes | |
2345 | DEFAULT_wxUSE_SPINBTN=yes | |
2346 | DEFAULT_wxUSE_SPINCTRL=yes | |
2347 | DEFAULT_wxUSE_SPLITTER=yes | |
2348 | DEFAULT_wxUSE_STATBMP=yes | |
2349 | DEFAULT_wxUSE_STATBOX=yes | |
2350 | DEFAULT_wxUSE_STATLINE=yes | |
2351 | DEFAULT_wxUSE_STATTEXT=yes | |
2352 | DEFAULT_wxUSE_STATUSBAR=yes | |
2353 | DEFAULT_wxUSE_TABDIALOG=no | |
2354 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2355 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2356 | DEFAULT_wxUSE_TOOLBAR=yes | |
2357 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2358 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2359 | DEFAULT_wxUSE_TREECTRL=yes | |
2360 | DEFAULT_wxUSE_POPUPWIN=yes | |
2361 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2362 | ||
2363 | DEFAULT_wxUSE_UNICODE=no | |
2364 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2365 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2366 | ||
2367 | DEFAULT_wxUSE_PALETTE=yes | |
2368 | DEFAULT_wxUSE_IMAGE=yes | |
2369 | DEFAULT_wxUSE_GIF=yes | |
2370 | DEFAULT_wxUSE_PCX=yes | |
2371 | DEFAULT_wxUSE_IFF=no | |
2372 | DEFAULT_wxUSE_PNM=yes | |
2373 | DEFAULT_wxUSE_XPM=yes | |
2374 | DEFAULT_wxUSE_ICO_CUR=yes | |
2375 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2376 | ||
2377 | DEFAULT_wxUSE_MONOLITHIC=no | |
2378 | DEFAULT_wxUSE_PLUGINS=no | |
2379 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2380 | |
2381 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2382 | fi |
2383 | ||
2384 | ||
2385 | ||
2386 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2387 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2388 | if test "x$LINE" != "x" ; then | |
2389 | has_toolkit_in_cache=1 | |
2390 | eval "DEFAULT_$LINE" | |
2391 | eval "CACHE_$toolkit=1" | |
2392 | fi | |
2393 | done | |
2394 | ||
2395 | ||
2396 | ||
2397 | enablestring= | |
2398 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2399 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2400 | no_cache=0 | |
2401 | # Check whether --enable-gui or --disable-gui was given. | |
2402 | if test "${enable_gui+set}" = set; then | |
2403 | enableval="$enable_gui" | |
2404 | ||
2405 | if test "$enableval" = yes; then | |
2406 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2407 | else | |
2408 | ac_cv_use_gui='wxUSE_GUI=no' | |
2409 | fi | |
2410 | ||
2411 | else | |
2412 | ||
2413 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2414 | if test "x$LINE" != x ; then | |
2415 | eval "DEFAULT_$LINE" | |
2416 | else | |
2417 | no_cache=1 | |
2418 | fi | |
2419 | ||
2420 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2421 | ||
2422 | fi; | |
2423 | ||
2424 | eval "$ac_cv_use_gui" | |
2425 | if test "$no_cache" != 1; then | |
2426 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2427 | fi | |
2428 | ||
2429 | if test "$wxUSE_GUI" = yes; then | |
2430 | echo "$as_me:$LINENO: result: yes" >&5 | |
2431 | echo "${ECHO_T}yes" >&6 | |
2432 | else | |
2433 | echo "$as_me:$LINENO: result: no" >&5 | |
2434 | echo "${ECHO_T}no" >&6 | |
2435 | fi | |
2436 | ||
2437 | ||
2438 | enablestring= | |
2439 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2440 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2441 | no_cache=0 | |
2442 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2443 | if test "${enable_monolithic+set}" = set; then | |
2444 | enableval="$enable_monolithic" | |
2445 | ||
2446 | if test "$enableval" = yes; then | |
2447 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2448 | else | |
2449 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2450 | fi | |
2451 | ||
2452 | else | |
2453 | ||
2454 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2455 | if test "x$LINE" != x ; then | |
2456 | eval "DEFAULT_$LINE" | |
2457 | else | |
2458 | no_cache=1 | |
2459 | fi | |
2460 | ||
2461 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2462 | ||
2463 | fi; | |
2464 | ||
2465 | eval "$ac_cv_use_monolithic" | |
2466 | if test "$no_cache" != 1; then | |
2467 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2468 | fi | |
2469 | ||
2470 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2471 | echo "$as_me:$LINENO: result: yes" >&5 | |
2472 | echo "${ECHO_T}yes" >&6 | |
2473 | else | |
2474 | echo "$as_me:$LINENO: result: no" >&5 | |
2475 | echo "${ECHO_T}no" >&6 | |
2476 | fi | |
2477 | ||
2478 | ||
2479 | enablestring= | |
2480 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2481 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2482 | no_cache=0 | |
2483 | # Check whether --enable-plugins or --disable-plugins was given. | |
2484 | if test "${enable_plugins+set}" = set; then | |
2485 | enableval="$enable_plugins" | |
2486 | ||
2487 | if test "$enableval" = yes; then | |
2488 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2489 | else | |
2490 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2491 | fi | |
2492 | ||
2493 | else | |
2494 | ||
2495 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2496 | if test "x$LINE" != x ; then | |
2497 | eval "DEFAULT_$LINE" | |
2498 | else | |
2499 | no_cache=1 | |
2500 | fi | |
2501 | ||
2502 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2503 | ||
2504 | fi; | |
2505 | ||
2506 | eval "$ac_cv_use_plugins" | |
2507 | if test "$no_cache" != 1; then | |
2508 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2509 | fi | |
2510 | ||
2511 | if test "$wxUSE_PLUGINS" = yes; then | |
2512 | echo "$as_me:$LINENO: result: yes" >&5 | |
2513 | echo "${ECHO_T}yes" >&6 | |
2514 | else | |
2515 | echo "$as_me:$LINENO: result: no" >&5 | |
2516 | echo "${ECHO_T}no" >&6 | |
2517 | fi | |
2518 | ||
2519 | ||
2520 | if test "$wxUSE_GUI" = "yes"; then | |
2521 | ||
2522 | ||
2523 | enablestring= | |
2524 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2525 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2526 | no_cache=0 | |
2527 | # Check whether --enable-universal or --disable-universal was given. | |
2528 | if test "${enable_universal+set}" = set; then | |
2529 | enableval="$enable_universal" | |
2530 | ||
2531 | if test "$enableval" = yes; then | |
2532 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2533 | else | |
2534 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2535 | fi | |
2536 | ||
2537 | else | |
2538 | ||
2539 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2540 | if test "x$LINE" != x ; then | |
2541 | eval "DEFAULT_$LINE" | |
2542 | else | |
2543 | no_cache=1 | |
2544 | fi | |
2545 | ||
2546 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2547 | ||
2548 | fi; | |
2549 | ||
2550 | eval "$ac_cv_use_universal" | |
2551 | if test "$no_cache" != 1; then | |
2552 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2553 | fi | |
2554 | ||
2555 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2556 | echo "$as_me:$LINENO: result: yes" >&5 | |
2557 | echo "${ECHO_T}yes" >&6 | |
2558 | else | |
2559 | echo "$as_me:$LINENO: result: no" >&5 | |
2560 | echo "${ECHO_T}no" >&6 | |
2561 | fi | |
2562 | ||
2563 | ||
2564 | # Check whether --with-gtk or --without-gtk was given. | |
2565 | if test "${with_gtk+set}" = set; then | |
2566 | withval="$with_gtk" | |
2567 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2568 | fi; | |
2569 | ||
2570 | # Check whether --with-motif or --without-motif was given. | |
2571 | if test "${with_motif+set}" = set; then | |
2572 | withval="$with_motif" | |
2573 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2574 | fi; | |
2575 | ||
2576 | # Check whether --with-mac or --without-mac was given. | |
2577 | if test "${with_mac+set}" = set; then | |
2578 | withval="$with_mac" | |
2579 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
2580 | fi; | |
2581 | ||
2582 | # Check whether --with-cocoa or --without-cocoa was given. | |
2583 | if test "${with_cocoa+set}" = set; then | |
2584 | withval="$with_cocoa" | |
2585 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
2586 | fi; | |
2587 | ||
2588 | # Check whether --with-wine or --without-wine was given. | |
2589 | if test "${with_wine+set}" = set; then | |
2590 | withval="$with_wine" | |
2591 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2592 | fi; | |
2593 | ||
2594 | # Check whether --with-msw or --without-msw was given. | |
2595 | if test "${with_msw+set}" = set; then | |
2596 | withval="$with_msw" | |
2597 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2598 | fi; | |
2599 | ||
2600 | # Check whether --with-pm or --without-pm was given. | |
2601 | if test "${with_pm+set}" = set; then | |
2602 | withval="$with_pm" | |
2603 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2604 | fi; | |
2605 | ||
2606 | # Check whether --with-mgl or --without-mgl was given. | |
2607 | if test "${with_mgl+set}" = set; then | |
2608 | withval="$with_mgl" | |
2609 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2610 | fi; | |
2611 | ||
2612 | # Check whether --with-microwin or --without-microwin was given. | |
2613 | if test "${with_microwin+set}" = set; then | |
2614 | withval="$with_microwin" | |
2615 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2616 | fi; | |
2617 | ||
2618 | # Check whether --with-x11 or --without-x11 was given. | |
2619 | if test "${with_x11+set}" = set; then | |
2620 | withval="$with_x11" | |
2621 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2622 | fi; | |
2623 | ||
2624 | enablestring= | |
2625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2626 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2627 | no_cache=0 | |
2628 | # Check whether --enable-nanox or --disable-nanox was given. | |
2629 | if test "${enable_nanox+set}" = set; then | |
2630 | enableval="$enable_nanox" | |
2631 | ||
2632 | if test "$enableval" = yes; then | |
2633 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2634 | else | |
2635 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2636 | fi | |
2637 | ||
2638 | else | |
2639 | ||
2640 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2641 | if test "x$LINE" != x ; then | |
2642 | eval "DEFAULT_$LINE" | |
2643 | else | |
2644 | no_cache=1 | |
2645 | fi | |
2646 | ||
2647 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2648 | ||
2649 | fi; | |
2650 | ||
2651 | eval "$ac_cv_use_nanox" | |
2652 | if test "$no_cache" != 1; then | |
2653 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2654 | fi | |
2655 | ||
2656 | if test "$wxUSE_NANOX" = yes; then | |
2657 | echo "$as_me:$LINENO: result: yes" >&5 | |
2658 | echo "${ECHO_T}yes" >&6 | |
2659 | else | |
2660 | echo "$as_me:$LINENO: result: no" >&5 | |
2661 | echo "${ECHO_T}no" >&6 | |
2662 | fi | |
2663 | ||
2664 | ||
2665 | ||
2666 | enablestring= | |
2667 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2668 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2669 | no_cache=0 | |
2670 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2671 | if test "${enable_gtk2+set}" = set; then | |
2672 | enableval="$enable_gtk2" | |
2673 | ||
2674 | if test "$enableval" = yes; then | |
2675 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2676 | else | |
2677 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2678 | fi | |
2679 | ||
2680 | else | |
2681 | ||
2682 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2683 | if test "x$LINE" != x ; then | |
2684 | eval "DEFAULT_$LINE" | |
2685 | else | |
2686 | no_cache=1 | |
2687 | fi | |
2688 | ||
2689 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2690 | ||
2691 | fi; | |
2692 | ||
2693 | eval "$ac_cv_use_gtk2" | |
2694 | if test "$no_cache" != 1; then | |
2695 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2696 | fi | |
2697 | ||
2698 | if test "$wxUSE_GTK2" = yes; then | |
2699 | echo "$as_me:$LINENO: result: yes" >&5 | |
2700 | echo "${ECHO_T}yes" >&6 | |
2701 | else | |
2702 | echo "$as_me:$LINENO: result: no" >&5 | |
2703 | echo "${ECHO_T}no" >&6 | |
2704 | fi | |
2705 | ||
2706 | ||
2707 | enablestring= | |
2708 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2709 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2710 | no_cache=0 | |
2711 | # Check whether --enable-gpe or --disable-gpe was given. | |
2712 | if test "${enable_gpe+set}" = set; then | |
2713 | enableval="$enable_gpe" | |
2714 | ||
2715 | if test "$enableval" = yes; then | |
2716 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2717 | else | |
2718 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2719 | fi | |
2720 | ||
2721 | else | |
2722 | ||
2723 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2724 | if test "x$LINE" != x ; then | |
2725 | eval "DEFAULT_$LINE" | |
2726 | else | |
2727 | no_cache=1 | |
2728 | fi | |
2729 | ||
2730 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2731 | ||
2732 | fi; | |
2733 | ||
2734 | eval "$ac_cv_use_gpe" | |
2735 | if test "$no_cache" != 1; then | |
2736 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2737 | fi | |
2738 | ||
2739 | if test "$wxUSE_GPE" = yes; then | |
2740 | echo "$as_me:$LINENO: result: yes" >&5 | |
2741 | echo "${ECHO_T}yes" >&6 | |
2742 | else | |
2743 | echo "$as_me:$LINENO: result: no" >&5 | |
2744 | echo "${ECHO_T}no" >&6 | |
2745 | fi | |
2746 | ||
2747 | ||
2748 | ||
2749 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2750 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2751 | no_cache=0 | |
2752 | ||
2753 | # Check whether --with-libpng or --without-libpng was given. | |
2754 | if test "${with_libpng+set}" = set; then | |
2755 | withval="$with_libpng" | |
2756 | ||
2757 | if test "$withval" = yes; then | |
2758 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2759 | elif test "$withval" = no; then | |
2760 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2761 | elif test "$withval" = sys; then | |
2762 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2763 | elif test "$withval" = builtin; then | |
2764 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2765 | else | |
2766 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2767 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2768 | { (exit 1); exit 1; }; } | |
2769 | fi | |
2770 | ||
2771 | else | |
2772 | ||
2773 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2774 | if test "x$LINE" != x ; then | |
2775 | eval "DEFAULT_$LINE" | |
2776 | else | |
2777 | no_cache=1 | |
2778 | fi | |
2779 | ||
2780 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2781 | ||
2782 | fi; | |
2783 | ||
2784 | eval "$ac_cv_use_libpng" | |
2785 | if test "$no_cache" != 1; then | |
2786 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2787 | fi | |
2788 | ||
2789 | if test "$wxUSE_LIBPNG" = yes; then | |
2790 | echo "$as_me:$LINENO: result: yes" >&5 | |
2791 | echo "${ECHO_T}yes" >&6 | |
2792 | elif test "$wxUSE_LIBPNG" = no; then | |
2793 | echo "$as_me:$LINENO: result: no" >&5 | |
2794 | echo "${ECHO_T}no" >&6 | |
2795 | elif test "$wxUSE_LIBPNG" = sys; then | |
2796 | echo "$as_me:$LINENO: result: system version" >&5 | |
2797 | echo "${ECHO_T}system version" >&6 | |
2798 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2799 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2800 | echo "${ECHO_T}builtin version" >&6 | |
2801 | else | |
2802 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2803 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2804 | { (exit 1); exit 1; }; } | |
2805 | fi | |
2806 | ||
2807 | ||
2808 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2809 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2810 | no_cache=0 | |
2811 | ||
2812 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2813 | if test "${with_libjpeg+set}" = set; then | |
2814 | withval="$with_libjpeg" | |
2815 | ||
2816 | if test "$withval" = yes; then | |
2817 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2818 | elif test "$withval" = no; then | |
2819 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2820 | elif test "$withval" = sys; then | |
2821 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2822 | elif test "$withval" = builtin; then | |
2823 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2824 | else | |
2825 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2826 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2827 | { (exit 1); exit 1; }; } | |
2828 | fi | |
2829 | ||
2830 | else | |
2831 | ||
2832 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2833 | if test "x$LINE" != x ; then | |
2834 | eval "DEFAULT_$LINE" | |
2835 | else | |
2836 | no_cache=1 | |
2837 | fi | |
2838 | ||
2839 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2840 | ||
2841 | fi; | |
2842 | ||
2843 | eval "$ac_cv_use_libjpeg" | |
2844 | if test "$no_cache" != 1; then | |
2845 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2846 | fi | |
2847 | ||
2848 | if test "$wxUSE_LIBJPEG" = yes; then | |
2849 | echo "$as_me:$LINENO: result: yes" >&5 | |
2850 | echo "${ECHO_T}yes" >&6 | |
2851 | elif test "$wxUSE_LIBJPEG" = no; then | |
2852 | echo "$as_me:$LINENO: result: no" >&5 | |
2853 | echo "${ECHO_T}no" >&6 | |
2854 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2855 | echo "$as_me:$LINENO: result: system version" >&5 | |
2856 | echo "${ECHO_T}system version" >&6 | |
2857 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2858 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2859 | echo "${ECHO_T}builtin version" >&6 | |
2860 | else | |
2861 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2862 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2863 | { (exit 1); exit 1; }; } | |
2864 | fi | |
2865 | ||
2866 | ||
2867 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2868 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2869 | no_cache=0 | |
2870 | ||
2871 | # Check whether --with-libtiff or --without-libtiff was given. | |
2872 | if test "${with_libtiff+set}" = set; then | |
2873 | withval="$with_libtiff" | |
2874 | ||
2875 | if test "$withval" = yes; then | |
2876 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2877 | elif test "$withval" = no; then | |
2878 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2879 | elif test "$withval" = sys; then | |
2880 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2881 | elif test "$withval" = builtin; then | |
2882 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2883 | else | |
2884 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2885 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2886 | { (exit 1); exit 1; }; } | |
2887 | fi | |
2888 | ||
2889 | else | |
2890 | ||
2891 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2892 | if test "x$LINE" != x ; then | |
2893 | eval "DEFAULT_$LINE" | |
2894 | else | |
2895 | no_cache=1 | |
2896 | fi | |
2897 | ||
2898 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2899 | ||
2900 | fi; | |
2901 | ||
2902 | eval "$ac_cv_use_libtiff" | |
2903 | if test "$no_cache" != 1; then | |
2904 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2905 | fi | |
2906 | ||
2907 | if test "$wxUSE_LIBTIFF" = yes; then | |
2908 | echo "$as_me:$LINENO: result: yes" >&5 | |
2909 | echo "${ECHO_T}yes" >&6 | |
2910 | elif test "$wxUSE_LIBTIFF" = no; then | |
2911 | echo "$as_me:$LINENO: result: no" >&5 | |
2912 | echo "${ECHO_T}no" >&6 | |
2913 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2914 | echo "$as_me:$LINENO: result: system version" >&5 | |
2915 | echo "${ECHO_T}system version" >&6 | |
2916 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2917 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2918 | echo "${ECHO_T}builtin version" >&6 | |
2919 | else | |
2920 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2921 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2922 | { (exit 1); exit 1; }; } | |
2923 | fi | |
2924 | ||
2925 | ||
2926 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2927 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2928 | no_cache=0 | |
2929 | ||
2930 | # Check whether --with-libxpm or --without-libxpm was given. | |
2931 | if test "${with_libxpm+set}" = set; then | |
2932 | withval="$with_libxpm" | |
2933 | ||
2934 | if test "$withval" = yes; then | |
2935 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2936 | elif test "$withval" = no; then | |
2937 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2938 | elif test "$withval" = sys; then | |
2939 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2940 | elif test "$withval" = builtin; then | |
2941 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2942 | else | |
2943 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2944 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2945 | { (exit 1); exit 1; }; } | |
2946 | fi | |
2947 | ||
2948 | else | |
2949 | ||
2950 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2951 | if test "x$LINE" != x ; then | |
2952 | eval "DEFAULT_$LINE" | |
2953 | else | |
2954 | no_cache=1 | |
2955 | fi | |
2956 | ||
2957 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2958 | ||
2959 | fi; | |
2960 | ||
2961 | eval "$ac_cv_use_libxpm" | |
2962 | if test "$no_cache" != 1; then | |
2963 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2964 | fi | |
2965 | ||
2966 | if test "$wxUSE_LIBXPM" = yes; then | |
2967 | echo "$as_me:$LINENO: result: yes" >&5 | |
2968 | echo "${ECHO_T}yes" >&6 | |
2969 | elif test "$wxUSE_LIBXPM" = no; then | |
2970 | echo "$as_me:$LINENO: result: no" >&5 | |
2971 | echo "${ECHO_T}no" >&6 | |
2972 | elif test "$wxUSE_LIBXPM" = sys; then | |
2973 | echo "$as_me:$LINENO: result: system version" >&5 | |
2974 | echo "${ECHO_T}system version" >&6 | |
2975 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2976 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2977 | echo "${ECHO_T}builtin version" >&6 | |
2978 | else | |
2979 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2980 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2981 | { (exit 1); exit 1; }; } | |
2982 | fi | |
2983 | ||
2984 | ||
2985 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2986 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2987 | no_cache=0 | |
2988 | ||
2989 | # Check whether --with-libmspack or --without-libmspack was given. | |
2990 | if test "${with_libmspack+set}" = set; then | |
2991 | withval="$with_libmspack" | |
2992 | ||
2993 | if test "$withval" = yes; then | |
2994 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2995 | else | |
2996 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2997 | fi | |
2998 | ||
2999 | else | |
3000 | ||
3001 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3002 | if test "x$LINE" != x ; then | |
3003 | eval "DEFAULT_$LINE" | |
3004 | else | |
3005 | no_cache=1 | |
3006 | fi | |
3007 | ||
3008 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3009 | ||
3010 | fi; | |
3011 | ||
3012 | eval "$ac_cv_use_libmspack" | |
3013 | if test "$no_cache" != 1; then | |
3014 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3015 | fi | |
3016 | ||
3017 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3018 | echo "$as_me:$LINENO: result: yes" >&5 | |
3019 | echo "${ECHO_T}yes" >&6 | |
3020 | else | |
3021 | echo "$as_me:$LINENO: result: no" >&5 | |
3022 | echo "${ECHO_T}no" >&6 | |
3023 | fi | |
3024 | ||
3025 | ||
3026 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3027 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3028 | no_cache=0 | |
3029 | ||
3030 | # Check whether --with-sdl or --without-sdl was given. | |
3031 | if test "${with_sdl+set}" = set; then | |
3032 | withval="$with_sdl" | |
3033 | ||
3034 | if test "$withval" = yes; then | |
3035 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3036 | else | |
3037 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3038 | fi | |
3039 | ||
3040 | else | |
3041 | ||
3042 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3043 | if test "x$LINE" != x ; then | |
3044 | eval "DEFAULT_$LINE" | |
3045 | else | |
3046 | no_cache=1 | |
3047 | fi | |
3048 | ||
3049 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3050 | ||
3051 | fi; | |
3052 | ||
3053 | eval "$ac_cv_use_sdl" | |
3054 | if test "$no_cache" != 1; then | |
3055 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3056 | fi | |
3057 | ||
3058 | if test "$wxUSE_LIBSDL" = yes; then | |
3059 | echo "$as_me:$LINENO: result: yes" >&5 | |
3060 | echo "${ECHO_T}yes" >&6 | |
3061 | else | |
3062 | echo "$as_me:$LINENO: result: no" >&5 | |
3063 | echo "${ECHO_T}no" >&6 | |
3064 | fi | |
3065 | ||
3066 | ||
3067 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
3068 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3069 | no_cache=0 | |
3070 | ||
3071 | # Check whether --with-opengl or --without-opengl was given. | |
3072 | if test "${with_opengl+set}" = set; then | |
3073 | withval="$with_opengl" | |
3074 | ||
3075 | if test "$withval" = yes; then | |
3076 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3077 | else | |
3078 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3079 | fi | |
3080 | ||
3081 | else | |
3082 | ||
3083 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3084 | if test "x$LINE" != x ; then | |
3085 | eval "DEFAULT_$LINE" | |
3086 | else | |
3087 | no_cache=1 | |
3088 | fi | |
3089 | ||
3090 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3091 | ||
3092 | fi; | |
3093 | ||
3094 | eval "$ac_cv_use_opengl" | |
3095 | if test "$no_cache" != 1; then | |
3096 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3097 | fi | |
3098 | ||
3099 | if test "$wxUSE_OPENGL" = yes; then | |
3100 | echo "$as_me:$LINENO: result: yes" >&5 | |
3101 | echo "${ECHO_T}yes" >&6 | |
3102 | else | |
3103 | echo "$as_me:$LINENO: result: no" >&5 | |
3104 | echo "${ECHO_T}no" >&6 | |
3105 | fi | |
3106 | ||
3107 | ||
3108 | fi | |
3109 | ||
3110 | ||
3111 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3112 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3113 | no_cache=0 | |
3114 | ||
3115 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3116 | if test "${with_dmalloc+set}" = set; then | |
3117 | withval="$with_dmalloc" | |
3118 | ||
3119 | if test "$withval" = yes; then | |
3120 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3121 | else | |
3122 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3123 | fi | |
3124 | ||
3125 | else | |
3126 | ||
3127 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3128 | if test "x$LINE" != x ; then | |
3129 | eval "DEFAULT_$LINE" | |
3130 | else | |
3131 | no_cache=1 | |
3132 | fi | |
3133 | ||
3134 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3135 | ||
3136 | fi; | |
3137 | ||
3138 | eval "$ac_cv_use_dmalloc" | |
3139 | if test "$no_cache" != 1; then | |
3140 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3141 | fi | |
3142 | ||
3143 | if test "$wxUSE_DMALLOC" = yes; then | |
3144 | echo "$as_me:$LINENO: result: yes" >&5 | |
3145 | echo "${ECHO_T}yes" >&6 | |
3146 | else | |
3147 | echo "$as_me:$LINENO: result: no" >&5 | |
3148 | echo "${ECHO_T}no" >&6 | |
3149 | fi | |
3150 | ||
3151 | ||
3152 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3153 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3154 | no_cache=0 | |
3155 | ||
3156 | # Check whether --with-regex or --without-regex was given. | |
3157 | if test "${with_regex+set}" = set; then | |
3158 | withval="$with_regex" | |
3159 | ||
3160 | if test "$withval" = yes; then | |
3161 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3162 | elif test "$withval" = no; then | |
3163 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3164 | elif test "$withval" = sys; then | |
3165 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3166 | elif test "$withval" = builtin; then | |
3167 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3168 | else | |
3169 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3170 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3171 | { (exit 1); exit 1; }; } | |
3172 | fi | |
3173 | ||
3174 | else | |
3175 | ||
3176 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3177 | if test "x$LINE" != x ; then | |
3178 | eval "DEFAULT_$LINE" | |
3179 | else | |
3180 | no_cache=1 | |
3181 | fi | |
3182 | ||
3183 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3184 | ||
3185 | fi; | |
3186 | ||
3187 | eval "$ac_cv_use_regex" | |
3188 | if test "$no_cache" != 1; then | |
3189 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3190 | fi | |
3191 | ||
3192 | if test "$wxUSE_REGEX" = yes; then | |
3193 | echo "$as_me:$LINENO: result: yes" >&5 | |
3194 | echo "${ECHO_T}yes" >&6 | |
3195 | elif test "$wxUSE_REGEX" = no; then | |
3196 | echo "$as_me:$LINENO: result: no" >&5 | |
3197 | echo "${ECHO_T}no" >&6 | |
3198 | elif test "$wxUSE_REGEX" = sys; then | |
3199 | echo "$as_me:$LINENO: result: system version" >&5 | |
3200 | echo "${ECHO_T}system version" >&6 | |
3201 | elif test "$wxUSE_REGEX" = builtin; then | |
3202 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3203 | echo "${ECHO_T}builtin version" >&6 | |
3204 | else | |
3205 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3206 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3207 | { (exit 1); exit 1; }; } | |
3208 | fi | |
3209 | ||
3210 | ||
3211 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3212 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3213 | no_cache=0 | |
3214 | ||
3215 | # Check whether --with-zlib or --without-zlib was given. | |
3216 | if test "${with_zlib+set}" = set; then | |
3217 | withval="$with_zlib" | |
3218 | ||
3219 | if test "$withval" = yes; then | |
3220 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3221 | elif test "$withval" = no; then | |
3222 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3223 | elif test "$withval" = sys; then | |
3224 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3225 | elif test "$withval" = builtin; then | |
3226 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3227 | else | |
3228 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3229 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3230 | { (exit 1); exit 1; }; } | |
3231 | fi | |
3232 | ||
3233 | else | |
3234 | ||
3235 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3236 | if test "x$LINE" != x ; then | |
3237 | eval "DEFAULT_$LINE" | |
3238 | else | |
3239 | no_cache=1 | |
3240 | fi | |
3241 | ||
3242 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3243 | ||
3244 | fi; | |
3245 | ||
3246 | eval "$ac_cv_use_zlib" | |
3247 | if test "$no_cache" != 1; then | |
3248 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3249 | fi | |
3250 | ||
3251 | if test "$wxUSE_ZLIB" = yes; then | |
3252 | echo "$as_me:$LINENO: result: yes" >&5 | |
3253 | echo "${ECHO_T}yes" >&6 | |
3254 | elif test "$wxUSE_ZLIB" = no; then | |
3255 | echo "$as_me:$LINENO: result: no" >&5 | |
3256 | echo "${ECHO_T}no" >&6 | |
3257 | elif test "$wxUSE_ZLIB" = sys; then | |
3258 | echo "$as_me:$LINENO: result: system version" >&5 | |
3259 | echo "${ECHO_T}system version" >&6 | |
3260 | elif test "$wxUSE_ZLIB" = builtin; then | |
3261 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3262 | echo "${ECHO_T}builtin version" >&6 | |
3263 | else | |
3264 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3265 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3266 | { (exit 1); exit 1; }; } | |
3267 | fi | |
3268 | ||
3269 | ||
3270 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3271 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3272 | no_cache=0 | |
3273 | ||
3274 | # Check whether --with-odbc or --without-odbc was given. | |
3275 | if test "${with_odbc+set}" = set; then | |
3276 | withval="$with_odbc" | |
3277 | ||
3278 | if test "$withval" = yes; then | |
3279 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3280 | elif test "$withval" = no; then | |
3281 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3282 | elif test "$withval" = sys; then | |
3283 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3284 | elif test "$withval" = builtin; then | |
3285 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3286 | else | |
3287 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3288 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3289 | { (exit 1); exit 1; }; } | |
3290 | fi | |
3291 | ||
3292 | else | |
3293 | ||
3294 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3295 | if test "x$LINE" != x ; then | |
3296 | eval "DEFAULT_$LINE" | |
3297 | else | |
3298 | no_cache=1 | |
3299 | fi | |
3300 | ||
3301 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3302 | ||
3303 | fi; | |
3304 | ||
3305 | eval "$ac_cv_use_odbc" | |
3306 | if test "$no_cache" != 1; then | |
3307 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3308 | fi | |
3309 | ||
3310 | if test "$wxUSE_ODBC" = yes; then | |
3311 | echo "$as_me:$LINENO: result: yes" >&5 | |
3312 | echo "${ECHO_T}yes" >&6 | |
3313 | elif test "$wxUSE_ODBC" = no; then | |
3314 | echo "$as_me:$LINENO: result: no" >&5 | |
3315 | echo "${ECHO_T}no" >&6 | |
3316 | elif test "$wxUSE_ODBC" = sys; then | |
3317 | echo "$as_me:$LINENO: result: system version" >&5 | |
3318 | echo "${ECHO_T}system version" >&6 | |
3319 | elif test "$wxUSE_ODBC" = builtin; then | |
3320 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3321 | echo "${ECHO_T}builtin version" >&6 | |
3322 | else | |
3323 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3324 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3325 | { (exit 1); exit 1; }; } | |
3326 | fi | |
3327 | ||
3328 | ||
3329 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3330 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3331 | no_cache=0 | |
3332 | ||
3333 | # Check whether --with-expat or --without-expat was given. | |
3334 | if test "${with_expat+set}" = set; then | |
3335 | withval="$with_expat" | |
3336 | ||
3337 | if test "$withval" = yes; then | |
3338 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3339 | elif test "$withval" = no; then | |
3340 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3341 | elif test "$withval" = sys; then | |
3342 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3343 | elif test "$withval" = builtin; then | |
3344 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3345 | else | |
3346 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3347 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3348 | { (exit 1); exit 1; }; } | |
3349 | fi | |
3350 | ||
3351 | else | |
3352 | ||
3353 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3354 | if test "x$LINE" != x ; then | |
3355 | eval "DEFAULT_$LINE" | |
3356 | else | |
3357 | no_cache=1 | |
3358 | fi | |
3359 | ||
3360 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3361 | ||
3362 | fi; | |
3363 | ||
3364 | eval "$ac_cv_use_expat" | |
3365 | if test "$no_cache" != 1; then | |
3366 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3367 | fi | |
3368 | ||
3369 | if test "$wxUSE_EXPAT" = yes; then | |
3370 | echo "$as_me:$LINENO: result: yes" >&5 | |
3371 | echo "${ECHO_T}yes" >&6 | |
3372 | elif test "$wxUSE_EXPAT" = no; then | |
3373 | echo "$as_me:$LINENO: result: no" >&5 | |
3374 | echo "${ECHO_T}no" >&6 | |
3375 | elif test "$wxUSE_EXPAT" = sys; then | |
3376 | echo "$as_me:$LINENO: result: system version" >&5 | |
3377 | echo "${ECHO_T}system version" >&6 | |
3378 | elif test "$wxUSE_EXPAT" = builtin; then | |
3379 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3380 | echo "${ECHO_T}builtin version" >&6 | |
3381 | else | |
3382 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3383 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3384 | { (exit 1); exit 1; }; } | |
3385 | fi | |
3386 | ||
3387 | ||
3388 | ||
3389 | ||
3390 | enablestring= | |
3391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3392 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3393 | no_cache=0 | |
3394 | # Check whether --enable-shared or --disable-shared was given. | |
3395 | if test "${enable_shared+set}" = set; then | |
3396 | enableval="$enable_shared" | |
3397 | ||
3398 | if test "$enableval" = yes; then | |
3399 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3400 | else | |
3401 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3402 | fi | |
3403 | ||
3404 | else | |
3405 | ||
3406 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3414 | ||
3415 | fi; | |
3416 | ||
3417 | eval "$ac_cv_use_shared" | |
3418 | if test "$no_cache" != 1; then | |
3419 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3420 | fi | |
3421 | ||
3422 | if test "$wxUSE_SHARED" = yes; then | |
3423 | echo "$as_me:$LINENO: result: yes" >&5 | |
3424 | echo "${ECHO_T}yes" >&6 | |
3425 | else | |
3426 | echo "$as_me:$LINENO: result: no" >&5 | |
3427 | echo "${ECHO_T}no" >&6 | |
3428 | fi | |
3429 | ||
3430 | ||
3431 | enablestring= | |
3432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3433 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3434 | no_cache=0 | |
3435 | # Check whether --enable-optimise or --disable-optimise was given. | |
3436 | if test "${enable_optimise+set}" = set; then | |
3437 | enableval="$enable_optimise" | |
3438 | ||
3439 | if test "$enableval" = yes; then | |
3440 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3441 | else | |
3442 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3443 | fi | |
3444 | ||
3445 | else | |
3446 | ||
3447 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3448 | if test "x$LINE" != x ; then | |
3449 | eval "DEFAULT_$LINE" | |
3450 | else | |
3451 | no_cache=1 | |
3452 | fi | |
3453 | ||
3454 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3455 | ||
3456 | fi; | |
3457 | ||
3458 | eval "$ac_cv_use_optimise" | |
3459 | if test "$no_cache" != 1; then | |
3460 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3461 | fi | |
3462 | ||
3463 | if test "$wxUSE_OPTIMISE" = yes; then | |
3464 | echo "$as_me:$LINENO: result: yes" >&5 | |
3465 | echo "${ECHO_T}yes" >&6 | |
3466 | else | |
3467 | echo "$as_me:$LINENO: result: no" >&5 | |
3468 | echo "${ECHO_T}no" >&6 | |
3469 | fi | |
3470 | ||
3471 | ||
3472 | enablestring= | |
3473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3474 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3475 | no_cache=0 | |
3476 | # Check whether --enable-debug or --disable-debug was given. | |
3477 | if test "${enable_debug+set}" = set; then | |
3478 | enableval="$enable_debug" | |
3479 | ||
3480 | if test "$enableval" = yes; then | |
3481 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3482 | else | |
3483 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3484 | fi | |
3485 | ||
3486 | else | |
3487 | ||
3488 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3489 | if test "x$LINE" != x ; then | |
3490 | eval "DEFAULT_$LINE" | |
3491 | else | |
3492 | no_cache=1 | |
3493 | fi | |
3494 | ||
3495 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3496 | ||
3497 | fi; | |
3498 | ||
3499 | eval "$ac_cv_use_debug" | |
3500 | if test "$no_cache" != 1; then | |
3501 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3502 | fi | |
3503 | ||
3504 | if test "$wxUSE_DEBUG" = yes; then | |
3505 | echo "$as_me:$LINENO: result: yes" >&5 | |
3506 | echo "${ECHO_T}yes" >&6 | |
3507 | else | |
3508 | echo "$as_me:$LINENO: result: no" >&5 | |
3509 | echo "${ECHO_T}no" >&6 | |
3510 | fi | |
3511 | ||
3512 | ||
3513 | enablestring= | |
3514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3515 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3516 | no_cache=0 | |
3517 | # Check whether --enable-stl or --disable-stl was given. | |
3518 | if test "${enable_stl+set}" = set; then | |
3519 | enableval="$enable_stl" | |
3520 | ||
3521 | if test "$enableval" = yes; then | |
3522 | ac_cv_use_stl='wxUSE_STL=yes' | |
3523 | else | |
3524 | ac_cv_use_stl='wxUSE_STL=no' | |
3525 | fi | |
3526 | ||
3527 | else | |
3528 | ||
3529 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3530 | if test "x$LINE" != x ; then | |
3531 | eval "DEFAULT_$LINE" | |
3532 | else | |
3533 | no_cache=1 | |
3534 | fi | |
3535 | ||
3536 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3537 | ||
3538 | fi; | |
3539 | ||
3540 | eval "$ac_cv_use_stl" | |
3541 | if test "$no_cache" != 1; then | |
3542 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3543 | fi | |
3544 | ||
3545 | if test "$wxUSE_STL" = yes; then | |
3546 | echo "$as_me:$LINENO: result: yes" >&5 | |
3547 | echo "${ECHO_T}yes" >&6 | |
3548 | else | |
3549 | echo "$as_me:$LINENO: result: no" >&5 | |
3550 | echo "${ECHO_T}no" >&6 | |
3551 | fi | |
3552 | ||
3553 | if test "$USE_OS2" = "1"; then | |
3554 | ||
3555 | enablestring= | |
3556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3557 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3558 | no_cache=0 | |
3559 | # Check whether --enable-omf or --disable-omf was given. | |
3560 | if test "${enable_omf+set}" = set; then | |
3561 | enableval="$enable_omf" | |
3562 | ||
3563 | if test "$enableval" = yes; then | |
3564 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3565 | else | |
3566 | ac_cv_use_omf='wxUSE_OMF=no' | |
3567 | fi | |
3568 | ||
3569 | else | |
3570 | ||
3571 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3572 | if test "x$LINE" != x ; then | |
3573 | eval "DEFAULT_$LINE" | |
3574 | else | |
3575 | no_cache=1 | |
3576 | fi | |
3577 | ||
3578 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3579 | ||
3580 | fi; | |
3581 | ||
3582 | eval "$ac_cv_use_omf" | |
3583 | if test "$no_cache" != 1; then | |
3584 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3585 | fi | |
3586 | ||
3587 | if test "$wxUSE_OMF" = yes; then | |
3588 | echo "$as_me:$LINENO: result: yes" >&5 | |
3589 | echo "${ECHO_T}yes" >&6 | |
3590 | else | |
3591 | echo "$as_me:$LINENO: result: no" >&5 | |
3592 | echo "${ECHO_T}no" >&6 | |
3593 | fi | |
3594 | ||
3595 | fi | |
3596 | ||
3597 | if test "$wxUSE_DEBUG" = "yes"; then | |
3598 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3599 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3600 | BUILD=debug | |
3601 | elif test "$wxUSE_DEBUG" = "no"; then | |
3602 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3603 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3604 | BUILD=release | |
3605 | fi | |
3606 | ||
3607 | ||
3608 | enablestring= | |
3609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3610 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3611 | no_cache=0 | |
3612 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3613 | if test "${enable_debug_flag+set}" = set; then | |
3614 | enableval="$enable_debug_flag" | |
3615 | ||
3616 | if test "$enableval" = yes; then | |
3617 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3618 | else | |
3619 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3620 | fi | |
3621 | ||
3622 | else | |
3623 | ||
3624 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3625 | if test "x$LINE" != x ; then | |
3626 | eval "DEFAULT_$LINE" | |
3627 | else | |
3628 | no_cache=1 | |
3629 | fi | |
3630 | ||
3631 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3632 | ||
3633 | fi; | |
3634 | ||
3635 | eval "$ac_cv_use_debug_flag" | |
3636 | if test "$no_cache" != 1; then | |
3637 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3638 | fi | |
3639 | ||
3640 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3641 | echo "$as_me:$LINENO: result: yes" >&5 | |
3642 | echo "${ECHO_T}yes" >&6 | |
3643 | else | |
3644 | echo "$as_me:$LINENO: result: no" >&5 | |
3645 | echo "${ECHO_T}no" >&6 | |
3646 | fi | |
3647 | ||
3648 | ||
3649 | enablestring= | |
3650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3651 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3652 | no_cache=0 | |
3653 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3654 | if test "${enable_debug_info+set}" = set; then | |
3655 | enableval="$enable_debug_info" | |
3656 | ||
3657 | if test "$enableval" = yes; then | |
3658 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3659 | else | |
3660 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3661 | fi | |
3662 | ||
3663 | else | |
3664 | ||
3665 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3666 | if test "x$LINE" != x ; then | |
3667 | eval "DEFAULT_$LINE" | |
3668 | else | |
3669 | no_cache=1 | |
3670 | fi | |
3671 | ||
3672 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3673 | ||
3674 | fi; | |
3675 | ||
3676 | eval "$ac_cv_use_debug_info" | |
3677 | if test "$no_cache" != 1; then | |
3678 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3679 | fi | |
3680 | ||
3681 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3682 | echo "$as_me:$LINENO: result: yes" >&5 | |
3683 | echo "${ECHO_T}yes" >&6 | |
3684 | else | |
3685 | echo "$as_me:$LINENO: result: no" >&5 | |
3686 | echo "${ECHO_T}no" >&6 | |
3687 | fi | |
3688 | ||
3689 | ||
3690 | enablestring= | |
3691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3692 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3693 | no_cache=0 | |
3694 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3695 | if test "${enable_debug_gdb+set}" = set; then | |
3696 | enableval="$enable_debug_gdb" | |
3697 | ||
3698 | if test "$enableval" = yes; then | |
3699 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3700 | else | |
3701 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3702 | fi | |
3703 | ||
3704 | else | |
3705 | ||
3706 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3707 | if test "x$LINE" != x ; then | |
3708 | eval "DEFAULT_$LINE" | |
3709 | else | |
3710 | no_cache=1 | |
3711 | fi | |
3712 | ||
3713 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3714 | ||
3715 | fi; | |
3716 | ||
3717 | eval "$ac_cv_use_debug_gdb" | |
3718 | if test "$no_cache" != 1; then | |
3719 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3720 | fi | |
3721 | ||
3722 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3723 | echo "$as_me:$LINENO: result: yes" >&5 | |
3724 | echo "${ECHO_T}yes" >&6 | |
3725 | else | |
3726 | echo "$as_me:$LINENO: result: no" >&5 | |
3727 | echo "${ECHO_T}no" >&6 | |
3728 | fi | |
3729 | ||
3730 | ||
3731 | enablestring= | |
3732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3733 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3734 | no_cache=0 | |
3735 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3736 | if test "${enable_debug_cntxt+set}" = set; then | |
3737 | enableval="$enable_debug_cntxt" | |
3738 | ||
3739 | if test "$enableval" = yes; then | |
3740 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3741 | else | |
3742 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3743 | fi | |
3744 | ||
3745 | else | |
3746 | ||
3747 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3748 | if test "x$LINE" != x ; then | |
3749 | eval "DEFAULT_$LINE" | |
3750 | else | |
3751 | no_cache=1 | |
3752 | fi | |
3753 | ||
3754 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3755 | ||
3756 | fi; | |
3757 | ||
3758 | eval "$ac_cv_use_debug_cntxt" | |
3759 | if test "$no_cache" != 1; then | |
3760 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3761 | fi | |
3762 | ||
3763 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3764 | echo "$as_me:$LINENO: result: yes" >&5 | |
3765 | echo "${ECHO_T}yes" >&6 | |
3766 | else | |
3767 | echo "$as_me:$LINENO: result: no" >&5 | |
3768 | echo "${ECHO_T}no" >&6 | |
3769 | fi | |
3770 | ||
3771 | ||
3772 | enablestring= | |
3773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3774 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3775 | no_cache=0 | |
3776 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3777 | if test "${enable_mem_tracing+set}" = set; then | |
3778 | enableval="$enable_mem_tracing" | |
3779 | ||
3780 | if test "$enableval" = yes; then | |
3781 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3782 | else | |
3783 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3784 | fi | |
3785 | ||
3786 | else | |
3787 | ||
3788 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3789 | if test "x$LINE" != x ; then | |
3790 | eval "DEFAULT_$LINE" | |
3791 | else | |
3792 | no_cache=1 | |
3793 | fi | |
3794 | ||
3795 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3796 | ||
3797 | fi; | |
3798 | ||
3799 | eval "$ac_cv_use_mem_tracing" | |
3800 | if test "$no_cache" != 1; then | |
3801 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3802 | fi | |
3803 | ||
3804 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3805 | echo "$as_me:$LINENO: result: yes" >&5 | |
3806 | echo "${ECHO_T}yes" >&6 | |
3807 | else | |
3808 | echo "$as_me:$LINENO: result: no" >&5 | |
3809 | echo "${ECHO_T}no" >&6 | |
3810 | fi | |
3811 | ||
3812 | ||
3813 | enablestring= | |
3814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3815 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3816 | no_cache=0 | |
3817 | # Check whether --enable-profile or --disable-profile was given. | |
3818 | if test "${enable_profile+set}" = set; then | |
3819 | enableval="$enable_profile" | |
3820 | ||
3821 | if test "$enableval" = yes; then | |
3822 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3823 | else | |
3824 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3825 | fi | |
3826 | ||
3827 | else | |
3828 | ||
3829 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3830 | if test "x$LINE" != x ; then | |
3831 | eval "DEFAULT_$LINE" | |
3832 | else | |
3833 | no_cache=1 | |
3834 | fi | |
3835 | ||
3836 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3837 | ||
3838 | fi; | |
3839 | ||
3840 | eval "$ac_cv_use_profile" | |
3841 | if test "$no_cache" != 1; then | |
3842 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3843 | fi | |
3844 | ||
3845 | if test "$wxUSE_PROFILE" = yes; then | |
3846 | echo "$as_me:$LINENO: result: yes" >&5 | |
3847 | echo "${ECHO_T}yes" >&6 | |
3848 | else | |
3849 | echo "$as_me:$LINENO: result: no" >&5 | |
3850 | echo "${ECHO_T}no" >&6 | |
3851 | fi | |
3852 | ||
3853 | ||
3854 | enablestring= | |
3855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3856 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3857 | no_cache=0 | |
3858 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3859 | if test "${enable_no_rtti+set}" = set; then | |
3860 | enableval="$enable_no_rtti" | |
3861 | ||
3862 | if test "$enableval" = yes; then | |
3863 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3864 | else | |
3865 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3866 | fi | |
3867 | ||
3868 | else | |
3869 | ||
3870 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3871 | if test "x$LINE" != x ; then | |
3872 | eval "DEFAULT_$LINE" | |
3873 | else | |
3874 | no_cache=1 | |
3875 | fi | |
3876 | ||
3877 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3878 | ||
3879 | fi; | |
3880 | ||
3881 | eval "$ac_cv_use_no_rtti" | |
3882 | if test "$no_cache" != 1; then | |
3883 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3884 | fi | |
3885 | ||
3886 | if test "$wxUSE_NO_RTTI" = yes; then | |
3887 | echo "$as_me:$LINENO: result: yes" >&5 | |
3888 | echo "${ECHO_T}yes" >&6 | |
3889 | else | |
3890 | echo "$as_me:$LINENO: result: no" >&5 | |
3891 | echo "${ECHO_T}no" >&6 | |
3892 | fi | |
3893 | ||
3894 | ||
3895 | enablestring= | |
3896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3897 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3898 | no_cache=0 | |
3899 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3900 | if test "${enable_no_exceptions+set}" = set; then | |
3901 | enableval="$enable_no_exceptions" | |
3902 | ||
3903 | if test "$enableval" = yes; then | |
3904 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3905 | else | |
3906 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3907 | fi | |
3908 | ||
3909 | else | |
3910 | ||
3911 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3912 | if test "x$LINE" != x ; then | |
3913 | eval "DEFAULT_$LINE" | |
3914 | else | |
3915 | no_cache=1 | |
3916 | fi | |
3917 | ||
3918 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3919 | ||
3920 | fi; | |
3921 | ||
3922 | eval "$ac_cv_use_no_exceptions" | |
3923 | if test "$no_cache" != 1; then | |
3924 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3925 | fi | |
3926 | ||
3927 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3928 | echo "$as_me:$LINENO: result: yes" >&5 | |
3929 | echo "${ECHO_T}yes" >&6 | |
3930 | else | |
3931 | echo "$as_me:$LINENO: result: no" >&5 | |
3932 | echo "${ECHO_T}no" >&6 | |
3933 | fi | |
3934 | ||
3935 | ||
3936 | enablestring= | |
3937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3938 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3939 | no_cache=0 | |
3940 | # Check whether --enable-permissive or --disable-permissive was given. | |
3941 | if test "${enable_permissive+set}" = set; then | |
3942 | enableval="$enable_permissive" | |
3943 | ||
3944 | if test "$enableval" = yes; then | |
3945 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3946 | else | |
3947 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3948 | fi | |
3949 | ||
3950 | else | |
3951 | ||
3952 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3953 | if test "x$LINE" != x ; then | |
3954 | eval "DEFAULT_$LINE" | |
3955 | else | |
3956 | no_cache=1 | |
3957 | fi | |
3958 | ||
3959 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3960 | ||
3961 | fi; | |
3962 | ||
3963 | eval "$ac_cv_use_permissive" | |
3964 | if test "$no_cache" != 1; then | |
3965 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3966 | fi | |
3967 | ||
3968 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3969 | echo "$as_me:$LINENO: result: yes" >&5 | |
3970 | echo "${ECHO_T}yes" >&6 | |
3971 | else | |
3972 | echo "$as_me:$LINENO: result: no" >&5 | |
3973 | echo "${ECHO_T}no" >&6 | |
3974 | fi | |
3975 | ||
3976 | ||
3977 | enablestring= | |
3978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3979 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3980 | no_cache=0 | |
3981 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3982 | if test "${enable_no_deps+set}" = set; then | |
3983 | enableval="$enable_no_deps" | |
3984 | ||
3985 | if test "$enableval" = yes; then | |
3986 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3987 | else | |
3988 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3989 | fi | |
3990 | ||
3991 | else | |
3992 | ||
3993 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
3994 | if test "x$LINE" != x ; then | |
3995 | eval "DEFAULT_$LINE" | |
3996 | else | |
3997 | no_cache=1 | |
3998 | fi | |
3999 | ||
4000 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4001 | ||
4002 | fi; | |
4003 | ||
4004 | eval "$ac_cv_use_no_deps" | |
4005 | if test "$no_cache" != 1; then | |
4006 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4007 | fi | |
4008 | ||
4009 | if test "$wxUSE_NO_DEPS" = yes; then | |
4010 | echo "$as_me:$LINENO: result: yes" >&5 | |
4011 | echo "${ECHO_T}yes" >&6 | |
4012 | else | |
4013 | echo "$as_me:$LINENO: result: no" >&5 | |
4014 | echo "${ECHO_T}no" >&6 | |
4015 | fi | |
4016 | ||
4017 | ||
4018 | ||
4019 | enablestring= | |
4020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4021 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4022 | no_cache=0 | |
4023 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4024 | if test "${enable_compat22+set}" = set; then | |
4025 | enableval="$enable_compat22" | |
4026 | ||
4027 | if test "$enableval" = yes; then | |
4028 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4029 | else | |
4030 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4031 | fi | |
4032 | ||
4033 | else | |
4034 | ||
4035 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4036 | if test "x$LINE" != x ; then | |
4037 | eval "DEFAULT_$LINE" | |
4038 | else | |
4039 | no_cache=1 | |
4040 | fi | |
4041 | ||
4042 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4043 | ||
4044 | fi; | |
4045 | ||
4046 | eval "$ac_cv_use_compat22" | |
4047 | if test "$no_cache" != 1; then | |
4048 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4049 | fi | |
4050 | ||
4051 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4052 | echo "$as_me:$LINENO: result: yes" >&5 | |
4053 | echo "${ECHO_T}yes" >&6 | |
4054 | else | |
4055 | echo "$as_me:$LINENO: result: no" >&5 | |
4056 | echo "${ECHO_T}no" >&6 | |
4057 | fi | |
4058 | ||
4059 | ||
4060 | enablestring=disable | |
4061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4062 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4063 | no_cache=0 | |
4064 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4065 | if test "${enable_compat24+set}" = set; then | |
4066 | enableval="$enable_compat24" | |
4067 | ||
4068 | if test "$enableval" = yes; then | |
4069 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4070 | else | |
4071 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4072 | fi | |
4073 | ||
4074 | else | |
4075 | ||
4076 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4077 | if test "x$LINE" != x ; then | |
4078 | eval "DEFAULT_$LINE" | |
4079 | else | |
4080 | no_cache=1 | |
4081 | fi | |
4082 | ||
4083 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4084 | ||
4085 | fi; | |
4086 | ||
4087 | eval "$ac_cv_use_compat24" | |
4088 | if test "$no_cache" != 1; then | |
4089 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4090 | fi | |
4091 | ||
4092 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4093 | echo "$as_me:$LINENO: result: yes" >&5 | |
4094 | echo "${ECHO_T}yes" >&6 | |
4095 | else | |
4096 | echo "$as_me:$LINENO: result: no" >&5 | |
4097 | echo "${ECHO_T}no" >&6 | |
4098 | fi | |
4099 | ||
4100 | ||
4101 | # Check whether --enable-rpath or --disable-rpath was given. | |
4102 | if test "${enable_rpath+set}" = set; then | |
4103 | enableval="$enable_rpath" | |
4104 | wxRPATH_DIR="$enableval" | |
4105 | fi; | |
4106 | ||
ac1cb8d3 | 4107 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then |
a848cd7e SC |
4108 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" |
4109 | fi | |
4110 | ||
4111 | ||
4112 | ||
4113 | ||
4114 | enablestring= | |
4115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4116 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4117 | no_cache=0 | |
4118 | # Check whether --enable-intl or --disable-intl was given. | |
4119 | if test "${enable_intl+set}" = set; then | |
4120 | enableval="$enable_intl" | |
4121 | ||
4122 | if test "$enableval" = yes; then | |
4123 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4124 | else | |
4125 | ac_cv_use_intl='wxUSE_INTL=no' | |
4126 | fi | |
4127 | ||
4128 | else | |
4129 | ||
4130 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4131 | if test "x$LINE" != x ; then | |
4132 | eval "DEFAULT_$LINE" | |
4133 | else | |
4134 | no_cache=1 | |
4135 | fi | |
4136 | ||
4137 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4138 | ||
4139 | fi; | |
4140 | ||
4141 | eval "$ac_cv_use_intl" | |
4142 | if test "$no_cache" != 1; then | |
4143 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4144 | fi | |
4145 | ||
4146 | if test "$wxUSE_INTL" = yes; then | |
4147 | echo "$as_me:$LINENO: result: yes" >&5 | |
4148 | echo "${ECHO_T}yes" >&6 | |
4149 | else | |
4150 | echo "$as_me:$LINENO: result: no" >&5 | |
4151 | echo "${ECHO_T}no" >&6 | |
4152 | fi | |
4153 | ||
4154 | ||
4155 | enablestring= | |
4156 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4157 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4158 | no_cache=0 | |
4159 | # Check whether --enable-config or --disable-config was given. | |
4160 | if test "${enable_config+set}" = set; then | |
4161 | enableval="$enable_config" | |
4162 | ||
4163 | if test "$enableval" = yes; then | |
4164 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4165 | else | |
4166 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4167 | fi | |
4168 | ||
4169 | else | |
4170 | ||
4171 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4172 | if test "x$LINE" != x ; then | |
4173 | eval "DEFAULT_$LINE" | |
4174 | else | |
4175 | no_cache=1 | |
4176 | fi | |
4177 | ||
4178 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4179 | ||
4180 | fi; | |
4181 | ||
4182 | eval "$ac_cv_use_config" | |
4183 | if test "$no_cache" != 1; then | |
4184 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4185 | fi | |
4186 | ||
4187 | if test "$wxUSE_CONFIG" = yes; then | |
4188 | echo "$as_me:$LINENO: result: yes" >&5 | |
4189 | echo "${ECHO_T}yes" >&6 | |
4190 | else | |
4191 | echo "$as_me:$LINENO: result: no" >&5 | |
4192 | echo "${ECHO_T}no" >&6 | |
4193 | fi | |
4194 | ||
4195 | ||
4196 | ||
4197 | enablestring= | |
4198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4199 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4200 | no_cache=0 | |
4201 | # Check whether --enable-protocols or --disable-protocols was given. | |
4202 | if test "${enable_protocols+set}" = set; then | |
4203 | enableval="$enable_protocols" | |
4204 | ||
4205 | if test "$enableval" = yes; then | |
4206 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4207 | else | |
4208 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4209 | fi | |
4210 | ||
4211 | else | |
4212 | ||
4213 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4214 | if test "x$LINE" != x ; then | |
4215 | eval "DEFAULT_$LINE" | |
4216 | else | |
4217 | no_cache=1 | |
4218 | fi | |
4219 | ||
4220 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4221 | ||
4222 | fi; | |
4223 | ||
4224 | eval "$ac_cv_use_protocols" | |
4225 | if test "$no_cache" != 1; then | |
4226 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4227 | fi | |
4228 | ||
4229 | if test "$wxUSE_PROTOCOL" = yes; then | |
4230 | echo "$as_me:$LINENO: result: yes" >&5 | |
4231 | echo "${ECHO_T}yes" >&6 | |
4232 | else | |
4233 | echo "$as_me:$LINENO: result: no" >&5 | |
4234 | echo "${ECHO_T}no" >&6 | |
4235 | fi | |
4236 | ||
4237 | ||
4238 | enablestring= | |
4239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4240 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4241 | no_cache=0 | |
4242 | # Check whether --enable-ftp or --disable-ftp was given. | |
4243 | if test "${enable_ftp+set}" = set; then | |
4244 | enableval="$enable_ftp" | |
4245 | ||
4246 | if test "$enableval" = yes; then | |
4247 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4248 | else | |
4249 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4250 | fi | |
4251 | ||
4252 | else | |
4253 | ||
4254 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4255 | if test "x$LINE" != x ; then | |
4256 | eval "DEFAULT_$LINE" | |
4257 | else | |
4258 | no_cache=1 | |
4259 | fi | |
4260 | ||
4261 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4262 | ||
4263 | fi; | |
4264 | ||
4265 | eval "$ac_cv_use_ftp" | |
4266 | if test "$no_cache" != 1; then | |
4267 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4268 | fi | |
4269 | ||
4270 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4271 | echo "$as_me:$LINENO: result: yes" >&5 | |
4272 | echo "${ECHO_T}yes" >&6 | |
4273 | else | |
4274 | echo "$as_me:$LINENO: result: no" >&5 | |
4275 | echo "${ECHO_T}no" >&6 | |
4276 | fi | |
4277 | ||
4278 | ||
4279 | enablestring= | |
4280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4281 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4282 | no_cache=0 | |
4283 | # Check whether --enable-http or --disable-http was given. | |
4284 | if test "${enable_http+set}" = set; then | |
4285 | enableval="$enable_http" | |
4286 | ||
4287 | if test "$enableval" = yes; then | |
4288 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4289 | else | |
4290 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4291 | fi | |
4292 | ||
4293 | else | |
4294 | ||
4295 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4296 | if test "x$LINE" != x ; then | |
4297 | eval "DEFAULT_$LINE" | |
4298 | else | |
4299 | no_cache=1 | |
4300 | fi | |
4301 | ||
4302 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4303 | ||
4304 | fi; | |
4305 | ||
4306 | eval "$ac_cv_use_http" | |
4307 | if test "$no_cache" != 1; then | |
4308 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4309 | fi | |
4310 | ||
4311 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4312 | echo "$as_me:$LINENO: result: yes" >&5 | |
4313 | echo "${ECHO_T}yes" >&6 | |
4314 | else | |
4315 | echo "$as_me:$LINENO: result: no" >&5 | |
4316 | echo "${ECHO_T}no" >&6 | |
4317 | fi | |
4318 | ||
4319 | ||
4320 | enablestring= | |
4321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4322 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4323 | no_cache=0 | |
4324 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4325 | if test "${enable_fileproto+set}" = set; then | |
4326 | enableval="$enable_fileproto" | |
4327 | ||
4328 | if test "$enableval" = yes; then | |
4329 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4330 | else | |
4331 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4332 | fi | |
4333 | ||
4334 | else | |
4335 | ||
4336 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4337 | if test "x$LINE" != x ; then | |
4338 | eval "DEFAULT_$LINE" | |
4339 | else | |
4340 | no_cache=1 | |
4341 | fi | |
4342 | ||
4343 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4344 | ||
4345 | fi; | |
4346 | ||
4347 | eval "$ac_cv_use_fileproto" | |
4348 | if test "$no_cache" != 1; then | |
4349 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4350 | fi | |
4351 | ||
4352 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4353 | echo "$as_me:$LINENO: result: yes" >&5 | |
4354 | echo "${ECHO_T}yes" >&6 | |
4355 | else | |
4356 | echo "$as_me:$LINENO: result: no" >&5 | |
4357 | echo "${ECHO_T}no" >&6 | |
4358 | fi | |
4359 | ||
4360 | ||
4361 | enablestring= | |
4362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4363 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4364 | no_cache=0 | |
4365 | # Check whether --enable-sockets or --disable-sockets was given. | |
4366 | if test "${enable_sockets+set}" = set; then | |
4367 | enableval="$enable_sockets" | |
4368 | ||
4369 | if test "$enableval" = yes; then | |
4370 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4371 | else | |
4372 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4373 | fi | |
4374 | ||
4375 | else | |
4376 | ||
4377 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4378 | if test "x$LINE" != x ; then | |
4379 | eval "DEFAULT_$LINE" | |
4380 | else | |
4381 | no_cache=1 | |
4382 | fi | |
4383 | ||
4384 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4385 | ||
4386 | fi; | |
4387 | ||
4388 | eval "$ac_cv_use_sockets" | |
4389 | if test "$no_cache" != 1; then | |
4390 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4391 | fi | |
4392 | ||
4393 | if test "$wxUSE_SOCKETS" = yes; then | |
4394 | echo "$as_me:$LINENO: result: yes" >&5 | |
4395 | echo "${ECHO_T}yes" >&6 | |
4396 | else | |
4397 | echo "$as_me:$LINENO: result: no" >&5 | |
4398 | echo "${ECHO_T}no" >&6 | |
4399 | fi | |
4400 | ||
4401 | ||
4402 | enablestring= | |
4403 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4404 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4405 | no_cache=0 | |
4406 | # Check whether --enable-ole or --disable-ole was given. | |
4407 | if test "${enable_ole+set}" = set; then | |
4408 | enableval="$enable_ole" | |
4409 | ||
4410 | if test "$enableval" = yes; then | |
4411 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4412 | else | |
4413 | ac_cv_use_ole='wxUSE_OLE=no' | |
4414 | fi | |
4415 | ||
4416 | else | |
4417 | ||
4418 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4419 | if test "x$LINE" != x ; then | |
4420 | eval "DEFAULT_$LINE" | |
4421 | else | |
4422 | no_cache=1 | |
4423 | fi | |
4424 | ||
4425 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4426 | ||
4427 | fi; | |
4428 | ||
4429 | eval "$ac_cv_use_ole" | |
4430 | if test "$no_cache" != 1; then | |
4431 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4432 | fi | |
4433 | ||
4434 | if test "$wxUSE_OLE" = yes; then | |
4435 | echo "$as_me:$LINENO: result: yes" >&5 | |
4436 | echo "${ECHO_T}yes" >&6 | |
4437 | else | |
4438 | echo "$as_me:$LINENO: result: no" >&5 | |
4439 | echo "${ECHO_T}no" >&6 | |
4440 | fi | |
4441 | ||
4442 | ||
4443 | enablestring= | |
4444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4445 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4446 | no_cache=0 | |
4447 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4448 | if test "${enable_dataobj+set}" = set; then | |
4449 | enableval="$enable_dataobj" | |
4450 | ||
4451 | if test "$enableval" = yes; then | |
4452 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4453 | else | |
4454 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4455 | fi | |
4456 | ||
4457 | else | |
4458 | ||
4459 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4460 | if test "x$LINE" != x ; then | |
4461 | eval "DEFAULT_$LINE" | |
4462 | else | |
4463 | no_cache=1 | |
4464 | fi | |
4465 | ||
4466 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4467 | ||
4468 | fi; | |
4469 | ||
4470 | eval "$ac_cv_use_dataobj" | |
4471 | if test "$no_cache" != 1; then | |
4472 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4473 | fi | |
4474 | ||
4475 | if test "$wxUSE_DATAOBJ" = yes; then | |
4476 | echo "$as_me:$LINENO: result: yes" >&5 | |
4477 | echo "${ECHO_T}yes" >&6 | |
4478 | else | |
4479 | echo "$as_me:$LINENO: result: no" >&5 | |
4480 | echo "${ECHO_T}no" >&6 | |
4481 | fi | |
4482 | ||
4483 | ||
4484 | ||
4485 | enablestring= | |
4486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4487 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4488 | no_cache=0 | |
4489 | # Check whether --enable-ipc or --disable-ipc was given. | |
4490 | if test "${enable_ipc+set}" = set; then | |
4491 | enableval="$enable_ipc" | |
4492 | ||
4493 | if test "$enableval" = yes; then | |
4494 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4495 | else | |
4496 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4497 | fi | |
4498 | ||
4499 | else | |
4500 | ||
4501 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4502 | if test "x$LINE" != x ; then | |
4503 | eval "DEFAULT_$LINE" | |
4504 | else | |
4505 | no_cache=1 | |
4506 | fi | |
4507 | ||
4508 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4509 | ||
4510 | fi; | |
4511 | ||
4512 | eval "$ac_cv_use_ipc" | |
4513 | if test "$no_cache" != 1; then | |
4514 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4515 | fi | |
4516 | ||
4517 | if test "$wxUSE_IPC" = yes; then | |
4518 | echo "$as_me:$LINENO: result: yes" >&5 | |
4519 | echo "${ECHO_T}yes" >&6 | |
4520 | else | |
4521 | echo "$as_me:$LINENO: result: no" >&5 | |
4522 | echo "${ECHO_T}no" >&6 | |
4523 | fi | |
4524 | ||
4525 | ||
4526 | ||
4527 | enablestring= | |
4528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4529 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4530 | no_cache=0 | |
4531 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4532 | if test "${enable_apple_ieee+set}" = set; then | |
4533 | enableval="$enable_apple_ieee" | |
4534 | ||
4535 | if test "$enableval" = yes; then | |
4536 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4537 | else | |
4538 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4539 | fi | |
4540 | ||
4541 | else | |
4542 | ||
4543 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4544 | if test "x$LINE" != x ; then | |
4545 | eval "DEFAULT_$LINE" | |
4546 | else | |
4547 | no_cache=1 | |
4548 | fi | |
4549 | ||
4550 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4551 | ||
4552 | fi; | |
4553 | ||
4554 | eval "$ac_cv_use_apple_ieee" | |
4555 | if test "$no_cache" != 1; then | |
4556 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4557 | fi | |
4558 | ||
4559 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4560 | echo "$as_me:$LINENO: result: yes" >&5 | |
4561 | echo "${ECHO_T}yes" >&6 | |
4562 | else | |
4563 | echo "$as_me:$LINENO: result: no" >&5 | |
4564 | echo "${ECHO_T}no" >&6 | |
4565 | fi | |
4566 | ||
4567 | ||
4568 | enablestring= | |
4569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4570 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4571 | no_cache=0 | |
4572 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4573 | if test "${enable_catch_segvs+set}" = set; then | |
4574 | enableval="$enable_catch_segvs" | |
4575 | ||
4576 | if test "$enableval" = yes; then | |
4577 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4578 | else | |
4579 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4580 | fi | |
4581 | ||
4582 | else | |
4583 | ||
4584 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4585 | if test "x$LINE" != x ; then | |
4586 | eval "DEFAULT_$LINE" | |
4587 | else | |
4588 | no_cache=1 | |
4589 | fi | |
4590 | ||
4591 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4592 | ||
4593 | fi; | |
4594 | ||
4595 | eval "$ac_cv_use_catch_segvs" | |
4596 | if test "$no_cache" != 1; then | |
4597 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4598 | fi | |
4599 | ||
4600 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4601 | echo "$as_me:$LINENO: result: yes" >&5 | |
4602 | echo "${ECHO_T}yes" >&6 | |
4603 | else | |
4604 | echo "$as_me:$LINENO: result: no" >&5 | |
4605 | echo "${ECHO_T}no" >&6 | |
4606 | fi | |
4607 | ||
4608 | ||
4609 | enablestring= | |
4610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4611 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4612 | no_cache=0 | |
4613 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4614 | if test "${enable_cmdline+set}" = set; then | |
4615 | enableval="$enable_cmdline" | |
4616 | ||
4617 | if test "$enableval" = yes; then | |
4618 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4619 | else | |
4620 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4621 | fi | |
4622 | ||
4623 | else | |
4624 | ||
4625 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4626 | if test "x$LINE" != x ; then | |
4627 | eval "DEFAULT_$LINE" | |
4628 | else | |
4629 | no_cache=1 | |
4630 | fi | |
4631 | ||
4632 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4633 | ||
4634 | fi; | |
4635 | ||
4636 | eval "$ac_cv_use_cmdline" | |
4637 | if test "$no_cache" != 1; then | |
4638 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4639 | fi | |
4640 | ||
4641 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4642 | echo "$as_me:$LINENO: result: yes" >&5 | |
4643 | echo "${ECHO_T}yes" >&6 | |
4644 | else | |
4645 | echo "$as_me:$LINENO: result: no" >&5 | |
4646 | echo "${ECHO_T}no" >&6 | |
4647 | fi | |
4648 | ||
4649 | ||
4650 | enablestring= | |
4651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4652 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4653 | no_cache=0 | |
4654 | # Check whether --enable-datetime or --disable-datetime was given. | |
4655 | if test "${enable_datetime+set}" = set; then | |
4656 | enableval="$enable_datetime" | |
4657 | ||
4658 | if test "$enableval" = yes; then | |
4659 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4660 | else | |
4661 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4662 | fi | |
4663 | ||
4664 | else | |
4665 | ||
4666 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4667 | if test "x$LINE" != x ; then | |
4668 | eval "DEFAULT_$LINE" | |
4669 | else | |
4670 | no_cache=1 | |
4671 | fi | |
4672 | ||
4673 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4674 | ||
4675 | fi; | |
4676 | ||
4677 | eval "$ac_cv_use_datetime" | |
4678 | if test "$no_cache" != 1; then | |
4679 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4680 | fi | |
4681 | ||
4682 | if test "$wxUSE_DATETIME" = yes; then | |
4683 | echo "$as_me:$LINENO: result: yes" >&5 | |
4684 | echo "${ECHO_T}yes" >&6 | |
4685 | else | |
4686 | echo "$as_me:$LINENO: result: no" >&5 | |
4687 | echo "${ECHO_T}no" >&6 | |
4688 | fi | |
4689 | ||
4690 | ||
4691 | enablestring= | |
4692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4693 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4694 | no_cache=0 | |
4695 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4696 | if test "${enable_dialupman+set}" = set; then | |
4697 | enableval="$enable_dialupman" | |
4698 | ||
4699 | if test "$enableval" = yes; then | |
4700 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4701 | else | |
4702 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4703 | fi | |
4704 | ||
4705 | else | |
4706 | ||
4707 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4708 | if test "x$LINE" != x ; then | |
4709 | eval "DEFAULT_$LINE" | |
4710 | else | |
4711 | no_cache=1 | |
4712 | fi | |
4713 | ||
4714 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4715 | ||
4716 | fi; | |
4717 | ||
4718 | eval "$ac_cv_use_dialupman" | |
4719 | if test "$no_cache" != 1; then | |
4720 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4721 | fi | |
4722 | ||
4723 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4724 | echo "$as_me:$LINENO: result: yes" >&5 | |
4725 | echo "${ECHO_T}yes" >&6 | |
4726 | else | |
4727 | echo "$as_me:$LINENO: result: no" >&5 | |
4728 | echo "${ECHO_T}no" >&6 | |
4729 | fi | |
4730 | ||
4731 | ||
4732 | enablestring= | |
4733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4734 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4735 | no_cache=0 | |
4736 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4737 | if test "${enable_dynlib+set}" = set; then | |
4738 | enableval="$enable_dynlib" | |
4739 | ||
4740 | if test "$enableval" = yes; then | |
4741 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4742 | else | |
4743 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4744 | fi | |
4745 | ||
4746 | else | |
4747 | ||
4748 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4749 | if test "x$LINE" != x ; then | |
4750 | eval "DEFAULT_$LINE" | |
4751 | else | |
4752 | no_cache=1 | |
4753 | fi | |
4754 | ||
4755 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4756 | ||
4757 | fi; | |
4758 | ||
4759 | eval "$ac_cv_use_dynlib" | |
4760 | if test "$no_cache" != 1; then | |
4761 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4762 | fi | |
4763 | ||
4764 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4765 | echo "$as_me:$LINENO: result: yes" >&5 | |
4766 | echo "${ECHO_T}yes" >&6 | |
4767 | else | |
4768 | echo "$as_me:$LINENO: result: no" >&5 | |
4769 | echo "${ECHO_T}no" >&6 | |
4770 | fi | |
4771 | ||
4772 | ||
4773 | enablestring= | |
4774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4775 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4776 | no_cache=0 | |
4777 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4778 | if test "${enable_dynamicloader+set}" = set; then | |
4779 | enableval="$enable_dynamicloader" | |
4780 | ||
4781 | if test "$enableval" = yes; then | |
4782 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4783 | else | |
4784 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4785 | fi | |
4786 | ||
4787 | else | |
4788 | ||
4789 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4790 | if test "x$LINE" != x ; then | |
4791 | eval "DEFAULT_$LINE" | |
4792 | else | |
4793 | no_cache=1 | |
4794 | fi | |
4795 | ||
4796 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4797 | ||
4798 | fi; | |
4799 | ||
4800 | eval "$ac_cv_use_dynamicloader" | |
4801 | if test "$no_cache" != 1; then | |
4802 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4803 | fi | |
4804 | ||
4805 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4806 | echo "$as_me:$LINENO: result: yes" >&5 | |
4807 | echo "${ECHO_T}yes" >&6 | |
4808 | else | |
4809 | echo "$as_me:$LINENO: result: no" >&5 | |
4810 | echo "${ECHO_T}no" >&6 | |
4811 | fi | |
4812 | ||
4813 | ||
4814 | enablestring= | |
4815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4816 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4817 | no_cache=0 | |
4818 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4819 | if test "${enable_exceptions+set}" = set; then | |
4820 | enableval="$enable_exceptions" | |
4821 | ||
4822 | if test "$enableval" = yes; then | |
4823 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4824 | else | |
4825 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4826 | fi | |
4827 | ||
4828 | else | |
4829 | ||
4830 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4831 | if test "x$LINE" != x ; then | |
4832 | eval "DEFAULT_$LINE" | |
4833 | else | |
4834 | no_cache=1 | |
4835 | fi | |
4836 | ||
4837 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4838 | ||
4839 | fi; | |
4840 | ||
4841 | eval "$ac_cv_use_exceptions" | |
4842 | if test "$no_cache" != 1; then | |
4843 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4844 | fi | |
4845 | ||
4846 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4847 | echo "$as_me:$LINENO: result: yes" >&5 | |
4848 | echo "${ECHO_T}yes" >&6 | |
4849 | else | |
4850 | echo "$as_me:$LINENO: result: no" >&5 | |
4851 | echo "${ECHO_T}no" >&6 | |
4852 | fi | |
4853 | ||
4854 | ||
4855 | enablestring= | |
4856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4857 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4858 | no_cache=0 | |
4859 | # Check whether --enable-ffile or --disable-ffile was given. | |
4860 | if test "${enable_ffile+set}" = set; then | |
4861 | enableval="$enable_ffile" | |
4862 | ||
4863 | if test "$enableval" = yes; then | |
4864 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4865 | else | |
4866 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4867 | fi | |
4868 | ||
4869 | else | |
4870 | ||
4871 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4872 | if test "x$LINE" != x ; then | |
4873 | eval "DEFAULT_$LINE" | |
4874 | else | |
4875 | no_cache=1 | |
4876 | fi | |
4877 | ||
4878 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4879 | ||
4880 | fi; | |
4881 | ||
4882 | eval "$ac_cv_use_ffile" | |
4883 | if test "$no_cache" != 1; then | |
4884 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4885 | fi | |
4886 | ||
4887 | if test "$wxUSE_FFILE" = yes; then | |
4888 | echo "$as_me:$LINENO: result: yes" >&5 | |
4889 | echo "${ECHO_T}yes" >&6 | |
4890 | else | |
4891 | echo "$as_me:$LINENO: result: no" >&5 | |
4892 | echo "${ECHO_T}no" >&6 | |
4893 | fi | |
4894 | ||
4895 | ||
4896 | enablestring= | |
4897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4898 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4899 | no_cache=0 | |
4900 | # Check whether --enable-file or --disable-file was given. | |
4901 | if test "${enable_file+set}" = set; then | |
4902 | enableval="$enable_file" | |
4903 | ||
4904 | if test "$enableval" = yes; then | |
4905 | ac_cv_use_file='wxUSE_FILE=yes' | |
4906 | else | |
4907 | ac_cv_use_file='wxUSE_FILE=no' | |
4908 | fi | |
4909 | ||
4910 | else | |
4911 | ||
4912 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4913 | if test "x$LINE" != x ; then | |
4914 | eval "DEFAULT_$LINE" | |
4915 | else | |
4916 | no_cache=1 | |
4917 | fi | |
4918 | ||
4919 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4920 | ||
4921 | fi; | |
4922 | ||
4923 | eval "$ac_cv_use_file" | |
4924 | if test "$no_cache" != 1; then | |
4925 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4926 | fi | |
4927 | ||
4928 | if test "$wxUSE_FILE" = yes; then | |
4929 | echo "$as_me:$LINENO: result: yes" >&5 | |
4930 | echo "${ECHO_T}yes" >&6 | |
4931 | else | |
4932 | echo "$as_me:$LINENO: result: no" >&5 | |
4933 | echo "${ECHO_T}no" >&6 | |
4934 | fi | |
4935 | ||
4936 | ||
4937 | enablestring= | |
4938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
4939 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
4940 | no_cache=0 | |
4941 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4942 | if test "${enable_filesystem+set}" = set; then | |
4943 | enableval="$enable_filesystem" | |
4944 | ||
4945 | if test "$enableval" = yes; then | |
4946 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4947 | else | |
4948 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4949 | fi | |
4950 | ||
4951 | else | |
4952 | ||
4953 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4954 | if test "x$LINE" != x ; then | |
4955 | eval "DEFAULT_$LINE" | |
4956 | else | |
4957 | no_cache=1 | |
4958 | fi | |
4959 | ||
4960 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4961 | ||
4962 | fi; | |
4963 | ||
4964 | eval "$ac_cv_use_filesystem" | |
4965 | if test "$no_cache" != 1; then | |
4966 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4967 | fi | |
4968 | ||
4969 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4970 | echo "$as_me:$LINENO: result: yes" >&5 | |
4971 | echo "${ECHO_T}yes" >&6 | |
4972 | else | |
4973 | echo "$as_me:$LINENO: result: no" >&5 | |
4974 | echo "${ECHO_T}no" >&6 | |
4975 | fi | |
4976 | ||
4977 | ||
4978 | enablestring= | |
4979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4980 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4981 | no_cache=0 | |
4982 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4983 | if test "${enable_fontmap+set}" = set; then | |
4984 | enableval="$enable_fontmap" | |
4985 | ||
4986 | if test "$enableval" = yes; then | |
4987 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4988 | else | |
4989 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4990 | fi | |
4991 | ||
4992 | else | |
4993 | ||
4994 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4995 | if test "x$LINE" != x ; then | |
4996 | eval "DEFAULT_$LINE" | |
4997 | else | |
4998 | no_cache=1 | |
4999 | fi | |
5000 | ||
5001 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5002 | ||
5003 | fi; | |
5004 | ||
5005 | eval "$ac_cv_use_fontmap" | |
5006 | if test "$no_cache" != 1; then | |
5007 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5008 | fi | |
5009 | ||
5010 | if test "$wxUSE_FONTMAP" = yes; then | |
5011 | echo "$as_me:$LINENO: result: yes" >&5 | |
5012 | echo "${ECHO_T}yes" >&6 | |
5013 | else | |
5014 | echo "$as_me:$LINENO: result: no" >&5 | |
5015 | echo "${ECHO_T}no" >&6 | |
5016 | fi | |
5017 | ||
5018 | ||
5019 | enablestring= | |
5020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5021 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5022 | no_cache=0 | |
5023 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5024 | if test "${enable_fs_inet+set}" = set; then | |
5025 | enableval="$enable_fs_inet" | |
5026 | ||
5027 | if test "$enableval" = yes; then | |
5028 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5029 | else | |
5030 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5031 | fi | |
5032 | ||
5033 | else | |
5034 | ||
5035 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5036 | if test "x$LINE" != x ; then | |
5037 | eval "DEFAULT_$LINE" | |
5038 | else | |
5039 | no_cache=1 | |
5040 | fi | |
5041 | ||
5042 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5043 | ||
5044 | fi; | |
5045 | ||
5046 | eval "$ac_cv_use_fs_inet" | |
5047 | if test "$no_cache" != 1; then | |
5048 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5049 | fi | |
5050 | ||
5051 | if test "$wxUSE_FS_INET" = yes; then | |
5052 | echo "$as_me:$LINENO: result: yes" >&5 | |
5053 | echo "${ECHO_T}yes" >&6 | |
5054 | else | |
5055 | echo "$as_me:$LINENO: result: no" >&5 | |
5056 | echo "${ECHO_T}no" >&6 | |
5057 | fi | |
5058 | ||
5059 | ||
5060 | enablestring= | |
5061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5062 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5063 | no_cache=0 | |
5064 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5065 | if test "${enable_fs_zip+set}" = set; then | |
5066 | enableval="$enable_fs_zip" | |
5067 | ||
5068 | if test "$enableval" = yes; then | |
5069 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5070 | else | |
5071 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5072 | fi | |
5073 | ||
5074 | else | |
5075 | ||
5076 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5077 | if test "x$LINE" != x ; then | |
5078 | eval "DEFAULT_$LINE" | |
5079 | else | |
5080 | no_cache=1 | |
5081 | fi | |
5082 | ||
5083 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5084 | ||
5085 | fi; | |
5086 | ||
5087 | eval "$ac_cv_use_fs_zip" | |
5088 | if test "$no_cache" != 1; then | |
5089 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5090 | fi | |
5091 | ||
5092 | if test "$wxUSE_FS_ZIP" = yes; then | |
5093 | echo "$as_me:$LINENO: result: yes" >&5 | |
5094 | echo "${ECHO_T}yes" >&6 | |
5095 | else | |
5096 | echo "$as_me:$LINENO: result: no" >&5 | |
5097 | echo "${ECHO_T}no" >&6 | |
5098 | fi | |
5099 | ||
5100 | ||
5101 | enablestring= | |
5102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5103 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5104 | no_cache=0 | |
5105 | # Check whether --enable-geometry or --disable-geometry was given. | |
5106 | if test "${enable_geometry+set}" = set; then | |
5107 | enableval="$enable_geometry" | |
5108 | ||
5109 | if test "$enableval" = yes; then | |
5110 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5111 | else | |
5112 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5113 | fi | |
5114 | ||
5115 | else | |
5116 | ||
5117 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5118 | if test "x$LINE" != x ; then | |
5119 | eval "DEFAULT_$LINE" | |
5120 | else | |
5121 | no_cache=1 | |
5122 | fi | |
5123 | ||
5124 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5125 | ||
5126 | fi; | |
5127 | ||
5128 | eval "$ac_cv_use_geometry" | |
5129 | if test "$no_cache" != 1; then | |
5130 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5131 | fi | |
5132 | ||
5133 | if test "$wxUSE_GEOMETRY" = yes; then | |
5134 | echo "$as_me:$LINENO: result: yes" >&5 | |
5135 | echo "${ECHO_T}yes" >&6 | |
5136 | else | |
5137 | echo "$as_me:$LINENO: result: no" >&5 | |
5138 | echo "${ECHO_T}no" >&6 | |
5139 | fi | |
5140 | ||
5141 | ||
5142 | enablestring= | |
5143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5144 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5145 | no_cache=0 | |
5146 | # Check whether --enable-log or --disable-log was given. | |
5147 | if test "${enable_log+set}" = set; then | |
5148 | enableval="$enable_log" | |
5149 | ||
5150 | if test "$enableval" = yes; then | |
5151 | ac_cv_use_log='wxUSE_LOG=yes' | |
5152 | else | |
5153 | ac_cv_use_log='wxUSE_LOG=no' | |
5154 | fi | |
5155 | ||
5156 | else | |
5157 | ||
5158 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5159 | if test "x$LINE" != x ; then | |
5160 | eval "DEFAULT_$LINE" | |
5161 | else | |
5162 | no_cache=1 | |
5163 | fi | |
5164 | ||
5165 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5166 | ||
5167 | fi; | |
5168 | ||
5169 | eval "$ac_cv_use_log" | |
5170 | if test "$no_cache" != 1; then | |
5171 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5172 | fi | |
5173 | ||
5174 | if test "$wxUSE_LOG" = yes; then | |
5175 | echo "$as_me:$LINENO: result: yes" >&5 | |
5176 | echo "${ECHO_T}yes" >&6 | |
5177 | else | |
5178 | echo "$as_me:$LINENO: result: no" >&5 | |
5179 | echo "${ECHO_T}no" >&6 | |
5180 | fi | |
5181 | ||
5182 | ||
5183 | enablestring= | |
5184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5185 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5186 | no_cache=0 | |
5187 | # Check whether --enable-longlong or --disable-longlong was given. | |
5188 | if test "${enable_longlong+set}" = set; then | |
5189 | enableval="$enable_longlong" | |
5190 | ||
5191 | if test "$enableval" = yes; then | |
5192 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5193 | else | |
5194 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5195 | fi | |
5196 | ||
5197 | else | |
5198 | ||
5199 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5200 | if test "x$LINE" != x ; then | |
5201 | eval "DEFAULT_$LINE" | |
5202 | else | |
5203 | no_cache=1 | |
5204 | fi | |
5205 | ||
5206 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5207 | ||
5208 | fi; | |
5209 | ||
5210 | eval "$ac_cv_use_longlong" | |
5211 | if test "$no_cache" != 1; then | |
5212 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5213 | fi | |
5214 | ||
5215 | if test "$wxUSE_LONGLONG" = yes; then | |
5216 | echo "$as_me:$LINENO: result: yes" >&5 | |
5217 | echo "${ECHO_T}yes" >&6 | |
5218 | else | |
5219 | echo "$as_me:$LINENO: result: no" >&5 | |
5220 | echo "${ECHO_T}no" >&6 | |
5221 | fi | |
5222 | ||
5223 | ||
5224 | enablestring= | |
5225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5226 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5227 | no_cache=0 | |
5228 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5229 | if test "${enable_mimetype+set}" = set; then | |
5230 | enableval="$enable_mimetype" | |
5231 | ||
5232 | if test "$enableval" = yes; then | |
5233 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5234 | else | |
5235 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5236 | fi | |
5237 | ||
5238 | else | |
5239 | ||
5240 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5241 | if test "x$LINE" != x ; then | |
5242 | eval "DEFAULT_$LINE" | |
5243 | else | |
5244 | no_cache=1 | |
5245 | fi | |
5246 | ||
5247 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5248 | ||
5249 | fi; | |
5250 | ||
5251 | eval "$ac_cv_use_mimetype" | |
5252 | if test "$no_cache" != 1; then | |
5253 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5254 | fi | |
5255 | ||
5256 | if test "$wxUSE_MIMETYPE" = yes; then | |
5257 | echo "$as_me:$LINENO: result: yes" >&5 | |
5258 | echo "${ECHO_T}yes" >&6 | |
5259 | else | |
5260 | echo "$as_me:$LINENO: result: no" >&5 | |
5261 | echo "${ECHO_T}no" >&6 | |
5262 | fi | |
5263 | ||
5264 | ||
5265 | enablestring= | |
5266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5267 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5268 | no_cache=0 | |
5269 | # Check whether --enable-mslu or --disable-mslu was given. | |
5270 | if test "${enable_mslu+set}" = set; then | |
5271 | enableval="$enable_mslu" | |
5272 | ||
5273 | if test "$enableval" = yes; then | |
5274 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5275 | else | |
5276 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5277 | fi | |
5278 | ||
5279 | else | |
5280 | ||
5281 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5282 | if test "x$LINE" != x ; then | |
5283 | eval "DEFAULT_$LINE" | |
5284 | else | |
5285 | no_cache=1 | |
5286 | fi | |
5287 | ||
5288 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5289 | ||
5290 | fi; | |
5291 | ||
5292 | eval "$ac_cv_use_mslu" | |
5293 | if test "$no_cache" != 1; then | |
5294 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5295 | fi | |
5296 | ||
5297 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5298 | echo "$as_me:$LINENO: result: yes" >&5 | |
5299 | echo "${ECHO_T}yes" >&6 | |
5300 | else | |
5301 | echo "$as_me:$LINENO: result: no" >&5 | |
5302 | echo "${ECHO_T}no" >&6 | |
5303 | fi | |
5304 | ||
5305 | ||
5306 | enablestring= | |
5307 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5308 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5309 | no_cache=0 | |
5310 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5311 | if test "${enable_snglinst+set}" = set; then | |
5312 | enableval="$enable_snglinst" | |
5313 | ||
5314 | if test "$enableval" = yes; then | |
5315 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5316 | else | |
5317 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5318 | fi | |
5319 | ||
5320 | else | |
5321 | ||
5322 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5323 | if test "x$LINE" != x ; then | |
5324 | eval "DEFAULT_$LINE" | |
5325 | else | |
5326 | no_cache=1 | |
5327 | fi | |
5328 | ||
5329 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5330 | ||
5331 | fi; | |
5332 | ||
5333 | eval "$ac_cv_use_snglinst" | |
5334 | if test "$no_cache" != 1; then | |
5335 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5336 | fi | |
5337 | ||
5338 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5339 | echo "$as_me:$LINENO: result: yes" >&5 | |
5340 | echo "${ECHO_T}yes" >&6 | |
5341 | else | |
5342 | echo "$as_me:$LINENO: result: no" >&5 | |
5343 | echo "${ECHO_T}no" >&6 | |
5344 | fi | |
5345 | ||
5346 | ||
5347 | enablestring= | |
5348 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5349 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5350 | no_cache=0 | |
5351 | # Check whether --enable-streams or --disable-streams was given. | |
5352 | if test "${enable_streams+set}" = set; then | |
5353 | enableval="$enable_streams" | |
5354 | ||
5355 | if test "$enableval" = yes; then | |
5356 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5357 | else | |
5358 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5359 | fi | |
5360 | ||
5361 | else | |
5362 | ||
5363 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5364 | if test "x$LINE" != x ; then | |
5365 | eval "DEFAULT_$LINE" | |
5366 | else | |
5367 | no_cache=1 | |
5368 | fi | |
5369 | ||
5370 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5371 | ||
5372 | fi; | |
5373 | ||
5374 | eval "$ac_cv_use_streams" | |
5375 | if test "$no_cache" != 1; then | |
5376 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5377 | fi | |
5378 | ||
5379 | if test "$wxUSE_STREAMS" = yes; then | |
5380 | echo "$as_me:$LINENO: result: yes" >&5 | |
5381 | echo "${ECHO_T}yes" >&6 | |
5382 | else | |
5383 | echo "$as_me:$LINENO: result: no" >&5 | |
5384 | echo "${ECHO_T}no" >&6 | |
5385 | fi | |
5386 | ||
5387 | ||
5388 | enablestring= | |
5389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5390 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5391 | no_cache=0 | |
5392 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5393 | if test "${enable_std_iostreams+set}" = set; then | |
5394 | enableval="$enable_std_iostreams" | |
5395 | ||
5396 | if test "$enableval" = yes; then | |
5397 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5398 | else | |
5399 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5400 | fi | |
5401 | ||
5402 | else | |
5403 | ||
5404 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5405 | if test "x$LINE" != x ; then | |
5406 | eval "DEFAULT_$LINE" | |
5407 | else | |
5408 | no_cache=1 | |
5409 | fi | |
5410 | ||
5411 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5412 | ||
5413 | fi; | |
5414 | ||
5415 | eval "$ac_cv_use_std_iostreams" | |
5416 | if test "$no_cache" != 1; then | |
5417 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5418 | fi | |
5419 | ||
5420 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5421 | echo "$as_me:$LINENO: result: yes" >&5 | |
5422 | echo "${ECHO_T}yes" >&6 | |
5423 | else | |
5424 | echo "$as_me:$LINENO: result: no" >&5 | |
5425 | echo "${ECHO_T}no" >&6 | |
5426 | fi | |
5427 | ||
5428 | ||
5429 | enablestring= | |
5430 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5431 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5432 | no_cache=0 | |
5433 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5434 | if test "${enable_stopwatch+set}" = set; then | |
5435 | enableval="$enable_stopwatch" | |
5436 | ||
5437 | if test "$enableval" = yes; then | |
5438 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5439 | else | |
5440 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5441 | fi | |
5442 | ||
5443 | else | |
5444 | ||
5445 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5446 | if test "x$LINE" != x ; then | |
5447 | eval "DEFAULT_$LINE" | |
5448 | else | |
5449 | no_cache=1 | |
5450 | fi | |
5451 | ||
5452 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5453 | ||
5454 | fi; | |
5455 | ||
5456 | eval "$ac_cv_use_stopwatch" | |
5457 | if test "$no_cache" != 1; then | |
5458 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5459 | fi | |
5460 | ||
5461 | if test "$wxUSE_STOPWATCH" = yes; then | |
5462 | echo "$as_me:$LINENO: result: yes" >&5 | |
5463 | echo "${ECHO_T}yes" >&6 | |
5464 | else | |
5465 | echo "$as_me:$LINENO: result: no" >&5 | |
5466 | echo "${ECHO_T}no" >&6 | |
5467 | fi | |
5468 | ||
5469 | ||
5470 | enablestring= | |
5471 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5472 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5473 | no_cache=0 | |
5474 | # Check whether --enable-system_options or --disable-system_options was given. | |
5475 | if test "${enable_system_options+set}" = set; then | |
5476 | enableval="$enable_system_options" | |
5477 | ||
5478 | if test "$enableval" = yes; then | |
5479 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5480 | else | |
5481 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5482 | fi | |
5483 | ||
5484 | else | |
5485 | ||
5486 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5487 | if test "x$LINE" != x ; then | |
5488 | eval "DEFAULT_$LINE" | |
5489 | else | |
5490 | no_cache=1 | |
5491 | fi | |
5492 | ||
5493 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5494 | ||
5495 | fi; | |
5496 | ||
5497 | eval "$ac_cv_use_system_options" | |
5498 | if test "$no_cache" != 1; then | |
5499 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5500 | fi | |
5501 | ||
5502 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5503 | echo "$as_me:$LINENO: result: yes" >&5 | |
5504 | echo "${ECHO_T}yes" >&6 | |
5505 | else | |
5506 | echo "$as_me:$LINENO: result: no" >&5 | |
5507 | echo "${ECHO_T}no" >&6 | |
5508 | fi | |
5509 | ||
5510 | ||
5511 | enablestring= | |
5512 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5513 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5514 | no_cache=0 | |
5515 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5516 | if test "${enable_textbuf+set}" = set; then | |
5517 | enableval="$enable_textbuf" | |
5518 | ||
5519 | if test "$enableval" = yes; then | |
5520 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5521 | else | |
5522 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5523 | fi | |
5524 | ||
5525 | else | |
5526 | ||
5527 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5528 | if test "x$LINE" != x ; then | |
5529 | eval "DEFAULT_$LINE" | |
5530 | else | |
5531 | no_cache=1 | |
5532 | fi | |
5533 | ||
5534 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5535 | ||
5536 | fi; | |
5537 | ||
5538 | eval "$ac_cv_use_textbuf" | |
5539 | if test "$no_cache" != 1; then | |
5540 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5541 | fi | |
5542 | ||
5543 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5544 | echo "$as_me:$LINENO: result: yes" >&5 | |
5545 | echo "${ECHO_T}yes" >&6 | |
5546 | else | |
5547 | echo "$as_me:$LINENO: result: no" >&5 | |
5548 | echo "${ECHO_T}no" >&6 | |
5549 | fi | |
5550 | ||
5551 | ||
5552 | enablestring= | |
5553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5554 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5555 | no_cache=0 | |
5556 | # Check whether --enable-textfile or --disable-textfile was given. | |
5557 | if test "${enable_textfile+set}" = set; then | |
5558 | enableval="$enable_textfile" | |
5559 | ||
5560 | if test "$enableval" = yes; then | |
5561 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5562 | else | |
5563 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5564 | fi | |
5565 | ||
5566 | else | |
5567 | ||
5568 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5569 | if test "x$LINE" != x ; then | |
5570 | eval "DEFAULT_$LINE" | |
5571 | else | |
5572 | no_cache=1 | |
5573 | fi | |
5574 | ||
5575 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5576 | ||
5577 | fi; | |
5578 | ||
5579 | eval "$ac_cv_use_textfile" | |
5580 | if test "$no_cache" != 1; then | |
5581 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5582 | fi | |
5583 | ||
5584 | if test "$wxUSE_TEXTFILE" = yes; then | |
5585 | echo "$as_me:$LINENO: result: yes" >&5 | |
5586 | echo "${ECHO_T}yes" >&6 | |
5587 | else | |
5588 | echo "$as_me:$LINENO: result: no" >&5 | |
5589 | echo "${ECHO_T}no" >&6 | |
5590 | fi | |
5591 | ||
5592 | ||
5593 | enablestring= | |
5594 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5595 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5596 | no_cache=0 | |
5597 | # Check whether --enable-timer or --disable-timer was given. | |
5598 | if test "${enable_timer+set}" = set; then | |
5599 | enableval="$enable_timer" | |
5600 | ||
5601 | if test "$enableval" = yes; then | |
5602 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5603 | else | |
5604 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5605 | fi | |
5606 | ||
5607 | else | |
5608 | ||
5609 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5610 | if test "x$LINE" != x ; then | |
5611 | eval "DEFAULT_$LINE" | |
5612 | else | |
5613 | no_cache=1 | |
5614 | fi | |
5615 | ||
5616 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5617 | ||
5618 | fi; | |
5619 | ||
5620 | eval "$ac_cv_use_timer" | |
5621 | if test "$no_cache" != 1; then | |
5622 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5623 | fi | |
5624 | ||
5625 | if test "$wxUSE_TIMER" = yes; then | |
5626 | echo "$as_me:$LINENO: result: yes" >&5 | |
5627 | echo "${ECHO_T}yes" >&6 | |
5628 | else | |
5629 | echo "$as_me:$LINENO: result: no" >&5 | |
5630 | echo "${ECHO_T}no" >&6 | |
5631 | fi | |
5632 | ||
5633 | ||
5634 | enablestring= | |
5635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5636 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5637 | no_cache=0 | |
5638 | # Check whether --enable-unicode or --disable-unicode was given. | |
5639 | if test "${enable_unicode+set}" = set; then | |
5640 | enableval="$enable_unicode" | |
5641 | ||
5642 | if test "$enableval" = yes; then | |
5643 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5644 | else | |
5645 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5646 | fi | |
5647 | ||
5648 | else | |
5649 | ||
5650 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5651 | if test "x$LINE" != x ; then | |
5652 | eval "DEFAULT_$LINE" | |
5653 | else | |
5654 | no_cache=1 | |
5655 | fi | |
5656 | ||
5657 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5658 | ||
5659 | fi; | |
5660 | ||
5661 | eval "$ac_cv_use_unicode" | |
5662 | if test "$no_cache" != 1; then | |
5663 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5664 | fi | |
5665 | ||
5666 | if test "$wxUSE_UNICODE" = yes; then | |
5667 | echo "$as_me:$LINENO: result: yes" >&5 | |
5668 | echo "${ECHO_T}yes" >&6 | |
5669 | else | |
5670 | echo "$as_me:$LINENO: result: no" >&5 | |
5671 | echo "${ECHO_T}no" >&6 | |
5672 | fi | |
5673 | ||
5674 | ||
5675 | enablestring= | |
5676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5677 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5678 | no_cache=0 | |
5679 | # Check whether --enable-sound or --disable-sound was given. | |
5680 | if test "${enable_sound+set}" = set; then | |
5681 | enableval="$enable_sound" | |
5682 | ||
5683 | if test "$enableval" = yes; then | |
5684 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5685 | else | |
5686 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5687 | fi | |
5688 | ||
5689 | else | |
5690 | ||
5691 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5692 | if test "x$LINE" != x ; then | |
5693 | eval "DEFAULT_$LINE" | |
5694 | else | |
5695 | no_cache=1 | |
5696 | fi | |
5697 | ||
5698 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5699 | ||
5700 | fi; | |
5701 | ||
5702 | eval "$ac_cv_use_sound" | |
5703 | if test "$no_cache" != 1; then | |
5704 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5705 | fi | |
5706 | ||
5707 | if test "$wxUSE_SOUND" = yes; then | |
5708 | echo "$as_me:$LINENO: result: yes" >&5 | |
5709 | echo "${ECHO_T}yes" >&6 | |
5710 | else | |
5711 | echo "$as_me:$LINENO: result: no" >&5 | |
5712 | echo "${ECHO_T}no" >&6 | |
5713 | fi | |
5714 | ||
5715 | ||
5716 | enablestring= | |
5717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5718 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5719 | no_cache=0 | |
5720 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5721 | if test "${enable_wxprintfv+set}" = set; then | |
5722 | enableval="$enable_wxprintfv" | |
5723 | ||
5724 | if test "$enableval" = yes; then | |
5725 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5726 | else | |
5727 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5728 | fi | |
5729 | ||
5730 | else | |
5731 | ||
5732 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5733 | if test "x$LINE" != x ; then | |
5734 | eval "DEFAULT_$LINE" | |
5735 | else | |
5736 | no_cache=1 | |
5737 | fi | |
5738 | ||
5739 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5740 | ||
5741 | fi; | |
5742 | ||
5743 | eval "$ac_cv_use_wxprintfv" | |
5744 | if test "$no_cache" != 1; then | |
5745 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5746 | fi | |
5747 | ||
5748 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5749 | echo "$as_me:$LINENO: result: yes" >&5 | |
5750 | echo "${ECHO_T}yes" >&6 | |
5751 | else | |
5752 | echo "$as_me:$LINENO: result: no" >&5 | |
5753 | echo "${ECHO_T}no" >&6 | |
5754 | fi | |
5755 | ||
5756 | ||
5757 | enablestring= | |
5758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5759 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5760 | no_cache=0 | |
5761 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5762 | if test "${enable_zipstream+set}" = set; then | |
5763 | enableval="$enable_zipstream" | |
5764 | ||
5765 | if test "$enableval" = yes; then | |
5766 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5767 | else | |
5768 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5769 | fi | |
5770 | ||
5771 | else | |
5772 | ||
5773 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5774 | if test "x$LINE" != x ; then | |
5775 | eval "DEFAULT_$LINE" | |
5776 | else | |
5777 | no_cache=1 | |
5778 | fi | |
5779 | ||
5780 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5781 | ||
5782 | fi; | |
5783 | ||
5784 | eval "$ac_cv_use_zipstream" | |
5785 | if test "$no_cache" != 1; then | |
5786 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5787 | fi | |
5788 | ||
5789 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5790 | echo "$as_me:$LINENO: result: yes" >&5 | |
5791 | echo "${ECHO_T}yes" >&6 | |
5792 | else | |
5793 | echo "$as_me:$LINENO: result: no" >&5 | |
5794 | echo "${ECHO_T}no" >&6 | |
5795 | fi | |
5796 | ||
5797 | ||
a848cd7e SC |
5798 | |
5799 | enablestring= | |
5800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5801 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5802 | no_cache=0 | |
5803 | # Check whether --enable-url or --disable-url was given. | |
5804 | if test "${enable_url+set}" = set; then | |
5805 | enableval="$enable_url" | |
5806 | ||
5807 | if test "$enableval" = yes; then | |
5808 | ac_cv_use_url='wxUSE_URL=yes' | |
5809 | else | |
5810 | ac_cv_use_url='wxUSE_URL=no' | |
5811 | fi | |
5812 | ||
5813 | else | |
5814 | ||
5815 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5816 | if test "x$LINE" != x ; then | |
5817 | eval "DEFAULT_$LINE" | |
5818 | else | |
5819 | no_cache=1 | |
5820 | fi | |
5821 | ||
5822 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5823 | ||
5824 | fi; | |
5825 | ||
5826 | eval "$ac_cv_use_url" | |
5827 | if test "$no_cache" != 1; then | |
5828 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5829 | fi | |
5830 | ||
5831 | if test "$wxUSE_URL" = yes; then | |
5832 | echo "$as_me:$LINENO: result: yes" >&5 | |
5833 | echo "${ECHO_T}yes" >&6 | |
5834 | else | |
5835 | echo "$as_me:$LINENO: result: no" >&5 | |
5836 | echo "${ECHO_T}no" >&6 | |
5837 | fi | |
5838 | ||
5839 | ||
5840 | enablestring= | |
5841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5842 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5843 | no_cache=0 | |
5844 | # Check whether --enable-protocol or --disable-protocol was given. | |
5845 | if test "${enable_protocol+set}" = set; then | |
5846 | enableval="$enable_protocol" | |
5847 | ||
5848 | if test "$enableval" = yes; then | |
5849 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5850 | else | |
5851 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5852 | fi | |
5853 | ||
5854 | else | |
5855 | ||
5856 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5857 | if test "x$LINE" != x ; then | |
5858 | eval "DEFAULT_$LINE" | |
5859 | else | |
5860 | no_cache=1 | |
5861 | fi | |
5862 | ||
5863 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5864 | ||
5865 | fi; | |
5866 | ||
5867 | eval "$ac_cv_use_protocol" | |
5868 | if test "$no_cache" != 1; then | |
5869 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5870 | fi | |
5871 | ||
5872 | if test "$wxUSE_PROTOCOL" = yes; then | |
5873 | echo "$as_me:$LINENO: result: yes" >&5 | |
5874 | echo "${ECHO_T}yes" >&6 | |
5875 | else | |
5876 | echo "$as_me:$LINENO: result: no" >&5 | |
5877 | echo "${ECHO_T}no" >&6 | |
5878 | fi | |
5879 | ||
5880 | ||
5881 | enablestring= | |
5882 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5883 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5884 | no_cache=0 | |
5885 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5886 | if test "${enable_protocol_http+set}" = set; then | |
5887 | enableval="$enable_protocol_http" | |
5888 | ||
5889 | if test "$enableval" = yes; then | |
5890 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5891 | else | |
5892 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5893 | fi | |
5894 | ||
5895 | else | |
5896 | ||
5897 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5898 | if test "x$LINE" != x ; then | |
5899 | eval "DEFAULT_$LINE" | |
5900 | else | |
5901 | no_cache=1 | |
5902 | fi | |
5903 | ||
5904 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5905 | ||
5906 | fi; | |
5907 | ||
5908 | eval "$ac_cv_use_protocol_http" | |
5909 | if test "$no_cache" != 1; then | |
5910 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5911 | fi | |
5912 | ||
5913 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5914 | echo "$as_me:$LINENO: result: yes" >&5 | |
5915 | echo "${ECHO_T}yes" >&6 | |
5916 | else | |
5917 | echo "$as_me:$LINENO: result: no" >&5 | |
5918 | echo "${ECHO_T}no" >&6 | |
5919 | fi | |
5920 | ||
5921 | ||
5922 | enablestring= | |
5923 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5924 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5925 | no_cache=0 | |
5926 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5927 | if test "${enable_protocol_ftp+set}" = set; then | |
5928 | enableval="$enable_protocol_ftp" | |
5929 | ||
5930 | if test "$enableval" = yes; then | |
5931 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5932 | else | |
5933 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5934 | fi | |
5935 | ||
5936 | else | |
5937 | ||
5938 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5939 | if test "x$LINE" != x ; then | |
5940 | eval "DEFAULT_$LINE" | |
5941 | else | |
5942 | no_cache=1 | |
5943 | fi | |
5944 | ||
5945 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5946 | ||
5947 | fi; | |
5948 | ||
5949 | eval "$ac_cv_use_protocol_ftp" | |
5950 | if test "$no_cache" != 1; then | |
5951 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5952 | fi | |
5953 | ||
5954 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5955 | echo "$as_me:$LINENO: result: yes" >&5 | |
5956 | echo "${ECHO_T}yes" >&6 | |
5957 | else | |
5958 | echo "$as_me:$LINENO: result: no" >&5 | |
5959 | echo "${ECHO_T}no" >&6 | |
5960 | fi | |
5961 | ||
5962 | ||
5963 | enablestring= | |
5964 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5965 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5966 | no_cache=0 | |
5967 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5968 | if test "${enable_protocol_file+set}" = set; then | |
5969 | enableval="$enable_protocol_file" | |
5970 | ||
5971 | if test "$enableval" = yes; then | |
5972 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5973 | else | |
5974 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5975 | fi | |
5976 | ||
5977 | else | |
5978 | ||
5979 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5980 | if test "x$LINE" != x ; then | |
5981 | eval "DEFAULT_$LINE" | |
5982 | else | |
5983 | no_cache=1 | |
5984 | fi | |
5985 | ||
5986 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5987 | ||
5988 | fi; | |
5989 | ||
5990 | eval "$ac_cv_use_protocol_file" | |
5991 | if test "$no_cache" != 1; then | |
5992 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5993 | fi | |
5994 | ||
5995 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
5996 | echo "$as_me:$LINENO: result: yes" >&5 | |
5997 | echo "${ECHO_T}yes" >&6 | |
5998 | else | |
5999 | echo "$as_me:$LINENO: result: no" >&5 | |
6000 | echo "${ECHO_T}no" >&6 | |
6001 | fi | |
6002 | ||
6003 | ||
6004 | ||
6005 | ||
6006 | ||
6007 | enablestring= | |
6008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6009 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6010 | no_cache=0 | |
6011 | # Check whether --enable-threads or --disable-threads was given. | |
6012 | if test "${enable_threads+set}" = set; then | |
6013 | enableval="$enable_threads" | |
6014 | ||
6015 | if test "$enableval" = yes; then | |
6016 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6017 | else | |
6018 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6019 | fi | |
6020 | ||
6021 | else | |
6022 | ||
6023 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6024 | if test "x$LINE" != x ; then | |
6025 | eval "DEFAULT_$LINE" | |
6026 | else | |
6027 | no_cache=1 | |
6028 | fi | |
6029 | ||
6030 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6031 | ||
6032 | fi; | |
6033 | ||
6034 | eval "$ac_cv_use_threads" | |
6035 | if test "$no_cache" != 1; then | |
6036 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6037 | fi | |
6038 | ||
6039 | if test "$wxUSE_THREADS" = yes; then | |
6040 | echo "$as_me:$LINENO: result: yes" >&5 | |
6041 | echo "${ECHO_T}yes" >&6 | |
6042 | else | |
6043 | echo "$as_me:$LINENO: result: no" >&5 | |
6044 | echo "${ECHO_T}no" >&6 | |
6045 | fi | |
6046 | ||
6047 | ||
6048 | if test "$wxUSE_GUI" = "yes"; then | |
6049 | ||
6050 | ||
6051 | ||
6052 | enablestring= | |
6053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6054 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6055 | no_cache=0 | |
6056 | # Check whether --enable-docview or --disable-docview was given. | |
6057 | if test "${enable_docview+set}" = set; then | |
6058 | enableval="$enable_docview" | |
6059 | ||
6060 | if test "$enableval" = yes; then | |
6061 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6062 | else | |
6063 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6064 | fi | |
6065 | ||
6066 | else | |
6067 | ||
6068 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6069 | if test "x$LINE" != x ; then | |
6070 | eval "DEFAULT_$LINE" | |
6071 | else | |
6072 | no_cache=1 | |
6073 | fi | |
6074 | ||
6075 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6076 | ||
6077 | fi; | |
6078 | ||
6079 | eval "$ac_cv_use_docview" | |
6080 | if test "$no_cache" != 1; then | |
6081 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6082 | fi | |
6083 | ||
6084 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6085 | echo "$as_me:$LINENO: result: yes" >&5 | |
6086 | echo "${ECHO_T}yes" >&6 | |
6087 | else | |
6088 | echo "$as_me:$LINENO: result: no" >&5 | |
6089 | echo "${ECHO_T}no" >&6 | |
6090 | fi | |
6091 | ||
6092 | ||
6093 | enablestring= | |
6094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6095 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6096 | no_cache=0 | |
6097 | # Check whether --enable-help or --disable-help was given. | |
6098 | if test "${enable_help+set}" = set; then | |
6099 | enableval="$enable_help" | |
6100 | ||
6101 | if test "$enableval" = yes; then | |
6102 | ac_cv_use_help='wxUSE_HELP=yes' | |
6103 | else | |
6104 | ac_cv_use_help='wxUSE_HELP=no' | |
6105 | fi | |
6106 | ||
6107 | else | |
6108 | ||
6109 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6110 | if test "x$LINE" != x ; then | |
6111 | eval "DEFAULT_$LINE" | |
6112 | else | |
6113 | no_cache=1 | |
6114 | fi | |
6115 | ||
6116 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6117 | ||
6118 | fi; | |
6119 | ||
6120 | eval "$ac_cv_use_help" | |
6121 | if test "$no_cache" != 1; then | |
6122 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6123 | fi | |
6124 | ||
6125 | if test "$wxUSE_HELP" = yes; then | |
6126 | echo "$as_me:$LINENO: result: yes" >&5 | |
6127 | echo "${ECHO_T}yes" >&6 | |
6128 | else | |
6129 | echo "$as_me:$LINENO: result: no" >&5 | |
6130 | echo "${ECHO_T}no" >&6 | |
6131 | fi | |
6132 | ||
6133 | ||
6134 | enablestring= | |
6135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6136 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6137 | no_cache=0 | |
6138 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6139 | if test "${enable_mshtmlhelp+set}" = set; then | |
6140 | enableval="$enable_mshtmlhelp" | |
6141 | ||
6142 | if test "$enableval" = yes; then | |
6143 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6144 | else | |
6145 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6146 | fi | |
6147 | ||
6148 | else | |
6149 | ||
6150 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6151 | if test "x$LINE" != x ; then | |
6152 | eval "DEFAULT_$LINE" | |
6153 | else | |
6154 | no_cache=1 | |
6155 | fi | |
6156 | ||
6157 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6158 | ||
6159 | fi; | |
6160 | ||
6161 | eval "$ac_cv_use_mshtmlhelp" | |
6162 | if test "$no_cache" != 1; then | |
6163 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6164 | fi | |
6165 | ||
6166 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6167 | echo "$as_me:$LINENO: result: yes" >&5 | |
6168 | echo "${ECHO_T}yes" >&6 | |
6169 | else | |
6170 | echo "$as_me:$LINENO: result: no" >&5 | |
6171 | echo "${ECHO_T}no" >&6 | |
6172 | fi | |
6173 | ||
6174 | ||
6175 | enablestring= | |
6176 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6177 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6178 | no_cache=0 | |
6179 | # Check whether --enable-html or --disable-html was given. | |
6180 | if test "${enable_html+set}" = set; then | |
6181 | enableval="$enable_html" | |
6182 | ||
6183 | if test "$enableval" = yes; then | |
6184 | ac_cv_use_html='wxUSE_HTML=yes' | |
6185 | else | |
6186 | ac_cv_use_html='wxUSE_HTML=no' | |
6187 | fi | |
6188 | ||
6189 | else | |
6190 | ||
6191 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6192 | if test "x$LINE" != x ; then | |
6193 | eval "DEFAULT_$LINE" | |
6194 | else | |
6195 | no_cache=1 | |
6196 | fi | |
6197 | ||
6198 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6199 | ||
6200 | fi; | |
6201 | ||
6202 | eval "$ac_cv_use_html" | |
6203 | if test "$no_cache" != 1; then | |
6204 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6205 | fi | |
6206 | ||
6207 | if test "$wxUSE_HTML" = yes; then | |
6208 | echo "$as_me:$LINENO: result: yes" >&5 | |
6209 | echo "${ECHO_T}yes" >&6 | |
6210 | else | |
6211 | echo "$as_me:$LINENO: result: no" >&5 | |
6212 | echo "${ECHO_T}no" >&6 | |
6213 | fi | |
6214 | ||
6215 | ||
6216 | enablestring= | |
6217 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6218 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6219 | no_cache=0 | |
6220 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6221 | if test "${enable_htmlhelp+set}" = set; then | |
6222 | enableval="$enable_htmlhelp" | |
6223 | ||
6224 | if test "$enableval" = yes; then | |
6225 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6226 | else | |
6227 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6228 | fi | |
6229 | ||
6230 | else | |
6231 | ||
6232 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6233 | if test "x$LINE" != x ; then | |
6234 | eval "DEFAULT_$LINE" | |
6235 | else | |
6236 | no_cache=1 | |
6237 | fi | |
6238 | ||
6239 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6240 | ||
6241 | fi; | |
6242 | ||
6243 | eval "$ac_cv_use_htmlhelp" | |
6244 | if test "$no_cache" != 1; then | |
6245 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6246 | fi | |
6247 | ||
6248 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6249 | echo "$as_me:$LINENO: result: yes" >&5 | |
6250 | echo "${ECHO_T}yes" >&6 | |
6251 | else | |
6252 | echo "$as_me:$LINENO: result: no" >&5 | |
6253 | echo "${ECHO_T}no" >&6 | |
6254 | fi | |
6255 | ||
6256 | ||
6257 | enablestring= | |
6258 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6259 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6260 | no_cache=0 | |
6261 | # Check whether --enable-constraints or --disable-constraints was given. | |
6262 | if test "${enable_constraints+set}" = set; then | |
6263 | enableval="$enable_constraints" | |
6264 | ||
6265 | if test "$enableval" = yes; then | |
6266 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6267 | else | |
6268 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6269 | fi | |
6270 | ||
6271 | else | |
6272 | ||
6273 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6274 | if test "x$LINE" != x ; then | |
6275 | eval "DEFAULT_$LINE" | |
6276 | else | |
6277 | no_cache=1 | |
6278 | fi | |
6279 | ||
6280 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6281 | ||
6282 | fi; | |
6283 | ||
6284 | eval "$ac_cv_use_constraints" | |
6285 | if test "$no_cache" != 1; then | |
6286 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6287 | fi | |
6288 | ||
6289 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6290 | echo "$as_me:$LINENO: result: yes" >&5 | |
6291 | echo "${ECHO_T}yes" >&6 | |
6292 | else | |
6293 | echo "$as_me:$LINENO: result: no" >&5 | |
6294 | echo "${ECHO_T}no" >&6 | |
6295 | fi | |
6296 | ||
6297 | ||
6298 | enablestring= | |
6299 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6300 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6301 | no_cache=0 | |
6302 | # Check whether --enable-printarch or --disable-printarch was given. | |
6303 | if test "${enable_printarch+set}" = set; then | |
6304 | enableval="$enable_printarch" | |
6305 | ||
6306 | if test "$enableval" = yes; then | |
6307 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6308 | else | |
6309 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6310 | fi | |
6311 | ||
6312 | else | |
6313 | ||
6314 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6315 | if test "x$LINE" != x ; then | |
6316 | eval "DEFAULT_$LINE" | |
6317 | else | |
6318 | no_cache=1 | |
6319 | fi | |
6320 | ||
6321 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6322 | ||
6323 | fi; | |
6324 | ||
6325 | eval "$ac_cv_use_printarch" | |
6326 | if test "$no_cache" != 1; then | |
6327 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6328 | fi | |
6329 | ||
6330 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6331 | echo "$as_me:$LINENO: result: yes" >&5 | |
6332 | echo "${ECHO_T}yes" >&6 | |
6333 | else | |
6334 | echo "$as_me:$LINENO: result: no" >&5 | |
6335 | echo "${ECHO_T}no" >&6 | |
6336 | fi | |
6337 | ||
6338 | ||
6339 | enablestring= | |
6340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6341 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6342 | no_cache=0 | |
6343 | # Check whether --enable-mdi or --disable-mdi was given. | |
6344 | if test "${enable_mdi+set}" = set; then | |
6345 | enableval="$enable_mdi" | |
6346 | ||
6347 | if test "$enableval" = yes; then | |
8a7b1113 | 6348 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6349 | else |
8a7b1113 | 6350 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6351 | fi |
6352 | ||
6353 | else | |
6354 | ||
8a7b1113 | 6355 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6356 | if test "x$LINE" != x ; then |
6357 | eval "DEFAULT_$LINE" | |
6358 | else | |
6359 | no_cache=1 | |
6360 | fi | |
6361 | ||
8a7b1113 | 6362 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6363 | |
6364 | fi; | |
6365 | ||
6366 | eval "$ac_cv_use_mdi" | |
6367 | if test "$no_cache" != 1; then | |
6368 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6369 | fi | |
6370 | ||
8a7b1113 VZ |
6371 | if test "$wxUSE_MDI" = yes; then |
6372 | echo "$as_me:$LINENO: result: yes" >&5 | |
6373 | echo "${ECHO_T}yes" >&6 | |
6374 | else | |
6375 | echo "$as_me:$LINENO: result: no" >&5 | |
6376 | echo "${ECHO_T}no" >&6 | |
6377 | fi | |
6378 | ||
6379 | ||
6380 | enablestring= | |
6381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6382 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6383 | no_cache=0 | |
6384 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6385 | if test "${enable_mdidoc+set}" = set; then | |
6386 | enableval="$enable_mdidoc" | |
6387 | ||
6388 | if test "$enableval" = yes; then | |
6389 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6390 | else | |
6391 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6392 | fi | |
6393 | ||
6394 | else | |
6395 | ||
6396 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6397 | if test "x$LINE" != x ; then | |
6398 | eval "DEFAULT_$LINE" | |
6399 | else | |
6400 | no_cache=1 | |
6401 | fi | |
6402 | ||
6403 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6404 | ||
6405 | fi; | |
6406 | ||
6407 | eval "$ac_cv_use_mdidoc" | |
6408 | if test "$no_cache" != 1; then | |
6409 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6410 | fi | |
6411 | ||
a848cd7e SC |
6412 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6413 | echo "$as_me:$LINENO: result: yes" >&5 | |
6414 | echo "${ECHO_T}yes" >&6 | |
6415 | else | |
6416 | echo "$as_me:$LINENO: result: no" >&5 | |
6417 | echo "${ECHO_T}no" >&6 | |
6418 | fi | |
6419 | ||
6420 | ||
6421 | enablestring= | |
6422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6423 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6424 | no_cache=0 | |
6425 | # Check whether --enable-loggui or --disable-loggui was given. | |
6426 | if test "${enable_loggui+set}" = set; then | |
6427 | enableval="$enable_loggui" | |
6428 | ||
6429 | if test "$enableval" = yes; then | |
6430 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6431 | else | |
6432 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6433 | fi | |
6434 | ||
6435 | else | |
6436 | ||
6437 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6438 | if test "x$LINE" != x ; then | |
6439 | eval "DEFAULT_$LINE" | |
6440 | else | |
6441 | no_cache=1 | |
6442 | fi | |
6443 | ||
6444 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6445 | ||
6446 | fi; | |
6447 | ||
6448 | eval "$ac_cv_use_loggui" | |
6449 | if test "$no_cache" != 1; then | |
6450 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6451 | fi | |
6452 | ||
6453 | if test "$wxUSE_LOGGUI" = yes; then | |
6454 | echo "$as_me:$LINENO: result: yes" >&5 | |
6455 | echo "${ECHO_T}yes" >&6 | |
6456 | else | |
6457 | echo "$as_me:$LINENO: result: no" >&5 | |
6458 | echo "${ECHO_T}no" >&6 | |
6459 | fi | |
6460 | ||
6461 | ||
6462 | enablestring= | |
6463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6464 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6465 | no_cache=0 | |
6466 | # Check whether --enable-logwin or --disable-logwin was given. | |
6467 | if test "${enable_logwin+set}" = set; then | |
6468 | enableval="$enable_logwin" | |
6469 | ||
6470 | if test "$enableval" = yes; then | |
6471 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6472 | else | |
6473 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6474 | fi | |
6475 | ||
6476 | else | |
6477 | ||
6478 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6479 | if test "x$LINE" != x ; then | |
6480 | eval "DEFAULT_$LINE" | |
6481 | else | |
6482 | no_cache=1 | |
6483 | fi | |
6484 | ||
6485 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6486 | ||
6487 | fi; | |
6488 | ||
6489 | eval "$ac_cv_use_logwin" | |
6490 | if test "$no_cache" != 1; then | |
6491 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6492 | fi | |
6493 | ||
6494 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6495 | echo "$as_me:$LINENO: result: yes" >&5 | |
6496 | echo "${ECHO_T}yes" >&6 | |
6497 | else | |
6498 | echo "$as_me:$LINENO: result: no" >&5 | |
6499 | echo "${ECHO_T}no" >&6 | |
6500 | fi | |
6501 | ||
6502 | ||
6503 | enablestring= | |
6504 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6505 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6506 | no_cache=0 | |
6507 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6508 | if test "${enable_logdialog+set}" = set; then | |
6509 | enableval="$enable_logdialog" | |
6510 | ||
6511 | if test "$enableval" = yes; then | |
6512 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6513 | else | |
6514 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6515 | fi | |
6516 | ||
6517 | else | |
6518 | ||
6519 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6520 | if test "x$LINE" != x ; then | |
6521 | eval "DEFAULT_$LINE" | |
6522 | else | |
6523 | no_cache=1 | |
6524 | fi | |
6525 | ||
6526 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6527 | ||
6528 | fi; | |
6529 | ||
6530 | eval "$ac_cv_use_logdialog" | |
6531 | if test "$no_cache" != 1; then | |
6532 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6533 | fi | |
6534 | ||
6535 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6536 | echo "$as_me:$LINENO: result: yes" >&5 | |
6537 | echo "${ECHO_T}yes" >&6 | |
6538 | else | |
6539 | echo "$as_me:$LINENO: result: no" >&5 | |
6540 | echo "${ECHO_T}no" >&6 | |
6541 | fi | |
6542 | ||
6543 | ||
646b6ec1 VS |
6544 | enablestring= |
6545 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6546 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6547 | no_cache=0 | |
6548 | # Check whether --enable-webkit or --disable-webkit was given. | |
6549 | if test "${enable_webkit+set}" = set; then | |
6550 | enableval="$enable_webkit" | |
6551 | ||
6552 | if test "$enableval" = yes; then | |
6553 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6554 | else | |
6555 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6556 | fi | |
6557 | ||
6558 | else | |
6559 | ||
6560 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6561 | if test "x$LINE" != x ; then | |
6562 | eval "DEFAULT_$LINE" | |
6563 | else | |
6564 | no_cache=1 | |
6565 | fi | |
6566 | ||
6567 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6568 | ||
6569 | fi; | |
6570 | ||
6571 | eval "$ac_cv_use_webkit" | |
6572 | if test "$no_cache" != 1; then | |
6573 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6574 | fi | |
6575 | ||
6576 | if test "$wxUSE_WEBKIT" = yes; then | |
6577 | echo "$as_me:$LINENO: result: yes" >&5 | |
6578 | echo "${ECHO_T}yes" >&6 | |
6579 | else | |
6580 | echo "$as_me:$LINENO: result: no" >&5 | |
6581 | echo "${ECHO_T}no" >&6 | |
6582 | fi | |
6583 | ||
6584 | ||
a848cd7e SC |
6585 | |
6586 | enablestring= | |
6587 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6588 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6589 | no_cache=0 | |
6590 | # Check whether --enable-postscript or --disable-postscript was given. | |
6591 | if test "${enable_postscript+set}" = set; then | |
6592 | enableval="$enable_postscript" | |
6593 | ||
6594 | if test "$enableval" = yes; then | |
6595 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6596 | else | |
6597 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6598 | fi | |
6599 | ||
6600 | else | |
6601 | ||
6602 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6603 | if test "x$LINE" != x ; then | |
6604 | eval "DEFAULT_$LINE" | |
6605 | else | |
6606 | no_cache=1 | |
6607 | fi | |
6608 | ||
6609 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6610 | ||
6611 | fi; | |
6612 | ||
6613 | eval "$ac_cv_use_postscript" | |
6614 | if test "$no_cache" != 1; then | |
6615 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6616 | fi | |
6617 | ||
6618 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6619 | echo "$as_me:$LINENO: result: yes" >&5 | |
6620 | echo "${ECHO_T}yes" >&6 | |
6621 | else | |
6622 | echo "$as_me:$LINENO: result: no" >&5 | |
6623 | echo "${ECHO_T}no" >&6 | |
6624 | fi | |
6625 | ||
6626 | ||
6627 | ||
6628 | ||
6629 | ||
6630 | enablestring= | |
6631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6632 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6633 | no_cache=0 | |
6634 | # Check whether --enable-prologio or --disable-prologio was given. | |
6635 | if test "${enable_prologio+set}" = set; then | |
6636 | enableval="$enable_prologio" | |
6637 | ||
6638 | if test "$enableval" = yes; then | |
6639 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6640 | else | |
6641 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6642 | fi | |
6643 | ||
6644 | else | |
6645 | ||
6646 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6647 | if test "x$LINE" != x ; then | |
6648 | eval "DEFAULT_$LINE" | |
6649 | else | |
6650 | no_cache=1 | |
6651 | fi | |
6652 | ||
6653 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6654 | ||
6655 | fi; | |
6656 | ||
6657 | eval "$ac_cv_use_prologio" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_PROLOGIO" = yes; then | |
6663 | echo "$as_me:$LINENO: result: yes" >&5 | |
6664 | echo "${ECHO_T}yes" >&6 | |
6665 | else | |
6666 | echo "$as_me:$LINENO: result: no" >&5 | |
6667 | echo "${ECHO_T}no" >&6 | |
6668 | fi | |
6669 | ||
6670 | ||
6671 | enablestring= | |
6672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6673 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6674 | no_cache=0 | |
6675 | # Check whether --enable-resources or --disable-resources was given. | |
6676 | if test "${enable_resources+set}" = set; then | |
6677 | enableval="$enable_resources" | |
6678 | ||
6679 | if test "$enableval" = yes; then | |
6680 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6681 | else | |
6682 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6683 | fi | |
6684 | ||
6685 | else | |
6686 | ||
6687 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6688 | if test "x$LINE" != x ; then | |
6689 | eval "DEFAULT_$LINE" | |
6690 | else | |
6691 | no_cache=1 | |
6692 | fi | |
6693 | ||
6694 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6695 | ||
6696 | fi; | |
6697 | ||
6698 | eval "$ac_cv_use_resources" | |
6699 | if test "$no_cache" != 1; then | |
6700 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6701 | fi | |
6702 | ||
6703 | if test "$wxUSE_RESOURCES" = yes; then | |
6704 | echo "$as_me:$LINENO: result: yes" >&5 | |
6705 | echo "${ECHO_T}yes" >&6 | |
6706 | else | |
6707 | echo "$as_me:$LINENO: result: no" >&5 | |
6708 | echo "${ECHO_T}no" >&6 | |
6709 | fi | |
6710 | ||
6711 | ||
6712 | ||
6713 | ||
6714 | enablestring= | |
6715 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6716 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6717 | no_cache=0 | |
6718 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6719 | if test "${enable_clipboard+set}" = set; then | |
6720 | enableval="$enable_clipboard" | |
6721 | ||
6722 | if test "$enableval" = yes; then | |
6723 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6724 | else | |
6725 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6726 | fi | |
6727 | ||
6728 | else | |
6729 | ||
6730 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6731 | if test "x$LINE" != x ; then | |
6732 | eval "DEFAULT_$LINE" | |
6733 | else | |
6734 | no_cache=1 | |
6735 | fi | |
6736 | ||
6737 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6738 | ||
6739 | fi; | |
6740 | ||
6741 | eval "$ac_cv_use_clipboard" | |
6742 | if test "$no_cache" != 1; then | |
6743 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6744 | fi | |
6745 | ||
6746 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6747 | echo "$as_me:$LINENO: result: yes" >&5 | |
6748 | echo "${ECHO_T}yes" >&6 | |
6749 | else | |
6750 | echo "$as_me:$LINENO: result: no" >&5 | |
6751 | echo "${ECHO_T}no" >&6 | |
6752 | fi | |
6753 | ||
6754 | ||
6755 | enablestring= | |
6756 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6757 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6758 | no_cache=0 | |
6759 | # Check whether --enable-dnd or --disable-dnd was given. | |
6760 | if test "${enable_dnd+set}" = set; then | |
6761 | enableval="$enable_dnd" | |
6762 | ||
6763 | if test "$enableval" = yes; then | |
6764 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6765 | else | |
6766 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6767 | fi | |
6768 | ||
6769 | else | |
6770 | ||
6771 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6772 | if test "x$LINE" != x ; then | |
6773 | eval "DEFAULT_$LINE" | |
6774 | else | |
6775 | no_cache=1 | |
6776 | fi | |
6777 | ||
6778 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6779 | ||
6780 | fi; | |
6781 | ||
6782 | eval "$ac_cv_use_dnd" | |
6783 | if test "$no_cache" != 1; then | |
6784 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6785 | fi | |
6786 | ||
6787 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6788 | echo "$as_me:$LINENO: result: yes" >&5 | |
6789 | echo "${ECHO_T}yes" >&6 | |
6790 | else | |
6791 | echo "$as_me:$LINENO: result: no" >&5 | |
6792 | echo "${ECHO_T}no" >&6 | |
6793 | fi | |
6794 | ||
6795 | ||
6796 | enablestring= | |
6797 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6798 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6799 | no_cache=0 | |
6800 | # Check whether --enable-metafile or --disable-metafile was given. | |
6801 | if test "${enable_metafile+set}" = set; then | |
6802 | enableval="$enable_metafile" | |
6803 | ||
6804 | if test "$enableval" = yes; then | |
6805 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6806 | else | |
6807 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6808 | fi | |
6809 | ||
6810 | else | |
6811 | ||
6812 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6813 | if test "x$LINE" != x ; then | |
6814 | eval "DEFAULT_$LINE" | |
6815 | else | |
6816 | no_cache=1 | |
6817 | fi | |
6818 | ||
6819 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6820 | ||
6821 | fi; | |
6822 | ||
6823 | eval "$ac_cv_use_metafile" | |
6824 | if test "$no_cache" != 1; then | |
6825 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6826 | fi | |
6827 | ||
6828 | if test "$wxUSE_METAFILE" = yes; then | |
6829 | echo "$as_me:$LINENO: result: yes" >&5 | |
6830 | echo "${ECHO_T}yes" >&6 | |
6831 | else | |
6832 | echo "$as_me:$LINENO: result: no" >&5 | |
6833 | echo "${ECHO_T}no" >&6 | |
6834 | fi | |
6835 | ||
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6840 | enablestring= | |
6841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6842 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6843 | no_cache=0 | |
6844 | # Check whether --enable-controls or --disable-controls was given. | |
6845 | if test "${enable_controls+set}" = set; then | |
6846 | enableval="$enable_controls" | |
6847 | ||
6848 | if test "$enableval" = yes; then | |
6849 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6850 | else | |
6851 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6852 | fi | |
6853 | ||
6854 | else | |
6855 | ||
6856 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6857 | if test "x$LINE" != x ; then | |
6858 | eval "DEFAULT_$LINE" | |
6859 | else | |
6860 | no_cache=1 | |
6861 | fi | |
6862 | ||
6863 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6864 | ||
6865 | fi; | |
6866 | ||
6867 | eval "$ac_cv_use_controls" | |
6868 | if test "$no_cache" != 1; then | |
6869 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6870 | fi | |
6871 | ||
6872 | if test "$wxUSE_CONTROLS" = yes; then | |
6873 | echo "$as_me:$LINENO: result: yes" >&5 | |
6874 | echo "${ECHO_T}yes" >&6 | |
6875 | else | |
6876 | echo "$as_me:$LINENO: result: no" >&5 | |
6877 | echo "${ECHO_T}no" >&6 | |
6878 | fi | |
6879 | ||
6880 | ||
6881 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6882 | DEFAULT_wxUSE_ACCEL=yes | |
6883 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6884 | DEFAULT_wxUSE_BUTTON=yes | |
6885 | DEFAULT_wxUSE_CALCTRL=no | |
6886 | DEFAULT_wxUSE_CARET=yes | |
6887 | DEFAULT_wxUSE_COMBOBOX=yes | |
6888 | DEFAULT_wxUSE_CHECKBOX=yes | |
6889 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6890 | DEFAULT_wxUSE_CHOICE=yes | |
6891 | DEFAULT_wxUSE_GAUGE=yes | |
6892 | DEFAULT_wxUSE_GRID=yes | |
6893 | DEFAULT_wxUSE_IMAGLIST=yes | |
6894 | DEFAULT_wxUSE_LISTBOOK=yes | |
6895 | DEFAULT_wxUSE_LISTBOX=yes | |
6896 | DEFAULT_wxUSE_LISTCTRL=yes | |
6897 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6898 | DEFAULT_wxUSE_RADIOBOX=yes | |
6899 | DEFAULT_wxUSE_RADIOBTN=yes | |
6900 | DEFAULT_wxUSE_SASH=yes | |
6901 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6902 | DEFAULT_wxUSE_SLIDER=yes | |
6903 | DEFAULT_wxUSE_SPINBTN=yes | |
6904 | DEFAULT_wxUSE_SPINCTRL=yes | |
6905 | DEFAULT_wxUSE_SPLITTER=yes | |
6906 | DEFAULT_wxUSE_STATBMP=yes | |
6907 | DEFAULT_wxUSE_STATBOX=yes | |
6908 | DEFAULT_wxUSE_STATLINE=yes | |
6909 | DEFAULT_wxUSE_STATUSBAR=yes | |
6910 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6911 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6912 | DEFAULT_wxUSE_TOOLBAR=yes | |
6913 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6914 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6915 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6916 | DEFAULT_wxUSE_TREECTRL=yes | |
6917 | DEFAULT_wxUSE_POPUPWIN=yes | |
6918 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6919 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6920 | DEFAULT_wxUSE_ACCEL=no | |
6921 | DEFAULT_wxUSE_BMPBUTTON=no | |
6922 | DEFAULT_wxUSE_BUTTON=no | |
6923 | DEFAULT_wxUSE_CALCTRL=no | |
6924 | DEFAULT_wxUSE_CARET=no | |
6925 | DEFAULT_wxUSE_COMBOBOX=no | |
6926 | DEFAULT_wxUSE_CHECKBOX=no | |
6927 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6928 | DEFAULT_wxUSE_CHOICE=no | |
6929 | DEFAULT_wxUSE_GAUGE=no | |
6930 | DEFAULT_wxUSE_GRID=no | |
6931 | DEFAULT_wxUSE_IMAGLIST=no | |
6932 | DEFAULT_wxUSE_LISTBOOK=no | |
6933 | DEFAULT_wxUSE_LISTBOX=no | |
6934 | DEFAULT_wxUSE_LISTCTRL=no | |
6935 | DEFAULT_wxUSE_NOTEBOOK=no | |
6936 | DEFAULT_wxUSE_RADIOBOX=no | |
6937 | DEFAULT_wxUSE_RADIOBTN=no | |
6938 | DEFAULT_wxUSE_SASH=no | |
6939 | DEFAULT_wxUSE_SCROLLBAR=no | |
6940 | DEFAULT_wxUSE_SLIDER=no | |
6941 | DEFAULT_wxUSE_SPINBTN=no | |
6942 | DEFAULT_wxUSE_SPINCTRL=no | |
6943 | DEFAULT_wxUSE_SPLITTER=no | |
6944 | DEFAULT_wxUSE_STATBMP=no | |
6945 | DEFAULT_wxUSE_STATBOX=no | |
6946 | DEFAULT_wxUSE_STATLINE=no | |
6947 | DEFAULT_wxUSE_STATUSBAR=no | |
6948 | DEFAULT_wxUSE_TAB_DIALOG=no | |
6949 | DEFAULT_wxUSE_TOGGLEBTN=no | |
6950 | DEFAULT_wxUSE_TOOLBAR=no | |
6951 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
6952 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
6953 | DEFAULT_wxUSE_TOOLTIPS=no | |
6954 | DEFAULT_wxUSE_TREECTRL=no | |
6955 | DEFAULT_wxUSE_POPUPWIN=no | |
6956 | DEFAULT_wxUSE_TIPWINDOW=no | |
6957 | fi | |
6958 | ||
6959 | ## FIXME: This is a blatant hack | |
6960 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6961 | wxUSE_PRINTING_ARCHITECTURE=no | |
6962 | wxUSE_DRAG_AND_DROP=no | |
a848cd7e SC |
6963 | DEFAULT_wxUSE_TOOLTIPS=no |
6964 | DEFAULT_wxUSE_DRAGIMAGE=no | |
6965 | fi | |
6966 | ||
6967 | ||
6968 | enablestring= | |
6969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
6970 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
6971 | no_cache=0 | |
6972 | # Check whether --enable-accel or --disable-accel was given. | |
6973 | if test "${enable_accel+set}" = set; then | |
6974 | enableval="$enable_accel" | |
6975 | ||
6976 | if test "$enableval" = yes; then | |
6977 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6978 | else | |
6979 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6980 | fi | |
6981 | ||
6982 | else | |
6983 | ||
6984 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
6985 | if test "x$LINE" != x ; then | |
6986 | eval "DEFAULT_$LINE" | |
6987 | else | |
6988 | no_cache=1 | |
6989 | fi | |
6990 | ||
6991 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
6992 | ||
6993 | fi; | |
6994 | ||
6995 | eval "$ac_cv_use_accel" | |
6996 | if test "$no_cache" != 1; then | |
6997 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6998 | fi | |
6999 | ||
7000 | if test "$wxUSE_ACCEL" = yes; then | |
7001 | echo "$as_me:$LINENO: result: yes" >&5 | |
7002 | echo "${ECHO_T}yes" >&6 | |
7003 | else | |
7004 | echo "$as_me:$LINENO: result: no" >&5 | |
7005 | echo "${ECHO_T}no" >&6 | |
7006 | fi | |
7007 | ||
7008 | ||
7009 | enablestring= | |
7010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7011 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7012 | no_cache=0 | |
7013 | # Check whether --enable-button or --disable-button was given. | |
7014 | if test "${enable_button+set}" = set; then | |
7015 | enableval="$enable_button" | |
7016 | ||
7017 | if test "$enableval" = yes; then | |
7018 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7019 | else | |
7020 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7021 | fi | |
7022 | ||
7023 | else | |
7024 | ||
7025 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7026 | if test "x$LINE" != x ; then | |
7027 | eval "DEFAULT_$LINE" | |
7028 | else | |
7029 | no_cache=1 | |
7030 | fi | |
7031 | ||
7032 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7033 | ||
7034 | fi; | |
7035 | ||
7036 | eval "$ac_cv_use_button" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_BUTTON" = yes; then | |
7042 | echo "$as_me:$LINENO: result: yes" >&5 | |
7043 | echo "${ECHO_T}yes" >&6 | |
7044 | else | |
7045 | echo "$as_me:$LINENO: result: no" >&5 | |
7046 | echo "${ECHO_T}no" >&6 | |
7047 | fi | |
7048 | ||
7049 | ||
7050 | enablestring= | |
7051 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7052 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7053 | no_cache=0 | |
7054 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7055 | if test "${enable_bmpbutton+set}" = set; then | |
7056 | enableval="$enable_bmpbutton" | |
7057 | ||
7058 | if test "$enableval" = yes; then | |
7059 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7060 | else | |
7061 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7062 | fi | |
7063 | ||
7064 | else | |
7065 | ||
7066 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7067 | if test "x$LINE" != x ; then | |
7068 | eval "DEFAULT_$LINE" | |
7069 | else | |
7070 | no_cache=1 | |
7071 | fi | |
7072 | ||
7073 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7074 | ||
7075 | fi; | |
7076 | ||
7077 | eval "$ac_cv_use_bmpbutton" | |
7078 | if test "$no_cache" != 1; then | |
7079 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7080 | fi | |
7081 | ||
7082 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7083 | echo "$as_me:$LINENO: result: yes" >&5 | |
7084 | echo "${ECHO_T}yes" >&6 | |
7085 | else | |
7086 | echo "$as_me:$LINENO: result: no" >&5 | |
7087 | echo "${ECHO_T}no" >&6 | |
7088 | fi | |
7089 | ||
7090 | ||
7091 | enablestring= | |
7092 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7093 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7094 | no_cache=0 | |
7095 | # Check whether --enable-calendar or --disable-calendar was given. | |
7096 | if test "${enable_calendar+set}" = set; then | |
7097 | enableval="$enable_calendar" | |
7098 | ||
7099 | if test "$enableval" = yes; then | |
7100 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7101 | else | |
7102 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7103 | fi | |
7104 | ||
7105 | else | |
7106 | ||
7107 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7108 | if test "x$LINE" != x ; then | |
7109 | eval "DEFAULT_$LINE" | |
7110 | else | |
7111 | no_cache=1 | |
7112 | fi | |
7113 | ||
7114 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7115 | ||
7116 | fi; | |
7117 | ||
7118 | eval "$ac_cv_use_calendar" | |
7119 | if test "$no_cache" != 1; then | |
7120 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7121 | fi | |
7122 | ||
7123 | if test "$wxUSE_CALCTRL" = yes; then | |
7124 | echo "$as_me:$LINENO: result: yes" >&5 | |
7125 | echo "${ECHO_T}yes" >&6 | |
7126 | else | |
7127 | echo "$as_me:$LINENO: result: no" >&5 | |
7128 | echo "${ECHO_T}no" >&6 | |
7129 | fi | |
7130 | ||
7131 | ||
7132 | enablestring= | |
7133 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7134 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7135 | no_cache=0 | |
7136 | # Check whether --enable-caret or --disable-caret was given. | |
7137 | if test "${enable_caret+set}" = set; then | |
7138 | enableval="$enable_caret" | |
7139 | ||
7140 | if test "$enableval" = yes; then | |
7141 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7142 | else | |
7143 | ac_cv_use_caret='wxUSE_CARET=no' | |
7144 | fi | |
7145 | ||
7146 | else | |
7147 | ||
7148 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7149 | if test "x$LINE" != x ; then | |
7150 | eval "DEFAULT_$LINE" | |
7151 | else | |
7152 | no_cache=1 | |
7153 | fi | |
7154 | ||
7155 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7156 | ||
7157 | fi; | |
7158 | ||
7159 | eval "$ac_cv_use_caret" | |
7160 | if test "$no_cache" != 1; then | |
7161 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7162 | fi | |
7163 | ||
7164 | if test "$wxUSE_CARET" = yes; then | |
7165 | echo "$as_me:$LINENO: result: yes" >&5 | |
7166 | echo "${ECHO_T}yes" >&6 | |
7167 | else | |
7168 | echo "$as_me:$LINENO: result: no" >&5 | |
7169 | echo "${ECHO_T}no" >&6 | |
7170 | fi | |
7171 | ||
7172 | ||
7173 | enablestring= | |
7174 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7175 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7176 | no_cache=0 | |
7177 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7178 | if test "${enable_checkbox+set}" = set; then | |
7179 | enableval="$enable_checkbox" | |
7180 | ||
7181 | if test "$enableval" = yes; then | |
7182 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7183 | else | |
7184 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7185 | fi | |
7186 | ||
7187 | else | |
7188 | ||
7189 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7190 | if test "x$LINE" != x ; then | |
7191 | eval "DEFAULT_$LINE" | |
7192 | else | |
7193 | no_cache=1 | |
7194 | fi | |
7195 | ||
7196 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7197 | ||
7198 | fi; | |
7199 | ||
7200 | eval "$ac_cv_use_checkbox" | |
7201 | if test "$no_cache" != 1; then | |
7202 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7203 | fi | |
7204 | ||
7205 | if test "$wxUSE_CHECKBOX" = yes; then | |
7206 | echo "$as_me:$LINENO: result: yes" >&5 | |
7207 | echo "${ECHO_T}yes" >&6 | |
7208 | else | |
7209 | echo "$as_me:$LINENO: result: no" >&5 | |
7210 | echo "${ECHO_T}no" >&6 | |
7211 | fi | |
7212 | ||
7213 | ||
7214 | enablestring= | |
7215 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7216 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7217 | no_cache=0 | |
7218 | # Check whether --enable-checklst or --disable-checklst was given. | |
7219 | if test "${enable_checklst+set}" = set; then | |
7220 | enableval="$enable_checklst" | |
7221 | ||
7222 | if test "$enableval" = yes; then | |
7223 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7224 | else | |
7225 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7226 | fi | |
7227 | ||
7228 | else | |
7229 | ||
7230 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7231 | if test "x$LINE" != x ; then | |
7232 | eval "DEFAULT_$LINE" | |
7233 | else | |
7234 | no_cache=1 | |
7235 | fi | |
7236 | ||
7237 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7238 | ||
7239 | fi; | |
7240 | ||
7241 | eval "$ac_cv_use_checklst" | |
7242 | if test "$no_cache" != 1; then | |
7243 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7244 | fi | |
7245 | ||
7246 | if test "$wxUSE_CHECKLST" = yes; then | |
7247 | echo "$as_me:$LINENO: result: yes" >&5 | |
7248 | echo "${ECHO_T}yes" >&6 | |
7249 | else | |
7250 | echo "$as_me:$LINENO: result: no" >&5 | |
7251 | echo "${ECHO_T}no" >&6 | |
7252 | fi | |
7253 | ||
7254 | ||
7255 | enablestring= | |
7256 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7257 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7258 | no_cache=0 | |
7259 | # Check whether --enable-choice or --disable-choice was given. | |
7260 | if test "${enable_choice+set}" = set; then | |
7261 | enableval="$enable_choice" | |
7262 | ||
7263 | if test "$enableval" = yes; then | |
7264 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7265 | else | |
7266 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7267 | fi | |
7268 | ||
7269 | else | |
7270 | ||
7271 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7272 | if test "x$LINE" != x ; then | |
7273 | eval "DEFAULT_$LINE" | |
7274 | else | |
7275 | no_cache=1 | |
7276 | fi | |
7277 | ||
7278 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7279 | ||
7280 | fi; | |
7281 | ||
7282 | eval "$ac_cv_use_choice" | |
7283 | if test "$no_cache" != 1; then | |
7284 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7285 | fi | |
7286 | ||
7287 | if test "$wxUSE_CHOICE" = yes; then | |
7288 | echo "$as_me:$LINENO: result: yes" >&5 | |
7289 | echo "${ECHO_T}yes" >&6 | |
7290 | else | |
7291 | echo "$as_me:$LINENO: result: no" >&5 | |
7292 | echo "${ECHO_T}no" >&6 | |
7293 | fi | |
7294 | ||
7295 | ||
7296 | enablestring= | |
7297 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7298 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7299 | no_cache=0 | |
7300 | # Check whether --enable-combobox or --disable-combobox was given. | |
7301 | if test "${enable_combobox+set}" = set; then | |
7302 | enableval="$enable_combobox" | |
7303 | ||
7304 | if test "$enableval" = yes; then | |
7305 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7306 | else | |
7307 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7308 | fi | |
7309 | ||
7310 | else | |
7311 | ||
7312 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7313 | if test "x$LINE" != x ; then | |
7314 | eval "DEFAULT_$LINE" | |
7315 | else | |
7316 | no_cache=1 | |
7317 | fi | |
7318 | ||
7319 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7320 | ||
7321 | fi; | |
7322 | ||
7323 | eval "$ac_cv_use_combobox" | |
7324 | if test "$no_cache" != 1; then | |
7325 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7326 | fi | |
7327 | ||
7328 | if test "$wxUSE_COMBOBOX" = yes; then | |
7329 | echo "$as_me:$LINENO: result: yes" >&5 | |
7330 | echo "${ECHO_T}yes" >&6 | |
7331 | else | |
7332 | echo "$as_me:$LINENO: result: no" >&5 | |
7333 | echo "${ECHO_T}no" >&6 | |
7334 | fi | |
7335 | ||
7336 | ||
7337 | enablestring= | |
7338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7339 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7340 | no_cache=0 | |
7341 | # Check whether --enable-display or --disable-display was given. | |
7342 | if test "${enable_display+set}" = set; then | |
7343 | enableval="$enable_display" | |
7344 | ||
7345 | if test "$enableval" = yes; then | |
7346 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7347 | else | |
7348 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7349 | fi | |
7350 | ||
7351 | else | |
7352 | ||
7353 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7354 | if test "x$LINE" != x ; then | |
7355 | eval "DEFAULT_$LINE" | |
7356 | else | |
7357 | no_cache=1 | |
7358 | fi | |
7359 | ||
7360 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7361 | ||
7362 | fi; | |
7363 | ||
7364 | eval "$ac_cv_use_display" | |
7365 | if test "$no_cache" != 1; then | |
7366 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7367 | fi | |
7368 | ||
7369 | if test "$wxUSE_DISPLAY" = yes; then | |
7370 | echo "$as_me:$LINENO: result: yes" >&5 | |
7371 | echo "${ECHO_T}yes" >&6 | |
7372 | else | |
7373 | echo "$as_me:$LINENO: result: no" >&5 | |
7374 | echo "${ECHO_T}no" >&6 | |
7375 | fi | |
7376 | ||
7377 | ||
7378 | enablestring= | |
7379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7380 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7381 | no_cache=0 | |
7382 | # Check whether --enable-gauge or --disable-gauge was given. | |
7383 | if test "${enable_gauge+set}" = set; then | |
7384 | enableval="$enable_gauge" | |
7385 | ||
7386 | if test "$enableval" = yes; then | |
7387 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7388 | else | |
7389 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7390 | fi | |
7391 | ||
7392 | else | |
7393 | ||
7394 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7395 | if test "x$LINE" != x ; then | |
7396 | eval "DEFAULT_$LINE" | |
7397 | else | |
7398 | no_cache=1 | |
7399 | fi | |
7400 | ||
7401 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7402 | ||
7403 | fi; | |
7404 | ||
7405 | eval "$ac_cv_use_gauge" | |
7406 | if test "$no_cache" != 1; then | |
7407 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7408 | fi | |
7409 | ||
7410 | if test "$wxUSE_GAUGE" = yes; then | |
7411 | echo "$as_me:$LINENO: result: yes" >&5 | |
7412 | echo "${ECHO_T}yes" >&6 | |
7413 | else | |
7414 | echo "$as_me:$LINENO: result: no" >&5 | |
7415 | echo "${ECHO_T}no" >&6 | |
7416 | fi | |
7417 | ||
7418 | ||
7419 | enablestring= | |
7420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7421 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7422 | no_cache=0 | |
7423 | # Check whether --enable-grid or --disable-grid was given. | |
7424 | if test "${enable_grid+set}" = set; then | |
7425 | enableval="$enable_grid" | |
7426 | ||
7427 | if test "$enableval" = yes; then | |
7428 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7429 | else | |
7430 | ac_cv_use_grid='wxUSE_GRID=no' | |
7431 | fi | |
7432 | ||
7433 | else | |
7434 | ||
7435 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7436 | if test "x$LINE" != x ; then | |
7437 | eval "DEFAULT_$LINE" | |
7438 | else | |
7439 | no_cache=1 | |
7440 | fi | |
7441 | ||
7442 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7443 | ||
7444 | fi; | |
7445 | ||
7446 | eval "$ac_cv_use_grid" | |
7447 | if test "$no_cache" != 1; then | |
7448 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7449 | fi | |
7450 | ||
7451 | if test "$wxUSE_GRID" = yes; then | |
7452 | echo "$as_me:$LINENO: result: yes" >&5 | |
7453 | echo "${ECHO_T}yes" >&6 | |
7454 | else | |
7455 | echo "$as_me:$LINENO: result: no" >&5 | |
7456 | echo "${ECHO_T}no" >&6 | |
7457 | fi | |
7458 | ||
7459 | ||
7460 | enablestring= | |
7461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7462 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7463 | no_cache=0 | |
7464 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7465 | if test "${enable_imaglist+set}" = set; then | |
7466 | enableval="$enable_imaglist" | |
7467 | ||
7468 | if test "$enableval" = yes; then | |
7469 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7470 | else | |
7471 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7472 | fi | |
7473 | ||
7474 | else | |
7475 | ||
7476 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7477 | if test "x$LINE" != x ; then | |
7478 | eval "DEFAULT_$LINE" | |
7479 | else | |
7480 | no_cache=1 | |
7481 | fi | |
7482 | ||
7483 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7484 | ||
7485 | fi; | |
7486 | ||
7487 | eval "$ac_cv_use_imaglist" | |
7488 | if test "$no_cache" != 1; then | |
7489 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7490 | fi | |
7491 | ||
7492 | if test "$wxUSE_IMAGLIST" = yes; then | |
7493 | echo "$as_me:$LINENO: result: yes" >&5 | |
7494 | echo "${ECHO_T}yes" >&6 | |
7495 | else | |
7496 | echo "$as_me:$LINENO: result: no" >&5 | |
7497 | echo "${ECHO_T}no" >&6 | |
7498 | fi | |
7499 | ||
7500 | ||
7501 | enablestring= | |
7502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7503 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7504 | no_cache=0 | |
7505 | # Check whether --enable-listbook or --disable-listbook was given. | |
7506 | if test "${enable_listbook+set}" = set; then | |
7507 | enableval="$enable_listbook" | |
7508 | ||
7509 | if test "$enableval" = yes; then | |
7510 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7511 | else | |
7512 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7513 | fi | |
7514 | ||
7515 | else | |
7516 | ||
7517 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7518 | if test "x$LINE" != x ; then | |
7519 | eval "DEFAULT_$LINE" | |
7520 | else | |
7521 | no_cache=1 | |
7522 | fi | |
7523 | ||
7524 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7525 | ||
7526 | fi; | |
7527 | ||
7528 | eval "$ac_cv_use_listbook" | |
7529 | if test "$no_cache" != 1; then | |
7530 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7531 | fi | |
7532 | ||
7533 | if test "$wxUSE_LISTBOOK" = yes; then | |
7534 | echo "$as_me:$LINENO: result: yes" >&5 | |
7535 | echo "${ECHO_T}yes" >&6 | |
7536 | else | |
7537 | echo "$as_me:$LINENO: result: no" >&5 | |
7538 | echo "${ECHO_T}no" >&6 | |
7539 | fi | |
7540 | ||
7541 | ||
7542 | enablestring= | |
7543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7544 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7545 | no_cache=0 | |
7546 | # Check whether --enable-listbox or --disable-listbox was given. | |
7547 | if test "${enable_listbox+set}" = set; then | |
7548 | enableval="$enable_listbox" | |
7549 | ||
7550 | if test "$enableval" = yes; then | |
7551 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7552 | else | |
7553 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7554 | fi | |
7555 | ||
7556 | else | |
7557 | ||
7558 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7559 | if test "x$LINE" != x ; then | |
7560 | eval "DEFAULT_$LINE" | |
7561 | else | |
7562 | no_cache=1 | |
7563 | fi | |
7564 | ||
7565 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7566 | ||
7567 | fi; | |
7568 | ||
7569 | eval "$ac_cv_use_listbox" | |
7570 | if test "$no_cache" != 1; then | |
7571 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7572 | fi | |
7573 | ||
7574 | if test "$wxUSE_LISTBOX" = yes; then | |
7575 | echo "$as_me:$LINENO: result: yes" >&5 | |
7576 | echo "${ECHO_T}yes" >&6 | |
7577 | else | |
7578 | echo "$as_me:$LINENO: result: no" >&5 | |
7579 | echo "${ECHO_T}no" >&6 | |
7580 | fi | |
7581 | ||
7582 | ||
7583 | enablestring= | |
7584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7585 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7586 | no_cache=0 | |
7587 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7588 | if test "${enable_listctrl+set}" = set; then | |
7589 | enableval="$enable_listctrl" | |
7590 | ||
7591 | if test "$enableval" = yes; then | |
7592 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7593 | else | |
7594 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7595 | fi | |
7596 | ||
7597 | else | |
7598 | ||
7599 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7600 | if test "x$LINE" != x ; then | |
7601 | eval "DEFAULT_$LINE" | |
7602 | else | |
7603 | no_cache=1 | |
7604 | fi | |
7605 | ||
7606 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7607 | ||
7608 | fi; | |
7609 | ||
7610 | eval "$ac_cv_use_listctrl" | |
7611 | if test "$no_cache" != 1; then | |
7612 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7613 | fi | |
7614 | ||
7615 | if test "$wxUSE_LISTCTRL" = yes; then | |
7616 | echo "$as_me:$LINENO: result: yes" >&5 | |
7617 | echo "${ECHO_T}yes" >&6 | |
7618 | else | |
7619 | echo "$as_me:$LINENO: result: no" >&5 | |
7620 | echo "${ECHO_T}no" >&6 | |
7621 | fi | |
7622 | ||
7623 | ||
7624 | enablestring= | |
7625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7626 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7627 | no_cache=0 | |
7628 | # Check whether --enable-notebook or --disable-notebook was given. | |
7629 | if test "${enable_notebook+set}" = set; then | |
7630 | enableval="$enable_notebook" | |
7631 | ||
7632 | if test "$enableval" = yes; then | |
7633 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7634 | else | |
7635 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7636 | fi | |
7637 | ||
7638 | else | |
7639 | ||
7640 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7641 | if test "x$LINE" != x ; then | |
7642 | eval "DEFAULT_$LINE" | |
7643 | else | |
7644 | no_cache=1 | |
7645 | fi | |
7646 | ||
7647 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7648 | ||
7649 | fi; | |
7650 | ||
7651 | eval "$ac_cv_use_notebook" | |
7652 | if test "$no_cache" != 1; then | |
7653 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7654 | fi | |
7655 | ||
7656 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7657 | echo "$as_me:$LINENO: result: yes" >&5 | |
7658 | echo "${ECHO_T}yes" >&6 | |
7659 | else | |
7660 | echo "$as_me:$LINENO: result: no" >&5 | |
7661 | echo "${ECHO_T}no" >&6 | |
7662 | fi | |
7663 | ||
7664 | ||
7665 | enablestring= | |
7666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7667 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7668 | no_cache=0 | |
7669 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7670 | if test "${enable_radiobox+set}" = set; then | |
7671 | enableval="$enable_radiobox" | |
7672 | ||
7673 | if test "$enableval" = yes; then | |
7674 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7675 | else | |
7676 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7677 | fi | |
7678 | ||
7679 | else | |
7680 | ||
7681 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7682 | if test "x$LINE" != x ; then | |
7683 | eval "DEFAULT_$LINE" | |
7684 | else | |
7685 | no_cache=1 | |
7686 | fi | |
7687 | ||
7688 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7689 | ||
7690 | fi; | |
7691 | ||
7692 | eval "$ac_cv_use_radiobox" | |
7693 | if test "$no_cache" != 1; then | |
7694 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7695 | fi | |
7696 | ||
7697 | if test "$wxUSE_RADIOBOX" = yes; then | |
7698 | echo "$as_me:$LINENO: result: yes" >&5 | |
7699 | echo "${ECHO_T}yes" >&6 | |
7700 | else | |
7701 | echo "$as_me:$LINENO: result: no" >&5 | |
7702 | echo "${ECHO_T}no" >&6 | |
7703 | fi | |
7704 | ||
7705 | ||
7706 | enablestring= | |
7707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7708 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7709 | no_cache=0 | |
7710 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7711 | if test "${enable_radiobtn+set}" = set; then | |
7712 | enableval="$enable_radiobtn" | |
7713 | ||
7714 | if test "$enableval" = yes; then | |
7715 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7716 | else | |
7717 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7718 | fi | |
7719 | ||
7720 | else | |
7721 | ||
7722 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7723 | if test "x$LINE" != x ; then | |
7724 | eval "DEFAULT_$LINE" | |
7725 | else | |
7726 | no_cache=1 | |
7727 | fi | |
7728 | ||
7729 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7730 | ||
7731 | fi; | |
7732 | ||
7733 | eval "$ac_cv_use_radiobtn" | |
7734 | if test "$no_cache" != 1; then | |
7735 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7736 | fi | |
7737 | ||
7738 | if test "$wxUSE_RADIOBTN" = yes; then | |
7739 | echo "$as_me:$LINENO: result: yes" >&5 | |
7740 | echo "${ECHO_T}yes" >&6 | |
7741 | else | |
7742 | echo "$as_me:$LINENO: result: no" >&5 | |
7743 | echo "${ECHO_T}no" >&6 | |
7744 | fi | |
7745 | ||
7746 | ||
7747 | enablestring= | |
7748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7749 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7750 | no_cache=0 | |
7751 | # Check whether --enable-sash or --disable-sash was given. | |
7752 | if test "${enable_sash+set}" = set; then | |
7753 | enableval="$enable_sash" | |
7754 | ||
7755 | if test "$enableval" = yes; then | |
7756 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7757 | else | |
7758 | ac_cv_use_sash='wxUSE_SASH=no' | |
7759 | fi | |
7760 | ||
7761 | else | |
7762 | ||
7763 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7764 | if test "x$LINE" != x ; then | |
7765 | eval "DEFAULT_$LINE" | |
7766 | else | |
7767 | no_cache=1 | |
7768 | fi | |
7769 | ||
7770 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7771 | ||
7772 | fi; | |
7773 | ||
7774 | eval "$ac_cv_use_sash" | |
7775 | if test "$no_cache" != 1; then | |
7776 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7777 | fi | |
7778 | ||
7779 | if test "$wxUSE_SASH" = yes; then | |
7780 | echo "$as_me:$LINENO: result: yes" >&5 | |
7781 | echo "${ECHO_T}yes" >&6 | |
7782 | else | |
7783 | echo "$as_me:$LINENO: result: no" >&5 | |
7784 | echo "${ECHO_T}no" >&6 | |
7785 | fi | |
7786 | ||
7787 | ||
7788 | enablestring= | |
7789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7790 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7791 | no_cache=0 | |
7792 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7793 | if test "${enable_scrollbar+set}" = set; then | |
7794 | enableval="$enable_scrollbar" | |
7795 | ||
7796 | if test "$enableval" = yes; then | |
7797 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7798 | else | |
7799 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7800 | fi | |
7801 | ||
7802 | else | |
7803 | ||
7804 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7805 | if test "x$LINE" != x ; then | |
7806 | eval "DEFAULT_$LINE" | |
7807 | else | |
7808 | no_cache=1 | |
7809 | fi | |
7810 | ||
7811 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7812 | ||
7813 | fi; | |
7814 | ||
7815 | eval "$ac_cv_use_scrollbar" | |
7816 | if test "$no_cache" != 1; then | |
7817 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7818 | fi | |
7819 | ||
7820 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7821 | echo "$as_me:$LINENO: result: yes" >&5 | |
7822 | echo "${ECHO_T}yes" >&6 | |
7823 | else | |
7824 | echo "$as_me:$LINENO: result: no" >&5 | |
7825 | echo "${ECHO_T}no" >&6 | |
7826 | fi | |
7827 | ||
7828 | ||
7829 | enablestring= | |
7830 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7831 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7832 | no_cache=0 | |
7833 | # Check whether --enable-slider or --disable-slider was given. | |
7834 | if test "${enable_slider+set}" = set; then | |
7835 | enableval="$enable_slider" | |
7836 | ||
7837 | if test "$enableval" = yes; then | |
7838 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7839 | else | |
7840 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7841 | fi | |
7842 | ||
7843 | else | |
7844 | ||
7845 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
7846 | if test "x$LINE" != x ; then | |
7847 | eval "DEFAULT_$LINE" | |
7848 | else | |
7849 | no_cache=1 | |
7850 | fi | |
7851 | ||
7852 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7853 | ||
7854 | fi; | |
7855 | ||
7856 | eval "$ac_cv_use_slider" | |
7857 | if test "$no_cache" != 1; then | |
7858 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7859 | fi | |
7860 | ||
7861 | if test "$wxUSE_SLIDER" = yes; then | |
7862 | echo "$as_me:$LINENO: result: yes" >&5 | |
7863 | echo "${ECHO_T}yes" >&6 | |
7864 | else | |
7865 | echo "$as_me:$LINENO: result: no" >&5 | |
7866 | echo "${ECHO_T}no" >&6 | |
7867 | fi | |
7868 | ||
7869 | ||
7870 | enablestring= | |
7871 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
7872 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7873 | no_cache=0 | |
7874 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7875 | if test "${enable_spinbtn+set}" = set; then | |
7876 | enableval="$enable_spinbtn" | |
7877 | ||
7878 | if test "$enableval" = yes; then | |
7879 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7880 | else | |
7881 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7882 | fi | |
7883 | ||
7884 | else | |
7885 | ||
7886 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
7887 | if test "x$LINE" != x ; then | |
7888 | eval "DEFAULT_$LINE" | |
7889 | else | |
7890 | no_cache=1 | |
7891 | fi | |
7892 | ||
7893 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7894 | ||
7895 | fi; | |
7896 | ||
7897 | eval "$ac_cv_use_spinbtn" | |
7898 | if test "$no_cache" != 1; then | |
7899 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7900 | fi | |
7901 | ||
7902 | if test "$wxUSE_SPINBTN" = yes; then | |
7903 | echo "$as_me:$LINENO: result: yes" >&5 | |
7904 | echo "${ECHO_T}yes" >&6 | |
7905 | else | |
7906 | echo "$as_me:$LINENO: result: no" >&5 | |
7907 | echo "${ECHO_T}no" >&6 | |
7908 | fi | |
7909 | ||
7910 | ||
7911 | enablestring= | |
7912 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
7913 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
7914 | no_cache=0 | |
7915 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7916 | if test "${enable_spinctrl+set}" = set; then | |
7917 | enableval="$enable_spinctrl" | |
7918 | ||
7919 | if test "$enableval" = yes; then | |
7920 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7921 | else | |
7922 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7923 | fi | |
7924 | ||
7925 | else | |
7926 | ||
7927 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
7928 | if test "x$LINE" != x ; then | |
7929 | eval "DEFAULT_$LINE" | |
7930 | else | |
7931 | no_cache=1 | |
7932 | fi | |
7933 | ||
7934 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
7935 | ||
7936 | fi; | |
7937 | ||
7938 | eval "$ac_cv_use_spinctrl" | |
7939 | if test "$no_cache" != 1; then | |
7940 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7941 | fi | |
7942 | ||
7943 | if test "$wxUSE_SPINCTRL" = yes; then | |
7944 | echo "$as_me:$LINENO: result: yes" >&5 | |
7945 | echo "${ECHO_T}yes" >&6 | |
7946 | else | |
7947 | echo "$as_me:$LINENO: result: no" >&5 | |
7948 | echo "${ECHO_T}no" >&6 | |
7949 | fi | |
7950 | ||
7951 | ||
7952 | enablestring= | |
7953 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
7954 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
7955 | no_cache=0 | |
7956 | # Check whether --enable-splitter or --disable-splitter was given. | |
7957 | if test "${enable_splitter+set}" = set; then | |
7958 | enableval="$enable_splitter" | |
7959 | ||
7960 | if test "$enableval" = yes; then | |
7961 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7962 | else | |
7963 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7964 | fi | |
7965 | ||
7966 | else | |
7967 | ||
7968 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
7969 | if test "x$LINE" != x ; then | |
7970 | eval "DEFAULT_$LINE" | |
7971 | else | |
7972 | no_cache=1 | |
7973 | fi | |
7974 | ||
7975 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
7976 | ||
7977 | fi; | |
7978 | ||
7979 | eval "$ac_cv_use_splitter" | |
7980 | if test "$no_cache" != 1; then | |
7981 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7982 | fi | |
7983 | ||
7984 | if test "$wxUSE_SPLITTER" = yes; then | |
7985 | echo "$as_me:$LINENO: result: yes" >&5 | |
7986 | echo "${ECHO_T}yes" >&6 | |
7987 | else | |
7988 | echo "$as_me:$LINENO: result: no" >&5 | |
7989 | echo "${ECHO_T}no" >&6 | |
7990 | fi | |
7991 | ||
7992 | ||
7993 | enablestring= | |
7994 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
7995 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
7996 | no_cache=0 | |
7997 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7998 | if test "${enable_statbmp+set}" = set; then | |
7999 | enableval="$enable_statbmp" | |
8000 | ||
8001 | if test "$enableval" = yes; then | |
8002 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8003 | else | |
8004 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8005 | fi | |
8006 | ||
8007 | else | |
8008 | ||
8009 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8010 | if test "x$LINE" != x ; then | |
8011 | eval "DEFAULT_$LINE" | |
8012 | else | |
8013 | no_cache=1 | |
8014 | fi | |
8015 | ||
8016 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8017 | ||
8018 | fi; | |
8019 | ||
8020 | eval "$ac_cv_use_statbmp" | |
8021 | if test "$no_cache" != 1; then | |
8022 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8023 | fi | |
8024 | ||
8025 | if test "$wxUSE_STATBMP" = yes; then | |
8026 | echo "$as_me:$LINENO: result: yes" >&5 | |
8027 | echo "${ECHO_T}yes" >&6 | |
8028 | else | |
8029 | echo "$as_me:$LINENO: result: no" >&5 | |
8030 | echo "${ECHO_T}no" >&6 | |
8031 | fi | |
8032 | ||
8033 | ||
8034 | enablestring= | |
8035 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8036 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8037 | no_cache=0 | |
8038 | # Check whether --enable-statbox or --disable-statbox was given. | |
8039 | if test "${enable_statbox+set}" = set; then | |
8040 | enableval="$enable_statbox" | |
8041 | ||
8042 | if test "$enableval" = yes; then | |
8043 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8044 | else | |
8045 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8046 | fi | |
8047 | ||
8048 | else | |
8049 | ||
8050 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8051 | if test "x$LINE" != x ; then | |
8052 | eval "DEFAULT_$LINE" | |
8053 | else | |
8054 | no_cache=1 | |
8055 | fi | |
8056 | ||
8057 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8058 | ||
8059 | fi; | |
8060 | ||
8061 | eval "$ac_cv_use_statbox" | |
8062 | if test "$no_cache" != 1; then | |
8063 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8064 | fi | |
8065 | ||
8066 | if test "$wxUSE_STATBOX" = yes; then | |
8067 | echo "$as_me:$LINENO: result: yes" >&5 | |
8068 | echo "${ECHO_T}yes" >&6 | |
8069 | else | |
8070 | echo "$as_me:$LINENO: result: no" >&5 | |
8071 | echo "${ECHO_T}no" >&6 | |
8072 | fi | |
8073 | ||
8074 | ||
8075 | enablestring= | |
8076 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8077 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8078 | no_cache=0 | |
8079 | # Check whether --enable-statline or --disable-statline was given. | |
8080 | if test "${enable_statline+set}" = set; then | |
8081 | enableval="$enable_statline" | |
8082 | ||
8083 | if test "$enableval" = yes; then | |
8084 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8085 | else | |
8086 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8087 | fi | |
8088 | ||
8089 | else | |
8090 | ||
8091 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8092 | if test "x$LINE" != x ; then | |
8093 | eval "DEFAULT_$LINE" | |
8094 | else | |
8095 | no_cache=1 | |
8096 | fi | |
8097 | ||
8098 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8099 | ||
8100 | fi; | |
8101 | ||
8102 | eval "$ac_cv_use_statline" | |
8103 | if test "$no_cache" != 1; then | |
8104 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8105 | fi | |
8106 | ||
8107 | if test "$wxUSE_STATLINE" = yes; then | |
8108 | echo "$as_me:$LINENO: result: yes" >&5 | |
8109 | echo "${ECHO_T}yes" >&6 | |
8110 | else | |
8111 | echo "$as_me:$LINENO: result: no" >&5 | |
8112 | echo "${ECHO_T}no" >&6 | |
8113 | fi | |
8114 | ||
8115 | ||
8116 | enablestring= | |
8117 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8118 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8119 | no_cache=0 | |
8120 | # Check whether --enable-stattext or --disable-stattext was given. | |
8121 | if test "${enable_stattext+set}" = set; then | |
8122 | enableval="$enable_stattext" | |
8123 | ||
8124 | if test "$enableval" = yes; then | |
8125 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8126 | else | |
8127 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8128 | fi | |
8129 | ||
8130 | else | |
8131 | ||
8132 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8133 | if test "x$LINE" != x ; then | |
8134 | eval "DEFAULT_$LINE" | |
8135 | else | |
8136 | no_cache=1 | |
8137 | fi | |
8138 | ||
8139 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8140 | ||
8141 | fi; | |
8142 | ||
8143 | eval "$ac_cv_use_stattext" | |
8144 | if test "$no_cache" != 1; then | |
8145 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8146 | fi | |
8147 | ||
8148 | if test "$wxUSE_STATTEXT" = yes; then | |
8149 | echo "$as_me:$LINENO: result: yes" >&5 | |
8150 | echo "${ECHO_T}yes" >&6 | |
8151 | else | |
8152 | echo "$as_me:$LINENO: result: no" >&5 | |
8153 | echo "${ECHO_T}no" >&6 | |
8154 | fi | |
8155 | ||
8156 | ||
8157 | enablestring= | |
8158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8159 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8160 | no_cache=0 | |
8161 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8162 | if test "${enable_statusbar+set}" = set; then | |
8163 | enableval="$enable_statusbar" | |
8164 | ||
8165 | if test "$enableval" = yes; then | |
8166 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8167 | else | |
8168 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8169 | fi | |
8170 | ||
8171 | else | |
8172 | ||
8173 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8174 | if test "x$LINE" != x ; then | |
8175 | eval "DEFAULT_$LINE" | |
8176 | else | |
8177 | no_cache=1 | |
8178 | fi | |
8179 | ||
8180 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8181 | ||
8182 | fi; | |
8183 | ||
8184 | eval "$ac_cv_use_statusbar" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_STATUSBAR" = yes; then | |
8190 | echo "$as_me:$LINENO: result: yes" >&5 | |
8191 | echo "${ECHO_T}yes" >&6 | |
8192 | else | |
8193 | echo "$as_me:$LINENO: result: no" >&5 | |
8194 | echo "${ECHO_T}no" >&6 | |
8195 | fi | |
8196 | ||
8197 | ||
8198 | enablestring= | |
8199 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8200 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8201 | no_cache=0 | |
8202 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8203 | if test "${enable_tabdialog+set}" = set; then | |
8204 | enableval="$enable_tabdialog" | |
8205 | ||
8206 | if test "$enableval" = yes; then | |
8207 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8208 | else | |
8209 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8210 | fi | |
8211 | ||
8212 | else | |
8213 | ||
8214 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8215 | if test "x$LINE" != x ; then | |
8216 | eval "DEFAULT_$LINE" | |
8217 | else | |
8218 | no_cache=1 | |
8219 | fi | |
8220 | ||
8221 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8222 | ||
8223 | fi; | |
8224 | ||
8225 | eval "$ac_cv_use_tabdialog" | |
8226 | if test "$no_cache" != 1; then | |
8227 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8228 | fi | |
8229 | ||
8230 | if test "$wxUSE_TABDIALOG" = yes; then | |
8231 | echo "$as_me:$LINENO: result: yes" >&5 | |
8232 | echo "${ECHO_T}yes" >&6 | |
8233 | else | |
8234 | echo "$as_me:$LINENO: result: no" >&5 | |
8235 | echo "${ECHO_T}no" >&6 | |
8236 | fi | |
8237 | ||
8238 | ||
8239 | enablestring= | |
8240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8241 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8242 | no_cache=0 | |
8243 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8244 | if test "${enable_textctrl+set}" = set; then | |
8245 | enableval="$enable_textctrl" | |
8246 | ||
8247 | if test "$enableval" = yes; then | |
8248 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8249 | else | |
8250 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8251 | fi | |
8252 | ||
8253 | else | |
8254 | ||
8255 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8256 | if test "x$LINE" != x ; then | |
8257 | eval "DEFAULT_$LINE" | |
8258 | else | |
8259 | no_cache=1 | |
8260 | fi | |
8261 | ||
8262 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8263 | ||
8264 | fi; | |
8265 | ||
8266 | eval "$ac_cv_use_textctrl" | |
8267 | if test "$no_cache" != 1; then | |
8268 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8269 | fi | |
8270 | ||
8271 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8272 | echo "$as_me:$LINENO: result: yes" >&5 | |
8273 | echo "${ECHO_T}yes" >&6 | |
8274 | else | |
8275 | echo "$as_me:$LINENO: result: no" >&5 | |
8276 | echo "${ECHO_T}no" >&6 | |
8277 | fi | |
8278 | ||
8279 | ||
8280 | enablestring= | |
8281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8282 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8283 | no_cache=0 | |
8284 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8285 | if test "${enable_togglebtn+set}" = set; then | |
8286 | enableval="$enable_togglebtn" | |
8287 | ||
8288 | if test "$enableval" = yes; then | |
8289 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8290 | else | |
8291 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8292 | fi | |
8293 | ||
8294 | else | |
8295 | ||
8296 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8297 | if test "x$LINE" != x ; then | |
8298 | eval "DEFAULT_$LINE" | |
8299 | else | |
8300 | no_cache=1 | |
8301 | fi | |
8302 | ||
8303 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8304 | ||
8305 | fi; | |
8306 | ||
8307 | eval "$ac_cv_use_togglebtn" | |
8308 | if test "$no_cache" != 1; then | |
8309 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8310 | fi | |
8311 | ||
8312 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8313 | echo "$as_me:$LINENO: result: yes" >&5 | |
8314 | echo "${ECHO_T}yes" >&6 | |
8315 | else | |
8316 | echo "$as_me:$LINENO: result: no" >&5 | |
8317 | echo "${ECHO_T}no" >&6 | |
8318 | fi | |
8319 | ||
8320 | ||
8321 | enablestring= | |
8322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8323 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8324 | no_cache=0 | |
8325 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8326 | if test "${enable_toolbar+set}" = set; then | |
8327 | enableval="$enable_toolbar" | |
8328 | ||
8329 | if test "$enableval" = yes; then | |
8330 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8331 | else | |
8332 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8333 | fi | |
8334 | ||
8335 | else | |
8336 | ||
8337 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8338 | if test "x$LINE" != x ; then | |
8339 | eval "DEFAULT_$LINE" | |
8340 | else | |
8341 | no_cache=1 | |
8342 | fi | |
8343 | ||
8344 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8345 | ||
8346 | fi; | |
8347 | ||
8348 | eval "$ac_cv_use_toolbar" | |
8349 | if test "$no_cache" != 1; then | |
8350 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8351 | fi | |
8352 | ||
8353 | if test "$wxUSE_TOOLBAR" = yes; then | |
8354 | echo "$as_me:$LINENO: result: yes" >&5 | |
8355 | echo "${ECHO_T}yes" >&6 | |
8356 | else | |
8357 | echo "$as_me:$LINENO: result: no" >&5 | |
8358 | echo "${ECHO_T}no" >&6 | |
8359 | fi | |
8360 | ||
8361 | ||
8362 | enablestring= | |
8363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8364 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8365 | no_cache=0 | |
8366 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8367 | if test "${enable_tbarnative+set}" = set; then | |
8368 | enableval="$enable_tbarnative" | |
8369 | ||
8370 | if test "$enableval" = yes; then | |
8371 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8372 | else | |
8373 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8374 | fi | |
8375 | ||
8376 | else | |
8377 | ||
8378 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8379 | if test "x$LINE" != x ; then | |
8380 | eval "DEFAULT_$LINE" | |
8381 | else | |
8382 | no_cache=1 | |
8383 | fi | |
8384 | ||
8385 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8386 | ||
8387 | fi; | |
8388 | ||
8389 | eval "$ac_cv_use_tbarnative" | |
8390 | if test "$no_cache" != 1; then | |
8391 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8392 | fi | |
8393 | ||
8394 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8395 | echo "$as_me:$LINENO: result: yes" >&5 | |
8396 | echo "${ECHO_T}yes" >&6 | |
8397 | else | |
8398 | echo "$as_me:$LINENO: result: no" >&5 | |
8399 | echo "${ECHO_T}no" >&6 | |
8400 | fi | |
8401 | ||
8402 | ||
8403 | enablestring= | |
8404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8405 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8406 | no_cache=0 | |
8407 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8408 | if test "${enable_tbarsmpl+set}" = set; then | |
8409 | enableval="$enable_tbarsmpl" | |
8410 | ||
8411 | if test "$enableval" = yes; then | |
8412 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8413 | else | |
8414 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8415 | fi | |
8416 | ||
8417 | else | |
8418 | ||
8419 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8420 | if test "x$LINE" != x ; then | |
8421 | eval "DEFAULT_$LINE" | |
8422 | else | |
8423 | no_cache=1 | |
8424 | fi | |
8425 | ||
8426 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8427 | ||
8428 | fi; | |
8429 | ||
8430 | eval "$ac_cv_use_tbarsmpl" | |
8431 | if test "$no_cache" != 1; then | |
8432 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8433 | fi | |
8434 | ||
8435 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8436 | echo "$as_me:$LINENO: result: yes" >&5 | |
8437 | echo "${ECHO_T}yes" >&6 | |
8438 | else | |
8439 | echo "$as_me:$LINENO: result: no" >&5 | |
8440 | echo "${ECHO_T}no" >&6 | |
8441 | fi | |
8442 | ||
8443 | ||
8444 | enablestring= | |
8445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8446 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8447 | no_cache=0 | |
8448 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8449 | if test "${enable_treectrl+set}" = set; then | |
8450 | enableval="$enable_treectrl" | |
8451 | ||
8452 | if test "$enableval" = yes; then | |
8453 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8454 | else | |
8455 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8456 | fi | |
8457 | ||
8458 | else | |
8459 | ||
8460 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8461 | if test "x$LINE" != x ; then | |
8462 | eval "DEFAULT_$LINE" | |
8463 | else | |
8464 | no_cache=1 | |
8465 | fi | |
8466 | ||
8467 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8468 | ||
8469 | fi; | |
8470 | ||
8471 | eval "$ac_cv_use_treectrl" | |
8472 | if test "$no_cache" != 1; then | |
8473 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8474 | fi | |
8475 | ||
8476 | if test "$wxUSE_TREECTRL" = yes; then | |
8477 | echo "$as_me:$LINENO: result: yes" >&5 | |
8478 | echo "${ECHO_T}yes" >&6 | |
8479 | else | |
8480 | echo "$as_me:$LINENO: result: no" >&5 | |
8481 | echo "${ECHO_T}no" >&6 | |
8482 | fi | |
8483 | ||
8484 | ||
8485 | enablestring= | |
8486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8487 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8488 | no_cache=0 | |
8489 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8490 | if test "${enable_tipwindow+set}" = set; then | |
8491 | enableval="$enable_tipwindow" | |
8492 | ||
8493 | if test "$enableval" = yes; then | |
8494 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8495 | else | |
8496 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8497 | fi | |
8498 | ||
8499 | else | |
8500 | ||
8501 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8502 | if test "x$LINE" != x ; then | |
8503 | eval "DEFAULT_$LINE" | |
8504 | else | |
8505 | no_cache=1 | |
8506 | fi | |
8507 | ||
8508 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8509 | ||
8510 | fi; | |
8511 | ||
8512 | eval "$ac_cv_use_tipwindow" | |
8513 | if test "$no_cache" != 1; then | |
8514 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8515 | fi | |
8516 | ||
8517 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8518 | echo "$as_me:$LINENO: result: yes" >&5 | |
8519 | echo "${ECHO_T}yes" >&6 | |
8520 | else | |
8521 | echo "$as_me:$LINENO: result: no" >&5 | |
8522 | echo "${ECHO_T}no" >&6 | |
8523 | fi | |
8524 | ||
8525 | ||
8526 | enablestring= | |
8527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8528 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8529 | no_cache=0 | |
8530 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8531 | if test "${enable_popupwin+set}" = set; then | |
8532 | enableval="$enable_popupwin" | |
8533 | ||
8534 | if test "$enableval" = yes; then | |
8535 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8536 | else | |
8537 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8538 | fi | |
8539 | ||
8540 | else | |
8541 | ||
8542 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8543 | if test "x$LINE" != x ; then | |
8544 | eval "DEFAULT_$LINE" | |
8545 | else | |
8546 | no_cache=1 | |
8547 | fi | |
8548 | ||
8549 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8550 | ||
8551 | fi; | |
8552 | ||
8553 | eval "$ac_cv_use_popupwin" | |
8554 | if test "$no_cache" != 1; then | |
8555 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8556 | fi | |
8557 | ||
8558 | if test "$wxUSE_POPUPWIN" = yes; then | |
8559 | echo "$as_me:$LINENO: result: yes" >&5 | |
8560 | echo "${ECHO_T}yes" >&6 | |
8561 | else | |
8562 | echo "$as_me:$LINENO: result: no" >&5 | |
8563 | echo "${ECHO_T}no" >&6 | |
8564 | fi | |
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | enablestring= | |
8570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8571 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8572 | no_cache=0 | |
8573 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8574 | if test "${enable_commondlg+set}" = set; then | |
8575 | enableval="$enable_commondlg" | |
8576 | ||
8577 | if test "$enableval" = yes; then | |
8578 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8579 | else | |
8580 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8581 | fi | |
8582 | ||
8583 | else | |
8584 | ||
8585 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8586 | if test "x$LINE" != x ; then | |
8587 | eval "DEFAULT_$LINE" | |
8588 | else | |
8589 | no_cache=1 | |
8590 | fi | |
8591 | ||
8592 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8593 | ||
8594 | fi; | |
8595 | ||
8596 | eval "$ac_cv_use_commondlg" | |
8597 | if test "$no_cache" != 1; then | |
8598 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8599 | fi | |
8600 | ||
8601 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8602 | echo "$as_me:$LINENO: result: yes" >&5 | |
8603 | echo "${ECHO_T}yes" >&6 | |
8604 | else | |
8605 | echo "$as_me:$LINENO: result: no" >&5 | |
8606 | echo "${ECHO_T}no" >&6 | |
8607 | fi | |
8608 | ||
8609 | ||
8610 | enablestring= | |
8611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8612 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8613 | no_cache=0 | |
8614 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8615 | if test "${enable_choicedlg+set}" = set; then | |
8616 | enableval="$enable_choicedlg" | |
8617 | ||
8618 | if test "$enableval" = yes; then | |
8619 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8620 | else | |
8621 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8622 | fi | |
8623 | ||
8624 | else | |
8625 | ||
8626 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8627 | if test "x$LINE" != x ; then | |
8628 | eval "DEFAULT_$LINE" | |
8629 | else | |
8630 | no_cache=1 | |
8631 | fi | |
8632 | ||
8633 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8634 | ||
8635 | fi; | |
8636 | ||
8637 | eval "$ac_cv_use_choicedlg" | |
8638 | if test "$no_cache" != 1; then | |
8639 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8640 | fi | |
8641 | ||
8642 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8643 | echo "$as_me:$LINENO: result: yes" >&5 | |
8644 | echo "${ECHO_T}yes" >&6 | |
8645 | else | |
8646 | echo "$as_me:$LINENO: result: no" >&5 | |
8647 | echo "${ECHO_T}no" >&6 | |
8648 | fi | |
8649 | ||
8650 | ||
8651 | enablestring= | |
8652 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8653 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8654 | no_cache=0 | |
8655 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8656 | if test "${enable_coldlg+set}" = set; then | |
8657 | enableval="$enable_coldlg" | |
8658 | ||
8659 | if test "$enableval" = yes; then | |
8660 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8661 | else | |
8662 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8663 | fi | |
8664 | ||
8665 | else | |
8666 | ||
8667 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8668 | if test "x$LINE" != x ; then | |
8669 | eval "DEFAULT_$LINE" | |
8670 | else | |
8671 | no_cache=1 | |
8672 | fi | |
8673 | ||
8674 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8675 | ||
8676 | fi; | |
8677 | ||
8678 | eval "$ac_cv_use_coldlg" | |
8679 | if test "$no_cache" != 1; then | |
8680 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8681 | fi | |
8682 | ||
8683 | if test "$wxUSE_COLOURDLG" = yes; then | |
8684 | echo "$as_me:$LINENO: result: yes" >&5 | |
8685 | echo "${ECHO_T}yes" >&6 | |
8686 | else | |
8687 | echo "$as_me:$LINENO: result: no" >&5 | |
8688 | echo "${ECHO_T}no" >&6 | |
8689 | fi | |
8690 | ||
8691 | ||
8692 | enablestring= | |
8693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8694 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8695 | no_cache=0 | |
8696 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8697 | if test "${enable_filedlg+set}" = set; then | |
8698 | enableval="$enable_filedlg" | |
8699 | ||
8700 | if test "$enableval" = yes; then | |
8701 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8702 | else | |
8703 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8704 | fi | |
8705 | ||
8706 | else | |
8707 | ||
8708 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8709 | if test "x$LINE" != x ; then | |
8710 | eval "DEFAULT_$LINE" | |
8711 | else | |
8712 | no_cache=1 | |
8713 | fi | |
8714 | ||
8715 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8716 | ||
8717 | fi; | |
8718 | ||
8719 | eval "$ac_cv_use_filedlg" | |
8720 | if test "$no_cache" != 1; then | |
8721 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8722 | fi | |
8723 | ||
8724 | if test "$wxUSE_FILEDLG" = yes; then | |
8725 | echo "$as_me:$LINENO: result: yes" >&5 | |
8726 | echo "${ECHO_T}yes" >&6 | |
8727 | else | |
8728 | echo "$as_me:$LINENO: result: no" >&5 | |
8729 | echo "${ECHO_T}no" >&6 | |
8730 | fi | |
8731 | ||
8732 | ||
8733 | enablestring= | |
8734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8735 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8736 | no_cache=0 | |
8737 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8738 | if test "${enable_finddlg+set}" = set; then | |
8739 | enableval="$enable_finddlg" | |
8740 | ||
8741 | if test "$enableval" = yes; then | |
8742 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8743 | else | |
8744 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8745 | fi | |
8746 | ||
8747 | else | |
8748 | ||
8749 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8750 | if test "x$LINE" != x ; then | |
8751 | eval "DEFAULT_$LINE" | |
8752 | else | |
8753 | no_cache=1 | |
8754 | fi | |
8755 | ||
8756 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8757 | ||
8758 | fi; | |
8759 | ||
8760 | eval "$ac_cv_use_finddlg" | |
8761 | if test "$no_cache" != 1; then | |
8762 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8763 | fi | |
8764 | ||
8765 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8766 | echo "$as_me:$LINENO: result: yes" >&5 | |
8767 | echo "${ECHO_T}yes" >&6 | |
8768 | else | |
8769 | echo "$as_me:$LINENO: result: no" >&5 | |
8770 | echo "${ECHO_T}no" >&6 | |
8771 | fi | |
8772 | ||
8773 | ||
8774 | enablestring= | |
8775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8776 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8777 | no_cache=0 | |
8778 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8779 | if test "${enable_fontdlg+set}" = set; then | |
8780 | enableval="$enable_fontdlg" | |
8781 | ||
8782 | if test "$enableval" = yes; then | |
8783 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8784 | else | |
8785 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8786 | fi | |
8787 | ||
8788 | else | |
8789 | ||
8790 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8791 | if test "x$LINE" != x ; then | |
8792 | eval "DEFAULT_$LINE" | |
8793 | else | |
8794 | no_cache=1 | |
8795 | fi | |
8796 | ||
8797 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8798 | ||
8799 | fi; | |
8800 | ||
8801 | eval "$ac_cv_use_fontdlg" | |
8802 | if test "$no_cache" != 1; then | |
8803 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8804 | fi | |
8805 | ||
8806 | if test "$wxUSE_FONTDLG" = yes; then | |
8807 | echo "$as_me:$LINENO: result: yes" >&5 | |
8808 | echo "${ECHO_T}yes" >&6 | |
8809 | else | |
8810 | echo "$as_me:$LINENO: result: no" >&5 | |
8811 | echo "${ECHO_T}no" >&6 | |
8812 | fi | |
8813 | ||
8814 | ||
8815 | enablestring= | |
8816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8817 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8818 | no_cache=0 | |
8819 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8820 | if test "${enable_dirdlg+set}" = set; then | |
8821 | enableval="$enable_dirdlg" | |
8822 | ||
8823 | if test "$enableval" = yes; then | |
8824 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8825 | else | |
8826 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8827 | fi | |
8828 | ||
8829 | else | |
8830 | ||
8831 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8832 | if test "x$LINE" != x ; then | |
8833 | eval "DEFAULT_$LINE" | |
8834 | else | |
8835 | no_cache=1 | |
8836 | fi | |
8837 | ||
8838 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8839 | ||
8840 | fi; | |
8841 | ||
8842 | eval "$ac_cv_use_dirdlg" | |
8843 | if test "$no_cache" != 1; then | |
8844 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8845 | fi | |
8846 | ||
8847 | if test "$wxUSE_DIRDLG" = yes; then | |
8848 | echo "$as_me:$LINENO: result: yes" >&5 | |
8849 | echo "${ECHO_T}yes" >&6 | |
8850 | else | |
8851 | echo "$as_me:$LINENO: result: no" >&5 | |
8852 | echo "${ECHO_T}no" >&6 | |
8853 | fi | |
8854 | ||
8855 | ||
8856 | enablestring= | |
8857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
8858 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8859 | no_cache=0 | |
8860 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8861 | if test "${enable_msgdlg+set}" = set; then | |
8862 | enableval="$enable_msgdlg" | |
8863 | ||
8864 | if test "$enableval" = yes; then | |
8865 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8866 | else | |
8867 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8868 | fi | |
8869 | ||
8870 | else | |
8871 | ||
8872 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
8873 | if test "x$LINE" != x ; then | |
8874 | eval "DEFAULT_$LINE" | |
8875 | else | |
8876 | no_cache=1 | |
8877 | fi | |
8878 | ||
8879 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8880 | ||
8881 | fi; | |
8882 | ||
8883 | eval "$ac_cv_use_msgdlg" | |
8884 | if test "$no_cache" != 1; then | |
8885 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8886 | fi | |
8887 | ||
8888 | if test "$wxUSE_MSGDLG" = yes; then | |
8889 | echo "$as_me:$LINENO: result: yes" >&5 | |
8890 | echo "${ECHO_T}yes" >&6 | |
8891 | else | |
8892 | echo "$as_me:$LINENO: result: no" >&5 | |
8893 | echo "${ECHO_T}no" >&6 | |
8894 | fi | |
8895 | ||
8896 | ||
8897 | enablestring= | |
8898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
8899 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8900 | no_cache=0 | |
8901 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8902 | if test "${enable_numberdlg+set}" = set; then | |
8903 | enableval="$enable_numberdlg" | |
8904 | ||
8905 | if test "$enableval" = yes; then | |
8906 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
8907 | else | |
8908 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
8909 | fi | |
8910 | ||
8911 | else | |
8912 | ||
8913 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
8914 | if test "x$LINE" != x ; then | |
8915 | eval "DEFAULT_$LINE" | |
8916 | else | |
8917 | no_cache=1 | |
8918 | fi | |
8919 | ||
8920 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
8921 | ||
8922 | fi; | |
8923 | ||
8924 | eval "$ac_cv_use_numberdlg" | |
8925 | if test "$no_cache" != 1; then | |
8926 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
8927 | fi | |
8928 | ||
8929 | if test "$wxUSE_NUMBERDLG" = yes; then | |
8930 | echo "$as_me:$LINENO: result: yes" >&5 | |
8931 | echo "${ECHO_T}yes" >&6 | |
8932 | else | |
8933 | echo "$as_me:$LINENO: result: no" >&5 | |
8934 | echo "${ECHO_T}no" >&6 | |
8935 | fi | |
8936 | ||
8937 | ||
8938 | enablestring= | |
8939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
8940 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
8941 | no_cache=0 | |
8942 | # Check whether --enable-splash or --disable-splash was given. | |
8943 | if test "${enable_splash+set}" = set; then | |
8944 | enableval="$enable_splash" | |
8945 | ||
8946 | if test "$enableval" = yes; then | |
8947 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8948 | else | |
8949 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8950 | fi | |
8951 | ||
8952 | else | |
8953 | ||
8954 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
8955 | if test "x$LINE" != x ; then | |
8956 | eval "DEFAULT_$LINE" | |
8957 | else | |
8958 | no_cache=1 | |
8959 | fi | |
8960 | ||
8961 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
8962 | ||
8963 | fi; | |
8964 | ||
8965 | eval "$ac_cv_use_splash" | |
8966 | if test "$no_cache" != 1; then | |
8967 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8968 | fi | |
8969 | ||
8970 | if test "$wxUSE_SPLASH" = yes; then | |
8971 | echo "$as_me:$LINENO: result: yes" >&5 | |
8972 | echo "${ECHO_T}yes" >&6 | |
8973 | else | |
8974 | echo "$as_me:$LINENO: result: no" >&5 | |
8975 | echo "${ECHO_T}no" >&6 | |
8976 | fi | |
8977 | ||
8978 | ||
8979 | enablestring= | |
8980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
8981 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
8982 | no_cache=0 | |
8983 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8984 | if test "${enable_textdlg+set}" = set; then | |
8985 | enableval="$enable_textdlg" | |
8986 | ||
8987 | if test "$enableval" = yes; then | |
8988 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8989 | else | |
8990 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8991 | fi | |
8992 | ||
8993 | else | |
8994 | ||
8995 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
8996 | if test "x$LINE" != x ; then | |
8997 | eval "DEFAULT_$LINE" | |
8998 | else | |
8999 | no_cache=1 | |
9000 | fi | |
9001 | ||
9002 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9003 | ||
9004 | fi; | |
9005 | ||
9006 | eval "$ac_cv_use_textdlg" | |
9007 | if test "$no_cache" != 1; then | |
9008 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9009 | fi | |
9010 | ||
9011 | if test "$wxUSE_TEXTDLG" = yes; then | |
9012 | echo "$as_me:$LINENO: result: yes" >&5 | |
9013 | echo "${ECHO_T}yes" >&6 | |
9014 | else | |
9015 | echo "$as_me:$LINENO: result: no" >&5 | |
9016 | echo "${ECHO_T}no" >&6 | |
9017 | fi | |
9018 | ||
9019 | ||
9020 | enablestring= | |
9021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9022 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9023 | no_cache=0 | |
9024 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9025 | if test "${enable_tipdlg+set}" = set; then | |
9026 | enableval="$enable_tipdlg" | |
9027 | ||
9028 | if test "$enableval" = yes; then | |
9029 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9030 | else | |
9031 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9032 | fi | |
9033 | ||
9034 | else | |
9035 | ||
9036 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9037 | if test "x$LINE" != x ; then | |
9038 | eval "DEFAULT_$LINE" | |
9039 | else | |
9040 | no_cache=1 | |
9041 | fi | |
9042 | ||
9043 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9044 | ||
9045 | fi; | |
9046 | ||
9047 | eval "$ac_cv_use_tipdlg" | |
9048 | if test "$no_cache" != 1; then | |
9049 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9050 | fi | |
9051 | ||
9052 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9053 | echo "$as_me:$LINENO: result: yes" >&5 | |
9054 | echo "${ECHO_T}yes" >&6 | |
9055 | else | |
9056 | echo "$as_me:$LINENO: result: no" >&5 | |
9057 | echo "${ECHO_T}no" >&6 | |
9058 | fi | |
9059 | ||
9060 | ||
9061 | enablestring= | |
9062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9063 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9064 | no_cache=0 | |
9065 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9066 | if test "${enable_progressdlg+set}" = set; then | |
9067 | enableval="$enable_progressdlg" | |
9068 | ||
9069 | if test "$enableval" = yes; then | |
9070 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9071 | else | |
9072 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9073 | fi | |
9074 | ||
9075 | else | |
9076 | ||
9077 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9078 | if test "x$LINE" != x ; then | |
9079 | eval "DEFAULT_$LINE" | |
9080 | else | |
9081 | no_cache=1 | |
9082 | fi | |
9083 | ||
9084 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9085 | ||
9086 | fi; | |
9087 | ||
9088 | eval "$ac_cv_use_progressdlg" | |
9089 | if test "$no_cache" != 1; then | |
9090 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9091 | fi | |
9092 | ||
9093 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9094 | echo "$as_me:$LINENO: result: yes" >&5 | |
9095 | echo "${ECHO_T}yes" >&6 | |
9096 | else | |
9097 | echo "$as_me:$LINENO: result: no" >&5 | |
9098 | echo "${ECHO_T}no" >&6 | |
9099 | fi | |
9100 | ||
9101 | ||
9102 | enablestring= | |
9103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9104 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9105 | no_cache=0 | |
9106 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9107 | if test "${enable_wizarddlg+set}" = set; then | |
9108 | enableval="$enable_wizarddlg" | |
9109 | ||
9110 | if test "$enableval" = yes; then | |
9111 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9112 | else | |
9113 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9114 | fi | |
9115 | ||
9116 | else | |
9117 | ||
9118 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9119 | if test "x$LINE" != x ; then | |
9120 | eval "DEFAULT_$LINE" | |
9121 | else | |
9122 | no_cache=1 | |
9123 | fi | |
9124 | ||
9125 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9126 | ||
9127 | fi; | |
9128 | ||
9129 | eval "$ac_cv_use_wizarddlg" | |
9130 | if test "$no_cache" != 1; then | |
9131 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9132 | fi | |
9133 | ||
9134 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9135 | echo "$as_me:$LINENO: result: yes" >&5 | |
9136 | echo "${ECHO_T}yes" >&6 | |
9137 | else | |
9138 | echo "$as_me:$LINENO: result: no" >&5 | |
9139 | echo "${ECHO_T}no" >&6 | |
9140 | fi | |
9141 | ||
9142 | ||
9143 | ||
9144 | ||
9145 | enablestring= | |
9146 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9147 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9148 | no_cache=0 | |
9149 | # Check whether --enable-menus or --disable-menus was given. | |
9150 | if test "${enable_menus+set}" = set; then | |
9151 | enableval="$enable_menus" | |
9152 | ||
9153 | if test "$enableval" = yes; then | |
9154 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9155 | else | |
9156 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9157 | fi | |
9158 | ||
9159 | else | |
9160 | ||
9161 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9162 | if test "x$LINE" != x ; then | |
9163 | eval "DEFAULT_$LINE" | |
9164 | else | |
9165 | no_cache=1 | |
9166 | fi | |
9167 | ||
9168 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9169 | ||
9170 | fi; | |
9171 | ||
9172 | eval "$ac_cv_use_menus" | |
9173 | if test "$no_cache" != 1; then | |
9174 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9175 | fi | |
9176 | ||
9177 | if test "$wxUSE_MENUS" = yes; then | |
9178 | echo "$as_me:$LINENO: result: yes" >&5 | |
9179 | echo "${ECHO_T}yes" >&6 | |
9180 | else | |
9181 | echo "$as_me:$LINENO: result: no" >&5 | |
9182 | echo "${ECHO_T}no" >&6 | |
9183 | fi | |
9184 | ||
9185 | ||
9186 | enablestring= | |
9187 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9188 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9189 | no_cache=0 | |
9190 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9191 | if test "${enable_miniframe+set}" = set; then | |
9192 | enableval="$enable_miniframe" | |
9193 | ||
9194 | if test "$enableval" = yes; then | |
9195 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9196 | else | |
9197 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9198 | fi | |
9199 | ||
9200 | else | |
9201 | ||
9202 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9203 | if test "x$LINE" != x ; then | |
9204 | eval "DEFAULT_$LINE" | |
9205 | else | |
9206 | no_cache=1 | |
9207 | fi | |
9208 | ||
9209 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9210 | ||
9211 | fi; | |
9212 | ||
9213 | eval "$ac_cv_use_miniframe" | |
9214 | if test "$no_cache" != 1; then | |
9215 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9216 | fi | |
9217 | ||
9218 | if test "$wxUSE_MINIFRAME" = yes; then | |
9219 | echo "$as_me:$LINENO: result: yes" >&5 | |
9220 | echo "${ECHO_T}yes" >&6 | |
9221 | else | |
9222 | echo "$as_me:$LINENO: result: no" >&5 | |
9223 | echo "${ECHO_T}no" >&6 | |
9224 | fi | |
9225 | ||
9226 | ||
9227 | enablestring= | |
9228 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9229 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9230 | no_cache=0 | |
9231 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9232 | if test "${enable_tooltips+set}" = set; then | |
9233 | enableval="$enable_tooltips" | |
9234 | ||
9235 | if test "$enableval" = yes; then | |
9236 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9237 | else | |
9238 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9239 | fi | |
9240 | ||
9241 | else | |
9242 | ||
9243 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9244 | if test "x$LINE" != x ; then | |
9245 | eval "DEFAULT_$LINE" | |
9246 | else | |
9247 | no_cache=1 | |
9248 | fi | |
9249 | ||
9250 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9251 | ||
9252 | fi; | |
9253 | ||
9254 | eval "$ac_cv_use_tooltips" | |
9255 | if test "$no_cache" != 1; then | |
9256 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9257 | fi | |
9258 | ||
9259 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9260 | echo "$as_me:$LINENO: result: yes" >&5 | |
9261 | echo "${ECHO_T}yes" >&6 | |
9262 | else | |
9263 | echo "$as_me:$LINENO: result: no" >&5 | |
9264 | echo "${ECHO_T}no" >&6 | |
9265 | fi | |
9266 | ||
9267 | ||
9268 | enablestring= | |
9269 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9270 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9271 | no_cache=0 | |
9272 | # Check whether --enable-splines or --disable-splines was given. | |
9273 | if test "${enable_splines+set}" = set; then | |
9274 | enableval="$enable_splines" | |
9275 | ||
9276 | if test "$enableval" = yes; then | |
9277 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9278 | else | |
9279 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9280 | fi | |
9281 | ||
9282 | else | |
9283 | ||
9284 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9285 | if test "x$LINE" != x ; then | |
9286 | eval "DEFAULT_$LINE" | |
9287 | else | |
9288 | no_cache=1 | |
9289 | fi | |
9290 | ||
9291 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9292 | ||
9293 | fi; | |
9294 | ||
9295 | eval "$ac_cv_use_splines" | |
9296 | if test "$no_cache" != 1; then | |
9297 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9298 | fi | |
9299 | ||
9300 | if test "$wxUSE_SPLINES" = yes; then | |
9301 | echo "$as_me:$LINENO: result: yes" >&5 | |
9302 | echo "${ECHO_T}yes" >&6 | |
9303 | else | |
9304 | echo "$as_me:$LINENO: result: no" >&5 | |
9305 | echo "${ECHO_T}no" >&6 | |
9306 | fi | |
9307 | ||
9308 | ||
9309 | enablestring= | |
9310 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9311 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9312 | no_cache=0 | |
9313 | # Check whether --enable-validators or --disable-validators was given. | |
9314 | if test "${enable_validators+set}" = set; then | |
9315 | enableval="$enable_validators" | |
9316 | ||
9317 | if test "$enableval" = yes; then | |
9318 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9319 | else | |
9320 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9321 | fi | |
9322 | ||
9323 | else | |
9324 | ||
9325 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9326 | if test "x$LINE" != x ; then | |
9327 | eval "DEFAULT_$LINE" | |
9328 | else | |
9329 | no_cache=1 | |
9330 | fi | |
9331 | ||
9332 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9333 | ||
9334 | fi; | |
9335 | ||
9336 | eval "$ac_cv_use_validators" | |
9337 | if test "$no_cache" != 1; then | |
9338 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9339 | fi | |
9340 | ||
9341 | if test "$wxUSE_VALIDATORS" = yes; then | |
9342 | echo "$as_me:$LINENO: result: yes" >&5 | |
9343 | echo "${ECHO_T}yes" >&6 | |
9344 | else | |
9345 | echo "$as_me:$LINENO: result: no" >&5 | |
9346 | echo "${ECHO_T}no" >&6 | |
9347 | fi | |
9348 | ||
9349 | ||
9350 | enablestring= | |
9351 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9352 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9353 | no_cache=0 | |
9354 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9355 | if test "${enable_busyinfo+set}" = set; then | |
9356 | enableval="$enable_busyinfo" | |
9357 | ||
9358 | if test "$enableval" = yes; then | |
9359 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9360 | else | |
9361 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9362 | fi | |
9363 | ||
9364 | else | |
9365 | ||
9366 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9367 | if test "x$LINE" != x ; then | |
9368 | eval "DEFAULT_$LINE" | |
9369 | else | |
9370 | no_cache=1 | |
9371 | fi | |
9372 | ||
9373 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9374 | ||
9375 | fi; | |
9376 | ||
9377 | eval "$ac_cv_use_busyinfo" | |
9378 | if test "$no_cache" != 1; then | |
9379 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9380 | fi | |
9381 | ||
9382 | if test "$wxUSE_BUSYINFO" = yes; then | |
9383 | echo "$as_me:$LINENO: result: yes" >&5 | |
9384 | echo "${ECHO_T}yes" >&6 | |
9385 | else | |
9386 | echo "$as_me:$LINENO: result: no" >&5 | |
9387 | echo "${ECHO_T}no" >&6 | |
9388 | fi | |
9389 | ||
9390 | ||
9391 | enablestring= | |
9392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9393 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9394 | no_cache=0 | |
9395 | # Check whether --enable-joystick or --disable-joystick was given. | |
9396 | if test "${enable_joystick+set}" = set; then | |
9397 | enableval="$enable_joystick" | |
9398 | ||
9399 | if test "$enableval" = yes; then | |
9400 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9401 | else | |
9402 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9403 | fi | |
9404 | ||
9405 | else | |
9406 | ||
9407 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9408 | if test "x$LINE" != x ; then | |
9409 | eval "DEFAULT_$LINE" | |
9410 | else | |
9411 | no_cache=1 | |
9412 | fi | |
9413 | ||
9414 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9415 | ||
9416 | fi; | |
9417 | ||
9418 | eval "$ac_cv_use_joystick" | |
9419 | if test "$no_cache" != 1; then | |
9420 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9421 | fi | |
9422 | ||
9423 | if test "$wxUSE_JOYSTICK" = yes; then | |
9424 | echo "$as_me:$LINENO: result: yes" >&5 | |
9425 | echo "${ECHO_T}yes" >&6 | |
9426 | else | |
9427 | echo "$as_me:$LINENO: result: no" >&5 | |
9428 | echo "${ECHO_T}no" >&6 | |
9429 | fi | |
9430 | ||
9431 | ||
9432 | enablestring= | |
9433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9434 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9435 | no_cache=0 | |
9436 | # Check whether --enable-metafile or --disable-metafile was given. | |
9437 | if test "${enable_metafile+set}" = set; then | |
9438 | enableval="$enable_metafile" | |
9439 | ||
9440 | if test "$enableval" = yes; then | |
9441 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9442 | else | |
9443 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9444 | fi | |
9445 | ||
9446 | else | |
9447 | ||
9448 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9449 | if test "x$LINE" != x ; then | |
9450 | eval "DEFAULT_$LINE" | |
9451 | else | |
9452 | no_cache=1 | |
9453 | fi | |
9454 | ||
9455 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9456 | ||
9457 | fi; | |
9458 | ||
9459 | eval "$ac_cv_use_metafile" | |
9460 | if test "$no_cache" != 1; then | |
9461 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9462 | fi | |
9463 | ||
9464 | if test "$wxUSE_METAFILE" = yes; then | |
9465 | echo "$as_me:$LINENO: result: yes" >&5 | |
9466 | echo "${ECHO_T}yes" >&6 | |
9467 | else | |
9468 | echo "$as_me:$LINENO: result: no" >&5 | |
9469 | echo "${ECHO_T}no" >&6 | |
9470 | fi | |
9471 | ||
9472 | ||
9473 | enablestring= | |
9474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9475 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9476 | no_cache=0 | |
9477 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9478 | if test "${enable_dragimage+set}" = set; then | |
9479 | enableval="$enable_dragimage" | |
9480 | ||
9481 | if test "$enableval" = yes; then | |
9482 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9483 | else | |
9484 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9485 | fi | |
9486 | ||
9487 | else | |
9488 | ||
9489 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9490 | if test "x$LINE" != x ; then | |
9491 | eval "DEFAULT_$LINE" | |
9492 | else | |
9493 | no_cache=1 | |
9494 | fi | |
9495 | ||
9496 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9497 | ||
9498 | fi; | |
9499 | ||
9500 | eval "$ac_cv_use_dragimage" | |
9501 | if test "$no_cache" != 1; then | |
9502 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9503 | fi | |
9504 | ||
9505 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9506 | echo "$as_me:$LINENO: result: yes" >&5 | |
9507 | echo "${ECHO_T}yes" >&6 | |
9508 | else | |
9509 | echo "$as_me:$LINENO: result: no" >&5 | |
9510 | echo "${ECHO_T}no" >&6 | |
9511 | fi | |
9512 | ||
9513 | ||
9514 | enablestring= | |
9515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9516 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9517 | no_cache=0 | |
9518 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9519 | if test "${enable_accessibility+set}" = set; then | |
9520 | enableval="$enable_accessibility" | |
9521 | ||
9522 | if test "$enableval" = yes; then | |
9523 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9524 | else | |
9525 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9526 | fi | |
9527 | ||
9528 | else | |
9529 | ||
9530 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9531 | if test "x$LINE" != x ; then | |
9532 | eval "DEFAULT_$LINE" | |
9533 | else | |
9534 | no_cache=1 | |
9535 | fi | |
9536 | ||
9537 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9538 | ||
9539 | fi; | |
9540 | ||
9541 | eval "$ac_cv_use_accessibility" | |
9542 | if test "$no_cache" != 1; then | |
9543 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9544 | fi | |
9545 | ||
9546 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9547 | echo "$as_me:$LINENO: result: yes" >&5 | |
9548 | echo "${ECHO_T}yes" >&6 | |
9549 | else | |
9550 | echo "$as_me:$LINENO: result: no" >&5 | |
9551 | echo "${ECHO_T}no" >&6 | |
9552 | fi | |
9553 | ||
9554 | ||
9555 | ||
9556 | ||
9557 | enablestring= | |
9558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9559 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9560 | no_cache=0 | |
9561 | # Check whether --enable-palette or --disable-palette was given. | |
9562 | if test "${enable_palette+set}" = set; then | |
9563 | enableval="$enable_palette" | |
9564 | ||
9565 | if test "$enableval" = yes; then | |
9566 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9567 | else | |
9568 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9569 | fi | |
9570 | ||
9571 | else | |
9572 | ||
9573 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9574 | if test "x$LINE" != x ; then | |
9575 | eval "DEFAULT_$LINE" | |
9576 | else | |
9577 | no_cache=1 | |
9578 | fi | |
9579 | ||
9580 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9581 | ||
9582 | fi; | |
9583 | ||
9584 | eval "$ac_cv_use_palette" | |
9585 | if test "$no_cache" != 1; then | |
9586 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9587 | fi | |
9588 | ||
9589 | if test "$wxUSE_PALETTE" = yes; then | |
9590 | echo "$as_me:$LINENO: result: yes" >&5 | |
9591 | echo "${ECHO_T}yes" >&6 | |
9592 | else | |
9593 | echo "$as_me:$LINENO: result: no" >&5 | |
9594 | echo "${ECHO_T}no" >&6 | |
9595 | fi | |
9596 | ||
9597 | ||
9598 | enablestring= | |
9599 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9600 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9601 | no_cache=0 | |
9602 | # Check whether --enable-image or --disable-image was given. | |
9603 | if test "${enable_image+set}" = set; then | |
9604 | enableval="$enable_image" | |
9605 | ||
9606 | if test "$enableval" = yes; then | |
9607 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9608 | else | |
9609 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9610 | fi | |
9611 | ||
9612 | else | |
9613 | ||
9614 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9615 | if test "x$LINE" != x ; then | |
9616 | eval "DEFAULT_$LINE" | |
9617 | else | |
9618 | no_cache=1 | |
9619 | fi | |
9620 | ||
9621 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9622 | ||
9623 | fi; | |
9624 | ||
9625 | eval "$ac_cv_use_image" | |
9626 | if test "$no_cache" != 1; then | |
9627 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9628 | fi | |
9629 | ||
9630 | if test "$wxUSE_IMAGE" = yes; then | |
9631 | echo "$as_me:$LINENO: result: yes" >&5 | |
9632 | echo "${ECHO_T}yes" >&6 | |
9633 | else | |
9634 | echo "$as_me:$LINENO: result: no" >&5 | |
9635 | echo "${ECHO_T}no" >&6 | |
9636 | fi | |
9637 | ||
9638 | ||
9639 | enablestring= | |
9640 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9641 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9642 | no_cache=0 | |
9643 | # Check whether --enable-gif or --disable-gif was given. | |
9644 | if test "${enable_gif+set}" = set; then | |
9645 | enableval="$enable_gif" | |
9646 | ||
9647 | if test "$enableval" = yes; then | |
9648 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9649 | else | |
9650 | ac_cv_use_gif='wxUSE_GIF=no' | |
9651 | fi | |
9652 | ||
9653 | else | |
9654 | ||
9655 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9656 | if test "x$LINE" != x ; then | |
9657 | eval "DEFAULT_$LINE" | |
9658 | else | |
9659 | no_cache=1 | |
9660 | fi | |
9661 | ||
9662 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9663 | ||
9664 | fi; | |
9665 | ||
9666 | eval "$ac_cv_use_gif" | |
9667 | if test "$no_cache" != 1; then | |
9668 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9669 | fi | |
9670 | ||
9671 | if test "$wxUSE_GIF" = yes; then | |
9672 | echo "$as_me:$LINENO: result: yes" >&5 | |
9673 | echo "${ECHO_T}yes" >&6 | |
9674 | else | |
9675 | echo "$as_me:$LINENO: result: no" >&5 | |
9676 | echo "${ECHO_T}no" >&6 | |
9677 | fi | |
9678 | ||
9679 | ||
9680 | enablestring= | |
9681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9682 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9683 | no_cache=0 | |
9684 | # Check whether --enable-pcx or --disable-pcx was given. | |
9685 | if test "${enable_pcx+set}" = set; then | |
9686 | enableval="$enable_pcx" | |
9687 | ||
9688 | if test "$enableval" = yes; then | |
9689 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9690 | else | |
9691 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9692 | fi | |
9693 | ||
9694 | else | |
9695 | ||
9696 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9697 | if test "x$LINE" != x ; then | |
9698 | eval "DEFAULT_$LINE" | |
9699 | else | |
9700 | no_cache=1 | |
9701 | fi | |
9702 | ||
9703 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9704 | ||
9705 | fi; | |
9706 | ||
9707 | eval "$ac_cv_use_pcx" | |
9708 | if test "$no_cache" != 1; then | |
9709 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9710 | fi | |
9711 | ||
9712 | if test "$wxUSE_PCX" = yes; then | |
9713 | echo "$as_me:$LINENO: result: yes" >&5 | |
9714 | echo "${ECHO_T}yes" >&6 | |
9715 | else | |
9716 | echo "$as_me:$LINENO: result: no" >&5 | |
9717 | echo "${ECHO_T}no" >&6 | |
9718 | fi | |
9719 | ||
9720 | ||
9721 | enablestring= | |
9722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9723 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9724 | no_cache=0 | |
9725 | # Check whether --enable-iff or --disable-iff was given. | |
9726 | if test "${enable_iff+set}" = set; then | |
9727 | enableval="$enable_iff" | |
9728 | ||
9729 | if test "$enableval" = yes; then | |
9730 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9731 | else | |
9732 | ac_cv_use_iff='wxUSE_IFF=no' | |
9733 | fi | |
9734 | ||
9735 | else | |
9736 | ||
9737 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9738 | if test "x$LINE" != x ; then | |
9739 | eval "DEFAULT_$LINE" | |
9740 | else | |
9741 | no_cache=1 | |
9742 | fi | |
9743 | ||
9744 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9745 | ||
9746 | fi; | |
9747 | ||
9748 | eval "$ac_cv_use_iff" | |
9749 | if test "$no_cache" != 1; then | |
9750 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9751 | fi | |
9752 | ||
9753 | if test "$wxUSE_IFF" = yes; then | |
9754 | echo "$as_me:$LINENO: result: yes" >&5 | |
9755 | echo "${ECHO_T}yes" >&6 | |
9756 | else | |
9757 | echo "$as_me:$LINENO: result: no" >&5 | |
9758 | echo "${ECHO_T}no" >&6 | |
9759 | fi | |
9760 | ||
9761 | ||
9762 | enablestring= | |
9763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9764 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9765 | no_cache=0 | |
9766 | # Check whether --enable-pnm or --disable-pnm was given. | |
9767 | if test "${enable_pnm+set}" = set; then | |
9768 | enableval="$enable_pnm" | |
9769 | ||
9770 | if test "$enableval" = yes; then | |
9771 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9772 | else | |
9773 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9774 | fi | |
9775 | ||
9776 | else | |
9777 | ||
9778 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9779 | if test "x$LINE" != x ; then | |
9780 | eval "DEFAULT_$LINE" | |
9781 | else | |
9782 | no_cache=1 | |
9783 | fi | |
9784 | ||
9785 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9786 | ||
9787 | fi; | |
9788 | ||
9789 | eval "$ac_cv_use_pnm" | |
9790 | if test "$no_cache" != 1; then | |
9791 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9792 | fi | |
9793 | ||
9794 | if test "$wxUSE_PNM" = yes; then | |
9795 | echo "$as_me:$LINENO: result: yes" >&5 | |
9796 | echo "${ECHO_T}yes" >&6 | |
9797 | else | |
9798 | echo "$as_me:$LINENO: result: no" >&5 | |
9799 | echo "${ECHO_T}no" >&6 | |
9800 | fi | |
9801 | ||
9802 | ||
9803 | enablestring= | |
9804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9805 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9806 | no_cache=0 | |
9807 | # Check whether --enable-xpm or --disable-xpm was given. | |
9808 | if test "${enable_xpm+set}" = set; then | |
9809 | enableval="$enable_xpm" | |
9810 | ||
9811 | if test "$enableval" = yes; then | |
9812 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9813 | else | |
9814 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9815 | fi | |
9816 | ||
9817 | else | |
9818 | ||
9819 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9820 | if test "x$LINE" != x ; then | |
9821 | eval "DEFAULT_$LINE" | |
9822 | else | |
9823 | no_cache=1 | |
9824 | fi | |
9825 | ||
9826 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9827 | ||
9828 | fi; | |
9829 | ||
9830 | eval "$ac_cv_use_xpm" | |
9831 | if test "$no_cache" != 1; then | |
9832 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9833 | fi | |
9834 | ||
9835 | if test "$wxUSE_XPM" = yes; then | |
9836 | echo "$as_me:$LINENO: result: yes" >&5 | |
9837 | echo "${ECHO_T}yes" >&6 | |
9838 | else | |
9839 | echo "$as_me:$LINENO: result: no" >&5 | |
9840 | echo "${ECHO_T}no" >&6 | |
9841 | fi | |
9842 | ||
9843 | ||
9844 | enablestring= | |
9845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
9846 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9847 | no_cache=0 | |
9848 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9849 | if test "${enable_ico_cur+set}" = set; then | |
9850 | enableval="$enable_ico_cur" | |
9851 | ||
9852 | if test "$enableval" = yes; then | |
9853 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9854 | else | |
9855 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9856 | fi | |
9857 | ||
9858 | else | |
9859 | ||
9860 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
9861 | if test "x$LINE" != x ; then | |
9862 | eval "DEFAULT_$LINE" | |
9863 | else | |
9864 | no_cache=1 | |
9865 | fi | |
9866 | ||
9867 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9868 | ||
9869 | fi; | |
9870 | ||
9871 | eval "$ac_cv_use_ico_cur" | |
9872 | if test "$no_cache" != 1; then | |
9873 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9874 | fi | |
9875 | ||
9876 | if test "$wxUSE_ICO_CUR" = yes; then | |
9877 | echo "$as_me:$LINENO: result: yes" >&5 | |
9878 | echo "${ECHO_T}yes" >&6 | |
9879 | else | |
9880 | echo "$as_me:$LINENO: result: no" >&5 | |
9881 | echo "${ECHO_T}no" >&6 | |
9882 | fi | |
9883 | ||
9884 | ||
9885 | fi | |
9886 | ||
9887 | ||
9888 | ||
9889 | enablestring= | |
9890 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9891 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9892 | no_cache=0 | |
9893 | # Check whether --enable-official_build or --disable-official_build was given. | |
9894 | if test "${enable_official_build+set}" = set; then | |
9895 | enableval="$enable_official_build" | |
9896 | ||
9897 | if test "$enableval" = yes; then | |
9898 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9899 | else | |
9900 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9901 | fi | |
9902 | ||
9903 | else | |
9904 | ||
9905 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9906 | if test "x$LINE" != x ; then | |
9907 | eval "DEFAULT_$LINE" | |
9908 | else | |
9909 | no_cache=1 | |
9910 | fi | |
9911 | ||
9912 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9913 | ||
9914 | fi; | |
9915 | ||
9916 | eval "$ac_cv_use_official_build" | |
9917 | if test "$no_cache" != 1; then | |
9918 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9919 | fi | |
9920 | ||
9921 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9922 | echo "$as_me:$LINENO: result: yes" >&5 | |
9923 | echo "${ECHO_T}yes" >&6 | |
9924 | else | |
9925 | echo "$as_me:$LINENO: result: no" >&5 | |
9926 | echo "${ECHO_T}no" >&6 | |
9927 | fi | |
9928 | ||
9929 | # Check whether --enable-vendor or --disable-vendor was given. | |
9930 | if test "${enable_vendor+set}" = set; then | |
9931 | enableval="$enable_vendor" | |
9932 | VENDOR="$enableval" | |
9933 | fi; | |
9934 | if test "x$VENDOR" = "x"; then | |
9935 | VENDOR="custom" | |
9936 | fi | |
9937 | ||
9938 | case "${host}" in | |
9939 | *-pc-os2_emx | *-pc-os2-emx ) | |
9940 | PATH_IFS=';' | |
a848cd7e SC |
9941 | ;; |
9942 | *) | |
9943 | PATH_IFS=':' | |
9944 | ;; | |
9945 | esac | |
9946 | ||
9947 | ||
9948 | ||
9949 | echo "saving argument cache $wx_arg_cache_file" | |
9950 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
9951 | ||
9952 | ||
9953 | ||
9954 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9955 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
9956 | ||
9957 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9958 | if test "$wxUSE_WINE" = "yes"; then | |
9959 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9960 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9961 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9962 | wxUSE_SHARED=no | |
9963 | fi | |
9964 | ||
9965 | if test "$wxUSE_GUI" = "yes"; then | |
9966 | ||
9967 | if test "$USE_BEOS" = 1; then | |
9968 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
9969 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9970 | { (exit 1); exit 1; }; } | |
9971 | fi | |
9972 | ||
9973 | if test "$TOOLKIT_GIVEN" = 1; then | |
9974 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9975 | var=wxUSE_$toolkit | |
9976 | eval "value=\$${var}" | |
9977 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9978 | done | |
9979 | else | |
9980 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9981 | if test "$has_toolkit_in_cache" != 1; then | |
9982 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9983 | else | |
9984 | var=DEFAULT_wxUSE_$toolkit | |
9985 | fi | |
9986 | eval "wxUSE_$toolkit=\$${var}" | |
9987 | done | |
9988 | fi | |
9989 | ||
9990 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
9991 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9992 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
9993 | ||
9994 | case "${host}" in | |
9995 | *-pc-os2_emx | *-pc-os2-emx ) | |
9996 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
9997 | esac | |
9998 | ||
9999 | case "$NUM_TOOLKITS" in | |
10000 | 1) | |
10001 | ;; | |
10002 | 0) | |
10003 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10004 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10005 | { (exit 1); exit 1; }; } | |
10006 | ;; | |
10007 | *) | |
10008 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10009 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10010 | { (exit 1); exit 1; }; } | |
10011 | esac | |
10012 | ||
10013 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10014 | var=wxUSE_$toolkit | |
10015 | eval "value=\$${var}" | |
10016 | if test "x$value" != x; then | |
10017 | cache_var=CACHE_$toolkit | |
10018 | eval "cache=\$${cache_var}" | |
10019 | if test "$cache" = 1; then | |
10020 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10021 | fi | |
10022 | if test "$value" = 1; then | |
10023 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10024 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10025 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10026 | fi | |
10027 | fi | |
10028 | done | |
10029 | else | |
10030 | if test "x$host_alias" != "x"; then | |
10031 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10032 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10033 | else | |
10034 | echo "$as_me:$LINENO: result: base only" >&5 | |
10035 | echo "${ECHO_T}base only" >&6 | |
10036 | fi | |
10037 | fi | |
10038 | ||
10039 | wants_win32=0 | |
10040 | doesnt_want_win32=0 | |
10041 | case "${host}" in | |
10042 | *-*-cygwin*) | |
10043 | if test "$wxUSE_MSW" = 1 ; then | |
10044 | wants_win32=1 | |
10045 | else | |
10046 | doesnt_want_win32=1 | |
10047 | fi | |
10048 | ;; | |
10049 | *-*-mingw*) | |
10050 | wants_win32=1 | |
10051 | ;; | |
10052 | esac | |
10053 | ||
10054 | if test "$wxUSE_WINE" = "yes"; then | |
10055 | wants_win32=1 | |
10056 | CC=winegcc | |
10057 | CXX=wineg++ | |
10058 | RESCOMP=wrc | |
10059 | LDFLAGS_GUI="-mwindows" | |
10060 | fi | |
10061 | ||
10062 | if test "$wants_win32" = 1 ; then | |
10063 | USE_UNIX=0 | |
10064 | USE_WIN32=1 | |
10065 | cat >>confdefs.h <<\_ACEOF | |
10066 | #define __WIN32__ 1 | |
10067 | _ACEOF | |
10068 | ||
10069 | cat >>confdefs.h <<\_ACEOF | |
10070 | #define __WIN95__ 1 | |
10071 | _ACEOF | |
10072 | ||
10073 | cat >>confdefs.h <<\_ACEOF | |
10074 | #define __WINDOWS__ 1 | |
10075 | _ACEOF | |
10076 | ||
10077 | cat >>confdefs.h <<\_ACEOF | |
10078 | #define __GNUWIN32__ 1 | |
10079 | _ACEOF | |
10080 | ||
10081 | cat >>confdefs.h <<\_ACEOF | |
10082 | #define STRICT 1 | |
10083 | _ACEOF | |
10084 | ||
10085 | cat >>confdefs.h <<\_ACEOF | |
10086 | #define WINVER 0x0400 | |
10087 | _ACEOF | |
10088 | ||
10089 | fi | |
10090 | if test "$doesnt_want_win32" = 1 ; then | |
10091 | USE_UNIX=1 | |
10092 | USE_WIN32=0 | |
10093 | fi | |
10094 | ||
10095 | if test "$USE_UNIX" = 1 ; then | |
10096 | wxUSE_UNIX=yes | |
10097 | cat >>confdefs.h <<\_ACEOF | |
10098 | #define __UNIX__ 1 | |
10099 | _ACEOF | |
10100 | ||
10101 | fi | |
10102 | ||
10103 | ||
10104 | cat >confcache <<\_ACEOF | |
10105 | # This file is a shell script that caches the results of configure | |
10106 | # tests run on this system so they can be shared between configure | |
10107 | # scripts and configure runs, see configure's option --config-cache. | |
10108 | # It is not useful on other systems. If it contains results you don't | |
10109 | # want to keep, you may remove or edit it. | |
10110 | # | |
10111 | # config.status only pays attention to the cache file if you give it | |
10112 | # the --recheck option to rerun configure. | |
10113 | # | |
10114 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10115 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10116 | # following values. | |
10117 | ||
10118 | _ACEOF | |
10119 | ||
10120 | # The following way of writing the cache mishandles newlines in values, | |
10121 | # but we know of no workaround that is simple, portable, and efficient. | |
10122 | # So, don't put newlines in cache variables' values. | |
10123 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10124 | # and sets the high bit in the cache file unless we assign to the vars. | |
10125 | { | |
10126 | (set) 2>&1 | | |
10127 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10128 | *ac_space=\ *) | |
10129 | # `set' does not quote correctly, so add quotes (double-quote | |
10130 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10131 | sed -n \ | |
ac1cb8d3 VS |
10132 | "s/'/'\\\\''/g; |
10133 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10134 | ;; |
10135 | *) | |
10136 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10137 | sed -n \ | |
ac1cb8d3 | 10138 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10139 | ;; |
10140 | esac; | |
10141 | } | | |
10142 | sed ' | |
10143 | t clear | |
10144 | : clear | |
10145 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10146 | t end | |
10147 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10148 | : end' >>confcache | |
10149 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10150 | if test -w $cache_file; then | |
10151 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10152 | cat confcache >$cache_file | |
10153 | else | |
10154 | echo "not updating unwritable cache $cache_file" | |
10155 | fi | |
10156 | fi | |
10157 | rm -f confcache | |
10158 | ||
10159 | if test "$build" != "$host" ; then | |
10160 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10161 | CC=$host_alias-gcc | |
10162 | CXX=$host_alias-c++ | |
10163 | AR=$host_alias-ar | |
10164 | RANLIB=$host_alias-ranlib | |
10165 | DLLTOOL=$host_alias-dlltool | |
10166 | RESCOMP=$host_alias-windres | |
10167 | LD=$host_alias-ld | |
10168 | NM=$host_alias-nm | |
10169 | STRIP=$host_alias-strip | |
10170 | else | |
10171 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10172 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10173 | { (exit 1); exit 1; }; } | |
10174 | fi | |
10175 | fi | |
10176 | ||
10177 | CFLAGS=${CFLAGS:=} | |
10178 | ac_ext=c | |
10179 | ac_cpp='$CPP $CPPFLAGS' | |
10180 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10181 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10182 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10183 | if test -n "$ac_tool_prefix"; then | |
10184 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10185 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10188 | if test "${ac_cv_prog_CC+set}" = set; then | |
10189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10190 | else | |
10191 | if test -n "$CC"; then | |
10192 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10193 | else | |
10194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10195 | for as_dir in $PATH | |
10196 | do | |
10197 | IFS=$as_save_IFS | |
10198 | test -z "$as_dir" && as_dir=. | |
10199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10201 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10203 | break 2 | |
10204 | fi | |
10205 | done | |
10206 | done | |
10207 | ||
10208 | fi | |
10209 | fi | |
10210 | CC=$ac_cv_prog_CC | |
10211 | if test -n "$CC"; then | |
10212 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10213 | echo "${ECHO_T}$CC" >&6 | |
10214 | else | |
10215 | echo "$as_me:$LINENO: result: no" >&5 | |
10216 | echo "${ECHO_T}no" >&6 | |
10217 | fi | |
10218 | ||
10219 | fi | |
10220 | if test -z "$ac_cv_prog_CC"; then | |
10221 | ac_ct_CC=$CC | |
10222 | # Extract the first word of "gcc", so it can be a program name with args. | |
10223 | set dummy gcc; ac_word=$2 | |
10224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10226 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10228 | else | |
10229 | if test -n "$ac_ct_CC"; then | |
10230 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10231 | else | |
10232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10233 | for as_dir in $PATH | |
10234 | do | |
10235 | IFS=$as_save_IFS | |
10236 | test -z "$as_dir" && as_dir=. | |
10237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10238 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10239 | ac_cv_prog_ac_ct_CC="gcc" | |
10240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10241 | break 2 | |
10242 | fi | |
10243 | done | |
10244 | done | |
10245 | ||
10246 | fi | |
10247 | fi | |
10248 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10249 | if test -n "$ac_ct_CC"; then | |
10250 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10251 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10252 | else | |
10253 | echo "$as_me:$LINENO: result: no" >&5 | |
10254 | echo "${ECHO_T}no" >&6 | |
10255 | fi | |
10256 | ||
10257 | CC=$ac_ct_CC | |
10258 | else | |
10259 | CC="$ac_cv_prog_CC" | |
10260 | fi | |
10261 | ||
10262 | if test -z "$CC"; then | |
10263 | if test -n "$ac_tool_prefix"; then | |
10264 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10265 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10268 | if test "${ac_cv_prog_CC+set}" = set; then | |
10269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10270 | else | |
10271 | if test -n "$CC"; then | |
10272 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10273 | else | |
10274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10275 | for as_dir in $PATH | |
10276 | do | |
10277 | IFS=$as_save_IFS | |
10278 | test -z "$as_dir" && as_dir=. | |
10279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10280 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10281 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10283 | break 2 | |
10284 | fi | |
10285 | done | |
10286 | done | |
10287 | ||
10288 | fi | |
10289 | fi | |
10290 | CC=$ac_cv_prog_CC | |
10291 | if test -n "$CC"; then | |
10292 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10293 | echo "${ECHO_T}$CC" >&6 | |
10294 | else | |
10295 | echo "$as_me:$LINENO: result: no" >&5 | |
10296 | echo "${ECHO_T}no" >&6 | |
10297 | fi | |
10298 | ||
10299 | fi | |
10300 | if test -z "$ac_cv_prog_CC"; then | |
10301 | ac_ct_CC=$CC | |
10302 | # Extract the first word of "cc", so it can be a program name with args. | |
10303 | set dummy cc; ac_word=$2 | |
10304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10306 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10308 | else | |
10309 | if test -n "$ac_ct_CC"; then | |
10310 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10311 | else | |
10312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10313 | for as_dir in $PATH | |
10314 | do | |
10315 | IFS=$as_save_IFS | |
10316 | test -z "$as_dir" && as_dir=. | |
10317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10318 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10319 | ac_cv_prog_ac_ct_CC="cc" | |
10320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10321 | break 2 | |
10322 | fi | |
10323 | done | |
10324 | done | |
10325 | ||
10326 | fi | |
10327 | fi | |
10328 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10329 | if test -n "$ac_ct_CC"; then | |
10330 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10331 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10332 | else | |
10333 | echo "$as_me:$LINENO: result: no" >&5 | |
10334 | echo "${ECHO_T}no" >&6 | |
10335 | fi | |
10336 | ||
10337 | CC=$ac_ct_CC | |
10338 | else | |
10339 | CC="$ac_cv_prog_CC" | |
10340 | fi | |
10341 | ||
10342 | fi | |
10343 | if test -z "$CC"; then | |
10344 | # Extract the first word of "cc", so it can be a program name with args. | |
10345 | set dummy cc; ac_word=$2 | |
10346 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10348 | if test "${ac_cv_prog_CC+set}" = set; then | |
10349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10350 | else | |
10351 | if test -n "$CC"; then | |
10352 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10353 | else | |
10354 | ac_prog_rejected=no | |
10355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10356 | for as_dir in $PATH | |
10357 | do | |
10358 | IFS=$as_save_IFS | |
10359 | test -z "$as_dir" && as_dir=. | |
10360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10362 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10363 | ac_prog_rejected=yes | |
10364 | continue | |
10365 | fi | |
10366 | ac_cv_prog_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 | if test $ac_prog_rejected = yes; then | |
10374 | # We found a bogon in the path, so make sure we never use it. | |
10375 | set dummy $ac_cv_prog_CC | |
10376 | shift | |
10377 | if test $# != 0; then | |
10378 | # We chose a different compiler from the bogus one. | |
10379 | # However, it has the same basename, so the bogon will be chosen | |
10380 | # first if we set CC to just the basename; use the full file name. | |
10381 | shift | |
10382 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10383 | fi | |
10384 | fi | |
10385 | fi | |
10386 | fi | |
10387 | CC=$ac_cv_prog_CC | |
10388 | if test -n "$CC"; then | |
10389 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10390 | echo "${ECHO_T}$CC" >&6 | |
10391 | else | |
10392 | echo "$as_me:$LINENO: result: no" >&5 | |
10393 | echo "${ECHO_T}no" >&6 | |
10394 | fi | |
10395 | ||
10396 | fi | |
10397 | if test -z "$CC"; then | |
10398 | if test -n "$ac_tool_prefix"; then | |
10399 | for ac_prog in cl | |
10400 | do | |
10401 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10402 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10403 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10404 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10405 | if test "${ac_cv_prog_CC+set}" = set; then | |
10406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10407 | else | |
10408 | if test -n "$CC"; then | |
10409 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10410 | else | |
10411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10412 | for as_dir in $PATH | |
10413 | do | |
10414 | IFS=$as_save_IFS | |
10415 | test -z "$as_dir" && as_dir=. | |
10416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10417 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10418 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10419 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10420 | break 2 | |
10421 | fi | |
10422 | done | |
10423 | done | |
10424 | ||
10425 | fi | |
10426 | fi | |
10427 | CC=$ac_cv_prog_CC | |
10428 | if test -n "$CC"; then | |
10429 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10430 | echo "${ECHO_T}$CC" >&6 | |
10431 | else | |
10432 | echo "$as_me:$LINENO: result: no" >&5 | |
10433 | echo "${ECHO_T}no" >&6 | |
10434 | fi | |
10435 | ||
10436 | test -n "$CC" && break | |
10437 | done | |
10438 | fi | |
10439 | if test -z "$CC"; then | |
10440 | ac_ct_CC=$CC | |
10441 | for ac_prog in cl | |
10442 | do | |
10443 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10444 | set dummy $ac_prog; ac_word=$2 | |
10445 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10447 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10449 | else | |
10450 | if test -n "$ac_ct_CC"; then | |
10451 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10452 | else | |
10453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10454 | for as_dir in $PATH | |
10455 | do | |
10456 | IFS=$as_save_IFS | |
10457 | test -z "$as_dir" && as_dir=. | |
10458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10459 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10460 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10462 | break 2 | |
10463 | fi | |
10464 | done | |
10465 | done | |
10466 | ||
10467 | fi | |
10468 | fi | |
10469 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10470 | if test -n "$ac_ct_CC"; then | |
10471 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10472 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10473 | else | |
10474 | echo "$as_me:$LINENO: result: no" >&5 | |
10475 | echo "${ECHO_T}no" >&6 | |
10476 | fi | |
10477 | ||
10478 | test -n "$ac_ct_CC" && break | |
10479 | done | |
10480 | ||
10481 | CC=$ac_ct_CC | |
10482 | fi | |
10483 | ||
10484 | fi | |
10485 | ||
10486 | ||
10487 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10488 | See \`config.log' for more details." >&5 | |
10489 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10490 | See \`config.log' for more details." >&2;} | |
10491 | { (exit 1); exit 1; }; } | |
10492 | ||
10493 | # Provide some information about the compiler. | |
10494 | echo "$as_me:$LINENO:" \ | |
10495 | "checking for C compiler version" >&5 | |
10496 | ac_compiler=`set X $ac_compile; echo $2` | |
10497 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10498 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10499 | ac_status=$? | |
10500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10501 | (exit $ac_status); } | |
10502 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10503 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10504 | ac_status=$? | |
10505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10506 | (exit $ac_status); } | |
10507 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10508 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10509 | ac_status=$? | |
10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10511 | (exit $ac_status); } | |
10512 | ||
10513 | cat >conftest.$ac_ext <<_ACEOF | |
10514 | /* confdefs.h. */ | |
10515 | _ACEOF | |
10516 | cat confdefs.h >>conftest.$ac_ext | |
10517 | cat >>conftest.$ac_ext <<_ACEOF | |
10518 | /* end confdefs.h. */ | |
10519 | ||
10520 | int | |
10521 | main () | |
10522 | { | |
10523 | ||
10524 | ; | |
10525 | return 0; | |
10526 | } | |
10527 | _ACEOF | |
10528 | ac_clean_files_save=$ac_clean_files | |
10529 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10530 | # Try to create an executable without -o first, disregard a.out. | |
10531 | # It will help us diagnose broken compilers, and finding out an intuition | |
10532 | # of exeext. | |
ac1cb8d3 VS |
10533 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10534 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10535 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10536 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10537 | (eval $ac_link_default) 2>&5 | |
10538 | ac_status=$? | |
10539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10540 | (exit $ac_status); }; then | |
10541 | # Find the output, starting from the most likely. This scheme is | |
10542 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10543 | # resort. | |
10544 | ||
10545 | # Be careful to initialize this variable, since it used to be cached. | |
10546 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10547 | ac_cv_exeext= | |
10548 | # b.out is created by i960 compilers. | |
10549 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10550 | do | |
10551 | test -f "$ac_file" || continue | |
10552 | case $ac_file in | |
10553 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10554 | ;; |
a848cd7e | 10555 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10556 | # This is the source file. |
10557 | ;; | |
a848cd7e | 10558 | [ab].out ) |
ac1cb8d3 VS |
10559 | # We found the default executable, but exeext='' is most |
10560 | # certainly right. | |
10561 | break;; | |
a848cd7e | 10562 | *.* ) |
ac1cb8d3 VS |
10563 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10564 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10565 | # but it would be cool to find out if it's true. Does anybody | |
10566 | # maintain Libtool? --akim. | |
10567 | export ac_cv_exeext | |
10568 | break;; | |
a848cd7e | 10569 | * ) |
ac1cb8d3 | 10570 | break;; |
a848cd7e SC |
10571 | esac |
10572 | done | |
10573 | else | |
10574 | echo "$as_me: failed program was:" >&5 | |
10575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10576 | ||
10577 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10578 | See \`config.log' for more details." >&5 | |
10579 | echo "$as_me: error: C compiler cannot create executables | |
10580 | See \`config.log' for more details." >&2;} | |
10581 | { (exit 77); exit 77; }; } | |
10582 | fi | |
10583 | ||
10584 | ac_exeext=$ac_cv_exeext | |
10585 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10586 | echo "${ECHO_T}$ac_file" >&6 | |
10587 | ||
10588 | # Check the compiler produces executables we can run. If not, either | |
10589 | # the compiler is broken, or we cross compile. | |
10590 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10591 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10592 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10593 | # If not cross compiling, check that we can run a simple program. | |
10594 | if test "$cross_compiling" != yes; then | |
10595 | if { ac_try='./$ac_file' | |
10596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10597 | (eval $ac_try) 2>&5 | |
10598 | ac_status=$? | |
10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10600 | (exit $ac_status); }; }; then | |
10601 | cross_compiling=no | |
10602 | else | |
10603 | if test "$cross_compiling" = maybe; then | |
10604 | cross_compiling=yes | |
10605 | else | |
10606 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10607 | If you meant to cross compile, use \`--host'. | |
10608 | See \`config.log' for more details." >&5 | |
10609 | echo "$as_me: error: cannot run C compiled programs. | |
10610 | If you meant to cross compile, use \`--host'. | |
10611 | See \`config.log' for more details." >&2;} | |
10612 | { (exit 1); exit 1; }; } | |
10613 | fi | |
10614 | fi | |
10615 | fi | |
10616 | echo "$as_me:$LINENO: result: yes" >&5 | |
10617 | echo "${ECHO_T}yes" >&6 | |
10618 | ||
10619 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10620 | ac_clean_files=$ac_clean_files_save | |
10621 | # Check the compiler produces executables we can run. If not, either | |
10622 | # the compiler is broken, or we cross compile. | |
10623 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10624 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10625 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10626 | echo "${ECHO_T}$cross_compiling" >&6 | |
10627 | ||
10628 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10629 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10631 | (eval $ac_link) 2>&5 | |
10632 | ac_status=$? | |
10633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10634 | (exit $ac_status); }; then | |
10635 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10636 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10637 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10638 | # `rm'. | |
10639 | for ac_file in conftest.exe conftest conftest.*; do | |
10640 | test -f "$ac_file" || continue | |
10641 | case $ac_file in | |
10642 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10643 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10644 | export ac_cv_exeext |
10645 | break;; | |
a848cd7e SC |
10646 | * ) break;; |
10647 | esac | |
10648 | done | |
10649 | else | |
10650 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10651 | See \`config.log' for more details." >&5 | |
10652 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10653 | See \`config.log' for more details." >&2;} | |
10654 | { (exit 1); exit 1; }; } | |
10655 | fi | |
10656 | ||
10657 | rm -f conftest$ac_cv_exeext | |
10658 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10659 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10660 | ||
10661 | rm -f conftest.$ac_ext | |
10662 | EXEEXT=$ac_cv_exeext | |
10663 | ac_exeext=$EXEEXT | |
10664 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10665 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10666 | if test "${ac_cv_objext+set}" = set; then | |
10667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10668 | else | |
10669 | cat >conftest.$ac_ext <<_ACEOF | |
10670 | /* confdefs.h. */ | |
10671 | _ACEOF | |
10672 | cat confdefs.h >>conftest.$ac_ext | |
10673 | cat >>conftest.$ac_ext <<_ACEOF | |
10674 | /* end confdefs.h. */ | |
10675 | ||
10676 | int | |
10677 | main () | |
10678 | { | |
10679 | ||
10680 | ; | |
10681 | return 0; | |
10682 | } | |
10683 | _ACEOF | |
10684 | rm -f conftest.o conftest.obj | |
10685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10686 | (eval $ac_compile) 2>&5 | |
10687 | ac_status=$? | |
10688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10689 | (exit $ac_status); }; then | |
10690 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10691 | case $ac_file in | |
10692 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10693 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10694 | break;; | |
10695 | esac | |
10696 | done | |
10697 | else | |
10698 | echo "$as_me: failed program was:" >&5 | |
10699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10700 | ||
10701 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10702 | See \`config.log' for more details." >&5 | |
10703 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10704 | See \`config.log' for more details." >&2;} | |
10705 | { (exit 1); exit 1; }; } | |
10706 | fi | |
10707 | ||
10708 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10709 | fi | |
10710 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10711 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10712 | OBJEXT=$ac_cv_objext | |
10713 | ac_objext=$OBJEXT | |
10714 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10715 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10716 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10718 | else | |
10719 | cat >conftest.$ac_ext <<_ACEOF | |
10720 | /* confdefs.h. */ | |
10721 | _ACEOF | |
10722 | cat confdefs.h >>conftest.$ac_ext | |
10723 | cat >>conftest.$ac_ext <<_ACEOF | |
10724 | /* end confdefs.h. */ | |
10725 | ||
10726 | int | |
10727 | main () | |
10728 | { | |
10729 | #ifndef __GNUC__ | |
10730 | choke me | |
10731 | #endif | |
10732 | ||
10733 | ; | |
10734 | return 0; | |
10735 | } | |
10736 | _ACEOF | |
10737 | rm -f conftest.$ac_objext | |
10738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10739 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10740 | ac_status=$? |
ac1cb8d3 VS |
10741 | grep -v '^ *+' conftest.er1 >conftest.err |
10742 | rm -f conftest.er1 | |
10743 | cat conftest.err >&5 | |
a848cd7e SC |
10744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10745 | (exit $ac_status); } && | |
ea7db9ff DE |
10746 | { ac_try='test -z "$ac_c_werror_flag" |
10747 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10749 | (eval $ac_try) 2>&5 | |
10750 | ac_status=$? | |
10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10752 | (exit $ac_status); }; } && | |
10753 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10755 | (eval $ac_try) 2>&5 | |
10756 | ac_status=$? | |
10757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10758 | (exit $ac_status); }; }; then | |
10759 | ac_compiler_gnu=yes | |
10760 | else | |
10761 | echo "$as_me: failed program was:" >&5 | |
10762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10763 | ||
10764 | ac_compiler_gnu=no | |
10765 | fi | |
ac1cb8d3 | 10766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10767 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10768 | ||
10769 | fi | |
10770 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10771 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10772 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10773 | ac_test_CFLAGS=${CFLAGS+set} | |
10774 | ac_save_CFLAGS=$CFLAGS | |
10775 | CFLAGS="-g" | |
10776 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10777 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10778 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10780 | else | |
10781 | cat >conftest.$ac_ext <<_ACEOF | |
10782 | /* confdefs.h. */ | |
10783 | _ACEOF | |
10784 | cat confdefs.h >>conftest.$ac_ext | |
10785 | cat >>conftest.$ac_ext <<_ACEOF | |
10786 | /* end confdefs.h. */ | |
10787 | ||
10788 | int | |
10789 | main () | |
10790 | { | |
10791 | ||
10792 | ; | |
10793 | return 0; | |
10794 | } | |
10795 | _ACEOF | |
10796 | rm -f conftest.$ac_objext | |
10797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10798 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10799 | ac_status=$? |
ac1cb8d3 VS |
10800 | grep -v '^ *+' conftest.er1 >conftest.err |
10801 | rm -f conftest.er1 | |
10802 | cat conftest.err >&5 | |
a848cd7e SC |
10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10804 | (exit $ac_status); } && | |
ea7db9ff DE |
10805 | { ac_try='test -z "$ac_c_werror_flag" |
10806 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10808 | (eval $ac_try) 2>&5 | |
10809 | ac_status=$? | |
10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10811 | (exit $ac_status); }; } && | |
10812 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10814 | (eval $ac_try) 2>&5 | |
10815 | ac_status=$? | |
10816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10817 | (exit $ac_status); }; }; then | |
10818 | ac_cv_prog_cc_g=yes | |
10819 | else | |
10820 | echo "$as_me: failed program was:" >&5 | |
10821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10822 | ||
10823 | ac_cv_prog_cc_g=no | |
10824 | fi | |
ac1cb8d3 | 10825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10826 | fi |
10827 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10828 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10829 | if test "$ac_test_CFLAGS" = set; then | |
10830 | CFLAGS=$ac_save_CFLAGS | |
10831 | elif test $ac_cv_prog_cc_g = yes; then | |
10832 | if test "$GCC" = yes; then | |
10833 | CFLAGS="-g -O2" | |
10834 | else | |
10835 | CFLAGS="-g" | |
10836 | fi | |
10837 | else | |
10838 | if test "$GCC" = yes; then | |
10839 | CFLAGS="-O2" | |
10840 | else | |
10841 | CFLAGS= | |
10842 | fi | |
10843 | fi | |
10844 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10845 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10846 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10848 | else | |
10849 | ac_cv_prog_cc_stdc=no | |
10850 | ac_save_CC=$CC | |
10851 | cat >conftest.$ac_ext <<_ACEOF | |
10852 | /* confdefs.h. */ | |
10853 | _ACEOF | |
10854 | cat confdefs.h >>conftest.$ac_ext | |
10855 | cat >>conftest.$ac_ext <<_ACEOF | |
10856 | /* end confdefs.h. */ | |
10857 | #include <stdarg.h> | |
10858 | #include <stdio.h> | |
10859 | #include <sys/types.h> | |
10860 | #include <sys/stat.h> | |
10861 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10862 | struct buf { int x; }; | |
10863 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10864 | static char *e (p, i) | |
10865 | char **p; | |
10866 | int i; | |
10867 | { | |
10868 | return p[i]; | |
10869 | } | |
10870 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10871 | { | |
10872 | char *s; | |
10873 | va_list v; | |
10874 | va_start (v,p); | |
10875 | s = g (p, va_arg (v,int)); | |
10876 | va_end (v); | |
10877 | return s; | |
10878 | } | |
ac1cb8d3 VS |
10879 | |
10880 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10881 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10882 | These don't provoke an error unfortunately, instead are silently treated | |
10883 | as 'x'. The following induces an error, until -std1 is added to get | |
10884 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10885 | array size at least. It's necessary to write '\x00'==0 to get something | |
10886 | that's true only with -std1. */ | |
10887 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10888 | ||
a848cd7e SC |
10889 | int test (int i, double x); |
10890 | struct s1 {int (*f) (int a);}; | |
10891 | struct s2 {int (*f) (double a);}; | |
10892 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10893 | int argc; | |
10894 | char **argv; | |
10895 | int | |
10896 | main () | |
10897 | { | |
10898 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10899 | ; | |
10900 | return 0; | |
10901 | } | |
10902 | _ACEOF | |
10903 | # Don't try gcc -ansi; that turns off useful extensions and | |
10904 | # breaks some systems' header files. | |
10905 | # AIX -qlanglvl=ansi | |
10906 | # Ultrix and OSF/1 -std1 | |
10907 | # HP-UX 10.20 and later -Ae | |
10908 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10909 | # SVR4 -Xc -D__EXTENSIONS__ | |
10910 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10911 | do | |
10912 | CC="$ac_save_CC $ac_arg" | |
10913 | rm -f conftest.$ac_objext | |
10914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10915 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10916 | ac_status=$? |
ac1cb8d3 VS |
10917 | grep -v '^ *+' conftest.er1 >conftest.err |
10918 | rm -f conftest.er1 | |
10919 | cat conftest.err >&5 | |
a848cd7e SC |
10920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10921 | (exit $ac_status); } && | |
ea7db9ff DE |
10922 | { ac_try='test -z "$ac_c_werror_flag" |
10923 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10925 | (eval $ac_try) 2>&5 | |
10926 | ac_status=$? | |
10927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10928 | (exit $ac_status); }; } && | |
10929 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10931 | (eval $ac_try) 2>&5 | |
10932 | ac_status=$? | |
10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10934 | (exit $ac_status); }; }; then | |
10935 | ac_cv_prog_cc_stdc=$ac_arg | |
10936 | break | |
10937 | else | |
10938 | echo "$as_me: failed program was:" >&5 | |
10939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10940 | ||
10941 | fi | |
ac1cb8d3 | 10942 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
10943 | done |
10944 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10945 | CC=$ac_save_CC | |
10946 | ||
10947 | fi | |
10948 | ||
10949 | case "x$ac_cv_prog_cc_stdc" in | |
10950 | x|xno) | |
10951 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10952 | echo "${ECHO_T}none needed" >&6 ;; | |
10953 | *) | |
10954 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10955 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10956 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10957 | esac | |
10958 | ||
10959 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10960 | # in C++ we need to declare it. In case someone uses the same compiler | |
10961 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10962 | # the declaration of exit, since it's the most demanding environment. | |
10963 | cat >conftest.$ac_ext <<_ACEOF | |
10964 | #ifndef __cplusplus | |
10965 | choke me | |
10966 | #endif | |
10967 | _ACEOF | |
10968 | rm -f conftest.$ac_objext | |
10969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10970 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10971 | ac_status=$? |
ac1cb8d3 VS |
10972 | grep -v '^ *+' conftest.er1 >conftest.err |
10973 | rm -f conftest.er1 | |
10974 | cat conftest.err >&5 | |
a848cd7e SC |
10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10976 | (exit $ac_status); } && | |
ea7db9ff DE |
10977 | { ac_try='test -z "$ac_c_werror_flag" |
10978 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10980 | (eval $ac_try) 2>&5 | |
10981 | ac_status=$? | |
10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10983 | (exit $ac_status); }; } && | |
10984 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10986 | (eval $ac_try) 2>&5 | |
10987 | ac_status=$? | |
10988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10989 | (exit $ac_status); }; }; then | |
10990 | for ac_declaration in \ | |
ac1cb8d3 | 10991 | '' \ |
a848cd7e SC |
10992 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10993 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10994 | 'extern "C" void exit (int) throw ();' \ | |
10995 | 'extern "C" void exit (int);' \ | |
10996 | 'void exit (int);' | |
10997 | do | |
10998 | cat >conftest.$ac_ext <<_ACEOF | |
10999 | /* confdefs.h. */ | |
11000 | _ACEOF | |
11001 | cat confdefs.h >>conftest.$ac_ext | |
11002 | cat >>conftest.$ac_ext <<_ACEOF | |
11003 | /* end confdefs.h. */ | |
de59c161 | 11004 | $ac_declaration |
ac1cb8d3 | 11005 | #include <stdlib.h> |
a848cd7e SC |
11006 | int |
11007 | main () | |
11008 | { | |
11009 | exit (42); | |
11010 | ; | |
11011 | return 0; | |
11012 | } | |
11013 | _ACEOF | |
11014 | rm -f conftest.$ac_objext | |
11015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11016 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11017 | ac_status=$? |
ac1cb8d3 VS |
11018 | grep -v '^ *+' conftest.er1 >conftest.err |
11019 | rm -f conftest.er1 | |
11020 | cat conftest.err >&5 | |
a848cd7e SC |
11021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11022 | (exit $ac_status); } && | |
ea7db9ff DE |
11023 | { ac_try='test -z "$ac_c_werror_flag" |
11024 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11026 | (eval $ac_try) 2>&5 | |
11027 | ac_status=$? | |
11028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11029 | (exit $ac_status); }; } && | |
11030 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11032 | (eval $ac_try) 2>&5 | |
11033 | ac_status=$? | |
11034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11035 | (exit $ac_status); }; }; then | |
11036 | : | |
11037 | else | |
11038 | echo "$as_me: failed program was:" >&5 | |
11039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11040 | ||
11041 | continue | |
11042 | fi | |
ac1cb8d3 | 11043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11044 | cat >conftest.$ac_ext <<_ACEOF |
11045 | /* confdefs.h. */ | |
11046 | _ACEOF | |
11047 | cat confdefs.h >>conftest.$ac_ext | |
11048 | cat >>conftest.$ac_ext <<_ACEOF | |
11049 | /* end confdefs.h. */ | |
11050 | $ac_declaration | |
11051 | int | |
11052 | main () | |
11053 | { | |
11054 | exit (42); | |
11055 | ; | |
11056 | return 0; | |
11057 | } | |
11058 | _ACEOF | |
11059 | rm -f conftest.$ac_objext | |
11060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11061 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11062 | ac_status=$? |
ac1cb8d3 VS |
11063 | grep -v '^ *+' conftest.er1 >conftest.err |
11064 | rm -f conftest.er1 | |
11065 | cat conftest.err >&5 | |
a848cd7e SC |
11066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11067 | (exit $ac_status); } && | |
ea7db9ff DE |
11068 | { ac_try='test -z "$ac_c_werror_flag" |
11069 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11071 | (eval $ac_try) 2>&5 | |
11072 | ac_status=$? | |
11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11074 | (exit $ac_status); }; } && | |
11075 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11077 | (eval $ac_try) 2>&5 | |
11078 | ac_status=$? | |
11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11080 | (exit $ac_status); }; }; then | |
11081 | break | |
11082 | else | |
11083 | echo "$as_me: failed program was:" >&5 | |
11084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11085 | ||
11086 | fi | |
ac1cb8d3 | 11087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11088 | done |
11089 | rm -f conftest* | |
11090 | if test -n "$ac_declaration"; then | |
11091 | echo '#ifdef __cplusplus' >>confdefs.h | |
11092 | echo $ac_declaration >>confdefs.h | |
11093 | echo '#endif' >>confdefs.h | |
11094 | fi | |
11095 | ||
11096 | else | |
11097 | echo "$as_me: failed program was:" >&5 | |
11098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11099 | ||
11100 | fi | |
ac1cb8d3 | 11101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11102 | ac_ext=c |
11103 | ac_cpp='$CPP $CPPFLAGS' | |
11104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11107 | ||
11108 | ||
11109 | ||
11110 | ac_ext=c | |
11111 | ac_cpp='$CPP $CPPFLAGS' | |
11112 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11113 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11114 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11115 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11116 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11117 | # On Suns, sometimes $CPP names a directory. | |
11118 | if test -n "$CPP" && test -d "$CPP"; then | |
11119 | CPP= | |
11120 | fi | |
11121 | if test -z "$CPP"; then | |
11122 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11124 | else | |
11125 | # Double quotes because CPP needs to be expanded | |
11126 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11127 | do | |
11128 | ac_preproc_ok=false | |
11129 | for ac_c_preproc_warn_flag in '' yes | |
11130 | do | |
11131 | # Use a header file that comes with gcc, so configuring glibc | |
11132 | # with a fresh cross-compiler works. | |
11133 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11134 | # <limits.h> exists even on freestanding compilers. | |
11135 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11136 | # not just through cpp. "Syntax error" is here to catch this case. | |
11137 | cat >conftest.$ac_ext <<_ACEOF | |
11138 | /* confdefs.h. */ | |
11139 | _ACEOF | |
11140 | cat confdefs.h >>conftest.$ac_ext | |
11141 | cat >>conftest.$ac_ext <<_ACEOF | |
11142 | /* end confdefs.h. */ | |
11143 | #ifdef __STDC__ | |
11144 | # include <limits.h> | |
11145 | #else | |
11146 | # include <assert.h> | |
11147 | #endif | |
ac1cb8d3 | 11148 | Syntax error |
a848cd7e SC |
11149 | _ACEOF |
11150 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11151 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11152 | ac_status=$? | |
11153 | grep -v '^ *+' conftest.er1 >conftest.err | |
11154 | rm -f conftest.er1 | |
11155 | cat conftest.err >&5 | |
11156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11157 | (exit $ac_status); } >/dev/null; then | |
11158 | if test -s conftest.err; then | |
11159 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11160 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11161 | else |
11162 | ac_cpp_err= | |
11163 | fi | |
11164 | else | |
11165 | ac_cpp_err=yes | |
11166 | fi | |
11167 | if test -z "$ac_cpp_err"; then | |
11168 | : | |
11169 | else | |
11170 | echo "$as_me: failed program was:" >&5 | |
11171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11172 | ||
11173 | # Broken: fails on valid input. | |
11174 | continue | |
11175 | fi | |
11176 | rm -f conftest.err conftest.$ac_ext | |
11177 | ||
11178 | # OK, works on sane cases. Now check whether non-existent headers | |
11179 | # can be detected and how. | |
11180 | cat >conftest.$ac_ext <<_ACEOF | |
11181 | /* confdefs.h. */ | |
11182 | _ACEOF | |
11183 | cat confdefs.h >>conftest.$ac_ext | |
11184 | cat >>conftest.$ac_ext <<_ACEOF | |
11185 | /* end confdefs.h. */ | |
11186 | #include <ac_nonexistent.h> | |
11187 | _ACEOF | |
11188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11190 | ac_status=$? | |
11191 | grep -v '^ *+' conftest.er1 >conftest.err | |
11192 | rm -f conftest.er1 | |
11193 | cat conftest.err >&5 | |
11194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11195 | (exit $ac_status); } >/dev/null; then | |
11196 | if test -s conftest.err; then | |
11197 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11198 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11199 | else |
11200 | ac_cpp_err= | |
11201 | fi | |
11202 | else | |
11203 | ac_cpp_err=yes | |
11204 | fi | |
11205 | if test -z "$ac_cpp_err"; then | |
11206 | # Broken: success on invalid input. | |
11207 | continue | |
11208 | else | |
11209 | echo "$as_me: failed program was:" >&5 | |
11210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11211 | ||
11212 | # Passes both tests. | |
11213 | ac_preproc_ok=: | |
11214 | break | |
11215 | fi | |
11216 | rm -f conftest.err conftest.$ac_ext | |
11217 | ||
11218 | done | |
11219 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11220 | rm -f conftest.err conftest.$ac_ext | |
11221 | if $ac_preproc_ok; then | |
11222 | break | |
11223 | fi | |
11224 | ||
11225 | done | |
11226 | ac_cv_prog_CPP=$CPP | |
11227 | ||
11228 | fi | |
11229 | CPP=$ac_cv_prog_CPP | |
11230 | else | |
11231 | ac_cv_prog_CPP=$CPP | |
11232 | fi | |
11233 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11234 | echo "${ECHO_T}$CPP" >&6 | |
11235 | ac_preproc_ok=false | |
11236 | for ac_c_preproc_warn_flag in '' yes | |
11237 | do | |
11238 | # Use a header file that comes with gcc, so configuring glibc | |
11239 | # with a fresh cross-compiler works. | |
11240 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11241 | # <limits.h> exists even on freestanding compilers. | |
11242 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11243 | # not just through cpp. "Syntax error" is here to catch this case. | |
11244 | cat >conftest.$ac_ext <<_ACEOF | |
11245 | /* confdefs.h. */ | |
11246 | _ACEOF | |
11247 | cat confdefs.h >>conftest.$ac_ext | |
11248 | cat >>conftest.$ac_ext <<_ACEOF | |
11249 | /* end confdefs.h. */ | |
11250 | #ifdef __STDC__ | |
11251 | # include <limits.h> | |
11252 | #else | |
11253 | # include <assert.h> | |
11254 | #endif | |
ac1cb8d3 | 11255 | Syntax error |
a848cd7e SC |
11256 | _ACEOF |
11257 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11258 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11259 | ac_status=$? | |
11260 | grep -v '^ *+' conftest.er1 >conftest.err | |
11261 | rm -f conftest.er1 | |
11262 | cat conftest.err >&5 | |
11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11264 | (exit $ac_status); } >/dev/null; then | |
11265 | if test -s conftest.err; then | |
11266 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11267 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11268 | else |
11269 | ac_cpp_err= | |
11270 | fi | |
11271 | else | |
11272 | ac_cpp_err=yes | |
11273 | fi | |
11274 | if test -z "$ac_cpp_err"; then | |
11275 | : | |
11276 | else | |
11277 | echo "$as_me: failed program was:" >&5 | |
11278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11279 | ||
11280 | # Broken: fails on valid input. | |
11281 | continue | |
11282 | fi | |
11283 | rm -f conftest.err conftest.$ac_ext | |
11284 | ||
11285 | # OK, works on sane cases. Now check whether non-existent headers | |
11286 | # can be detected and how. | |
11287 | cat >conftest.$ac_ext <<_ACEOF | |
11288 | /* confdefs.h. */ | |
11289 | _ACEOF | |
11290 | cat confdefs.h >>conftest.$ac_ext | |
11291 | cat >>conftest.$ac_ext <<_ACEOF | |
11292 | /* end confdefs.h. */ | |
11293 | #include <ac_nonexistent.h> | |
11294 | _ACEOF | |
11295 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11296 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11297 | ac_status=$? | |
11298 | grep -v '^ *+' conftest.er1 >conftest.err | |
11299 | rm -f conftest.er1 | |
11300 | cat conftest.err >&5 | |
11301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11302 | (exit $ac_status); } >/dev/null; then | |
11303 | if test -s conftest.err; then | |
11304 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11305 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11306 | else |
11307 | ac_cpp_err= | |
11308 | fi | |
11309 | else | |
11310 | ac_cpp_err=yes | |
11311 | fi | |
11312 | if test -z "$ac_cpp_err"; then | |
11313 | # Broken: success on invalid input. | |
11314 | continue | |
11315 | else | |
11316 | echo "$as_me: failed program was:" >&5 | |
11317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11318 | ||
11319 | # Passes both tests. | |
11320 | ac_preproc_ok=: | |
11321 | break | |
11322 | fi | |
11323 | rm -f conftest.err conftest.$ac_ext | |
11324 | ||
11325 | done | |
11326 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11327 | rm -f conftest.err conftest.$ac_ext | |
11328 | if $ac_preproc_ok; then | |
11329 | : | |
11330 | else | |
11331 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11332 | See \`config.log' for more details." >&5 | |
11333 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11334 | See \`config.log' for more details." >&2;} | |
11335 | { (exit 1); exit 1; }; } | |
11336 | fi | |
11337 | ||
11338 | ac_ext=c | |
11339 | ac_cpp='$CPP $CPPFLAGS' | |
11340 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11341 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11342 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11343 | ||
11344 | ||
11345 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11346 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11347 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11349 | else | |
11350 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11351 | then ac_cv_prog_egrep='grep -E' | |
11352 | else ac_cv_prog_egrep='egrep' | |
11353 | fi | |
11354 | fi | |
11355 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11356 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11357 | EGREP=$ac_cv_prog_egrep | |
11358 | ||
11359 | ||
11360 | if test $ac_cv_c_compiler_gnu = yes; then | |
11361 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11362 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11363 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11365 | else | |
11366 | ac_pattern="Autoconf.*'x'" | |
11367 | cat >conftest.$ac_ext <<_ACEOF | |
11368 | /* confdefs.h. */ | |
11369 | _ACEOF | |
11370 | cat confdefs.h >>conftest.$ac_ext | |
11371 | cat >>conftest.$ac_ext <<_ACEOF | |
11372 | /* end confdefs.h. */ | |
11373 | #include <sgtty.h> | |
11374 | Autoconf TIOCGETP | |
11375 | _ACEOF | |
11376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11377 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11378 | ac_cv_prog_gcc_traditional=yes | |
11379 | else | |
11380 | ac_cv_prog_gcc_traditional=no | |
11381 | fi | |
11382 | rm -f conftest* | |
11383 | ||
11384 | ||
11385 | if test $ac_cv_prog_gcc_traditional = no; then | |
11386 | cat >conftest.$ac_ext <<_ACEOF | |
11387 | /* confdefs.h. */ | |
11388 | _ACEOF | |
11389 | cat confdefs.h >>conftest.$ac_ext | |
11390 | cat >>conftest.$ac_ext <<_ACEOF | |
11391 | /* end confdefs.h. */ | |
11392 | #include <termio.h> | |
11393 | Autoconf TCGETA | |
11394 | _ACEOF | |
11395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11396 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11397 | ac_cv_prog_gcc_traditional=yes | |
11398 | fi | |
11399 | rm -f conftest* | |
11400 | ||
11401 | fi | |
11402 | fi | |
11403 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11404 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11405 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11406 | CC="$CC -traditional" | |
11407 | fi | |
11408 | fi | |
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ac_ext=cc | |
11414 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11415 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11416 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11417 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11418 | ||
11419 | ||
11420 | CXXFLAGS=${CXXFLAGS:=} | |
11421 | ac_ext=cc | |
11422 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11423 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11424 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11425 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11426 | if test -n "$ac_tool_prefix"; then | |
11427 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11428 | do | |
11429 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11430 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11433 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11435 | else | |
11436 | if test -n "$CXX"; then | |
11437 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11438 | else | |
11439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11440 | for as_dir in $PATH | |
11441 | do | |
11442 | IFS=$as_save_IFS | |
11443 | test -z "$as_dir" && as_dir=. | |
11444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11445 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11446 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11448 | break 2 | |
11449 | fi | |
11450 | done | |
11451 | done | |
11452 | ||
11453 | fi | |
11454 | fi | |
11455 | CXX=$ac_cv_prog_CXX | |
11456 | if test -n "$CXX"; then | |
11457 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11458 | echo "${ECHO_T}$CXX" >&6 | |
11459 | else | |
11460 | echo "$as_me:$LINENO: result: no" >&5 | |
11461 | echo "${ECHO_T}no" >&6 | |
11462 | fi | |
11463 | ||
11464 | test -n "$CXX" && break | |
11465 | done | |
11466 | fi | |
11467 | if test -z "$CXX"; then | |
11468 | ac_ct_CXX=$CXX | |
11469 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11470 | do | |
11471 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11472 | set dummy $ac_prog; ac_word=$2 | |
11473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11475 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11477 | else | |
11478 | if test -n "$ac_ct_CXX"; then | |
11479 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11480 | else | |
11481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11482 | for as_dir in $PATH | |
11483 | do | |
11484 | IFS=$as_save_IFS | |
11485 | test -z "$as_dir" && as_dir=. | |
11486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11488 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11490 | break 2 | |
11491 | fi | |
11492 | done | |
11493 | done | |
11494 | ||
11495 | fi | |
11496 | fi | |
11497 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11498 | if test -n "$ac_ct_CXX"; then | |
11499 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11500 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11501 | else | |
11502 | echo "$as_me:$LINENO: result: no" >&5 | |
11503 | echo "${ECHO_T}no" >&6 | |
11504 | fi | |
11505 | ||
11506 | test -n "$ac_ct_CXX" && break | |
11507 | done | |
11508 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11509 | ||
11510 | CXX=$ac_ct_CXX | |
11511 | fi | |
11512 | ||
11513 | ||
11514 | # Provide some information about the compiler. | |
11515 | echo "$as_me:$LINENO:" \ | |
11516 | "checking for C++ compiler version" >&5 | |
11517 | ac_compiler=`set X $ac_compile; echo $2` | |
11518 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11519 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11520 | ac_status=$? | |
11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11522 | (exit $ac_status); } | |
11523 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11524 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11525 | ac_status=$? | |
11526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11527 | (exit $ac_status); } | |
11528 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11529 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11530 | ac_status=$? | |
11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11532 | (exit $ac_status); } | |
11533 | ||
11534 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11535 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11536 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11538 | else | |
11539 | cat >conftest.$ac_ext <<_ACEOF | |
11540 | /* confdefs.h. */ | |
11541 | _ACEOF | |
11542 | cat confdefs.h >>conftest.$ac_ext | |
11543 | cat >>conftest.$ac_ext <<_ACEOF | |
11544 | /* end confdefs.h. */ | |
11545 | ||
11546 | int | |
11547 | main () | |
11548 | { | |
11549 | #ifndef __GNUC__ | |
11550 | choke me | |
11551 | #endif | |
11552 | ||
11553 | ; | |
11554 | return 0; | |
11555 | } | |
11556 | _ACEOF | |
11557 | rm -f conftest.$ac_objext | |
11558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11559 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11560 | ac_status=$? |
ac1cb8d3 VS |
11561 | grep -v '^ *+' conftest.er1 >conftest.err |
11562 | rm -f conftest.er1 | |
11563 | cat conftest.err >&5 | |
a848cd7e SC |
11564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11565 | (exit $ac_status); } && | |
ea7db9ff DE |
11566 | { ac_try='test -z "$ac_cxx_werror_flag" |
11567 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11569 | (eval $ac_try) 2>&5 | |
11570 | ac_status=$? | |
11571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11572 | (exit $ac_status); }; } && | |
11573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11575 | (eval $ac_try) 2>&5 | |
11576 | ac_status=$? | |
11577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11578 | (exit $ac_status); }; }; then | |
11579 | ac_compiler_gnu=yes | |
11580 | else | |
11581 | echo "$as_me: failed program was:" >&5 | |
11582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11583 | ||
11584 | ac_compiler_gnu=no | |
11585 | fi | |
ac1cb8d3 | 11586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11587 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11588 | ||
11589 | fi | |
11590 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11591 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11592 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11593 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11594 | ac_save_CXXFLAGS=$CXXFLAGS | |
11595 | CXXFLAGS="-g" | |
11596 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11597 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11598 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11600 | else | |
11601 | cat >conftest.$ac_ext <<_ACEOF | |
11602 | /* confdefs.h. */ | |
11603 | _ACEOF | |
11604 | cat confdefs.h >>conftest.$ac_ext | |
11605 | cat >>conftest.$ac_ext <<_ACEOF | |
11606 | /* end confdefs.h. */ | |
11607 | ||
11608 | int | |
11609 | main () | |
11610 | { | |
11611 | ||
11612 | ; | |
11613 | return 0; | |
11614 | } | |
11615 | _ACEOF | |
11616 | rm -f conftest.$ac_objext | |
11617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11618 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11619 | ac_status=$? |
ac1cb8d3 VS |
11620 | grep -v '^ *+' conftest.er1 >conftest.err |
11621 | rm -f conftest.er1 | |
11622 | cat conftest.err >&5 | |
a848cd7e SC |
11623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11624 | (exit $ac_status); } && | |
ea7db9ff DE |
11625 | { ac_try='test -z "$ac_cxx_werror_flag" |
11626 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11628 | (eval $ac_try) 2>&5 | |
11629 | ac_status=$? | |
11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11631 | (exit $ac_status); }; } && | |
11632 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11634 | (eval $ac_try) 2>&5 | |
11635 | ac_status=$? | |
11636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11637 | (exit $ac_status); }; }; then | |
11638 | ac_cv_prog_cxx_g=yes | |
11639 | else | |
11640 | echo "$as_me: failed program was:" >&5 | |
11641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11642 | ||
11643 | ac_cv_prog_cxx_g=no | |
11644 | fi | |
ac1cb8d3 | 11645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11646 | fi |
11647 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11648 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11649 | if test "$ac_test_CXXFLAGS" = set; then | |
11650 | CXXFLAGS=$ac_save_CXXFLAGS | |
11651 | elif test $ac_cv_prog_cxx_g = yes; then | |
11652 | if test "$GXX" = yes; then | |
11653 | CXXFLAGS="-g -O2" | |
11654 | else | |
11655 | CXXFLAGS="-g" | |
11656 | fi | |
11657 | else | |
11658 | if test "$GXX" = yes; then | |
11659 | CXXFLAGS="-O2" | |
11660 | else | |
11661 | CXXFLAGS= | |
11662 | fi | |
11663 | fi | |
11664 | for ac_declaration in \ | |
ac1cb8d3 | 11665 | '' \ |
a848cd7e SC |
11666 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11667 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11668 | 'extern "C" void exit (int) throw ();' \ | |
11669 | 'extern "C" void exit (int);' \ | |
11670 | 'void exit (int);' | |
11671 | do | |
11672 | cat >conftest.$ac_ext <<_ACEOF | |
11673 | /* confdefs.h. */ | |
11674 | _ACEOF | |
11675 | cat confdefs.h >>conftest.$ac_ext | |
11676 | cat >>conftest.$ac_ext <<_ACEOF | |
11677 | /* end confdefs.h. */ | |
de59c161 | 11678 | $ac_declaration |
ac1cb8d3 | 11679 | #include <stdlib.h> |
a848cd7e SC |
11680 | int |
11681 | main () | |
11682 | { | |
11683 | exit (42); | |
11684 | ; | |
11685 | return 0; | |
11686 | } | |
11687 | _ACEOF | |
11688 | rm -f conftest.$ac_objext | |
11689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11690 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11691 | ac_status=$? |
ac1cb8d3 VS |
11692 | grep -v '^ *+' conftest.er1 >conftest.err |
11693 | rm -f conftest.er1 | |
11694 | cat conftest.err >&5 | |
a848cd7e SC |
11695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11696 | (exit $ac_status); } && | |
ea7db9ff DE |
11697 | { ac_try='test -z "$ac_cxx_werror_flag" |
11698 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11700 | (eval $ac_try) 2>&5 | |
11701 | ac_status=$? | |
11702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11703 | (exit $ac_status); }; } && | |
11704 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11706 | (eval $ac_try) 2>&5 | |
11707 | ac_status=$? | |
11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11709 | (exit $ac_status); }; }; then | |
11710 | : | |
11711 | else | |
11712 | echo "$as_me: failed program was:" >&5 | |
11713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11714 | ||
11715 | continue | |
11716 | fi | |
ac1cb8d3 | 11717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11718 | cat >conftest.$ac_ext <<_ACEOF |
11719 | /* confdefs.h. */ | |
11720 | _ACEOF | |
11721 | cat confdefs.h >>conftest.$ac_ext | |
11722 | cat >>conftest.$ac_ext <<_ACEOF | |
11723 | /* end confdefs.h. */ | |
11724 | $ac_declaration | |
11725 | int | |
11726 | main () | |
11727 | { | |
11728 | exit (42); | |
11729 | ; | |
11730 | return 0; | |
11731 | } | |
11732 | _ACEOF | |
11733 | rm -f conftest.$ac_objext | |
11734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11735 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11736 | ac_status=$? |
ac1cb8d3 VS |
11737 | grep -v '^ *+' conftest.er1 >conftest.err |
11738 | rm -f conftest.er1 | |
11739 | cat conftest.err >&5 | |
a848cd7e SC |
11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11741 | (exit $ac_status); } && | |
ea7db9ff DE |
11742 | { ac_try='test -z "$ac_cxx_werror_flag" |
11743 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11745 | (eval $ac_try) 2>&5 | |
11746 | ac_status=$? | |
11747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11748 | (exit $ac_status); }; } && | |
11749 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11751 | (eval $ac_try) 2>&5 | |
11752 | ac_status=$? | |
11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11754 | (exit $ac_status); }; }; then | |
11755 | break | |
11756 | else | |
11757 | echo "$as_me: failed program was:" >&5 | |
11758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11759 | ||
11760 | fi | |
ac1cb8d3 | 11761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11762 | done |
11763 | rm -f conftest* | |
11764 | if test -n "$ac_declaration"; then | |
11765 | echo '#ifdef __cplusplus' >>confdefs.h | |
11766 | echo $ac_declaration >>confdefs.h | |
11767 | echo '#endif' >>confdefs.h | |
11768 | fi | |
11769 | ||
11770 | ac_ext=cc | |
11771 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11772 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11773 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11774 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11775 | ||
11776 | ||
11777 | ac_ext=c | |
11778 | ac_cpp='$CPP $CPPFLAGS' | |
11779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11782 | ||
11783 | ||
a848cd7e SC |
11784 | if test -n "$ac_tool_prefix"; then |
11785 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11786 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11789 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11791 | else | |
11792 | if test -n "$RANLIB"; then | |
11793 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11794 | else | |
11795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11796 | for as_dir in $PATH | |
11797 | do | |
11798 | IFS=$as_save_IFS | |
11799 | test -z "$as_dir" && as_dir=. | |
11800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11802 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11804 | break 2 | |
11805 | fi | |
11806 | done | |
11807 | done | |
11808 | ||
11809 | fi | |
11810 | fi | |
11811 | RANLIB=$ac_cv_prog_RANLIB | |
11812 | if test -n "$RANLIB"; then | |
11813 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11814 | echo "${ECHO_T}$RANLIB" >&6 | |
11815 | else | |
11816 | echo "$as_me:$LINENO: result: no" >&5 | |
11817 | echo "${ECHO_T}no" >&6 | |
11818 | fi | |
11819 | ||
11820 | fi | |
11821 | if test -z "$ac_cv_prog_RANLIB"; then | |
11822 | ac_ct_RANLIB=$RANLIB | |
11823 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11824 | set dummy ranlib; ac_word=$2 | |
11825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11827 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11829 | else | |
11830 | if test -n "$ac_ct_RANLIB"; then | |
11831 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11832 | else | |
11833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11834 | for as_dir in $PATH | |
11835 | do | |
11836 | IFS=$as_save_IFS | |
11837 | test -z "$as_dir" && as_dir=. | |
11838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11840 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11842 | break 2 | |
11843 | fi | |
11844 | done | |
11845 | done | |
11846 | ||
11847 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11848 | fi | |
11849 | fi | |
11850 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11851 | if test -n "$ac_ct_RANLIB"; then | |
11852 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11853 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11854 | else | |
11855 | echo "$as_me:$LINENO: result: no" >&5 | |
11856 | echo "${ECHO_T}no" >&6 | |
11857 | fi | |
11858 | ||
11859 | RANLIB=$ac_ct_RANLIB | |
11860 | else | |
11861 | RANLIB="$ac_cv_prog_RANLIB" | |
11862 | fi | |
11863 | ||
11864 | ||
11865 | # Extract the first word of "ar", so it can be a program name with args. | |
11866 | set dummy ar; ac_word=$2 | |
11867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11869 | if test "${ac_cv_prog_AR+set}" = set; then | |
11870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11871 | else | |
11872 | if test -n "$AR"; then | |
11873 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11874 | else | |
11875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11876 | for as_dir in $PATH | |
11877 | do | |
11878 | IFS=$as_save_IFS | |
11879 | test -z "$as_dir" && as_dir=. | |
11880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11882 | ac_cv_prog_AR="ar" | |
11883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11884 | break 2 | |
11885 | fi | |
11886 | done | |
11887 | done | |
11888 | ||
11889 | fi | |
11890 | fi | |
11891 | AR=$ac_cv_prog_AR | |
11892 | if test -n "$AR"; then | |
11893 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11894 | echo "${ECHO_T}$AR" >&6 | |
11895 | else | |
11896 | echo "$as_me:$LINENO: result: no" >&5 | |
11897 | echo "${ECHO_T}no" >&6 | |
11898 | fi | |
11899 | ||
11900 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
11901 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
11902 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
11903 | { (exit 1); exit 1; }; } |
11904 | fi | |
11905 | ||
11906 | # Find a good install program. We prefer a C program (faster), | |
11907 | # so one script is as good as another. But avoid the broken or | |
11908 | # incompatible versions: | |
11909 | # SysV /etc/install, /usr/sbin/install | |
11910 | # SunOS /usr/etc/install | |
11911 | # IRIX /sbin/install | |
11912 | # AIX /bin/install | |
11913 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11914 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11915 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11916 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 11917 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
11918 | # ./install, which can be erroneously created by make from ./install.sh. |
11919 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
11920 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
11921 | if test -z "$INSTALL"; then | |
11922 | if test "${ac_cv_path_install+set}" = set; then | |
11923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11924 | else | |
11925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11926 | for as_dir in $PATH | |
11927 | do | |
11928 | IFS=$as_save_IFS | |
11929 | test -z "$as_dir" && as_dir=. | |
11930 | # Account for people who put trailing slashes in PATH elements. | |
11931 | case $as_dir/ in | |
11932 | ./ | .// | /cC/* | \ | |
11933 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 11934 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
11935 | /usr/ucb/* ) ;; |
11936 | *) | |
11937 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11938 | # Don't use installbsd from OSF since it installs stuff as root | |
11939 | # by default. | |
11940 | for ac_prog in ginstall scoinst install; do | |
11941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
11942 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11943 | if test $ac_prog = install && | |
11944 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11945 | # AIX install. It has an incompatible calling convention. | |
11946 | : | |
11947 | elif test $ac_prog = install && | |
11948 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11949 | # program-specific install script used by HP pwplus--don't use. | |
11950 | : | |
11951 | else | |
11952 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11953 | break 3 | |
11954 | fi | |
11955 | fi | |
a848cd7e SC |
11956 | done |
11957 | done | |
11958 | ;; | |
11959 | esac | |
11960 | done | |
11961 | ||
11962 | ||
11963 | fi | |
11964 | if test "${ac_cv_path_install+set}" = set; then | |
11965 | INSTALL=$ac_cv_path_install | |
11966 | else | |
11967 | # As a last resort, use the slow shell script. We don't cache a | |
11968 | # path for INSTALL within a source directory, because that will | |
11969 | # break other packages using the cache if that directory is | |
11970 | # removed, or if the path is relative. | |
11971 | INSTALL=$ac_install_sh | |
11972 | fi | |
11973 | fi | |
11974 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
11975 | echo "${ECHO_T}$INSTALL" >&6 | |
11976 | ||
11977 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11978 | # It thinks the first close brace ends the variable substitution. | |
11979 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11980 | ||
11981 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
11982 | ||
11983 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
11984 | ||
11985 | ||
11986 | case ${INSTALL} in | |
11987 | /* ) # Absolute | |
11988 | ;; | |
11989 | ?:* ) # Drive letter, considered as absolute. | |
11990 | ;; | |
11991 | *) | |
11992 | INSTALL=`pwd`/${INSTALL} ;; | |
11993 | esac | |
11994 | ||
11995 | case ${host} in | |
11996 | *-hp-hpux* ) | |
11997 | INSTALL_DIR="mkdir" | |
11998 | ;; | |
11999 | ||
12000 | *) INSTALL_DIR="$INSTALL -d" | |
12001 | ;; | |
12002 | esac | |
12003 | ||
12004 | ||
12005 | case "${host}" in | |
12006 | ||
12007 | powerpc-*-darwin* ) | |
12008 | INSTALL_PROGRAM="cp -fp" | |
12009 | INSTALL_DATA="cp -fp" | |
12010 | ;; | |
12011 | *) | |
12012 | ;; | |
12013 | esac | |
12014 | ||
12015 | # Extract the first word of "strip", so it can be a program name with args. | |
12016 | set dummy strip; ac_word=$2 | |
12017 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12019 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12021 | else | |
12022 | if test -n "$STRIP"; then | |
12023 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12024 | else | |
12025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12026 | for as_dir in $PATH | |
12027 | do | |
12028 | IFS=$as_save_IFS | |
12029 | test -z "$as_dir" && as_dir=. | |
12030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12032 | ac_cv_prog_STRIP="strip" | |
12033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12034 | break 2 | |
12035 | fi | |
12036 | done | |
12037 | done | |
12038 | ||
12039 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12040 | fi | |
12041 | fi | |
12042 | STRIP=$ac_cv_prog_STRIP | |
12043 | if test -n "$STRIP"; then | |
12044 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12045 | echo "${ECHO_T}$STRIP" >&6 | |
12046 | else | |
12047 | echo "$as_me:$LINENO: result: no" >&5 | |
12048 | echo "${ECHO_T}no" >&6 | |
12049 | fi | |
12050 | ||
12051 | ||
12052 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12053 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12054 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12056 | else | |
12057 | ||
12058 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12059 | egrep -s GNU > /dev/null); then | |
12060 | wx_cv_prog_makeisgnu="yes" | |
12061 | else | |
12062 | wx_cv_prog_makeisgnu="no" | |
12063 | fi | |
12064 | ||
12065 | fi | |
12066 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12067 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12068 | ||
12069 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12070 | IF_GNU_MAKE="" | |
12071 | else | |
12072 | IF_GNU_MAKE="#" | |
12073 | fi | |
12074 | ||
12075 | ||
12076 | ||
12077 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12078 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12079 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12080 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12082 | else | |
12083 | ||
12084 | cat - << EOF > confMake | |
12085 | check : file | |
12086 | cp \$? \$@ | |
12087 | cp \$? final_file | |
12088 | EOF | |
12089 | ||
12090 | if test ! -d sub ; then | |
12091 | mkdir sub | |
12092 | fi | |
12093 | echo dummy > sub/file | |
12094 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12095 | RESULT=$? | |
12096 | rm -f sub/file check final_file confMake | |
12097 | rmdir sub | |
12098 | if test "$RESULT" = 0; then | |
12099 | wx_cv_prog_makevpath="yes" | |
12100 | else | |
12101 | wx_cv_prog_makevpath="no" | |
12102 | fi | |
12103 | ||
12104 | fi | |
12105 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12106 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12107 | ||
12108 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12109 | { { echo "$as_me:$LINENO: error: | |
12110 | You need a make-utility that is able to use the variable | |
12111 | VPATH correctly. | |
12112 | If your version of make does not support VPATH correctly, | |
12113 | please install GNU-make (possibly as gmake), and start | |
12114 | configure with the following command: | |
12115 | export MAKE=gmake; ./configure for sh-type shells | |
12116 | setenv MAKE gmake; ./configure for csh-type shells | |
12117 | Also please do remember to use gmake in this case every time | |
12118 | you are trying to compile. | |
12119 | " >&5 | |
12120 | echo "$as_me: error: | |
12121 | You need a make-utility that is able to use the variable | |
12122 | VPATH correctly. | |
12123 | If your version of make does not support VPATH correctly, | |
12124 | please install GNU-make (possibly as gmake), and start | |
12125 | configure with the following command: | |
12126 | export MAKE=gmake; ./configure for sh-type shells | |
12127 | setenv MAKE gmake; ./configure for csh-type shells | |
12128 | Also please do remember to use gmake in this case every time | |
12129 | you are trying to compile. | |
12130 | " >&2;} | |
12131 | { (exit 1); exit 1; }; } | |
12132 | fi fi | |
12133 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12134 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12135 | LN_S=$as_ln_s | |
12136 | if test "$LN_S" = "ln -s"; then | |
12137 | echo "$as_me:$LINENO: result: yes" >&5 | |
12138 | echo "${ECHO_T}yes" >&6 | |
12139 | else | |
12140 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12141 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12142 | fi | |
12143 | ||
12144 | ||
12145 | ||
12146 | case "${host}" in | |
12147 | *-pc-os2_emx | *-pc-os2-emx ) | |
12148 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12149 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12150 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12151 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12153 | else | |
12154 | ac_check_lib_save_LIBS=$LIBS | |
12155 | LIBS="-lcExt $LIBS" | |
12156 | cat >conftest.$ac_ext <<_ACEOF | |
12157 | /* confdefs.h. */ | |
12158 | _ACEOF | |
12159 | cat confdefs.h >>conftest.$ac_ext | |
12160 | cat >>conftest.$ac_ext <<_ACEOF | |
12161 | /* end confdefs.h. */ | |
12162 | ||
12163 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12164 | #ifdef __cplusplus | |
12165 | extern "C" | |
12166 | #endif | |
12167 | /* We use char because int might match the return type of a gcc2 | |
12168 | builtin and then its argument prototype would still apply. */ | |
12169 | char drand48 (); | |
12170 | int | |
12171 | main () | |
12172 | { | |
12173 | drand48 (); | |
12174 | ; | |
12175 | return 0; | |
12176 | } | |
12177 | _ACEOF | |
12178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12180 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12181 | ac_status=$? |
ac1cb8d3 VS |
12182 | grep -v '^ *+' conftest.er1 >conftest.err |
12183 | rm -f conftest.er1 | |
12184 | cat conftest.err >&5 | |
a848cd7e SC |
12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12186 | (exit $ac_status); } && | |
ea7db9ff DE |
12187 | { ac_try='test -z "$ac_c_werror_flag" |
12188 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12190 | (eval $ac_try) 2>&5 | |
12191 | ac_status=$? | |
12192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12193 | (exit $ac_status); }; } && | |
12194 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12196 | (eval $ac_try) 2>&5 | |
12197 | ac_status=$? | |
12198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12199 | (exit $ac_status); }; }; then | |
12200 | ac_cv_lib_cExt_drand48=yes | |
12201 | else | |
12202 | echo "$as_me: failed program was:" >&5 | |
12203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12204 | ||
12205 | ac_cv_lib_cExt_drand48=no | |
12206 | fi | |
ac1cb8d3 VS |
12207 | rm -f conftest.err conftest.$ac_objext \ |
12208 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12209 | LIBS=$ac_check_lib_save_LIBS |
12210 | fi | |
12211 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12212 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12213 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12214 | LIBS="$LIBS -lcExt" | |
12215 | fi | |
12216 | ||
12217 | else | |
12218 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12219 | fi | |
12220 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12221 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12222 | if test "${wx_cv_gccversion+set}" = set; then | |
12223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12224 | else | |
12225 | ||
12226 | cat >conftest.$ac_ext <<_ACEOF | |
12227 | /* confdefs.h. */ | |
12228 | _ACEOF | |
12229 | cat confdefs.h >>conftest.$ac_ext | |
12230 | cat >>conftest.$ac_ext <<_ACEOF | |
12231 | /* end confdefs.h. */ | |
12232 | ||
12233 | int | |
12234 | main () | |
12235 | { | |
12236 | ||
12237 | #if (__GNUC__ < 3) | |
12238 | #error old gcc | |
12239 | #endif | |
12240 | ||
12241 | ; | |
12242 | return 0; | |
12243 | } | |
12244 | _ACEOF | |
12245 | rm -f conftest.$ac_objext | |
12246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12247 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12248 | ac_status=$? |
ac1cb8d3 VS |
12249 | grep -v '^ *+' conftest.er1 >conftest.err |
12250 | rm -f conftest.er1 | |
12251 | cat conftest.err >&5 | |
a848cd7e SC |
12252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12253 | (exit $ac_status); } && | |
ea7db9ff DE |
12254 | { ac_try='test -z "$ac_c_werror_flag" |
12255 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12257 | (eval $ac_try) 2>&5 | |
12258 | ac_status=$? | |
12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12260 | (exit $ac_status); }; } && | |
12261 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12263 | (eval $ac_try) 2>&5 | |
12264 | ac_status=$? | |
12265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12266 | (exit $ac_status); }; }; then | |
12267 | ||
12268 | cat >conftest.$ac_ext <<_ACEOF | |
12269 | /* confdefs.h. */ | |
12270 | _ACEOF | |
12271 | cat confdefs.h >>conftest.$ac_ext | |
12272 | cat >>conftest.$ac_ext <<_ACEOF | |
12273 | /* end confdefs.h. */ | |
12274 | ||
12275 | int | |
12276 | main () | |
12277 | { | |
12278 | ||
12279 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12280 | #error intermediate gcc | |
12281 | #endif | |
12282 | ||
12283 | ; | |
12284 | return 0; | |
12285 | } | |
12286 | _ACEOF | |
12287 | rm -f conftest.$ac_objext | |
12288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12290 | ac_status=$? |
ac1cb8d3 VS |
12291 | grep -v '^ *+' conftest.er1 >conftest.err |
12292 | rm -f conftest.er1 | |
12293 | cat conftest.err >&5 | |
a848cd7e SC |
12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12295 | (exit $ac_status); } && | |
ea7db9ff DE |
12296 | { ac_try='test -z "$ac_c_werror_flag" |
12297 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12299 | (eval $ac_try) 2>&5 | |
12300 | ac_status=$? | |
12301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12302 | (exit $ac_status); }; } && | |
12303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12305 | (eval $ac_try) 2>&5 | |
12306 | ac_status=$? | |
12307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12308 | (exit $ac_status); }; }; then | |
12309 | ||
12310 | wx_cv_gccversion=Innotek | |
12311 | ||
12312 | else | |
12313 | echo "$as_me: failed program was:" >&5 | |
12314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12315 | ||
12316 | ||
12317 | wx_cv_gccversion=3 | |
12318 | ||
12319 | ||
12320 | fi | |
ac1cb8d3 | 12321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12322 | |
12323 | else | |
12324 | echo "$as_me: failed program was:" >&5 | |
12325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12326 | ||
12327 | ||
12328 | wx_cv_gccversion=2 | |
12329 | ||
12330 | ||
12331 | fi | |
ac1cb8d3 | 12332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12333 | |
12334 | fi | |
12335 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12336 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12337 | if test "$wx_cv_gccversion" = "2"; then | |
12338 | LIBS="$LIBS -lstdcpp" | |
12339 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12340 | else | |
12341 | if test "$wx_cv_gccversion" = "3"; then | |
12342 | LIBS="$LIBS -lstdcxx" | |
12343 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12344 | else | |
12345 | LIBS="$LIBS -lstdc++" | |
12346 | fi | |
12347 | fi | |
12348 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12349 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12350 | fi |
12351 | ;; | |
12352 | *) | |
12353 | ||
12354 | ||
12355 | ||
12356 | ac_ext=cc | |
12357 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12358 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12359 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12360 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12361 | ||
12362 | ||
12363 | ||
12364 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12365 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12366 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12368 | else | |
12369 | ||
12370 | cat >conftest.$ac_ext <<_ACEOF | |
12371 | /* confdefs.h. */ | |
12372 | _ACEOF | |
12373 | cat confdefs.h >>conftest.$ac_ext | |
12374 | cat >>conftest.$ac_ext <<_ACEOF | |
12375 | /* end confdefs.h. */ | |
12376 | ||
12377 | #include <string.h> | |
12378 | ||
12379 | int | |
12380 | main () | |
12381 | { | |
12382 | ||
12383 | strcasecmp("foo", "bar"); | |
12384 | ||
12385 | ; | |
12386 | return 0; | |
12387 | } | |
12388 | _ACEOF | |
12389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12391 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12392 | ac_status=$? |
ac1cb8d3 VS |
12393 | grep -v '^ *+' conftest.er1 >conftest.err |
12394 | rm -f conftest.er1 | |
12395 | cat conftest.err >&5 | |
a848cd7e SC |
12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12397 | (exit $ac_status); } && | |
ea7db9ff DE |
12398 | { ac_try='test -z "$ac_cxx_werror_flag" |
12399 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12401 | (eval $ac_try) 2>&5 | |
12402 | ac_status=$? | |
12403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12404 | (exit $ac_status); }; } && | |
12405 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12407 | (eval $ac_try) 2>&5 | |
12408 | ac_status=$? | |
12409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12410 | (exit $ac_status); }; }; then | |
12411 | ac_cv_string_strcasecmp=yes | |
12412 | else | |
12413 | echo "$as_me: failed program was:" >&5 | |
12414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12415 | ||
12416 | ac_cv_string_strcasecmp=no | |
12417 | ||
12418 | fi | |
ac1cb8d3 VS |
12419 | rm -f conftest.err conftest.$ac_objext \ |
12420 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12421 | |
12422 | fi | |
12423 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12424 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12425 | ||
12426 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12427 | cat >>confdefs.h <<\_ACEOF | |
12428 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12429 | _ACEOF | |
12430 | ||
12431 | else | |
12432 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12433 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12434 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12436 | else | |
12437 | ||
12438 | cat >conftest.$ac_ext <<_ACEOF | |
12439 | /* confdefs.h. */ | |
12440 | _ACEOF | |
12441 | cat confdefs.h >>conftest.$ac_ext | |
12442 | cat >>conftest.$ac_ext <<_ACEOF | |
12443 | /* end confdefs.h. */ | |
12444 | ||
12445 | #include <strings.h> | |
12446 | ||
12447 | int | |
12448 | main () | |
12449 | { | |
12450 | ||
12451 | strcasecmp("foo", "bar"); | |
12452 | ||
12453 | ; | |
12454 | return 0; | |
12455 | } | |
12456 | _ACEOF | |
12457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12459 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12460 | ac_status=$? |
ac1cb8d3 VS |
12461 | grep -v '^ *+' conftest.er1 >conftest.err |
12462 | rm -f conftest.er1 | |
12463 | cat conftest.err >&5 | |
a848cd7e SC |
12464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12465 | (exit $ac_status); } && | |
ea7db9ff DE |
12466 | { ac_try='test -z "$ac_cxx_werror_flag" |
12467 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12469 | (eval $ac_try) 2>&5 | |
12470 | ac_status=$? | |
12471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12472 | (exit $ac_status); }; } && | |
12473 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12475 | (eval $ac_try) 2>&5 | |
12476 | ac_status=$? | |
12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12478 | (exit $ac_status); }; }; then | |
12479 | ac_cv_strings_strcasecmp=yes | |
12480 | else | |
12481 | echo "$as_me: failed program was:" >&5 | |
12482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12483 | ||
12484 | ac_cv_strings_strcasecmp=no | |
12485 | ||
12486 | fi | |
ac1cb8d3 VS |
12487 | rm -f conftest.err conftest.$ac_objext \ |
12488 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12489 | |
12490 | fi | |
12491 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12492 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12493 | ||
12494 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12495 | cat >>confdefs.h <<\_ACEOF | |
12496 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12497 | _ACEOF | |
12498 | ||
12499 | else | |
12500 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12501 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12502 | { (exit 1); exit 1; }; } | |
12503 | fi | |
12504 | fi | |
12505 | ||
12506 | ac_ext=c | |
12507 | ac_cpp='$CPP $CPPFLAGS' | |
12508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12511 | ||
12512 | ;; | |
12513 | esac | |
12514 | ||
12515 | ||
12516 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12517 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12518 | if test "${ac_cv_header_stdc+set}" = set; then | |
12519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12520 | else | |
12521 | cat >conftest.$ac_ext <<_ACEOF | |
12522 | /* confdefs.h. */ | |
12523 | _ACEOF | |
12524 | cat confdefs.h >>conftest.$ac_ext | |
12525 | cat >>conftest.$ac_ext <<_ACEOF | |
12526 | /* end confdefs.h. */ | |
12527 | #include <stdlib.h> | |
12528 | #include <stdarg.h> | |
12529 | #include <string.h> | |
12530 | #include <float.h> | |
12531 | ||
12532 | int | |
12533 | main () | |
12534 | { | |
12535 | ||
12536 | ; | |
12537 | return 0; | |
12538 | } | |
12539 | _ACEOF | |
12540 | rm -f conftest.$ac_objext | |
12541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12542 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12543 | ac_status=$? |
ac1cb8d3 VS |
12544 | grep -v '^ *+' conftest.er1 >conftest.err |
12545 | rm -f conftest.er1 | |
12546 | cat conftest.err >&5 | |
a848cd7e SC |
12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12548 | (exit $ac_status); } && | |
ea7db9ff DE |
12549 | { ac_try='test -z "$ac_c_werror_flag" |
12550 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12552 | (eval $ac_try) 2>&5 | |
12553 | ac_status=$? | |
12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12555 | (exit $ac_status); }; } && | |
12556 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12558 | (eval $ac_try) 2>&5 | |
12559 | ac_status=$? | |
12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12561 | (exit $ac_status); }; }; then | |
12562 | ac_cv_header_stdc=yes | |
12563 | else | |
12564 | echo "$as_me: failed program was:" >&5 | |
12565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12566 | ||
12567 | ac_cv_header_stdc=no | |
12568 | fi | |
ac1cb8d3 | 12569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12570 | |
12571 | if test $ac_cv_header_stdc = yes; then | |
12572 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12573 | cat >conftest.$ac_ext <<_ACEOF | |
12574 | /* confdefs.h. */ | |
12575 | _ACEOF | |
12576 | cat confdefs.h >>conftest.$ac_ext | |
12577 | cat >>conftest.$ac_ext <<_ACEOF | |
12578 | /* end confdefs.h. */ | |
12579 | #include <string.h> | |
12580 | ||
12581 | _ACEOF | |
12582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12583 | $EGREP "memchr" >/dev/null 2>&1; then | |
12584 | : | |
12585 | else | |
12586 | ac_cv_header_stdc=no | |
12587 | fi | |
12588 | rm -f conftest* | |
12589 | ||
12590 | fi | |
12591 | ||
12592 | if test $ac_cv_header_stdc = yes; then | |
12593 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12594 | cat >conftest.$ac_ext <<_ACEOF | |
12595 | /* confdefs.h. */ | |
12596 | _ACEOF | |
12597 | cat confdefs.h >>conftest.$ac_ext | |
12598 | cat >>conftest.$ac_ext <<_ACEOF | |
12599 | /* end confdefs.h. */ | |
12600 | #include <stdlib.h> | |
12601 | ||
12602 | _ACEOF | |
12603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12604 | $EGREP "free" >/dev/null 2>&1; then | |
12605 | : | |
12606 | else | |
12607 | ac_cv_header_stdc=no | |
12608 | fi | |
12609 | rm -f conftest* | |
12610 | ||
12611 | fi | |
12612 | ||
12613 | if test $ac_cv_header_stdc = yes; then | |
12614 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12615 | if test "$cross_compiling" = yes; then | |
12616 | : | |
12617 | else | |
12618 | cat >conftest.$ac_ext <<_ACEOF | |
12619 | /* confdefs.h. */ | |
12620 | _ACEOF | |
12621 | cat confdefs.h >>conftest.$ac_ext | |
12622 | cat >>conftest.$ac_ext <<_ACEOF | |
12623 | /* end confdefs.h. */ | |
12624 | #include <ctype.h> | |
12625 | #if ((' ' & 0x0FF) == 0x020) | |
12626 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12627 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12628 | #else | |
12629 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12630 | (('a' <= (c) && (c) <= 'i') \ |
12631 | || ('j' <= (c) && (c) <= 'r') \ | |
12632 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12633 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12634 | #endif | |
12635 | ||
12636 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12637 | int | |
12638 | main () | |
12639 | { | |
12640 | int i; | |
12641 | for (i = 0; i < 256; i++) | |
12642 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12643 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12644 | exit(2); |
12645 | exit (0); | |
12646 | } | |
12647 | _ACEOF | |
12648 | rm -f conftest$ac_exeext | |
12649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12650 | (eval $ac_link) 2>&5 | |
12651 | ac_status=$? | |
12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12655 | (eval $ac_try) 2>&5 | |
12656 | ac_status=$? | |
12657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12658 | (exit $ac_status); }; }; then | |
12659 | : | |
12660 | else | |
12661 | echo "$as_me: program exited with status $ac_status" >&5 | |
12662 | echo "$as_me: failed program was:" >&5 | |
12663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12664 | ||
12665 | ( exit $ac_status ) | |
12666 | ac_cv_header_stdc=no | |
12667 | fi | |
ac1cb8d3 | 12668 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12669 | fi |
12670 | fi | |
12671 | fi | |
12672 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12673 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12674 | if test $ac_cv_header_stdc = yes; then | |
12675 | ||
12676 | cat >>confdefs.h <<\_ACEOF | |
12677 | #define STDC_HEADERS 1 | |
12678 | _ACEOF | |
12679 | ||
12680 | fi | |
12681 | ||
12682 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12683 | ||
12684 | ||
12685 | ||
12686 | ||
12687 | ||
12688 | ||
12689 | ||
12690 | ||
12691 | ||
12692 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12693 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12694 | do |
12695 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12700 | else | |
12701 | cat >conftest.$ac_ext <<_ACEOF | |
12702 | /* confdefs.h. */ | |
12703 | _ACEOF | |
12704 | cat confdefs.h >>conftest.$ac_ext | |
12705 | cat >>conftest.$ac_ext <<_ACEOF | |
12706 | /* end confdefs.h. */ | |
12707 | $ac_includes_default | |
12708 | ||
12709 | #include <$ac_header> | |
12710 | _ACEOF | |
12711 | rm -f conftest.$ac_objext | |
12712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12713 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12714 | ac_status=$? |
ac1cb8d3 VS |
12715 | grep -v '^ *+' conftest.er1 >conftest.err |
12716 | rm -f conftest.er1 | |
12717 | cat conftest.err >&5 | |
a848cd7e SC |
12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12719 | (exit $ac_status); } && | |
ea7db9ff DE |
12720 | { ac_try='test -z "$ac_c_werror_flag" |
12721 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12723 | (eval $ac_try) 2>&5 | |
12724 | ac_status=$? | |
12725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12726 | (exit $ac_status); }; } && | |
12727 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12729 | (eval $ac_try) 2>&5 | |
12730 | ac_status=$? | |
12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12732 | (exit $ac_status); }; }; then | |
12733 | eval "$as_ac_Header=yes" | |
12734 | else | |
12735 | echo "$as_me: failed program was:" >&5 | |
12736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12737 | ||
12738 | eval "$as_ac_Header=no" | |
12739 | fi | |
ac1cb8d3 | 12740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12741 | fi |
12742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12744 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12745 | cat >>confdefs.h <<_ACEOF | |
12746 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12747 | _ACEOF | |
12748 | ||
12749 | fi | |
12750 | ||
12751 | done | |
12752 | ||
12753 | ||
12754 | ||
12755 | for ac_header in stdlib.h | |
12756 | do | |
12757 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12758 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12759 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12763 | fi | |
12764 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12765 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12766 | else | |
12767 | # Is the header compilable? | |
12768 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12769 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12770 | cat >conftest.$ac_ext <<_ACEOF | |
12771 | /* confdefs.h. */ | |
12772 | _ACEOF | |
12773 | cat confdefs.h >>conftest.$ac_ext | |
12774 | cat >>conftest.$ac_ext <<_ACEOF | |
12775 | /* end confdefs.h. */ | |
12776 | $ac_includes_default | |
12777 | #include <$ac_header> | |
12778 | _ACEOF | |
12779 | rm -f conftest.$ac_objext | |
12780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12781 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12782 | ac_status=$? |
ac1cb8d3 VS |
12783 | grep -v '^ *+' conftest.er1 >conftest.err |
12784 | rm -f conftest.er1 | |
12785 | cat conftest.err >&5 | |
a848cd7e SC |
12786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12787 | (exit $ac_status); } && | |
ea7db9ff DE |
12788 | { ac_try='test -z "$ac_c_werror_flag" |
12789 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12791 | (eval $ac_try) 2>&5 | |
12792 | ac_status=$? | |
12793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12794 | (exit $ac_status); }; } && | |
12795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12797 | (eval $ac_try) 2>&5 | |
12798 | ac_status=$? | |
12799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12800 | (exit $ac_status); }; }; then | |
12801 | ac_header_compiler=yes | |
12802 | else | |
12803 | echo "$as_me: failed program was:" >&5 | |
12804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12805 | ||
12806 | ac_header_compiler=no | |
12807 | fi | |
ac1cb8d3 | 12808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12809 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12810 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12811 | ||
12812 | # Is the header present? | |
12813 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12814 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12815 | cat >conftest.$ac_ext <<_ACEOF | |
12816 | /* confdefs.h. */ | |
12817 | _ACEOF | |
12818 | cat confdefs.h >>conftest.$ac_ext | |
12819 | cat >>conftest.$ac_ext <<_ACEOF | |
12820 | /* end confdefs.h. */ | |
12821 | #include <$ac_header> | |
12822 | _ACEOF | |
12823 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12824 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12825 | ac_status=$? | |
12826 | grep -v '^ *+' conftest.er1 >conftest.err | |
12827 | rm -f conftest.er1 | |
12828 | cat conftest.err >&5 | |
12829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12830 | (exit $ac_status); } >/dev/null; then | |
12831 | if test -s conftest.err; then | |
12832 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12833 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12834 | else |
12835 | ac_cpp_err= | |
12836 | fi | |
12837 | else | |
12838 | ac_cpp_err=yes | |
12839 | fi | |
12840 | if test -z "$ac_cpp_err"; then | |
12841 | ac_header_preproc=yes | |
12842 | else | |
12843 | echo "$as_me: failed program was:" >&5 | |
12844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12845 | ||
12846 | ac_header_preproc=no | |
12847 | fi | |
12848 | rm -f conftest.err conftest.$ac_ext | |
12849 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12850 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12851 | ||
12852 | # So? What about this header? | |
ac1cb8d3 VS |
12853 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12854 | yes:no: ) | |
a848cd7e SC |
12855 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12856 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12857 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12858 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12859 | ac_header_preproc=yes | |
a848cd7e | 12860 | ;; |
ac1cb8d3 | 12861 | no:yes:* ) |
a848cd7e SC |
12862 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12863 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12864 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12865 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12866 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12867 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12868 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12869 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
12870 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12871 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
12872 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12873 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
12874 | ( |
12875 | cat <<\_ASBOX | |
ac1cb8d3 VS |
12876 | ## ----------------------------------------- ## |
12877 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
12878 | ## ----------------------------------------- ## | |
a848cd7e SC |
12879 | _ASBOX |
12880 | ) | | |
12881 | sed "s/^/$as_me: WARNING: /" >&2 | |
12882 | ;; | |
12883 | esac | |
12884 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12886 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12888 | else | |
ac1cb8d3 | 12889 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
12890 | fi |
12891 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12892 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12893 | ||
12894 | fi | |
12895 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12896 | cat >>confdefs.h <<_ACEOF | |
12897 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12898 | _ACEOF | |
12899 | ||
12900 | fi | |
12901 | ||
12902 | done | |
12903 | ||
12904 | ||
12905 | for ac_header in malloc.h | |
12906 | do | |
12907 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12909 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12910 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12911 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12913 | fi | |
12914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12915 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12916 | else | |
12917 | # Is the header compilable? | |
12918 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12919 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12920 | cat >conftest.$ac_ext <<_ACEOF | |
12921 | /* confdefs.h. */ | |
12922 | _ACEOF | |
12923 | cat confdefs.h >>conftest.$ac_ext | |
12924 | cat >>conftest.$ac_ext <<_ACEOF | |
12925 | /* end confdefs.h. */ | |
12926 | $ac_includes_default | |
12927 | #include <$ac_header> | |
12928 | _ACEOF | |
12929 | rm -f conftest.$ac_objext | |
12930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12931 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12932 | ac_status=$? |
ac1cb8d3 VS |
12933 | grep -v '^ *+' conftest.er1 >conftest.err |
12934 | rm -f conftest.er1 | |
12935 | cat conftest.err >&5 | |
a848cd7e SC |
12936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12937 | (exit $ac_status); } && | |
ea7db9ff DE |
12938 | { ac_try='test -z "$ac_c_werror_flag" |
12939 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12941 | (eval $ac_try) 2>&5 | |
12942 | ac_status=$? | |
12943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12944 | (exit $ac_status); }; } && | |
12945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12947 | (eval $ac_try) 2>&5 | |
12948 | ac_status=$? | |
12949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12950 | (exit $ac_status); }; }; then | |
12951 | ac_header_compiler=yes | |
12952 | else | |
12953 | echo "$as_me: failed program was:" >&5 | |
12954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12955 | ||
12956 | ac_header_compiler=no | |
12957 | fi | |
ac1cb8d3 | 12958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12959 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12960 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12961 | ||
12962 | # Is the header present? | |
12963 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12964 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12965 | cat >conftest.$ac_ext <<_ACEOF | |
12966 | /* confdefs.h. */ | |
12967 | _ACEOF | |
12968 | cat confdefs.h >>conftest.$ac_ext | |
12969 | cat >>conftest.$ac_ext <<_ACEOF | |
12970 | /* end confdefs.h. */ | |
12971 | #include <$ac_header> | |
12972 | _ACEOF | |
12973 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12974 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12975 | ac_status=$? | |
12976 | grep -v '^ *+' conftest.er1 >conftest.err | |
12977 | rm -f conftest.er1 | |
12978 | cat conftest.err >&5 | |
12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12980 | (exit $ac_status); } >/dev/null; then | |
12981 | if test -s conftest.err; then | |
12982 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12983 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12984 | else |
12985 | ac_cpp_err= | |
12986 | fi | |
12987 | else | |
12988 | ac_cpp_err=yes | |
12989 | fi | |
12990 | if test -z "$ac_cpp_err"; then | |
12991 | ac_header_preproc=yes | |
12992 | else | |
12993 | echo "$as_me: failed program was:" >&5 | |
12994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12995 | ||
12996 | ac_header_preproc=no | |
12997 | fi | |
12998 | rm -f conftest.err conftest.$ac_ext | |
12999 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13000 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13001 | ||
13002 | # So? What about this header? | |
ac1cb8d3 VS |
13003 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13004 | yes:no: ) | |
a848cd7e SC |
13005 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13006 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13007 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13008 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13009 | ac_header_preproc=yes | |
a848cd7e | 13010 | ;; |
ac1cb8d3 | 13011 | no:yes:* ) |
a848cd7e SC |
13012 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13013 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13014 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13015 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13016 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13017 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13018 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13019 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13020 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13021 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13022 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13023 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13024 | ( |
13025 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13026 | ## ----------------------------------------- ## |
13027 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13028 | ## ----------------------------------------- ## | |
a848cd7e SC |
13029 | _ASBOX |
13030 | ) | | |
13031 | sed "s/^/$as_me: WARNING: /" >&2 | |
13032 | ;; | |
13033 | esac | |
13034 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13036 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13038 | else | |
ac1cb8d3 | 13039 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13040 | fi |
13041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13042 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13043 | ||
13044 | fi | |
13045 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13046 | cat >>confdefs.h <<_ACEOF | |
13047 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13048 | _ACEOF | |
13049 | ||
13050 | fi | |
13051 | ||
13052 | done | |
13053 | ||
13054 | ||
13055 | for ac_header in unistd.h | |
13056 | do | |
13057 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13059 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13063 | fi | |
13064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13065 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13066 | else | |
13067 | # Is the header compilable? | |
13068 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13069 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13070 | cat >conftest.$ac_ext <<_ACEOF | |
13071 | /* confdefs.h. */ | |
13072 | _ACEOF | |
13073 | cat confdefs.h >>conftest.$ac_ext | |
13074 | cat >>conftest.$ac_ext <<_ACEOF | |
13075 | /* end confdefs.h. */ | |
13076 | $ac_includes_default | |
13077 | #include <$ac_header> | |
13078 | _ACEOF | |
13079 | rm -f conftest.$ac_objext | |
13080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13081 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13082 | ac_status=$? |
ac1cb8d3 VS |
13083 | grep -v '^ *+' conftest.er1 >conftest.err |
13084 | rm -f conftest.er1 | |
13085 | cat conftest.err >&5 | |
a848cd7e SC |
13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13087 | (exit $ac_status); } && | |
ea7db9ff DE |
13088 | { ac_try='test -z "$ac_c_werror_flag" |
13089 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13091 | (eval $ac_try) 2>&5 | |
13092 | ac_status=$? | |
13093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13094 | (exit $ac_status); }; } && | |
13095 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13097 | (eval $ac_try) 2>&5 | |
13098 | ac_status=$? | |
13099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13100 | (exit $ac_status); }; }; then | |
13101 | ac_header_compiler=yes | |
13102 | else | |
13103 | echo "$as_me: failed program was:" >&5 | |
13104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13105 | ||
13106 | ac_header_compiler=no | |
13107 | fi | |
ac1cb8d3 | 13108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13109 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13110 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13111 | ||
13112 | # Is the header present? | |
13113 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13114 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13115 | cat >conftest.$ac_ext <<_ACEOF | |
13116 | /* confdefs.h. */ | |
13117 | _ACEOF | |
13118 | cat confdefs.h >>conftest.$ac_ext | |
13119 | cat >>conftest.$ac_ext <<_ACEOF | |
13120 | /* end confdefs.h. */ | |
13121 | #include <$ac_header> | |
13122 | _ACEOF | |
13123 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13124 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13125 | ac_status=$? | |
13126 | grep -v '^ *+' conftest.er1 >conftest.err | |
13127 | rm -f conftest.er1 | |
13128 | cat conftest.err >&5 | |
13129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13130 | (exit $ac_status); } >/dev/null; then | |
13131 | if test -s conftest.err; then | |
13132 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13133 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13134 | else |
13135 | ac_cpp_err= | |
13136 | fi | |
13137 | else | |
13138 | ac_cpp_err=yes | |
13139 | fi | |
13140 | if test -z "$ac_cpp_err"; then | |
13141 | ac_header_preproc=yes | |
13142 | else | |
13143 | echo "$as_me: failed program was:" >&5 | |
13144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13145 | ||
13146 | ac_header_preproc=no | |
13147 | fi | |
13148 | rm -f conftest.err conftest.$ac_ext | |
13149 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13150 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13151 | ||
13152 | # So? What about this header? | |
ac1cb8d3 VS |
13153 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13154 | yes:no: ) | |
a848cd7e SC |
13155 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13156 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13158 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13159 | ac_header_preproc=yes | |
a848cd7e | 13160 | ;; |
ac1cb8d3 | 13161 | no:yes:* ) |
a848cd7e SC |
13162 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13163 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13164 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13165 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13166 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13167 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13168 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13169 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13170 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13171 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13172 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13173 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13174 | ( |
13175 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13176 | ## ----------------------------------------- ## |
13177 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13178 | ## ----------------------------------------- ## | |
a848cd7e SC |
13179 | _ASBOX |
13180 | ) | | |
13181 | sed "s/^/$as_me: WARNING: /" >&2 | |
13182 | ;; | |
13183 | esac | |
13184 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13185 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13186 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13188 | else | |
ac1cb8d3 | 13189 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13190 | fi |
13191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13192 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13193 | ||
13194 | fi | |
13195 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13196 | cat >>confdefs.h <<_ACEOF | |
13197 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13198 | _ACEOF | |
13199 | ||
13200 | fi | |
13201 | ||
13202 | done | |
13203 | ||
13204 | ||
13205 | for ac_header in wchar.h | |
13206 | do | |
13207 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13213 | fi | |
13214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13216 | else | |
13217 | # Is the header compilable? | |
13218 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13219 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13220 | cat >conftest.$ac_ext <<_ACEOF | |
13221 | /* confdefs.h. */ | |
13222 | _ACEOF | |
13223 | cat confdefs.h >>conftest.$ac_ext | |
13224 | cat >>conftest.$ac_ext <<_ACEOF | |
13225 | /* end confdefs.h. */ | |
13226 | $ac_includes_default | |
13227 | #include <$ac_header> | |
13228 | _ACEOF | |
13229 | rm -f conftest.$ac_objext | |
13230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13231 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13232 | ac_status=$? |
ac1cb8d3 VS |
13233 | grep -v '^ *+' conftest.er1 >conftest.err |
13234 | rm -f conftest.er1 | |
13235 | cat conftest.err >&5 | |
a848cd7e SC |
13236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13237 | (exit $ac_status); } && | |
ea7db9ff DE |
13238 | { ac_try='test -z "$ac_c_werror_flag" |
13239 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13241 | (eval $ac_try) 2>&5 | |
13242 | ac_status=$? | |
13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13244 | (exit $ac_status); }; } && | |
13245 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13247 | (eval $ac_try) 2>&5 | |
13248 | ac_status=$? | |
13249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13250 | (exit $ac_status); }; }; then | |
13251 | ac_header_compiler=yes | |
13252 | else | |
13253 | echo "$as_me: failed program was:" >&5 | |
13254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13255 | ||
13256 | ac_header_compiler=no | |
13257 | fi | |
ac1cb8d3 | 13258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13259 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13260 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13261 | ||
13262 | # Is the header present? | |
13263 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13264 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13265 | cat >conftest.$ac_ext <<_ACEOF | |
13266 | /* confdefs.h. */ | |
13267 | _ACEOF | |
13268 | cat confdefs.h >>conftest.$ac_ext | |
13269 | cat >>conftest.$ac_ext <<_ACEOF | |
13270 | /* end confdefs.h. */ | |
13271 | #include <$ac_header> | |
13272 | _ACEOF | |
13273 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13274 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13275 | ac_status=$? | |
13276 | grep -v '^ *+' conftest.er1 >conftest.err | |
13277 | rm -f conftest.er1 | |
13278 | cat conftest.err >&5 | |
13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13280 | (exit $ac_status); } >/dev/null; then | |
13281 | if test -s conftest.err; then | |
13282 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13284 | else |
13285 | ac_cpp_err= | |
13286 | fi | |
13287 | else | |
13288 | ac_cpp_err=yes | |
13289 | fi | |
13290 | if test -z "$ac_cpp_err"; then | |
13291 | ac_header_preproc=yes | |
13292 | else | |
13293 | echo "$as_me: failed program was:" >&5 | |
13294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13295 | ||
13296 | ac_header_preproc=no | |
13297 | fi | |
13298 | rm -f conftest.err conftest.$ac_ext | |
13299 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13300 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13301 | ||
13302 | # So? What about this header? | |
ac1cb8d3 VS |
13303 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13304 | yes:no: ) | |
a848cd7e SC |
13305 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13306 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13307 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13308 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13309 | ac_header_preproc=yes | |
a848cd7e | 13310 | ;; |
ac1cb8d3 | 13311 | no:yes:* ) |
a848cd7e SC |
13312 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13313 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13314 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13315 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13316 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13317 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13318 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13319 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13321 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13322 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13323 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13324 | ( |
13325 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13326 | ## ----------------------------------------- ## |
13327 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13328 | ## ----------------------------------------- ## | |
a848cd7e SC |
13329 | _ASBOX |
13330 | ) | | |
13331 | sed "s/^/$as_me: WARNING: /" >&2 | |
13332 | ;; | |
13333 | esac | |
13334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13338 | else | |
ac1cb8d3 | 13339 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13340 | fi |
13341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13342 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13343 | ||
13344 | fi | |
13345 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13346 | cat >>confdefs.h <<_ACEOF | |
13347 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13348 | _ACEOF | |
13349 | ||
13350 | fi | |
13351 | ||
13352 | done | |
13353 | ||
13354 | ||
13355 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13356 | ||
13357 | for ac_header in wcstr.h | |
13358 | do | |
13359 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13365 | fi | |
13366 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13367 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13368 | else | |
13369 | # Is the header compilable? | |
13370 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13371 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13372 | cat >conftest.$ac_ext <<_ACEOF | |
13373 | /* confdefs.h. */ | |
13374 | _ACEOF | |
13375 | cat confdefs.h >>conftest.$ac_ext | |
13376 | cat >>conftest.$ac_ext <<_ACEOF | |
13377 | /* end confdefs.h. */ | |
13378 | $ac_includes_default | |
13379 | #include <$ac_header> | |
13380 | _ACEOF | |
13381 | rm -f conftest.$ac_objext | |
13382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13383 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13384 | ac_status=$? |
ac1cb8d3 VS |
13385 | grep -v '^ *+' conftest.er1 >conftest.err |
13386 | rm -f conftest.er1 | |
13387 | cat conftest.err >&5 | |
a848cd7e SC |
13388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13389 | (exit $ac_status); } && | |
ea7db9ff DE |
13390 | { ac_try='test -z "$ac_c_werror_flag" |
13391 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13393 | (eval $ac_try) 2>&5 | |
13394 | ac_status=$? | |
13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13396 | (exit $ac_status); }; } && | |
13397 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13399 | (eval $ac_try) 2>&5 | |
13400 | ac_status=$? | |
13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13402 | (exit $ac_status); }; }; then | |
13403 | ac_header_compiler=yes | |
13404 | else | |
13405 | echo "$as_me: failed program was:" >&5 | |
13406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13407 | ||
13408 | ac_header_compiler=no | |
13409 | fi | |
ac1cb8d3 | 13410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13411 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13412 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13413 | ||
13414 | # Is the header present? | |
13415 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13416 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13417 | cat >conftest.$ac_ext <<_ACEOF | |
13418 | /* confdefs.h. */ | |
13419 | _ACEOF | |
13420 | cat confdefs.h >>conftest.$ac_ext | |
13421 | cat >>conftest.$ac_ext <<_ACEOF | |
13422 | /* end confdefs.h. */ | |
13423 | #include <$ac_header> | |
13424 | _ACEOF | |
13425 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13426 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13427 | ac_status=$? | |
13428 | grep -v '^ *+' conftest.er1 >conftest.err | |
13429 | rm -f conftest.er1 | |
13430 | cat conftest.err >&5 | |
13431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13432 | (exit $ac_status); } >/dev/null; then | |
13433 | if test -s conftest.err; then | |
13434 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13435 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13436 | else |
13437 | ac_cpp_err= | |
13438 | fi | |
13439 | else | |
13440 | ac_cpp_err=yes | |
13441 | fi | |
13442 | if test -z "$ac_cpp_err"; then | |
13443 | ac_header_preproc=yes | |
13444 | else | |
13445 | echo "$as_me: failed program was:" >&5 | |
13446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13447 | ||
13448 | ac_header_preproc=no | |
13449 | fi | |
13450 | rm -f conftest.err conftest.$ac_ext | |
13451 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13452 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13453 | ||
13454 | # So? What about this header? | |
ac1cb8d3 VS |
13455 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13456 | yes:no: ) | |
a848cd7e SC |
13457 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13458 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13460 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13461 | ac_header_preproc=yes | |
a848cd7e | 13462 | ;; |
ac1cb8d3 | 13463 | no:yes:* ) |
a848cd7e SC |
13464 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13465 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13466 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13467 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13468 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13469 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13470 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13471 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13473 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13474 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13475 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13476 | ( |
13477 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13478 | ## ----------------------------------------- ## |
13479 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13480 | ## ----------------------------------------- ## | |
a848cd7e SC |
13481 | _ASBOX |
13482 | ) | | |
13483 | sed "s/^/$as_me: WARNING: /" >&2 | |
13484 | ;; | |
13485 | esac | |
13486 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13490 | else | |
ac1cb8d3 | 13491 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13492 | fi |
13493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13494 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13495 | ||
13496 | fi | |
13497 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13498 | cat >>confdefs.h <<_ACEOF | |
13499 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13500 | _ACEOF | |
13501 | ||
13502 | fi | |
13503 | ||
13504 | done | |
13505 | ||
13506 | fi | |
13507 | ||
13508 | ||
13509 | for ac_header in fnmatch.h | |
13510 | do | |
13511 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13517 | fi | |
13518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13520 | else | |
13521 | # Is the header compilable? | |
13522 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13523 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13524 | cat >conftest.$ac_ext <<_ACEOF | |
13525 | /* confdefs.h. */ | |
13526 | _ACEOF | |
13527 | cat confdefs.h >>conftest.$ac_ext | |
13528 | cat >>conftest.$ac_ext <<_ACEOF | |
13529 | /* end confdefs.h. */ | |
13530 | $ac_includes_default | |
13531 | #include <$ac_header> | |
13532 | _ACEOF | |
13533 | rm -f conftest.$ac_objext | |
13534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13535 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13536 | ac_status=$? |
ac1cb8d3 VS |
13537 | grep -v '^ *+' conftest.er1 >conftest.err |
13538 | rm -f conftest.er1 | |
13539 | cat conftest.err >&5 | |
a848cd7e SC |
13540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13541 | (exit $ac_status); } && | |
ea7db9ff DE |
13542 | { ac_try='test -z "$ac_c_werror_flag" |
13543 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13545 | (eval $ac_try) 2>&5 | |
13546 | ac_status=$? | |
13547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13548 | (exit $ac_status); }; } && | |
13549 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13551 | (eval $ac_try) 2>&5 | |
13552 | ac_status=$? | |
13553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13554 | (exit $ac_status); }; }; then | |
13555 | ac_header_compiler=yes | |
13556 | else | |
13557 | echo "$as_me: failed program was:" >&5 | |
13558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13559 | ||
13560 | ac_header_compiler=no | |
13561 | fi | |
ac1cb8d3 | 13562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13563 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13564 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13565 | ||
13566 | # Is the header present? | |
13567 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13568 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13569 | cat >conftest.$ac_ext <<_ACEOF | |
13570 | /* confdefs.h. */ | |
13571 | _ACEOF | |
13572 | cat confdefs.h >>conftest.$ac_ext | |
13573 | cat >>conftest.$ac_ext <<_ACEOF | |
13574 | /* end confdefs.h. */ | |
13575 | #include <$ac_header> | |
13576 | _ACEOF | |
13577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13579 | ac_status=$? | |
13580 | grep -v '^ *+' conftest.er1 >conftest.err | |
13581 | rm -f conftest.er1 | |
13582 | cat conftest.err >&5 | |
13583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13584 | (exit $ac_status); } >/dev/null; then | |
13585 | if test -s conftest.err; then | |
13586 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13587 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13588 | else |
13589 | ac_cpp_err= | |
13590 | fi | |
13591 | else | |
13592 | ac_cpp_err=yes | |
13593 | fi | |
13594 | if test -z "$ac_cpp_err"; then | |
13595 | ac_header_preproc=yes | |
13596 | else | |
13597 | echo "$as_me: failed program was:" >&5 | |
13598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13599 | ||
13600 | ac_header_preproc=no | |
13601 | fi | |
13602 | rm -f conftest.err conftest.$ac_ext | |
13603 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13604 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13605 | ||
13606 | # So? What about this header? | |
ac1cb8d3 VS |
13607 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13608 | yes:no: ) | |
a848cd7e SC |
13609 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13610 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13612 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13613 | ac_header_preproc=yes | |
a848cd7e | 13614 | ;; |
ac1cb8d3 | 13615 | no:yes:* ) |
a848cd7e SC |
13616 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13617 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13618 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13619 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13620 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13621 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13622 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13623 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13625 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13626 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13627 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13628 | ( |
13629 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13630 | ## ----------------------------------------- ## |
13631 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13632 | ## ----------------------------------------- ## | |
a848cd7e SC |
13633 | _ASBOX |
13634 | ) | | |
13635 | sed "s/^/$as_me: WARNING: /" >&2 | |
13636 | ;; | |
13637 | esac | |
13638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13642 | else | |
ac1cb8d3 | 13643 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13644 | fi |
13645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13647 | ||
13648 | fi | |
13649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13650 | cat >>confdefs.h <<_ACEOF | |
13651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13652 | _ACEOF | |
13653 | ||
13654 | fi | |
13655 | ||
13656 | done | |
13657 | ||
13658 | ||
13659 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13660 | ||
13661 | for ac_func in fnmatch | |
13662 | do | |
13663 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13664 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13665 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13666 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13668 | else | |
13669 | cat >conftest.$ac_ext <<_ACEOF | |
13670 | /* confdefs.h. */ | |
13671 | _ACEOF | |
13672 | cat confdefs.h >>conftest.$ac_ext | |
13673 | cat >>conftest.$ac_ext <<_ACEOF | |
13674 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13675 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13676 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13677 | #define $ac_func innocuous_$ac_func | |
13678 | ||
a848cd7e SC |
13679 | /* System header to define __stub macros and hopefully few prototypes, |
13680 | which can conflict with char $ac_func (); below. | |
13681 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13682 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13683 | |
a848cd7e SC |
13684 | #ifdef __STDC__ |
13685 | # include <limits.h> | |
13686 | #else | |
13687 | # include <assert.h> | |
13688 | #endif | |
ac1cb8d3 VS |
13689 | |
13690 | #undef $ac_func | |
13691 | ||
a848cd7e SC |
13692 | /* Override any gcc2 internal prototype to avoid an error. */ |
13693 | #ifdef __cplusplus | |
13694 | extern "C" | |
13695 | { | |
13696 | #endif | |
13697 | /* We use char because int might match the return type of a gcc2 | |
13698 | builtin and then its argument prototype would still apply. */ | |
13699 | char $ac_func (); | |
13700 | /* The GNU C library defines this for functions which it implements | |
13701 | to always fail with ENOSYS. Some functions are actually named | |
13702 | something starting with __ and the normal name is an alias. */ | |
13703 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13704 | choke me | |
13705 | #else | |
13706 | char (*f) () = $ac_func; | |
13707 | #endif | |
13708 | #ifdef __cplusplus | |
13709 | } | |
13710 | #endif | |
13711 | ||
13712 | int | |
13713 | main () | |
13714 | { | |
13715 | return f != $ac_func; | |
13716 | ; | |
13717 | return 0; | |
13718 | } | |
13719 | _ACEOF | |
13720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13722 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13723 | ac_status=$? |
ac1cb8d3 VS |
13724 | grep -v '^ *+' conftest.er1 >conftest.err |
13725 | rm -f conftest.er1 | |
13726 | cat conftest.err >&5 | |
a848cd7e SC |
13727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13728 | (exit $ac_status); } && | |
ea7db9ff DE |
13729 | { ac_try='test -z "$ac_c_werror_flag" |
13730 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13732 | (eval $ac_try) 2>&5 | |
13733 | ac_status=$? | |
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | (exit $ac_status); }; } && | |
13736 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13738 | (eval $ac_try) 2>&5 | |
13739 | ac_status=$? | |
13740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13741 | (exit $ac_status); }; }; then | |
13742 | eval "$as_ac_var=yes" | |
13743 | else | |
13744 | echo "$as_me: failed program was:" >&5 | |
13745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13746 | ||
13747 | eval "$as_ac_var=no" | |
13748 | fi | |
ac1cb8d3 VS |
13749 | rm -f conftest.err conftest.$ac_objext \ |
13750 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13751 | fi |
13752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13753 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13754 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13755 | cat >>confdefs.h <<_ACEOF | |
13756 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13757 | _ACEOF | |
13758 | ||
13759 | fi | |
13760 | done | |
13761 | ||
13762 | fi | |
13763 | ||
13764 | ||
13765 | for ac_header in langinfo.h | |
13766 | do | |
13767 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13768 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13769 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13770 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13773 | fi | |
13774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13776 | else | |
13777 | # Is the header compilable? | |
13778 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13779 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13780 | cat >conftest.$ac_ext <<_ACEOF | |
13781 | /* confdefs.h. */ | |
13782 | _ACEOF | |
13783 | cat confdefs.h >>conftest.$ac_ext | |
13784 | cat >>conftest.$ac_ext <<_ACEOF | |
13785 | /* end confdefs.h. */ | |
13786 | $ac_includes_default | |
13787 | #include <$ac_header> | |
13788 | _ACEOF | |
13789 | rm -f conftest.$ac_objext | |
13790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13791 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13792 | ac_status=$? |
ac1cb8d3 VS |
13793 | grep -v '^ *+' conftest.er1 >conftest.err |
13794 | rm -f conftest.er1 | |
13795 | cat conftest.err >&5 | |
a848cd7e SC |
13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13797 | (exit $ac_status); } && | |
ea7db9ff DE |
13798 | { ac_try='test -z "$ac_c_werror_flag" |
13799 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13801 | (eval $ac_try) 2>&5 | |
13802 | ac_status=$? | |
13803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13804 | (exit $ac_status); }; } && | |
13805 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13807 | (eval $ac_try) 2>&5 | |
13808 | ac_status=$? | |
13809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13810 | (exit $ac_status); }; }; then | |
13811 | ac_header_compiler=yes | |
13812 | else | |
13813 | echo "$as_me: failed program was:" >&5 | |
13814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13815 | ||
13816 | ac_header_compiler=no | |
13817 | fi | |
ac1cb8d3 | 13818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13819 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13820 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13821 | ||
13822 | # Is the header present? | |
13823 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13824 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13825 | cat >conftest.$ac_ext <<_ACEOF | |
13826 | /* confdefs.h. */ | |
13827 | _ACEOF | |
13828 | cat confdefs.h >>conftest.$ac_ext | |
13829 | cat >>conftest.$ac_ext <<_ACEOF | |
13830 | /* end confdefs.h. */ | |
13831 | #include <$ac_header> | |
13832 | _ACEOF | |
13833 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13834 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13835 | ac_status=$? | |
13836 | grep -v '^ *+' conftest.er1 >conftest.err | |
13837 | rm -f conftest.er1 | |
13838 | cat conftest.err >&5 | |
13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13840 | (exit $ac_status); } >/dev/null; then | |
13841 | if test -s conftest.err; then | |
13842 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13843 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13844 | else |
13845 | ac_cpp_err= | |
13846 | fi | |
13847 | else | |
13848 | ac_cpp_err=yes | |
13849 | fi | |
13850 | if test -z "$ac_cpp_err"; then | |
13851 | ac_header_preproc=yes | |
13852 | else | |
13853 | echo "$as_me: failed program was:" >&5 | |
13854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13855 | ||
13856 | ac_header_preproc=no | |
13857 | fi | |
13858 | rm -f conftest.err conftest.$ac_ext | |
13859 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13860 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13861 | ||
13862 | # So? What about this header? | |
ac1cb8d3 VS |
13863 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13864 | yes:no: ) | |
a848cd7e SC |
13865 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13866 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13867 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13868 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13869 | ac_header_preproc=yes | |
a848cd7e | 13870 | ;; |
ac1cb8d3 | 13871 | no:yes:* ) |
a848cd7e SC |
13872 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13873 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13874 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13875 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13876 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13877 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13878 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13879 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13880 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13881 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13882 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13883 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13884 | ( |
13885 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13886 | ## ----------------------------------------- ## |
13887 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13888 | ## ----------------------------------------- ## | |
a848cd7e SC |
13889 | _ASBOX |
13890 | ) | | |
13891 | sed "s/^/$as_me: WARNING: /" >&2 | |
13892 | ;; | |
13893 | esac | |
13894 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13895 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13896 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13898 | else | |
ac1cb8d3 | 13899 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13900 | fi |
13901 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13902 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13903 | ||
13904 | fi | |
13905 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13906 | cat >>confdefs.h <<_ACEOF | |
13907 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13908 | _ACEOF | |
13909 | ||
13910 | fi | |
13911 | ||
13912 | done | |
13913 | ||
13914 | ||
13915 | case "${host}" in | |
13916 | *-pc-os2_emx | *-pc-os2-emx ) | |
13917 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13918 | LIBS="$LIBS -lintl" | |
13919 | fi | |
13920 | ;; | |
13921 | esac | |
13922 | ||
13923 | if test "$wxUSE_GUI" = "yes"; then | |
13924 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
13925 | ||
13926 | for ac_header in X11/Xlib.h | |
13927 | do | |
13928 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13930 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13934 | fi | |
13935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13937 | else | |
13938 | # Is the header compilable? | |
13939 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13940 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13941 | cat >conftest.$ac_ext <<_ACEOF | |
13942 | /* confdefs.h. */ | |
13943 | _ACEOF | |
13944 | cat confdefs.h >>conftest.$ac_ext | |
13945 | cat >>conftest.$ac_ext <<_ACEOF | |
13946 | /* end confdefs.h. */ | |
13947 | $ac_includes_default | |
13948 | #include <$ac_header> | |
13949 | _ACEOF | |
13950 | rm -f conftest.$ac_objext | |
13951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13952 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13953 | ac_status=$? |
ac1cb8d3 VS |
13954 | grep -v '^ *+' conftest.er1 >conftest.err |
13955 | rm -f conftest.er1 | |
13956 | cat conftest.err >&5 | |
a848cd7e SC |
13957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13958 | (exit $ac_status); } && | |
ea7db9ff DE |
13959 | { ac_try='test -z "$ac_c_werror_flag" |
13960 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13962 | (eval $ac_try) 2>&5 | |
13963 | ac_status=$? | |
13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13965 | (exit $ac_status); }; } && | |
13966 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13968 | (eval $ac_try) 2>&5 | |
13969 | ac_status=$? | |
13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13971 | (exit $ac_status); }; }; then | |
13972 | ac_header_compiler=yes | |
13973 | else | |
13974 | echo "$as_me: failed program was:" >&5 | |
13975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13976 | ||
13977 | ac_header_compiler=no | |
13978 | fi | |
ac1cb8d3 | 13979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13980 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13981 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13982 | ||
13983 | # Is the header present? | |
13984 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13985 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13986 | cat >conftest.$ac_ext <<_ACEOF | |
13987 | /* confdefs.h. */ | |
13988 | _ACEOF | |
13989 | cat confdefs.h >>conftest.$ac_ext | |
13990 | cat >>conftest.$ac_ext <<_ACEOF | |
13991 | /* end confdefs.h. */ | |
13992 | #include <$ac_header> | |
13993 | _ACEOF | |
13994 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13995 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13996 | ac_status=$? | |
13997 | grep -v '^ *+' conftest.er1 >conftest.err | |
13998 | rm -f conftest.er1 | |
13999 | cat conftest.err >&5 | |
14000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14001 | (exit $ac_status); } >/dev/null; then | |
14002 | if test -s conftest.err; then | |
14003 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14004 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14005 | else |
14006 | ac_cpp_err= | |
14007 | fi | |
14008 | else | |
14009 | ac_cpp_err=yes | |
14010 | fi | |
14011 | if test -z "$ac_cpp_err"; then | |
14012 | ac_header_preproc=yes | |
14013 | else | |
14014 | echo "$as_me: failed program was:" >&5 | |
14015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14016 | ||
14017 | ac_header_preproc=no | |
14018 | fi | |
14019 | rm -f conftest.err conftest.$ac_ext | |
14020 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14021 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14022 | ||
14023 | # So? What about this header? | |
ac1cb8d3 VS |
14024 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14025 | yes:no: ) | |
a848cd7e SC |
14026 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14027 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14028 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14029 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14030 | ac_header_preproc=yes | |
a848cd7e | 14031 | ;; |
ac1cb8d3 | 14032 | no:yes:* ) |
a848cd7e SC |
14033 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14034 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14035 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14036 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14037 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14038 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14039 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14040 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14042 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14043 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14044 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14045 | ( |
14046 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14047 | ## ----------------------------------------- ## |
14048 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14049 | ## ----------------------------------------- ## | |
a848cd7e SC |
14050 | _ASBOX |
14051 | ) | | |
14052 | sed "s/^/$as_me: WARNING: /" >&2 | |
14053 | ;; | |
14054 | esac | |
14055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14059 | else | |
ac1cb8d3 | 14060 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14061 | fi |
14062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14064 | ||
14065 | fi | |
14066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14067 | cat >>confdefs.h <<_ACEOF | |
14068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14069 | _ACEOF | |
14070 | ||
14071 | fi | |
14072 | ||
14073 | done | |
14074 | ||
14075 | ||
14076 | for ac_header in X11/XKBlib.h | |
14077 | do | |
14078 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14083 | else | |
14084 | cat >conftest.$ac_ext <<_ACEOF | |
14085 | /* confdefs.h. */ | |
14086 | _ACEOF | |
14087 | cat confdefs.h >>conftest.$ac_ext | |
14088 | cat >>conftest.$ac_ext <<_ACEOF | |
14089 | /* end confdefs.h. */ | |
14090 | ||
14091 | #if HAVE_X11_XLIB_H | |
14092 | #include <X11/Xlib.h> | |
14093 | #endif | |
14094 | ||
14095 | ||
14096 | #include <$ac_header> | |
14097 | _ACEOF | |
14098 | rm -f conftest.$ac_objext | |
14099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14100 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14101 | ac_status=$? |
ac1cb8d3 VS |
14102 | grep -v '^ *+' conftest.er1 >conftest.err |
14103 | rm -f conftest.er1 | |
14104 | cat conftest.err >&5 | |
a848cd7e SC |
14105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14106 | (exit $ac_status); } && | |
ea7db9ff DE |
14107 | { ac_try='test -z "$ac_c_werror_flag" |
14108 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14110 | (eval $ac_try) 2>&5 | |
14111 | ac_status=$? | |
14112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14113 | (exit $ac_status); }; } && | |
14114 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14116 | (eval $ac_try) 2>&5 | |
14117 | ac_status=$? | |
14118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14119 | (exit $ac_status); }; }; then | |
14120 | eval "$as_ac_Header=yes" | |
14121 | else | |
14122 | echo "$as_me: failed program was:" >&5 | |
14123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14124 | ||
14125 | eval "$as_ac_Header=no" | |
14126 | fi | |
ac1cb8d3 | 14127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14128 | fi |
14129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14130 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14131 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14132 | cat >>confdefs.h <<_ACEOF | |
14133 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14134 | _ACEOF | |
14135 | ||
14136 | fi | |
14137 | ||
14138 | done | |
14139 | ||
14140 | fi | |
14141 | fi | |
14142 | ||
14143 | ||
14144 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14145 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14146 | if test "${ac_cv_c_const+set}" = set; then | |
14147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14148 | else | |
14149 | cat >conftest.$ac_ext <<_ACEOF | |
14150 | /* confdefs.h. */ | |
14151 | _ACEOF | |
14152 | cat confdefs.h >>conftest.$ac_ext | |
14153 | cat >>conftest.$ac_ext <<_ACEOF | |
14154 | /* end confdefs.h. */ | |
14155 | ||
14156 | int | |
14157 | main () | |
14158 | { | |
14159 | /* FIXME: Include the comments suggested by Paul. */ | |
14160 | #ifndef __cplusplus | |
14161 | /* Ultrix mips cc rejects this. */ | |
14162 | typedef int charset[2]; | |
14163 | const charset x; | |
14164 | /* SunOS 4.1.1 cc rejects this. */ | |
14165 | char const *const *ccp; | |
14166 | char **p; | |
14167 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14168 | struct point {int x, y;}; | |
14169 | static struct point const zero = {0,0}; | |
14170 | /* AIX XL C 1.02.0.0 rejects this. | |
14171 | It does not let you subtract one const X* pointer from another in | |
14172 | an arm of an if-expression whose if-part is not a constant | |
14173 | expression */ | |
14174 | const char *g = "string"; | |
14175 | ccp = &g + (g ? g-g : 0); | |
14176 | /* HPUX 7.0 cc rejects these. */ | |
14177 | ++ccp; | |
14178 | p = (char**) ccp; | |
14179 | ccp = (char const *const *) p; | |
14180 | { /* SCO 3.2v4 cc rejects this. */ | |
14181 | char *t; | |
14182 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14183 | ||
14184 | *t++ = 0; | |
14185 | } | |
14186 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14187 | int x[] = {25, 17}; | |
14188 | const int *foo = &x[0]; | |
14189 | ++foo; | |
14190 | } | |
14191 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14192 | typedef const int *iptr; | |
14193 | iptr p = 0; | |
14194 | ++p; | |
14195 | } | |
14196 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14197 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14198 | struct s { int j; const int *ap[3]; }; | |
14199 | struct s *b; b->j = 5; | |
14200 | } | |
14201 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14202 | const int foo = 10; | |
14203 | } | |
14204 | #endif | |
14205 | ||
14206 | ; | |
14207 | return 0; | |
14208 | } | |
14209 | _ACEOF | |
14210 | rm -f conftest.$ac_objext | |
14211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14212 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14213 | ac_status=$? |
ac1cb8d3 VS |
14214 | grep -v '^ *+' conftest.er1 >conftest.err |
14215 | rm -f conftest.er1 | |
14216 | cat conftest.err >&5 | |
a848cd7e SC |
14217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14218 | (exit $ac_status); } && | |
ea7db9ff DE |
14219 | { ac_try='test -z "$ac_c_werror_flag" |
14220 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14222 | (eval $ac_try) 2>&5 | |
14223 | ac_status=$? | |
14224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14225 | (exit $ac_status); }; } && | |
14226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14228 | (eval $ac_try) 2>&5 | |
14229 | ac_status=$? | |
14230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14231 | (exit $ac_status); }; }; then | |
14232 | ac_cv_c_const=yes | |
14233 | else | |
14234 | echo "$as_me: failed program was:" >&5 | |
14235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14236 | ||
14237 | ac_cv_c_const=no | |
14238 | fi | |
ac1cb8d3 | 14239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14240 | fi |
14241 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14242 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14243 | if test $ac_cv_c_const = no; then | |
14244 | ||
14245 | cat >>confdefs.h <<\_ACEOF | |
14246 | #define const | |
14247 | _ACEOF | |
14248 | ||
14249 | fi | |
14250 | ||
14251 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14252 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14253 | if test "${ac_cv_c_inline+set}" = set; then | |
14254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14255 | else | |
14256 | ac_cv_c_inline=no | |
14257 | for ac_kw in inline __inline__ __inline; do | |
14258 | cat >conftest.$ac_ext <<_ACEOF | |
14259 | /* confdefs.h. */ | |
14260 | _ACEOF | |
14261 | cat confdefs.h >>conftest.$ac_ext | |
14262 | cat >>conftest.$ac_ext <<_ACEOF | |
14263 | /* end confdefs.h. */ | |
14264 | #ifndef __cplusplus | |
14265 | typedef int foo_t; | |
14266 | static $ac_kw foo_t static_foo () {return 0; } | |
14267 | $ac_kw foo_t foo () {return 0; } | |
14268 | #endif | |
14269 | ||
14270 | _ACEOF | |
14271 | rm -f conftest.$ac_objext | |
14272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14273 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14274 | ac_status=$? |
ac1cb8d3 VS |
14275 | grep -v '^ *+' conftest.er1 >conftest.err |
14276 | rm -f conftest.er1 | |
14277 | cat conftest.err >&5 | |
a848cd7e SC |
14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14279 | (exit $ac_status); } && | |
ea7db9ff DE |
14280 | { ac_try='test -z "$ac_c_werror_flag" |
14281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14283 | (eval $ac_try) 2>&5 | |
14284 | ac_status=$? | |
14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14286 | (exit $ac_status); }; } && | |
14287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14289 | (eval $ac_try) 2>&5 | |
14290 | ac_status=$? | |
14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14292 | (exit $ac_status); }; }; then | |
14293 | ac_cv_c_inline=$ac_kw; break | |
14294 | else | |
14295 | echo "$as_me: failed program was:" >&5 | |
14296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14297 | ||
14298 | fi | |
ac1cb8d3 | 14299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14300 | done |
14301 | ||
14302 | fi | |
14303 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14304 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14305 | |
14306 | ||
a848cd7e SC |
14307 | case $ac_cv_c_inline in |
14308 | inline | yes) ;; | |
ac1cb8d3 VS |
14309 | *) |
14310 | case $ac_cv_c_inline in | |
14311 | no) ac_val=;; | |
14312 | *) ac_val=$ac_cv_c_inline;; | |
14313 | esac | |
14314 | cat >>confdefs.h <<_ACEOF | |
14315 | #ifndef __cplusplus | |
14316 | #define inline $ac_val | |
14317 | #endif | |
de59c161 | 14318 | _ACEOF |
ac1cb8d3 | 14319 | ;; |
a848cd7e SC |
14320 | esac |
14321 | ||
14322 | ||
14323 | echo "$as_me:$LINENO: checking for char" >&5 | |
14324 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14325 | if test "${ac_cv_type_char+set}" = set; then | |
14326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14327 | else | |
14328 | cat >conftest.$ac_ext <<_ACEOF | |
14329 | /* confdefs.h. */ | |
14330 | _ACEOF | |
14331 | cat confdefs.h >>conftest.$ac_ext | |
14332 | cat >>conftest.$ac_ext <<_ACEOF | |
14333 | /* end confdefs.h. */ | |
14334 | $ac_includes_default | |
14335 | int | |
14336 | main () | |
14337 | { | |
14338 | if ((char *) 0) | |
14339 | return 0; | |
14340 | if (sizeof (char)) | |
14341 | return 0; | |
14342 | ; | |
14343 | return 0; | |
14344 | } | |
14345 | _ACEOF | |
14346 | rm -f conftest.$ac_objext | |
14347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14348 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14349 | ac_status=$? |
ac1cb8d3 VS |
14350 | grep -v '^ *+' conftest.er1 >conftest.err |
14351 | rm -f conftest.er1 | |
14352 | cat conftest.err >&5 | |
a848cd7e SC |
14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14354 | (exit $ac_status); } && | |
ea7db9ff DE |
14355 | { ac_try='test -z "$ac_c_werror_flag" |
14356 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14358 | (eval $ac_try) 2>&5 | |
14359 | ac_status=$? | |
14360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14361 | (exit $ac_status); }; } && | |
14362 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14364 | (eval $ac_try) 2>&5 | |
14365 | ac_status=$? | |
14366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14367 | (exit $ac_status); }; }; then | |
14368 | ac_cv_type_char=yes | |
14369 | else | |
14370 | echo "$as_me: failed program was:" >&5 | |
14371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14372 | ||
14373 | ac_cv_type_char=no | |
14374 | fi | |
ac1cb8d3 | 14375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14376 | fi |
14377 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14378 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14379 | ||
14380 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14381 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14382 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14384 | else | |
14385 | if test "$ac_cv_type_char" = yes; then | |
14386 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14387 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14388 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14389 | # This bug is HP SR number 8606223364. | |
14390 | if test "$cross_compiling" = yes; then | |
14391 | # Depending upon the size, compute the lo and hi bounds. | |
14392 | cat >conftest.$ac_ext <<_ACEOF | |
14393 | /* confdefs.h. */ | |
14394 | _ACEOF | |
14395 | cat confdefs.h >>conftest.$ac_ext | |
14396 | cat >>conftest.$ac_ext <<_ACEOF | |
14397 | /* end confdefs.h. */ | |
14398 | $ac_includes_default | |
14399 | int | |
14400 | main () | |
14401 | { | |
14402 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14403 | test_array [0] = 0 | |
14404 | ||
14405 | ; | |
14406 | return 0; | |
14407 | } | |
14408 | _ACEOF | |
14409 | rm -f conftest.$ac_objext | |
14410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14412 | ac_status=$? |
ac1cb8d3 VS |
14413 | grep -v '^ *+' conftest.er1 >conftest.err |
14414 | rm -f conftest.er1 | |
14415 | cat conftest.err >&5 | |
a848cd7e SC |
14416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14417 | (exit $ac_status); } && | |
ea7db9ff DE |
14418 | { ac_try='test -z "$ac_c_werror_flag" |
14419 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14421 | (eval $ac_try) 2>&5 | |
14422 | ac_status=$? | |
14423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14424 | (exit $ac_status); }; } && | |
14425 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14427 | (eval $ac_try) 2>&5 | |
14428 | ac_status=$? | |
14429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14430 | (exit $ac_status); }; }; then | |
14431 | ac_lo=0 ac_mid=0 | |
14432 | while :; do | |
14433 | cat >conftest.$ac_ext <<_ACEOF | |
14434 | /* confdefs.h. */ | |
14435 | _ACEOF | |
14436 | cat confdefs.h >>conftest.$ac_ext | |
14437 | cat >>conftest.$ac_ext <<_ACEOF | |
14438 | /* end confdefs.h. */ | |
14439 | $ac_includes_default | |
14440 | int | |
14441 | main () | |
14442 | { | |
14443 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14444 | test_array [0] = 0 | |
14445 | ||
14446 | ; | |
14447 | return 0; | |
14448 | } | |
14449 | _ACEOF | |
14450 | rm -f conftest.$ac_objext | |
14451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14452 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14453 | ac_status=$? |
ac1cb8d3 VS |
14454 | grep -v '^ *+' conftest.er1 >conftest.err |
14455 | rm -f conftest.er1 | |
14456 | cat conftest.err >&5 | |
a848cd7e SC |
14457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14458 | (exit $ac_status); } && | |
ea7db9ff DE |
14459 | { ac_try='test -z "$ac_c_werror_flag" |
14460 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14462 | (eval $ac_try) 2>&5 | |
14463 | ac_status=$? | |
14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14465 | (exit $ac_status); }; } && | |
14466 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
14472 | ac_hi=$ac_mid; break | |
14473 | else | |
14474 | echo "$as_me: failed program was:" >&5 | |
14475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14476 | ||
14477 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14478 | if test $ac_lo -le $ac_mid; then |
14479 | ac_lo= ac_hi= | |
14480 | break | |
14481 | fi | |
14482 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14483 | fi |
ac1cb8d3 | 14484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14485 | done |
14486 | else | |
14487 | echo "$as_me: failed program was:" >&5 | |
14488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14489 | ||
14490 | cat >conftest.$ac_ext <<_ACEOF | |
14491 | /* confdefs.h. */ | |
14492 | _ACEOF | |
14493 | cat confdefs.h >>conftest.$ac_ext | |
14494 | cat >>conftest.$ac_ext <<_ACEOF | |
14495 | /* end confdefs.h. */ | |
14496 | $ac_includes_default | |
14497 | int | |
14498 | main () | |
14499 | { | |
14500 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14501 | test_array [0] = 0 | |
14502 | ||
14503 | ; | |
14504 | return 0; | |
14505 | } | |
14506 | _ACEOF | |
14507 | rm -f conftest.$ac_objext | |
14508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14509 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14510 | ac_status=$? |
ac1cb8d3 VS |
14511 | grep -v '^ *+' conftest.er1 >conftest.err |
14512 | rm -f conftest.er1 | |
14513 | cat conftest.err >&5 | |
a848cd7e SC |
14514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14515 | (exit $ac_status); } && | |
ea7db9ff DE |
14516 | { ac_try='test -z "$ac_c_werror_flag" |
14517 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14519 | (eval $ac_try) 2>&5 | |
14520 | ac_status=$? | |
14521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14522 | (exit $ac_status); }; } && | |
14523 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14525 | (eval $ac_try) 2>&5 | |
14526 | ac_status=$? | |
14527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14528 | (exit $ac_status); }; }; then | |
14529 | ac_hi=-1 ac_mid=-1 | |
14530 | while :; do | |
14531 | cat >conftest.$ac_ext <<_ACEOF | |
14532 | /* confdefs.h. */ | |
14533 | _ACEOF | |
14534 | cat confdefs.h >>conftest.$ac_ext | |
14535 | cat >>conftest.$ac_ext <<_ACEOF | |
14536 | /* end confdefs.h. */ | |
14537 | $ac_includes_default | |
14538 | int | |
14539 | main () | |
14540 | { | |
14541 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14542 | test_array [0] = 0 | |
14543 | ||
14544 | ; | |
14545 | return 0; | |
14546 | } | |
14547 | _ACEOF | |
14548 | rm -f conftest.$ac_objext | |
14549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14550 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14551 | ac_status=$? |
ac1cb8d3 VS |
14552 | grep -v '^ *+' conftest.er1 >conftest.err |
14553 | rm -f conftest.er1 | |
14554 | cat conftest.err >&5 | |
a848cd7e SC |
14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14556 | (exit $ac_status); } && | |
ea7db9ff DE |
14557 | { ac_try='test -z "$ac_c_werror_flag" |
14558 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14560 | (eval $ac_try) 2>&5 | |
14561 | ac_status=$? | |
14562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14563 | (exit $ac_status); }; } && | |
14564 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14566 | (eval $ac_try) 2>&5 | |
14567 | ac_status=$? | |
14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14569 | (exit $ac_status); }; }; then | |
14570 | ac_lo=$ac_mid; break | |
14571 | else | |
14572 | echo "$as_me: failed program was:" >&5 | |
14573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14574 | ||
14575 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14576 | if test $ac_mid -le $ac_hi; then |
14577 | ac_lo= ac_hi= | |
14578 | break | |
14579 | fi | |
14580 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14581 | fi |
ac1cb8d3 | 14582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14583 | done |
14584 | else | |
14585 | echo "$as_me: failed program was:" >&5 | |
14586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14587 | ||
14588 | ac_lo= ac_hi= | |
14589 | fi | |
ac1cb8d3 | 14590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14591 | fi |
ac1cb8d3 | 14592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14593 | # Binary search between lo and hi bounds. |
14594 | while test "x$ac_lo" != "x$ac_hi"; do | |
14595 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14596 | cat >conftest.$ac_ext <<_ACEOF | |
14597 | /* confdefs.h. */ | |
14598 | _ACEOF | |
14599 | cat confdefs.h >>conftest.$ac_ext | |
14600 | cat >>conftest.$ac_ext <<_ACEOF | |
14601 | /* end confdefs.h. */ | |
14602 | $ac_includes_default | |
14603 | int | |
14604 | main () | |
14605 | { | |
14606 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14607 | test_array [0] = 0 | |
14608 | ||
14609 | ; | |
14610 | return 0; | |
14611 | } | |
14612 | _ACEOF | |
14613 | rm -f conftest.$ac_objext | |
14614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14615 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14616 | ac_status=$? |
ac1cb8d3 VS |
14617 | grep -v '^ *+' conftest.er1 >conftest.err |
14618 | rm -f conftest.er1 | |
14619 | cat conftest.err >&5 | |
a848cd7e SC |
14620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14621 | (exit $ac_status); } && | |
ea7db9ff DE |
14622 | { ac_try='test -z "$ac_c_werror_flag" |
14623 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14625 | (eval $ac_try) 2>&5 | |
14626 | ac_status=$? | |
14627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14628 | (exit $ac_status); }; } && | |
14629 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14631 | (eval $ac_try) 2>&5 | |
14632 | ac_status=$? | |
14633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14634 | (exit $ac_status); }; }; then | |
14635 | ac_hi=$ac_mid | |
14636 | else | |
14637 | echo "$as_me: failed program was:" >&5 | |
14638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14639 | ||
14640 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14641 | fi | |
ac1cb8d3 | 14642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14643 | done |
14644 | case $ac_lo in | |
14645 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14646 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14647 | See \`config.log' for more details." >&5 | |
14648 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14649 | See \`config.log' for more details." >&2;} | |
14650 | { (exit 1); exit 1; }; } ;; | |
14651 | esac | |
14652 | else | |
14653 | if test "$cross_compiling" = yes; then | |
ea7db9ff DE |
14654 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
14655 | See \`config.log' for more details." >&5 | |
14656 | echo "$as_me: error: cannot run test program while cross compiling | |
14657 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
14658 | { (exit 1); exit 1; }; } |
14659 | else | |
14660 | cat >conftest.$ac_ext <<_ACEOF | |
14661 | /* confdefs.h. */ | |
14662 | _ACEOF | |
14663 | cat confdefs.h >>conftest.$ac_ext | |
14664 | cat >>conftest.$ac_ext <<_ACEOF | |
14665 | /* end confdefs.h. */ | |
14666 | $ac_includes_default | |
14667 | long longval () { return (long) (sizeof (char)); } | |
14668 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14669 | #include <stdio.h> | |
14670 | #include <stdlib.h> | |
14671 | int | |
14672 | main () | |
14673 | { | |
14674 | ||
14675 | FILE *f = fopen ("conftest.val", "w"); | |
14676 | if (! f) | |
14677 | exit (1); | |
14678 | if (((long) (sizeof (char))) < 0) | |
14679 | { | |
14680 | long i = longval (); | |
14681 | if (i != ((long) (sizeof (char)))) | |
14682 | exit (1); | |
14683 | fprintf (f, "%ld\n", i); | |
14684 | } | |
14685 | else | |
14686 | { | |
14687 | unsigned long i = ulongval (); | |
14688 | if (i != ((long) (sizeof (char)))) | |
14689 | exit (1); | |
14690 | fprintf (f, "%lu\n", i); | |
14691 | } | |
14692 | exit (ferror (f) || fclose (f) != 0); | |
14693 | ||
14694 | ; | |
14695 | return 0; | |
14696 | } | |
14697 | _ACEOF | |
14698 | rm -f conftest$ac_exeext | |
14699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14700 | (eval $ac_link) 2>&5 | |
14701 | ac_status=$? | |
14702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14703 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14705 | (eval $ac_try) 2>&5 | |
14706 | ac_status=$? | |
14707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14708 | (exit $ac_status); }; }; then | |
14709 | ac_cv_sizeof_char=`cat conftest.val` | |
14710 | else | |
14711 | echo "$as_me: program exited with status $ac_status" >&5 | |
14712 | echo "$as_me: failed program was:" >&5 | |
14713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14714 | ||
14715 | ( exit $ac_status ) | |
14716 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14717 | See \`config.log' for more details." >&5 | |
14718 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14719 | See \`config.log' for more details." >&2;} | |
14720 | { (exit 1); exit 1; }; } | |
14721 | fi | |
ac1cb8d3 | 14722 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14723 | fi |
14724 | fi | |
14725 | rm -f conftest.val | |
14726 | else | |
14727 | ac_cv_sizeof_char=0 | |
14728 | fi | |
14729 | fi | |
14730 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14731 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14732 | cat >>confdefs.h <<_ACEOF | |
14733 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14734 | _ACEOF | |
14735 | ||
14736 | ||
14737 | echo "$as_me:$LINENO: checking for short" >&5 | |
14738 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14739 | if test "${ac_cv_type_short+set}" = set; then | |
14740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14741 | else | |
14742 | cat >conftest.$ac_ext <<_ACEOF | |
14743 | /* confdefs.h. */ | |
14744 | _ACEOF | |
14745 | cat confdefs.h >>conftest.$ac_ext | |
14746 | cat >>conftest.$ac_ext <<_ACEOF | |
14747 | /* end confdefs.h. */ | |
14748 | $ac_includes_default | |
14749 | int | |
14750 | main () | |
14751 | { | |
14752 | if ((short *) 0) | |
14753 | return 0; | |
14754 | if (sizeof (short)) | |
14755 | return 0; | |
14756 | ; | |
14757 | return 0; | |
14758 | } | |
14759 | _ACEOF | |
14760 | rm -f conftest.$ac_objext | |
14761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14762 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14763 | ac_status=$? |
ac1cb8d3 VS |
14764 | grep -v '^ *+' conftest.er1 >conftest.err |
14765 | rm -f conftest.er1 | |
14766 | cat conftest.err >&5 | |
a848cd7e SC |
14767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14768 | (exit $ac_status); } && | |
ea7db9ff DE |
14769 | { ac_try='test -z "$ac_c_werror_flag" |
14770 | || 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); } && | |
ea7db9ff DE |
14832 | { ac_try='test -z "$ac_c_werror_flag" |
14833 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14835 | (eval $ac_try) 2>&5 | |
14836 | ac_status=$? | |
14837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14838 | (exit $ac_status); }; } && | |
14839 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14841 | (eval $ac_try) 2>&5 | |
14842 | ac_status=$? | |
14843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14844 | (exit $ac_status); }; }; then | |
14845 | ac_lo=0 ac_mid=0 | |
14846 | while :; do | |
14847 | cat >conftest.$ac_ext <<_ACEOF | |
14848 | /* confdefs.h. */ | |
14849 | _ACEOF | |
14850 | cat confdefs.h >>conftest.$ac_ext | |
14851 | cat >>conftest.$ac_ext <<_ACEOF | |
14852 | /* end confdefs.h. */ | |
14853 | $ac_includes_default | |
14854 | int | |
14855 | main () | |
14856 | { | |
14857 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14858 | test_array [0] = 0 | |
14859 | ||
14860 | ; | |
14861 | return 0; | |
14862 | } | |
14863 | _ACEOF | |
14864 | rm -f conftest.$ac_objext | |
14865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14866 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14867 | ac_status=$? |
ac1cb8d3 VS |
14868 | grep -v '^ *+' conftest.er1 >conftest.err |
14869 | rm -f conftest.er1 | |
14870 | cat conftest.err >&5 | |
a848cd7e SC |
14871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14872 | (exit $ac_status); } && | |
ea7db9ff DE |
14873 | { ac_try='test -z "$ac_c_werror_flag" |
14874 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14876 | (eval $ac_try) 2>&5 | |
14877 | ac_status=$? | |
14878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14879 | (exit $ac_status); }; } && | |
14880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14882 | (eval $ac_try) 2>&5 | |
14883 | ac_status=$? | |
14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14885 | (exit $ac_status); }; }; then | |
14886 | ac_hi=$ac_mid; break | |
14887 | else | |
14888 | echo "$as_me: failed program was:" >&5 | |
14889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14890 | ||
14891 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14892 | if test $ac_lo -le $ac_mid; then |
14893 | ac_lo= ac_hi= | |
14894 | break | |
14895 | fi | |
14896 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14897 | fi |
ac1cb8d3 | 14898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14899 | done |
14900 | else | |
14901 | echo "$as_me: failed program was:" >&5 | |
14902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14903 | ||
14904 | cat >conftest.$ac_ext <<_ACEOF | |
14905 | /* confdefs.h. */ | |
14906 | _ACEOF | |
14907 | cat confdefs.h >>conftest.$ac_ext | |
14908 | cat >>conftest.$ac_ext <<_ACEOF | |
14909 | /* end confdefs.h. */ | |
14910 | $ac_includes_default | |
14911 | int | |
14912 | main () | |
14913 | { | |
14914 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14915 | test_array [0] = 0 | |
14916 | ||
14917 | ; | |
14918 | return 0; | |
14919 | } | |
14920 | _ACEOF | |
14921 | rm -f conftest.$ac_objext | |
14922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14923 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14924 | ac_status=$? |
ac1cb8d3 VS |
14925 | grep -v '^ *+' conftest.er1 >conftest.err |
14926 | rm -f conftest.er1 | |
14927 | cat conftest.err >&5 | |
a848cd7e SC |
14928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14929 | (exit $ac_status); } && | |
ea7db9ff DE |
14930 | { ac_try='test -z "$ac_c_werror_flag" |
14931 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14933 | (eval $ac_try) 2>&5 | |
14934 | ac_status=$? | |
14935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14936 | (exit $ac_status); }; } && | |
14937 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14939 | (eval $ac_try) 2>&5 | |
14940 | ac_status=$? | |
14941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14942 | (exit $ac_status); }; }; then | |
14943 | ac_hi=-1 ac_mid=-1 | |
14944 | while :; do | |
14945 | cat >conftest.$ac_ext <<_ACEOF | |
14946 | /* confdefs.h. */ | |
14947 | _ACEOF | |
14948 | cat confdefs.h >>conftest.$ac_ext | |
14949 | cat >>conftest.$ac_ext <<_ACEOF | |
14950 | /* end confdefs.h. */ | |
14951 | $ac_includes_default | |
14952 | int | |
14953 | main () | |
14954 | { | |
14955 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14956 | test_array [0] = 0 | |
14957 | ||
14958 | ; | |
14959 | return 0; | |
14960 | } | |
14961 | _ACEOF | |
14962 | rm -f conftest.$ac_objext | |
14963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14964 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14965 | ac_status=$? |
ac1cb8d3 VS |
14966 | grep -v '^ *+' conftest.er1 >conftest.err |
14967 | rm -f conftest.er1 | |
14968 | cat conftest.err >&5 | |
a848cd7e SC |
14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14970 | (exit $ac_status); } && | |
ea7db9ff DE |
14971 | { ac_try='test -z "$ac_c_werror_flag" |
14972 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14974 | (eval $ac_try) 2>&5 | |
14975 | ac_status=$? | |
14976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14977 | (exit $ac_status); }; } && | |
14978 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14980 | (eval $ac_try) 2>&5 | |
14981 | ac_status=$? | |
14982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14983 | (exit $ac_status); }; }; then | |
14984 | ac_lo=$ac_mid; break | |
14985 | else | |
14986 | echo "$as_me: failed program was:" >&5 | |
14987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14988 | ||
14989 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14990 | if test $ac_mid -le $ac_hi; then |
14991 | ac_lo= ac_hi= | |
14992 | break | |
14993 | fi | |
14994 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14995 | fi |
ac1cb8d3 | 14996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14997 | done |
14998 | else | |
14999 | echo "$as_me: failed program was:" >&5 | |
15000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15001 | ||
15002 | ac_lo= ac_hi= | |
15003 | fi | |
ac1cb8d3 | 15004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15005 | fi |
ac1cb8d3 | 15006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15007 | # Binary search between lo and hi bounds. |
15008 | while test "x$ac_lo" != "x$ac_hi"; do | |
15009 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15010 | cat >conftest.$ac_ext <<_ACEOF | |
15011 | /* confdefs.h. */ | |
15012 | _ACEOF | |
15013 | cat confdefs.h >>conftest.$ac_ext | |
15014 | cat >>conftest.$ac_ext <<_ACEOF | |
15015 | /* end confdefs.h. */ | |
15016 | $ac_includes_default | |
15017 | int | |
15018 | main () | |
15019 | { | |
15020 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15021 | test_array [0] = 0 | |
15022 | ||
15023 | ; | |
15024 | return 0; | |
15025 | } | |
15026 | _ACEOF | |
15027 | rm -f conftest.$ac_objext | |
15028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15029 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15030 | ac_status=$? |
ac1cb8d3 VS |
15031 | grep -v '^ *+' conftest.er1 >conftest.err |
15032 | rm -f conftest.er1 | |
15033 | cat conftest.err >&5 | |
a848cd7e SC |
15034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15035 | (exit $ac_status); } && | |
ea7db9ff DE |
15036 | { ac_try='test -z "$ac_c_werror_flag" |
15037 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15039 | (eval $ac_try) 2>&5 | |
15040 | ac_status=$? | |
15041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15042 | (exit $ac_status); }; } && | |
15043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15045 | (eval $ac_try) 2>&5 | |
15046 | ac_status=$? | |
15047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15048 | (exit $ac_status); }; }; then | |
15049 | ac_hi=$ac_mid | |
15050 | else | |
15051 | echo "$as_me: failed program was:" >&5 | |
15052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15053 | ||
15054 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15055 | fi | |
ac1cb8d3 | 15056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15057 | done |
15058 | case $ac_lo in | |
15059 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15060 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15061 | See \`config.log' for more details." >&5 | |
15062 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15063 | See \`config.log' for more details." >&2;} | |
15064 | { (exit 1); exit 1; }; } ;; | |
15065 | esac | |
15066 | else | |
15067 | if test "$cross_compiling" = yes; then | |
ea7db9ff DE |
15068 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15069 | See \`config.log' for more details." >&5 | |
15070 | echo "$as_me: error: cannot run test program while cross compiling | |
15071 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15072 | { (exit 1); exit 1; }; } |
15073 | else | |
15074 | cat >conftest.$ac_ext <<_ACEOF | |
15075 | /* confdefs.h. */ | |
15076 | _ACEOF | |
15077 | cat confdefs.h >>conftest.$ac_ext | |
15078 | cat >>conftest.$ac_ext <<_ACEOF | |
15079 | /* end confdefs.h. */ | |
15080 | $ac_includes_default | |
15081 | long longval () { return (long) (sizeof (short)); } | |
15082 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15083 | #include <stdio.h> | |
15084 | #include <stdlib.h> | |
15085 | int | |
15086 | main () | |
15087 | { | |
15088 | ||
15089 | FILE *f = fopen ("conftest.val", "w"); | |
15090 | if (! f) | |
15091 | exit (1); | |
15092 | if (((long) (sizeof (short))) < 0) | |
15093 | { | |
15094 | long i = longval (); | |
15095 | if (i != ((long) (sizeof (short)))) | |
15096 | exit (1); | |
15097 | fprintf (f, "%ld\n", i); | |
15098 | } | |
15099 | else | |
15100 | { | |
15101 | unsigned long i = ulongval (); | |
15102 | if (i != ((long) (sizeof (short)))) | |
15103 | exit (1); | |
15104 | fprintf (f, "%lu\n", i); | |
15105 | } | |
15106 | exit (ferror (f) || fclose (f) != 0); | |
15107 | ||
15108 | ; | |
15109 | return 0; | |
15110 | } | |
15111 | _ACEOF | |
15112 | rm -f conftest$ac_exeext | |
15113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15114 | (eval $ac_link) 2>&5 | |
15115 | ac_status=$? | |
15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15117 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15119 | (eval $ac_try) 2>&5 | |
15120 | ac_status=$? | |
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15122 | (exit $ac_status); }; }; then | |
15123 | ac_cv_sizeof_short=`cat conftest.val` | |
15124 | else | |
15125 | echo "$as_me: program exited with status $ac_status" >&5 | |
15126 | echo "$as_me: failed program was:" >&5 | |
15127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15128 | ||
15129 | ( exit $ac_status ) | |
15130 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15131 | See \`config.log' for more details." >&5 | |
15132 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15133 | See \`config.log' for more details." >&2;} | |
15134 | { (exit 1); exit 1; }; } | |
15135 | fi | |
ac1cb8d3 | 15136 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15137 | fi |
15138 | fi | |
15139 | rm -f conftest.val | |
15140 | else | |
15141 | ac_cv_sizeof_short=0 | |
15142 | fi | |
15143 | fi | |
15144 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15145 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15146 | cat >>confdefs.h <<_ACEOF | |
15147 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15148 | _ACEOF | |
15149 | ||
15150 | ||
15151 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15152 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15153 | if test "${ac_cv_type_void_p+set}" = set; then | |
15154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15155 | else | |
15156 | cat >conftest.$ac_ext <<_ACEOF | |
15157 | /* confdefs.h. */ | |
15158 | _ACEOF | |
15159 | cat confdefs.h >>conftest.$ac_ext | |
15160 | cat >>conftest.$ac_ext <<_ACEOF | |
15161 | /* end confdefs.h. */ | |
15162 | $ac_includes_default | |
15163 | int | |
15164 | main () | |
15165 | { | |
15166 | if ((void * *) 0) | |
15167 | return 0; | |
15168 | if (sizeof (void *)) | |
15169 | return 0; | |
15170 | ; | |
15171 | return 0; | |
15172 | } | |
15173 | _ACEOF | |
15174 | rm -f conftest.$ac_objext | |
15175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15176 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15177 | ac_status=$? |
ac1cb8d3 VS |
15178 | grep -v '^ *+' conftest.er1 >conftest.err |
15179 | rm -f conftest.er1 | |
15180 | cat conftest.err >&5 | |
a848cd7e SC |
15181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15182 | (exit $ac_status); } && | |
ea7db9ff DE |
15183 | { ac_try='test -z "$ac_c_werror_flag" |
15184 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15186 | (eval $ac_try) 2>&5 | |
15187 | ac_status=$? | |
15188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15189 | (exit $ac_status); }; } && | |
15190 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15192 | (eval $ac_try) 2>&5 | |
15193 | ac_status=$? | |
15194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15195 | (exit $ac_status); }; }; then | |
15196 | ac_cv_type_void_p=yes | |
15197 | else | |
15198 | echo "$as_me: failed program was:" >&5 | |
15199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15200 | ||
15201 | ac_cv_type_void_p=no | |
15202 | fi | |
ac1cb8d3 | 15203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15204 | fi |
15205 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15206 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15207 | ||
15208 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15209 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15210 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15212 | else | |
15213 | if test "$ac_cv_type_void_p" = yes; then | |
15214 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15215 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15216 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15217 | # This bug is HP SR number 8606223364. | |
15218 | if test "$cross_compiling" = yes; then | |
15219 | # Depending upon the size, compute the lo and hi bounds. | |
15220 | cat >conftest.$ac_ext <<_ACEOF | |
15221 | /* confdefs.h. */ | |
15222 | _ACEOF | |
15223 | cat confdefs.h >>conftest.$ac_ext | |
15224 | cat >>conftest.$ac_ext <<_ACEOF | |
15225 | /* end confdefs.h. */ | |
15226 | $ac_includes_default | |
15227 | int | |
15228 | main () | |
15229 | { | |
15230 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15231 | test_array [0] = 0 | |
15232 | ||
15233 | ; | |
15234 | return 0; | |
15235 | } | |
15236 | _ACEOF | |
15237 | rm -f conftest.$ac_objext | |
15238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15239 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15240 | ac_status=$? |
ac1cb8d3 VS |
15241 | grep -v '^ *+' conftest.er1 >conftest.err |
15242 | rm -f conftest.er1 | |
15243 | cat conftest.err >&5 | |
a848cd7e SC |
15244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15245 | (exit $ac_status); } && | |
ea7db9ff DE |
15246 | { ac_try='test -z "$ac_c_werror_flag" |
15247 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15249 | (eval $ac_try) 2>&5 | |
15250 | ac_status=$? | |
15251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15252 | (exit $ac_status); }; } && | |
15253 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15255 | (eval $ac_try) 2>&5 | |
15256 | ac_status=$? | |
15257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15258 | (exit $ac_status); }; }; then | |
15259 | ac_lo=0 ac_mid=0 | |
15260 | while :; do | |
15261 | cat >conftest.$ac_ext <<_ACEOF | |
15262 | /* confdefs.h. */ | |
15263 | _ACEOF | |
15264 | cat confdefs.h >>conftest.$ac_ext | |
15265 | cat >>conftest.$ac_ext <<_ACEOF | |
15266 | /* end confdefs.h. */ | |
15267 | $ac_includes_default | |
15268 | int | |
15269 | main () | |
15270 | { | |
15271 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15272 | test_array [0] = 0 | |
15273 | ||
15274 | ; | |
15275 | return 0; | |
15276 | } | |
15277 | _ACEOF | |
15278 | rm -f conftest.$ac_objext | |
15279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15280 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15281 | ac_status=$? |
ac1cb8d3 VS |
15282 | grep -v '^ *+' conftest.er1 >conftest.err |
15283 | rm -f conftest.er1 | |
15284 | cat conftest.err >&5 | |
a848cd7e SC |
15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15286 | (exit $ac_status); } && | |
ea7db9ff DE |
15287 | { ac_try='test -z "$ac_c_werror_flag" |
15288 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15290 | (eval $ac_try) 2>&5 | |
15291 | ac_status=$? | |
15292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15293 | (exit $ac_status); }; } && | |
15294 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15296 | (eval $ac_try) 2>&5 | |
15297 | ac_status=$? | |
15298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15299 | (exit $ac_status); }; }; then | |
15300 | ac_hi=$ac_mid; break | |
15301 | else | |
15302 | echo "$as_me: failed program was:" >&5 | |
15303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15304 | ||
15305 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15306 | if test $ac_lo -le $ac_mid; then |
15307 | ac_lo= ac_hi= | |
15308 | break | |
15309 | fi | |
15310 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15311 | fi |
ac1cb8d3 | 15312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15313 | done |
15314 | else | |
15315 | echo "$as_me: failed program was:" >&5 | |
15316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15317 | ||
15318 | cat >conftest.$ac_ext <<_ACEOF | |
15319 | /* confdefs.h. */ | |
15320 | _ACEOF | |
15321 | cat confdefs.h >>conftest.$ac_ext | |
15322 | cat >>conftest.$ac_ext <<_ACEOF | |
15323 | /* end confdefs.h. */ | |
15324 | $ac_includes_default | |
15325 | int | |
15326 | main () | |
15327 | { | |
15328 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15329 | test_array [0] = 0 | |
15330 | ||
15331 | ; | |
15332 | return 0; | |
15333 | } | |
15334 | _ACEOF | |
15335 | rm -f conftest.$ac_objext | |
15336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15337 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15338 | ac_status=$? |
ac1cb8d3 VS |
15339 | grep -v '^ *+' conftest.er1 >conftest.err |
15340 | rm -f conftest.er1 | |
15341 | cat conftest.err >&5 | |
a848cd7e SC |
15342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15343 | (exit $ac_status); } && | |
ea7db9ff DE |
15344 | { ac_try='test -z "$ac_c_werror_flag" |
15345 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15347 | (eval $ac_try) 2>&5 | |
15348 | ac_status=$? | |
15349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15350 | (exit $ac_status); }; } && | |
15351 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15353 | (eval $ac_try) 2>&5 | |
15354 | ac_status=$? | |
15355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15356 | (exit $ac_status); }; }; then | |
15357 | ac_hi=-1 ac_mid=-1 | |
15358 | while :; do | |
15359 | cat >conftest.$ac_ext <<_ACEOF | |
15360 | /* confdefs.h. */ | |
15361 | _ACEOF | |
15362 | cat confdefs.h >>conftest.$ac_ext | |
15363 | cat >>conftest.$ac_ext <<_ACEOF | |
15364 | /* end confdefs.h. */ | |
15365 | $ac_includes_default | |
15366 | int | |
15367 | main () | |
15368 | { | |
15369 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15370 | test_array [0] = 0 | |
15371 | ||
15372 | ; | |
15373 | return 0; | |
15374 | } | |
15375 | _ACEOF | |
15376 | rm -f conftest.$ac_objext | |
15377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15378 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15379 | ac_status=$? |
ac1cb8d3 VS |
15380 | grep -v '^ *+' conftest.er1 >conftest.err |
15381 | rm -f conftest.er1 | |
15382 | cat conftest.err >&5 | |
a848cd7e SC |
15383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15384 | (exit $ac_status); } && | |
ea7db9ff DE |
15385 | { ac_try='test -z "$ac_c_werror_flag" |
15386 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15388 | (eval $ac_try) 2>&5 | |
15389 | ac_status=$? | |
15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15391 | (exit $ac_status); }; } && | |
15392 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15394 | (eval $ac_try) 2>&5 | |
15395 | ac_status=$? | |
15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15397 | (exit $ac_status); }; }; then | |
15398 | ac_lo=$ac_mid; break | |
15399 | else | |
15400 | echo "$as_me: failed program was:" >&5 | |
15401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15402 | ||
15403 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15404 | if test $ac_mid -le $ac_hi; then |
15405 | ac_lo= ac_hi= | |
15406 | break | |
15407 | fi | |
15408 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15409 | fi |
ac1cb8d3 | 15410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15411 | done |
15412 | else | |
15413 | echo "$as_me: failed program was:" >&5 | |
15414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15415 | ||
15416 | ac_lo= ac_hi= | |
15417 | fi | |
ac1cb8d3 | 15418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15419 | fi |
ac1cb8d3 | 15420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15421 | # Binary search between lo and hi bounds. |
15422 | while test "x$ac_lo" != "x$ac_hi"; do | |
15423 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15424 | cat >conftest.$ac_ext <<_ACEOF | |
15425 | /* confdefs.h. */ | |
15426 | _ACEOF | |
15427 | cat confdefs.h >>conftest.$ac_ext | |
15428 | cat >>conftest.$ac_ext <<_ACEOF | |
15429 | /* end confdefs.h. */ | |
15430 | $ac_includes_default | |
15431 | int | |
15432 | main () | |
15433 | { | |
15434 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15435 | test_array [0] = 0 | |
15436 | ||
15437 | ; | |
15438 | return 0; | |
15439 | } | |
15440 | _ACEOF | |
15441 | rm -f conftest.$ac_objext | |
15442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15443 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15444 | ac_status=$? |
ac1cb8d3 VS |
15445 | grep -v '^ *+' conftest.er1 >conftest.err |
15446 | rm -f conftest.er1 | |
15447 | cat conftest.err >&5 | |
a848cd7e SC |
15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15449 | (exit $ac_status); } && | |
ea7db9ff DE |
15450 | { ac_try='test -z "$ac_c_werror_flag" |
15451 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15453 | (eval $ac_try) 2>&5 | |
15454 | ac_status=$? | |
15455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15456 | (exit $ac_status); }; } && | |
15457 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15459 | (eval $ac_try) 2>&5 | |
15460 | ac_status=$? | |
15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15462 | (exit $ac_status); }; }; then | |
15463 | ac_hi=$ac_mid | |
15464 | else | |
15465 | echo "$as_me: failed program was:" >&5 | |
15466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15467 | ||
15468 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15469 | fi | |
ac1cb8d3 | 15470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15471 | done |
15472 | case $ac_lo in | |
15473 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15474 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15475 | See \`config.log' for more details." >&5 | |
15476 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15477 | See \`config.log' for more details." >&2;} | |
15478 | { (exit 1); exit 1; }; } ;; | |
15479 | esac | |
15480 | else | |
15481 | if test "$cross_compiling" = yes; then | |
ea7db9ff DE |
15482 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15483 | See \`config.log' for more details." >&5 | |
15484 | echo "$as_me: error: cannot run test program while cross compiling | |
15485 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15486 | { (exit 1); exit 1; }; } |
15487 | else | |
15488 | cat >conftest.$ac_ext <<_ACEOF | |
15489 | /* confdefs.h. */ | |
15490 | _ACEOF | |
15491 | cat confdefs.h >>conftest.$ac_ext | |
15492 | cat >>conftest.$ac_ext <<_ACEOF | |
15493 | /* end confdefs.h. */ | |
15494 | $ac_includes_default | |
15495 | long longval () { return (long) (sizeof (void *)); } | |
15496 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15497 | #include <stdio.h> | |
15498 | #include <stdlib.h> | |
15499 | int | |
15500 | main () | |
15501 | { | |
15502 | ||
15503 | FILE *f = fopen ("conftest.val", "w"); | |
15504 | if (! f) | |
15505 | exit (1); | |
15506 | if (((long) (sizeof (void *))) < 0) | |
15507 | { | |
15508 | long i = longval (); | |
15509 | if (i != ((long) (sizeof (void *)))) | |
15510 | exit (1); | |
15511 | fprintf (f, "%ld\n", i); | |
15512 | } | |
15513 | else | |
15514 | { | |
15515 | unsigned long i = ulongval (); | |
15516 | if (i != ((long) (sizeof (void *)))) | |
15517 | exit (1); | |
15518 | fprintf (f, "%lu\n", i); | |
15519 | } | |
15520 | exit (ferror (f) || fclose (f) != 0); | |
15521 | ||
15522 | ; | |
15523 | return 0; | |
15524 | } | |
15525 | _ACEOF | |
15526 | rm -f conftest$ac_exeext | |
15527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15528 | (eval $ac_link) 2>&5 | |
15529 | ac_status=$? | |
15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15531 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15533 | (eval $ac_try) 2>&5 | |
15534 | ac_status=$? | |
15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15536 | (exit $ac_status); }; }; then | |
15537 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15538 | else | |
15539 | echo "$as_me: program exited with status $ac_status" >&5 | |
15540 | echo "$as_me: failed program was:" >&5 | |
15541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15542 | ||
15543 | ( exit $ac_status ) | |
15544 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15545 | See \`config.log' for more details." >&5 | |
15546 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15547 | See \`config.log' for more details." >&2;} | |
15548 | { (exit 1); exit 1; }; } | |
15549 | fi | |
ac1cb8d3 | 15550 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15551 | fi |
15552 | fi | |
15553 | rm -f conftest.val | |
15554 | else | |
15555 | ac_cv_sizeof_void_p=0 | |
15556 | fi | |
15557 | fi | |
15558 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15559 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15560 | cat >>confdefs.h <<_ACEOF | |
15561 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15562 | _ACEOF | |
15563 | ||
15564 | ||
15565 | echo "$as_me:$LINENO: checking for int" >&5 | |
15566 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15567 | if test "${ac_cv_type_int+set}" = set; then | |
15568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15569 | else | |
15570 | cat >conftest.$ac_ext <<_ACEOF | |
15571 | /* confdefs.h. */ | |
15572 | _ACEOF | |
15573 | cat confdefs.h >>conftest.$ac_ext | |
15574 | cat >>conftest.$ac_ext <<_ACEOF | |
15575 | /* end confdefs.h. */ | |
15576 | $ac_includes_default | |
15577 | int | |
15578 | main () | |
15579 | { | |
15580 | if ((int *) 0) | |
15581 | return 0; | |
15582 | if (sizeof (int)) | |
15583 | return 0; | |
15584 | ; | |
15585 | return 0; | |
15586 | } | |
15587 | _ACEOF | |
15588 | rm -f conftest.$ac_objext | |
15589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15590 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15591 | ac_status=$? |
ac1cb8d3 VS |
15592 | grep -v '^ *+' conftest.er1 >conftest.err |
15593 | rm -f conftest.er1 | |
15594 | cat conftest.err >&5 | |
a848cd7e SC |
15595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15596 | (exit $ac_status); } && | |
ea7db9ff DE |
15597 | { ac_try='test -z "$ac_c_werror_flag" |
15598 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15600 | (eval $ac_try) 2>&5 | |
15601 | ac_status=$? | |
15602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15603 | (exit $ac_status); }; } && | |
15604 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15606 | (eval $ac_try) 2>&5 | |
15607 | ac_status=$? | |
15608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15609 | (exit $ac_status); }; }; then | |
15610 | ac_cv_type_int=yes | |
15611 | else | |
15612 | echo "$as_me: failed program was:" >&5 | |
15613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15614 | ||
15615 | ac_cv_type_int=no | |
15616 | fi | |
ac1cb8d3 | 15617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15618 | fi |
15619 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15620 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15621 | ||
15622 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15623 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15624 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15626 | else | |
15627 | if test "$ac_cv_type_int" = yes; then | |
15628 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15629 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15630 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15631 | # This bug is HP SR number 8606223364. | |
15632 | if test "$cross_compiling" = yes; then | |
15633 | # Depending upon the size, compute the lo and hi bounds. | |
15634 | cat >conftest.$ac_ext <<_ACEOF | |
15635 | /* confdefs.h. */ | |
15636 | _ACEOF | |
15637 | cat confdefs.h >>conftest.$ac_ext | |
15638 | cat >>conftest.$ac_ext <<_ACEOF | |
15639 | /* end confdefs.h. */ | |
15640 | $ac_includes_default | |
15641 | int | |
15642 | main () | |
15643 | { | |
15644 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15645 | test_array [0] = 0 | |
15646 | ||
15647 | ; | |
15648 | return 0; | |
15649 | } | |
15650 | _ACEOF | |
15651 | rm -f conftest.$ac_objext | |
15652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15653 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15654 | ac_status=$? |
ac1cb8d3 VS |
15655 | grep -v '^ *+' conftest.er1 >conftest.err |
15656 | rm -f conftest.er1 | |
15657 | cat conftest.err >&5 | |
a848cd7e SC |
15658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15659 | (exit $ac_status); } && | |
ea7db9ff DE |
15660 | { ac_try='test -z "$ac_c_werror_flag" |
15661 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15663 | (eval $ac_try) 2>&5 | |
15664 | ac_status=$? | |
15665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15666 | (exit $ac_status); }; } && | |
15667 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15669 | (eval $ac_try) 2>&5 | |
15670 | ac_status=$? | |
15671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15672 | (exit $ac_status); }; }; then | |
15673 | ac_lo=0 ac_mid=0 | |
15674 | while :; do | |
15675 | cat >conftest.$ac_ext <<_ACEOF | |
15676 | /* confdefs.h. */ | |
15677 | _ACEOF | |
15678 | cat confdefs.h >>conftest.$ac_ext | |
15679 | cat >>conftest.$ac_ext <<_ACEOF | |
15680 | /* end confdefs.h. */ | |
15681 | $ac_includes_default | |
15682 | int | |
15683 | main () | |
15684 | { | |
15685 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15686 | test_array [0] = 0 | |
15687 | ||
15688 | ; | |
15689 | return 0; | |
15690 | } | |
15691 | _ACEOF | |
15692 | rm -f conftest.$ac_objext | |
15693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15694 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15695 | ac_status=$? |
ac1cb8d3 VS |
15696 | grep -v '^ *+' conftest.er1 >conftest.err |
15697 | rm -f conftest.er1 | |
15698 | cat conftest.err >&5 | |
a848cd7e SC |
15699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15700 | (exit $ac_status); } && | |
ea7db9ff DE |
15701 | { ac_try='test -z "$ac_c_werror_flag" |
15702 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15704 | (eval $ac_try) 2>&5 | |
15705 | ac_status=$? | |
15706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15707 | (exit $ac_status); }; } && | |
15708 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15710 | (eval $ac_try) 2>&5 | |
15711 | ac_status=$? | |
15712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15713 | (exit $ac_status); }; }; then | |
15714 | ac_hi=$ac_mid; break | |
15715 | else | |
15716 | echo "$as_me: failed program was:" >&5 | |
15717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15718 | ||
15719 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15720 | if test $ac_lo -le $ac_mid; then |
15721 | ac_lo= ac_hi= | |
15722 | break | |
15723 | fi | |
15724 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15725 | fi |
ac1cb8d3 | 15726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15727 | done |
15728 | else | |
15729 | echo "$as_me: failed program was:" >&5 | |
15730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15731 | ||
15732 | cat >conftest.$ac_ext <<_ACEOF | |
15733 | /* confdefs.h. */ | |
15734 | _ACEOF | |
15735 | cat confdefs.h >>conftest.$ac_ext | |
15736 | cat >>conftest.$ac_ext <<_ACEOF | |
15737 | /* end confdefs.h. */ | |
15738 | $ac_includes_default | |
15739 | int | |
15740 | main () | |
15741 | { | |
15742 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15743 | test_array [0] = 0 | |
15744 | ||
15745 | ; | |
15746 | return 0; | |
15747 | } | |
15748 | _ACEOF | |
15749 | rm -f conftest.$ac_objext | |
15750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15751 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15752 | ac_status=$? |
ac1cb8d3 VS |
15753 | grep -v '^ *+' conftest.er1 >conftest.err |
15754 | rm -f conftest.er1 | |
15755 | cat conftest.err >&5 | |
a848cd7e SC |
15756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15757 | (exit $ac_status); } && | |
ea7db9ff DE |
15758 | { ac_try='test -z "$ac_c_werror_flag" |
15759 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15761 | (eval $ac_try) 2>&5 | |
15762 | ac_status=$? | |
15763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15764 | (exit $ac_status); }; } && | |
15765 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15767 | (eval $ac_try) 2>&5 | |
15768 | ac_status=$? | |
15769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15770 | (exit $ac_status); }; }; then | |
15771 | ac_hi=-1 ac_mid=-1 | |
15772 | while :; do | |
15773 | cat >conftest.$ac_ext <<_ACEOF | |
15774 | /* confdefs.h. */ | |
15775 | _ACEOF | |
15776 | cat confdefs.h >>conftest.$ac_ext | |
15777 | cat >>conftest.$ac_ext <<_ACEOF | |
15778 | /* end confdefs.h. */ | |
15779 | $ac_includes_default | |
15780 | int | |
15781 | main () | |
15782 | { | |
15783 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15784 | test_array [0] = 0 | |
15785 | ||
15786 | ; | |
15787 | return 0; | |
15788 | } | |
15789 | _ACEOF | |
15790 | rm -f conftest.$ac_objext | |
15791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15792 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15793 | ac_status=$? |
ac1cb8d3 VS |
15794 | grep -v '^ *+' conftest.er1 >conftest.err |
15795 | rm -f conftest.er1 | |
15796 | cat conftest.err >&5 | |
a848cd7e SC |
15797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15798 | (exit $ac_status); } && | |
ea7db9ff DE |
15799 | { ac_try='test -z "$ac_c_werror_flag" |
15800 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15802 | (eval $ac_try) 2>&5 | |
15803 | ac_status=$? | |
15804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15805 | (exit $ac_status); }; } && | |
15806 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15808 | (eval $ac_try) 2>&5 | |
15809 | ac_status=$? | |
15810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15811 | (exit $ac_status); }; }; then | |
15812 | ac_lo=$ac_mid; break | |
15813 | else | |
15814 | echo "$as_me: failed program was:" >&5 | |
15815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15816 | ||
15817 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15818 | if test $ac_mid -le $ac_hi; then |
15819 | ac_lo= ac_hi= | |
15820 | break | |
15821 | fi | |
15822 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15823 | fi |
ac1cb8d3 | 15824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15825 | done |
15826 | else | |
15827 | echo "$as_me: failed program was:" >&5 | |
15828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15829 | ||
15830 | ac_lo= ac_hi= | |
15831 | fi | |
ac1cb8d3 | 15832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15833 | fi |
ac1cb8d3 | 15834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15835 | # Binary search between lo and hi bounds. |
15836 | while test "x$ac_lo" != "x$ac_hi"; do | |
15837 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15838 | cat >conftest.$ac_ext <<_ACEOF | |
15839 | /* confdefs.h. */ | |
15840 | _ACEOF | |
15841 | cat confdefs.h >>conftest.$ac_ext | |
15842 | cat >>conftest.$ac_ext <<_ACEOF | |
15843 | /* end confdefs.h. */ | |
15844 | $ac_includes_default | |
15845 | int | |
15846 | main () | |
15847 | { | |
15848 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15849 | test_array [0] = 0 | |
15850 | ||
15851 | ; | |
15852 | return 0; | |
15853 | } | |
15854 | _ACEOF | |
15855 | rm -f conftest.$ac_objext | |
15856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15857 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15858 | ac_status=$? |
ac1cb8d3 VS |
15859 | grep -v '^ *+' conftest.er1 >conftest.err |
15860 | rm -f conftest.er1 | |
15861 | cat conftest.err >&5 | |
a848cd7e SC |
15862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15863 | (exit $ac_status); } && | |
ea7db9ff DE |
15864 | { ac_try='test -z "$ac_c_werror_flag" |
15865 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15867 | (eval $ac_try) 2>&5 | |
15868 | ac_status=$? | |
15869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15870 | (exit $ac_status); }; } && | |
15871 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15873 | (eval $ac_try) 2>&5 | |
15874 | ac_status=$? | |
15875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15876 | (exit $ac_status); }; }; then | |
15877 | ac_hi=$ac_mid | |
15878 | else | |
15879 | echo "$as_me: failed program was:" >&5 | |
15880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15881 | ||
15882 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15883 | fi | |
ac1cb8d3 | 15884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15885 | done |
15886 | case $ac_lo in | |
15887 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15888 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15889 | See \`config.log' for more details." >&5 | |
15890 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15891 | See \`config.log' for more details." >&2;} | |
15892 | { (exit 1); exit 1; }; } ;; | |
15893 | esac | |
15894 | else | |
15895 | if test "$cross_compiling" = yes; then | |
ea7db9ff DE |
15896 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15897 | See \`config.log' for more details." >&5 | |
15898 | echo "$as_me: error: cannot run test program while cross compiling | |
15899 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15900 | { (exit 1); exit 1; }; } |
15901 | else | |
15902 | cat >conftest.$ac_ext <<_ACEOF | |
15903 | /* confdefs.h. */ | |
15904 | _ACEOF | |
15905 | cat confdefs.h >>conftest.$ac_ext | |
15906 | cat >>conftest.$ac_ext <<_ACEOF | |
15907 | /* end confdefs.h. */ | |
15908 | $ac_includes_default | |
15909 | long longval () { return (long) (sizeof (int)); } | |
15910 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15911 | #include <stdio.h> | |
15912 | #include <stdlib.h> | |
15913 | int | |
15914 | main () | |
15915 | { | |
15916 | ||
15917 | FILE *f = fopen ("conftest.val", "w"); | |
15918 | if (! f) | |
15919 | exit (1); | |
15920 | if (((long) (sizeof (int))) < 0) | |
15921 | { | |
15922 | long i = longval (); | |
15923 | if (i != ((long) (sizeof (int)))) | |
15924 | exit (1); | |
15925 | fprintf (f, "%ld\n", i); | |
15926 | } | |
15927 | else | |
15928 | { | |
15929 | unsigned long i = ulongval (); | |
15930 | if (i != ((long) (sizeof (int)))) | |
15931 | exit (1); | |
15932 | fprintf (f, "%lu\n", i); | |
15933 | } | |
15934 | exit (ferror (f) || fclose (f) != 0); | |
15935 | ||
15936 | ; | |
15937 | return 0; | |
15938 | } | |
15939 | _ACEOF | |
15940 | rm -f conftest$ac_exeext | |
15941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15942 | (eval $ac_link) 2>&5 | |
15943 | ac_status=$? | |
15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15945 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15947 | (eval $ac_try) 2>&5 | |
15948 | ac_status=$? | |
15949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15950 | (exit $ac_status); }; }; then | |
15951 | ac_cv_sizeof_int=`cat conftest.val` | |
15952 | else | |
15953 | echo "$as_me: program exited with status $ac_status" >&5 | |
15954 | echo "$as_me: failed program was:" >&5 | |
15955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15956 | ||
15957 | ( exit $ac_status ) | |
15958 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15959 | See \`config.log' for more details." >&5 | |
15960 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15961 | See \`config.log' for more details." >&2;} | |
15962 | { (exit 1); exit 1; }; } | |
15963 | fi | |
ac1cb8d3 | 15964 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15965 | fi |
15966 | fi | |
15967 | rm -f conftest.val | |
15968 | else | |
15969 | ac_cv_sizeof_int=0 | |
15970 | fi | |
15971 | fi | |
15972 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
15973 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15974 | cat >>confdefs.h <<_ACEOF | |
15975 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15976 | _ACEOF | |
15977 | ||
15978 | ||
15979 | echo "$as_me:$LINENO: checking for long" >&5 | |
15980 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15981 | if test "${ac_cv_type_long+set}" = set; then | |
15982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15983 | else | |
15984 | cat >conftest.$ac_ext <<_ACEOF | |
15985 | /* confdefs.h. */ | |
15986 | _ACEOF | |
15987 | cat confdefs.h >>conftest.$ac_ext | |
15988 | cat >>conftest.$ac_ext <<_ACEOF | |
15989 | /* end confdefs.h. */ | |
15990 | $ac_includes_default | |
15991 | int | |
15992 | main () | |
15993 | { | |
15994 | if ((long *) 0) | |
15995 | return 0; | |
15996 | if (sizeof (long)) | |
15997 | return 0; | |
15998 | ; | |
15999 | return 0; | |
16000 | } | |
16001 | _ACEOF | |
16002 | rm -f conftest.$ac_objext | |
16003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16004 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16005 | ac_status=$? |
ac1cb8d3 VS |
16006 | grep -v '^ *+' conftest.er1 >conftest.err |
16007 | rm -f conftest.er1 | |
16008 | cat conftest.err >&5 | |
a848cd7e SC |
16009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16010 | (exit $ac_status); } && | |
ea7db9ff DE |
16011 | { ac_try='test -z "$ac_c_werror_flag" |
16012 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16014 | (eval $ac_try) 2>&5 | |
16015 | ac_status=$? | |
16016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16017 | (exit $ac_status); }; } && | |
16018 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16020 | (eval $ac_try) 2>&5 | |
16021 | ac_status=$? | |
16022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16023 | (exit $ac_status); }; }; then | |
16024 | ac_cv_type_long=yes | |
16025 | else | |
16026 | echo "$as_me: failed program was:" >&5 | |
16027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16028 | ||
16029 | ac_cv_type_long=no | |
16030 | fi | |
ac1cb8d3 | 16031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16032 | fi |
16033 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16034 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16035 | ||
16036 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16037 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16038 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16040 | else | |
16041 | if test "$ac_cv_type_long" = yes; then | |
16042 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16043 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16044 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16045 | # This bug is HP SR number 8606223364. | |
16046 | if test "$cross_compiling" = yes; then | |
16047 | # Depending upon the size, compute the lo and hi bounds. | |
16048 | cat >conftest.$ac_ext <<_ACEOF | |
16049 | /* confdefs.h. */ | |
16050 | _ACEOF | |
16051 | cat confdefs.h >>conftest.$ac_ext | |
16052 | cat >>conftest.$ac_ext <<_ACEOF | |
16053 | /* end confdefs.h. */ | |
16054 | $ac_includes_default | |
16055 | int | |
16056 | main () | |
16057 | { | |
16058 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16059 | test_array [0] = 0 | |
16060 | ||
16061 | ; | |
16062 | return 0; | |
16063 | } | |
16064 | _ACEOF | |
16065 | rm -f conftest.$ac_objext | |
16066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16067 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16068 | ac_status=$? |
ac1cb8d3 VS |
16069 | grep -v '^ *+' conftest.er1 >conftest.err |
16070 | rm -f conftest.er1 | |
16071 | cat conftest.err >&5 | |
a848cd7e SC |
16072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16073 | (exit $ac_status); } && | |
ea7db9ff DE |
16074 | { ac_try='test -z "$ac_c_werror_flag" |
16075 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16077 | (eval $ac_try) 2>&5 | |
16078 | ac_status=$? | |
16079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16080 | (exit $ac_status); }; } && | |
16081 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16083 | (eval $ac_try) 2>&5 | |
16084 | ac_status=$? | |
16085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16086 | (exit $ac_status); }; }; then | |
16087 | ac_lo=0 ac_mid=0 | |
16088 | while :; do | |
16089 | cat >conftest.$ac_ext <<_ACEOF | |
16090 | /* confdefs.h. */ | |
16091 | _ACEOF | |
16092 | cat confdefs.h >>conftest.$ac_ext | |
16093 | cat >>conftest.$ac_ext <<_ACEOF | |
16094 | /* end confdefs.h. */ | |
16095 | $ac_includes_default | |
16096 | int | |
16097 | main () | |
16098 | { | |
16099 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16100 | test_array [0] = 0 | |
16101 | ||
16102 | ; | |
16103 | return 0; | |
16104 | } | |
16105 | _ACEOF | |
16106 | rm -f conftest.$ac_objext | |
16107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16108 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16109 | ac_status=$? |
ac1cb8d3 VS |
16110 | grep -v '^ *+' conftest.er1 >conftest.err |
16111 | rm -f conftest.er1 | |
16112 | cat conftest.err >&5 | |
a848cd7e SC |
16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16114 | (exit $ac_status); } && | |
ea7db9ff DE |
16115 | { ac_try='test -z "$ac_c_werror_flag" |
16116 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16118 | (eval $ac_try) 2>&5 | |
16119 | ac_status=$? | |
16120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16121 | (exit $ac_status); }; } && | |
16122 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16124 | (eval $ac_try) 2>&5 | |
16125 | ac_status=$? | |
16126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16127 | (exit $ac_status); }; }; then | |
16128 | ac_hi=$ac_mid; break | |
16129 | else | |
16130 | echo "$as_me: failed program was:" >&5 | |
16131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16132 | ||
16133 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16134 | if test $ac_lo -le $ac_mid; then |
16135 | ac_lo= ac_hi= | |
16136 | break | |
16137 | fi | |
16138 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16139 | fi |
ac1cb8d3 | 16140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16141 | done |
16142 | else | |
16143 | echo "$as_me: failed program was:" >&5 | |
16144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16145 | ||
16146 | cat >conftest.$ac_ext <<_ACEOF | |
16147 | /* confdefs.h. */ | |
16148 | _ACEOF | |
16149 | cat confdefs.h >>conftest.$ac_ext | |
16150 | cat >>conftest.$ac_ext <<_ACEOF | |
16151 | /* end confdefs.h. */ | |
16152 | $ac_includes_default | |
16153 | int | |
16154 | main () | |
16155 | { | |
16156 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16157 | test_array [0] = 0 | |
16158 | ||
16159 | ; | |
16160 | return 0; | |
16161 | } | |
16162 | _ACEOF | |
16163 | rm -f conftest.$ac_objext | |
16164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16165 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16166 | ac_status=$? |
ac1cb8d3 VS |
16167 | grep -v '^ *+' conftest.er1 >conftest.err |
16168 | rm -f conftest.er1 | |
16169 | cat conftest.err >&5 | |
a848cd7e SC |
16170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16171 | (exit $ac_status); } && | |
ea7db9ff DE |
16172 | { ac_try='test -z "$ac_c_werror_flag" |
16173 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16175 | (eval $ac_try) 2>&5 | |
16176 | ac_status=$? | |
16177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16178 | (exit $ac_status); }; } && | |
16179 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16181 | (eval $ac_try) 2>&5 | |
16182 | ac_status=$? | |
16183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16184 | (exit $ac_status); }; }; then | |
16185 | ac_hi=-1 ac_mid=-1 | |
16186 | while :; do | |
16187 | cat >conftest.$ac_ext <<_ACEOF | |
16188 | /* confdefs.h. */ | |
16189 | _ACEOF | |
16190 | cat confdefs.h >>conftest.$ac_ext | |
16191 | cat >>conftest.$ac_ext <<_ACEOF | |
16192 | /* end confdefs.h. */ | |
16193 | $ac_includes_default | |
16194 | int | |
16195 | main () | |
16196 | { | |
16197 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16198 | test_array [0] = 0 | |
16199 | ||
16200 | ; | |
16201 | return 0; | |
16202 | } | |
16203 | _ACEOF | |
16204 | rm -f conftest.$ac_objext | |
16205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16206 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16207 | ac_status=$? |
ac1cb8d3 VS |
16208 | grep -v '^ *+' conftest.er1 >conftest.err |
16209 | rm -f conftest.er1 | |
16210 | cat conftest.err >&5 | |
a848cd7e SC |
16211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16212 | (exit $ac_status); } && | |
ea7db9ff DE |
16213 | { ac_try='test -z "$ac_c_werror_flag" |
16214 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16216 | (eval $ac_try) 2>&5 | |
16217 | ac_status=$? | |
16218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16219 | (exit $ac_status); }; } && | |
16220 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16222 | (eval $ac_try) 2>&5 | |
16223 | ac_status=$? | |
16224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16225 | (exit $ac_status); }; }; then | |
16226 | ac_lo=$ac_mid; break | |
16227 | else | |
16228 | echo "$as_me: failed program was:" >&5 | |
16229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16230 | ||
16231 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16232 | if test $ac_mid -le $ac_hi; then |
16233 | ac_lo= ac_hi= | |
16234 | break | |
16235 | fi | |
16236 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16237 | fi |
ac1cb8d3 | 16238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16239 | done |
16240 | else | |
16241 | echo "$as_me: failed program was:" >&5 | |
16242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16243 | ||
16244 | ac_lo= ac_hi= | |
16245 | fi | |
ac1cb8d3 | 16246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16247 | fi |
ac1cb8d3 | 16248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16249 | # Binary search between lo and hi bounds. |
16250 | while test "x$ac_lo" != "x$ac_hi"; do | |
16251 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16252 | cat >conftest.$ac_ext <<_ACEOF | |
16253 | /* confdefs.h. */ | |
16254 | _ACEOF | |
16255 | cat confdefs.h >>conftest.$ac_ext | |
16256 | cat >>conftest.$ac_ext <<_ACEOF | |
16257 | /* end confdefs.h. */ | |
16258 | $ac_includes_default | |
16259 | int | |
16260 | main () | |
16261 | { | |
16262 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16263 | test_array [0] = 0 | |
16264 | ||
16265 | ; | |
16266 | return 0; | |
16267 | } | |
16268 | _ACEOF | |
16269 | rm -f conftest.$ac_objext | |
16270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16271 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16272 | ac_status=$? |
ac1cb8d3 VS |
16273 | grep -v '^ *+' conftest.er1 >conftest.err |
16274 | rm -f conftest.er1 | |
16275 | cat conftest.err >&5 | |
a848cd7e SC |
16276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16277 | (exit $ac_status); } && | |
ea7db9ff DE |
16278 | { ac_try='test -z "$ac_c_werror_flag" |
16279 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16281 | (eval $ac_try) 2>&5 | |
16282 | ac_status=$? | |
16283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16284 | (exit $ac_status); }; } && | |
16285 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16287 | (eval $ac_try) 2>&5 | |
16288 | ac_status=$? | |
16289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16290 | (exit $ac_status); }; }; then | |
16291 | ac_hi=$ac_mid | |
16292 | else | |
16293 | echo "$as_me: failed program was:" >&5 | |
16294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16295 | ||
16296 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16297 | fi | |
ac1cb8d3 | 16298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16299 | done |
16300 | case $ac_lo in | |
16301 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16302 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16303 | See \`config.log' for more details." >&5 | |
16304 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16305 | See \`config.log' for more details." >&2;} | |
16306 | { (exit 1); exit 1; }; } ;; | |
16307 | esac | |
16308 | else | |
16309 | if test "$cross_compiling" = yes; then | |
ea7db9ff DE |
16310 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16311 | See \`config.log' for more details." >&5 | |
16312 | echo "$as_me: error: cannot run test program while cross compiling | |
16313 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16314 | { (exit 1); exit 1; }; } |
16315 | else | |
16316 | cat >conftest.$ac_ext <<_ACEOF | |
16317 | /* confdefs.h. */ | |
16318 | _ACEOF | |
16319 | cat confdefs.h >>conftest.$ac_ext | |
16320 | cat >>conftest.$ac_ext <<_ACEOF | |
16321 | /* end confdefs.h. */ | |
16322 | $ac_includes_default | |
16323 | long longval () { return (long) (sizeof (long)); } | |
16324 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16325 | #include <stdio.h> | |
16326 | #include <stdlib.h> | |
16327 | int | |
16328 | main () | |
16329 | { | |
16330 | ||
16331 | FILE *f = fopen ("conftest.val", "w"); | |
16332 | if (! f) | |
16333 | exit (1); | |
16334 | if (((long) (sizeof (long))) < 0) | |
16335 | { | |
16336 | long i = longval (); | |
16337 | if (i != ((long) (sizeof (long)))) | |
16338 | exit (1); | |
16339 | fprintf (f, "%ld\n", i); | |
16340 | } | |
16341 | else | |
16342 | { | |
16343 | unsigned long i = ulongval (); | |
16344 | if (i != ((long) (sizeof (long)))) | |
16345 | exit (1); | |
16346 | fprintf (f, "%lu\n", i); | |
16347 | } | |
16348 | exit (ferror (f) || fclose (f) != 0); | |
16349 | ||
16350 | ; | |
16351 | return 0; | |
16352 | } | |
16353 | _ACEOF | |
16354 | rm -f conftest$ac_exeext | |
16355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16356 | (eval $ac_link) 2>&5 | |
16357 | ac_status=$? | |
16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16359 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16361 | (eval $ac_try) 2>&5 | |
16362 | ac_status=$? | |
16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16364 | (exit $ac_status); }; }; then | |
16365 | ac_cv_sizeof_long=`cat conftest.val` | |
16366 | else | |
16367 | echo "$as_me: program exited with status $ac_status" >&5 | |
16368 | echo "$as_me: failed program was:" >&5 | |
16369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16370 | ||
16371 | ( exit $ac_status ) | |
16372 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16373 | See \`config.log' for more details." >&5 | |
16374 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16375 | See \`config.log' for more details." >&2;} | |
16376 | { (exit 1); exit 1; }; } | |
16377 | fi | |
ac1cb8d3 | 16378 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16379 | fi |
16380 | fi | |
16381 | rm -f conftest.val | |
16382 | else | |
16383 | ac_cv_sizeof_long=0 | |
16384 | fi | |
16385 | fi | |
16386 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16387 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16388 | cat >>confdefs.h <<_ACEOF | |
16389 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16390 | _ACEOF | |
16391 | ||
16392 | ||
16393 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16394 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16395 | if test "${ac_cv_type_size_t+set}" = set; then | |
16396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16397 | else | |
16398 | cat >conftest.$ac_ext <<_ACEOF | |
16399 | /* confdefs.h. */ | |
16400 | _ACEOF | |
16401 | cat confdefs.h >>conftest.$ac_ext | |
16402 | cat >>conftest.$ac_ext <<_ACEOF | |
16403 | /* end confdefs.h. */ | |
16404 | $ac_includes_default | |
16405 | int | |
16406 | main () | |
16407 | { | |
16408 | if ((size_t *) 0) | |
16409 | return 0; | |
16410 | if (sizeof (size_t)) | |
16411 | return 0; | |
16412 | ; | |
16413 | return 0; | |
16414 | } | |
16415 | _ACEOF | |
16416 | rm -f conftest.$ac_objext | |
16417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16418 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16419 | ac_status=$? |
ac1cb8d3 VS |
16420 | grep -v '^ *+' conftest.er1 >conftest.err |
16421 | rm -f conftest.er1 | |
16422 | cat conftest.err >&5 | |
a848cd7e SC |
16423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16424 | (exit $ac_status); } && | |
ea7db9ff DE |
16425 | { ac_try='test -z "$ac_c_werror_flag" |
16426 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16428 | (eval $ac_try) 2>&5 | |
16429 | ac_status=$? | |
16430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16431 | (exit $ac_status); }; } && | |
16432 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16434 | (eval $ac_try) 2>&5 | |
16435 | ac_status=$? | |
16436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16437 | (exit $ac_status); }; }; then | |
16438 | ac_cv_type_size_t=yes | |
16439 | else | |
16440 | echo "$as_me: failed program was:" >&5 | |
16441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16442 | ||
16443 | ac_cv_type_size_t=no | |
16444 | fi | |
ac1cb8d3 | 16445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16446 | fi |
16447 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16448 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16449 | ||
16450 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16451 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16452 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16454 | else | |
16455 | if test "$ac_cv_type_size_t" = yes; then | |
16456 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16457 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16458 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16459 | # This bug is HP SR number 8606223364. | |
16460 | if test "$cross_compiling" = yes; then | |
16461 | # Depending upon the size, compute the lo and hi bounds. | |
16462 | cat >conftest.$ac_ext <<_ACEOF | |
16463 | /* confdefs.h. */ | |
16464 | _ACEOF | |
16465 | cat confdefs.h >>conftest.$ac_ext | |
16466 | cat >>conftest.$ac_ext <<_ACEOF | |
16467 | /* end confdefs.h. */ | |
16468 | $ac_includes_default | |
16469 | int | |
16470 | main () | |
16471 | { | |
16472 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16473 | test_array [0] = 0 | |
16474 | ||
16475 | ; | |
16476 | return 0; | |
16477 | } | |
16478 | _ACEOF | |
16479 | rm -f conftest.$ac_objext | |
16480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16481 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16482 | ac_status=$? |
ac1cb8d3 VS |
16483 | grep -v '^ *+' conftest.er1 >conftest.err |
16484 | rm -f conftest.er1 | |
16485 | cat conftest.err >&5 | |
a848cd7e SC |
16486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16487 | (exit $ac_status); } && | |
ea7db9ff DE |
16488 | { ac_try='test -z "$ac_c_werror_flag" |
16489 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16491 | (eval $ac_try) 2>&5 | |
16492 | ac_status=$? | |
16493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16494 | (exit $ac_status); }; } && | |
16495 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16497 | (eval $ac_try) 2>&5 | |
16498 | ac_status=$? | |
16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16500 | (exit $ac_status); }; }; then | |
16501 | ac_lo=0 ac_mid=0 | |
16502 | while :; do | |
16503 | cat >conftest.$ac_ext <<_ACEOF | |
16504 | /* confdefs.h. */ | |
16505 | _ACEOF | |
16506 | cat confdefs.h >>conftest.$ac_ext | |
16507 | cat >>conftest.$ac_ext <<_ACEOF | |
16508 | /* end confdefs.h. */ | |
16509 | $ac_includes_default | |
16510 | int | |
16511 | main () | |
16512 | { | |
16513 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16514 | test_array [0] = 0 | |
16515 | ||
16516 | ; | |
16517 | return 0; | |
16518 | } | |
16519 | _ACEOF | |
16520 | rm -f conftest.$ac_objext | |
16521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16523 | ac_status=$? |
ac1cb8d3 VS |
16524 | grep -v '^ *+' conftest.er1 >conftest.err |
16525 | rm -f conftest.er1 | |
16526 | cat conftest.err >&5 | |
a848cd7e SC |
16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16528 | (exit $ac_status); } && | |
ea7db9ff DE |
16529 | { ac_try='test -z "$ac_c_werror_flag" |
16530 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16532 | (eval $ac_try) 2>&5 | |
16533 | ac_status=$? | |
16534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16535 | (exit $ac_status); }; } && | |
16536 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16538 | (eval $ac_try) 2>&5 | |
16539 | ac_status=$? | |
16540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16541 | (exit $ac_status); }; }; then | |
16542 | ac_hi=$ac_mid; break | |
16543 | else | |
16544 | echo "$as_me: failed program was:" >&5 | |
16545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16546 | ||
16547 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16548 | if test $ac_lo -le $ac_mid; then |
16549 | ac_lo= ac_hi= | |
16550 | break | |
16551 | fi | |
16552 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16553 | fi |
ac1cb8d3 | 16554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16555 | done |
16556 | else | |
16557 | echo "$as_me: failed program was:" >&5 | |
16558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16559 | ||
16560 | cat >conftest.$ac_ext <<_ACEOF | |
16561 | /* confdefs.h. */ | |
16562 | _ACEOF | |
16563 | cat confdefs.h >>conftest.$ac_ext | |
16564 | cat >>conftest.$ac_ext <<_ACEOF | |
16565 | /* end confdefs.h. */ | |
16566 | $ac_includes_default | |
16567 | int | |
16568 | main () | |
16569 | { | |
16570 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16571 | test_array [0] = 0 | |
16572 | ||
16573 | ; | |
16574 | return 0; | |
16575 | } | |
16576 | _ACEOF | |
16577 | rm -f conftest.$ac_objext | |
16578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16579 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16580 | ac_status=$? |
ac1cb8d3 VS |
16581 | grep -v '^ *+' conftest.er1 >conftest.err |
16582 | rm -f conftest.er1 | |
16583 | cat conftest.err >&5 | |
a848cd7e SC |
16584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16585 | (exit $ac_status); } && | |
ea7db9ff DE |
16586 | { ac_try='test -z "$ac_c_werror_flag" |
16587 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16589 | (eval $ac_try) 2>&5 | |
16590 | ac_status=$? | |
16591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16592 | (exit $ac_status); }; } && | |
16593 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16595 | (eval $ac_try) 2>&5 | |
16596 | ac_status=$? | |
16597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16598 | (exit $ac_status); }; }; then | |
16599 | ac_hi=-1 ac_mid=-1 | |
16600 | while :; do | |
16601 | cat >conftest.$ac_ext <<_ACEOF | |
16602 | /* confdefs.h. */ | |
16603 | _ACEOF | |
16604 | cat confdefs.h >>conftest.$ac_ext | |
16605 | cat >>conftest.$ac_ext <<_ACEOF | |
16606 | /* end confdefs.h. */ | |
16607 | $ac_includes_default | |
16608 | int | |
16609 | main () | |
16610 | { | |
16611 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16612 | test_array [0] = 0 | |
16613 | ||
16614 | ; | |
16615 | return 0; | |
16616 | } | |
16617 | _ACEOF | |
16618 | rm -f conftest.$ac_objext | |
16619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16620 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16621 | ac_status=$? |
ac1cb8d3 VS |
16622 | grep -v '^ *+' conftest.er1 >conftest.err |
16623 | rm -f conftest.er1 | |
16624 | cat conftest.err >&5 | |
a848cd7e SC |
16625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16626 | (exit $ac_status); } && | |
ea7db9ff DE |
16627 | { ac_try='test -z "$ac_c_werror_flag" |
16628 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16630 | (eval $ac_try) 2>&5 | |
16631 | ac_status=$? | |
16632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16633 | (exit $ac_status); }; } && | |
16634 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16636 | (eval $ac_try) 2>&5 | |
16637 | ac_status=$? | |
16638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16639 | (exit $ac_status); }; }; then | |
16640 | ac_lo=$ac_mid; break | |
16641 | else | |
16642 | echo "$as_me: failed program was:" >&5 | |
16643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16644 | ||
16645 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16646 | if test $ac_mid -le $ac_hi; then |
16647 | ac_lo= ac_hi= | |
16648 | break | |
16649 | fi | |
16650 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16651 | fi |
ac1cb8d3 | 16652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16653 | done |
16654 | else | |
16655 | echo "$as_me: failed program was:" >&5 | |
16656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16657 | ||
16658 | ac_lo= ac_hi= | |
16659 | fi | |
ac1cb8d3 | 16660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16661 | fi |
ac1cb8d3 | 16662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16663 | # Binary search between lo and hi bounds. |
16664 | while test "x$ac_lo" != "x$ac_hi"; do | |
16665 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16666 | cat >conftest.$ac_ext <<_ACEOF | |
16667 | /* confdefs.h. */ | |
16668 | _ACEOF | |
16669 | cat confdefs.h >>conftest.$ac_ext | |
16670 | cat >>conftest.$ac_ext <<_ACEOF | |
16671 | /* end confdefs.h. */ | |
16672 | $ac_includes_default | |
16673 | int | |
16674 | main () | |
16675 | { | |
16676 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16677 | test_array [0] = 0 | |
16678 | ||
16679 | ; | |
16680 | return 0; | |
16681 | } | |
16682 | _ACEOF | |
16683 | rm -f conftest.$ac_objext | |
16684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16685 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16686 | ac_status=$? |
ac1cb8d3 VS |
16687 | grep -v '^ *+' conftest.er1 >conftest.err |
16688 | rm -f conftest.er1 | |
16689 | cat conftest.err >&5 | |
a848cd7e SC |
16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16691 | (exit $ac_status); } && | |
ea7db9ff DE |
16692 | { ac_try='test -z "$ac_c_werror_flag" |
16693 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16695 | (eval $ac_try) 2>&5 | |
16696 | ac_status=$? | |
16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16698 | (exit $ac_status); }; } && | |
16699 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16701 | (eval $ac_try) 2>&5 | |
16702 | ac_status=$? | |
16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16704 | (exit $ac_status); }; }; then | |
16705 | ac_hi=$ac_mid | |
16706 | else | |
16707 | echo "$as_me: failed program was:" >&5 | |
16708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16709 | ||
16710 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16711 | fi | |
ac1cb8d3 | 16712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16713 | done |
16714 | case $ac_lo in | |
16715 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16716 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16717 | See \`config.log' for more details." >&5 | |
16718 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16719 | See \`config.log' for more details." >&2;} | |
16720 | { (exit 1); exit 1; }; } ;; | |
16721 | esac | |
16722 | else | |
16723 | if test "$cross_compiling" = yes; then | |
ea7db9ff DE |
16724 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16725 | See \`config.log' for more details." >&5 | |
16726 | echo "$as_me: error: cannot run test program while cross compiling | |
16727 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16728 | { (exit 1); exit 1; }; } |
16729 | else | |
16730 | cat >conftest.$ac_ext <<_ACEOF | |
16731 | /* confdefs.h. */ | |
16732 | _ACEOF | |
16733 | cat confdefs.h >>conftest.$ac_ext | |
16734 | cat >>conftest.$ac_ext <<_ACEOF | |
16735 | /* end confdefs.h. */ | |
16736 | $ac_includes_default | |
16737 | long longval () { return (long) (sizeof (size_t)); } | |
16738 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16739 | #include <stdio.h> | |
16740 | #include <stdlib.h> | |
16741 | int | |
16742 | main () | |
16743 | { | |
16744 | ||
16745 | FILE *f = fopen ("conftest.val", "w"); | |
16746 | if (! f) | |
16747 | exit (1); | |
16748 | if (((long) (sizeof (size_t))) < 0) | |
16749 | { | |
16750 | long i = longval (); | |
16751 | if (i != ((long) (sizeof (size_t)))) | |
16752 | exit (1); | |
16753 | fprintf (f, "%ld\n", i); | |
16754 | } | |
16755 | else | |
16756 | { | |
16757 | unsigned long i = ulongval (); | |
16758 | if (i != ((long) (sizeof (size_t)))) | |
16759 | exit (1); | |
16760 | fprintf (f, "%lu\n", i); | |
16761 | } | |
16762 | exit (ferror (f) || fclose (f) != 0); | |
16763 | ||
16764 | ; | |
16765 | return 0; | |
16766 | } | |
16767 | _ACEOF | |
16768 | rm -f conftest$ac_exeext | |
16769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16770 | (eval $ac_link) 2>&5 | |
16771 | ac_status=$? | |
16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16773 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16775 | (eval $ac_try) 2>&5 | |
16776 | ac_status=$? | |
16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16778 | (exit $ac_status); }; }; then | |
16779 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16780 | else | |
16781 | echo "$as_me: program exited with status $ac_status" >&5 | |
16782 | echo "$as_me: failed program was:" >&5 | |
16783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16784 | ||
16785 | ( exit $ac_status ) | |
16786 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16787 | See \`config.log' for more details." >&5 | |
16788 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16789 | See \`config.log' for more details." >&2;} | |
16790 | { (exit 1); exit 1; }; } | |
16791 | fi | |
ac1cb8d3 | 16792 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16793 | fi |
16794 | fi | |
16795 | rm -f conftest.val | |
16796 | else | |
16797 | ac_cv_sizeof_size_t=0 | |
16798 | fi | |
16799 | fi | |
16800 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16801 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16802 | cat >>confdefs.h <<_ACEOF | |
16803 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16804 | _ACEOF | |
16805 | ||
16806 | ||
16807 | ||
16808 | case "${host}" in | |
16809 | arm-*-linux* ) | |
16810 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16811 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16812 | if test "${ac_cv_type_long_long+set}" = set; then | |
16813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16814 | else | |
16815 | cat >conftest.$ac_ext <<_ACEOF | |
16816 | /* confdefs.h. */ | |
16817 | _ACEOF | |
16818 | cat confdefs.h >>conftest.$ac_ext | |
16819 | cat >>conftest.$ac_ext <<_ACEOF | |
16820 | /* end confdefs.h. */ | |
16821 | $ac_includes_default | |
16822 | int | |
16823 | main () | |
16824 | { | |
16825 | if ((long long *) 0) | |
16826 | return 0; | |
16827 | if (sizeof (long long)) | |
16828 | return 0; | |
16829 | ; | |
16830 | return 0; | |
16831 | } | |
16832 | _ACEOF | |
16833 | rm -f conftest.$ac_objext | |
16834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16835 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16836 | ac_status=$? |
ac1cb8d3 VS |
16837 | grep -v '^ *+' conftest.er1 >conftest.err |
16838 | rm -f conftest.er1 | |
16839 | cat conftest.err >&5 | |
a848cd7e SC |
16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16841 | (exit $ac_status); } && | |
ea7db9ff DE |
16842 | { ac_try='test -z "$ac_c_werror_flag" |
16843 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16845 | (eval $ac_try) 2>&5 | |
16846 | ac_status=$? | |
16847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16848 | (exit $ac_status); }; } && | |
16849 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16851 | (eval $ac_try) 2>&5 | |
16852 | ac_status=$? | |
16853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16854 | (exit $ac_status); }; }; then | |
16855 | ac_cv_type_long_long=yes | |
16856 | else | |
16857 | echo "$as_me: failed program was:" >&5 | |
16858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16859 | ||
16860 | ac_cv_type_long_long=no | |
16861 | fi | |
ac1cb8d3 | 16862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16863 | fi |
16864 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16865 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16866 | ||
16867 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16868 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16869 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16871 | else | |
16872 | if test "$ac_cv_type_long_long" = yes; then | |
16873 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16874 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16875 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16876 | # This bug is HP SR number 8606223364. | |
16877 | if test "$cross_compiling" = yes; then | |
16878 | # Depending upon the size, compute the lo and hi bounds. | |
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))) >= 0)]; | |
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); } && | |
ea7db9ff DE |
16905 | { ac_try='test -z "$ac_c_werror_flag" |
16906 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16908 | (eval $ac_try) 2>&5 | |
16909 | ac_status=$? | |
16910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16911 | (exit $ac_status); }; } && | |
16912 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16914 | (eval $ac_try) 2>&5 | |
16915 | ac_status=$? | |
16916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16917 | (exit $ac_status); }; }; then | |
16918 | ac_lo=0 ac_mid=0 | |
16919 | while :; do | |
16920 | cat >conftest.$ac_ext <<_ACEOF | |
16921 | /* confdefs.h. */ | |
16922 | _ACEOF | |
16923 | cat confdefs.h >>conftest.$ac_ext | |
16924 | cat >>conftest.$ac_ext <<_ACEOF | |
16925 | /* end confdefs.h. */ | |
16926 | $ac_includes_default | |
16927 | int | |
16928 | main () | |
16929 | { | |
16930 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16931 | test_array [0] = 0 | |
16932 | ||
16933 | ; | |
16934 | return 0; | |
16935 | } | |
16936 | _ACEOF | |
16937 | rm -f conftest.$ac_objext | |
16938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16939 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16940 | ac_status=$? |
ac1cb8d3 VS |
16941 | grep -v '^ *+' conftest.er1 >conftest.err |
16942 | rm -f conftest.er1 | |
16943 | cat conftest.err >&5 | |
a848cd7e SC |
16944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16945 | (exit $ac_status); } && | |
ea7db9ff DE |
16946 | { ac_try='test -z "$ac_c_werror_flag" |
16947 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16949 | (eval $ac_try) 2>&5 | |
16950 | ac_status=$? | |
16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16952 | (exit $ac_status); }; } && | |
16953 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16955 | (eval $ac_try) 2>&5 | |
16956 | ac_status=$? | |
16957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16958 | (exit $ac_status); }; }; then | |
16959 | ac_hi=$ac_mid; break | |
16960 | else | |
16961 | echo "$as_me: failed program was:" >&5 | |
16962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16963 | ||
16964 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16965 | if test $ac_lo -le $ac_mid; then |
16966 | ac_lo= ac_hi= | |
16967 | break | |
16968 | fi | |
16969 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16970 | fi |
ac1cb8d3 | 16971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16972 | done |
16973 | else | |
16974 | echo "$as_me: failed program was:" >&5 | |
16975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16976 | ||
16977 | cat >conftest.$ac_ext <<_ACEOF | |
16978 | /* confdefs.h. */ | |
16979 | _ACEOF | |
16980 | cat confdefs.h >>conftest.$ac_ext | |
16981 | cat >>conftest.$ac_ext <<_ACEOF | |
16982 | /* end confdefs.h. */ | |
16983 | $ac_includes_default | |
16984 | int | |
16985 | main () | |
16986 | { | |
16987 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16988 | test_array [0] = 0 | |
16989 | ||
16990 | ; | |
16991 | return 0; | |
16992 | } | |
16993 | _ACEOF | |
16994 | rm -f conftest.$ac_objext | |
16995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16996 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16997 | ac_status=$? |
ac1cb8d3 VS |
16998 | grep -v '^ *+' conftest.er1 >conftest.err |
16999 | rm -f conftest.er1 | |
17000 | cat conftest.err >&5 | |
a848cd7e SC |
17001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17002 | (exit $ac_status); } && | |
ea7db9ff DE |
17003 | { ac_try='test -z "$ac_c_werror_flag" |
17004 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17006 | (eval $ac_try) 2>&5 | |
17007 | ac_status=$? | |
17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17009 | (exit $ac_status); }; } && | |
17010 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17012 | (eval $ac_try) 2>&5 | |
17013 | ac_status=$? | |
17014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17015 | (exit $ac_status); }; }; then | |
17016 | ac_hi=-1 ac_mid=-1 | |
17017 | while :; do | |
17018 | cat >conftest.$ac_ext <<_ACEOF | |
17019 | /* confdefs.h. */ | |
17020 | _ACEOF | |
17021 | cat confdefs.h >>conftest.$ac_ext | |
17022 | cat >>conftest.$ac_ext <<_ACEOF | |
17023 | /* end confdefs.h. */ | |
17024 | $ac_includes_default | |
17025 | int | |
17026 | main () | |
17027 | { | |
17028 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17029 | test_array [0] = 0 | |
17030 | ||
17031 | ; | |
17032 | return 0; | |
17033 | } | |
17034 | _ACEOF | |
17035 | rm -f conftest.$ac_objext | |
17036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17037 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17038 | ac_status=$? |
ac1cb8d3 VS |
17039 | grep -v '^ *+' conftest.er1 >conftest.err |
17040 | rm -f conftest.er1 | |
17041 | cat conftest.err >&5 | |
a848cd7e SC |
17042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17043 | (exit $ac_status); } && | |
ea7db9ff DE |
17044 | { ac_try='test -z "$ac_c_werror_flag" |
17045 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17047 | (eval $ac_try) 2>&5 | |
17048 | ac_status=$? | |
17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17050 | (exit $ac_status); }; } && | |
17051 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17053 | (eval $ac_try) 2>&5 | |
17054 | ac_status=$? | |
17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17056 | (exit $ac_status); }; }; then | |
17057 | ac_lo=$ac_mid; break | |
17058 | else | |
17059 | echo "$as_me: failed program was:" >&5 | |
17060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17061 | ||
17062 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17063 | if test $ac_mid -le $ac_hi; then |
17064 | ac_lo= ac_hi= | |
17065 | break | |
17066 | fi | |
17067 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17068 | fi |
ac1cb8d3 | 17069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17070 | done |
17071 | else | |
17072 | echo "$as_me: failed program was:" >&5 | |
17073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17074 | ||
17075 | ac_lo= ac_hi= | |
17076 | fi | |
ac1cb8d3 | 17077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17078 | fi |
ac1cb8d3 | 17079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17080 | # Binary search between lo and hi bounds. |
17081 | while test "x$ac_lo" != "x$ac_hi"; do | |
17082 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17083 | cat >conftest.$ac_ext <<_ACEOF | |
17084 | /* confdefs.h. */ | |
17085 | _ACEOF | |
17086 | cat confdefs.h >>conftest.$ac_ext | |
17087 | cat >>conftest.$ac_ext <<_ACEOF | |
17088 | /* end confdefs.h. */ | |
17089 | $ac_includes_default | |
17090 | int | |
17091 | main () | |
17092 | { | |
17093 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17094 | test_array [0] = 0 | |
17095 | ||
17096 | ; | |
17097 | return 0; | |
17098 | } | |
17099 | _ACEOF | |
17100 | rm -f conftest.$ac_objext | |
17101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17102 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17103 | ac_status=$? |
ac1cb8d3 VS |
17104 | grep -v '^ *+' conftest.er1 >conftest.err |
17105 | rm -f conftest.er1 | |
17106 | cat conftest.err >&5 | |
a848cd7e SC |
17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17108 | (exit $ac_status); } && | |
ea7db9ff DE |
17109 | { ac_try='test -z "$ac_c_werror_flag" |
17110 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17112 | (eval $ac_try) 2>&5 | |
17113 | ac_status=$? | |
17114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17115 | (exit $ac_status); }; } && | |
17116 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17118 | (eval $ac_try) 2>&5 | |
17119 | ac_status=$? | |
17120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17121 | (exit $ac_status); }; }; then | |
17122 | ac_hi=$ac_mid | |
17123 | else | |
17124 | echo "$as_me: failed program was:" >&5 | |
17125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17126 | ||
17127 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17128 | fi | |
ac1cb8d3 | 17129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17130 | done |
17131 | case $ac_lo in | |
17132 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17133 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17134 | See \`config.log' for more details." >&5 | |
17135 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17136 | See \`config.log' for more details." >&2;} | |
17137 | { (exit 1); exit 1; }; } ;; | |
17138 | esac | |
17139 | else | |
17140 | if test "$cross_compiling" = yes; then | |
ea7db9ff DE |
17141 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17142 | See \`config.log' for more details." >&5 | |
17143 | echo "$as_me: error: cannot run test program while cross compiling | |
17144 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17145 | { (exit 1); exit 1; }; } |
17146 | else | |
17147 | cat >conftest.$ac_ext <<_ACEOF | |
17148 | /* confdefs.h. */ | |
17149 | _ACEOF | |
17150 | cat confdefs.h >>conftest.$ac_ext | |
17151 | cat >>conftest.$ac_ext <<_ACEOF | |
17152 | /* end confdefs.h. */ | |
17153 | $ac_includes_default | |
17154 | long longval () { return (long) (sizeof (long long)); } | |
17155 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17156 | #include <stdio.h> | |
17157 | #include <stdlib.h> | |
17158 | int | |
17159 | main () | |
17160 | { | |
17161 | ||
17162 | FILE *f = fopen ("conftest.val", "w"); | |
17163 | if (! f) | |
17164 | exit (1); | |
17165 | if (((long) (sizeof (long long))) < 0) | |
17166 | { | |
17167 | long i = longval (); | |
17168 | if (i != ((long) (sizeof (long long)))) | |
17169 | exit (1); | |
17170 | fprintf (f, "%ld\n", i); | |
17171 | } | |
17172 | else | |
17173 | { | |
17174 | unsigned long i = ulongval (); | |
17175 | if (i != ((long) (sizeof (long long)))) | |
17176 | exit (1); | |
17177 | fprintf (f, "%lu\n", i); | |
17178 | } | |
17179 | exit (ferror (f) || fclose (f) != 0); | |
17180 | ||
17181 | ; | |
17182 | return 0; | |
17183 | } | |
17184 | _ACEOF | |
17185 | rm -f conftest$ac_exeext | |
17186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17187 | (eval $ac_link) 2>&5 | |
17188 | ac_status=$? | |
17189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17192 | (eval $ac_try) 2>&5 | |
17193 | ac_status=$? | |
17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17195 | (exit $ac_status); }; }; then | |
17196 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17197 | else | |
17198 | echo "$as_me: program exited with status $ac_status" >&5 | |
17199 | echo "$as_me: failed program was:" >&5 | |
17200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17201 | ||
17202 | ( exit $ac_status ) | |
17203 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17204 | See \`config.log' for more details." >&5 | |
17205 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17206 | See \`config.log' for more details." >&2;} | |
17207 | { (exit 1); exit 1; }; } | |
17208 | fi | |
ac1cb8d3 | 17209 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17210 | fi |
17211 | fi | |
17212 | rm -f conftest.val | |
17213 | else | |
17214 | ac_cv_sizeof_long_long=0 | |
17215 | fi | |
17216 | fi | |
17217 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17218 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17219 | cat >>confdefs.h <<_ACEOF | |
17220 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17221 | _ACEOF | |
17222 | ||
17223 | ||
17224 | ;; | |
17225 | *-hp-hpux* ) | |
17226 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17227 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17228 | if test "${ac_cv_type_long_long+set}" = set; then | |
17229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17230 | else | |
17231 | cat >conftest.$ac_ext <<_ACEOF | |
17232 | /* confdefs.h. */ | |
17233 | _ACEOF | |
17234 | cat confdefs.h >>conftest.$ac_ext | |
17235 | cat >>conftest.$ac_ext <<_ACEOF | |
17236 | /* end confdefs.h. */ | |
17237 | $ac_includes_default | |
17238 | int | |
17239 | main () | |
17240 | { | |
17241 | if ((long long *) 0) | |
17242 | return 0; | |
17243 | if (sizeof (long long)) | |
17244 | return 0; | |
17245 | ; | |
17246 | return 0; | |
17247 | } | |
17248 | _ACEOF | |
17249 | rm -f conftest.$ac_objext | |
17250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17252 | ac_status=$? |
ac1cb8d3 VS |
17253 | grep -v '^ *+' conftest.er1 >conftest.err |
17254 | rm -f conftest.er1 | |
17255 | cat conftest.err >&5 | |
a848cd7e SC |
17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17257 | (exit $ac_status); } && | |
ea7db9ff DE |
17258 | { ac_try='test -z "$ac_c_werror_flag" |
17259 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17261 | (eval $ac_try) 2>&5 | |
17262 | ac_status=$? | |
17263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17264 | (exit $ac_status); }; } && | |
17265 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17267 | (eval $ac_try) 2>&5 | |
17268 | ac_status=$? | |
17269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17270 | (exit $ac_status); }; }; then | |
17271 | ac_cv_type_long_long=yes | |
17272 | else | |
17273 | echo "$as_me: failed program was:" >&5 | |
17274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17275 | ||
17276 | ac_cv_type_long_long=no | |
17277 | fi | |
ac1cb8d3 | 17278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17279 | fi |
17280 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17281 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17282 | ||
17283 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17284 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17285 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17287 | else | |
17288 | if test "$ac_cv_type_long_long" = yes; then | |
17289 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17290 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17291 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17292 | # This bug is HP SR number 8606223364. | |
17293 | if test "$cross_compiling" = yes; then | |
17294 | # Depending upon the size, compute the lo and hi bounds. | |
17295 | cat >conftest.$ac_ext <<_ACEOF | |
17296 | /* confdefs.h. */ | |
17297 | _ACEOF | |
17298 | cat confdefs.h >>conftest.$ac_ext | |
17299 | cat >>conftest.$ac_ext <<_ACEOF | |
17300 | /* end confdefs.h. */ | |
17301 | $ac_includes_default | |
17302 | int | |
17303 | main () | |
17304 | { | |
17305 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17306 | test_array [0] = 0 | |
17307 | ||
17308 | ; | |
17309 | return 0; | |
17310 | } | |
17311 | _ACEOF | |
17312 | rm -f conftest.$ac_objext | |
17313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17314 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17315 | ac_status=$? |
ac1cb8d3 VS |
17316 | grep -v '^ *+' conftest.er1 >conftest.err |
17317 | rm -f conftest.er1 | |
17318 | cat conftest.err >&5 | |
a848cd7e SC |
17319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17320 | (exit $ac_status); } && | |
ea7db9ff DE |
17321 | { ac_try='test -z "$ac_c_werror_flag" |
17322 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17324 | (eval $ac_try) 2>&5 | |
17325 | ac_status=$? | |
17326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17327 | (exit $ac_status); }; } && | |
17328 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17330 | (eval $ac_try) 2>&5 | |
17331 | ac_status=$? | |
17332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17333 | (exit $ac_status); }; }; then | |
17334 | ac_lo=0 ac_mid=0 | |
17335 | while :; do | |
17336 | cat >conftest.$ac_ext <<_ACEOF | |
17337 | /* confdefs.h. */ | |
17338 | _ACEOF | |
17339 | cat confdefs.h >>conftest.$ac_ext | |
17340 | cat >>conftest.$ac_ext <<_ACEOF | |
17341 | /* end confdefs.h. */ | |
17342 | $ac_includes_default | |
17343 | int | |
17344 | main () | |
17345 | { | |
17346 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17347 | test_array [0] = 0 | |
17348 | ||
17349 | ; | |
17350 | return 0; | |
17351 | } | |
17352 | _ACEOF | |
17353 | rm -f conftest.$ac_objext | |
17354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17355 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17356 | ac_status=$? |
ac1cb8d3 VS |
17357 | grep -v '^ *+' conftest.er1 >conftest.err |
17358 | rm -f conftest.er1 | |
17359 | cat conftest.err >&5 | |
a848cd7e SC |
17360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17361 | (exit $ac_status); } && | |
ea7db9ff DE |
17362 | { ac_try='test -z "$ac_c_werror_flag" |
17363 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17365 | (eval $ac_try) 2>&5 | |
17366 | ac_status=$? | |
17367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17368 | (exit $ac_status); }; } && | |
17369 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17375 | ac_hi=$ac_mid; break | |
17376 | else | |
17377 | echo "$as_me: failed program was:" >&5 | |
17378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17379 | ||
17380 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17381 | if test $ac_lo -le $ac_mid; then |
17382 | ac_lo= ac_hi= | |
17383 | break | |
17384 | fi | |
17385 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17386 | fi |
ac1cb8d3 | 17387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17388 | done |
17389 | else | |
17390 | echo "$as_me: failed program was:" >&5 | |
17391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17392 | ||
17393 | cat >conftest.$ac_ext <<_ACEOF | |
17394 | /* confdefs.h. */ | |
17395 | _ACEOF | |
17396 | cat confdefs.h >>conftest.$ac_ext | |
17397 | cat >>conftest.$ac_ext <<_ACEOF | |
17398 | /* end confdefs.h. */ | |
17399 | $ac_includes_default | |
17400 | int | |
17401 | main () | |
17402 | { | |
17403 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17404 | test_array [0] = 0 | |
17405 | ||
17406 | ; | |
17407 | return 0; | |
17408 | } | |
17409 | _ACEOF | |
17410 | rm -f conftest.$ac_objext | |
17411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17412 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17413 | ac_status=$? |
ac1cb8d3 VS |
17414 | grep -v '^ *+' conftest.er1 >conftest.err |
17415 | rm -f conftest.er1 | |
17416 | cat conftest.err >&5 | |
a848cd7e SC |
17417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17418 | (exit $ac_status); } && | |
ea7db9ff DE |
17419 | { ac_try='test -z "$ac_c_werror_flag" |
17420 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17422 | (eval $ac_try) 2>&5 | |
17423 | ac_status=$? | |
17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17425 | (exit $ac_status); }; } && | |
17426 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17428 | (eval $ac_try) 2>&5 | |
17429 | ac_status=$? | |
17430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17431 | (exit $ac_status); }; }; then | |
17432 | ac_hi=-1 ac_mid=-1 | |
17433 | while :; do | |
17434 | cat >conftest.$ac_ext <<_ACEOF | |
17435 | /* confdefs.h. */ | |
17436 | _ACEOF | |
17437 | cat confdefs.h >>conftest.$ac_ext | |
17438 | cat >>conftest.$ac_ext <<_ACEOF | |
17439 | /* end confdefs.h. */ | |
17440 | $ac_includes_default | |
17441 | int | |
17442 | main () | |
17443 | { | |
17444 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17445 | test_array [0] = 0 | |
17446 | ||
17447 | ; | |
17448 | return 0; | |
17449 | } | |
17450 | _ACEOF | |
17451 | rm -f conftest.$ac_objext | |
17452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17453 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17454 | ac_status=$? |
ac1cb8d3 VS |
17455 | grep -v '^ *+' conftest.er1 >conftest.err |
17456 | rm -f conftest.er1 | |
17457 | cat conftest.err >&5 | |
a848cd7e SC |
17458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17459 | (exit $ac_status); } && | |
ea7db9ff DE |
17460 | { ac_try='test -z "$ac_c_werror_flag" |
17461 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17463 | (eval $ac_try) 2>&5 | |
17464 | ac_status=$? | |
17465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17466 | (exit $ac_status); }; } && | |
17467 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17469 | (eval $ac_try) 2>&5 | |
17470 | ac_status=$? | |
17471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17472 | (exit $ac_status); }; }; then | |
17473 | ac_lo=$ac_mid; break | |
17474 | else | |
17475 | echo "$as_me: failed program was:" >&5 | |
17476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17477 | ||
17478 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17479 | if test $ac_mid -le $ac_hi; then |
17480 | ac_lo= ac_hi= | |
17481 | break | |
17482 | fi | |
17483 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17484 | fi |
ac1cb8d3 | 17485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17486 | done |
17487 | else | |
17488 | echo "$as_me: failed program was:" >&5 | |
17489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17490 | ||
17491 | ac_lo= ac_hi= | |
17492 | fi | |
ac1cb8d3 | 17493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17494 | fi |
ac1cb8d3 | 17495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17496 | # Binary search between lo and hi bounds. |
17497 | while test "x$ac_lo" != "x$ac_hi"; do | |
17498 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17499 | cat >conftest.$ac_ext <<_ACEOF | |
17500 | /* confdefs.h. */ | |
17501 | _ACEOF | |
17502 | cat confdefs.h >>conftest.$ac_ext | |
17503 | cat >>conftest.$ac_ext <<_ACEOF | |
17504 | /* end confdefs.h. */ | |
17505 | $ac_includes_default | |
17506 | int | |
17507 | main () | |
17508 | { | |
17509 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17510 | test_array [0] = 0 | |
17511 | ||
17512 | ; | |
17513 | return 0; | |
17514 | } | |
17515 | _ACEOF | |
17516 | rm -f conftest.$ac_objext | |
17517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17518 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17519 | ac_status=$? |
ac1cb8d3 VS |
17520 | grep -v '^ *+' conftest.er1 >conftest.err |
17521 | rm -f conftest.er1 | |
17522 | cat conftest.err >&5 | |
a848cd7e SC |
17523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17524 | (exit $ac_status); } && | |
ea7db9ff DE |
17525 | { ac_try='test -z "$ac_c_werror_flag" |
17526 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17528 | (eval $ac_try) 2>&5 | |
17529 | ac_status=$? | |
17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17531 | (exit $ac_status); }; } && | |
17532 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17534 | (eval $ac_try) 2>&5 | |
17535 | ac_status=$? | |
17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17537 | (exit $ac_status); }; }; then | |
17538 | ac_hi=$ac_mid | |
17539 | else | |
17540 | echo "$as_me: failed program was:" >&5 | |
17541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17542 | ||
17543 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17544 | fi | |
ac1cb8d3 | 17545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17546 | done |
17547 | case $ac_lo in | |
17548 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17549 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17550 | See \`config.log' for more details." >&5 | |
17551 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17552 | See \`config.log' for more details." >&2;} | |
17553 | { (exit 1); exit 1; }; } ;; | |
17554 | esac | |
17555 | else | |
17556 | if test "$cross_compiling" = yes; then | |
ea7db9ff DE |
17557 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17558 | See \`config.log' for more details." >&5 | |
17559 | echo "$as_me: error: cannot run test program while cross compiling | |
17560 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17561 | { (exit 1); exit 1; }; } |
17562 | else | |
17563 | cat >conftest.$ac_ext <<_ACEOF | |
17564 | /* confdefs.h. */ | |
17565 | _ACEOF | |
17566 | cat confdefs.h >>conftest.$ac_ext | |
17567 | cat >>conftest.$ac_ext <<_ACEOF | |
17568 | /* end confdefs.h. */ | |
17569 | $ac_includes_default | |
17570 | long longval () { return (long) (sizeof (long long)); } | |
17571 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17572 | #include <stdio.h> | |
17573 | #include <stdlib.h> | |
17574 | int | |
17575 | main () | |
17576 | { | |
17577 | ||
17578 | FILE *f = fopen ("conftest.val", "w"); | |
17579 | if (! f) | |
17580 | exit (1); | |
17581 | if (((long) (sizeof (long long))) < 0) | |
17582 | { | |
17583 | long i = longval (); | |
17584 | if (i != ((long) (sizeof (long long)))) | |
17585 | exit (1); | |
17586 | fprintf (f, "%ld\n", i); | |
17587 | } | |
17588 | else | |
17589 | { | |
17590 | unsigned long i = ulongval (); | |
17591 | if (i != ((long) (sizeof (long long)))) | |
17592 | exit (1); | |
17593 | fprintf (f, "%lu\n", i); | |
17594 | } | |
17595 | exit (ferror (f) || fclose (f) != 0); | |
17596 | ||
17597 | ; | |
17598 | return 0; | |
17599 | } | |
17600 | _ACEOF | |
17601 | rm -f conftest$ac_exeext | |
17602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17603 | (eval $ac_link) 2>&5 | |
17604 | ac_status=$? | |
17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17608 | (eval $ac_try) 2>&5 | |
17609 | ac_status=$? | |
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17611 | (exit $ac_status); }; }; then | |
17612 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17613 | else | |
17614 | echo "$as_me: program exited with status $ac_status" >&5 | |
17615 | echo "$as_me: failed program was:" >&5 | |
17616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17617 | ||
17618 | ( exit $ac_status ) | |
17619 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17620 | See \`config.log' for more details." >&5 | |
17621 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17622 | See \`config.log' for more details." >&2;} | |
17623 | { (exit 1); exit 1; }; } | |
17624 | fi | |
ac1cb8d3 | 17625 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17626 | fi |
17627 | fi | |
17628 | rm -f conftest.val | |
17629 | else | |
17630 | ac_cv_sizeof_long_long=0 | |
17631 | fi | |
17632 | fi | |
17633 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17634 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17635 | cat >>confdefs.h <<_ACEOF | |
17636 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17637 | _ACEOF | |
17638 | ||
17639 | ||
17640 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17641 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17642 | fi | |
17643 | ;; | |
17644 | * ) | |
17645 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17646 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17647 | if test "${ac_cv_type_long_long+set}" = set; then | |
17648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17649 | else | |
17650 | cat >conftest.$ac_ext <<_ACEOF | |
17651 | /* confdefs.h. */ | |
17652 | _ACEOF | |
17653 | cat confdefs.h >>conftest.$ac_ext | |
17654 | cat >>conftest.$ac_ext <<_ACEOF | |
17655 | /* end confdefs.h. */ | |
17656 | $ac_includes_default | |
17657 | int | |
17658 | main () | |
17659 | { | |
17660 | if ((long long *) 0) | |
17661 | return 0; | |
17662 | if (sizeof (long long)) | |
17663 | return 0; | |
17664 | ; | |
17665 | return 0; | |
17666 | } | |
17667 | _ACEOF | |
17668 | rm -f conftest.$ac_objext | |
17669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17670 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17671 | ac_status=$? |
ac1cb8d3 VS |
17672 | grep -v '^ *+' conftest.er1 >conftest.err |
17673 | rm -f conftest.er1 | |
17674 | cat conftest.err >&5 | |
a848cd7e SC |
17675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17676 | (exit $ac_status); } && | |
ea7db9ff DE |
17677 | { ac_try='test -z "$ac_c_werror_flag" |
17678 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17680 | (eval $ac_try) 2>&5 | |
17681 | ac_status=$? | |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17683 | (exit $ac_status); }; } && | |
17684 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17686 | (eval $ac_try) 2>&5 | |
17687 | ac_status=$? | |
17688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17689 | (exit $ac_status); }; }; then | |
17690 | ac_cv_type_long_long=yes | |
17691 | else | |
17692 | echo "$as_me: failed program was:" >&5 | |
17693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17694 | ||
17695 | ac_cv_type_long_long=no | |
17696 | fi | |
ac1cb8d3 | 17697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17698 | fi |
17699 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17700 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17701 | ||
17702 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17703 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17704 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17706 | else | |
17707 | if test "$ac_cv_type_long_long" = yes; then | |
17708 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17709 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17710 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17711 | # This bug is HP SR number 8606223364. | |
17712 | if test "$cross_compiling" = yes; then | |
17713 | # Depending upon the size, compute the lo and hi bounds. | |
17714 | cat >conftest.$ac_ext <<_ACEOF | |
17715 | /* confdefs.h. */ | |
17716 | _ACEOF | |
17717 | cat confdefs.h >>conftest.$ac_ext | |
17718 | cat >>conftest.$ac_ext <<_ACEOF | |
17719 | /* end confdefs.h. */ | |
17720 | $ac_includes_default | |
17721 | int | |
17722 | main () | |
17723 | { | |
17724 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17725 | test_array [0] = 0 | |
17726 | ||
17727 | ; | |
17728 | return 0; | |
17729 | } | |
17730 | _ACEOF | |
17731 | rm -f conftest.$ac_objext | |
17732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17733 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17734 | ac_status=$? |
ac1cb8d3 VS |
17735 | grep -v '^ *+' conftest.er1 >conftest.err |
17736 | rm -f conftest.er1 | |
17737 | cat conftest.err >&5 | |
a848cd7e SC |
17738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17739 | (exit $ac_status); } && | |
ea7db9ff DE |
17740 | { ac_try='test -z "$ac_c_werror_flag" |
17741 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17743 | (eval $ac_try) 2>&5 | |
17744 | ac_status=$? | |
17745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17746 | (exit $ac_status); }; } && | |
17747 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17749 | (eval $ac_try) 2>&5 | |
17750 | ac_status=$? | |
17751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17752 | (exit $ac_status); }; }; then | |
17753 | ac_lo=0 ac_mid=0 | |
17754 | while :; do | |
17755 | cat >conftest.$ac_ext <<_ACEOF | |
17756 | /* confdefs.h. */ | |
17757 | _ACEOF | |
17758 | cat confdefs.h >>conftest.$ac_ext | |
17759 | cat >>conftest.$ac_ext <<_ACEOF | |
17760 | /* end confdefs.h. */ | |
17761 | $ac_includes_default | |
17762 | int | |
17763 | main () | |
17764 | { | |
17765 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17766 | test_array [0] = 0 | |
17767 | ||
17768 | ; | |
17769 | return 0; | |
17770 | } | |
17771 | _ACEOF | |
17772 | rm -f conftest.$ac_objext | |
17773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17774 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17775 | ac_status=$? |
ac1cb8d3 VS |
17776 | grep -v '^ *+' conftest.er1 >conftest.err |
17777 | rm -f conftest.er1 | |
17778 | cat conftest.err >&5 | |
a848cd7e SC |
17779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17780 | (exit $ac_status); } && | |
ea7db9ff DE |
17781 | { ac_try='test -z "$ac_c_werror_flag" |
17782 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17784 | (eval $ac_try) 2>&5 | |
17785 | ac_status=$? | |
17786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17787 | (exit $ac_status); }; } && | |
17788 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17790 | (eval $ac_try) 2>&5 | |
17791 | ac_status=$? | |
17792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17793 | (exit $ac_status); }; }; then | |
17794 | ac_hi=$ac_mid; break | |
17795 | else | |
17796 | echo "$as_me: failed program was:" >&5 | |
17797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17798 | ||
17799 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17800 | if test $ac_lo -le $ac_mid; then |
17801 | ac_lo= ac_hi= | |
17802 | break | |
17803 | fi | |
17804 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17805 | fi |
ac1cb8d3 | 17806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17807 | done |
17808 | else | |
17809 | echo "$as_me: failed program was:" >&5 | |
17810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17811 | ||
17812 | cat >conftest.$ac_ext <<_ACEOF | |
17813 | /* confdefs.h. */ | |
17814 | _ACEOF | |
17815 | cat confdefs.h >>conftest.$ac_ext | |
17816 | cat >>conftest.$ac_ext <<_ACEOF | |
17817 | /* end confdefs.h. */ | |
17818 | $ac_includes_default | |
17819 | int | |
17820 | main () | |
17821 | { | |
17822 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17823 | test_array [0] = 0 | |
17824 | ||
17825 | ; | |
17826 | return 0; | |
17827 | } | |
17828 | _ACEOF | |
17829 | rm -f conftest.$ac_objext | |
17830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17831 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17832 | ac_status=$? |
ac1cb8d3 VS |
17833 | grep -v '^ *+' conftest.er1 >conftest.err |
17834 | rm -f conftest.er1 | |
17835 | cat conftest.err >&5 | |
a848cd7e SC |
17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17837 | (exit $ac_status); } && | |
ea7db9ff DE |
17838 | { ac_try='test -z "$ac_c_werror_flag" |
17839 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17841 | (eval $ac_try) 2>&5 | |
17842 | ac_status=$? | |
17843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17844 | (exit $ac_status); }; } && | |
17845 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17847 | (eval $ac_try) 2>&5 | |
17848 | ac_status=$? | |
17849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17850 | (exit $ac_status); }; }; then | |
17851 | ac_hi=-1 ac_mid=-1 | |
17852 | while :; do | |
17853 | cat >conftest.$ac_ext <<_ACEOF | |
17854 | /* confdefs.h. */ | |
17855 | _ACEOF | |
17856 | cat confdefs.h >>conftest.$ac_ext | |
17857 | cat >>conftest.$ac_ext <<_ACEOF | |
17858 | /* end confdefs.h. */ | |
17859 | $ac_includes_default | |
17860 | int | |
17861 | main () | |
17862 | { | |
17863 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17864 | test_array [0] = 0 | |
17865 | ||
17866 | ; | |
17867 | return 0; | |
17868 | } | |
17869 | _ACEOF | |
17870 | rm -f conftest.$ac_objext | |
17871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17872 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17873 | ac_status=$? |
ac1cb8d3 VS |
17874 | grep -v '^ *+' conftest.er1 >conftest.err |
17875 | rm -f conftest.er1 | |
17876 | cat conftest.err >&5 | |
a848cd7e SC |
17877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17878 | (exit $ac_status); } && | |
ea7db9ff DE |
17879 | { ac_try='test -z "$ac_c_werror_flag" |
17880 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17882 | (eval $ac_try) 2>&5 | |
17883 | ac_status=$? | |
17884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17885 | (exit $ac_status); }; } && | |
17886 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17888 | (eval $ac_try) 2>&5 | |
17889 | ac_status=$? | |
17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17891 | (exit $ac_status); }; }; then | |
17892 | ac_lo=$ac_mid; break | |
17893 | else | |
17894 | echo "$as_me: failed program was:" >&5 | |
17895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17896 | ||
17897 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17898 | if test $ac_mid -le $ac_hi; then |
17899 | ac_lo= ac_hi= | |
17900 | break | |
17901 | fi | |
17902 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17903 | fi |
ac1cb8d3 | 17904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17905 | done |
17906 | else | |
17907 | echo "$as_me: failed program was:" >&5 | |
17908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17909 | ||
17910 | ac_lo= ac_hi= | |
17911 | fi | |
ac1cb8d3 | 17912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17913 | fi |
ac1cb8d3 | 17914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17915 | # Binary search between lo and hi bounds. |
17916 | while test "x$ac_lo" != "x$ac_hi"; do | |
17917 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17918 | cat >conftest.$ac_ext <<_ACEOF | |
17919 | /* confdefs.h. */ | |
17920 | _ACEOF | |
17921 | cat confdefs.h >>conftest.$ac_ext | |
17922 | cat >>conftest.$ac_ext <<_ACEOF | |
17923 | /* end confdefs.h. */ | |
17924 | $ac_includes_default | |
17925 | int | |
17926 | main () | |
17927 | { | |
17928 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17929 | test_array [0] = 0 | |
17930 | ||
17931 | ; | |
17932 | return 0; | |
17933 | } | |
17934 | _ACEOF | |
17935 | rm -f conftest.$ac_objext | |
17936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17937 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17938 | ac_status=$? |
ac1cb8d3 VS |
17939 | grep -v '^ *+' conftest.er1 >conftest.err |
17940 | rm -f conftest.er1 | |
17941 | cat conftest.err >&5 | |
a848cd7e SC |
17942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17943 | (exit $ac_status); } && | |
ea7db9ff DE |
17944 | { ac_try='test -z "$ac_c_werror_flag" |
17945 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17947 | (eval $ac_try) 2>&5 | |
17948 | ac_status=$? | |
17949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17950 | (exit $ac_status); }; } && | |
17951 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17953 | (eval $ac_try) 2>&5 | |
17954 | ac_status=$? | |
17955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17956 | (exit $ac_status); }; }; then | |
17957 | ac_hi=$ac_mid | |
17958 | else | |
17959 | echo "$as_me: failed program was:" >&5 | |
17960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17961 | ||
17962 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17963 | fi | |
ac1cb8d3 | 17964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17965 | done |
17966 | case $ac_lo in | |
17967 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17968 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17969 | See \`config.log' for more details." >&5 | |
17970 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17971 | See \`config.log' for more details." >&2;} | |
17972 | { (exit 1); exit 1; }; } ;; | |
17973 | esac | |
17974 | else | |
17975 | if test "$cross_compiling" = yes; then | |
ea7db9ff DE |
17976 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17977 | See \`config.log' for more details." >&5 | |
17978 | echo "$as_me: error: cannot run test program while cross compiling | |
17979 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17980 | { (exit 1); exit 1; }; } |
17981 | else | |
17982 | cat >conftest.$ac_ext <<_ACEOF | |
17983 | /* confdefs.h. */ | |
17984 | _ACEOF | |
17985 | cat confdefs.h >>conftest.$ac_ext | |
17986 | cat >>conftest.$ac_ext <<_ACEOF | |
17987 | /* end confdefs.h. */ | |
17988 | $ac_includes_default | |
17989 | long longval () { return (long) (sizeof (long long)); } | |
17990 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17991 | #include <stdio.h> | |
17992 | #include <stdlib.h> | |
17993 | int | |
17994 | main () | |
17995 | { | |
17996 | ||
17997 | FILE *f = fopen ("conftest.val", "w"); | |
17998 | if (! f) | |
17999 | exit (1); | |
18000 | if (((long) (sizeof (long long))) < 0) | |
18001 | { | |
18002 | long i = longval (); | |
18003 | if (i != ((long) (sizeof (long long)))) | |
18004 | exit (1); | |
18005 | fprintf (f, "%ld\n", i); | |
18006 | } | |
18007 | else | |
18008 | { | |
18009 | unsigned long i = ulongval (); | |
18010 | if (i != ((long) (sizeof (long long)))) | |
18011 | exit (1); | |
18012 | fprintf (f, "%lu\n", i); | |
18013 | } | |
18014 | exit (ferror (f) || fclose (f) != 0); | |
18015 | ||
18016 | ; | |
18017 | return 0; | |
18018 | } | |
18019 | _ACEOF | |
18020 | rm -f conftest$ac_exeext | |
18021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18022 | (eval $ac_link) 2>&5 | |
18023 | ac_status=$? | |
18024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18025 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18027 | (eval $ac_try) 2>&5 | |
18028 | ac_status=$? | |
18029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18030 | (exit $ac_status); }; }; then | |
18031 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18032 | else | |
18033 | echo "$as_me: program exited with status $ac_status" >&5 | |
18034 | echo "$as_me: failed program was:" >&5 | |
18035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18036 | ||
18037 | ( exit $ac_status ) | |
18038 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18039 | See \`config.log' for more details." >&5 | |
18040 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18041 | See \`config.log' for more details." >&2;} | |
18042 | { (exit 1); exit 1; }; } | |
18043 | fi | |
ac1cb8d3 | 18044 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18045 | fi |
18046 | fi | |
18047 | rm -f conftest.val | |
18048 | else | |
18049 | ac_cv_sizeof_long_long=0 | |
18050 | fi | |
18051 | fi | |
18052 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18053 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18054 | cat >>confdefs.h <<_ACEOF | |
18055 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18056 | _ACEOF | |
18057 | ||
18058 | ||
18059 | esac | |
18060 | ||
18061 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18062 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18063 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18065 | else | |
18066 | ||
18067 | if test "$cross_compiling" = yes; then | |
18068 | ||
18069 | case "${host}" in | |
18070 | *-pc-msdosdjgpp ) | |
18071 | wx_cv_sizeof_wchar_t=0 | |
18072 | ;; | |
18073 | * ) | |
18074 | wx_cv_sizeof_wchar_t=4 | |
18075 | ;; | |
18076 | esac | |
18077 | ||
18078 | ||
18079 | else | |
18080 | cat >conftest.$ac_ext <<_ACEOF | |
18081 | /* confdefs.h. */ | |
18082 | _ACEOF | |
18083 | cat confdefs.h >>conftest.$ac_ext | |
18084 | cat >>conftest.$ac_ext <<_ACEOF | |
18085 | /* end confdefs.h. */ | |
18086 | ||
18087 | /* DJGPP only has fake wchar_t: */ | |
18088 | #ifdef __DJGPP__ | |
18089 | # error "fake wchar_t" | |
18090 | #endif | |
18091 | #ifdef HAVE_WCHAR_H | |
18092 | # ifdef __CYGWIN__ | |
18093 | # include <stddef.h> | |
18094 | # endif | |
18095 | # include <wchar.h> | |
18096 | #endif | |
18097 | #ifdef HAVE_STDLIB_H | |
18098 | # include <stdlib.h> | |
18099 | #endif | |
18100 | #include <stdio.h> | |
18101 | int main() | |
18102 | { | |
18103 | FILE *f=fopen("conftestval", "w"); | |
18104 | if (!f) exit(1); | |
18105 | fprintf(f, "%i", sizeof(wchar_t)); | |
18106 | exit(0); | |
18107 | } | |
18108 | ||
18109 | _ACEOF | |
18110 | rm -f conftest$ac_exeext | |
18111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18112 | (eval $ac_link) 2>&5 | |
18113 | ac_status=$? | |
18114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18115 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18117 | (eval $ac_try) 2>&5 | |
18118 | ac_status=$? | |
18119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18120 | (exit $ac_status); }; }; then | |
18121 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18122 | else | |
18123 | echo "$as_me: program exited with status $ac_status" >&5 | |
18124 | echo "$as_me: failed program was:" >&5 | |
18125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18126 | ||
18127 | ( exit $ac_status ) | |
18128 | wx_cv_sizeof_wchar_t=0 | |
18129 | fi | |
ac1cb8d3 | 18130 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18131 | fi |
18132 | ||
18133 | fi | |
18134 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18135 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18136 | ||
18137 | cat >>confdefs.h <<_ACEOF | |
18138 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18139 | _ACEOF | |
18140 | ||
18141 | ||
18142 | # Check whether --enable-largefile or --disable-largefile was given. | |
18143 | if test "${enable_largefile+set}" = set; then | |
18144 | enableval="$enable_largefile" | |
18145 | ||
18146 | fi; | |
18147 | if test "$enable_largefile" != no; then | |
18148 | wx_largefile=no | |
18149 | ||
18150 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18151 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18152 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18154 | else | |
18155 | ||
18156 | cat >conftest.$ac_ext <<_ACEOF | |
18157 | /* confdefs.h. */ | |
18158 | _ACEOF | |
18159 | cat confdefs.h >>conftest.$ac_ext | |
18160 | cat >>conftest.$ac_ext <<_ACEOF | |
18161 | /* end confdefs.h. */ | |
18162 | #define _FILE_OFFSET_BITS 64 | |
18163 | #include <sys/types.h> | |
18164 | int | |
18165 | main () | |
18166 | { | |
18167 | typedef struct { | |
18168 | unsigned int field: sizeof(off_t) == 8; | |
18169 | } wxlf; | |
18170 | ||
18171 | ; | |
18172 | return 0; | |
18173 | } | |
18174 | _ACEOF | |
18175 | rm -f conftest.$ac_objext | |
18176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18177 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18178 | ac_status=$? |
ac1cb8d3 VS |
18179 | grep -v '^ *+' conftest.er1 >conftest.err |
18180 | rm -f conftest.er1 | |
18181 | cat conftest.err >&5 | |
a848cd7e SC |
18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18183 | (exit $ac_status); } && | |
ea7db9ff DE |
18184 | { ac_try='test -z "$ac_c_werror_flag" |
18185 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18187 | (eval $ac_try) 2>&5 | |
18188 | ac_status=$? | |
18189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18190 | (exit $ac_status); }; } && | |
18191 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18197 | ac_cv_sys_file_offset_bits=64 | |
18198 | else | |
18199 | echo "$as_me: failed program was:" >&5 | |
18200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18201 | ||
18202 | ac_cv_sys_file_offset_bits=no | |
18203 | fi | |
ac1cb8d3 | 18204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18205 | |
18206 | ||
18207 | fi | |
18208 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18209 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18210 | ||
18211 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18212 | wx_largefile=yes | |
18213 | cat >>confdefs.h <<_ACEOF | |
18214 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18215 | _ACEOF | |
18216 | ||
18217 | fi | |
18218 | ||
18219 | if test "x$wx_largefile" != "xyes"; then | |
18220 | ||
18221 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18222 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18223 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18225 | else | |
18226 | ||
18227 | cat >conftest.$ac_ext <<_ACEOF | |
18228 | /* confdefs.h. */ | |
18229 | _ACEOF | |
18230 | cat confdefs.h >>conftest.$ac_ext | |
18231 | cat >>conftest.$ac_ext <<_ACEOF | |
18232 | /* end confdefs.h. */ | |
18233 | #define _LARGE_FILES 1 | |
18234 | #include <sys/types.h> | |
18235 | int | |
18236 | main () | |
18237 | { | |
18238 | typedef struct { | |
18239 | unsigned int field: sizeof(off_t) == 8; | |
18240 | } wxlf; | |
18241 | ||
18242 | ; | |
18243 | return 0; | |
18244 | } | |
18245 | _ACEOF | |
18246 | rm -f conftest.$ac_objext | |
18247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18248 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18249 | ac_status=$? |
ac1cb8d3 VS |
18250 | grep -v '^ *+' conftest.er1 >conftest.err |
18251 | rm -f conftest.er1 | |
18252 | cat conftest.err >&5 | |
a848cd7e SC |
18253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18254 | (exit $ac_status); } && | |
ea7db9ff DE |
18255 | { ac_try='test -z "$ac_c_werror_flag" |
18256 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18258 | (eval $ac_try) 2>&5 | |
18259 | ac_status=$? | |
18260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18261 | (exit $ac_status); }; } && | |
18262 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18264 | (eval $ac_try) 2>&5 | |
18265 | ac_status=$? | |
18266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18267 | (exit $ac_status); }; }; then | |
18268 | ac_cv_sys_large_files=1 | |
18269 | else | |
18270 | echo "$as_me: failed program was:" >&5 | |
18271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18272 | ||
18273 | ac_cv_sys_large_files=no | |
18274 | fi | |
ac1cb8d3 | 18275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18276 | |
18277 | ||
18278 | fi | |
18279 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18280 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18281 | ||
18282 | if test "$ac_cv_sys_large_files" != no; then | |
18283 | wx_largefile=yes | |
18284 | cat >>confdefs.h <<_ACEOF | |
18285 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18286 | _ACEOF | |
18287 | ||
18288 | fi | |
18289 | ||
18290 | fi | |
18291 | ||
18292 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18293 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18294 | if test "x$wx_largefile" = "xyes"; then | |
18295 | cat >>confdefs.h <<\_ACEOF | |
18296 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18297 | _ACEOF | |
18298 | ||
18299 | fi | |
18300 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18301 | echo "${ECHO_T}$wx_largefile" >&6 | |
18302 | fi | |
18303 | ||
18304 | ||
18305 | if test "x$wx_largefile" = "xyes"; then | |
18306 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18307 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18308 | else | |
18309 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18310 | fi | |
18311 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18312 | fi | |
18313 | ||
18314 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18315 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18316 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18318 | else | |
18319 | ac_cv_c_bigendian=unknown | |
18320 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18321 | cat >conftest.$ac_ext <<_ACEOF | |
18322 | /* confdefs.h. */ | |
18323 | _ACEOF | |
18324 | cat confdefs.h >>conftest.$ac_ext | |
18325 | cat >>conftest.$ac_ext <<_ACEOF | |
18326 | /* end confdefs.h. */ | |
18327 | #include <sys/types.h> | |
18328 | #include <sys/param.h> | |
18329 | int | |
18330 | main () | |
18331 | { | |
18332 | ||
18333 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18334 | bogus endian macros | |
18335 | #endif | |
18336 | ; | |
18337 | return 0; | |
18338 | } | |
18339 | _ACEOF | |
18340 | rm -f conftest.$ac_objext | |
18341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18342 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18343 | ac_status=$? |
ac1cb8d3 VS |
18344 | grep -v '^ *+' conftest.er1 >conftest.err |
18345 | rm -f conftest.er1 | |
18346 | cat conftest.err >&5 | |
a848cd7e SC |
18347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18348 | (exit $ac_status); } && | |
ea7db9ff DE |
18349 | { ac_try='test -z "$ac_c_werror_flag" |
18350 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18352 | (eval $ac_try) 2>&5 | |
18353 | ac_status=$? | |
18354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18355 | (exit $ac_status); }; } && | |
18356 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18358 | (eval $ac_try) 2>&5 | |
18359 | ac_status=$? | |
18360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18361 | (exit $ac_status); }; }; then | |
18362 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18363 | cat >conftest.$ac_ext <<_ACEOF | |
18364 | /* confdefs.h. */ | |
18365 | _ACEOF | |
18366 | cat confdefs.h >>conftest.$ac_ext | |
18367 | cat >>conftest.$ac_ext <<_ACEOF | |
18368 | /* end confdefs.h. */ | |
18369 | #include <sys/types.h> | |
18370 | #include <sys/param.h> | |
18371 | int | |
18372 | main () | |
18373 | { | |
18374 | ||
18375 | #if BYTE_ORDER != BIG_ENDIAN | |
18376 | not big endian | |
18377 | #endif | |
18378 | ; | |
18379 | return 0; | |
18380 | } | |
18381 | _ACEOF | |
18382 | rm -f conftest.$ac_objext | |
18383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18384 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18385 | ac_status=$? |
ac1cb8d3 VS |
18386 | grep -v '^ *+' conftest.er1 >conftest.err |
18387 | rm -f conftest.er1 | |
18388 | cat conftest.err >&5 | |
a848cd7e SC |
18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18390 | (exit $ac_status); } && | |
ea7db9ff DE |
18391 | { ac_try='test -z "$ac_c_werror_flag" |
18392 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18394 | (eval $ac_try) 2>&5 | |
18395 | ac_status=$? | |
18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18397 | (exit $ac_status); }; } && | |
18398 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18400 | (eval $ac_try) 2>&5 | |
18401 | ac_status=$? | |
18402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18403 | (exit $ac_status); }; }; then | |
18404 | ac_cv_c_bigendian=yes | |
18405 | else | |
18406 | echo "$as_me: failed program was:" >&5 | |
18407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18408 | ||
18409 | ac_cv_c_bigendian=no | |
18410 | fi | |
ac1cb8d3 | 18411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18412 | else |
18413 | echo "$as_me: failed program was:" >&5 | |
18414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18415 | ||
18416 | fi | |
ac1cb8d3 | 18417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18418 | if test $ac_cv_c_bigendian = unknown; then |
18419 | if test "$cross_compiling" = yes; then | |
18420 | ac_cv_c_bigendian=unknown | |
18421 | else | |
18422 | cat >conftest.$ac_ext <<_ACEOF | |
18423 | /* confdefs.h. */ | |
18424 | _ACEOF | |
18425 | cat confdefs.h >>conftest.$ac_ext | |
18426 | cat >>conftest.$ac_ext <<_ACEOF | |
18427 | /* end confdefs.h. */ | |
18428 | main () { | |
18429 | /* Are we little or big endian? From Harbison&Steele. */ | |
18430 | union | |
18431 | { | |
18432 | long l; | |
18433 | char c[sizeof (long)]; | |
18434 | } u; | |
18435 | u.l = 1; | |
18436 | exit (u.c[sizeof (long) - 1] == 1); | |
18437 | } | |
18438 | _ACEOF | |
18439 | rm -f conftest$ac_exeext | |
18440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18441 | (eval $ac_link) 2>&5 | |
18442 | ac_status=$? | |
18443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18446 | (eval $ac_try) 2>&5 | |
18447 | ac_status=$? | |
18448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18449 | (exit $ac_status); }; }; then | |
18450 | ac_cv_c_bigendian=no | |
18451 | else | |
18452 | echo "$as_me: program exited with status $ac_status" >&5 | |
18453 | echo "$as_me: failed program was:" >&5 | |
18454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18455 | ||
18456 | ( exit $ac_status ) | |
18457 | ac_cv_c_bigendian=yes | |
18458 | fi | |
ac1cb8d3 | 18459 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18460 | fi |
18461 | fi | |
18462 | fi | |
18463 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18464 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18465 | if test $ac_cv_c_bigendian = unknown; then | |
18466 | { 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 | |
18467 | 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;} | |
18468 | fi | |
18469 | if test $ac_cv_c_bigendian = yes; then | |
18470 | cat >>confdefs.h <<\_ACEOF | |
18471 | #define WORDS_BIGENDIAN 1 | |
18472 | _ACEOF | |
18473 | ||
18474 | fi | |
18475 | ||
18476 | ||
18477 | ac_ext=cc | |
18478 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18479 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18480 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18481 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18482 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18483 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18484 | if test -z "$CXXCPP"; then | |
18485 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18487 | else | |
18488 | # Double quotes because CXXCPP needs to be expanded | |
18489 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18490 | do | |
18491 | ac_preproc_ok=false | |
18492 | for ac_cxx_preproc_warn_flag in '' yes | |
18493 | do | |
18494 | # Use a header file that comes with gcc, so configuring glibc | |
18495 | # with a fresh cross-compiler works. | |
18496 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18497 | # <limits.h> exists even on freestanding compilers. | |
18498 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18499 | # not just through cpp. "Syntax error" is here to catch this case. | |
18500 | cat >conftest.$ac_ext <<_ACEOF | |
18501 | /* confdefs.h. */ | |
18502 | _ACEOF | |
18503 | cat confdefs.h >>conftest.$ac_ext | |
18504 | cat >>conftest.$ac_ext <<_ACEOF | |
18505 | /* end confdefs.h. */ | |
18506 | #ifdef __STDC__ | |
18507 | # include <limits.h> | |
18508 | #else | |
18509 | # include <assert.h> | |
18510 | #endif | |
ac1cb8d3 | 18511 | Syntax error |
a848cd7e SC |
18512 | _ACEOF |
18513 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18514 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18515 | ac_status=$? | |
18516 | grep -v '^ *+' conftest.er1 >conftest.err | |
18517 | rm -f conftest.er1 | |
18518 | cat conftest.err >&5 | |
18519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18520 | (exit $ac_status); } >/dev/null; then | |
18521 | if test -s conftest.err; then | |
18522 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18523 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18524 | else |
18525 | ac_cpp_err= | |
18526 | fi | |
18527 | else | |
18528 | ac_cpp_err=yes | |
18529 | fi | |
18530 | if test -z "$ac_cpp_err"; then | |
18531 | : | |
18532 | else | |
18533 | echo "$as_me: failed program was:" >&5 | |
18534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18535 | ||
18536 | # Broken: fails on valid input. | |
18537 | continue | |
18538 | fi | |
18539 | rm -f conftest.err conftest.$ac_ext | |
18540 | ||
18541 | # OK, works on sane cases. Now check whether non-existent headers | |
18542 | # can be detected and how. | |
18543 | cat >conftest.$ac_ext <<_ACEOF | |
18544 | /* confdefs.h. */ | |
18545 | _ACEOF | |
18546 | cat confdefs.h >>conftest.$ac_ext | |
18547 | cat >>conftest.$ac_ext <<_ACEOF | |
18548 | /* end confdefs.h. */ | |
18549 | #include <ac_nonexistent.h> | |
18550 | _ACEOF | |
18551 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18552 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18553 | ac_status=$? | |
18554 | grep -v '^ *+' conftest.er1 >conftest.err | |
18555 | rm -f conftest.er1 | |
18556 | cat conftest.err >&5 | |
18557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18558 | (exit $ac_status); } >/dev/null; then | |
18559 | if test -s conftest.err; then | |
18560 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18561 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18562 | else |
18563 | ac_cpp_err= | |
18564 | fi | |
18565 | else | |
18566 | ac_cpp_err=yes | |
18567 | fi | |
18568 | if test -z "$ac_cpp_err"; then | |
18569 | # Broken: success on invalid input. | |
18570 | continue | |
18571 | else | |
18572 | echo "$as_me: failed program was:" >&5 | |
18573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18574 | ||
18575 | # Passes both tests. | |
18576 | ac_preproc_ok=: | |
18577 | break | |
18578 | fi | |
18579 | rm -f conftest.err conftest.$ac_ext | |
18580 | ||
18581 | done | |
18582 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18583 | rm -f conftest.err conftest.$ac_ext | |
18584 | if $ac_preproc_ok; then | |
18585 | break | |
18586 | fi | |
18587 | ||
18588 | done | |
18589 | ac_cv_prog_CXXCPP=$CXXCPP | |
18590 | ||
18591 | fi | |
18592 | CXXCPP=$ac_cv_prog_CXXCPP | |
18593 | else | |
18594 | ac_cv_prog_CXXCPP=$CXXCPP | |
18595 | fi | |
18596 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18597 | echo "${ECHO_T}$CXXCPP" >&6 | |
18598 | ac_preproc_ok=false | |
18599 | for ac_cxx_preproc_warn_flag in '' yes | |
18600 | do | |
18601 | # Use a header file that comes with gcc, so configuring glibc | |
18602 | # with a fresh cross-compiler works. | |
18603 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18604 | # <limits.h> exists even on freestanding compilers. | |
18605 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18606 | # not just through cpp. "Syntax error" is here to catch this case. | |
18607 | cat >conftest.$ac_ext <<_ACEOF | |
18608 | /* confdefs.h. */ | |
18609 | _ACEOF | |
18610 | cat confdefs.h >>conftest.$ac_ext | |
18611 | cat >>conftest.$ac_ext <<_ACEOF | |
18612 | /* end confdefs.h. */ | |
18613 | #ifdef __STDC__ | |
18614 | # include <limits.h> | |
18615 | #else | |
18616 | # include <assert.h> | |
18617 | #endif | |
ac1cb8d3 | 18618 | Syntax error |
a848cd7e SC |
18619 | _ACEOF |
18620 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18621 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18622 | ac_status=$? | |
18623 | grep -v '^ *+' conftest.er1 >conftest.err | |
18624 | rm -f conftest.er1 | |
18625 | cat conftest.err >&5 | |
18626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18627 | (exit $ac_status); } >/dev/null; then | |
18628 | if test -s conftest.err; then | |
18629 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18630 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18631 | else |
18632 | ac_cpp_err= | |
18633 | fi | |
18634 | else | |
18635 | ac_cpp_err=yes | |
18636 | fi | |
18637 | if test -z "$ac_cpp_err"; then | |
18638 | : | |
18639 | else | |
18640 | echo "$as_me: failed program was:" >&5 | |
18641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18642 | ||
18643 | # Broken: fails on valid input. | |
18644 | continue | |
18645 | fi | |
18646 | rm -f conftest.err conftest.$ac_ext | |
18647 | ||
18648 | # OK, works on sane cases. Now check whether non-existent headers | |
18649 | # can be detected and how. | |
18650 | cat >conftest.$ac_ext <<_ACEOF | |
18651 | /* confdefs.h. */ | |
18652 | _ACEOF | |
18653 | cat confdefs.h >>conftest.$ac_ext | |
18654 | cat >>conftest.$ac_ext <<_ACEOF | |
18655 | /* end confdefs.h. */ | |
18656 | #include <ac_nonexistent.h> | |
18657 | _ACEOF | |
18658 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18659 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18660 | ac_status=$? | |
18661 | grep -v '^ *+' conftest.er1 >conftest.err | |
18662 | rm -f conftest.er1 | |
18663 | cat conftest.err >&5 | |
18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18665 | (exit $ac_status); } >/dev/null; then | |
18666 | if test -s conftest.err; then | |
18667 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18668 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18669 | else |
18670 | ac_cpp_err= | |
18671 | fi | |
18672 | else | |
18673 | ac_cpp_err=yes | |
18674 | fi | |
18675 | if test -z "$ac_cpp_err"; then | |
18676 | # Broken: success on invalid input. | |
18677 | continue | |
18678 | else | |
18679 | echo "$as_me: failed program was:" >&5 | |
18680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18681 | ||
18682 | # Passes both tests. | |
18683 | ac_preproc_ok=: | |
18684 | break | |
18685 | fi | |
18686 | rm -f conftest.err conftest.$ac_ext | |
18687 | ||
18688 | done | |
18689 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18690 | rm -f conftest.err conftest.$ac_ext | |
18691 | if $ac_preproc_ok; then | |
18692 | : | |
18693 | else | |
18694 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18695 | See \`config.log' for more details." >&5 | |
18696 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18697 | See \`config.log' for more details." >&2;} | |
18698 | { (exit 1); exit 1; }; } | |
18699 | fi | |
18700 | ||
18701 | ac_ext=cc | |
18702 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18703 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18704 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18705 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18706 | ||
18707 | ||
18708 | ||
2057db16 VS |
18709 | if test "$cross_compiling" = "yes"; then |
18710 | cat >>confdefs.h <<\_ACEOF | |
18711 | #define wxUSE_IOSTREAMH 1 | |
18712 | _ACEOF | |
18713 | ||
18714 | else | |
a848cd7e SC |
18715 | |
18716 | ||
18717 | ac_ext=cc | |
18718 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18719 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18720 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18721 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18722 | ||
18723 | ||
18724 | ||
18725 | for ac_header in iostream | |
18726 | do | |
18727 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18728 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18729 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18733 | fi | |
18734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18735 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18736 | else | |
18737 | # Is the header compilable? | |
18738 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18739 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18740 | cat >conftest.$ac_ext <<_ACEOF | |
18741 | /* confdefs.h. */ | |
18742 | _ACEOF | |
18743 | cat confdefs.h >>conftest.$ac_ext | |
18744 | cat >>conftest.$ac_ext <<_ACEOF | |
18745 | /* end confdefs.h. */ | |
18746 | $ac_includes_default | |
18747 | #include <$ac_header> | |
18748 | _ACEOF | |
18749 | rm -f conftest.$ac_objext | |
18750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18751 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18752 | ac_status=$? |
ac1cb8d3 VS |
18753 | grep -v '^ *+' conftest.er1 >conftest.err |
18754 | rm -f conftest.er1 | |
18755 | cat conftest.err >&5 | |
a848cd7e SC |
18756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18757 | (exit $ac_status); } && | |
ea7db9ff DE |
18758 | { ac_try='test -z "$ac_cxx_werror_flag" |
18759 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18761 | (eval $ac_try) 2>&5 | |
18762 | ac_status=$? | |
18763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18764 | (exit $ac_status); }; } && | |
18765 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18767 | (eval $ac_try) 2>&5 | |
18768 | ac_status=$? | |
18769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18770 | (exit $ac_status); }; }; then | |
18771 | ac_header_compiler=yes | |
18772 | else | |
18773 | echo "$as_me: failed program was:" >&5 | |
18774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18775 | ||
18776 | ac_header_compiler=no | |
18777 | fi | |
ac1cb8d3 | 18778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18779 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18780 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18781 | ||
18782 | # Is the header present? | |
18783 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18784 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18785 | cat >conftest.$ac_ext <<_ACEOF | |
18786 | /* confdefs.h. */ | |
18787 | _ACEOF | |
18788 | cat confdefs.h >>conftest.$ac_ext | |
18789 | cat >>conftest.$ac_ext <<_ACEOF | |
18790 | /* end confdefs.h. */ | |
18791 | #include <$ac_header> | |
18792 | _ACEOF | |
18793 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18794 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18795 | ac_status=$? | |
18796 | grep -v '^ *+' conftest.er1 >conftest.err | |
18797 | rm -f conftest.er1 | |
18798 | cat conftest.err >&5 | |
18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18800 | (exit $ac_status); } >/dev/null; then | |
18801 | if test -s conftest.err; then | |
18802 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18803 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18804 | else |
18805 | ac_cpp_err= | |
18806 | fi | |
18807 | else | |
18808 | ac_cpp_err=yes | |
18809 | fi | |
18810 | if test -z "$ac_cpp_err"; then | |
18811 | ac_header_preproc=yes | |
18812 | else | |
18813 | echo "$as_me: failed program was:" >&5 | |
18814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18815 | ||
18816 | ac_header_preproc=no | |
18817 | fi | |
18818 | rm -f conftest.err conftest.$ac_ext | |
18819 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18820 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18821 | ||
18822 | # So? What about this header? | |
ac1cb8d3 VS |
18823 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18824 | yes:no: ) | |
a848cd7e SC |
18825 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18826 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
18827 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18828 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18829 | ac_header_preproc=yes | |
a848cd7e | 18830 | ;; |
ac1cb8d3 | 18831 | no:yes:* ) |
a848cd7e SC |
18832 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18833 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
18834 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18835 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18836 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18837 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18838 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18839 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
18840 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18841 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
18842 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18843 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
18844 | ( |
18845 | cat <<\_ASBOX | |
ac1cb8d3 VS |
18846 | ## ----------------------------------------- ## |
18847 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
18848 | ## ----------------------------------------- ## | |
a848cd7e SC |
18849 | _ASBOX |
18850 | ) | | |
18851 | sed "s/^/$as_me: WARNING: /" >&2 | |
18852 | ;; | |
18853 | esac | |
18854 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18855 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18858 | else | |
ac1cb8d3 | 18859 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
18860 | fi |
18861 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18862 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18863 | ||
18864 | fi | |
18865 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18866 | cat >>confdefs.h <<_ACEOF | |
18867 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18868 | _ACEOF | |
18869 | ||
18870 | fi | |
18871 | ||
18872 | done | |
18873 | ||
18874 | ||
18875 | if test "$ac_cv_header_iostream" = "yes" ; then | |
18876 | : | |
18877 | else | |
18878 | cat >>confdefs.h <<\_ACEOF | |
18879 | #define wxUSE_IOSTREAMH 1 | |
18880 | _ACEOF | |
18881 | ||
18882 | fi | |
18883 | ||
18884 | ac_ext=c | |
18885 | ac_cpp='$CPP $CPPFLAGS' | |
18886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18889 | ||
2057db16 | 18890 | fi |
a848cd7e SC |
18891 | |
18892 | ||
18893 | ||
18894 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
18895 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18896 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18898 | else | |
18899 | ||
18900 | ||
18901 | ||
18902 | ac_ext=cc | |
18903 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18904 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18905 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18906 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18907 | ||
18908 | ||
18909 | cat >conftest.$ac_ext <<_ACEOF | |
18910 | /* confdefs.h. */ | |
18911 | _ACEOF | |
18912 | cat confdefs.h >>conftest.$ac_ext | |
18913 | cat >>conftest.$ac_ext <<_ACEOF | |
18914 | /* end confdefs.h. */ | |
18915 | ||
18916 | ||
18917 | int | |
18918 | main () | |
18919 | { | |
18920 | ||
18921 | bool b = true; | |
18922 | ||
18923 | return 0; | |
18924 | ||
18925 | ; | |
18926 | return 0; | |
18927 | } | |
18928 | _ACEOF | |
18929 | rm -f conftest.$ac_objext | |
18930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18931 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18932 | ac_status=$? |
ac1cb8d3 VS |
18933 | grep -v '^ *+' conftest.er1 >conftest.err |
18934 | rm -f conftest.er1 | |
18935 | cat conftest.err >&5 | |
a848cd7e SC |
18936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18937 | (exit $ac_status); } && | |
ea7db9ff DE |
18938 | { ac_try='test -z "$ac_cxx_werror_flag" |
18939 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18941 | (eval $ac_try) 2>&5 | |
18942 | ac_status=$? | |
18943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18944 | (exit $ac_status); }; } && | |
18945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18947 | (eval $ac_try) 2>&5 | |
18948 | ac_status=$? | |
18949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18950 | (exit $ac_status); }; }; then | |
18951 | ||
18952 | wx_cv_cpp_bool=yes | |
18953 | ||
18954 | else | |
18955 | echo "$as_me: failed program was:" >&5 | |
18956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18957 | ||
18958 | ||
18959 | wx_cv_cpp_bool=no | |
18960 | ||
18961 | ||
18962 | fi | |
ac1cb8d3 | 18963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18964 | |
18965 | ac_ext=c | |
18966 | ac_cpp='$CPP $CPPFLAGS' | |
18967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18970 | ||
18971 | ||
18972 | fi | |
18973 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18974 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
18975 | ||
18976 | if test "$wx_cv_cpp_bool" = "yes"; then | |
18977 | cat >>confdefs.h <<\_ACEOF | |
18978 | #define HAVE_BOOL 1 | |
18979 | _ACEOF | |
18980 | ||
18981 | fi | |
18982 | ||
18983 | ||
18984 | ||
18985 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
18986 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18987 | if test "${wx_cv_explicit+set}" = set; then | |
18988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18989 | else | |
18990 | ||
18991 | ||
18992 | ||
18993 | ac_ext=cc | |
18994 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18995 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18996 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18997 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18998 | ||
18999 | ||
19000 | cat >conftest.$ac_ext <<_ACEOF | |
19001 | /* confdefs.h. */ | |
19002 | _ACEOF | |
19003 | cat confdefs.h >>conftest.$ac_ext | |
19004 | cat >>conftest.$ac_ext <<_ACEOF | |
19005 | /* end confdefs.h. */ | |
19006 | ||
19007 | class Foo { public: explicit Foo(int) {} }; | |
19008 | ||
19009 | int | |
19010 | main () | |
19011 | { | |
19012 | ||
19013 | return 0; | |
19014 | ||
19015 | ; | |
19016 | return 0; | |
19017 | } | |
19018 | _ACEOF | |
19019 | rm -f conftest.$ac_objext | |
19020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19021 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19022 | ac_status=$? |
ac1cb8d3 VS |
19023 | grep -v '^ *+' conftest.er1 >conftest.err |
19024 | rm -f conftest.er1 | |
19025 | cat conftest.err >&5 | |
a848cd7e SC |
19026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19027 | (exit $ac_status); } && | |
ea7db9ff DE |
19028 | { ac_try='test -z "$ac_cxx_werror_flag" |
19029 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19031 | (eval $ac_try) 2>&5 | |
19032 | ac_status=$? | |
19033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19034 | (exit $ac_status); }; } && | |
19035 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19037 | (eval $ac_try) 2>&5 | |
19038 | ac_status=$? | |
19039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19040 | (exit $ac_status); }; }; then | |
19041 | ||
19042 | cat >conftest.$ac_ext <<_ACEOF | |
19043 | /* confdefs.h. */ | |
19044 | _ACEOF | |
19045 | cat confdefs.h >>conftest.$ac_ext | |
19046 | cat >>conftest.$ac_ext <<_ACEOF | |
19047 | /* end confdefs.h. */ | |
19048 | ||
19049 | class Foo { public: explicit Foo(int) {} }; | |
19050 | static void TakeFoo(const Foo& foo) { } | |
19051 | ||
19052 | int | |
19053 | main () | |
19054 | { | |
19055 | ||
19056 | TakeFoo(17); | |
19057 | return 0; | |
19058 | ||
19059 | ; | |
19060 | return 0; | |
19061 | } | |
19062 | _ACEOF | |
19063 | rm -f conftest.$ac_objext | |
19064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19065 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19066 | ac_status=$? |
ac1cb8d3 VS |
19067 | grep -v '^ *+' conftest.er1 >conftest.err |
19068 | rm -f conftest.er1 | |
19069 | cat conftest.err >&5 | |
a848cd7e SC |
19070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19071 | (exit $ac_status); } && | |
ea7db9ff DE |
19072 | { ac_try='test -z "$ac_cxx_werror_flag" |
19073 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19075 | (eval $ac_try) 2>&5 | |
19076 | ac_status=$? | |
19077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19078 | (exit $ac_status); }; } && | |
19079 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19081 | (eval $ac_try) 2>&5 | |
19082 | ac_status=$? | |
19083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19084 | (exit $ac_status); }; }; then | |
19085 | wx_cv_explicit=no | |
19086 | else | |
19087 | echo "$as_me: failed program was:" >&5 | |
19088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19089 | ||
19090 | wx_cv_explicit=yes | |
19091 | ||
19092 | fi | |
ac1cb8d3 | 19093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19094 | |
19095 | else | |
19096 | echo "$as_me: failed program was:" >&5 | |
19097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19098 | ||
19099 | wx_cv_explicit=no | |
19100 | ||
19101 | fi | |
ac1cb8d3 | 19102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19103 | |
19104 | ac_ext=c | |
19105 | ac_cpp='$CPP $CPPFLAGS' | |
19106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19109 | ||
19110 | ||
19111 | fi | |
19112 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19113 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19114 | ||
19115 | if test "$wx_cv_explicit" = "yes"; then | |
19116 | cat >>confdefs.h <<\_ACEOF | |
19117 | #define HAVE_EXPLICIT 1 | |
19118 | _ACEOF | |
19119 | ||
19120 | fi | |
19121 | ||
19122 | ||
19123 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19124 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19125 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19127 | else | |
19128 | ||
19129 | ||
19130 | ac_ext=cc | |
19131 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19132 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19133 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19134 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19135 | ||
19136 | cat >conftest.$ac_ext <<_ACEOF | |
19137 | /* confdefs.h. */ | |
19138 | _ACEOF | |
19139 | cat confdefs.h >>conftest.$ac_ext | |
19140 | cat >>conftest.$ac_ext <<_ACEOF | |
19141 | /* end confdefs.h. */ | |
19142 | ||
19143 | int | |
19144 | main () | |
19145 | { | |
19146 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19147 | ; | |
19148 | return 0; | |
19149 | } | |
19150 | _ACEOF | |
19151 | rm -f conftest.$ac_objext | |
19152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19153 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19154 | ac_status=$? |
ac1cb8d3 VS |
19155 | grep -v '^ *+' conftest.er1 >conftest.err |
19156 | rm -f conftest.er1 | |
19157 | cat conftest.err >&5 | |
a848cd7e SC |
19158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19159 | (exit $ac_status); } && | |
ea7db9ff DE |
19160 | { ac_try='test -z "$ac_cxx_werror_flag" |
19161 | || 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_const_cast=yes | |
19174 | else | |
19175 | echo "$as_me: failed program was:" >&5 | |
19176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19177 | ||
19178 | ac_cv_cxx_const_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_const_cast" >&5 | |
19190 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19191 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19192 | ||
19193 | cat >>confdefs.h <<\_ACEOF | |
19194 | #define HAVE_CONST_CAST | |
19195 | _ACEOF | |
19196 | ||
19197 | fi | |
19198 | ||
19199 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 | |
19200 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19201 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19203 | else | |
19204 | ||
19205 | ||
19206 | ac_ext=cc | |
19207 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19211 | ||
19212 | cat >conftest.$ac_ext <<_ACEOF | |
19213 | /* confdefs.h. */ | |
19214 | _ACEOF | |
19215 | cat confdefs.h >>conftest.$ac_ext | |
19216 | cat >>conftest.$ac_ext <<_ACEOF | |
19217 | /* end confdefs.h. */ | |
19218 | #include <typeinfo> | |
19219 | class Base { public : Base () {} virtual void f () = 0; }; | |
19220 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19221 | int g (Derived&) { return 0; } | |
19222 | int | |
19223 | main () | |
19224 | { | |
19225 | ||
19226 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19227 | ; | |
19228 | return 0; | |
19229 | } | |
19230 | _ACEOF | |
19231 | rm -f conftest.$ac_objext | |
19232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19233 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19234 | ac_status=$? |
ac1cb8d3 VS |
19235 | grep -v '^ *+' conftest.er1 >conftest.err |
19236 | rm -f conftest.er1 | |
19237 | cat conftest.err >&5 | |
a848cd7e SC |
19238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19239 | (exit $ac_status); } && | |
ea7db9ff DE |
19240 | { ac_try='test -z "$ac_cxx_werror_flag" |
19241 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19243 | (eval $ac_try) 2>&5 | |
19244 | ac_status=$? | |
19245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19246 | (exit $ac_status); }; } && | |
19247 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19249 | (eval $ac_try) 2>&5 | |
19250 | ac_status=$? | |
19251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19252 | (exit $ac_status); }; }; then | |
19253 | ac_cv_cxx_static_cast=yes | |
19254 | else | |
19255 | echo "$as_me: failed program was:" >&5 | |
19256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19257 | ||
19258 | ac_cv_cxx_static_cast=no | |
19259 | fi | |
ac1cb8d3 | 19260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19261 | ac_ext=c |
19262 | ac_cpp='$CPP $CPPFLAGS' | |
19263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19266 | ||
19267 | ||
19268 | fi | |
19269 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19270 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19271 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19272 | ||
19273 | cat >>confdefs.h <<\_ACEOF | |
19274 | #define HAVE_STATIC_CAST | |
19275 | _ACEOF | |
19276 | ||
19277 | fi | |
19278 | ||
19279 | ||
19280 | if test "$wxUSE_STL" = "yes"; then | |
19281 | ac_ext=cc | |
19282 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19283 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19284 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19285 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19286 | ||
19287 | ||
19288 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19289 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19290 | cat >conftest.$ac_ext <<_ACEOF | |
19291 | /* confdefs.h. */ | |
19292 | _ACEOF | |
19293 | cat confdefs.h >>conftest.$ac_ext | |
19294 | cat >>conftest.$ac_ext <<_ACEOF | |
19295 | /* end confdefs.h. */ | |
19296 | #include <string> | |
19297 | #include <functional> | |
19298 | #include <algorithm> | |
19299 | #include <vector> | |
19300 | #include <list> | |
19301 | int | |
19302 | main () | |
19303 | { | |
19304 | std::vector<int> moo; | |
19305 | std::list<int> foo; | |
19306 | std::vector<int>::iterator it = | |
19307 | std::find_if(moo.begin(), moo.end(), | |
19308 | std::bind2nd(std::less<int>(), 3)); | |
19309 | ; | |
19310 | return 0; | |
19311 | } | |
19312 | _ACEOF | |
19313 | rm -f conftest.$ac_objext | |
19314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19315 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19316 | ac_status=$? |
ac1cb8d3 VS |
19317 | grep -v '^ *+' conftest.er1 >conftest.err |
19318 | rm -f conftest.er1 | |
19319 | cat conftest.err >&5 | |
a848cd7e SC |
19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19321 | (exit $ac_status); } && | |
ea7db9ff DE |
19322 | { ac_try='test -z "$ac_cxx_werror_flag" |
19323 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19325 | (eval $ac_try) 2>&5 | |
19326 | ac_status=$? | |
19327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19328 | (exit $ac_status); }; } && | |
19329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19331 | (eval $ac_try) 2>&5 | |
19332 | ac_status=$? | |
19333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19334 | (exit $ac_status); }; }; then | |
19335 | echo "$as_me:$LINENO: result: yes" >&5 | |
19336 | echo "${ECHO_T}yes" >&6 | |
19337 | else | |
19338 | echo "$as_me: failed program was:" >&5 | |
19339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19340 | ||
19341 | echo "$as_me:$LINENO: result: no" >&5 | |
19342 | echo "${ECHO_T}no" >&6 | |
19343 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19344 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19345 | { (exit 1); exit 1; }; } | |
19346 | fi | |
ac1cb8d3 | 19347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19348 | |
19349 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19350 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19351 | cat >conftest.$ac_ext <<_ACEOF | |
19352 | /* confdefs.h. */ | |
19353 | _ACEOF | |
19354 | cat confdefs.h >>conftest.$ac_ext | |
19355 | cat >>conftest.$ac_ext <<_ACEOF | |
19356 | /* end confdefs.h. */ | |
19357 | #include <string> | |
19358 | int | |
19359 | main () | |
19360 | { | |
19361 | std::wstring foo; | |
19362 | ; | |
19363 | return 0; | |
19364 | } | |
19365 | _ACEOF | |
19366 | rm -f conftest.$ac_objext | |
19367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19368 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19369 | ac_status=$? |
ac1cb8d3 VS |
19370 | grep -v '^ *+' conftest.er1 >conftest.err |
19371 | rm -f conftest.er1 | |
19372 | cat conftest.err >&5 | |
a848cd7e SC |
19373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19374 | (exit $ac_status); } && | |
ea7db9ff DE |
19375 | { ac_try='test -z "$ac_cxx_werror_flag" |
19376 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19378 | (eval $ac_try) 2>&5 | |
19379 | ac_status=$? | |
19380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19381 | (exit $ac_status); }; } && | |
19382 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19384 | (eval $ac_try) 2>&5 | |
19385 | ac_status=$? | |
19386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19387 | (exit $ac_status); }; }; then | |
19388 | echo "$as_me:$LINENO: result: yes" >&5 | |
19389 | echo "${ECHO_T}yes" >&6 | |
19390 | cat >>confdefs.h <<\_ACEOF | |
19391 | #define HAVE_STD_WSTRING 1 | |
19392 | _ACEOF | |
19393 | ||
19394 | else | |
19395 | echo "$as_me: failed program was:" >&5 | |
19396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19397 | ||
19398 | echo "$as_me:$LINENO: result: no" >&5 | |
19399 | echo "${ECHO_T}no" >&6 | |
19400 | fi | |
ac1cb8d3 | 19401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19402 | |
19403 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19404 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19405 | cat >conftest.$ac_ext <<_ACEOF | |
19406 | /* confdefs.h. */ | |
19407 | _ACEOF | |
19408 | cat confdefs.h >>conftest.$ac_ext | |
19409 | cat >>conftest.$ac_ext <<_ACEOF | |
19410 | /* end confdefs.h. */ | |
19411 | #include <string> | |
19412 | int | |
19413 | main () | |
19414 | { | |
19415 | std::string foo, bar; | |
19416 | foo.compare(bar); | |
19417 | foo.compare(1, 1, bar); | |
19418 | foo.compare(1, 1, bar, 1, 1); | |
19419 | foo.compare(""); | |
19420 | foo.compare(1, 1, ""); | |
19421 | foo.compare(1, 1, "", 2); | |
19422 | ; | |
19423 | return 0; | |
19424 | } | |
19425 | _ACEOF | |
19426 | rm -f conftest.$ac_objext | |
19427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19428 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19429 | ac_status=$? |
ac1cb8d3 VS |
19430 | grep -v '^ *+' conftest.er1 >conftest.err |
19431 | rm -f conftest.er1 | |
19432 | cat conftest.err >&5 | |
a848cd7e SC |
19433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19434 | (exit $ac_status); } && | |
ea7db9ff DE |
19435 | { ac_try='test -z "$ac_cxx_werror_flag" |
19436 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19438 | (eval $ac_try) 2>&5 | |
19439 | ac_status=$? | |
19440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19441 | (exit $ac_status); }; } && | |
19442 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19444 | (eval $ac_try) 2>&5 | |
19445 | ac_status=$? | |
19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19447 | (exit $ac_status); }; }; then | |
19448 | echo "$as_me:$LINENO: result: yes" >&5 | |
19449 | echo "${ECHO_T}yes" >&6 | |
19450 | cat >>confdefs.h <<\_ACEOF | |
19451 | #define HAVE_STD_STRING_COMPARE 1 | |
19452 | _ACEOF | |
19453 | ||
19454 | else | |
19455 | echo "$as_me: failed program was:" >&5 | |
19456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19457 | ||
19458 | echo "$as_me:$LINENO: result: no" >&5 | |
19459 | echo "${ECHO_T}no" >&6 | |
19460 | fi | |
ac1cb8d3 | 19461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19462 | |
19463 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19464 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19465 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19466 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19468 | fi | |
19469 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19470 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19471 | else | |
19472 | # Is the header compilable? | |
19473 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19474 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19475 | cat >conftest.$ac_ext <<_ACEOF | |
19476 | /* confdefs.h. */ | |
19477 | _ACEOF | |
19478 | cat confdefs.h >>conftest.$ac_ext | |
19479 | cat >>conftest.$ac_ext <<_ACEOF | |
19480 | /* end confdefs.h. */ | |
19481 | $ac_includes_default | |
19482 | #include <hash_map> | |
19483 | _ACEOF | |
19484 | rm -f conftest.$ac_objext | |
19485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19486 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19487 | ac_status=$? |
ac1cb8d3 VS |
19488 | grep -v '^ *+' conftest.er1 >conftest.err |
19489 | rm -f conftest.er1 | |
19490 | cat conftest.err >&5 | |
bdcade0a MB |
19491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19492 | (exit $ac_status); } && | |
ea7db9ff DE |
19493 | { ac_try='test -z "$ac_cxx_werror_flag" |
19494 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19496 | (eval $ac_try) 2>&5 | |
19497 | ac_status=$? | |
19498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19499 | (exit $ac_status); }; } && | |
19500 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19502 | (eval $ac_try) 2>&5 | |
19503 | ac_status=$? | |
19504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19505 | (exit $ac_status); }; }; then | |
19506 | ac_header_compiler=yes | |
19507 | else | |
19508 | echo "$as_me: failed program was:" >&5 | |
19509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19510 | ||
19511 | ac_header_compiler=no | |
19512 | fi | |
ac1cb8d3 | 19513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19514 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19515 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19516 | ||
19517 | # Is the header present? | |
19518 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19519 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19520 | cat >conftest.$ac_ext <<_ACEOF | |
19521 | /* confdefs.h. */ | |
19522 | _ACEOF | |
19523 | cat confdefs.h >>conftest.$ac_ext | |
19524 | cat >>conftest.$ac_ext <<_ACEOF | |
19525 | /* end confdefs.h. */ | |
19526 | #include <hash_map> | |
19527 | _ACEOF | |
19528 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19529 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19530 | ac_status=$? | |
19531 | grep -v '^ *+' conftest.er1 >conftest.err | |
19532 | rm -f conftest.er1 | |
19533 | cat conftest.err >&5 | |
19534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19535 | (exit $ac_status); } >/dev/null; then | |
19536 | if test -s conftest.err; then | |
19537 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19538 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19539 | else |
19540 | ac_cpp_err= | |
19541 | fi | |
19542 | else | |
19543 | ac_cpp_err=yes | |
19544 | fi | |
19545 | if test -z "$ac_cpp_err"; then | |
19546 | ac_header_preproc=yes | |
19547 | else | |
19548 | echo "$as_me: failed program was:" >&5 | |
19549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19550 | ||
19551 | ac_header_preproc=no | |
19552 | fi | |
19553 | rm -f conftest.err conftest.$ac_ext | |
19554 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19555 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19556 | ||
19557 | # So? What about this header? | |
ac1cb8d3 VS |
19558 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19559 | yes:no: ) | |
bdcade0a MB |
19560 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19561 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19562 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19563 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19564 | ac_header_preproc=yes | |
bdcade0a | 19565 | ;; |
ac1cb8d3 | 19566 | no:yes:* ) |
bdcade0a MB |
19567 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19568 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19569 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19570 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19571 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19572 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19573 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19574 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19575 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19576 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19577 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19578 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19579 | ( |
19580 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19581 | ## ----------------------------------------- ## |
19582 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19583 | ## ----------------------------------------- ## | |
bdcade0a MB |
19584 | _ASBOX |
19585 | ) | | |
19586 | sed "s/^/$as_me: WARNING: /" >&2 | |
19587 | ;; | |
19588 | esac | |
19589 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19590 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19591 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19593 | else | |
19594 | ac_cv_header_hash_map=$ac_header_preproc | |
19595 | fi | |
19596 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19597 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19598 | ||
19599 | fi | |
19600 | if test $ac_cv_header_hash_map = yes; then | |
19601 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19602 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19603 | cat >conftest.$ac_ext <<_ACEOF | |
19604 | /* confdefs.h. */ | |
19605 | _ACEOF | |
19606 | cat confdefs.h >>conftest.$ac_ext | |
19607 | cat >>conftest.$ac_ext <<_ACEOF | |
19608 | /* end confdefs.h. */ | |
19609 | #include <hash_map> | |
19610 | #include <hash_set> | |
19611 | int | |
19612 | main () | |
19613 | { | |
19614 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19615 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19616 | ; | |
19617 | return 0; | |
19618 | } | |
19619 | _ACEOF | |
19620 | rm -f conftest.$ac_objext | |
19621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19622 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19623 | ac_status=$? |
ac1cb8d3 VS |
19624 | grep -v '^ *+' conftest.er1 >conftest.err |
19625 | rm -f conftest.er1 | |
19626 | cat conftest.err >&5 | |
bdcade0a MB |
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19628 | (exit $ac_status); } && | |
ea7db9ff DE |
19629 | { ac_try='test -z "$ac_cxx_werror_flag" |
19630 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19632 | (eval $ac_try) 2>&5 | |
19633 | ac_status=$? | |
19634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19635 | (exit $ac_status); }; } && | |
19636 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19638 | (eval $ac_try) 2>&5 | |
19639 | ac_status=$? | |
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19641 | (exit $ac_status); }; }; then | |
19642 | echo "$as_me:$LINENO: result: yes" >&5 | |
19643 | echo "${ECHO_T}yes" >&6 | |
19644 | cat >>confdefs.h <<\_ACEOF | |
19645 | #define HAVE_HASH_MAP 1 | |
19646 | _ACEOF | |
19647 | ||
19648 | cat >>confdefs.h <<\_ACEOF | |
19649 | #define HAVE_STD_HASH_MAP 1 | |
19650 | _ACEOF | |
19651 | ||
19652 | else | |
19653 | echo "$as_me: failed program was:" >&5 | |
19654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19655 | ||
19656 | echo "$as_me:$LINENO: result: no" >&5 | |
19657 | echo "${ECHO_T}no" >&6 | |
19658 | fi | |
ac1cb8d3 | 19659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19660 | |
19661 | fi | |
19662 | ||
19663 | ||
19664 | ||
19665 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19666 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19667 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19668 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19670 | fi | |
19671 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19672 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19673 | else | |
19674 | # Is the header compilable? | |
19675 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19676 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19677 | cat >conftest.$ac_ext <<_ACEOF | |
19678 | /* confdefs.h. */ | |
19679 | _ACEOF | |
19680 | cat confdefs.h >>conftest.$ac_ext | |
19681 | cat >>conftest.$ac_ext <<_ACEOF | |
19682 | /* end confdefs.h. */ | |
19683 | $ac_includes_default | |
19684 | #include <ext/hash_map> | |
19685 | _ACEOF | |
19686 | rm -f conftest.$ac_objext | |
19687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19688 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19689 | ac_status=$? |
ac1cb8d3 VS |
19690 | grep -v '^ *+' conftest.er1 >conftest.err |
19691 | rm -f conftest.er1 | |
19692 | cat conftest.err >&5 | |
bdcade0a MB |
19693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19694 | (exit $ac_status); } && | |
ea7db9ff DE |
19695 | { ac_try='test -z "$ac_cxx_werror_flag" |
19696 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19698 | (eval $ac_try) 2>&5 | |
19699 | ac_status=$? | |
19700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19701 | (exit $ac_status); }; } && | |
19702 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19704 | (eval $ac_try) 2>&5 | |
19705 | ac_status=$? | |
19706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19707 | (exit $ac_status); }; }; then | |
19708 | ac_header_compiler=yes | |
19709 | else | |
19710 | echo "$as_me: failed program was:" >&5 | |
19711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19712 | ||
19713 | ac_header_compiler=no | |
19714 | fi | |
ac1cb8d3 | 19715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19716 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19717 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19718 | ||
19719 | # Is the header present? | |
19720 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
19721 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
19722 | cat >conftest.$ac_ext <<_ACEOF | |
19723 | /* confdefs.h. */ | |
19724 | _ACEOF | |
19725 | cat confdefs.h >>conftest.$ac_ext | |
19726 | cat >>conftest.$ac_ext <<_ACEOF | |
19727 | /* end confdefs.h. */ | |
19728 | #include <ext/hash_map> | |
19729 | _ACEOF | |
19730 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19731 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19732 | ac_status=$? | |
19733 | grep -v '^ *+' conftest.er1 >conftest.err | |
19734 | rm -f conftest.er1 | |
19735 | cat conftest.err >&5 | |
19736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19737 | (exit $ac_status); } >/dev/null; then | |
19738 | if test -s conftest.err; then | |
19739 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19740 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19741 | else |
19742 | ac_cpp_err= | |
19743 | fi | |
19744 | else | |
19745 | ac_cpp_err=yes | |
19746 | fi | |
19747 | if test -z "$ac_cpp_err"; then | |
19748 | ac_header_preproc=yes | |
19749 | else | |
19750 | echo "$as_me: failed program was:" >&5 | |
19751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19752 | ||
19753 | ac_header_preproc=no | |
19754 | fi | |
19755 | rm -f conftest.err conftest.$ac_ext | |
19756 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19757 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19758 | ||
19759 | # So? What about this header? | |
ac1cb8d3 VS |
19760 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19761 | yes:no: ) | |
bdcade0a MB |
19762 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19763 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19764 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
19765 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
19766 | ac_header_preproc=yes | |
bdcade0a | 19767 | ;; |
ac1cb8d3 | 19768 | no:yes:* ) |
bdcade0a MB |
19769 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
19770 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19771 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
19772 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
19773 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
19774 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
19775 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19776 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19777 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
19778 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19779 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
19780 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19781 | ( |
19782 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19783 | ## ----------------------------------------- ## |
19784 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19785 | ## ----------------------------------------- ## | |
bdcade0a MB |
19786 | _ASBOX |
19787 | ) | | |
19788 | sed "s/^/$as_me: WARNING: /" >&2 | |
19789 | ;; | |
19790 | esac | |
19791 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19792 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19793 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19795 | else | |
19796 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
19797 | fi | |
19798 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19799 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19800 | ||
19801 | fi | |
19802 | if test $ac_cv_header_ext_hash_map = yes; then | |
19803 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19804 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19805 | cat >conftest.$ac_ext <<_ACEOF | |
19806 | /* confdefs.h. */ | |
19807 | _ACEOF | |
19808 | cat confdefs.h >>conftest.$ac_ext | |
19809 | cat >>conftest.$ac_ext <<_ACEOF | |
19810 | /* end confdefs.h. */ | |
19811 | #include <ext/hash_map> | |
19812 | #include <ext/hash_set> | |
19813 | int | |
19814 | main () | |
19815 | { | |
19816 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
19817 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
19818 | ; | |
19819 | return 0; | |
19820 | } | |
19821 | _ACEOF | |
19822 | rm -f conftest.$ac_objext | |
19823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19824 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19825 | ac_status=$? |
ac1cb8d3 VS |
19826 | grep -v '^ *+' conftest.er1 >conftest.err |
19827 | rm -f conftest.er1 | |
19828 | cat conftest.err >&5 | |
bdcade0a MB |
19829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19830 | (exit $ac_status); } && | |
ea7db9ff DE |
19831 | { ac_try='test -z "$ac_cxx_werror_flag" |
19832 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19834 | (eval $ac_try) 2>&5 | |
19835 | ac_status=$? | |
19836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19837 | (exit $ac_status); }; } && | |
19838 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19840 | (eval $ac_try) 2>&5 | |
19841 | ac_status=$? | |
19842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19843 | (exit $ac_status); }; }; then | |
19844 | echo "$as_me:$LINENO: result: yes" >&5 | |
19845 | echo "${ECHO_T}yes" >&6 | |
19846 | cat >>confdefs.h <<\_ACEOF | |
19847 | #define HAVE_EXT_HASH_MAP 1 | |
19848 | _ACEOF | |
19849 | ||
19850 | cat >>confdefs.h <<\_ACEOF | |
19851 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
19852 | _ACEOF | |
19853 | ||
19854 | else | |
19855 | echo "$as_me: failed program was:" >&5 | |
19856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19857 | ||
19858 | echo "$as_me:$LINENO: result: no" >&5 | |
19859 | echo "${ECHO_T}no" >&6 | |
19860 | fi | |
ac1cb8d3 | 19861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19862 | |
19863 | fi | |
19864 | ||
19865 | ||
a848cd7e SC |
19866 | |
19867 | ac_ext=c | |
19868 | ac_cpp='$CPP $CPPFLAGS' | |
19869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19872 | ||
19873 | fi | |
19874 | ||
19875 | ||
19876 | SEARCH_INCLUDE="\ | |
19877 | /usr/local/include \ | |
19878 | \ | |
19879 | /usr/Motif-2.1/include \ | |
19880 | /usr/Motif-1.2/include \ | |
19881 | /usr/include/Motif1.2 \ | |
19882 | /opt/xpm/include/X11 \ | |
19883 | /opt/GBxpm/include/ \ | |
19884 | /opt/GBxpm/X11/include/ \ | |
19885 | \ | |
19886 | /usr/dt/include \ | |
19887 | /usr/openwin/include \ | |
19888 | \ | |
19889 | /usr/include/Xm \ | |
19890 | \ | |
19891 | /usr/X11R6/include \ | |
19892 | /usr/X11R6.4/include \ | |
19893 | /usr/X11R5/include \ | |
19894 | /usr/X11R4/include \ | |
19895 | \ | |
19896 | /usr/include/X11R6 \ | |
19897 | /usr/include/X11R5 \ | |
19898 | /usr/include/X11R4 \ | |
19899 | \ | |
19900 | /usr/local/X11R6/include \ | |
19901 | /usr/local/X11R5/include \ | |
19902 | /usr/local/X11R4/include \ | |
19903 | \ | |
19904 | /usr/local/include/X11R6 \ | |
19905 | /usr/local/include/X11R5 \ | |
19906 | /usr/local/include/X11R4 \ | |
19907 | \ | |
19908 | /usr/X11/include \ | |
19909 | /usr/include/X11 \ | |
19910 | /usr/local/X11/include \ | |
19911 | /usr/local/include/X11 \ | |
19912 | \ | |
19913 | /usr/X386/include \ | |
19914 | /usr/x386/include \ | |
19915 | /usr/XFree86/include/X11 \ | |
19916 | \ | |
19917 | X:/XFree86/include \ | |
19918 | X:/XFree86/include/X11 \ | |
19919 | \ | |
19920 | /usr/include/gtk \ | |
19921 | /usr/local/include/gtk \ | |
19922 | /usr/include/glib \ | |
19923 | /usr/local/include/glib \ | |
19924 | \ | |
19925 | /usr/include/qt \ | |
19926 | /usr/local/include/qt \ | |
19927 | \ | |
19928 | /usr/local/arm/3.3.2/include \ | |
19929 | \ | |
19930 | /usr/include/windows \ | |
19931 | /usr/include/wine \ | |
19932 | /usr/local/include/wine \ | |
19933 | \ | |
19934 | /usr/unsupported/include \ | |
19935 | /usr/athena/include \ | |
19936 | /usr/local/x11r5/include \ | |
19937 | /usr/lpp/Xamples/include \ | |
19938 | \ | |
19939 | /usr/openwin/share/include" | |
19940 | ||
19941 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
19942 | ||
19943 | ||
19944 | cat >confcache <<\_ACEOF | |
19945 | # This file is a shell script that caches the results of configure | |
19946 | # tests run on this system so they can be shared between configure | |
19947 | # scripts and configure runs, see configure's option --config-cache. | |
19948 | # It is not useful on other systems. If it contains results you don't | |
19949 | # want to keep, you may remove or edit it. | |
19950 | # | |
19951 | # config.status only pays attention to the cache file if you give it | |
19952 | # the --recheck option to rerun configure. | |
19953 | # | |
19954 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19955 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19956 | # following values. | |
19957 | ||
19958 | _ACEOF | |
19959 | ||
19960 | # The following way of writing the cache mishandles newlines in values, | |
19961 | # but we know of no workaround that is simple, portable, and efficient. | |
19962 | # So, don't put newlines in cache variables' values. | |
19963 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19964 | # and sets the high bit in the cache file unless we assign to the vars. | |
19965 | { | |
19966 | (set) 2>&1 | | |
19967 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19968 | *ac_space=\ *) | |
19969 | # `set' does not quote correctly, so add quotes (double-quote | |
19970 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19971 | sed -n \ | |
ac1cb8d3 VS |
19972 | "s/'/'\\\\''/g; |
19973 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
19974 | ;; |
19975 | *) | |
19976 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19977 | sed -n \ | |
ac1cb8d3 | 19978 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
19979 | ;; |
19980 | esac; | |
19981 | } | | |
19982 | sed ' | |
19983 | t clear | |
19984 | : clear | |
19985 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19986 | t end | |
19987 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19988 | : end' >>confcache | |
19989 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
19990 | if test -w $cache_file; then | |
19991 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
19992 | cat confcache >$cache_file | |
19993 | else | |
19994 | echo "not updating unwritable cache $cache_file" | |
19995 | fi | |
19996 | fi | |
19997 | rm -f confcache | |
19998 | ||
19999 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20000 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20001 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20002 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20004 | else | |
20005 | ||
20006 | cat >conftest.$ac_ext <<_ACEOF | |
20007 | /* confdefs.h. */ | |
20008 | _ACEOF | |
20009 | cat confdefs.h >>conftest.$ac_ext | |
20010 | cat >>conftest.$ac_ext <<_ACEOF | |
20011 | /* end confdefs.h. */ | |
20012 | #include <features.h> | |
20013 | int | |
20014 | main () | |
20015 | { | |
20016 | ||
20017 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20018 | #error not glibc2.1 | |
20019 | #endif | |
20020 | ||
20021 | ; | |
20022 | return 0; | |
20023 | } | |
20024 | _ACEOF | |
20025 | rm -f conftest.$ac_objext | |
20026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20027 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20028 | ac_status=$? |
ac1cb8d3 VS |
20029 | grep -v '^ *+' conftest.er1 >conftest.err |
20030 | rm -f conftest.er1 | |
20031 | cat conftest.err >&5 | |
a848cd7e SC |
20032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20033 | (exit $ac_status); } && | |
ea7db9ff DE |
20034 | { ac_try='test -z "$ac_c_werror_flag" |
20035 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20037 | (eval $ac_try) 2>&5 | |
20038 | ac_status=$? | |
20039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20040 | (exit $ac_status); }; } && | |
20041 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20043 | (eval $ac_try) 2>&5 | |
20044 | ac_status=$? | |
20045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20046 | (exit $ac_status); }; }; then | |
20047 | ||
20048 | wx_cv_lib_glibc21=yes | |
20049 | ||
20050 | else | |
20051 | echo "$as_me: failed program was:" >&5 | |
20052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20053 | ||
20054 | ||
20055 | wx_cv_lib_glibc21=no | |
20056 | ||
20057 | ||
20058 | fi | |
ac1cb8d3 | 20059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20060 | |
20061 | fi | |
20062 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20063 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20064 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20065 | cat >>confdefs.h <<\_ACEOF | |
20066 | #define wxHAVE_GLIBC2 1 | |
20067 | _ACEOF | |
20068 | ||
20069 | fi | |
20070 | fi | |
20071 | ||
20072 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20073 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20074 | cat >>confdefs.h <<\_ACEOF | |
20075 | #define _GNU_SOURCE 1 | |
20076 | _ACEOF | |
20077 | ||
20078 | fi | |
20079 | fi | |
20080 | ||
20081 | ||
20082 | ||
20083 | if test "$wxUSE_REGEX" != "no"; then | |
20084 | cat >>confdefs.h <<\_ACEOF | |
20085 | #define wxUSE_REGEX 1 | |
20086 | _ACEOF | |
20087 | ||
20088 | ||
20089 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20090 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20091 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20092 | wxUSE_REGEX=builtin | |
20093 | fi | |
20094 | ||
20095 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20096 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20097 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20098 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20099 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20101 | fi | |
20102 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20103 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20104 | else | |
20105 | # Is the header compilable? | |
20106 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20107 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20108 | cat >conftest.$ac_ext <<_ACEOF | |
20109 | /* confdefs.h. */ | |
20110 | _ACEOF | |
20111 | cat confdefs.h >>conftest.$ac_ext | |
20112 | cat >>conftest.$ac_ext <<_ACEOF | |
20113 | /* end confdefs.h. */ | |
20114 | $ac_includes_default | |
20115 | #include <regex.h> | |
20116 | _ACEOF | |
20117 | rm -f conftest.$ac_objext | |
20118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20120 | ac_status=$? |
ac1cb8d3 VS |
20121 | grep -v '^ *+' conftest.er1 >conftest.err |
20122 | rm -f conftest.er1 | |
20123 | cat conftest.err >&5 | |
a848cd7e SC |
20124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20125 | (exit $ac_status); } && | |
ea7db9ff DE |
20126 | { ac_try='test -z "$ac_c_werror_flag" |
20127 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20129 | (eval $ac_try) 2>&5 | |
20130 | ac_status=$? | |
20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20132 | (exit $ac_status); }; } && | |
20133 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20135 | (eval $ac_try) 2>&5 | |
20136 | ac_status=$? | |
20137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20138 | (exit $ac_status); }; }; then | |
20139 | ac_header_compiler=yes | |
20140 | else | |
20141 | echo "$as_me: failed program was:" >&5 | |
20142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20143 | ||
20144 | ac_header_compiler=no | |
20145 | fi | |
ac1cb8d3 | 20146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20147 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20148 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20149 | ||
20150 | # Is the header present? | |
20151 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20152 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20153 | cat >conftest.$ac_ext <<_ACEOF | |
20154 | /* confdefs.h. */ | |
20155 | _ACEOF | |
20156 | cat confdefs.h >>conftest.$ac_ext | |
20157 | cat >>conftest.$ac_ext <<_ACEOF | |
20158 | /* end confdefs.h. */ | |
20159 | #include <regex.h> | |
20160 | _ACEOF | |
20161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20163 | ac_status=$? | |
20164 | grep -v '^ *+' conftest.er1 >conftest.err | |
20165 | rm -f conftest.er1 | |
20166 | cat conftest.err >&5 | |
20167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20168 | (exit $ac_status); } >/dev/null; then | |
20169 | if test -s conftest.err; then | |
20170 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20171 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20172 | else |
20173 | ac_cpp_err= | |
20174 | fi | |
20175 | else | |
20176 | ac_cpp_err=yes | |
20177 | fi | |
20178 | if test -z "$ac_cpp_err"; then | |
20179 | ac_header_preproc=yes | |
20180 | else | |
20181 | echo "$as_me: failed program was:" >&5 | |
20182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20183 | ||
20184 | ac_header_preproc=no | |
20185 | fi | |
20186 | rm -f conftest.err conftest.$ac_ext | |
20187 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20188 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20189 | ||
20190 | # So? What about this header? | |
ac1cb8d3 VS |
20191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20192 | yes:no: ) | |
a848cd7e SC |
20193 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20194 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20195 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20196 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20197 | ac_header_preproc=yes | |
a848cd7e | 20198 | ;; |
ac1cb8d3 | 20199 | no:yes:* ) |
a848cd7e SC |
20200 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20201 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20202 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20203 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20204 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20205 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20206 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20207 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20208 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20209 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20210 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20211 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20212 | ( |
20213 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20214 | ## ----------------------------------------- ## |
20215 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20216 | ## ----------------------------------------- ## | |
a848cd7e SC |
20217 | _ASBOX |
20218 | ) | | |
20219 | sed "s/^/$as_me: WARNING: /" >&2 | |
20220 | ;; | |
20221 | esac | |
20222 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20223 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20224 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20226 | else | |
20227 | ac_cv_header_regex_h=$ac_header_preproc | |
20228 | fi | |
20229 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20230 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20231 | ||
20232 | fi | |
20233 | if test $ac_cv_header_regex_h = yes; then | |
20234 | ||
20235 | for ac_func in regcomp | |
20236 | do | |
20237 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20238 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20239 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20240 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20242 | else | |
20243 | cat >conftest.$ac_ext <<_ACEOF | |
20244 | /* confdefs.h. */ | |
20245 | _ACEOF | |
20246 | cat confdefs.h >>conftest.$ac_ext | |
20247 | cat >>conftest.$ac_ext <<_ACEOF | |
20248 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20249 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20250 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20251 | #define $ac_func innocuous_$ac_func | |
20252 | ||
a848cd7e SC |
20253 | /* System header to define __stub macros and hopefully few prototypes, |
20254 | which can conflict with char $ac_func (); below. | |
20255 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20256 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20257 | |
a848cd7e SC |
20258 | #ifdef __STDC__ |
20259 | # include <limits.h> | |
20260 | #else | |
20261 | # include <assert.h> | |
20262 | #endif | |
ac1cb8d3 VS |
20263 | |
20264 | #undef $ac_func | |
20265 | ||
a848cd7e SC |
20266 | /* Override any gcc2 internal prototype to avoid an error. */ |
20267 | #ifdef __cplusplus | |
20268 | extern "C" | |
20269 | { | |
20270 | #endif | |
20271 | /* We use char because int might match the return type of a gcc2 | |
20272 | builtin and then its argument prototype would still apply. */ | |
20273 | char $ac_func (); | |
20274 | /* The GNU C library defines this for functions which it implements | |
20275 | to always fail with ENOSYS. Some functions are actually named | |
20276 | something starting with __ and the normal name is an alias. */ | |
20277 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20278 | choke me | |
20279 | #else | |
20280 | char (*f) () = $ac_func; | |
20281 | #endif | |
20282 | #ifdef __cplusplus | |
20283 | } | |
20284 | #endif | |
20285 | ||
20286 | int | |
20287 | main () | |
20288 | { | |
20289 | return f != $ac_func; | |
20290 | ; | |
20291 | return 0; | |
20292 | } | |
20293 | _ACEOF | |
20294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20296 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20297 | ac_status=$? |
ac1cb8d3 VS |
20298 | grep -v '^ *+' conftest.er1 >conftest.err |
20299 | rm -f conftest.er1 | |
20300 | cat conftest.err >&5 | |
a848cd7e SC |
20301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20302 | (exit $ac_status); } && | |
ea7db9ff DE |
20303 | { ac_try='test -z "$ac_c_werror_flag" |
20304 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20306 | (eval $ac_try) 2>&5 | |
20307 | ac_status=$? | |
20308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20309 | (exit $ac_status); }; } && | |
20310 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20312 | (eval $ac_try) 2>&5 | |
20313 | ac_status=$? | |
20314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20315 | (exit $ac_status); }; }; then | |
20316 | eval "$as_ac_var=yes" | |
20317 | else | |
20318 | echo "$as_me: failed program was:" >&5 | |
20319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20320 | ||
20321 | eval "$as_ac_var=no" | |
20322 | fi | |
ac1cb8d3 VS |
20323 | rm -f conftest.err conftest.$ac_objext \ |
20324 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20325 | fi |
20326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20327 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20328 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20329 | cat >>confdefs.h <<_ACEOF | |
20330 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20331 | _ACEOF | |
20332 | ||
20333 | fi | |
20334 | done | |
20335 | ||
20336 | fi | |
20337 | ||
20338 | ||
20339 | ||
20340 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20341 | if test "$wxUSE_REGEX" = "sys" ; then | |
20342 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20343 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20344 | { (exit 1); exit 1; }; } | |
20345 | else | |
20346 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20347 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20348 | wxUSE_REGEX=builtin | |
20349 | fi | |
20350 | else | |
20351 | wxUSE_REGEX=sys | |
20352 | cat >>confdefs.h <<\_ACEOF | |
20353 | #define WX_NO_REGEX_ADVANCED 1 | |
20354 | _ACEOF | |
20355 | ||
20356 | fi | |
20357 | fi | |
20358 | fi | |
20359 | ||
20360 | ||
20361 | ZLIB_LINK= | |
20362 | if test "$wxUSE_ZLIB" != "no" ; then | |
20363 | cat >>confdefs.h <<\_ACEOF | |
20364 | #define wxUSE_ZLIB 1 | |
20365 | _ACEOF | |
20366 | ||
20367 | ||
20368 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20369 | if test "$USE_DARWIN" = 1; then | |
20370 | system_zlib_h_ok="yes" | |
20371 | else | |
20372 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20373 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20374 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20376 | else | |
20377 | if test "$cross_compiling" = yes; then | |
20378 | unset ac_cv_header_zlib_h | |
20379 | ||
20380 | else | |
20381 | cat >conftest.$ac_ext <<_ACEOF | |
20382 | /* confdefs.h. */ | |
20383 | _ACEOF | |
20384 | cat confdefs.h >>conftest.$ac_ext | |
20385 | cat >>conftest.$ac_ext <<_ACEOF | |
20386 | /* end confdefs.h. */ | |
20387 | ||
20388 | #include <zlib.h> | |
20389 | #include <stdio.h> | |
20390 | ||
20391 | int main() | |
20392 | { | |
20393 | FILE *f=fopen("conftestval", "w"); | |
20394 | if (!f) exit(1); | |
20395 | fprintf(f, "%s", | |
20396 | ZLIB_VERSION[0] == '1' && | |
20397 | (ZLIB_VERSION[2] > '1' || | |
20398 | (ZLIB_VERSION[2] == '1' && | |
20399 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20400 | exit(0); | |
20401 | } | |
20402 | ||
20403 | _ACEOF | |
20404 | rm -f conftest$ac_exeext | |
20405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20406 | (eval $ac_link) 2>&5 | |
20407 | ac_status=$? | |
20408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20409 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20411 | (eval $ac_try) 2>&5 | |
20412 | ac_status=$? | |
20413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20414 | (exit $ac_status); }; }; then | |
20415 | ac_cv_header_zlib_h=`cat conftestval` | |
20416 | else | |
20417 | echo "$as_me: program exited with status $ac_status" >&5 | |
20418 | echo "$as_me: failed program was:" >&5 | |
20419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20420 | ||
20421 | ( exit $ac_status ) | |
20422 | ac_cv_header_zlib_h=no | |
20423 | fi | |
ac1cb8d3 | 20424 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20425 | fi |
20426 | ||
20427 | fi | |
20428 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20429 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20430 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20431 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20432 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20433 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20435 | fi | |
20436 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20437 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20438 | else | |
20439 | # Is the header compilable? | |
20440 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20441 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20442 | cat >conftest.$ac_ext <<_ACEOF | |
20443 | /* confdefs.h. */ | |
20444 | _ACEOF | |
20445 | cat confdefs.h >>conftest.$ac_ext | |
20446 | cat >>conftest.$ac_ext <<_ACEOF | |
20447 | /* end confdefs.h. */ | |
20448 | $ac_includes_default | |
20449 | #include <zlib.h> | |
20450 | _ACEOF | |
20451 | rm -f conftest.$ac_objext | |
20452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20453 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20454 | ac_status=$? |
ac1cb8d3 VS |
20455 | grep -v '^ *+' conftest.er1 >conftest.err |
20456 | rm -f conftest.er1 | |
20457 | cat conftest.err >&5 | |
a848cd7e SC |
20458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20459 | (exit $ac_status); } && | |
ea7db9ff DE |
20460 | { ac_try='test -z "$ac_c_werror_flag" |
20461 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20463 | (eval $ac_try) 2>&5 | |
20464 | ac_status=$? | |
20465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20466 | (exit $ac_status); }; } && | |
20467 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20469 | (eval $ac_try) 2>&5 | |
20470 | ac_status=$? | |
20471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20472 | (exit $ac_status); }; }; then | |
20473 | ac_header_compiler=yes | |
20474 | else | |
20475 | echo "$as_me: failed program was:" >&5 | |
20476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20477 | ||
20478 | ac_header_compiler=no | |
20479 | fi | |
ac1cb8d3 | 20480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20481 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20482 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20483 | ||
20484 | # Is the header present? | |
20485 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20486 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20487 | cat >conftest.$ac_ext <<_ACEOF | |
20488 | /* confdefs.h. */ | |
20489 | _ACEOF | |
20490 | cat confdefs.h >>conftest.$ac_ext | |
20491 | cat >>conftest.$ac_ext <<_ACEOF | |
20492 | /* end confdefs.h. */ | |
20493 | #include <zlib.h> | |
20494 | _ACEOF | |
20495 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20496 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20497 | ac_status=$? | |
20498 | grep -v '^ *+' conftest.er1 >conftest.err | |
20499 | rm -f conftest.er1 | |
20500 | cat conftest.err >&5 | |
20501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20502 | (exit $ac_status); } >/dev/null; then | |
20503 | if test -s conftest.err; then | |
20504 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20505 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20506 | else |
20507 | ac_cpp_err= | |
20508 | fi | |
20509 | else | |
20510 | ac_cpp_err=yes | |
20511 | fi | |
20512 | if test -z "$ac_cpp_err"; then | |
20513 | ac_header_preproc=yes | |
20514 | else | |
20515 | echo "$as_me: failed program was:" >&5 | |
20516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20517 | ||
20518 | ac_header_preproc=no | |
20519 | fi | |
20520 | rm -f conftest.err conftest.$ac_ext | |
20521 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20522 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20523 | ||
20524 | # So? What about this header? | |
ac1cb8d3 VS |
20525 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20526 | yes:no: ) | |
a848cd7e SC |
20527 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20528 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20529 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20530 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20531 | ac_header_preproc=yes | |
a848cd7e | 20532 | ;; |
ac1cb8d3 | 20533 | no:yes:* ) |
a848cd7e SC |
20534 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20535 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20536 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20537 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20538 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20539 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20540 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20541 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20542 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20543 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20544 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20545 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20546 | ( |
20547 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20548 | ## ----------------------------------------- ## |
20549 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20550 | ## ----------------------------------------- ## | |
a848cd7e SC |
20551 | _ASBOX |
20552 | ) | | |
20553 | sed "s/^/$as_me: WARNING: /" >&2 | |
20554 | ;; | |
20555 | esac | |
20556 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20557 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20558 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20560 | else | |
20561 | ac_cv_header_zlib_h=$ac_header_preproc | |
20562 | fi | |
20563 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20564 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20565 | ||
20566 | fi | |
20567 | ||
20568 | ||
20569 | ||
20570 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20571 | fi | |
20572 | ||
20573 | if test "$system_zlib_h_ok" = "yes"; then | |
20574 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20575 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20576 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20578 | else | |
20579 | ac_check_lib_save_LIBS=$LIBS | |
20580 | LIBS="-lz $LIBS" | |
20581 | cat >conftest.$ac_ext <<_ACEOF | |
20582 | /* confdefs.h. */ | |
20583 | _ACEOF | |
20584 | cat confdefs.h >>conftest.$ac_ext | |
20585 | cat >>conftest.$ac_ext <<_ACEOF | |
20586 | /* end confdefs.h. */ | |
20587 | ||
20588 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20589 | #ifdef __cplusplus | |
20590 | extern "C" | |
20591 | #endif | |
20592 | /* We use char because int might match the return type of a gcc2 | |
20593 | builtin and then its argument prototype would still apply. */ | |
20594 | char deflate (); | |
20595 | int | |
20596 | main () | |
20597 | { | |
20598 | deflate (); | |
20599 | ; | |
20600 | return 0; | |
20601 | } | |
20602 | _ACEOF | |
20603 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20605 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20606 | ac_status=$? |
ac1cb8d3 VS |
20607 | grep -v '^ *+' conftest.er1 >conftest.err |
20608 | rm -f conftest.er1 | |
20609 | cat conftest.err >&5 | |
a848cd7e SC |
20610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20611 | (exit $ac_status); } && | |
ea7db9ff DE |
20612 | { ac_try='test -z "$ac_c_werror_flag" |
20613 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20615 | (eval $ac_try) 2>&5 | |
20616 | ac_status=$? | |
20617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20618 | (exit $ac_status); }; } && | |
20619 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20621 | (eval $ac_try) 2>&5 | |
20622 | ac_status=$? | |
20623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20624 | (exit $ac_status); }; }; then | |
20625 | ac_cv_lib_z_deflate=yes | |
20626 | else | |
20627 | echo "$as_me: failed program was:" >&5 | |
20628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20629 | ||
20630 | ac_cv_lib_z_deflate=no | |
20631 | fi | |
ac1cb8d3 VS |
20632 | rm -f conftest.err conftest.$ac_objext \ |
20633 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20634 | LIBS=$ac_check_lib_save_LIBS |
20635 | fi | |
20636 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20637 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20638 | if test $ac_cv_lib_z_deflate = yes; then | |
20639 | ZLIB_LINK=" -lz" | |
20640 | fi | |
20641 | ||
20642 | fi | |
20643 | ||
20644 | if test "x$ZLIB_LINK" = "x" ; then | |
20645 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20646 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20647 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20648 | { (exit 1); exit 1; }; } | |
20649 | else | |
20650 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20651 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20652 | wxUSE_ZLIB=builtin | |
20653 | fi | |
20654 | else | |
20655 | wxUSE_ZLIB=sys | |
20656 | fi | |
20657 | fi | |
20658 | fi | |
20659 | ||
20660 | ||
20661 | PNG_LINK= | |
20662 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20663 | cat >>confdefs.h <<\_ACEOF | |
20664 | #define wxUSE_LIBPNG 1 | |
20665 | _ACEOF | |
20666 | ||
20667 | ||
20668 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20669 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20670 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20671 | wxUSE_LIBPNG=sys | |
20672 | fi | |
20673 | ||
20674 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20675 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20676 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20677 | wxUSE_LIBPNG=builtin | |
20678 | fi | |
20679 | ||
20680 | if test "$wxUSE_MGL" != 1 ; then | |
20681 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20682 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20683 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20684 | if test "${ac_cv_header_png_h+set}" = set; then | |
20685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20686 | else | |
20687 | if test "$cross_compiling" = yes; then | |
20688 | unset ac_cv_header_png_h | |
20689 | ||
20690 | else | |
20691 | cat >conftest.$ac_ext <<_ACEOF | |
20692 | /* confdefs.h. */ | |
20693 | _ACEOF | |
20694 | cat confdefs.h >>conftest.$ac_ext | |
20695 | cat >>conftest.$ac_ext <<_ACEOF | |
20696 | /* end confdefs.h. */ | |
20697 | ||
20698 | #include <png.h> | |
20699 | #include <stdio.h> | |
20700 | ||
20701 | int main() | |
20702 | { | |
20703 | FILE *f=fopen("conftestval", "w"); | |
20704 | if (!f) exit(1); | |
20705 | fprintf(f, "%s", | |
20706 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20707 | exit(0); | |
20708 | } | |
20709 | ||
20710 | _ACEOF | |
20711 | rm -f conftest$ac_exeext | |
20712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20713 | (eval $ac_link) 2>&5 | |
20714 | ac_status=$? | |
20715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20716 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20718 | (eval $ac_try) 2>&5 | |
20719 | ac_status=$? | |
20720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20721 | (exit $ac_status); }; }; then | |
20722 | ac_cv_header_png_h=`cat conftestval` | |
20723 | else | |
20724 | echo "$as_me: program exited with status $ac_status" >&5 | |
20725 | echo "$as_me: failed program was:" >&5 | |
20726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20727 | ||
20728 | ( exit $ac_status ) | |
20729 | ac_cv_header_png_h=no | |
20730 | fi | |
ac1cb8d3 | 20731 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20732 | fi |
20733 | ||
20734 | fi | |
20735 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20736 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20737 | if test "${ac_cv_header_png_h+set}" = set; then | |
20738 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20739 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20740 | if test "${ac_cv_header_png_h+set}" = set; then | |
20741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20742 | fi | |
20743 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20744 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20745 | else | |
20746 | # Is the header compilable? | |
20747 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20748 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20749 | cat >conftest.$ac_ext <<_ACEOF | |
20750 | /* confdefs.h. */ | |
20751 | _ACEOF | |
20752 | cat confdefs.h >>conftest.$ac_ext | |
20753 | cat >>conftest.$ac_ext <<_ACEOF | |
20754 | /* end confdefs.h. */ | |
20755 | $ac_includes_default | |
20756 | #include <png.h> | |
20757 | _ACEOF | |
20758 | rm -f conftest.$ac_objext | |
20759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20760 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20761 | ac_status=$? |
ac1cb8d3 VS |
20762 | grep -v '^ *+' conftest.er1 >conftest.err |
20763 | rm -f conftest.er1 | |
20764 | cat conftest.err >&5 | |
a848cd7e SC |
20765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20766 | (exit $ac_status); } && | |
ea7db9ff DE |
20767 | { ac_try='test -z "$ac_c_werror_flag" |
20768 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20770 | (eval $ac_try) 2>&5 | |
20771 | ac_status=$? | |
20772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20773 | (exit $ac_status); }; } && | |
20774 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20776 | (eval $ac_try) 2>&5 | |
20777 | ac_status=$? | |
20778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20779 | (exit $ac_status); }; }; then | |
20780 | ac_header_compiler=yes | |
20781 | else | |
20782 | echo "$as_me: failed program was:" >&5 | |
20783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20784 | ||
20785 | ac_header_compiler=no | |
20786 | fi | |
ac1cb8d3 | 20787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20788 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20789 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20790 | ||
20791 | # Is the header present? | |
20792 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20793 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20794 | cat >conftest.$ac_ext <<_ACEOF | |
20795 | /* confdefs.h. */ | |
20796 | _ACEOF | |
20797 | cat confdefs.h >>conftest.$ac_ext | |
20798 | cat >>conftest.$ac_ext <<_ACEOF | |
20799 | /* end confdefs.h. */ | |
20800 | #include <png.h> | |
20801 | _ACEOF | |
20802 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20803 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20804 | ac_status=$? | |
20805 | grep -v '^ *+' conftest.er1 >conftest.err | |
20806 | rm -f conftest.er1 | |
20807 | cat conftest.err >&5 | |
20808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20809 | (exit $ac_status); } >/dev/null; then | |
20810 | if test -s conftest.err; then | |
20811 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20812 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20813 | else |
20814 | ac_cpp_err= | |
20815 | fi | |
20816 | else | |
20817 | ac_cpp_err=yes | |
20818 | fi | |
20819 | if test -z "$ac_cpp_err"; then | |
20820 | ac_header_preproc=yes | |
20821 | else | |
20822 | echo "$as_me: failed program was:" >&5 | |
20823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20824 | ||
20825 | ac_header_preproc=no | |
20826 | fi | |
20827 | rm -f conftest.err conftest.$ac_ext | |
20828 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20829 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20830 | ||
20831 | # So? What about this header? | |
ac1cb8d3 VS |
20832 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20833 | yes:no: ) | |
a848cd7e SC |
20834 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20835 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20836 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20837 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20838 | ac_header_preproc=yes | |
a848cd7e | 20839 | ;; |
ac1cb8d3 | 20840 | no:yes:* ) |
a848cd7e SC |
20841 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20842 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20843 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
20844 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
20845 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
20846 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
20847 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20848 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20849 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
20850 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20851 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
20852 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20853 | ( |
20854 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20855 | ## ----------------------------------------- ## |
20856 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20857 | ## ----------------------------------------- ## | |
a848cd7e SC |
20858 | _ASBOX |
20859 | ) | | |
20860 | sed "s/^/$as_me: WARNING: /" >&2 | |
20861 | ;; | |
20862 | esac | |
20863 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20864 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20865 | if test "${ac_cv_header_png_h+set}" = set; then | |
20866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20867 | else | |
20868 | ac_cv_header_png_h=$ac_header_preproc | |
20869 | fi | |
20870 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20871 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20872 | ||
20873 | fi | |
20874 | ||
20875 | ||
20876 | ||
20877 | if test "$ac_cv_header_png_h" = "yes"; then | |
20878 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
20879 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
20880 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
20881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20882 | else | |
20883 | ac_check_lib_save_LIBS=$LIBS | |
20884 | LIBS="-lpng -lz -lm $LIBS" | |
20885 | cat >conftest.$ac_ext <<_ACEOF | |
20886 | /* confdefs.h. */ | |
20887 | _ACEOF | |
20888 | cat confdefs.h >>conftest.$ac_ext | |
20889 | cat >>conftest.$ac_ext <<_ACEOF | |
20890 | /* end confdefs.h. */ | |
20891 | ||
20892 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20893 | #ifdef __cplusplus | |
20894 | extern "C" | |
20895 | #endif | |
20896 | /* We use char because int might match the return type of a gcc2 | |
20897 | builtin and then its argument prototype would still apply. */ | |
20898 | char png_check_sig (); | |
20899 | int | |
20900 | main () | |
20901 | { | |
20902 | png_check_sig (); | |
20903 | ; | |
20904 | return 0; | |
20905 | } | |
20906 | _ACEOF | |
20907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20909 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20910 | ac_status=$? |
ac1cb8d3 VS |
20911 | grep -v '^ *+' conftest.er1 >conftest.err |
20912 | rm -f conftest.er1 | |
20913 | cat conftest.err >&5 | |
a848cd7e SC |
20914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20915 | (exit $ac_status); } && | |
ea7db9ff DE |
20916 | { ac_try='test -z "$ac_c_werror_flag" |
20917 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20919 | (eval $ac_try) 2>&5 | |
20920 | ac_status=$? | |
20921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20922 | (exit $ac_status); }; } && | |
20923 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
20929 | ac_cv_lib_png_png_check_sig=yes | |
20930 | else | |
20931 | echo "$as_me: failed program was:" >&5 | |
20932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20933 | ||
20934 | ac_cv_lib_png_png_check_sig=no | |
20935 | fi | |
ac1cb8d3 VS |
20936 | rm -f conftest.err conftest.$ac_objext \ |
20937 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20938 | LIBS=$ac_check_lib_save_LIBS |
20939 | fi | |
20940 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
20941 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
20942 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
20943 | PNG_LINK=" -lpng -lz" | |
20944 | fi | |
20945 | ||
20946 | fi | |
20947 | ||
20948 | if test "x$PNG_LINK" = "x" ; then | |
20949 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
20950 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
20951 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
20952 | { (exit 1); exit 1; }; } | |
20953 | else | |
20954 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
20955 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
20956 | wxUSE_LIBPNG=builtin | |
20957 | fi | |
20958 | else | |
20959 | wxUSE_LIBPNG=sys | |
20960 | fi | |
20961 | fi | |
20962 | fi | |
20963 | ||
20964 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
20965 | fi | |
20966 | ||
20967 | ||
20968 | JPEG_LINK= | |
20969 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
20970 | cat >>confdefs.h <<\_ACEOF | |
20971 | #define wxUSE_LIBJPEG 1 | |
20972 | _ACEOF | |
20973 | ||
20974 | ||
20975 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
20976 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
20977 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
20978 | wxUSE_LIBJPEG=sys | |
20979 | fi | |
20980 | ||
20981 | if test "$wxUSE_MGL" != 1 ; then | |
20982 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
20983 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
20984 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
20985 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
20986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20987 | else | |
20988 | cat >conftest.$ac_ext <<_ACEOF | |
20989 | /* confdefs.h. */ | |
20990 | _ACEOF | |
20991 | cat confdefs.h >>conftest.$ac_ext | |
20992 | cat >>conftest.$ac_ext <<_ACEOF | |
20993 | /* end confdefs.h. */ | |
20994 | ||
20995 | #undef HAVE_STDLIB_H | |
20996 | #include <stdio.h> | |
20997 | #include <jpeglib.h> | |
20998 | ||
20999 | int | |
21000 | main () | |
21001 | { | |
21002 | ||
21003 | ||
21004 | ; | |
21005 | return 0; | |
21006 | } | |
21007 | _ACEOF | |
21008 | rm -f conftest.$ac_objext | |
21009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21010 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21011 | ac_status=$? |
ac1cb8d3 VS |
21012 | grep -v '^ *+' conftest.er1 >conftest.err |
21013 | rm -f conftest.er1 | |
21014 | cat conftest.err >&5 | |
a848cd7e SC |
21015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21016 | (exit $ac_status); } && | |
ea7db9ff DE |
21017 | { ac_try='test -z "$ac_c_werror_flag" |
21018 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21020 | (eval $ac_try) 2>&5 | |
21021 | ac_status=$? | |
21022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21023 | (exit $ac_status); }; } && | |
21024 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21026 | (eval $ac_try) 2>&5 | |
21027 | ac_status=$? | |
21028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21029 | (exit $ac_status); }; }; then | |
21030 | ac_cv_header_jpeglib_h=yes | |
21031 | else | |
21032 | echo "$as_me: failed program was:" >&5 | |
21033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21034 | ||
21035 | ac_cv_header_jpeglib_h=no | |
21036 | ||
21037 | fi | |
ac1cb8d3 | 21038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21039 | |
21040 | fi | |
21041 | ||
21042 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21043 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21044 | ||
21045 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21046 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21047 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21048 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21050 | else | |
21051 | ac_check_lib_save_LIBS=$LIBS | |
21052 | LIBS="-ljpeg $LIBS" | |
21053 | cat >conftest.$ac_ext <<_ACEOF | |
21054 | /* confdefs.h. */ | |
21055 | _ACEOF | |
21056 | cat confdefs.h >>conftest.$ac_ext | |
21057 | cat >>conftest.$ac_ext <<_ACEOF | |
21058 | /* end confdefs.h. */ | |
21059 | ||
21060 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21061 | #ifdef __cplusplus | |
21062 | extern "C" | |
21063 | #endif | |
21064 | /* We use char because int might match the return type of a gcc2 | |
21065 | builtin and then its argument prototype would still apply. */ | |
21066 | char jpeg_read_header (); | |
21067 | int | |
21068 | main () | |
21069 | { | |
21070 | jpeg_read_header (); | |
21071 | ; | |
21072 | return 0; | |
21073 | } | |
21074 | _ACEOF | |
21075 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21077 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21078 | ac_status=$? |
ac1cb8d3 VS |
21079 | grep -v '^ *+' conftest.er1 >conftest.err |
21080 | rm -f conftest.er1 | |
21081 | cat conftest.err >&5 | |
a848cd7e SC |
21082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21083 | (exit $ac_status); } && | |
ea7db9ff DE |
21084 | { ac_try='test -z "$ac_c_werror_flag" |
21085 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21087 | (eval $ac_try) 2>&5 | |
21088 | ac_status=$? | |
21089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21090 | (exit $ac_status); }; } && | |
21091 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21093 | (eval $ac_try) 2>&5 | |
21094 | ac_status=$? | |
21095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21096 | (exit $ac_status); }; }; then | |
21097 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21098 | else | |
21099 | echo "$as_me: failed program was:" >&5 | |
21100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21101 | ||
21102 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21103 | fi | |
ac1cb8d3 VS |
21104 | rm -f conftest.err conftest.$ac_objext \ |
21105 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21106 | LIBS=$ac_check_lib_save_LIBS |
21107 | fi | |
21108 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21109 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21110 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21111 | JPEG_LINK=" -ljpeg" | |
21112 | fi | |
21113 | ||
21114 | fi | |
21115 | ||
21116 | if test "x$JPEG_LINK" = "x" ; then | |
21117 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21118 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21119 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21120 | { (exit 1); exit 1; }; } | |
21121 | else | |
21122 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21123 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21124 | wxUSE_LIBJPEG=builtin | |
21125 | fi | |
21126 | else | |
21127 | wxUSE_LIBJPEG=sys | |
21128 | fi | |
21129 | fi | |
21130 | fi | |
21131 | fi | |
21132 | ||
21133 | ||
21134 | TIFF_LINK= | |
21135 | TIFF_PREREQ_LINKS=-lm | |
21136 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21137 | cat >>confdefs.h <<\_ACEOF | |
21138 | #define wxUSE_LIBTIFF 1 | |
21139 | _ACEOF | |
21140 | ||
21141 | ||
21142 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21143 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21144 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21145 | fi | |
21146 | if test "$wxUSE_ZLIB" = "sys"; then | |
21147 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21148 | fi | |
21149 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21150 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21151 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21152 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21154 | fi | |
21155 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21156 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21157 | else | |
21158 | # Is the header compilable? | |
21159 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21160 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21161 | cat >conftest.$ac_ext <<_ACEOF | |
21162 | /* confdefs.h. */ | |
21163 | _ACEOF | |
21164 | cat confdefs.h >>conftest.$ac_ext | |
21165 | cat >>conftest.$ac_ext <<_ACEOF | |
21166 | /* end confdefs.h. */ | |
21167 | $ac_includes_default | |
21168 | #include <tiffio.h> | |
21169 | _ACEOF | |
21170 | rm -f conftest.$ac_objext | |
21171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21172 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21173 | ac_status=$? |
ac1cb8d3 VS |
21174 | grep -v '^ *+' conftest.er1 >conftest.err |
21175 | rm -f conftest.er1 | |
21176 | cat conftest.err >&5 | |
a848cd7e SC |
21177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21178 | (exit $ac_status); } && | |
ea7db9ff DE |
21179 | { ac_try='test -z "$ac_c_werror_flag" |
21180 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21182 | (eval $ac_try) 2>&5 | |
21183 | ac_status=$? | |
21184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21185 | (exit $ac_status); }; } && | |
21186 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21188 | (eval $ac_try) 2>&5 | |
21189 | ac_status=$? | |
21190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21191 | (exit $ac_status); }; }; then | |
21192 | ac_header_compiler=yes | |
21193 | else | |
21194 | echo "$as_me: failed program was:" >&5 | |
21195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21196 | ||
21197 | ac_header_compiler=no | |
21198 | fi | |
ac1cb8d3 | 21199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21200 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21201 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21202 | ||
21203 | # Is the header present? | |
21204 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21205 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21206 | cat >conftest.$ac_ext <<_ACEOF | |
21207 | /* confdefs.h. */ | |
21208 | _ACEOF | |
21209 | cat confdefs.h >>conftest.$ac_ext | |
21210 | cat >>conftest.$ac_ext <<_ACEOF | |
21211 | /* end confdefs.h. */ | |
21212 | #include <tiffio.h> | |
21213 | _ACEOF | |
21214 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21215 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21216 | ac_status=$? | |
21217 | grep -v '^ *+' conftest.er1 >conftest.err | |
21218 | rm -f conftest.er1 | |
21219 | cat conftest.err >&5 | |
21220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21221 | (exit $ac_status); } >/dev/null; then | |
21222 | if test -s conftest.err; then | |
21223 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21224 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21225 | else |
21226 | ac_cpp_err= | |
21227 | fi | |
21228 | else | |
21229 | ac_cpp_err=yes | |
21230 | fi | |
21231 | if test -z "$ac_cpp_err"; then | |
21232 | ac_header_preproc=yes | |
21233 | else | |
21234 | echo "$as_me: failed program was:" >&5 | |
21235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21236 | ||
21237 | ac_header_preproc=no | |
21238 | fi | |
21239 | rm -f conftest.err conftest.$ac_ext | |
21240 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21241 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21242 | ||
21243 | # So? What about this header? | |
ac1cb8d3 VS |
21244 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21245 | yes:no: ) | |
a848cd7e SC |
21246 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21247 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21248 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21249 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21250 | ac_header_preproc=yes | |
a848cd7e | 21251 | ;; |
ac1cb8d3 | 21252 | no:yes:* ) |
a848cd7e SC |
21253 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21254 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21255 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21256 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21257 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21258 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21259 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21260 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21261 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21262 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21263 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21264 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21265 | ( |
21266 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21267 | ## ----------------------------------------- ## |
21268 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21269 | ## ----------------------------------------- ## | |
a848cd7e SC |
21270 | _ASBOX |
21271 | ) | | |
21272 | sed "s/^/$as_me: WARNING: /" >&2 | |
21273 | ;; | |
21274 | esac | |
21275 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21276 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21277 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21279 | else | |
21280 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21281 | fi | |
21282 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21283 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21284 | ||
21285 | fi | |
21286 | if test $ac_cv_header_tiffio_h = yes; then | |
21287 | ||
21288 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21289 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21290 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21292 | else | |
21293 | ac_check_lib_save_LIBS=$LIBS | |
21294 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21295 | cat >conftest.$ac_ext <<_ACEOF | |
21296 | /* confdefs.h. */ | |
21297 | _ACEOF | |
21298 | cat confdefs.h >>conftest.$ac_ext | |
21299 | cat >>conftest.$ac_ext <<_ACEOF | |
21300 | /* end confdefs.h. */ | |
21301 | ||
21302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21303 | #ifdef __cplusplus | |
21304 | extern "C" | |
21305 | #endif | |
21306 | /* We use char because int might match the return type of a gcc2 | |
21307 | builtin and then its argument prototype would still apply. */ | |
21308 | char TIFFError (); | |
21309 | int | |
21310 | main () | |
21311 | { | |
21312 | TIFFError (); | |
21313 | ; | |
21314 | return 0; | |
21315 | } | |
21316 | _ACEOF | |
21317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21319 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21320 | ac_status=$? |
ac1cb8d3 VS |
21321 | grep -v '^ *+' conftest.er1 >conftest.err |
21322 | rm -f conftest.er1 | |
21323 | cat conftest.err >&5 | |
a848cd7e SC |
21324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21325 | (exit $ac_status); } && | |
ea7db9ff DE |
21326 | { ac_try='test -z "$ac_c_werror_flag" |
21327 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21329 | (eval $ac_try) 2>&5 | |
21330 | ac_status=$? | |
21331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21332 | (exit $ac_status); }; } && | |
21333 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21335 | (eval $ac_try) 2>&5 | |
21336 | ac_status=$? | |
21337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21338 | (exit $ac_status); }; }; then | |
21339 | ac_cv_lib_tiff_TIFFError=yes | |
21340 | else | |
21341 | echo "$as_me: failed program was:" >&5 | |
21342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21343 | ||
21344 | ac_cv_lib_tiff_TIFFError=no | |
21345 | fi | |
ac1cb8d3 VS |
21346 | rm -f conftest.err conftest.$ac_objext \ |
21347 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21348 | LIBS=$ac_check_lib_save_LIBS |
21349 | fi | |
21350 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21351 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21352 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21353 | TIFF_LINK=" -ltiff" | |
21354 | fi | |
21355 | ||
21356 | ||
21357 | ||
21358 | fi | |
21359 | ||
21360 | ||
21361 | ||
21362 | if test "x$TIFF_LINK" = "x" ; then | |
21363 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21364 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21365 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21366 | { (exit 1); exit 1; }; } | |
21367 | else | |
21368 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21369 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21370 | wxUSE_LIBTIFF=builtin | |
21371 | fi | |
21372 | else | |
21373 | wxUSE_LIBTIFF=sys | |
21374 | fi | |
21375 | fi | |
21376 | fi | |
21377 | ||
21378 | ||
21379 | if test "$wxUSE_EXPAT" != "no"; then | |
21380 | wxUSE_XML=yes | |
21381 | cat >>confdefs.h <<\_ACEOF | |
21382 | #define wxUSE_EXPAT 1 | |
21383 | _ACEOF | |
21384 | ||
21385 | cat >>confdefs.h <<\_ACEOF | |
21386 | #define wxUSE_XML 1 | |
21387 | _ACEOF | |
21388 | ||
21389 | ||
21390 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21391 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21392 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21393 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21394 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21396 | fi | |
21397 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21398 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21399 | else | |
21400 | # Is the header compilable? | |
21401 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21402 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21403 | cat >conftest.$ac_ext <<_ACEOF | |
21404 | /* confdefs.h. */ | |
21405 | _ACEOF | |
21406 | cat confdefs.h >>conftest.$ac_ext | |
21407 | cat >>conftest.$ac_ext <<_ACEOF | |
21408 | /* end confdefs.h. */ | |
21409 | $ac_includes_default | |
21410 | #include <expat.h> | |
21411 | _ACEOF | |
21412 | rm -f conftest.$ac_objext | |
21413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21414 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21415 | ac_status=$? |
ac1cb8d3 VS |
21416 | grep -v '^ *+' conftest.er1 >conftest.err |
21417 | rm -f conftest.er1 | |
21418 | cat conftest.err >&5 | |
a848cd7e SC |
21419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21420 | (exit $ac_status); } && | |
ea7db9ff DE |
21421 | { ac_try='test -z "$ac_c_werror_flag" |
21422 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21424 | (eval $ac_try) 2>&5 | |
21425 | ac_status=$? | |
21426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21427 | (exit $ac_status); }; } && | |
21428 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21430 | (eval $ac_try) 2>&5 | |
21431 | ac_status=$? | |
21432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21433 | (exit $ac_status); }; }; then | |
21434 | ac_header_compiler=yes | |
21435 | else | |
21436 | echo "$as_me: failed program was:" >&5 | |
21437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21438 | ||
21439 | ac_header_compiler=no | |
21440 | fi | |
ac1cb8d3 | 21441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21442 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21443 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21444 | ||
21445 | # Is the header present? | |
21446 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21447 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21448 | cat >conftest.$ac_ext <<_ACEOF | |
21449 | /* confdefs.h. */ | |
21450 | _ACEOF | |
21451 | cat confdefs.h >>conftest.$ac_ext | |
21452 | cat >>conftest.$ac_ext <<_ACEOF | |
21453 | /* end confdefs.h. */ | |
21454 | #include <expat.h> | |
21455 | _ACEOF | |
21456 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21457 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21458 | ac_status=$? | |
21459 | grep -v '^ *+' conftest.er1 >conftest.err | |
21460 | rm -f conftest.er1 | |
21461 | cat conftest.err >&5 | |
21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21463 | (exit $ac_status); } >/dev/null; then | |
21464 | if test -s conftest.err; then | |
21465 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21466 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21467 | else |
21468 | ac_cpp_err= | |
21469 | fi | |
21470 | else | |
21471 | ac_cpp_err=yes | |
21472 | fi | |
21473 | if test -z "$ac_cpp_err"; then | |
21474 | ac_header_preproc=yes | |
21475 | else | |
21476 | echo "$as_me: failed program was:" >&5 | |
21477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21478 | ||
21479 | ac_header_preproc=no | |
21480 | fi | |
21481 | rm -f conftest.err conftest.$ac_ext | |
21482 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21483 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21484 | ||
21485 | # So? What about this header? | |
ac1cb8d3 VS |
21486 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21487 | yes:no: ) | |
a848cd7e SC |
21488 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21489 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21490 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21491 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21492 | ac_header_preproc=yes | |
a848cd7e | 21493 | ;; |
ac1cb8d3 | 21494 | no:yes:* ) |
a848cd7e SC |
21495 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21496 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21497 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21498 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21499 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21500 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21501 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21502 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21503 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21504 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21505 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21506 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21507 | ( |
21508 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21509 | ## ----------------------------------------- ## |
21510 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21511 | ## ----------------------------------------- ## | |
a848cd7e SC |
21512 | _ASBOX |
21513 | ) | | |
21514 | sed "s/^/$as_me: WARNING: /" >&2 | |
21515 | ;; | |
21516 | esac | |
21517 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21518 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21519 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21521 | else | |
21522 | ac_cv_header_expat_h=$ac_header_preproc | |
21523 | fi | |
21524 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21525 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21526 | ||
21527 | fi | |
21528 | if test $ac_cv_header_expat_h = yes; then | |
21529 | found_expat_h=1 | |
21530 | fi | |
21531 | ||
21532 | ||
21533 | if test "x$found_expat_h" = "x1"; then | |
21534 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21535 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21536 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21538 | else | |
21539 | ||
21540 | ||
21541 | ||
21542 | ac_ext=cc | |
21543 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21544 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21545 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21546 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21547 | ||
21548 | cat >conftest.$ac_ext <<_ACEOF | |
21549 | /* confdefs.h. */ | |
21550 | _ACEOF | |
21551 | cat confdefs.h >>conftest.$ac_ext | |
21552 | cat >>conftest.$ac_ext <<_ACEOF | |
21553 | /* end confdefs.h. */ | |
21554 | #include <expat.h> | |
21555 | int | |
21556 | main () | |
21557 | { | |
21558 | ||
21559 | ; | |
21560 | return 0; | |
21561 | } | |
21562 | _ACEOF | |
21563 | rm -f conftest.$ac_objext | |
21564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21566 | ac_status=$? |
ac1cb8d3 VS |
21567 | grep -v '^ *+' conftest.er1 >conftest.err |
21568 | rm -f conftest.er1 | |
21569 | cat conftest.err >&5 | |
a848cd7e SC |
21570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21571 | (exit $ac_status); } && | |
ea7db9ff DE |
21572 | { ac_try='test -z "$ac_cxx_werror_flag" |
21573 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21575 | (eval $ac_try) 2>&5 | |
21576 | ac_status=$? | |
21577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21578 | (exit $ac_status); }; } && | |
21579 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21581 | (eval $ac_try) 2>&5 | |
21582 | ac_status=$? | |
21583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21584 | (exit $ac_status); }; }; then | |
21585 | wx_cv_expat_is_not_broken=yes | |
21586 | else | |
21587 | echo "$as_me: failed program was:" >&5 | |
21588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21589 | ||
21590 | wx_cv_expat_is_not_broken=no | |
21591 | ||
21592 | fi | |
ac1cb8d3 | 21593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21594 | ac_ext=c |
21595 | ac_cpp='$CPP $CPPFLAGS' | |
21596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21599 | ||
21600 | ||
21601 | ||
21602 | fi | |
21603 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21604 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21605 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21606 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21607 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21608 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21610 | else | |
21611 | ac_check_lib_save_LIBS=$LIBS | |
21612 | LIBS="-lexpat $LIBS" | |
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 | ||
21620 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21621 | #ifdef __cplusplus | |
21622 | extern "C" | |
21623 | #endif | |
21624 | /* We use char because int might match the return type of a gcc2 | |
21625 | builtin and then its argument prototype would still apply. */ | |
21626 | char XML_ParserCreate (); | |
21627 | int | |
21628 | main () | |
21629 | { | |
21630 | XML_ParserCreate (); | |
21631 | ; | |
21632 | return 0; | |
21633 | } | |
21634 | _ACEOF | |
21635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21637 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21638 | ac_status=$? |
ac1cb8d3 VS |
21639 | grep -v '^ *+' conftest.er1 >conftest.err |
21640 | rm -f conftest.er1 | |
21641 | cat conftest.err >&5 | |
a848cd7e SC |
21642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21643 | (exit $ac_status); } && | |
ea7db9ff DE |
21644 | { ac_try='test -z "$ac_c_werror_flag" |
21645 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21647 | (eval $ac_try) 2>&5 | |
21648 | ac_status=$? | |
21649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21650 | (exit $ac_status); }; } && | |
21651 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21653 | (eval $ac_try) 2>&5 | |
21654 | ac_status=$? | |
21655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21656 | (exit $ac_status); }; }; then | |
21657 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21658 | else | |
21659 | echo "$as_me: failed program was:" >&5 | |
21660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21661 | ||
21662 | ac_cv_lib_expat_XML_ParserCreate=no | |
21663 | fi | |
ac1cb8d3 VS |
21664 | rm -f conftest.err conftest.$ac_objext \ |
21665 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21666 | LIBS=$ac_check_lib_save_LIBS |
21667 | fi | |
21668 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21669 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21670 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21671 | EXPAT_LINK=" -lexpat" | |
21672 | fi | |
21673 | ||
21674 | fi | |
21675 | fi | |
21676 | if test "x$EXPAT_LINK" = "x" ; then | |
21677 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21678 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21679 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21680 | { (exit 1); exit 1; }; } | |
21681 | else | |
21682 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21683 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21684 | wxUSE_EXPAT=builtin | |
21685 | fi | |
21686 | else | |
21687 | wxUSE_EXPAT=sys | |
21688 | fi | |
21689 | fi | |
21690 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21691 | ||
21692 | ||
21693 | subdirs="$subdirs src/expat" | |
21694 | ||
21695 | fi | |
21696 | fi | |
21697 | ||
21698 | ||
21699 | ||
21700 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21701 | ||
21702 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21703 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21704 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21705 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21707 | fi | |
21708 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21709 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21710 | else | |
21711 | # Is the header compilable? | |
21712 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21713 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21714 | cat >conftest.$ac_ext <<_ACEOF | |
21715 | /* confdefs.h. */ | |
21716 | _ACEOF | |
21717 | cat confdefs.h >>conftest.$ac_ext | |
21718 | cat >>conftest.$ac_ext <<_ACEOF | |
21719 | /* end confdefs.h. */ | |
21720 | $ac_includes_default | |
21721 | #include <mspack.h> | |
21722 | _ACEOF | |
21723 | rm -f conftest.$ac_objext | |
21724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21725 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21726 | ac_status=$? |
ac1cb8d3 VS |
21727 | grep -v '^ *+' conftest.er1 >conftest.err |
21728 | rm -f conftest.er1 | |
21729 | cat conftest.err >&5 | |
a848cd7e SC |
21730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21731 | (exit $ac_status); } && | |
ea7db9ff DE |
21732 | { ac_try='test -z "$ac_c_werror_flag" |
21733 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21735 | (eval $ac_try) 2>&5 | |
21736 | ac_status=$? | |
21737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21738 | (exit $ac_status); }; } && | |
21739 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21741 | (eval $ac_try) 2>&5 | |
21742 | ac_status=$? | |
21743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21744 | (exit $ac_status); }; }; then | |
21745 | ac_header_compiler=yes | |
21746 | else | |
21747 | echo "$as_me: failed program was:" >&5 | |
21748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21749 | ||
21750 | ac_header_compiler=no | |
21751 | fi | |
ac1cb8d3 | 21752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21753 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21754 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21755 | ||
21756 | # Is the header present? | |
21757 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21758 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21759 | cat >conftest.$ac_ext <<_ACEOF | |
21760 | /* confdefs.h. */ | |
21761 | _ACEOF | |
21762 | cat confdefs.h >>conftest.$ac_ext | |
21763 | cat >>conftest.$ac_ext <<_ACEOF | |
21764 | /* end confdefs.h. */ | |
21765 | #include <mspack.h> | |
21766 | _ACEOF | |
21767 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21768 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21769 | ac_status=$? | |
21770 | grep -v '^ *+' conftest.er1 >conftest.err | |
21771 | rm -f conftest.er1 | |
21772 | cat conftest.err >&5 | |
21773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21774 | (exit $ac_status); } >/dev/null; then | |
21775 | if test -s conftest.err; then | |
21776 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21777 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21778 | else |
21779 | ac_cpp_err= | |
21780 | fi | |
21781 | else | |
21782 | ac_cpp_err=yes | |
21783 | fi | |
21784 | if test -z "$ac_cpp_err"; then | |
21785 | ac_header_preproc=yes | |
21786 | else | |
21787 | echo "$as_me: failed program was:" >&5 | |
21788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21789 | ||
21790 | ac_header_preproc=no | |
21791 | fi | |
21792 | rm -f conftest.err conftest.$ac_ext | |
21793 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21794 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21795 | ||
21796 | # So? What about this header? | |
ac1cb8d3 VS |
21797 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21798 | yes:no: ) | |
a848cd7e SC |
21799 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21800 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21801 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21802 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21803 | ac_header_preproc=yes | |
a848cd7e | 21804 | ;; |
ac1cb8d3 | 21805 | no:yes:* ) |
a848cd7e SC |
21806 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21807 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21808 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21809 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21810 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21811 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21812 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21813 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21814 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21815 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21816 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21817 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21818 | ( |
21819 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21820 | ## ----------------------------------------- ## |
21821 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21822 | ## ----------------------------------------- ## | |
a848cd7e SC |
21823 | _ASBOX |
21824 | ) | | |
21825 | sed "s/^/$as_me: WARNING: /" >&2 | |
21826 | ;; | |
21827 | esac | |
21828 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21829 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21830 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21832 | else | |
21833 | ac_cv_header_mspack_h=$ac_header_preproc | |
21834 | fi | |
21835 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21836 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21837 | ||
21838 | fi | |
21839 | if test $ac_cv_header_mspack_h = yes; then | |
21840 | found_mspack_h=1 | |
21841 | fi | |
21842 | ||
21843 | ||
21844 | if test "x$found_mspack_h" = "x1"; then | |
21845 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21846 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21847 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21849 | else | |
21850 | ac_check_lib_save_LIBS=$LIBS | |
21851 | LIBS="-lmspack $LIBS" | |
21852 | cat >conftest.$ac_ext <<_ACEOF | |
21853 | /* confdefs.h. */ | |
21854 | _ACEOF | |
21855 | cat confdefs.h >>conftest.$ac_ext | |
21856 | cat >>conftest.$ac_ext <<_ACEOF | |
21857 | /* end confdefs.h. */ | |
21858 | ||
21859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21860 | #ifdef __cplusplus | |
21861 | extern "C" | |
21862 | #endif | |
21863 | /* We use char because int might match the return type of a gcc2 | |
21864 | builtin and then its argument prototype would still apply. */ | |
21865 | char mspack_create_chm_decompressor (); | |
21866 | int | |
21867 | main () | |
21868 | { | |
21869 | mspack_create_chm_decompressor (); | |
21870 | ; | |
21871 | return 0; | |
21872 | } | |
21873 | _ACEOF | |
21874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21876 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21877 | ac_status=$? |
ac1cb8d3 VS |
21878 | grep -v '^ *+' conftest.er1 >conftest.err |
21879 | rm -f conftest.er1 | |
21880 | cat conftest.err >&5 | |
a848cd7e SC |
21881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21882 | (exit $ac_status); } && | |
ea7db9ff DE |
21883 | { ac_try='test -z "$ac_c_werror_flag" |
21884 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21886 | (eval $ac_try) 2>&5 | |
21887 | ac_status=$? | |
21888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21889 | (exit $ac_status); }; } && | |
21890 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21892 | (eval $ac_try) 2>&5 | |
21893 | ac_status=$? | |
21894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21895 | (exit $ac_status); }; }; then | |
21896 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
21897 | else | |
21898 | echo "$as_me: failed program was:" >&5 | |
21899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21900 | ||
21901 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
21902 | fi | |
ac1cb8d3 VS |
21903 | rm -f conftest.err conftest.$ac_objext \ |
21904 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21905 | LIBS=$ac_check_lib_save_LIBS |
21906 | fi | |
21907 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
21908 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
21909 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
21910 | MSPACK_LINK=" -lmspack" | |
21911 | fi | |
21912 | ||
21913 | fi | |
21914 | if test "x$MSPACK_LINK" = "x" ; then | |
21915 | wxUSE_LIBMSPACK=no | |
21916 | else | |
21917 | cat >>confdefs.h <<\_ACEOF | |
21918 | #define wxUSE_LIBMSPACK 1 | |
21919 | _ACEOF | |
21920 | ||
21921 | fi | |
21922 | fi | |
21923 | ||
21924 | ||
21925 | ||
21926 | AFMINSTALL= | |
21927 | WIN32INSTALL= | |
21928 | ||
21929 | TOOLKIT= | |
21930 | TOOLKIT_INCLUDE= | |
21931 | WIDGET_SET= | |
21932 | ||
21933 | if test "$USE_WIN32" = 1 ; then | |
21934 | ||
21935 | for ac_header in w32api.h | |
21936 | do | |
21937 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21939 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21940 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21941 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21943 | fi | |
21944 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21945 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21946 | else | |
21947 | # Is the header compilable? | |
21948 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21949 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21950 | cat >conftest.$ac_ext <<_ACEOF | |
21951 | /* confdefs.h. */ | |
21952 | _ACEOF | |
21953 | cat confdefs.h >>conftest.$ac_ext | |
21954 | cat >>conftest.$ac_ext <<_ACEOF | |
21955 | /* end confdefs.h. */ | |
21956 | $ac_includes_default | |
21957 | #include <$ac_header> | |
21958 | _ACEOF | |
21959 | rm -f conftest.$ac_objext | |
21960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21961 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21962 | ac_status=$? |
ac1cb8d3 VS |
21963 | grep -v '^ *+' conftest.er1 >conftest.err |
21964 | rm -f conftest.er1 | |
21965 | cat conftest.err >&5 | |
a848cd7e SC |
21966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21967 | (exit $ac_status); } && | |
ea7db9ff DE |
21968 | { ac_try='test -z "$ac_c_werror_flag" |
21969 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21971 | (eval $ac_try) 2>&5 | |
21972 | ac_status=$? | |
21973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21974 | (exit $ac_status); }; } && | |
21975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21977 | (eval $ac_try) 2>&5 | |
21978 | ac_status=$? | |
21979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21980 | (exit $ac_status); }; }; then | |
21981 | ac_header_compiler=yes | |
21982 | else | |
21983 | echo "$as_me: failed program was:" >&5 | |
21984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21985 | ||
21986 | ac_header_compiler=no | |
21987 | fi | |
ac1cb8d3 | 21988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21989 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21990 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21991 | ||
21992 | # Is the header present? | |
21993 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21994 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21995 | cat >conftest.$ac_ext <<_ACEOF | |
21996 | /* confdefs.h. */ | |
21997 | _ACEOF | |
21998 | cat confdefs.h >>conftest.$ac_ext | |
21999 | cat >>conftest.$ac_ext <<_ACEOF | |
22000 | /* end confdefs.h. */ | |
22001 | #include <$ac_header> | |
22002 | _ACEOF | |
22003 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22005 | ac_status=$? | |
22006 | grep -v '^ *+' conftest.er1 >conftest.err | |
22007 | rm -f conftest.er1 | |
22008 | cat conftest.err >&5 | |
22009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22010 | (exit $ac_status); } >/dev/null; then | |
22011 | if test -s conftest.err; then | |
22012 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22013 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22014 | else |
22015 | ac_cpp_err= | |
22016 | fi | |
22017 | else | |
22018 | ac_cpp_err=yes | |
22019 | fi | |
22020 | if test -z "$ac_cpp_err"; then | |
22021 | ac_header_preproc=yes | |
22022 | else | |
22023 | echo "$as_me: failed program was:" >&5 | |
22024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22025 | ||
22026 | ac_header_preproc=no | |
22027 | fi | |
22028 | rm -f conftest.err conftest.$ac_ext | |
22029 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22030 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22031 | ||
22032 | # So? What about this header? | |
ac1cb8d3 VS |
22033 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22034 | yes:no: ) | |
a848cd7e SC |
22035 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22036 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22038 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22039 | ac_header_preproc=yes | |
a848cd7e | 22040 | ;; |
ac1cb8d3 | 22041 | no:yes:* ) |
a848cd7e SC |
22042 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22043 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22044 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22045 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22046 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22047 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22048 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22049 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22052 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22053 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22054 | ( |
22055 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22056 | ## ----------------------------------------- ## |
22057 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22058 | ## ----------------------------------------- ## | |
a848cd7e SC |
22059 | _ASBOX |
22060 | ) | | |
22061 | sed "s/^/$as_me: WARNING: /" >&2 | |
22062 | ;; | |
22063 | esac | |
22064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22068 | else | |
ac1cb8d3 | 22069 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22070 | fi |
22071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22072 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22073 | ||
22074 | fi | |
22075 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22076 | cat >>confdefs.h <<_ACEOF | |
22077 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22078 | _ACEOF | |
22079 | ||
22080 | fi | |
22081 | ||
22082 | done | |
22083 | ||
22084 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22085 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22086 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22087 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22089 | fi | |
22090 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22091 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22092 | else | |
22093 | # Is the header compilable? | |
22094 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22095 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22096 | cat >conftest.$ac_ext <<_ACEOF | |
22097 | /* confdefs.h. */ | |
22098 | _ACEOF | |
22099 | cat confdefs.h >>conftest.$ac_ext | |
22100 | cat >>conftest.$ac_ext <<_ACEOF | |
22101 | /* end confdefs.h. */ | |
22102 | $ac_includes_default | |
22103 | #include <windows.h> | |
22104 | _ACEOF | |
22105 | rm -f conftest.$ac_objext | |
22106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22107 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22108 | ac_status=$? |
ac1cb8d3 VS |
22109 | grep -v '^ *+' conftest.er1 >conftest.err |
22110 | rm -f conftest.er1 | |
22111 | cat conftest.err >&5 | |
a848cd7e SC |
22112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22113 | (exit $ac_status); } && | |
ea7db9ff DE |
22114 | { ac_try='test -z "$ac_c_werror_flag" |
22115 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22117 | (eval $ac_try) 2>&5 | |
22118 | ac_status=$? | |
22119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22120 | (exit $ac_status); }; } && | |
22121 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22123 | (eval $ac_try) 2>&5 | |
22124 | ac_status=$? | |
22125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22126 | (exit $ac_status); }; }; then | |
22127 | ac_header_compiler=yes | |
22128 | else | |
22129 | echo "$as_me: failed program was:" >&5 | |
22130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22131 | ||
22132 | ac_header_compiler=no | |
22133 | fi | |
ac1cb8d3 | 22134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22135 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22136 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22137 | ||
22138 | # Is the header present? | |
22139 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22140 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22141 | cat >conftest.$ac_ext <<_ACEOF | |
22142 | /* confdefs.h. */ | |
22143 | _ACEOF | |
22144 | cat confdefs.h >>conftest.$ac_ext | |
22145 | cat >>conftest.$ac_ext <<_ACEOF | |
22146 | /* end confdefs.h. */ | |
22147 | #include <windows.h> | |
22148 | _ACEOF | |
22149 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22150 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22151 | ac_status=$? | |
22152 | grep -v '^ *+' conftest.er1 >conftest.err | |
22153 | rm -f conftest.er1 | |
22154 | cat conftest.err >&5 | |
22155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22156 | (exit $ac_status); } >/dev/null; then | |
22157 | if test -s conftest.err; then | |
22158 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22159 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22160 | else |
22161 | ac_cpp_err= | |
22162 | fi | |
22163 | else | |
22164 | ac_cpp_err=yes | |
22165 | fi | |
22166 | if test -z "$ac_cpp_err"; then | |
22167 | ac_header_preproc=yes | |
22168 | else | |
22169 | echo "$as_me: failed program was:" >&5 | |
22170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22171 | ||
22172 | ac_header_preproc=no | |
22173 | fi | |
22174 | rm -f conftest.err conftest.$ac_ext | |
22175 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22176 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22177 | ||
22178 | # So? What about this header? | |
ac1cb8d3 VS |
22179 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22180 | yes:no: ) | |
a848cd7e SC |
22181 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22182 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22183 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22184 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22185 | ac_header_preproc=yes | |
a848cd7e | 22186 | ;; |
ac1cb8d3 | 22187 | no:yes:* ) |
a848cd7e SC |
22188 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22189 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22190 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22191 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22192 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22193 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22194 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22195 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22196 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22197 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22198 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22199 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22200 | ( |
22201 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22202 | ## ----------------------------------------- ## |
22203 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22204 | ## ----------------------------------------- ## | |
a848cd7e SC |
22205 | _ASBOX |
22206 | ) | | |
22207 | sed "s/^/$as_me: WARNING: /" >&2 | |
22208 | ;; | |
22209 | esac | |
22210 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22211 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22212 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22214 | else | |
22215 | ac_cv_header_windows_h=$ac_header_preproc | |
22216 | fi | |
22217 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22218 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22219 | ||
22220 | fi | |
22221 | if test $ac_cv_header_windows_h = yes; then | |
22222 | : | |
22223 | else | |
22224 | ||
22225 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22226 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22227 | { (exit 1); exit 1; }; } | |
22228 | ||
22229 | fi | |
22230 | ||
22231 | ||
22232 | ||
22233 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22234 | ||
22235 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22236 | LIBS="$LIBS -loleacc" | |
22237 | fi | |
22238 | ||
22239 | case "${host}" in | |
22240 | *-*-cygwin* ) | |
22241 | LIBS="$LIBS -lkernel32 -luser32" | |
22242 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22243 | esac | |
22244 | ||
22245 | if test "$wxUSE_ODBC" = "sys" ; then | |
22246 | wxUSE_ODBC = "yes" | |
22247 | fi | |
22248 | if test "$wxUSE_ODBC" = "yes" ; then | |
22249 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22250 | cat >>confdefs.h <<\_ACEOF | |
22251 | #define wxUSE_ODBC 1 | |
22252 | _ACEOF | |
22253 | ||
22254 | fi | |
22255 | ||
22256 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22257 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22258 | ||
22259 | WIN32INSTALL=win32install | |
22260 | fi | |
22261 | ||
22262 | if test "$wxUSE_GUI" = "yes"; then | |
22263 | USE_GUI=1 | |
22264 | ||
22265 | GUI_TK_LIBRARY= | |
22266 | ||
22267 | WXGTK12= | |
22268 | WXGTK127= | |
22269 | WXGTK20= | |
22270 | WXGPE= | |
22271 | ||
22272 | if test "$wxUSE_MSW" = 1 ; then | |
22273 | TOOLKIT=MSW | |
22274 | GUIDIST=MSW_DIST | |
22275 | ||
22276 | case "${host}" in | |
22277 | *-*-mingw32* ) | |
22278 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22279 | esac | |
22280 | fi | |
22281 | ||
22282 | if test "$wxUSE_GTK" = 1; then | |
22283 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22284 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22285 | ||
22286 | gtk_version_cached=1 | |
22287 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22289 | else | |
22290 | ||
22291 | gtk_version_cached=0 | |
22292 | echo "$as_me:$LINENO: result: " >&5 | |
22293 | echo "${ECHO_T}" >&6 | |
22294 | ||
22295 | GTK_MODULES= | |
22296 | if test "$wxUSE_THREADS" = "yes"; then | |
22297 | GTK_MODULES=gthread | |
22298 | fi | |
22299 | ||
22300 | wx_cv_lib_gtk= | |
22301 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22302 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22303 | if test "${enable_gtktest+set}" = set; then | |
22304 | enableval="$enable_gtktest" | |
22305 | ||
22306 | else | |
22307 | enable_gtktest=yes | |
22308 | fi; | |
22309 | ||
22310 | pkg_config_args=gtk+-2.0 | |
22311 | for module in . $GTK_MODULES | |
22312 | do | |
22313 | case "$module" in | |
22314 | gthread) | |
22315 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22316 | ;; | |
22317 | esac | |
22318 | done | |
22319 | ||
22320 | no_gtk="" | |
22321 | ||
22322 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22323 | set dummy pkg-config; ac_word=$2 | |
22324 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22326 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22328 | else | |
22329 | case $PKG_CONFIG in | |
22330 | [\\/]* | ?:[\\/]*) | |
22331 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22332 | ;; | |
22333 | *) | |
22334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22335 | for as_dir in $PATH | |
22336 | do | |
22337 | IFS=$as_save_IFS | |
22338 | test -z "$as_dir" && as_dir=. | |
22339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22340 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22341 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22343 | break 2 | |
22344 | fi | |
22345 | done | |
22346 | done | |
22347 | ||
22348 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22349 | ;; | |
22350 | esac | |
22351 | fi | |
22352 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22353 | ||
22354 | if test -n "$PKG_CONFIG"; then | |
22355 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22356 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22357 | else | |
22358 | echo "$as_me:$LINENO: result: no" >&5 | |
22359 | echo "${ECHO_T}no" >&6 | |
22360 | fi | |
22361 | ||
22362 | ||
22363 | if test x$PKG_CONFIG != xno ; then | |
22364 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22365 | : | |
22366 | else | |
c2218763 | 22367 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22368 | no_gtk=yes |
22369 | PKG_CONFIG=no | |
22370 | fi | |
22371 | else | |
22372 | no_gtk=yes | |
22373 | fi | |
22374 | ||
22375 | min_gtk_version=2.0.0 | |
22376 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22377 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22378 | ||
22379 | if test x$PKG_CONFIG != xno ; then | |
22380 | ## don't try to run the test against uninstalled libtool libs | |
22381 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22382 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22383 | enable_gtktest=no | |
22384 | fi | |
22385 | ||
22386 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22387 | : | |
22388 | else | |
22389 | no_gtk=yes | |
22390 | fi | |
22391 | fi | |
22392 | ||
22393 | if test x"$no_gtk" = x ; then | |
22394 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22395 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22396 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22397 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22398 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22399 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22400 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22401 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22402 | if test "x$enable_gtktest" = "xyes" ; then | |
22403 | ac_save_CFLAGS="$CFLAGS" | |
22404 | ac_save_LIBS="$LIBS" | |
22405 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22406 | LIBS="$GTK_LIBS $LIBS" | |
22407 | rm -f conf.gtktest | |
22408 | if test "$cross_compiling" = yes; then | |
22409 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22410 | else | |
22411 | cat >conftest.$ac_ext <<_ACEOF | |
22412 | /* confdefs.h. */ | |
22413 | _ACEOF | |
22414 | cat confdefs.h >>conftest.$ac_ext | |
22415 | cat >>conftest.$ac_ext <<_ACEOF | |
22416 | /* end confdefs.h. */ | |
22417 | ||
22418 | #include <gtk/gtk.h> | |
22419 | #include <stdio.h> | |
22420 | #include <stdlib.h> | |
22421 | ||
22422 | int | |
22423 | main () | |
22424 | { | |
22425 | int major, minor, micro; | |
22426 | char *tmp_version; | |
22427 | ||
22428 | system ("touch conf.gtktest"); | |
22429 | ||
22430 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22431 | tmp_version = g_strdup("$min_gtk_version"); | |
22432 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22433 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22434 | exit(1); | |
22435 | } | |
22436 | ||
22437 | if ((gtk_major_version != $gtk_config_major_version) || | |
22438 | (gtk_minor_version != $gtk_config_minor_version) || | |
22439 | (gtk_micro_version != $gtk_config_micro_version)) | |
22440 | { | |
22441 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22442 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22443 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22444 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22445 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22446 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22447 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22448 | printf("*** required on your system.\n"); | |
22449 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22450 | printf("*** to point to the correct configuration files\n"); | |
22451 | } | |
22452 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22453 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22454 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22455 | { | |
22456 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22457 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22458 | printf("*** library (version %d.%d.%d)\n", | |
22459 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22460 | } | |
22461 | else | |
22462 | { | |
22463 | if ((gtk_major_version > major) || | |
22464 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22465 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22466 | { | |
22467 | return 0; | |
22468 | } | |
22469 | else | |
22470 | { | |
22471 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22472 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22473 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22474 | major, minor, micro); | |
22475 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22476 | printf("***\n"); | |
22477 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22478 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22479 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22480 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22481 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22482 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22483 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22484 | } | |
22485 | } | |
22486 | return 1; | |
22487 | } | |
22488 | ||
22489 | _ACEOF | |
22490 | rm -f conftest$ac_exeext | |
22491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22492 | (eval $ac_link) 2>&5 | |
22493 | ac_status=$? | |
22494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22495 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22497 | (eval $ac_try) 2>&5 | |
22498 | ac_status=$? | |
22499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22500 | (exit $ac_status); }; }; then | |
22501 | : | |
22502 | else | |
22503 | echo "$as_me: program exited with status $ac_status" >&5 | |
22504 | echo "$as_me: failed program was:" >&5 | |
22505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22506 | ||
22507 | ( exit $ac_status ) | |
22508 | no_gtk=yes | |
22509 | fi | |
ac1cb8d3 | 22510 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22511 | fi |
22512 | CFLAGS="$ac_save_CFLAGS" | |
22513 | LIBS="$ac_save_LIBS" | |
22514 | fi | |
22515 | fi | |
22516 | if test "x$no_gtk" = x ; then | |
22517 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22518 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22519 | wx_cv_lib_gtk=2.0 | |
22520 | else | |
22521 | echo "$as_me:$LINENO: result: no" >&5 | |
22522 | echo "${ECHO_T}no" >&6 | |
22523 | if test "$PKG_CONFIG" = "no" ; then | |
22524 | echo "*** A new enough version of pkg-config was not found." | |
22525 | echo "*** See http://pkgconfig.sourceforge.net" | |
22526 | else | |
22527 | if test -f conf.gtktest ; then | |
22528 | : | |
22529 | else | |
22530 | echo "*** Could not run GTK+ test program, checking why..." | |
22531 | ac_save_CFLAGS="$CFLAGS" | |
22532 | ac_save_LIBS="$LIBS" | |
22533 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22534 | LIBS="$LIBS $GTK_LIBS" | |
22535 | cat >conftest.$ac_ext <<_ACEOF | |
22536 | /* confdefs.h. */ | |
22537 | _ACEOF | |
22538 | cat confdefs.h >>conftest.$ac_ext | |
22539 | cat >>conftest.$ac_ext <<_ACEOF | |
22540 | /* end confdefs.h. */ | |
22541 | ||
22542 | #include <gtk/gtk.h> | |
22543 | #include <stdio.h> | |
22544 | ||
22545 | int | |
22546 | main () | |
22547 | { | |
22548 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22549 | ; | |
22550 | return 0; | |
22551 | } | |
22552 | _ACEOF | |
22553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22555 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22556 | ac_status=$? |
ac1cb8d3 VS |
22557 | grep -v '^ *+' conftest.er1 >conftest.err |
22558 | rm -f conftest.er1 | |
22559 | cat conftest.err >&5 | |
a848cd7e SC |
22560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22561 | (exit $ac_status); } && | |
ea7db9ff DE |
22562 | { ac_try='test -z "$ac_c_werror_flag" |
22563 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22565 | (eval $ac_try) 2>&5 | |
22566 | ac_status=$? | |
22567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22568 | (exit $ac_status); }; } && | |
22569 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22571 | (eval $ac_try) 2>&5 | |
22572 | ac_status=$? | |
22573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22574 | (exit $ac_status); }; }; then | |
22575 | echo "*** The test program compiled, but did not run. This usually means" | |
22576 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22577 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22578 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22579 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22580 | echo "*** is required on your system" | |
22581 | echo "***" | |
22582 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22583 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22584 | else | |
22585 | echo "$as_me: failed program was:" >&5 | |
22586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22587 | ||
22588 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22589 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22590 | fi | |
ac1cb8d3 VS |
22591 | rm -f conftest.err conftest.$ac_objext \ |
22592 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22593 | CFLAGS="$ac_save_CFLAGS" |
22594 | LIBS="$ac_save_LIBS" | |
22595 | fi | |
22596 | fi | |
22597 | GTK_CFLAGS="" | |
22598 | GTK_LIBS="" | |
22599 | : | |
22600 | fi | |
22601 | ||
22602 | ||
22603 | rm -f conf.gtktest | |
22604 | ||
22605 | else | |
22606 | ||
22607 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22608 | if test "${with_gtk_prefix+set}" = set; then | |
22609 | withval="$with_gtk_prefix" | |
22610 | gtk_config_prefix="$withval" | |
22611 | else | |
22612 | gtk_config_prefix="" | |
22613 | fi; | |
22614 | ||
22615 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22616 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22617 | withval="$with_gtk_exec_prefix" | |
22618 | gtk_config_exec_prefix="$withval" | |
22619 | else | |
22620 | gtk_config_exec_prefix="" | |
22621 | fi; | |
22622 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22623 | if test "${enable_gtktest+set}" = set; then | |
22624 | enableval="$enable_gtktest" | |
22625 | ||
22626 | else | |
22627 | enable_gtktest=yes | |
22628 | fi; | |
22629 | ||
22630 | for module in . $GTK_MODULES | |
22631 | do | |
22632 | case "$module" in | |
22633 | gthread) | |
22634 | gtk_config_args="$gtk_config_args gthread" | |
22635 | ;; | |
22636 | esac | |
22637 | done | |
22638 | ||
22639 | if test x$gtk_config_exec_prefix != x ; then | |
22640 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22641 | if test x${GTK_CONFIG+set} != xset ; then | |
22642 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22643 | fi | |
22644 | fi | |
22645 | if test x$gtk_config_prefix != x ; then | |
22646 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22647 | if test x${GTK_CONFIG+set} != xset ; then | |
22648 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22649 | fi | |
22650 | fi | |
22651 | ||
22652 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22653 | set dummy gtk-config; ac_word=$2 | |
22654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22656 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22658 | else | |
22659 | case $GTK_CONFIG in | |
22660 | [\\/]* | ?:[\\/]*) | |
22661 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22662 | ;; | |
22663 | *) | |
22664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22665 | for as_dir in $PATH | |
22666 | do | |
22667 | IFS=$as_save_IFS | |
22668 | test -z "$as_dir" && as_dir=. | |
22669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22670 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22671 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22673 | break 2 | |
22674 | fi | |
22675 | done | |
22676 | done | |
22677 | ||
22678 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22679 | ;; | |
22680 | esac | |
22681 | fi | |
22682 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22683 | ||
22684 | if test -n "$GTK_CONFIG"; then | |
22685 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22686 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22687 | else | |
22688 | echo "$as_me:$LINENO: result: no" >&5 | |
22689 | echo "${ECHO_T}no" >&6 | |
22690 | fi | |
22691 | ||
22692 | min_gtk_version=1.2.7 | |
22693 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22694 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22695 | no_gtk="" | |
22696 | if test "$GTK_CONFIG" = "no" ; then | |
22697 | no_gtk=yes | |
22698 | else | |
22699 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22700 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22701 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22702 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22703 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22704 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22705 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22706 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22707 | if test "x$enable_gtktest" = "xyes" ; then | |
22708 | ac_save_CFLAGS="$CFLAGS" | |
22709 | ac_save_LIBS="$LIBS" | |
22710 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22711 | LIBS="$GTK_LIBS $LIBS" | |
22712 | rm -f conf.gtktest | |
22713 | if test "$cross_compiling" = yes; then | |
22714 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22715 | else | |
22716 | cat >conftest.$ac_ext <<_ACEOF | |
22717 | /* confdefs.h. */ | |
22718 | _ACEOF | |
22719 | cat confdefs.h >>conftest.$ac_ext | |
22720 | cat >>conftest.$ac_ext <<_ACEOF | |
22721 | /* end confdefs.h. */ | |
22722 | ||
22723 | #include <gtk/gtk.h> | |
22724 | #include <stdio.h> | |
22725 | #include <stdlib.h> | |
22726 | ||
22727 | int | |
22728 | main () | |
22729 | { | |
22730 | int major, minor, micro; | |
22731 | char *tmp_version; | |
22732 | ||
22733 | system ("touch conf.gtktest"); | |
22734 | ||
22735 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22736 | tmp_version = g_strdup("$min_gtk_version"); | |
22737 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22738 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22739 | exit(1); | |
22740 | } | |
22741 | ||
22742 | if ((gtk_major_version != $gtk_config_major_version) || | |
22743 | (gtk_minor_version != $gtk_config_minor_version) || | |
22744 | (gtk_micro_version != $gtk_config_micro_version)) | |
22745 | { | |
22746 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22747 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22748 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22749 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22750 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22751 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22752 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22753 | printf("*** required on your system.\n"); | |
22754 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22755 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22756 | printf("*** before re-running configure\n"); | |
22757 | } | |
22758 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22759 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22760 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22761 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22762 | { | |
22763 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22764 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22765 | printf("*** library (version %d.%d.%d)\n", | |
22766 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22767 | } | |
22768 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22769 | else | |
22770 | { | |
22771 | if ((gtk_major_version > major) || | |
22772 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22773 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22774 | { | |
22775 | return 0; | |
22776 | } | |
22777 | else | |
22778 | { | |
22779 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22780 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22781 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22782 | major, minor, micro); | |
22783 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22784 | printf("***\n"); | |
22785 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22786 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22787 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22788 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22789 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22790 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22791 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22792 | } | |
22793 | } | |
22794 | return 1; | |
22795 | } | |
22796 | ||
22797 | _ACEOF | |
22798 | rm -f conftest$ac_exeext | |
22799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22800 | (eval $ac_link) 2>&5 | |
22801 | ac_status=$? | |
22802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22803 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22805 | (eval $ac_try) 2>&5 | |
22806 | ac_status=$? | |
22807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22808 | (exit $ac_status); }; }; then | |
22809 | : | |
22810 | else | |
22811 | echo "$as_me: program exited with status $ac_status" >&5 | |
22812 | echo "$as_me: failed program was:" >&5 | |
22813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22814 | ||
22815 | ( exit $ac_status ) | |
22816 | no_gtk=yes | |
22817 | fi | |
ac1cb8d3 | 22818 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22819 | fi |
22820 | CFLAGS="$ac_save_CFLAGS" | |
22821 | LIBS="$ac_save_LIBS" | |
22822 | fi | |
22823 | fi | |
22824 | if test "x$no_gtk" = x ; then | |
22825 | echo "$as_me:$LINENO: result: yes" >&5 | |
22826 | echo "${ECHO_T}yes" >&6 | |
22827 | wx_cv_lib_gtk=1.2.7 | |
22828 | else | |
22829 | echo "$as_me:$LINENO: result: no" >&5 | |
22830 | echo "${ECHO_T}no" >&6 | |
22831 | if test "$GTK_CONFIG" = "no" ; then | |
22832 | echo "*** The gtk-config script installed by GTK could not be found" | |
22833 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22834 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22835 | echo "*** full path to gtk-config." | |
22836 | else | |
22837 | if test -f conf.gtktest ; then | |
22838 | : | |
22839 | else | |
22840 | echo "*** Could not run GTK test program, checking why..." | |
22841 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22842 | LIBS="$LIBS $GTK_LIBS" | |
22843 | cat >conftest.$ac_ext <<_ACEOF | |
22844 | /* confdefs.h. */ | |
22845 | _ACEOF | |
22846 | cat confdefs.h >>conftest.$ac_ext | |
22847 | cat >>conftest.$ac_ext <<_ACEOF | |
22848 | /* end confdefs.h. */ | |
22849 | ||
22850 | #include <gtk/gtk.h> | |
22851 | #include <stdio.h> | |
22852 | ||
22853 | int | |
22854 | main () | |
22855 | { | |
22856 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22857 | ; | |
22858 | return 0; | |
22859 | } | |
22860 | _ACEOF | |
22861 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22863 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22864 | ac_status=$? |
ac1cb8d3 VS |
22865 | grep -v '^ *+' conftest.er1 >conftest.err |
22866 | rm -f conftest.er1 | |
22867 | cat conftest.err >&5 | |
a848cd7e SC |
22868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22869 | (exit $ac_status); } && | |
ea7db9ff DE |
22870 | { ac_try='test -z "$ac_c_werror_flag" |
22871 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22873 | (eval $ac_try) 2>&5 | |
22874 | ac_status=$? | |
22875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22876 | (exit $ac_status); }; } && | |
22877 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22879 | (eval $ac_try) 2>&5 | |
22880 | ac_status=$? | |
22881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22882 | (exit $ac_status); }; }; then | |
22883 | echo "*** The test program compiled, but did not run. This usually means" | |
22884 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22885 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22886 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22887 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22888 | echo "*** is required on your system" | |
22889 | echo "***" | |
22890 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22891 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22892 | echo "***" | |
22893 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22894 | echo "*** came with the system with the command" | |
22895 | echo "***" | |
22896 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
22897 | else | |
22898 | echo "$as_me: failed program was:" >&5 | |
22899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22900 | ||
22901 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22902 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
22903 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
22904 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
22905 | fi | |
ac1cb8d3 VS |
22906 | rm -f conftest.err conftest.$ac_objext \ |
22907 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22908 | CFLAGS="$ac_save_CFLAGS" |
22909 | LIBS="$ac_save_LIBS" | |
22910 | fi | |
22911 | fi | |
22912 | GTK_CFLAGS="" | |
22913 | GTK_LIBS="" | |
22914 | : | |
22915 | fi | |
22916 | ||
22917 | ||
22918 | rm -f conf.gtktest | |
22919 | ||
22920 | ||
22921 | if test -z "$wx_cv_lib_gtk"; then | |
22922 | ||
22923 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22924 | if test "${with_gtk_prefix+set}" = set; then | |
22925 | withval="$with_gtk_prefix" | |
22926 | gtk_config_prefix="$withval" | |
22927 | else | |
22928 | gtk_config_prefix="" | |
22929 | fi; | |
22930 | ||
22931 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22932 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22933 | withval="$with_gtk_exec_prefix" | |
22934 | gtk_config_exec_prefix="$withval" | |
22935 | else | |
22936 | gtk_config_exec_prefix="" | |
22937 | fi; | |
22938 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22939 | if test "${enable_gtktest+set}" = set; then | |
22940 | enableval="$enable_gtktest" | |
22941 | ||
22942 | else | |
22943 | enable_gtktest=yes | |
22944 | fi; | |
22945 | ||
22946 | for module in . $GTK_MODULES | |
22947 | do | |
22948 | case "$module" in | |
22949 | gthread) | |
22950 | gtk_config_args="$gtk_config_args gthread" | |
22951 | ;; | |
22952 | esac | |
22953 | done | |
22954 | ||
22955 | if test x$gtk_config_exec_prefix != x ; then | |
22956 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22957 | if test x${GTK_CONFIG+set} != xset ; then | |
22958 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22959 | fi | |
22960 | fi | |
22961 | if test x$gtk_config_prefix != x ; then | |
22962 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22963 | if test x${GTK_CONFIG+set} != xset ; then | |
22964 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22965 | fi | |
22966 | fi | |
22967 | ||
22968 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22969 | set dummy gtk-config; ac_word=$2 | |
22970 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22972 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22974 | else | |
22975 | case $GTK_CONFIG in | |
22976 | [\\/]* | ?:[\\/]*) | |
22977 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22978 | ;; | |
22979 | *) | |
22980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22981 | for as_dir in $PATH | |
22982 | do | |
22983 | IFS=$as_save_IFS | |
22984 | test -z "$as_dir" && as_dir=. | |
22985 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22986 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22987 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22989 | break 2 | |
22990 | fi | |
22991 | done | |
22992 | done | |
22993 | ||
22994 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22995 | ;; | |
22996 | esac | |
22997 | fi | |
22998 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22999 | ||
23000 | if test -n "$GTK_CONFIG"; then | |
23001 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23002 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23003 | else | |
23004 | echo "$as_me:$LINENO: result: no" >&5 | |
23005 | echo "${ECHO_T}no" >&6 | |
23006 | fi | |
23007 | ||
23008 | min_gtk_version=1.2.3 | |
23009 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23010 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23011 | no_gtk="" | |
23012 | if test "$GTK_CONFIG" = "no" ; then | |
23013 | no_gtk=yes | |
23014 | else | |
23015 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23016 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23017 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23018 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23019 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23020 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23021 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23022 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23023 | if test "x$enable_gtktest" = "xyes" ; then | |
23024 | ac_save_CFLAGS="$CFLAGS" | |
23025 | ac_save_LIBS="$LIBS" | |
23026 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23027 | LIBS="$GTK_LIBS $LIBS" | |
23028 | rm -f conf.gtktest | |
23029 | if test "$cross_compiling" = yes; then | |
23030 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23031 | else | |
23032 | cat >conftest.$ac_ext <<_ACEOF | |
23033 | /* confdefs.h. */ | |
23034 | _ACEOF | |
23035 | cat confdefs.h >>conftest.$ac_ext | |
23036 | cat >>conftest.$ac_ext <<_ACEOF | |
23037 | /* end confdefs.h. */ | |
23038 | ||
23039 | #include <gtk/gtk.h> | |
23040 | #include <stdio.h> | |
23041 | #include <stdlib.h> | |
23042 | ||
23043 | int | |
23044 | main () | |
23045 | { | |
23046 | int major, minor, micro; | |
23047 | char *tmp_version; | |
23048 | ||
23049 | system ("touch conf.gtktest"); | |
23050 | ||
23051 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23052 | tmp_version = g_strdup("$min_gtk_version"); | |
23053 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23054 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23055 | exit(1); | |
23056 | } | |
23057 | ||
23058 | if ((gtk_major_version != $gtk_config_major_version) || | |
23059 | (gtk_minor_version != $gtk_config_minor_version) || | |
23060 | (gtk_micro_version != $gtk_config_micro_version)) | |
23061 | { | |
23062 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23063 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23064 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23065 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23066 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23067 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23068 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23069 | printf("*** required on your system.\n"); | |
23070 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23071 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23072 | printf("*** before re-running configure\n"); | |
23073 | } | |
23074 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23075 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23076 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23077 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23078 | { | |
23079 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23080 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23081 | printf("*** library (version %d.%d.%d)\n", | |
23082 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23083 | } | |
23084 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23085 | else | |
23086 | { | |
23087 | if ((gtk_major_version > major) || | |
23088 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23089 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23090 | { | |
23091 | return 0; | |
23092 | } | |
23093 | else | |
23094 | { | |
23095 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23096 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23097 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23098 | major, minor, micro); | |
23099 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23100 | printf("***\n"); | |
23101 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23102 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23103 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23104 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23105 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23106 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23107 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23108 | } | |
23109 | } | |
23110 | return 1; | |
23111 | } | |
23112 | ||
23113 | _ACEOF | |
23114 | rm -f conftest$ac_exeext | |
23115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23116 | (eval $ac_link) 2>&5 | |
23117 | ac_status=$? | |
23118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23119 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23121 | (eval $ac_try) 2>&5 | |
23122 | ac_status=$? | |
23123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23124 | (exit $ac_status); }; }; then | |
23125 | : | |
23126 | else | |
23127 | echo "$as_me: program exited with status $ac_status" >&5 | |
23128 | echo "$as_me: failed program was:" >&5 | |
23129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23130 | ||
23131 | ( exit $ac_status ) | |
23132 | no_gtk=yes | |
23133 | fi | |
ac1cb8d3 | 23134 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23135 | fi |
23136 | CFLAGS="$ac_save_CFLAGS" | |
23137 | LIBS="$ac_save_LIBS" | |
23138 | fi | |
23139 | fi | |
23140 | if test "x$no_gtk" = x ; then | |
23141 | echo "$as_me:$LINENO: result: yes" >&5 | |
23142 | echo "${ECHO_T}yes" >&6 | |
23143 | wx_cv_lib_gtk=1.2.3 | |
23144 | else | |
23145 | echo "$as_me:$LINENO: result: no" >&5 | |
23146 | echo "${ECHO_T}no" >&6 | |
23147 | if test "$GTK_CONFIG" = "no" ; then | |
23148 | echo "*** The gtk-config script installed by GTK could not be found" | |
23149 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23150 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23151 | echo "*** full path to gtk-config." | |
23152 | else | |
23153 | if test -f conf.gtktest ; then | |
23154 | : | |
23155 | else | |
23156 | echo "*** Could not run GTK test program, checking why..." | |
23157 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23158 | LIBS="$LIBS $GTK_LIBS" | |
23159 | cat >conftest.$ac_ext <<_ACEOF | |
23160 | /* confdefs.h. */ | |
23161 | _ACEOF | |
23162 | cat confdefs.h >>conftest.$ac_ext | |
23163 | cat >>conftest.$ac_ext <<_ACEOF | |
23164 | /* end confdefs.h. */ | |
23165 | ||
23166 | #include <gtk/gtk.h> | |
23167 | #include <stdio.h> | |
23168 | ||
23169 | int | |
23170 | main () | |
23171 | { | |
23172 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23173 | ; | |
23174 | return 0; | |
23175 | } | |
23176 | _ACEOF | |
23177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23179 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23180 | ac_status=$? |
ac1cb8d3 VS |
23181 | grep -v '^ *+' conftest.er1 >conftest.err |
23182 | rm -f conftest.er1 | |
23183 | cat conftest.err >&5 | |
a848cd7e SC |
23184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23185 | (exit $ac_status); } && | |
ea7db9ff DE |
23186 | { ac_try='test -z "$ac_c_werror_flag" |
23187 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23189 | (eval $ac_try) 2>&5 | |
23190 | ac_status=$? | |
23191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23192 | (exit $ac_status); }; } && | |
23193 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23195 | (eval $ac_try) 2>&5 | |
23196 | ac_status=$? | |
23197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23198 | (exit $ac_status); }; }; then | |
23199 | echo "*** The test program compiled, but did not run. This usually means" | |
23200 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23201 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23202 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23203 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23204 | echo "*** is required on your system" | |
23205 | echo "***" | |
23206 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23207 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23208 | echo "***" | |
23209 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23210 | echo "*** came with the system with the command" | |
23211 | echo "***" | |
23212 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23213 | else | |
23214 | echo "$as_me: failed program was:" >&5 | |
23215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23216 | ||
23217 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23218 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23219 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23220 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23221 | fi | |
ac1cb8d3 VS |
23222 | rm -f conftest.err conftest.$ac_objext \ |
23223 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23224 | CFLAGS="$ac_save_CFLAGS" |
23225 | LIBS="$ac_save_LIBS" | |
23226 | fi | |
23227 | fi | |
23228 | GTK_CFLAGS="" | |
23229 | GTK_LIBS="" | |
23230 | : | |
23231 | fi | |
23232 | ||
23233 | ||
23234 | rm -f conf.gtktest | |
23235 | ||
23236 | fi | |
23237 | fi | |
23238 | ||
23239 | if test -z "$wx_cv_lib_gtk"; then | |
23240 | wx_cv_lib_gtk=none | |
23241 | else | |
23242 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23243 | wx_cv_libs_gtk=$GTK_LIBS | |
23244 | fi | |
23245 | ||
23246 | ||
23247 | fi | |
23248 | ||
23249 | ||
23250 | if test "$gtk_version_cached" = 1; then | |
23251 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23252 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23253 | fi | |
23254 | ||
23255 | case "$wx_cv_lib_gtk" in | |
23256 | 2.0) WXGTK20=1 | |
23257 | TOOLKIT_VERSION=2 | |
23258 | ;; | |
23259 | 1.2.7) WXGTK127=1 | |
23260 | WXGTK12=1 | |
23261 | ;; | |
23262 | 1.2.3) WXGTK12=1 | |
23263 | ;; | |
23264 | *) { { echo "$as_me:$LINENO: error: | |
23265 | Please check that gtk-config is in path, the directory | |
23266 | where GTK+ libraries are installed (returned by | |
23267 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23268 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23269 | " >&5 | |
23270 | echo "$as_me: error: | |
23271 | Please check that gtk-config is in path, the directory | |
23272 | where GTK+ libraries are installed (returned by | |
23273 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23274 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23275 | " >&2;} | |
23276 | { (exit 1); exit 1; }; } | |
23277 | ;; | |
23278 | esac | |
23279 | ||
23280 | if test "$WXGTK20" = 1; then | |
23281 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
23282 | ||
23283 | succeeded=no | |
23284 | ||
23285 | if test -z "$PKG_CONFIG"; then | |
23286 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23287 | set dummy pkg-config; ac_word=$2 | |
23288 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23289 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23290 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23292 | else | |
23293 | case $PKG_CONFIG in | |
23294 | [\\/]* | ?:[\\/]*) | |
23295 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23296 | ;; | |
23297 | *) | |
23298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23299 | for as_dir in $PATH | |
23300 | do | |
23301 | IFS=$as_save_IFS | |
23302 | test -z "$as_dir" && as_dir=. | |
23303 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23304 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23305 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23307 | break 2 | |
23308 | fi | |
23309 | done | |
23310 | done | |
23311 | ||
23312 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23313 | ;; | |
23314 | esac | |
23315 | fi | |
23316 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23317 | ||
23318 | if test -n "$PKG_CONFIG"; then | |
23319 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23320 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23321 | else | |
23322 | echo "$as_me:$LINENO: result: no" >&5 | |
23323 | echo "${ECHO_T}no" >&6 | |
23324 | fi | |
23325 | ||
23326 | fi | |
23327 | ||
23328 | if test "$PKG_CONFIG" = "no" ; then | |
23329 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23330 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23331 | echo "*** to the full path to pkg-config." | |
23332 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23333 | else | |
23334 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23335 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23336 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
23337 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
23338 | ||
23339 | if $PKG_CONFIG --exists "pangoft2" ; then | |
23340 | echo "$as_me:$LINENO: result: yes" >&5 | |
23341 | echo "${ECHO_T}yes" >&6 | |
23342 | succeeded=yes | |
23343 | ||
23344 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
23345 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
23346 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
23347 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
23348 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
23349 | ||
23350 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
23351 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
23352 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
23353 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
23354 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
23355 | else | |
23356 | PANGOFT2_CFLAGS="" | |
23357 | PANGOFT2_LIBS="" | |
23358 | ## If we have a custom action on failure, don't print errors, but | |
23359 | ## do set a variable so people can do so. | |
23360 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
23361 | ||
23362 | fi | |
23363 | ||
23364 | ||
23365 | ||
23366 | else | |
23367 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23368 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23369 | fi | |
23370 | fi | |
23371 | ||
23372 | if test $succeeded = yes; then | |
23373 | ||
23374 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
23375 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
23376 | ||
23377 | else | |
23378 | ||
23379 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23380 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
23381 | wxUSE_PRINTING_ARCHITECTURE="no" | |
23382 | ||
23383 | ||
23384 | fi | |
23385 | ||
23386 | fi | |
304205f1 VS |
23387 | |
23388 | save_CFLAGS="$CFLAGS" | |
23389 | save_LIBS="$LIBS" | |
23390 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23391 | LIBS="$LIBS $GTK_LIBS" | |
23392 | ||
23393 | for ac_func in pango_font_family_is_monospace | |
23394 | do | |
23395 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23396 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23397 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23398 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23400 | else | |
23401 | cat >conftest.$ac_ext <<_ACEOF | |
23402 | /* confdefs.h. */ | |
23403 | _ACEOF | |
23404 | cat confdefs.h >>conftest.$ac_ext | |
23405 | cat >>conftest.$ac_ext <<_ACEOF | |
23406 | /* end confdefs.h. */ | |
23407 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23408 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23409 | #define $ac_func innocuous_$ac_func | |
23410 | ||
23411 | /* System header to define __stub macros and hopefully few prototypes, | |
23412 | which can conflict with char $ac_func (); below. | |
23413 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23414 | <limits.h> exists even on freestanding compilers. */ | |
23415 | ||
23416 | #ifdef __STDC__ | |
23417 | # include <limits.h> | |
23418 | #else | |
23419 | # include <assert.h> | |
23420 | #endif | |
23421 | ||
23422 | #undef $ac_func | |
23423 | ||
23424 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23425 | #ifdef __cplusplus | |
23426 | extern "C" | |
23427 | { | |
23428 | #endif | |
23429 | /* We use char because int might match the return type of a gcc2 | |
23430 | builtin and then its argument prototype would still apply. */ | |
23431 | char $ac_func (); | |
23432 | /* The GNU C library defines this for functions which it implements | |
23433 | to always fail with ENOSYS. Some functions are actually named | |
23434 | something starting with __ and the normal name is an alias. */ | |
23435 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23436 | choke me | |
23437 | #else | |
23438 | char (*f) () = $ac_func; | |
23439 | #endif | |
23440 | #ifdef __cplusplus | |
23441 | } | |
23442 | #endif | |
23443 | ||
23444 | int | |
23445 | main () | |
23446 | { | |
23447 | return f != $ac_func; | |
23448 | ; | |
23449 | return 0; | |
23450 | } | |
23451 | _ACEOF | |
23452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23454 | (eval $ac_link) 2>conftest.er1 | |
23455 | ac_status=$? | |
23456 | grep -v '^ *+' conftest.er1 >conftest.err | |
23457 | rm -f conftest.er1 | |
23458 | cat conftest.err >&5 | |
23459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23460 | (exit $ac_status); } && | |
ea7db9ff DE |
23461 | { ac_try='test -z "$ac_c_werror_flag" |
23462 | || test ! -s conftest.err' | |
304205f1 VS |
23463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23464 | (eval $ac_try) 2>&5 | |
23465 | ac_status=$? | |
23466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23467 | (exit $ac_status); }; } && | |
23468 | { ac_try='test -s conftest$ac_exeext' | |
23469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23470 | (eval $ac_try) 2>&5 | |
23471 | ac_status=$? | |
23472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23473 | (exit $ac_status); }; }; then | |
23474 | eval "$as_ac_var=yes" | |
23475 | else | |
23476 | echo "$as_me: failed program was:" >&5 | |
23477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23478 | ||
23479 | eval "$as_ac_var=no" | |
23480 | fi | |
23481 | rm -f conftest.err conftest.$ac_objext \ | |
23482 | conftest$ac_exeext conftest.$ac_ext | |
23483 | fi | |
23484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23485 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23486 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23487 | cat >>confdefs.h <<_ACEOF | |
23488 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23489 | _ACEOF | |
23490 | ||
23491 | fi | |
23492 | done | |
23493 | ||
23494 | CFLAGS="$save_CFLAGS" | |
23495 | LIBS="$save_LIBS" | |
a848cd7e SC |
23496 | else |
23497 | if test "$wxUSE_UNICODE" = "yes"; then | |
23498 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23499 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23500 | wxUSE_UNICODE=no | |
23501 | fi | |
23502 | fi | |
23503 | ||
23504 | if test "$USE_DARWIN" != 1; then | |
23505 | ||
23506 | for ac_func in poll | |
23507 | do | |
23508 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23509 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23510 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23511 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23513 | else | |
23514 | cat >conftest.$ac_ext <<_ACEOF | |
23515 | /* confdefs.h. */ | |
23516 | _ACEOF | |
23517 | cat confdefs.h >>conftest.$ac_ext | |
23518 | cat >>conftest.$ac_ext <<_ACEOF | |
23519 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23520 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23521 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23522 | #define $ac_func innocuous_$ac_func | |
23523 | ||
a848cd7e SC |
23524 | /* System header to define __stub macros and hopefully few prototypes, |
23525 | which can conflict with char $ac_func (); below. | |
23526 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23527 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23528 | |
a848cd7e SC |
23529 | #ifdef __STDC__ |
23530 | # include <limits.h> | |
23531 | #else | |
23532 | # include <assert.h> | |
23533 | #endif | |
ac1cb8d3 VS |
23534 | |
23535 | #undef $ac_func | |
23536 | ||
a848cd7e SC |
23537 | /* Override any gcc2 internal prototype to avoid an error. */ |
23538 | #ifdef __cplusplus | |
23539 | extern "C" | |
23540 | { | |
23541 | #endif | |
23542 | /* We use char because int might match the return type of a gcc2 | |
23543 | builtin and then its argument prototype would still apply. */ | |
23544 | char $ac_func (); | |
23545 | /* The GNU C library defines this for functions which it implements | |
23546 | to always fail with ENOSYS. Some functions are actually named | |
23547 | something starting with __ and the normal name is an alias. */ | |
23548 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23549 | choke me | |
23550 | #else | |
23551 | char (*f) () = $ac_func; | |
23552 | #endif | |
23553 | #ifdef __cplusplus | |
23554 | } | |
23555 | #endif | |
23556 | ||
23557 | int | |
23558 | main () | |
23559 | { | |
23560 | return f != $ac_func; | |
23561 | ; | |
23562 | return 0; | |
23563 | } | |
23564 | _ACEOF | |
23565 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23567 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23568 | ac_status=$? |
ac1cb8d3 VS |
23569 | grep -v '^ *+' conftest.er1 >conftest.err |
23570 | rm -f conftest.er1 | |
23571 | cat conftest.err >&5 | |
a848cd7e SC |
23572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23573 | (exit $ac_status); } && | |
ea7db9ff DE |
23574 | { ac_try='test -z "$ac_c_werror_flag" |
23575 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23577 | (eval $ac_try) 2>&5 | |
23578 | ac_status=$? | |
23579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23580 | (exit $ac_status); }; } && | |
23581 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23583 | (eval $ac_try) 2>&5 | |
23584 | ac_status=$? | |
23585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23586 | (exit $ac_status); }; }; then | |
23587 | eval "$as_ac_var=yes" | |
23588 | else | |
23589 | echo "$as_me: failed program was:" >&5 | |
23590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23591 | ||
23592 | eval "$as_ac_var=no" | |
23593 | fi | |
ac1cb8d3 VS |
23594 | rm -f conftest.err conftest.$ac_objext \ |
23595 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23596 | fi |
23597 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23598 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23599 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23600 | cat >>confdefs.h <<_ACEOF | |
23601 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23602 | _ACEOF | |
23603 | ||
23604 | fi | |
23605 | done | |
23606 | ||
23607 | fi | |
23608 | ||
23609 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23610 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23611 | ||
23612 | AFMINSTALL=afminstall | |
23613 | TOOLKIT=GTK | |
23614 | GUIDIST=GTK_DIST | |
23615 | ||
23616 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23617 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23618 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23620 | else | |
23621 | ac_check_lib_save_LIBS=$LIBS | |
23622 | LIBS="-lgdk $LIBS" | |
23623 | cat >conftest.$ac_ext <<_ACEOF | |
23624 | /* confdefs.h. */ | |
23625 | _ACEOF | |
23626 | cat confdefs.h >>conftest.$ac_ext | |
23627 | cat >>conftest.$ac_ext <<_ACEOF | |
23628 | /* end confdefs.h. */ | |
23629 | ||
23630 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23631 | #ifdef __cplusplus | |
23632 | extern "C" | |
23633 | #endif | |
23634 | /* We use char because int might match the return type of a gcc2 | |
23635 | builtin and then its argument prototype would still apply. */ | |
23636 | char gdk_im_open (); | |
23637 | int | |
23638 | main () | |
23639 | { | |
23640 | gdk_im_open (); | |
23641 | ; | |
23642 | return 0; | |
23643 | } | |
23644 | _ACEOF | |
23645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23647 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23648 | ac_status=$? |
ac1cb8d3 VS |
23649 | grep -v '^ *+' conftest.er1 >conftest.err |
23650 | rm -f conftest.er1 | |
23651 | cat conftest.err >&5 | |
a848cd7e SC |
23652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23653 | (exit $ac_status); } && | |
ea7db9ff DE |
23654 | { ac_try='test -z "$ac_c_werror_flag" |
23655 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23657 | (eval $ac_try) 2>&5 | |
23658 | ac_status=$? | |
23659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23660 | (exit $ac_status); }; } && | |
23661 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23663 | (eval $ac_try) 2>&5 | |
23664 | ac_status=$? | |
23665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23666 | (exit $ac_status); }; }; then | |
23667 | ac_cv_lib_gdk_gdk_im_open=yes | |
23668 | else | |
23669 | echo "$as_me: failed program was:" >&5 | |
23670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23671 | ||
23672 | ac_cv_lib_gdk_gdk_im_open=no | |
23673 | fi | |
ac1cb8d3 VS |
23674 | rm -f conftest.err conftest.$ac_objext \ |
23675 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23676 | LIBS=$ac_check_lib_save_LIBS |
23677 | fi | |
23678 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23679 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23680 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23681 | cat >>confdefs.h <<\_ACEOF | |
23682 | #define HAVE_XIM 1 | |
23683 | _ACEOF | |
23684 | ||
23685 | fi | |
23686 | ||
23687 | ||
23688 | ||
23689 | if test "$wxUSE_GPE" = "yes"; then | |
23690 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23691 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23692 | ||
23693 | ac_find_libraries= | |
23694 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23695 | do | |
23696 | for ac_extension in a so sl dylib; do | |
23697 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23698 | ac_find_libraries=$ac_dir | |
23699 | break 2 | |
23700 | fi | |
23701 | done | |
23702 | done | |
23703 | ||
23704 | if test "$ac_find_libraries" != "" ; then | |
23705 | ||
23706 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23707 | result=$? | |
23708 | if test $result = 0; then | |
23709 | ac_path_to_link="" | |
23710 | else | |
23711 | ac_path_to_link=" -L$ac_find_libraries" | |
23712 | fi | |
23713 | ||
23714 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23715 | WXGPE=1 | |
23716 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23717 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23718 | else | |
23719 | echo "$as_me:$LINENO: result: not found" >&5 | |
23720 | echo "${ECHO_T}not found" >&6 | |
23721 | fi | |
23722 | ||
23723 | fi | |
23724 | fi | |
23725 | ||
23726 | if test "$wxUSE_MGL" = 1; then | |
23727 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23728 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23729 | if test "x$MGL_ROOT" = x ; then | |
23730 | echo "$as_me:$LINENO: result: not found" >&5 | |
23731 | echo "${ECHO_T}not found" >&6 | |
23732 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23733 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23734 | { (exit 1); exit 1; }; } | |
23735 | else | |
23736 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
23737 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
23738 | fi | |
23739 | ||
23740 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
23741 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
23742 | case "${host}" in | |
23743 | *-*-linux* ) | |
23744 | if test "x$wxUSE_SHARED" = xyes ; then | |
23745 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
23746 | else | |
23747 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
23748 | fi | |
23749 | ;; | |
23750 | *-pc-msdosdjgpp ) | |
23751 | mgl_os_candidates="dos32/dj2" | |
23752 | ;; | |
23753 | *) | |
23754 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
23755 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23756 | { (exit 1); exit 1; }; } | |
23757 | esac | |
23758 | ||
23759 | mgl_lib_type="" | |
23760 | mgl_os="" | |
23761 | ||
23762 | for mgl_os_i in $mgl_os_candidates ; do | |
23763 | if test "x$mgl_os" = x ; then | |
23764 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23765 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23766 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23767 | mgl_lib_type=debug | |
23768 | mgl_os=$mgl_os_i | |
23769 | fi | |
23770 | fi | |
23771 | if test "x$mgl_lib_type" = x ; then | |
23772 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23773 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23774 | mgl_lib_type=release | |
23775 | mgl_os=$mgl_os_i | |
23776 | fi | |
23777 | fi | |
23778 | fi | |
23779 | done | |
23780 | ||
23781 | if test "x$mgl_os" = x ; then | |
23782 | echo "$as_me:$LINENO: result: not found" >&5 | |
23783 | echo "${ECHO_T}not found" >&6 | |
23784 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23785 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23786 | { (exit 1); exit 1; }; } | |
23787 | fi | |
23788 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
23789 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
23790 | ||
23791 | wxUSE_UNIVERSAL="yes" | |
23792 | ||
23793 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
23794 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23795 | ||
23796 | AFMINSTALL=afminstall | |
23797 | TOOLKIT=MGL | |
23798 | GUIDIST=MGL_DIST | |
23799 | fi | |
23800 | ||
23801 | if test "$wxUSE_MICROWIN" = 1; then | |
23802 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
23803 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
23804 | if test "x$MICROWINDOWS" = x ; then | |
23805 | echo "$as_me:$LINENO: result: not found" >&5 | |
23806 | echo "${ECHO_T}not found" >&6 | |
23807 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23808 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23809 | { (exit 1); exit 1; }; } | |
23810 | else | |
23811 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
23812 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
23813 | fi | |
23814 | ||
23815 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
23816 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
23817 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
23818 | else | |
23819 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
23820 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23821 | { (exit 1); exit 1; }; } | |
23822 | fi | |
23823 | ||
23824 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
23825 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23826 | ||
23827 | wxUSE_UNIVERSAL="yes" | |
23828 | ||
23829 | AFMINSTALL=afminstall | |
23830 | TOOLKIT=MICROWIN | |
23831 | GUIDIST=MICROWIN_DIST | |
23832 | ||
23833 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
23834 | fi | |
23835 | ||
74b84332 | 23836 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
ea7db9ff | 23837 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
23838 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
23839 | ||
23840 | ||
23841 | # Check whether --with-x or --without-x was given. | |
23842 | if test "${with_x+set}" = set; then | |
23843 | withval="$with_x" | |
23844 | ||
23845 | fi; | |
23846 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
23847 | if test "x$with_x" = xno; then | |
23848 | # The user explicitly disabled X. | |
23849 | have_x=disabled | |
23850 | else | |
23851 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23852 | # Both variables are already set. | |
23853 | have_x=yes | |
23854 | else | |
23855 | if test "${ac_cv_have_x+set}" = set; then | |
23856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23857 | else | |
23858 | # One or both of the vars are not set, and there is no cached value. | |
23859 | ac_x_includes=no ac_x_libraries=no | |
23860 | rm -fr conftest.dir | |
23861 | if mkdir conftest.dir; then | |
23862 | cd conftest.dir | |
23863 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
23864 | cat >Imakefile <<'_ACEOF' | |
23865 | acfindx: | |
23866 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
23867 | _ACEOF | |
23868 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
23869 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23870 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23871 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23872 | for ac_extension in a so sl; do | |
23873 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
23874 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23875 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
23876 | fi |
23877 | done | |
23878 | # Screen out bogus values from the imake configuration. They are | |
23879 | # bogus both because they are the default anyway, and because | |
23880 | # using them would break gcc on systems where it needs fixed includes. | |
23881 | case $ac_im_incroot in | |
23882 | /usr/include) ;; | |
23883 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
23884 | esac | |
23885 | case $ac_im_usrlibdir in | |
23886 | /usr/lib | /lib) ;; | |
23887 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
23888 | esac | |
23889 | fi | |
23890 | cd .. | |
23891 | rm -fr conftest.dir | |
23892 | fi | |
23893 | ||
23894 | # Standard set of common directories for X headers. | |
23895 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23896 | ac_x_header_dirs=' | |
23897 | /usr/X11/include | |
23898 | /usr/X11R6/include | |
23899 | /usr/X11R5/include | |
23900 | /usr/X11R4/include | |
23901 | ||
23902 | /usr/include/X11 | |
23903 | /usr/include/X11R6 | |
23904 | /usr/include/X11R5 | |
23905 | /usr/include/X11R4 | |
23906 | ||
23907 | /usr/local/X11/include | |
23908 | /usr/local/X11R6/include | |
23909 | /usr/local/X11R5/include | |
23910 | /usr/local/X11R4/include | |
23911 | ||
23912 | /usr/local/include/X11 | |
23913 | /usr/local/include/X11R6 | |
23914 | /usr/local/include/X11R5 | |
23915 | /usr/local/include/X11R4 | |
23916 | ||
23917 | /usr/X386/include | |
23918 | /usr/x386/include | |
23919 | /usr/XFree86/include/X11 | |
23920 | ||
23921 | /usr/include | |
23922 | /usr/local/include | |
23923 | /usr/unsupported/include | |
23924 | /usr/athena/include | |
23925 | /usr/local/x11r5/include | |
23926 | /usr/lpp/Xamples/include | |
23927 | ||
23928 | /usr/openwin/include | |
23929 | /usr/openwin/share/include' | |
23930 | ||
23931 | if test "$ac_x_includes" = no; then | |
ea7db9ff | 23932 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
23933 | # First, try using that file with no special directory specified. |
23934 | cat >conftest.$ac_ext <<_ACEOF | |
23935 | /* confdefs.h. */ | |
23936 | _ACEOF | |
23937 | cat confdefs.h >>conftest.$ac_ext | |
23938 | cat >>conftest.$ac_ext <<_ACEOF | |
23939 | /* end confdefs.h. */ | |
23940 | #include <X11/Intrinsic.h> | |
23941 | _ACEOF | |
23942 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23943 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23944 | ac_status=$? | |
23945 | grep -v '^ *+' conftest.er1 >conftest.err | |
23946 | rm -f conftest.er1 | |
23947 | cat conftest.err >&5 | |
23948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23949 | (exit $ac_status); } >/dev/null; then | |
23950 | if test -s conftest.err; then | |
23951 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23952 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23953 | else |
23954 | ac_cpp_err= | |
23955 | fi | |
23956 | else | |
23957 | ac_cpp_err=yes | |
23958 | fi | |
23959 | if test -z "$ac_cpp_err"; then | |
23960 | # We can compile using X headers with no special include directory. | |
23961 | ac_x_includes= | |
23962 | else | |
23963 | echo "$as_me: failed program was:" >&5 | |
23964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23965 | ||
23966 | for ac_dir in $ac_x_header_dirs; do | |
23967 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
23968 | ac_x_includes=$ac_dir | |
23969 | break | |
23970 | fi | |
23971 | done | |
23972 | fi | |
23973 | rm -f conftest.err conftest.$ac_ext | |
23974 | fi # $ac_x_includes = no | |
23975 | ||
23976 | if test "$ac_x_libraries" = no; then | |
23977 | # Check for the libraries. | |
23978 | # See if we find them without any special options. | |
23979 | # Don't add to $LIBS permanently. | |
23980 | ac_save_LIBS=$LIBS | |
23981 | LIBS="-lXt $LIBS" | |
23982 | cat >conftest.$ac_ext <<_ACEOF | |
23983 | /* confdefs.h. */ | |
23984 | _ACEOF | |
23985 | cat confdefs.h >>conftest.$ac_ext | |
23986 | cat >>conftest.$ac_ext <<_ACEOF | |
23987 | /* end confdefs.h. */ | |
23988 | #include <X11/Intrinsic.h> | |
23989 | int | |
23990 | main () | |
23991 | { | |
23992 | XtMalloc (0) | |
23993 | ; | |
23994 | return 0; | |
23995 | } | |
23996 | _ACEOF | |
23997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23999 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24000 | ac_status=$? |
ac1cb8d3 VS |
24001 | grep -v '^ *+' conftest.er1 >conftest.err |
24002 | rm -f conftest.er1 | |
24003 | cat conftest.err >&5 | |
a848cd7e SC |
24004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24005 | (exit $ac_status); } && | |
ea7db9ff DE |
24006 | { ac_try='test -z "$ac_c_werror_flag" |
24007 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24009 | (eval $ac_try) 2>&5 | |
24010 | ac_status=$? | |
24011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24012 | (exit $ac_status); }; } && | |
24013 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24015 | (eval $ac_try) 2>&5 | |
24016 | ac_status=$? | |
24017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24018 | (exit $ac_status); }; }; then | |
24019 | LIBS=$ac_save_LIBS | |
24020 | # We can link X programs with no special library path. | |
24021 | ac_x_libraries= | |
24022 | else | |
24023 | echo "$as_me: failed program was:" >&5 | |
24024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24025 | ||
24026 | LIBS=$ac_save_LIBS | |
24027 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24028 | do | |
24029 | # Don't even attempt the hair of trying to link an X program! | |
24030 | for ac_extension in a so sl; do | |
24031 | if test -r $ac_dir/libXt.$ac_extension; then | |
24032 | ac_x_libraries=$ac_dir | |
24033 | break 2 | |
24034 | fi | |
24035 | done | |
24036 | done | |
24037 | fi | |
ac1cb8d3 VS |
24038 | rm -f conftest.err conftest.$ac_objext \ |
24039 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24040 | fi # $ac_x_libraries = no |
24041 | ||
24042 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24043 | # Didn't find X anywhere. Cache the known absence of X. | |
24044 | ac_cv_have_x="have_x=no" | |
24045 | else | |
24046 | # Record where we found X for the cache. | |
24047 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24048 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24049 | fi |
24050 | fi | |
24051 | ||
24052 | fi | |
24053 | eval "$ac_cv_have_x" | |
24054 | fi # $with_x != no | |
24055 | ||
24056 | if test "$have_x" != yes; then | |
24057 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24058 | echo "${ECHO_T}$have_x" >&6 | |
24059 | no_x=yes | |
24060 | else | |
24061 | # If each of the values was on the command line, it overrides each guess. | |
24062 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24063 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24064 | # Update the cache value to reflect the command line values. | |
24065 | ac_cv_have_x="have_x=yes \ | |
24066 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
ea7db9ff DE |
24067 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
24068 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
24069 | fi |
24070 | ||
24071 | if test "$no_x" = yes; then | |
24072 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24073 | ||
24074 | cat >>confdefs.h <<\_ACEOF | |
24075 | #define X_DISPLAY_MISSING 1 | |
24076 | _ACEOF | |
24077 | ||
24078 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24079 | else | |
24080 | if test -n "$x_includes"; then | |
24081 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24082 | fi | |
24083 | ||
24084 | # It would also be nice to do this for all -L options, not just this one. | |
24085 | if test -n "$x_libraries"; then | |
24086 | X_LIBS="$X_LIBS -L$x_libraries" | |
24087 | # For Solaris; some versions of Sun CC require a space after -R and | |
24088 | # others require no space. Words are not sufficient . . . . | |
24089 | case `(uname -sr) 2>/dev/null` in | |
24090 | "SunOS 5"*) | |
24091 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24092 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24093 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24094 | cat >conftest.$ac_ext <<_ACEOF | |
24095 | /* confdefs.h. */ | |
24096 | _ACEOF | |
24097 | cat confdefs.h >>conftest.$ac_ext | |
24098 | cat >>conftest.$ac_ext <<_ACEOF | |
24099 | /* end confdefs.h. */ | |
24100 | ||
24101 | int | |
24102 | main () | |
24103 | { | |
24104 | ||
24105 | ; | |
24106 | return 0; | |
24107 | } | |
24108 | _ACEOF | |
24109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24111 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24112 | ac_status=$? |
ac1cb8d3 VS |
24113 | grep -v '^ *+' conftest.er1 >conftest.err |
24114 | rm -f conftest.er1 | |
24115 | cat conftest.err >&5 | |
a848cd7e SC |
24116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24117 | (exit $ac_status); } && | |
ea7db9ff DE |
24118 | { ac_try='test -z "$ac_c_werror_flag" |
24119 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24121 | (eval $ac_try) 2>&5 | |
24122 | ac_status=$? | |
24123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24124 | (exit $ac_status); }; } && | |
24125 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24127 | (eval $ac_try) 2>&5 | |
24128 | ac_status=$? | |
24129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24130 | (exit $ac_status); }; }; then | |
24131 | ac_R_nospace=yes | |
24132 | else | |
24133 | echo "$as_me: failed program was:" >&5 | |
24134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24135 | ||
24136 | ac_R_nospace=no | |
24137 | fi | |
ac1cb8d3 VS |
24138 | rm -f conftest.err conftest.$ac_objext \ |
24139 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24140 | if test $ac_R_nospace = yes; then |
24141 | echo "$as_me:$LINENO: result: no" >&5 | |
24142 | echo "${ECHO_T}no" >&6 | |
24143 | X_LIBS="$X_LIBS -R$x_libraries" | |
24144 | else | |
24145 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24146 | cat >conftest.$ac_ext <<_ACEOF | |
24147 | /* confdefs.h. */ | |
24148 | _ACEOF | |
24149 | cat confdefs.h >>conftest.$ac_ext | |
24150 | cat >>conftest.$ac_ext <<_ACEOF | |
24151 | /* end confdefs.h. */ | |
24152 | ||
24153 | int | |
24154 | main () | |
24155 | { | |
24156 | ||
24157 | ; | |
24158 | return 0; | |
24159 | } | |
24160 | _ACEOF | |
24161 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24163 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24164 | ac_status=$? |
ac1cb8d3 VS |
24165 | grep -v '^ *+' conftest.er1 >conftest.err |
24166 | rm -f conftest.er1 | |
24167 | cat conftest.err >&5 | |
a848cd7e SC |
24168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24169 | (exit $ac_status); } && | |
ea7db9ff DE |
24170 | { ac_try='test -z "$ac_c_werror_flag" |
24171 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24173 | (eval $ac_try) 2>&5 | |
24174 | ac_status=$? | |
24175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24176 | (exit $ac_status); }; } && | |
24177 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24179 | (eval $ac_try) 2>&5 | |
24180 | ac_status=$? | |
24181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24182 | (exit $ac_status); }; }; then | |
24183 | ac_R_space=yes | |
24184 | else | |
24185 | echo "$as_me: failed program was:" >&5 | |
24186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24187 | ||
24188 | ac_R_space=no | |
24189 | fi | |
ac1cb8d3 VS |
24190 | rm -f conftest.err conftest.$ac_objext \ |
24191 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24192 | if test $ac_R_space = yes; then |
24193 | echo "$as_me:$LINENO: result: yes" >&5 | |
24194 | echo "${ECHO_T}yes" >&6 | |
24195 | X_LIBS="$X_LIBS -R $x_libraries" | |
24196 | else | |
24197 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24198 | echo "${ECHO_T}neither works" >&6 | |
24199 | fi | |
24200 | fi | |
24201 | LIBS=$ac_xsave_LIBS | |
24202 | esac | |
24203 | fi | |
24204 | ||
24205 | # Check for system-dependent libraries X programs must link with. | |
24206 | # Do this before checking for the system-independent R6 libraries | |
24207 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24208 | ||
24209 | if test "$ISC" = yes; then | |
24210 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24211 | else | |
24212 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24213 | # libraries were built with DECnet support. And Karl Berry says | |
24214 | # the Alpha needs dnet_stub (dnet does not exist). | |
24215 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24216 | cat >conftest.$ac_ext <<_ACEOF | |
24217 | /* confdefs.h. */ | |
24218 | _ACEOF | |
24219 | cat confdefs.h >>conftest.$ac_ext | |
24220 | cat >>conftest.$ac_ext <<_ACEOF | |
24221 | /* end confdefs.h. */ | |
24222 | ||
24223 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24224 | #ifdef __cplusplus | |
24225 | extern "C" | |
24226 | #endif | |
24227 | /* We use char because int might match the return type of a gcc2 | |
24228 | builtin and then its argument prototype would still apply. */ | |
24229 | char XOpenDisplay (); | |
24230 | int | |
24231 | main () | |
24232 | { | |
24233 | XOpenDisplay (); | |
24234 | ; | |
24235 | return 0; | |
24236 | } | |
24237 | _ACEOF | |
24238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24240 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24241 | ac_status=$? |
ac1cb8d3 VS |
24242 | grep -v '^ *+' conftest.er1 >conftest.err |
24243 | rm -f conftest.er1 | |
24244 | cat conftest.err >&5 | |
a848cd7e SC |
24245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24246 | (exit $ac_status); } && | |
ea7db9ff DE |
24247 | { ac_try='test -z "$ac_c_werror_flag" |
24248 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24250 | (eval $ac_try) 2>&5 | |
24251 | ac_status=$? | |
24252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24253 | (exit $ac_status); }; } && | |
24254 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24256 | (eval $ac_try) 2>&5 | |
24257 | ac_status=$? | |
24258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24259 | (exit $ac_status); }; }; then | |
24260 | : | |
24261 | else | |
24262 | echo "$as_me: failed program was:" >&5 | |
24263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24264 | ||
24265 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24266 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24267 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24269 | else | |
24270 | ac_check_lib_save_LIBS=$LIBS | |
24271 | LIBS="-ldnet $LIBS" | |
24272 | cat >conftest.$ac_ext <<_ACEOF | |
24273 | /* confdefs.h. */ | |
24274 | _ACEOF | |
24275 | cat confdefs.h >>conftest.$ac_ext | |
24276 | cat >>conftest.$ac_ext <<_ACEOF | |
24277 | /* end confdefs.h. */ | |
24278 | ||
24279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24280 | #ifdef __cplusplus | |
24281 | extern "C" | |
24282 | #endif | |
24283 | /* We use char because int might match the return type of a gcc2 | |
24284 | builtin and then its argument prototype would still apply. */ | |
24285 | char dnet_ntoa (); | |
24286 | int | |
24287 | main () | |
24288 | { | |
24289 | dnet_ntoa (); | |
24290 | ; | |
24291 | return 0; | |
24292 | } | |
24293 | _ACEOF | |
24294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24296 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24297 | ac_status=$? |
ac1cb8d3 VS |
24298 | grep -v '^ *+' conftest.er1 >conftest.err |
24299 | rm -f conftest.er1 | |
24300 | cat conftest.err >&5 | |
a848cd7e SC |
24301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24302 | (exit $ac_status); } && | |
ea7db9ff DE |
24303 | { ac_try='test -z "$ac_c_werror_flag" |
24304 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24306 | (eval $ac_try) 2>&5 | |
24307 | ac_status=$? | |
24308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24309 | (exit $ac_status); }; } && | |
24310 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24312 | (eval $ac_try) 2>&5 | |
24313 | ac_status=$? | |
24314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24315 | (exit $ac_status); }; }; then | |
24316 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24317 | else | |
24318 | echo "$as_me: failed program was:" >&5 | |
24319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24320 | ||
24321 | ac_cv_lib_dnet_dnet_ntoa=no | |
24322 | fi | |
ac1cb8d3 VS |
24323 | rm -f conftest.err conftest.$ac_objext \ |
24324 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24325 | LIBS=$ac_check_lib_save_LIBS |
24326 | fi | |
24327 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24328 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24329 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24330 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24331 | fi | |
24332 | ||
24333 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24334 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24335 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24336 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24338 | else | |
24339 | ac_check_lib_save_LIBS=$LIBS | |
24340 | LIBS="-ldnet_stub $LIBS" | |
24341 | cat >conftest.$ac_ext <<_ACEOF | |
24342 | /* confdefs.h. */ | |
24343 | _ACEOF | |
24344 | cat confdefs.h >>conftest.$ac_ext | |
24345 | cat >>conftest.$ac_ext <<_ACEOF | |
24346 | /* end confdefs.h. */ | |
24347 | ||
24348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24349 | #ifdef __cplusplus | |
24350 | extern "C" | |
24351 | #endif | |
24352 | /* We use char because int might match the return type of a gcc2 | |
24353 | builtin and then its argument prototype would still apply. */ | |
24354 | char dnet_ntoa (); | |
24355 | int | |
24356 | main () | |
24357 | { | |
24358 | dnet_ntoa (); | |
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); } && | |
ea7db9ff DE |
24372 | { ac_try='test -z "$ac_c_werror_flag" |
24373 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24375 | (eval $ac_try) 2>&5 | |
24376 | ac_status=$? | |
24377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24378 | (exit $ac_status); }; } && | |
24379 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24381 | (eval $ac_try) 2>&5 | |
24382 | ac_status=$? | |
24383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24384 | (exit $ac_status); }; }; then | |
24385 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24386 | else | |
24387 | echo "$as_me: failed program was:" >&5 | |
24388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24389 | ||
24390 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24391 | fi | |
ac1cb8d3 VS |
24392 | rm -f conftest.err conftest.$ac_objext \ |
24393 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24394 | LIBS=$ac_check_lib_save_LIBS |
24395 | fi | |
24396 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24397 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24398 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24399 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24400 | fi | |
24401 | ||
24402 | fi | |
24403 | fi | |
ac1cb8d3 VS |
24404 | rm -f conftest.err conftest.$ac_objext \ |
24405 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24406 | LIBS="$ac_xsave_LIBS" |
24407 | ||
24408 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24409 | # to get the SysV transport functions. | |
24410 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24411 | # needs -lnsl. | |
24412 | # The nsl library prevents programs from opening the X display | |
24413 | # on Irix 5.2, according to T.E. Dickey. | |
24414 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24415 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24416 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24417 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24418 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24420 | else | |
24421 | cat >conftest.$ac_ext <<_ACEOF | |
24422 | /* confdefs.h. */ | |
24423 | _ACEOF | |
24424 | cat confdefs.h >>conftest.$ac_ext | |
24425 | cat >>conftest.$ac_ext <<_ACEOF | |
24426 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24427 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24428 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24429 | #define gethostbyname innocuous_gethostbyname | |
24430 | ||
a848cd7e SC |
24431 | /* System header to define __stub macros and hopefully few prototypes, |
24432 | which can conflict with char gethostbyname (); below. | |
24433 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24434 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24435 | |
a848cd7e SC |
24436 | #ifdef __STDC__ |
24437 | # include <limits.h> | |
24438 | #else | |
24439 | # include <assert.h> | |
24440 | #endif | |
ac1cb8d3 VS |
24441 | |
24442 | #undef gethostbyname | |
24443 | ||
a848cd7e SC |
24444 | /* Override any gcc2 internal prototype to avoid an error. */ |
24445 | #ifdef __cplusplus | |
24446 | extern "C" | |
24447 | { | |
24448 | #endif | |
24449 | /* We use char because int might match the return type of a gcc2 | |
24450 | builtin and then its argument prototype would still apply. */ | |
24451 | char gethostbyname (); | |
24452 | /* The GNU C library defines this for functions which it implements | |
24453 | to always fail with ENOSYS. Some functions are actually named | |
24454 | something starting with __ and the normal name is an alias. */ | |
24455 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24456 | choke me | |
24457 | #else | |
24458 | char (*f) () = gethostbyname; | |
24459 | #endif | |
24460 | #ifdef __cplusplus | |
24461 | } | |
24462 | #endif | |
24463 | ||
24464 | int | |
24465 | main () | |
24466 | { | |
24467 | return f != gethostbyname; | |
24468 | ; | |
24469 | return 0; | |
24470 | } | |
24471 | _ACEOF | |
24472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24474 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24475 | ac_status=$? |
ac1cb8d3 VS |
24476 | grep -v '^ *+' conftest.er1 >conftest.err |
24477 | rm -f conftest.er1 | |
24478 | cat conftest.err >&5 | |
a848cd7e SC |
24479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24480 | (exit $ac_status); } && | |
ea7db9ff DE |
24481 | { ac_try='test -z "$ac_c_werror_flag" |
24482 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24484 | (eval $ac_try) 2>&5 | |
24485 | ac_status=$? | |
24486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24487 | (exit $ac_status); }; } && | |
24488 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24490 | (eval $ac_try) 2>&5 | |
24491 | ac_status=$? | |
24492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24493 | (exit $ac_status); }; }; then | |
24494 | ac_cv_func_gethostbyname=yes | |
24495 | else | |
24496 | echo "$as_me: failed program was:" >&5 | |
24497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24498 | ||
24499 | ac_cv_func_gethostbyname=no | |
24500 | fi | |
ac1cb8d3 VS |
24501 | rm -f conftest.err conftest.$ac_objext \ |
24502 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24503 | fi |
24504 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24505 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24506 | ||
24507 | if test $ac_cv_func_gethostbyname = no; then | |
24508 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24509 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24510 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24512 | else | |
24513 | ac_check_lib_save_LIBS=$LIBS | |
24514 | LIBS="-lnsl $LIBS" | |
24515 | cat >conftest.$ac_ext <<_ACEOF | |
24516 | /* confdefs.h. */ | |
24517 | _ACEOF | |
24518 | cat confdefs.h >>conftest.$ac_ext | |
24519 | cat >>conftest.$ac_ext <<_ACEOF | |
24520 | /* end confdefs.h. */ | |
24521 | ||
24522 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24523 | #ifdef __cplusplus | |
24524 | extern "C" | |
24525 | #endif | |
24526 | /* We use char because int might match the return type of a gcc2 | |
24527 | builtin and then its argument prototype would still apply. */ | |
24528 | char gethostbyname (); | |
24529 | int | |
24530 | main () | |
24531 | { | |
24532 | gethostbyname (); | |
24533 | ; | |
24534 | return 0; | |
24535 | } | |
24536 | _ACEOF | |
24537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24539 | (eval $ac_link) 2>conftest.er1 |
24540 | ac_status=$? | |
24541 | grep -v '^ *+' conftest.er1 >conftest.err | |
24542 | rm -f conftest.er1 | |
24543 | cat conftest.err >&5 | |
24544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24545 | (exit $ac_status); } && | |
ea7db9ff DE |
24546 | { ac_try='test -z "$ac_c_werror_flag" |
24547 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24549 | (eval $ac_try) 2>&5 | |
24550 | ac_status=$? | |
24551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24552 | (exit $ac_status); }; } && | |
24553 | { ac_try='test -s conftest$ac_exeext' | |
24554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24555 | (eval $ac_try) 2>&5 | |
24556 | ac_status=$? | |
24557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24558 | (exit $ac_status); }; }; then | |
24559 | ac_cv_lib_nsl_gethostbyname=yes | |
24560 | else | |
24561 | echo "$as_me: failed program was:" >&5 | |
24562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24563 | ||
24564 | ac_cv_lib_nsl_gethostbyname=no | |
24565 | fi | |
24566 | rm -f conftest.err conftest.$ac_objext \ | |
24567 | conftest$ac_exeext conftest.$ac_ext | |
24568 | LIBS=$ac_check_lib_save_LIBS | |
24569 | fi | |
24570 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24571 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24572 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24573 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24574 | fi | |
24575 | ||
24576 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24577 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24578 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24579 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24581 | else | |
24582 | ac_check_lib_save_LIBS=$LIBS | |
24583 | LIBS="-lbsd $LIBS" | |
24584 | cat >conftest.$ac_ext <<_ACEOF | |
24585 | /* confdefs.h. */ | |
24586 | _ACEOF | |
24587 | cat confdefs.h >>conftest.$ac_ext | |
24588 | cat >>conftest.$ac_ext <<_ACEOF | |
24589 | /* end confdefs.h. */ | |
24590 | ||
24591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24592 | #ifdef __cplusplus | |
24593 | extern "C" | |
24594 | #endif | |
24595 | /* We use char because int might match the return type of a gcc2 | |
24596 | builtin and then its argument prototype would still apply. */ | |
24597 | char gethostbyname (); | |
24598 | int | |
24599 | main () | |
24600 | { | |
24601 | gethostbyname (); | |
24602 | ; | |
24603 | return 0; | |
24604 | } | |
24605 | _ACEOF | |
24606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24608 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24609 | ac_status=$? |
ac1cb8d3 VS |
24610 | grep -v '^ *+' conftest.er1 >conftest.err |
24611 | rm -f conftest.er1 | |
24612 | cat conftest.err >&5 | |
a848cd7e SC |
24613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24614 | (exit $ac_status); } && | |
ea7db9ff DE |
24615 | { ac_try='test -z "$ac_c_werror_flag" |
24616 | || test ! -s conftest.err' | |
a848cd7e SC |
24617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24618 | (eval $ac_try) 2>&5 | |
24619 | ac_status=$? | |
24620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24621 | (exit $ac_status); }; } && |
24622 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24624 | (eval $ac_try) 2>&5 | |
24625 | ac_status=$? | |
24626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24627 | (exit $ac_status); }; }; then | |
24628 | ac_cv_lib_bsd_gethostbyname=yes | |
24629 | else | |
24630 | echo "$as_me: failed program was:" >&5 | |
24631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24632 | ||
24633 | ac_cv_lib_bsd_gethostbyname=no | |
24634 | fi | |
ac1cb8d3 VS |
24635 | rm -f conftest.err conftest.$ac_objext \ |
24636 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24637 | LIBS=$ac_check_lib_save_LIBS |
24638 | fi | |
24639 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24640 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24641 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24642 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24643 | fi | |
24644 | ||
24645 | fi | |
24646 | fi | |
24647 | ||
24648 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24649 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24650 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24651 | # on later versions), says Simon Leinen: it contains gethostby* | |
24652 | # variants that don't use the name server (or something). -lsocket | |
24653 | # must be given before -lnsl if both are needed. We assume that | |
24654 | # if connect needs -lnsl, so does gethostbyname. | |
24655 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24656 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24657 | if test "${ac_cv_func_connect+set}" = set; then | |
24658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24659 | else | |
24660 | cat >conftest.$ac_ext <<_ACEOF | |
24661 | /* confdefs.h. */ | |
24662 | _ACEOF | |
24663 | cat confdefs.h >>conftest.$ac_ext | |
24664 | cat >>conftest.$ac_ext <<_ACEOF | |
24665 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24666 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24667 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24668 | #define connect innocuous_connect | |
24669 | ||
a848cd7e SC |
24670 | /* System header to define __stub macros and hopefully few prototypes, |
24671 | which can conflict with char connect (); below. | |
24672 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24673 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24674 | |
a848cd7e SC |
24675 | #ifdef __STDC__ |
24676 | # include <limits.h> | |
24677 | #else | |
24678 | # include <assert.h> | |
24679 | #endif | |
ac1cb8d3 VS |
24680 | |
24681 | #undef connect | |
24682 | ||
a848cd7e SC |
24683 | /* Override any gcc2 internal prototype to avoid an error. */ |
24684 | #ifdef __cplusplus | |
24685 | extern "C" | |
24686 | { | |
24687 | #endif | |
24688 | /* We use char because int might match the return type of a gcc2 | |
24689 | builtin and then its argument prototype would still apply. */ | |
24690 | char connect (); | |
24691 | /* The GNU C library defines this for functions which it implements | |
24692 | to always fail with ENOSYS. Some functions are actually named | |
24693 | something starting with __ and the normal name is an alias. */ | |
24694 | #if defined (__stub_connect) || defined (__stub___connect) | |
24695 | choke me | |
24696 | #else | |
24697 | char (*f) () = connect; | |
24698 | #endif | |
24699 | #ifdef __cplusplus | |
24700 | } | |
24701 | #endif | |
24702 | ||
24703 | int | |
24704 | main () | |
24705 | { | |
24706 | return f != connect; | |
24707 | ; | |
24708 | return 0; | |
24709 | } | |
24710 | _ACEOF | |
24711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24713 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24714 | ac_status=$? |
ac1cb8d3 VS |
24715 | grep -v '^ *+' conftest.er1 >conftest.err |
24716 | rm -f conftest.er1 | |
24717 | cat conftest.err >&5 | |
a848cd7e SC |
24718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24719 | (exit $ac_status); } && | |
ea7db9ff DE |
24720 | { ac_try='test -z "$ac_c_werror_flag" |
24721 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24723 | (eval $ac_try) 2>&5 | |
24724 | ac_status=$? | |
24725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24726 | (exit $ac_status); }; } && | |
24727 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24729 | (eval $ac_try) 2>&5 | |
24730 | ac_status=$? | |
24731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24732 | (exit $ac_status); }; }; then | |
24733 | ac_cv_func_connect=yes | |
24734 | else | |
24735 | echo "$as_me: failed program was:" >&5 | |
24736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24737 | ||
24738 | ac_cv_func_connect=no | |
24739 | fi | |
ac1cb8d3 VS |
24740 | rm -f conftest.err conftest.$ac_objext \ |
24741 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24742 | fi |
24743 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24744 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24745 | ||
24746 | if test $ac_cv_func_connect = no; then | |
24747 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24748 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24749 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24751 | else | |
24752 | ac_check_lib_save_LIBS=$LIBS | |
24753 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
24754 | cat >conftest.$ac_ext <<_ACEOF | |
24755 | /* confdefs.h. */ | |
24756 | _ACEOF | |
24757 | cat confdefs.h >>conftest.$ac_ext | |
24758 | cat >>conftest.$ac_ext <<_ACEOF | |
24759 | /* end confdefs.h. */ | |
24760 | ||
24761 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24762 | #ifdef __cplusplus | |
24763 | extern "C" | |
24764 | #endif | |
24765 | /* We use char because int might match the return type of a gcc2 | |
24766 | builtin and then its argument prototype would still apply. */ | |
24767 | char connect (); | |
24768 | int | |
24769 | main () | |
24770 | { | |
24771 | connect (); | |
24772 | ; | |
24773 | return 0; | |
24774 | } | |
24775 | _ACEOF | |
24776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24778 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24779 | ac_status=$? |
ac1cb8d3 VS |
24780 | grep -v '^ *+' conftest.er1 >conftest.err |
24781 | rm -f conftest.er1 | |
24782 | cat conftest.err >&5 | |
a848cd7e SC |
24783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24784 | (exit $ac_status); } && | |
ea7db9ff DE |
24785 | { ac_try='test -z "$ac_c_werror_flag" |
24786 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24788 | (eval $ac_try) 2>&5 | |
24789 | ac_status=$? | |
24790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24791 | (exit $ac_status); }; } && | |
24792 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24794 | (eval $ac_try) 2>&5 | |
24795 | ac_status=$? | |
24796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24797 | (exit $ac_status); }; }; then | |
24798 | ac_cv_lib_socket_connect=yes | |
24799 | else | |
24800 | echo "$as_me: failed program was:" >&5 | |
24801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24802 | ||
24803 | ac_cv_lib_socket_connect=no | |
24804 | fi | |
ac1cb8d3 VS |
24805 | rm -f conftest.err conftest.$ac_objext \ |
24806 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24807 | LIBS=$ac_check_lib_save_LIBS |
24808 | fi | |
24809 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24810 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24811 | if test $ac_cv_lib_socket_connect = yes; then | |
24812 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24813 | fi | |
24814 | ||
24815 | fi | |
24816 | ||
24817 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24818 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24819 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24820 | if test "${ac_cv_func_remove+set}" = set; then | |
24821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24822 | else | |
24823 | cat >conftest.$ac_ext <<_ACEOF | |
24824 | /* confdefs.h. */ | |
24825 | _ACEOF | |
24826 | cat confdefs.h >>conftest.$ac_ext | |
24827 | cat >>conftest.$ac_ext <<_ACEOF | |
24828 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24829 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24830 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24831 | #define remove innocuous_remove | |
24832 | ||
a848cd7e SC |
24833 | /* System header to define __stub macros and hopefully few prototypes, |
24834 | which can conflict with char remove (); below. | |
24835 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24836 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24837 | |
a848cd7e SC |
24838 | #ifdef __STDC__ |
24839 | # include <limits.h> | |
24840 | #else | |
24841 | # include <assert.h> | |
24842 | #endif | |
ac1cb8d3 VS |
24843 | |
24844 | #undef remove | |
24845 | ||
a848cd7e SC |
24846 | /* Override any gcc2 internal prototype to avoid an error. */ |
24847 | #ifdef __cplusplus | |
24848 | extern "C" | |
24849 | { | |
24850 | #endif | |
24851 | /* We use char because int might match the return type of a gcc2 | |
24852 | builtin and then its argument prototype would still apply. */ | |
24853 | char remove (); | |
24854 | /* The GNU C library defines this for functions which it implements | |
24855 | to always fail with ENOSYS. Some functions are actually named | |
24856 | something starting with __ and the normal name is an alias. */ | |
24857 | #if defined (__stub_remove) || defined (__stub___remove) | |
24858 | choke me | |
24859 | #else | |
24860 | char (*f) () = remove; | |
24861 | #endif | |
24862 | #ifdef __cplusplus | |
24863 | } | |
24864 | #endif | |
24865 | ||
24866 | int | |
24867 | main () | |
24868 | { | |
24869 | return f != remove; | |
24870 | ; | |
24871 | return 0; | |
24872 | } | |
24873 | _ACEOF | |
24874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24876 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24877 | ac_status=$? |
ac1cb8d3 VS |
24878 | grep -v '^ *+' conftest.er1 >conftest.err |
24879 | rm -f conftest.er1 | |
24880 | cat conftest.err >&5 | |
a848cd7e SC |
24881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24882 | (exit $ac_status); } && | |
ea7db9ff DE |
24883 | { ac_try='test -z "$ac_c_werror_flag" |
24884 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24886 | (eval $ac_try) 2>&5 | |
24887 | ac_status=$? | |
24888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24889 | (exit $ac_status); }; } && | |
24890 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24892 | (eval $ac_try) 2>&5 | |
24893 | ac_status=$? | |
24894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24895 | (exit $ac_status); }; }; then | |
24896 | ac_cv_func_remove=yes | |
24897 | else | |
24898 | echo "$as_me: failed program was:" >&5 | |
24899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24900 | ||
24901 | ac_cv_func_remove=no | |
24902 | fi | |
ac1cb8d3 VS |
24903 | rm -f conftest.err conftest.$ac_objext \ |
24904 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24905 | fi |
24906 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24907 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
24908 | ||
24909 | if test $ac_cv_func_remove = no; then | |
24910 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
24911 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24912 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24914 | else | |
24915 | ac_check_lib_save_LIBS=$LIBS | |
24916 | LIBS="-lposix $LIBS" | |
24917 | cat >conftest.$ac_ext <<_ACEOF | |
24918 | /* confdefs.h. */ | |
24919 | _ACEOF | |
24920 | cat confdefs.h >>conftest.$ac_ext | |
24921 | cat >>conftest.$ac_ext <<_ACEOF | |
24922 | /* end confdefs.h. */ | |
24923 | ||
24924 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24925 | #ifdef __cplusplus | |
24926 | extern "C" | |
24927 | #endif | |
24928 | /* We use char because int might match the return type of a gcc2 | |
24929 | builtin and then its argument prototype would still apply. */ | |
24930 | char remove (); | |
24931 | int | |
24932 | main () | |
24933 | { | |
24934 | remove (); | |
24935 | ; | |
24936 | return 0; | |
24937 | } | |
24938 | _ACEOF | |
24939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24941 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24942 | ac_status=$? |
ac1cb8d3 VS |
24943 | grep -v '^ *+' conftest.er1 >conftest.err |
24944 | rm -f conftest.er1 | |
24945 | cat conftest.err >&5 | |
a848cd7e SC |
24946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24947 | (exit $ac_status); } && | |
ea7db9ff DE |
24948 | { ac_try='test -z "$ac_c_werror_flag" |
24949 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24951 | (eval $ac_try) 2>&5 | |
24952 | ac_status=$? | |
24953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24954 | (exit $ac_status); }; } && | |
24955 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24957 | (eval $ac_try) 2>&5 | |
24958 | ac_status=$? | |
24959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24960 | (exit $ac_status); }; }; then | |
24961 | ac_cv_lib_posix_remove=yes | |
24962 | else | |
24963 | echo "$as_me: failed program was:" >&5 | |
24964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24965 | ||
24966 | ac_cv_lib_posix_remove=no | |
24967 | fi | |
ac1cb8d3 VS |
24968 | rm -f conftest.err conftest.$ac_objext \ |
24969 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24970 | LIBS=$ac_check_lib_save_LIBS |
24971 | fi | |
24972 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24973 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24974 | if test $ac_cv_lib_posix_remove = yes; then | |
24975 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
24976 | fi | |
24977 | ||
24978 | fi | |
24979 | ||
24980 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
24981 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
24982 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24983 | if test "${ac_cv_func_shmat+set}" = set; then | |
24984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24985 | else | |
24986 | cat >conftest.$ac_ext <<_ACEOF | |
24987 | /* confdefs.h. */ | |
24988 | _ACEOF | |
24989 | cat confdefs.h >>conftest.$ac_ext | |
24990 | cat >>conftest.$ac_ext <<_ACEOF | |
24991 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24992 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
24993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24994 | #define shmat innocuous_shmat | |
24995 | ||
a848cd7e SC |
24996 | /* System header to define __stub macros and hopefully few prototypes, |
24997 | which can conflict with char shmat (); below. | |
24998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24999 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25000 | |
a848cd7e SC |
25001 | #ifdef __STDC__ |
25002 | # include <limits.h> | |
25003 | #else | |
25004 | # include <assert.h> | |
25005 | #endif | |
ac1cb8d3 VS |
25006 | |
25007 | #undef shmat | |
25008 | ||
a848cd7e SC |
25009 | /* Override any gcc2 internal prototype to avoid an error. */ |
25010 | #ifdef __cplusplus | |
25011 | extern "C" | |
25012 | { | |
25013 | #endif | |
25014 | /* We use char because int might match the return type of a gcc2 | |
25015 | builtin and then its argument prototype would still apply. */ | |
25016 | char shmat (); | |
25017 | /* The GNU C library defines this for functions which it implements | |
25018 | to always fail with ENOSYS. Some functions are actually named | |
25019 | something starting with __ and the normal name is an alias. */ | |
25020 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25021 | choke me | |
25022 | #else | |
25023 | char (*f) () = shmat; | |
25024 | #endif | |
25025 | #ifdef __cplusplus | |
25026 | } | |
25027 | #endif | |
25028 | ||
25029 | int | |
25030 | main () | |
25031 | { | |
25032 | return f != shmat; | |
25033 | ; | |
25034 | return 0; | |
25035 | } | |
25036 | _ACEOF | |
25037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25039 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25040 | ac_status=$? |
ac1cb8d3 VS |
25041 | grep -v '^ *+' conftest.er1 >conftest.err |
25042 | rm -f conftest.er1 | |
25043 | cat conftest.err >&5 | |
a848cd7e SC |
25044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25045 | (exit $ac_status); } && | |
ea7db9ff DE |
25046 | { ac_try='test -z "$ac_c_werror_flag" |
25047 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25049 | (eval $ac_try) 2>&5 | |
25050 | ac_status=$? | |
25051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25052 | (exit $ac_status); }; } && | |
25053 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25055 | (eval $ac_try) 2>&5 | |
25056 | ac_status=$? | |
25057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25058 | (exit $ac_status); }; }; then | |
25059 | ac_cv_func_shmat=yes | |
25060 | else | |
25061 | echo "$as_me: failed program was:" >&5 | |
25062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25063 | ||
25064 | ac_cv_func_shmat=no | |
25065 | fi | |
ac1cb8d3 VS |
25066 | rm -f conftest.err conftest.$ac_objext \ |
25067 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25068 | fi |
25069 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25070 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25071 | ||
25072 | if test $ac_cv_func_shmat = no; then | |
25073 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25074 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25075 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25077 | else | |
25078 | ac_check_lib_save_LIBS=$LIBS | |
25079 | LIBS="-lipc $LIBS" | |
25080 | cat >conftest.$ac_ext <<_ACEOF | |
25081 | /* confdefs.h. */ | |
25082 | _ACEOF | |
25083 | cat confdefs.h >>conftest.$ac_ext | |
25084 | cat >>conftest.$ac_ext <<_ACEOF | |
25085 | /* end confdefs.h. */ | |
25086 | ||
25087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25088 | #ifdef __cplusplus | |
25089 | extern "C" | |
25090 | #endif | |
25091 | /* We use char because int might match the return type of a gcc2 | |
25092 | builtin and then its argument prototype would still apply. */ | |
25093 | char shmat (); | |
25094 | int | |
25095 | main () | |
25096 | { | |
25097 | shmat (); | |
25098 | ; | |
25099 | return 0; | |
25100 | } | |
25101 | _ACEOF | |
25102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25104 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25105 | ac_status=$? |
ac1cb8d3 VS |
25106 | grep -v '^ *+' conftest.er1 >conftest.err |
25107 | rm -f conftest.er1 | |
25108 | cat conftest.err >&5 | |
a848cd7e SC |
25109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25110 | (exit $ac_status); } && | |
ea7db9ff DE |
25111 | { ac_try='test -z "$ac_c_werror_flag" |
25112 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25114 | (eval $ac_try) 2>&5 | |
25115 | ac_status=$? | |
25116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25117 | (exit $ac_status); }; } && | |
25118 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25120 | (eval $ac_try) 2>&5 | |
25121 | ac_status=$? | |
25122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25123 | (exit $ac_status); }; }; then | |
25124 | ac_cv_lib_ipc_shmat=yes | |
25125 | else | |
25126 | echo "$as_me: failed program was:" >&5 | |
25127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25128 | ||
25129 | ac_cv_lib_ipc_shmat=no | |
25130 | fi | |
ac1cb8d3 VS |
25131 | rm -f conftest.err conftest.$ac_objext \ |
25132 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25133 | LIBS=$ac_check_lib_save_LIBS |
25134 | fi | |
25135 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25136 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25137 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25138 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25139 | fi | |
25140 | ||
25141 | fi | |
25142 | fi | |
25143 | ||
25144 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25145 | ac_save_LDFLAGS=$LDFLAGS | |
25146 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25147 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25148 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25149 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25150 | # These have to be linked with before -lX11, unlike the other | |
25151 | # libraries we check for below, so use a different variable. | |
25152 | # John Interrante, Karl Berry | |
25153 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25154 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25155 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25157 | else | |
25158 | ac_check_lib_save_LIBS=$LIBS | |
25159 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25160 | cat >conftest.$ac_ext <<_ACEOF | |
25161 | /* confdefs.h. */ | |
25162 | _ACEOF | |
25163 | cat confdefs.h >>conftest.$ac_ext | |
25164 | cat >>conftest.$ac_ext <<_ACEOF | |
25165 | /* end confdefs.h. */ | |
25166 | ||
25167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25168 | #ifdef __cplusplus | |
25169 | extern "C" | |
25170 | #endif | |
25171 | /* We use char because int might match the return type of a gcc2 | |
25172 | builtin and then its argument prototype would still apply. */ | |
25173 | char IceConnectionNumber (); | |
25174 | int | |
25175 | main () | |
25176 | { | |
25177 | IceConnectionNumber (); | |
25178 | ; | |
25179 | return 0; | |
25180 | } | |
25181 | _ACEOF | |
25182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25184 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25185 | ac_status=$? |
ac1cb8d3 VS |
25186 | grep -v '^ *+' conftest.er1 >conftest.err |
25187 | rm -f conftest.er1 | |
25188 | cat conftest.err >&5 | |
a848cd7e SC |
25189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25190 | (exit $ac_status); } && | |
ea7db9ff DE |
25191 | { ac_try='test -z "$ac_c_werror_flag" |
25192 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25194 | (eval $ac_try) 2>&5 | |
25195 | ac_status=$? | |
25196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25197 | (exit $ac_status); }; } && | |
25198 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25200 | (eval $ac_try) 2>&5 | |
25201 | ac_status=$? | |
25202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25203 | (exit $ac_status); }; }; then | |
25204 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25205 | else | |
25206 | echo "$as_me: failed program was:" >&5 | |
25207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25208 | ||
25209 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25210 | fi | |
ac1cb8d3 VS |
25211 | rm -f conftest.err conftest.$ac_objext \ |
25212 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25213 | LIBS=$ac_check_lib_save_LIBS |
25214 | fi | |
25215 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25216 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25217 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25218 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25219 | fi | |
25220 | ||
25221 | LDFLAGS=$ac_save_LDFLAGS | |
25222 | ||
25223 | fi | |
25224 | ||
25225 | ||
25226 | if test "$no_x" = "yes"; then | |
25227 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25228 | echo "$as_me: error: X11 not found" >&2;} | |
25229 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25230 | fi | |
25231 | ||
74b84332 VS |
25232 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25233 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25234 | AFMINSTALL=afminstall |
25235 | COMPILED_X_PROGRAM=0 | |
25236 | ||
74b84332 VS |
25237 | fi |
25238 | ||
25239 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25240 | if test "$wxUSE_NANOX" = "yes"; then |
25241 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25242 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25243 | if test "x$MICROWIN" = x ; then | |
25244 | echo "$as_me:$LINENO: result: not found" >&5 | |
25245 | echo "${ECHO_T}not found" >&6 | |
25246 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25247 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25248 | { (exit 1); exit 1; }; } | |
25249 | else | |
25250 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25251 | echo "${ECHO_T}$MICROWIN" >&6 | |
25252 | cat >>confdefs.h <<\_ACEOF | |
25253 | #define wxUSE_NANOX 1 | |
25254 | _ACEOF | |
25255 | ||
25256 | fi | |
25257 | fi | |
25258 | ||
25259 | if test "$wxUSE_UNICODE" = "yes"; then | |
25260 | ||
25261 | succeeded=no | |
25262 | ||
25263 | if test -z "$PKG_CONFIG"; then | |
25264 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25265 | set dummy pkg-config; ac_word=$2 | |
25266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25268 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25270 | else | |
25271 | case $PKG_CONFIG in | |
25272 | [\\/]* | ?:[\\/]*) | |
25273 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25274 | ;; | |
25275 | *) | |
25276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25277 | for as_dir in $PATH | |
25278 | do | |
25279 | IFS=$as_save_IFS | |
25280 | test -z "$as_dir" && as_dir=. | |
25281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25282 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25283 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25285 | break 2 | |
25286 | fi | |
25287 | done | |
25288 | done | |
25289 | ||
25290 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25291 | ;; | |
25292 | esac | |
25293 | fi | |
25294 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25295 | ||
25296 | if test -n "$PKG_CONFIG"; then | |
25297 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25298 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25299 | else | |
25300 | echo "$as_me:$LINENO: result: no" >&5 | |
25301 | echo "${ECHO_T}no" >&6 | |
25302 | fi | |
25303 | ||
25304 | fi | |
25305 | ||
25306 | if test "$PKG_CONFIG" = "no" ; then | |
25307 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25308 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25309 | echo "*** to the full path to pkg-config." | |
25310 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25311 | else | |
25312 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25313 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25314 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25315 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25316 | ||
25317 | if $PKG_CONFIG --exists "pangox" ; then | |
25318 | echo "$as_me:$LINENO: result: yes" >&5 | |
25319 | echo "${ECHO_T}yes" >&6 | |
25320 | succeeded=yes | |
25321 | ||
25322 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25323 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25324 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25325 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25326 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25327 | ||
25328 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25329 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25330 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25331 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25332 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25333 | else | |
25334 | PANGOX_CFLAGS="" | |
25335 | PANGOX_LIBS="" | |
25336 | ## If we have a custom action on failure, don't print errors, but | |
25337 | ## do set a variable so people can do so. | |
25338 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25339 | ||
25340 | fi | |
25341 | ||
25342 | ||
25343 | ||
25344 | else | |
25345 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25346 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25347 | fi | |
25348 | fi | |
25349 | ||
25350 | if test $succeeded = yes; then | |
25351 | ||
25352 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25353 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25354 | ||
25355 | else | |
25356 | ||
25357 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25358 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25359 | { (exit 1); exit 1; }; } | |
25360 | ||
25361 | ||
25362 | fi | |
25363 | ||
25364 | ||
25365 | succeeded=no | |
25366 | ||
25367 | if test -z "$PKG_CONFIG"; then | |
25368 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25369 | set dummy pkg-config; ac_word=$2 | |
25370 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25372 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25374 | else | |
25375 | case $PKG_CONFIG in | |
25376 | [\\/]* | ?:[\\/]*) | |
25377 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25378 | ;; | |
25379 | *) | |
25380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25381 | for as_dir in $PATH | |
25382 | do | |
25383 | IFS=$as_save_IFS | |
25384 | test -z "$as_dir" && as_dir=. | |
25385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25387 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25389 | break 2 | |
25390 | fi | |
25391 | done | |
25392 | done | |
25393 | ||
25394 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25395 | ;; | |
25396 | esac | |
25397 | fi | |
25398 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25399 | ||
25400 | if test -n "$PKG_CONFIG"; then | |
25401 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25402 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25403 | else | |
25404 | echo "$as_me:$LINENO: result: no" >&5 | |
25405 | echo "${ECHO_T}no" >&6 | |
25406 | fi | |
25407 | ||
25408 | fi | |
25409 | ||
25410 | if test "$PKG_CONFIG" = "no" ; then | |
25411 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25412 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25413 | echo "*** to the full path to pkg-config." | |
25414 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25415 | else | |
25416 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25417 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25418 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25419 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25420 | ||
25421 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25422 | echo "$as_me:$LINENO: result: yes" >&5 | |
25423 | echo "${ECHO_T}yes" >&6 | |
25424 | succeeded=yes | |
25425 | ||
25426 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25427 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25428 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25429 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25430 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25431 | ||
25432 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25433 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25434 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25435 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25436 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25437 | else | |
25438 | PANGOFT2_CFLAGS="" | |
25439 | PANGOFT2_LIBS="" | |
25440 | ## If we have a custom action on failure, don't print errors, but | |
25441 | ## do set a variable so people can do so. | |
25442 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25443 | ||
25444 | fi | |
25445 | ||
25446 | ||
25447 | ||
25448 | else | |
25449 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25450 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25451 | fi | |
25452 | fi | |
25453 | ||
25454 | if test $succeeded = yes; then | |
25455 | ||
25456 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25457 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25458 | ||
25459 | else | |
25460 | ||
25461 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25462 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25463 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25464 | ||
25465 | ||
25466 | fi | |
25467 | ||
25468 | ||
25469 | succeeded=no | |
25470 | ||
25471 | if test -z "$PKG_CONFIG"; then | |
25472 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25473 | set dummy pkg-config; ac_word=$2 | |
25474 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25476 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25478 | else | |
25479 | case $PKG_CONFIG in | |
25480 | [\\/]* | ?:[\\/]*) | |
25481 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25482 | ;; | |
25483 | *) | |
25484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25485 | for as_dir in $PATH | |
25486 | do | |
25487 | IFS=$as_save_IFS | |
25488 | test -z "$as_dir" && as_dir=. | |
25489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25490 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25491 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25493 | break 2 | |
25494 | fi | |
25495 | done | |
25496 | done | |
25497 | ||
25498 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25499 | ;; | |
25500 | esac | |
25501 | fi | |
25502 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25503 | ||
25504 | if test -n "$PKG_CONFIG"; then | |
25505 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25506 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25507 | else | |
25508 | echo "$as_me:$LINENO: result: no" >&5 | |
25509 | echo "${ECHO_T}no" >&6 | |
25510 | fi | |
25511 | ||
25512 | fi | |
25513 | ||
25514 | if test "$PKG_CONFIG" = "no" ; then | |
25515 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25516 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25517 | echo "*** to the full path to pkg-config." | |
25518 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25519 | else | |
25520 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25521 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25522 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25523 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25524 | ||
25525 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25526 | echo "$as_me:$LINENO: result: yes" >&5 | |
25527 | echo "${ECHO_T}yes" >&6 | |
25528 | succeeded=yes | |
25529 | ||
25530 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25531 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25532 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25533 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25534 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25535 | ||
25536 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25537 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25538 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25539 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25540 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25541 | else | |
25542 | PANGOXFT_CFLAGS="" | |
25543 | PANGOXFT_LIBS="" | |
25544 | ## If we have a custom action on failure, don't print errors, but | |
25545 | ## do set a variable so people can do so. | |
25546 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25547 | ||
25548 | fi | |
25549 | ||
25550 | ||
25551 | ||
25552 | else | |
25553 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25554 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25555 | fi | |
25556 | fi | |
25557 | ||
25558 | if test $succeeded = yes; then | |
25559 | ||
25560 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25561 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25562 | ||
25563 | else | |
25564 | ||
25565 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25566 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25567 | ||
25568 | ||
25569 | fi | |
25570 | ||
304205f1 VS |
25571 | save_CFLAGS="$CFLAGS" |
25572 | save_LIBS="$LIBS" | |
25573 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25574 | LIBS="$LIBS $PANGOX_LIBS" | |
25575 | ||
25576 | for ac_func in pango_font_family_is_monospace | |
25577 | do | |
25578 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25579 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25580 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25581 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25583 | else | |
25584 | cat >conftest.$ac_ext <<_ACEOF | |
25585 | /* confdefs.h. */ | |
25586 | _ACEOF | |
25587 | cat confdefs.h >>conftest.$ac_ext | |
25588 | cat >>conftest.$ac_ext <<_ACEOF | |
25589 | /* end confdefs.h. */ | |
25590 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25591 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25592 | #define $ac_func innocuous_$ac_func | |
25593 | ||
25594 | /* System header to define __stub macros and hopefully few prototypes, | |
25595 | which can conflict with char $ac_func (); below. | |
25596 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25597 | <limits.h> exists even on freestanding compilers. */ | |
25598 | ||
25599 | #ifdef __STDC__ | |
25600 | # include <limits.h> | |
25601 | #else | |
25602 | # include <assert.h> | |
25603 | #endif | |
25604 | ||
25605 | #undef $ac_func | |
25606 | ||
25607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25608 | #ifdef __cplusplus | |
25609 | extern "C" | |
25610 | { | |
25611 | #endif | |
25612 | /* We use char because int might match the return type of a gcc2 | |
25613 | builtin and then its argument prototype would still apply. */ | |
25614 | char $ac_func (); | |
25615 | /* The GNU C library defines this for functions which it implements | |
25616 | to always fail with ENOSYS. Some functions are actually named | |
25617 | something starting with __ and the normal name is an alias. */ | |
25618 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25619 | choke me | |
25620 | #else | |
25621 | char (*f) () = $ac_func; | |
25622 | #endif | |
25623 | #ifdef __cplusplus | |
25624 | } | |
25625 | #endif | |
25626 | ||
25627 | int | |
25628 | main () | |
25629 | { | |
25630 | return f != $ac_func; | |
25631 | ; | |
25632 | return 0; | |
25633 | } | |
25634 | _ACEOF | |
25635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25637 | (eval $ac_link) 2>conftest.er1 | |
25638 | ac_status=$? | |
25639 | grep -v '^ *+' conftest.er1 >conftest.err | |
25640 | rm -f conftest.er1 | |
25641 | cat conftest.err >&5 | |
25642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25643 | (exit $ac_status); } && | |
ea7db9ff DE |
25644 | { ac_try='test -z "$ac_c_werror_flag" |
25645 | || test ! -s conftest.err' | |
304205f1 VS |
25646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25647 | (eval $ac_try) 2>&5 | |
25648 | ac_status=$? | |
25649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25650 | (exit $ac_status); }; } && | |
25651 | { ac_try='test -s conftest$ac_exeext' | |
25652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25653 | (eval $ac_try) 2>&5 | |
25654 | ac_status=$? | |
25655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25656 | (exit $ac_status); }; }; then | |
25657 | eval "$as_ac_var=yes" | |
25658 | else | |
25659 | echo "$as_me: failed program was:" >&5 | |
25660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25661 | ||
25662 | eval "$as_ac_var=no" | |
25663 | fi | |
25664 | rm -f conftest.err conftest.$ac_objext \ | |
25665 | conftest$ac_exeext conftest.$ac_ext | |
25666 | fi | |
25667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25668 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25669 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25670 | cat >>confdefs.h <<_ACEOF | |
25671 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25672 | _ACEOF | |
25673 | ||
25674 | fi | |
25675 | done | |
25676 | ||
25677 | CFLAGS="$save_CFLAGS" | |
25678 | LIBS="$save_LIBS" | |
a848cd7e SC |
25679 | fi |
25680 | ||
25681 | wxUSE_UNIVERSAL="yes" | |
25682 | ||
25683 | if test "$wxUSE_NANOX" = "yes"; then | |
25684 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25685 | 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" | |
25686 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25687 | else | |
25688 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25689 | fi | |
25690 | ||
25691 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
25692 | TOOLKIT=X11 | |
25693 | GUIDIST=X11_DIST | |
25694 | fi | |
25695 | ||
25696 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25697 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25698 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25699 | |
74b84332 VS |
25700 | ac_find_includes= |
25701 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25702 | do | |
25703 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25704 | ac_find_includes=$ac_dir | |
25705 | break | |
25706 | fi | |
25707 | done | |
a848cd7e | 25708 | |
74b84332 VS |
25709 | if test "$ac_find_includes" != "" ; then |
25710 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25711 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25712 | ||
25713 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25714 | ac_path_to_include="" | |
25715 | else | |
25716 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25717 | result=$? | |
25718 | if test $result = 0; then | |
25719 | ac_path_to_include="" | |
25720 | else | |
25721 | ac_path_to_include=" -I$ac_find_includes" | |
25722 | fi | |
a848cd7e SC |
25723 | fi |
25724 | ||
74b84332 VS |
25725 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25726 | else | |
25727 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25728 | /* confdefs.h. */ |
25729 | _ACEOF | |
25730 | cat confdefs.h >>conftest.$ac_ext | |
25731 | cat >>conftest.$ac_ext <<_ACEOF | |
25732 | /* end confdefs.h. */ | |
25733 | ||
74b84332 VS |
25734 | #include <Xm/Xm.h> |
25735 | ||
a848cd7e SC |
25736 | int |
25737 | main () | |
25738 | { | |
25739 | ||
74b84332 VS |
25740 | int version; |
25741 | version = xmUseVersion; | |
25742 | ||
a848cd7e SC |
25743 | ; |
25744 | return 0; | |
25745 | } | |
25746 | _ACEOF | |
74b84332 VS |
25747 | rm -f conftest.$ac_objext |
25748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25749 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25750 | ac_status=$? |
ac1cb8d3 VS |
25751 | grep -v '^ *+' conftest.er1 >conftest.err |
25752 | rm -f conftest.er1 | |
25753 | cat conftest.err >&5 | |
a848cd7e SC |
25754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25755 | (exit $ac_status); } && | |
ea7db9ff DE |
25756 | { ac_try='test -z "$ac_c_werror_flag" |
25757 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25759 | (eval $ac_try) 2>&5 | |
25760 | ac_status=$? | |
25761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25762 | (exit $ac_status); }; } && | |
74b84332 | 25763 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25765 | (eval $ac_try) 2>&5 | |
25766 | ac_status=$? | |
25767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25768 | (exit $ac_status); }; }; then | |
74b84332 VS |
25769 | |
25770 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25771 | echo "${ECHO_T}found in default search path" >&6 | |
25772 | COMPILED_X_PROGRAM=1 | |
25773 | ||
a848cd7e SC |
25774 | else |
25775 | echo "$as_me: failed program was:" >&5 | |
25776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25777 | ||
a848cd7e | 25778 | |
74b84332 VS |
25779 | echo "$as_me:$LINENO: result: no" >&5 |
25780 | echo "${ECHO_T}no" >&6 | |
25781 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25782 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25783 | { (exit 1); exit 1; }; } | |
a848cd7e | 25784 | |
a848cd7e | 25785 | |
a848cd7e | 25786 | fi |
74b84332 VS |
25787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25788 | fi | |
25789 | ||
25790 | if test "$COMPILED_X_PROGRAM" = 0; then | |
25791 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
25792 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25793 | ||
25794 | ac_find_libraries= | |
25795 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25796 | do | |
25797 | for ac_extension in a so sl dylib; do | |
25798 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25799 | ac_find_libraries=$ac_dir | |
25800 | break 2 | |
a848cd7e | 25801 | fi |
74b84332 VS |
25802 | done |
25803 | done | |
a848cd7e | 25804 | |
74b84332 VS |
25805 | if test "$ac_find_libraries" != "" ; then |
25806 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25807 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 25808 | |
74b84332 VS |
25809 | |
25810 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25811 | result=$? | |
25812 | if test $result = 0; then | |
25813 | ac_path_to_link="" | |
a848cd7e | 25814 | else |
74b84332 VS |
25815 | ac_path_to_link=" -L$ac_find_libraries" |
25816 | fi | |
25817 | ||
25818 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25819 | else | |
25820 | save_CFLAGS=$CFLAGS | |
25821 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25822 | ||
25823 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25824 | /* confdefs.h. */ |
25825 | _ACEOF | |
25826 | cat confdefs.h >>conftest.$ac_ext | |
25827 | cat >>conftest.$ac_ext <<_ACEOF | |
25828 | /* end confdefs.h. */ | |
25829 | ||
74b84332 VS |
25830 | #include <Xm/Xm.h> |
25831 | ||
a848cd7e SC |
25832 | int |
25833 | main () | |
25834 | { | |
74b84332 VS |
25835 | |
25836 | int version; | |
25837 | version = xmUseVersion; | |
25838 | ||
a848cd7e SC |
25839 | ; |
25840 | return 0; | |
25841 | } | |
25842 | _ACEOF | |
74b84332 VS |
25843 | rm -f conftest.$ac_objext |
25844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25845 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25846 | ac_status=$? |
ac1cb8d3 VS |
25847 | grep -v '^ *+' conftest.er1 >conftest.err |
25848 | rm -f conftest.er1 | |
25849 | cat conftest.err >&5 | |
a848cd7e SC |
25850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25851 | (exit $ac_status); } && | |
ea7db9ff DE |
25852 | { ac_try='test -z "$ac_c_werror_flag" |
25853 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25855 | (eval $ac_try) 2>&5 | |
25856 | ac_status=$? | |
25857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25858 | (exit $ac_status); }; } && | |
74b84332 | 25859 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25861 | (eval $ac_try) 2>&5 | |
25862 | ac_status=$? | |
25863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25864 | (exit $ac_status); }; }; then | |
74b84332 VS |
25865 | |
25866 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25867 | echo "${ECHO_T}found in default search path" >&6 | |
25868 | COMPILED_X_PROGRAM=1 | |
25869 | ||
a848cd7e SC |
25870 | else |
25871 | echo "$as_me: failed program was:" >&5 | |
25872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25873 | ||
74b84332 VS |
25874 | |
25875 | echo "$as_me:$LINENO: result: no" >&5 | |
25876 | echo "${ECHO_T}no" >&6 | |
25877 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
25878 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
25879 | { (exit 1); exit 1; }; } | |
25880 | ||
25881 | ||
25882 | fi | |
25883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25884 | ||
25885 | CFLAGS=$save_CFLAGS | |
25886 | fi | |
25887 | fi | |
25888 | ||
25889 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
25890 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
25891 | libp_link="" | |
25892 | libsm_ice_link="" | |
25893 | libs_found=0 | |
25894 | for libp in "" " -lXp"; do | |
25895 | if test "$libs_found" = "0"; then | |
25896 | for libsm_ice in "" " -lSM -lICE"; do | |
25897 | if test "$libs_found" = "0"; then | |
25898 | save_LIBS="$LIBS" | |
25899 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
25900 | save_CFLAGS=$CFLAGS | |
25901 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25902 | ||
25903 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25904 | /* confdefs.h. */ |
25905 | _ACEOF | |
25906 | cat confdefs.h >>conftest.$ac_ext | |
25907 | cat >>conftest.$ac_ext <<_ACEOF | |
25908 | /* end confdefs.h. */ | |
25909 | ||
74b84332 VS |
25910 | #include <Xm/Xm.h> |
25911 | #include <Xm/List.h> | |
25912 | ||
a848cd7e SC |
25913 | int |
25914 | main () | |
25915 | { | |
74b84332 VS |
25916 | |
25917 | XmString string = NULL; | |
25918 | Widget w = NULL; | |
25919 | int position = 0; | |
25920 | XmListAddItem(w, string, position); | |
25921 | ||
a848cd7e SC |
25922 | ; |
25923 | return 0; | |
25924 | } | |
25925 | _ACEOF | |
25926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25928 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25929 | ac_status=$? |
ac1cb8d3 VS |
25930 | grep -v '^ *+' conftest.er1 >conftest.err |
25931 | rm -f conftest.er1 | |
25932 | cat conftest.err >&5 | |
a848cd7e SC |
25933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25934 | (exit $ac_status); } && | |
ea7db9ff DE |
25935 | { ac_try='test -z "$ac_c_werror_flag" |
25936 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25938 | (eval $ac_try) 2>&5 | |
25939 | ac_status=$? | |
25940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25941 | (exit $ac_status); }; } && | |
25942 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25944 | (eval $ac_try) 2>&5 | |
25945 | ac_status=$? | |
25946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25947 | (exit $ac_status); }; }; then | |
25948 | ||
25949 | libp_link="$libp" | |
25950 | libsm_ice_link="$libsm_ice" | |
25951 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
25952 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
25953 | libs_found=1 | |
25954 | ||
25955 | else | |
25956 | echo "$as_me: failed program was:" >&5 | |
25957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25958 | ||
25959 | ||
25960 | ||
25961 | fi | |
ac1cb8d3 VS |
25962 | rm -f conftest.err conftest.$ac_objext \ |
25963 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25964 | |
25965 | LIBS="$save_LIBS" | |
25966 | CFLAGS=$save_CFLAGS | |
25967 | fi | |
25968 | done | |
25969 | fi | |
25970 | done | |
25971 | ||
25972 | if test "$libs_found" = "0"; then | |
25973 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
25974 | echo "${ECHO_T}can't find the right libraries" >&6 | |
25975 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
25976 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
25977 | { (exit 1); exit 1; }; } | |
25978 | fi | |
25979 | ||
25980 | save_CFLAGS=$CFLAGS | |
25981 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25982 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
25983 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
25984 | cat >conftest.$ac_ext <<_ACEOF | |
25985 | /* confdefs.h. */ | |
25986 | _ACEOF | |
25987 | cat confdefs.h >>conftest.$ac_ext | |
25988 | cat >>conftest.$ac_ext <<_ACEOF | |
25989 | /* end confdefs.h. */ | |
25990 | ||
25991 | #include <Xm/Xm.h> | |
25992 | ||
25993 | int | |
25994 | main () | |
25995 | { | |
25996 | ||
25997 | #if XmVersion < 2000 | |
25998 | #error "Not Motif 2" | |
25999 | #endif | |
26000 | ||
26001 | ; | |
26002 | return 0; | |
26003 | } | |
26004 | _ACEOF | |
26005 | rm -f conftest.$ac_objext | |
26006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26008 | ac_status=$? |
ac1cb8d3 VS |
26009 | grep -v '^ *+' conftest.er1 >conftest.err |
26010 | rm -f conftest.er1 | |
26011 | cat conftest.err >&5 | |
a848cd7e SC |
26012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26013 | (exit $ac_status); } && | |
ea7db9ff DE |
26014 | { ac_try='test -z "$ac_c_werror_flag" |
26015 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26017 | (eval $ac_try) 2>&5 | |
26018 | ac_status=$? | |
26019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26020 | (exit $ac_status); }; } && | |
26021 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26023 | (eval $ac_try) 2>&5 | |
26024 | ac_status=$? | |
26025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26026 | (exit $ac_status); }; }; then | |
26027 | ||
26028 | cat >>confdefs.h <<\_ACEOF | |
26029 | #define __WXMOTIF20__ 1 | |
26030 | _ACEOF | |
26031 | ||
26032 | echo "$as_me:$LINENO: result: found" >&5 | |
26033 | echo "${ECHO_T}found" >&6 | |
26034 | ||
26035 | else | |
26036 | echo "$as_me: failed program was:" >&5 | |
26037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26038 | ||
26039 | ||
26040 | cat >>confdefs.h <<\_ACEOF | |
26041 | #define __WXMOTIF20__ 0 | |
26042 | _ACEOF | |
26043 | ||
26044 | echo "$as_me:$LINENO: result: not found" >&5 | |
26045 | echo "${ECHO_T}not found" >&6 | |
26046 | ||
26047 | fi | |
ac1cb8d3 | 26048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26049 | CFLAGS=$save_CFLAGS |
26050 | ||
26051 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
26052 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" | |
26053 | TOOLKIT=MOTIF | |
26054 | GUIDIST=MOTIF_DIST | |
26055 | fi | |
26056 | ||
74b84332 | 26057 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26058 | if test "$wxUSE_LIBXPM" = "sys"; then |
26059 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26060 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26061 | ||
26062 | ac_find_libraries= | |
26063 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26064 | do | |
26065 | for ac_extension in a so sl dylib; do | |
26066 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26067 | ac_find_libraries=$ac_dir | |
26068 | break 2 | |
26069 | fi | |
26070 | done | |
26071 | done | |
26072 | ||
26073 | if test "$ac_find_libraries" != "" ; then | |
26074 | ||
26075 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26076 | result=$? | |
26077 | if test $result = 0; then | |
26078 | ac_path_to_link="" | |
26079 | else | |
26080 | ac_path_to_link=" -L$ac_find_libraries" | |
26081 | fi | |
26082 | ||
26083 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26084 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26085 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26086 | ||
26087 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26088 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26089 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26091 | else | |
26092 | ||
26093 | save_CFLAGS=$CFLAGS | |
26094 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26095 | ||
26096 | cat >conftest.$ac_ext <<_ACEOF | |
26097 | /* confdefs.h. */ | |
26098 | _ACEOF | |
26099 | cat confdefs.h >>conftest.$ac_ext | |
26100 | cat >>conftest.$ac_ext <<_ACEOF | |
26101 | /* end confdefs.h. */ | |
26102 | ||
26103 | #include <X11/xpm.h> | |
26104 | ||
26105 | int | |
26106 | main () | |
26107 | { | |
26108 | ||
26109 | int version; | |
26110 | version = XpmLibraryVersion(); | |
26111 | ||
26112 | ; | |
26113 | return 0; | |
26114 | } | |
26115 | _ACEOF | |
26116 | rm -f conftest.$ac_objext | |
26117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26119 | ac_status=$? |
ac1cb8d3 VS |
26120 | grep -v '^ *+' conftest.er1 >conftest.err |
26121 | rm -f conftest.er1 | |
26122 | cat conftest.err >&5 | |
a848cd7e SC |
26123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26124 | (exit $ac_status); } && | |
ea7db9ff DE |
26125 | { ac_try='test -z "$ac_c_werror_flag" |
26126 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26128 | (eval $ac_try) 2>&5 | |
26129 | ac_status=$? | |
26130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26131 | (exit $ac_status); }; } && | |
26132 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26134 | (eval $ac_try) 2>&5 | |
26135 | ac_status=$? | |
26136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26137 | (exit $ac_status); }; }; then | |
26138 | wx_cv_x11_xpm_h=yes | |
26139 | else | |
26140 | echo "$as_me: failed program was:" >&5 | |
26141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26142 | ||
26143 | wx_cv_x11_xpm_h=no | |
26144 | ||
26145 | fi | |
ac1cb8d3 | 26146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26147 | |
26148 | CFLAGS=$save_CFLAGS | |
26149 | ||
26150 | ||
26151 | fi | |
26152 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26153 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26154 | ||
26155 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26156 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26157 | cat >>confdefs.h <<\_ACEOF | |
26158 | #define wxHAVE_LIB_XPM 1 | |
26159 | _ACEOF | |
26160 | ||
26161 | else | |
26162 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26163 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26164 | fi | |
26165 | fi | |
26166 | ||
26167 | fi | |
26168 | ||
26169 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26170 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26171 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26173 | else | |
26174 | ac_check_lib_save_LIBS=$LIBS | |
26175 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26176 | cat >conftest.$ac_ext <<_ACEOF | |
26177 | /* confdefs.h. */ | |
26178 | _ACEOF | |
26179 | cat confdefs.h >>conftest.$ac_ext | |
26180 | cat >>conftest.$ac_ext <<_ACEOF | |
26181 | /* end confdefs.h. */ | |
26182 | ||
26183 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26184 | #ifdef __cplusplus | |
26185 | extern "C" | |
26186 | #endif | |
26187 | /* We use char because int might match the return type of a gcc2 | |
26188 | builtin and then its argument prototype would still apply. */ | |
26189 | char XShapeQueryExtension (); | |
26190 | int | |
26191 | main () | |
26192 | { | |
26193 | XShapeQueryExtension (); | |
26194 | ; | |
26195 | return 0; | |
26196 | } | |
26197 | _ACEOF | |
26198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26200 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26201 | ac_status=$? |
ac1cb8d3 VS |
26202 | grep -v '^ *+' conftest.er1 >conftest.err |
26203 | rm -f conftest.er1 | |
26204 | cat conftest.err >&5 | |
a848cd7e SC |
26205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26206 | (exit $ac_status); } && | |
ea7db9ff DE |
26207 | { ac_try='test -z "$ac_c_werror_flag" |
26208 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26210 | (eval $ac_try) 2>&5 | |
26211 | ac_status=$? | |
26212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26213 | (exit $ac_status); }; } && | |
26214 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26216 | (eval $ac_try) 2>&5 | |
26217 | ac_status=$? | |
26218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26219 | (exit $ac_status); }; }; then | |
26220 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26221 | else | |
26222 | echo "$as_me: failed program was:" >&5 | |
26223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26224 | ||
26225 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26226 | fi | |
ac1cb8d3 VS |
26227 | rm -f conftest.err conftest.$ac_objext \ |
26228 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26229 | LIBS=$ac_check_lib_save_LIBS |
26230 | fi | |
26231 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26232 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26233 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26234 | ||
26235 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26236 | wxHAVE_XEXT_LIB=1 | |
26237 | ||
26238 | fi | |
26239 | ||
26240 | ||
26241 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26242 | save_CFLAGS="$CFLAGS" | |
26243 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26244 | ||
26245 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26246 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26247 | cat >conftest.$ac_ext <<_ACEOF | |
26248 | /* confdefs.h. */ | |
26249 | _ACEOF | |
26250 | cat confdefs.h >>conftest.$ac_ext | |
26251 | cat >>conftest.$ac_ext <<_ACEOF | |
26252 | /* end confdefs.h. */ | |
26253 | ||
26254 | #include <X11/Xlib.h> | |
26255 | #include <X11/extensions/shape.h> | |
26256 | ||
26257 | int | |
26258 | main () | |
26259 | { | |
26260 | ||
26261 | int dummy1, dummy2; | |
26262 | XShapeQueryExtension((Display*)NULL, | |
26263 | (int*)NULL, (int*)NULL); | |
26264 | ||
26265 | ; | |
26266 | return 0; | |
26267 | } | |
26268 | _ACEOF | |
26269 | rm -f conftest.$ac_objext | |
26270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26271 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26272 | ac_status=$? |
ac1cb8d3 VS |
26273 | grep -v '^ *+' conftest.er1 >conftest.err |
26274 | rm -f conftest.er1 | |
26275 | cat conftest.err >&5 | |
a848cd7e SC |
26276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26277 | (exit $ac_status); } && | |
ea7db9ff DE |
26278 | { ac_try='test -z "$ac_c_werror_flag" |
26279 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26281 | (eval $ac_try) 2>&5 | |
26282 | ac_status=$? | |
26283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26284 | (exit $ac_status); }; } && | |
26285 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26287 | (eval $ac_try) 2>&5 | |
26288 | ac_status=$? | |
26289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26290 | (exit $ac_status); }; }; then | |
26291 | ||
26292 | cat >>confdefs.h <<\_ACEOF | |
26293 | #define HAVE_XSHAPE 1 | |
26294 | _ACEOF | |
26295 | ||
26296 | echo "$as_me:$LINENO: result: found" >&5 | |
26297 | echo "${ECHO_T}found" >&6 | |
26298 | ||
26299 | else | |
26300 | echo "$as_me: failed program was:" >&5 | |
26301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26302 | ||
26303 | ||
26304 | echo "$as_me:$LINENO: result: not found" >&5 | |
26305 | echo "${ECHO_T}not found" >&6 | |
26306 | ||
26307 | fi | |
ac1cb8d3 | 26308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26309 | CFLAGS="$save_CFLAGS" |
26310 | ||
26311 | fi | |
26312 | fi | |
26313 | ||
26314 | if test "$wxUSE_MAC" = 1; then | |
26315 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26316 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26317 | if test "$GCC" = yes; then | |
26318 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26319 | echo "${ECHO_T}gcc" >&6 | |
26320 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26321 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26322 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26323 | echo "${ECHO_T}xlc" >&6 | |
26324 | CPPFLAGS_PASCAL="-qmacpstr" | |
26325 | else | |
26326 | echo "$as_me:$LINENO: result: none" >&5 | |
26327 | echo "${ECHO_T}none" >&6 | |
26328 | fi | |
26329 | ||
26330 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26331 | ||
26332 | TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex" | |
26333 | TOOLKIT=MAC | |
26334 | GUIDIST=MACX_DIST | |
26335 | WXBASEPORT="_carbon" | |
26336 | fi | |
26337 | ||
26338 | if test "$wxUSE_COCOA" = 1; then | |
26339 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
26340 | TOOLKIT=COCOA | |
26341 | GUIDIST=COCOA_DIST | |
26342 | fi | |
26343 | ||
26344 | if test "$wxUSE_PM" = 1; then | |
26345 | TOOLKIT=PM | |
de59c161 RD |
26346 | GUIDIST=PM_DIST |
26347 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26348 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26349 | if test "${wx_cv_spbcdata+set}" = set; then | |
26350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26351 | else | |
26352 | ||
26353 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26354 | /* confdefs.h. */ |
26355 | _ACEOF | |
26356 | cat confdefs.h >>conftest.$ac_ext | |
26357 | cat >>conftest.$ac_ext <<_ACEOF | |
26358 | /* end confdefs.h. */ | |
26359 | ||
26360 | #define INCL_PM | |
26361 | #include <os2.h> | |
26362 | ||
26363 | int | |
26364 | main () | |
26365 | { | |
26366 | ||
26367 | SPBCDATA test; | |
26368 | ||
26369 | ; | |
26370 | return 0; | |
26371 | } | |
26372 | _ACEOF | |
26373 | rm -f conftest.$ac_objext | |
26374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26375 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26376 | ac_status=$? |
ac1cb8d3 VS |
26377 | grep -v '^ *+' conftest.er1 >conftest.err |
26378 | rm -f conftest.er1 | |
26379 | cat conftest.err >&5 | |
de59c161 RD |
26380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26381 | (exit $ac_status); } && | |
ea7db9ff DE |
26382 | { ac_try='test -z "$ac_c_werror_flag" |
26383 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26385 | (eval $ac_try) 2>&5 | |
26386 | ac_status=$? | |
26387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26388 | (exit $ac_status); }; } && | |
26389 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26391 | (eval $ac_try) 2>&5 | |
26392 | ac_status=$? | |
26393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26394 | (exit $ac_status); }; }; then | |
26395 | wx_cv_spbcdata=yes | |
26396 | else | |
26397 | echo "$as_me: failed program was:" >&5 | |
26398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26399 | ||
26400 | wx_cv_spbcdata=no | |
26401 | ||
26402 | fi | |
ac1cb8d3 | 26403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26404 | |
26405 | ||
26406 | fi | |
26407 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26408 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26409 | ||
26410 | if test $wx_cv_spbcdata = "yes"; then | |
26411 | cat >>confdefs.h <<\_ACEOF | |
26412 | #define HAVE_SPBCDATA 1 | |
26413 | _ACEOF | |
26414 | ||
26415 | fi | |
a848cd7e SC |
26416 | fi |
26417 | ||
26418 | if test "$TOOLKIT" = "PM" ; then | |
26419 | TOOLKIT_DIR="os2" | |
26420 | else | |
26421 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26422 | fi | |
26423 | ||
26424 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
26425 | ||
26426 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
26427 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
26428 | ||
26429 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
26430 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
26431 | ||
26432 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
26433 | if test "$wxUSE_X11" = 1; then | |
26434 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
26435 | else | |
26436 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26437 | fi | |
26438 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
26439 | WIDGET_SET=univ | |
26440 | else | |
26441 | ALL_OBJECTS="\$(GUIOBJS)" | |
26442 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26443 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26444 | fi | |
26445 | ||
26446 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
26447 | ||
26448 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
26449 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
26450 | fi | |
26451 | ||
26452 | if test "$wxUSE_HTML" = "yes"; then | |
26453 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
26454 | fi | |
26455 | ||
26456 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
26457 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
26458 | fi | |
26459 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
26460 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
26461 | fi | |
26462 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
26463 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
26464 | fi | |
26465 | ||
26466 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26467 | DISTDIR="wx\$(TOOLKIT)" | |
26468 | else | |
26469 | USE_GUI=0 | |
26470 | ||
26471 | TOOLKIT_DIR="base" | |
26472 | ||
26473 | if test "$USE_WIN32" = 1 ; then | |
26474 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
26475 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
26476 | ||
26477 | TOOLKIT="MSW" | |
26478 | else | |
26479 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
26480 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
26481 | fi | |
26482 | ||
26483 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26484 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26485 | ||
26486 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
26487 | ||
26488 | GUIDIST="BASE_DIST" | |
26489 | DISTDIR="wxBase" | |
26490 | fi | |
26491 | ||
26492 | ||
26493 | ||
26494 | ||
26495 | IODBC_C_SRC="" | |
26496 | ||
26497 | ||
26498 | if test "$TOOLKIT" != "MSW" ; then | |
26499 | ||
26500 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26501 | ||
26502 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26503 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26504 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26505 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26507 | fi | |
26508 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26509 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26510 | else | |
26511 | # Is the header compilable? | |
26512 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26513 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26514 | cat >conftest.$ac_ext <<_ACEOF | |
26515 | /* confdefs.h. */ | |
26516 | _ACEOF | |
26517 | cat confdefs.h >>conftest.$ac_ext | |
26518 | cat >>conftest.$ac_ext <<_ACEOF | |
26519 | /* end confdefs.h. */ | |
26520 | $ac_includes_default | |
26521 | #include <sql.h> | |
26522 | _ACEOF | |
26523 | rm -f conftest.$ac_objext | |
26524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26525 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26526 | ac_status=$? |
ac1cb8d3 VS |
26527 | grep -v '^ *+' conftest.er1 >conftest.err |
26528 | rm -f conftest.er1 | |
26529 | cat conftest.err >&5 | |
a848cd7e SC |
26530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26531 | (exit $ac_status); } && | |
ea7db9ff DE |
26532 | { ac_try='test -z "$ac_c_werror_flag" |
26533 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26535 | (eval $ac_try) 2>&5 | |
26536 | ac_status=$? | |
26537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26538 | (exit $ac_status); }; } && | |
26539 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26541 | (eval $ac_try) 2>&5 | |
26542 | ac_status=$? | |
26543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26544 | (exit $ac_status); }; }; then | |
26545 | ac_header_compiler=yes | |
26546 | else | |
26547 | echo "$as_me: failed program was:" >&5 | |
26548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26549 | ||
26550 | ac_header_compiler=no | |
26551 | fi | |
ac1cb8d3 | 26552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26553 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26554 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26555 | ||
26556 | # Is the header present? | |
26557 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26558 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26559 | cat >conftest.$ac_ext <<_ACEOF | |
26560 | /* confdefs.h. */ | |
26561 | _ACEOF | |
26562 | cat confdefs.h >>conftest.$ac_ext | |
26563 | cat >>conftest.$ac_ext <<_ACEOF | |
26564 | /* end confdefs.h. */ | |
26565 | #include <sql.h> | |
26566 | _ACEOF | |
26567 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26568 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26569 | ac_status=$? | |
26570 | grep -v '^ *+' conftest.er1 >conftest.err | |
26571 | rm -f conftest.er1 | |
26572 | cat conftest.err >&5 | |
26573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26574 | (exit $ac_status); } >/dev/null; then | |
26575 | if test -s conftest.err; then | |
26576 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26577 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26578 | else |
26579 | ac_cpp_err= | |
26580 | fi | |
26581 | else | |
26582 | ac_cpp_err=yes | |
26583 | fi | |
26584 | if test -z "$ac_cpp_err"; then | |
26585 | ac_header_preproc=yes | |
26586 | else | |
26587 | echo "$as_me: failed program was:" >&5 | |
26588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26589 | ||
26590 | ac_header_preproc=no | |
26591 | fi | |
26592 | rm -f conftest.err conftest.$ac_ext | |
26593 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26594 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26595 | ||
26596 | # So? What about this header? | |
ac1cb8d3 VS |
26597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26598 | yes:no: ) | |
a848cd7e SC |
26599 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26600 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26601 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26602 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26603 | ac_header_preproc=yes | |
a848cd7e | 26604 | ;; |
ac1cb8d3 | 26605 | no:yes:* ) |
a848cd7e SC |
26606 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26607 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26608 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26609 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26610 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26611 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26612 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26613 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26614 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26615 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26616 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26617 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26618 | ( |
26619 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26620 | ## ----------------------------------------- ## |
26621 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26622 | ## ----------------------------------------- ## | |
a848cd7e SC |
26623 | _ASBOX |
26624 | ) | | |
26625 | sed "s/^/$as_me: WARNING: /" >&2 | |
26626 | ;; | |
26627 | esac | |
26628 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26629 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26630 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26632 | else | |
26633 | ac_cv_header_sql_h=$ac_header_preproc | |
26634 | fi | |
26635 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26636 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26637 | ||
26638 | fi | |
26639 | if test $ac_cv_header_sql_h = yes; then | |
26640 | found_sql_h=1 | |
26641 | fi | |
26642 | ||
26643 | ||
26644 | if test "x$found_sql_h" = "x1" ; then | |
26645 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26646 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26647 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26649 | else | |
26650 | ac_check_lib_save_LIBS=$LIBS | |
26651 | LIBS="-liodbc $LIBS" | |
26652 | cat >conftest.$ac_ext <<_ACEOF | |
26653 | /* confdefs.h. */ | |
26654 | _ACEOF | |
26655 | cat confdefs.h >>conftest.$ac_ext | |
26656 | cat >>conftest.$ac_ext <<_ACEOF | |
26657 | /* end confdefs.h. */ | |
26658 | ||
26659 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26660 | #ifdef __cplusplus | |
26661 | extern "C" | |
26662 | #endif | |
26663 | /* We use char because int might match the return type of a gcc2 | |
26664 | builtin and then its argument prototype would still apply. */ | |
26665 | char SQLAllocEnv (); | |
26666 | int | |
26667 | main () | |
26668 | { | |
26669 | SQLAllocEnv (); | |
26670 | ; | |
26671 | return 0; | |
26672 | } | |
26673 | _ACEOF | |
26674 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26676 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26677 | ac_status=$? |
ac1cb8d3 VS |
26678 | grep -v '^ *+' conftest.er1 >conftest.err |
26679 | rm -f conftest.er1 | |
26680 | cat conftest.err >&5 | |
a848cd7e SC |
26681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26682 | (exit $ac_status); } && | |
ea7db9ff DE |
26683 | { ac_try='test -z "$ac_c_werror_flag" |
26684 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26686 | (eval $ac_try) 2>&5 | |
26687 | ac_status=$? | |
26688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26689 | (exit $ac_status); }; } && | |
26690 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26692 | (eval $ac_try) 2>&5 | |
26693 | ac_status=$? | |
26694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26695 | (exit $ac_status); }; }; then | |
26696 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26697 | else | |
26698 | echo "$as_me: failed program was:" >&5 | |
26699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26700 | ||
26701 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26702 | fi | |
ac1cb8d3 VS |
26703 | rm -f conftest.err conftest.$ac_objext \ |
26704 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26705 | LIBS=$ac_check_lib_save_LIBS |
26706 | fi | |
26707 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26708 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26709 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26710 | ODBC_LINK=" -liodbc" | |
26711 | else | |
26712 | ||
26713 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26714 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26715 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26717 | else | |
26718 | ac_check_lib_save_LIBS=$LIBS | |
26719 | LIBS="-lunixodbc $LIBS" | |
26720 | cat >conftest.$ac_ext <<_ACEOF | |
26721 | /* confdefs.h. */ | |
26722 | _ACEOF | |
26723 | cat confdefs.h >>conftest.$ac_ext | |
26724 | cat >>conftest.$ac_ext <<_ACEOF | |
26725 | /* end confdefs.h. */ | |
26726 | ||
26727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26728 | #ifdef __cplusplus | |
26729 | extern "C" | |
26730 | #endif | |
26731 | /* We use char because int might match the return type of a gcc2 | |
26732 | builtin and then its argument prototype would still apply. */ | |
26733 | char SQLAllocEnv (); | |
26734 | int | |
26735 | main () | |
26736 | { | |
26737 | SQLAllocEnv (); | |
26738 | ; | |
26739 | return 0; | |
26740 | } | |
26741 | _ACEOF | |
26742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26744 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26745 | ac_status=$? |
ac1cb8d3 VS |
26746 | grep -v '^ *+' conftest.er1 >conftest.err |
26747 | rm -f conftest.er1 | |
26748 | cat conftest.err >&5 | |
a848cd7e SC |
26749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26750 | (exit $ac_status); } && | |
ea7db9ff DE |
26751 | { ac_try='test -z "$ac_c_werror_flag" |
26752 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26754 | (eval $ac_try) 2>&5 | |
26755 | ac_status=$? | |
26756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26757 | (exit $ac_status); }; } && | |
26758 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26760 | (eval $ac_try) 2>&5 | |
26761 | ac_status=$? | |
26762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26763 | (exit $ac_status); }; }; then | |
26764 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
26765 | else | |
26766 | echo "$as_me: failed program was:" >&5 | |
26767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26768 | ||
26769 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
26770 | fi | |
ac1cb8d3 VS |
26771 | rm -f conftest.err conftest.$ac_objext \ |
26772 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26773 | LIBS=$ac_check_lib_save_LIBS |
26774 | fi | |
26775 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
26776 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26777 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
26778 | ODBC_LINK=" -lunixodbc" | |
26779 | else | |
26780 | ||
26781 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
26782 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26783 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
26784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26785 | else | |
26786 | ac_check_lib_save_LIBS=$LIBS | |
26787 | LIBS="-lodbc $LIBS" | |
26788 | cat >conftest.$ac_ext <<_ACEOF | |
26789 | /* confdefs.h. */ | |
26790 | _ACEOF | |
26791 | cat confdefs.h >>conftest.$ac_ext | |
26792 | cat >>conftest.$ac_ext <<_ACEOF | |
26793 | /* end confdefs.h. */ | |
26794 | ||
26795 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26796 | #ifdef __cplusplus | |
26797 | extern "C" | |
26798 | #endif | |
26799 | /* We use char because int might match the return type of a gcc2 | |
26800 | builtin and then its argument prototype would still apply. */ | |
26801 | char SQLAllocEnv (); | |
26802 | int | |
26803 | main () | |
26804 | { | |
26805 | SQLAllocEnv (); | |
26806 | ; | |
26807 | return 0; | |
26808 | } | |
26809 | _ACEOF | |
26810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26812 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26813 | ac_status=$? |
ac1cb8d3 VS |
26814 | grep -v '^ *+' conftest.er1 >conftest.err |
26815 | rm -f conftest.er1 | |
26816 | cat conftest.err >&5 | |
a848cd7e SC |
26817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26818 | (exit $ac_status); } && | |
ea7db9ff DE |
26819 | { ac_try='test -z "$ac_c_werror_flag" |
26820 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26822 | (eval $ac_try) 2>&5 | |
26823 | ac_status=$? | |
26824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26825 | (exit $ac_status); }; } && | |
26826 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26828 | (eval $ac_try) 2>&5 | |
26829 | ac_status=$? | |
26830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26831 | (exit $ac_status); }; }; then | |
26832 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
26833 | else | |
26834 | echo "$as_me: failed program was:" >&5 | |
26835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26836 | ||
26837 | ac_cv_lib_odbc_SQLAllocEnv=no | |
26838 | fi | |
ac1cb8d3 VS |
26839 | rm -f conftest.err conftest.$ac_objext \ |
26840 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26841 | LIBS=$ac_check_lib_save_LIBS |
26842 | fi | |
26843 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
26844 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26845 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
26846 | ODBC_LINK=" -lodbc" | |
26847 | fi | |
26848 | ||
26849 | ||
26850 | fi | |
26851 | ||
26852 | ||
26853 | fi | |
26854 | ||
26855 | fi | |
26856 | if test "x$ODBC_LINK" = "x" ; then | |
26857 | if test "$wxUSE_ODBC" = "sys" ; then | |
26858 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26859 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26860 | { (exit 1); exit 1; }; } | |
26861 | else | |
26862 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26863 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26864 | wxUSE_ODBC=builtin | |
26865 | fi | |
26866 | else | |
26867 | wxUSE_ODBC=sys | |
26868 | fi | |
26869 | fi | |
26870 | if test "$wxUSE_ODBC" != "no" ; then | |
26871 | cat >>confdefs.h <<\_ACEOF | |
26872 | #define wxUSE_ODBC 1 | |
26873 | _ACEOF | |
26874 | ||
26875 | if test "$wxUSE_ODBC" = "builtin" ; then | |
26876 | cat >>confdefs.h <<\_ACEOF | |
26877 | #define wxUSE_BUILTIN_IODBC 1 | |
26878 | _ACEOF | |
26879 | ||
26880 | fi | |
26881 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
26882 | ||
26883 | WXODBCFLAG="-D_IODBC_" | |
26884 | fi | |
26885 | fi | |
26886 | ||
26887 | if test "$wxUSE_REGEX" = "builtin" ; then | |
26888 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
26889 | fi | |
26890 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
26891 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
26892 | fi | |
26893 | ||
01cb68df | 26894 | |
a848cd7e | 26895 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 26896 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
26897 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
26898 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
26899 | ||
26900 | ac_find_libraries= | |
26901 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26902 | do | |
26903 | for ac_extension in a so sl dylib; do | |
26904 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26905 | ac_find_libraries=$ac_dir | |
26906 | break 2 | |
26907 | fi | |
26908 | done | |
26909 | done | |
26910 | ||
26911 | if test "$ac_find_libraries" != "" ; then | |
26912 | ||
26913 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26914 | result=$? | |
26915 | if test $result = 0; then | |
26916 | ac_path_to_link="" | |
26917 | else | |
26918 | ac_path_to_link=" -L$ac_find_libraries" | |
26919 | fi | |
26920 | ||
26921 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26922 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
26923 | fi | |
26924 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
26925 | echo "$as_me:$LINENO: result: yes" >&5 | |
26926 | echo "${ECHO_T}yes" >&6 | |
26927 | ||
26928 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
26929 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
26930 | ||
26931 | ac_find_libraries= | |
26932 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26933 | do | |
26934 | for ac_extension in a so sl dylib; do | |
26935 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
26936 | ac_find_libraries=$ac_dir | |
26937 | break 2 | |
26938 | fi | |
26939 | done | |
26940 | done | |
26941 | ||
26942 | if test "$ac_find_libraries" != "" ; then | |
26943 | echo "$as_me:$LINENO: result: yes" >&5 | |
26944 | echo "${ECHO_T}yes" >&6 | |
26945 | ||
26946 | for ac_header in X11/extensions/xf86vmode.h | |
26947 | do | |
26948 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26953 | else | |
26954 | cat >conftest.$ac_ext <<_ACEOF | |
26955 | /* confdefs.h. */ | |
26956 | _ACEOF | |
26957 | cat confdefs.h >>conftest.$ac_ext | |
26958 | cat >>conftest.$ac_ext <<_ACEOF | |
26959 | /* end confdefs.h. */ | |
26960 | ||
26961 | #if HAVE_X11_XLIB_H | |
26962 | #include <X11/Xlib.h> | |
26963 | #endif | |
26964 | ||
26965 | ||
26966 | #include <$ac_header> | |
26967 | _ACEOF | |
26968 | rm -f conftest.$ac_objext | |
26969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26970 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26971 | ac_status=$? |
ac1cb8d3 VS |
26972 | grep -v '^ *+' conftest.er1 >conftest.err |
26973 | rm -f conftest.er1 | |
26974 | cat conftest.err >&5 | |
a848cd7e SC |
26975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26976 | (exit $ac_status); } && | |
ea7db9ff DE |
26977 | { ac_try='test -z "$ac_c_werror_flag" |
26978 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26980 | (eval $ac_try) 2>&5 | |
26981 | ac_status=$? | |
26982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26983 | (exit $ac_status); }; } && | |
26984 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26986 | (eval $ac_try) 2>&5 | |
26987 | ac_status=$? | |
26988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26989 | (exit $ac_status); }; }; then | |
26990 | eval "$as_ac_Header=yes" | |
26991 | else | |
26992 | echo "$as_me: failed program was:" >&5 | |
26993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26994 | ||
26995 | eval "$as_ac_Header=no" | |
26996 | fi | |
ac1cb8d3 | 26997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26998 | fi |
26999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27000 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27001 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27002 | cat >>confdefs.h <<_ACEOF | |
27003 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27004 | _ACEOF | |
27005 | ||
27006 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27007 | ||
27008 | fi | |
27009 | ||
27010 | done | |
27011 | ||
27012 | else | |
27013 | echo "$as_me:$LINENO: result: no" >&5 | |
27014 | echo "${ECHO_T}no" >&6 | |
27015 | fi | |
27016 | ||
27017 | else | |
27018 | echo "$as_me:$LINENO: result: no" >&5 | |
27019 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27020 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27021 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27022 | wxUSE_DISPLAY="no" |
27023 | fi | |
01cb68df RG |
27024 | elif test "$wxUSE_MSW" = 1; then |
27025 | ||
27026 | ||
27027 | for ac_header in multimon.h ddraw.h | |
27028 | do | |
27029 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27030 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27031 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27032 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27033 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27035 | fi | |
27036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27037 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27038 | else | |
27039 | # Is the header compilable? | |
27040 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27041 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27042 | cat >conftest.$ac_ext <<_ACEOF | |
27043 | /* confdefs.h. */ | |
27044 | _ACEOF | |
27045 | cat confdefs.h >>conftest.$ac_ext | |
27046 | cat >>conftest.$ac_ext <<_ACEOF | |
27047 | /* end confdefs.h. */ | |
27048 | $ac_includes_default | |
27049 | #include <$ac_header> | |
27050 | _ACEOF | |
27051 | rm -f conftest.$ac_objext | |
27052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27053 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27054 | ac_status=$? |
ac1cb8d3 VS |
27055 | grep -v '^ *+' conftest.er1 >conftest.err |
27056 | rm -f conftest.er1 | |
27057 | cat conftest.err >&5 | |
01cb68df RG |
27058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27059 | (exit $ac_status); } && | |
ea7db9ff DE |
27060 | { ac_try='test -z "$ac_c_werror_flag" |
27061 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27063 | (eval $ac_try) 2>&5 | |
27064 | ac_status=$? | |
27065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27066 | (exit $ac_status); }; } && | |
27067 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27069 | (eval $ac_try) 2>&5 | |
27070 | ac_status=$? | |
27071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27072 | (exit $ac_status); }; }; then | |
27073 | ac_header_compiler=yes | |
27074 | else | |
27075 | echo "$as_me: failed program was:" >&5 | |
27076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27077 | ||
27078 | ac_header_compiler=no | |
27079 | fi | |
ac1cb8d3 | 27080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27081 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27082 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27083 | ||
27084 | # Is the header present? | |
27085 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27086 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27087 | cat >conftest.$ac_ext <<_ACEOF | |
27088 | /* confdefs.h. */ | |
27089 | _ACEOF | |
27090 | cat confdefs.h >>conftest.$ac_ext | |
27091 | cat >>conftest.$ac_ext <<_ACEOF | |
27092 | /* end confdefs.h. */ | |
27093 | #include <$ac_header> | |
27094 | _ACEOF | |
27095 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27096 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27097 | ac_status=$? | |
27098 | grep -v '^ *+' conftest.er1 >conftest.err | |
27099 | rm -f conftest.er1 | |
27100 | cat conftest.err >&5 | |
27101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27102 | (exit $ac_status); } >/dev/null; then | |
27103 | if test -s conftest.err; then | |
27104 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27105 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
27106 | else |
27107 | ac_cpp_err= | |
27108 | fi | |
27109 | else | |
27110 | ac_cpp_err=yes | |
27111 | fi | |
27112 | if test -z "$ac_cpp_err"; then | |
27113 | ac_header_preproc=yes | |
27114 | else | |
27115 | echo "$as_me: failed program was:" >&5 | |
27116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27117 | ||
27118 | ac_header_preproc=no | |
27119 | fi | |
27120 | rm -f conftest.err conftest.$ac_ext | |
27121 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27122 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27123 | ||
27124 | # So? What about this header? | |
ac1cb8d3 VS |
27125 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27126 | yes:no: ) | |
01cb68df RG |
27127 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
27128 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27129 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27130 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27131 | ac_header_preproc=yes | |
01cb68df | 27132 | ;; |
ac1cb8d3 | 27133 | no:yes:* ) |
01cb68df RG |
27134 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27135 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27136 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27137 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27138 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27139 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27140 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27141 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
27142 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27143 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27144 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27145 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
27146 | ( |
27147 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27148 | ## ----------------------------------------- ## |
27149 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27150 | ## ----------------------------------------- ## | |
01cb68df RG |
27151 | _ASBOX |
27152 | ) | | |
27153 | sed "s/^/$as_me: WARNING: /" >&2 | |
27154 | ;; | |
27155 | esac | |
27156 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27157 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27160 | else | |
ac1cb8d3 | 27161 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
27162 | fi |
27163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27164 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27165 | ||
27166 | fi | |
27167 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27168 | cat >>confdefs.h <<_ACEOF | |
27169 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27170 | _ACEOF | |
27171 | ||
27172 | else | |
27173 | ||
27174 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
27175 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
27176 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
27177 | |
27178 | fi | |
27179 | ||
27180 | done | |
27181 | ||
a848cd7e SC |
27182 | fi |
27183 | fi | |
27184 | ||
27185 | ||
27186 | USE_OPENGL=0 | |
27187 | if test "$wxUSE_OPENGL" = "yes"; then | |
27188 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27189 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27190 | elif test "$wxUSE_MSW" = 1; then | |
27191 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27192 | else | |
27193 | ||
27194 | ||
27195 | ac_find_includes= | |
27196 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27197 | do | |
27198 | if test -f "$ac_dir/GL/gl.h"; then | |
27199 | ac_find_includes=$ac_dir | |
27200 | break | |
27201 | fi | |
27202 | done | |
27203 | ||
27204 | if test "$ac_find_includes" != "" ; then | |
27205 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27206 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27207 | ||
27208 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27209 | ac_path_to_include="" | |
27210 | else | |
27211 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27212 | result=$? | |
27213 | if test $result = 0; then | |
27214 | ac_path_to_include="" | |
27215 | else | |
27216 | ac_path_to_include=" -I$ac_find_includes" | |
27217 | fi | |
27218 | fi | |
27219 | ||
27220 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27221 | fi | |
27222 | ||
27223 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27224 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27225 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27226 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27228 | fi | |
27229 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27230 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27231 | else | |
27232 | # Is the header compilable? | |
27233 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27234 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27235 | cat >conftest.$ac_ext <<_ACEOF | |
27236 | /* confdefs.h. */ | |
27237 | _ACEOF | |
27238 | cat confdefs.h >>conftest.$ac_ext | |
27239 | cat >>conftest.$ac_ext <<_ACEOF | |
27240 | /* end confdefs.h. */ | |
27241 | $ac_includes_default | |
27242 | #include <GL/gl.h> | |
27243 | _ACEOF | |
27244 | rm -f conftest.$ac_objext | |
27245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27246 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27247 | ac_status=$? |
ac1cb8d3 VS |
27248 | grep -v '^ *+' conftest.er1 >conftest.err |
27249 | rm -f conftest.er1 | |
27250 | cat conftest.err >&5 | |
a848cd7e SC |
27251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27252 | (exit $ac_status); } && | |
ea7db9ff DE |
27253 | { ac_try='test -z "$ac_c_werror_flag" |
27254 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27256 | (eval $ac_try) 2>&5 | |
27257 | ac_status=$? | |
27258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27259 | (exit $ac_status); }; } && | |
27260 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27262 | (eval $ac_try) 2>&5 | |
27263 | ac_status=$? | |
27264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27265 | (exit $ac_status); }; }; then | |
27266 | ac_header_compiler=yes | |
27267 | else | |
27268 | echo "$as_me: failed program was:" >&5 | |
27269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27270 | ||
27271 | ac_header_compiler=no | |
27272 | fi | |
ac1cb8d3 | 27273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27274 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27275 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27276 | ||
27277 | # Is the header present? | |
27278 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27279 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27280 | cat >conftest.$ac_ext <<_ACEOF | |
27281 | /* confdefs.h. */ | |
27282 | _ACEOF | |
27283 | cat confdefs.h >>conftest.$ac_ext | |
27284 | cat >>conftest.$ac_ext <<_ACEOF | |
27285 | /* end confdefs.h. */ | |
27286 | #include <GL/gl.h> | |
27287 | _ACEOF | |
27288 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27289 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27290 | ac_status=$? | |
27291 | grep -v '^ *+' conftest.er1 >conftest.err | |
27292 | rm -f conftest.er1 | |
27293 | cat conftest.err >&5 | |
27294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27295 | (exit $ac_status); } >/dev/null; then | |
27296 | if test -s conftest.err; then | |
27297 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27298 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27299 | else |
27300 | ac_cpp_err= | |
27301 | fi | |
27302 | else | |
27303 | ac_cpp_err=yes | |
27304 | fi | |
27305 | if test -z "$ac_cpp_err"; then | |
27306 | ac_header_preproc=yes | |
27307 | else | |
27308 | echo "$as_me: failed program was:" >&5 | |
27309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27310 | ||
27311 | ac_header_preproc=no | |
27312 | fi | |
27313 | rm -f conftest.err conftest.$ac_ext | |
27314 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27315 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27316 | ||
27317 | # So? What about this header? | |
ac1cb8d3 VS |
27318 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27319 | yes:no: ) | |
a848cd7e SC |
27320 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27321 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27322 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27323 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27324 | ac_header_preproc=yes | |
a848cd7e | 27325 | ;; |
ac1cb8d3 | 27326 | no:yes:* ) |
a848cd7e SC |
27327 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27328 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27329 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27330 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27331 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27332 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27333 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27334 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27335 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27336 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27337 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27338 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27339 | ( |
27340 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27341 | ## ----------------------------------------- ## |
27342 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27343 | ## ----------------------------------------- ## | |
a848cd7e SC |
27344 | _ASBOX |
27345 | ) | | |
27346 | sed "s/^/$as_me: WARNING: /" >&2 | |
27347 | ;; | |
27348 | esac | |
27349 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27350 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27351 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27353 | else | |
27354 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27355 | fi | |
27356 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27357 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27358 | ||
27359 | fi | |
27360 | if test $ac_cv_header_GL_gl_h = yes; then | |
27361 | ||
27362 | found_gl=0 | |
27363 | ||
27364 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27365 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27366 | ||
27367 | ac_find_libraries= | |
27368 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27369 | do | |
27370 | for ac_extension in a so sl dylib; do | |
27371 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27372 | ac_find_libraries=$ac_dir | |
27373 | break 2 | |
27374 | fi | |
27375 | done | |
27376 | done | |
27377 | ||
27378 | if test "$ac_find_libraries" != "" ; then | |
27379 | ||
27380 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27381 | result=$? | |
27382 | if test $result = 0; then | |
27383 | ac_path_to_link="" | |
27384 | else | |
27385 | ac_path_to_link=" -L$ac_find_libraries" | |
27386 | fi | |
27387 | ||
27388 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27389 | LDFLAGS_GL="$ac_path_to_link" | |
27390 | fi | |
27391 | ||
27392 | ||
27393 | ac_find_libraries= | |
27394 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27395 | do | |
27396 | for ac_extension in a so sl dylib; do | |
27397 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27398 | ac_find_libraries=$ac_dir | |
27399 | break 2 | |
27400 | fi | |
27401 | done | |
27402 | done | |
27403 | ||
27404 | if test "$ac_find_libraries" != "" ; then | |
27405 | ||
27406 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27407 | result=$? | |
27408 | if test $result = 0; then | |
27409 | ac_path_to_link="" | |
27410 | else | |
27411 | ac_path_to_link=" -L$ac_find_libraries" | |
27412 | fi | |
27413 | ||
27414 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27415 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27416 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27417 | fi | |
27418 | ||
27419 | found_gl=1 | |
27420 | OPENGL_LIBS="-lGL -lGLU" | |
27421 | echo "$as_me:$LINENO: result: yes" >&5 | |
27422 | echo "${ECHO_T}yes" >&6 | |
27423 | fi | |
27424 | fi | |
27425 | ||
27426 | if test "$found_gl" != 1; then | |
27427 | echo "$as_me:$LINENO: result: no" >&5 | |
27428 | echo "${ECHO_T}no" >&6 | |
27429 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27430 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27431 | ||
27432 | ac_find_libraries= | |
27433 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27434 | do | |
27435 | for ac_extension in a so sl dylib; do | |
27436 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27437 | ac_find_libraries=$ac_dir | |
27438 | break 2 | |
27439 | fi | |
27440 | done | |
27441 | done | |
27442 | ||
27443 | if test "$ac_find_libraries" != "" ; then | |
27444 | ||
27445 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27446 | result=$? | |
27447 | if test $result = 0; then | |
27448 | ac_path_to_link="" | |
27449 | else | |
27450 | ac_path_to_link=" -L$ac_find_libraries" | |
27451 | fi | |
27452 | ||
27453 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27454 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27455 | echo "$as_me:$LINENO: result: yes" >&5 | |
27456 | echo "${ECHO_T}yes" >&6 | |
27457 | else | |
27458 | echo "$as_me:$LINENO: result: no" >&5 | |
27459 | echo "${ECHO_T}no" >&6 | |
27460 | fi | |
27461 | fi | |
27462 | ||
27463 | fi | |
27464 | ||
27465 | ||
27466 | ||
27467 | if test "x$OPENGL_LIBS" = "x"; then | |
27468 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27469 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27470 | { (exit 1); exit 1; }; } | |
27471 | fi | |
27472 | fi | |
27473 | ||
27474 | if test "$wxUSE_OPENGL" = "yes"; then | |
27475 | USE_OPENGL=1 | |
27476 | cat >>confdefs.h <<\_ACEOF | |
27477 | #define wxUSE_OPENGL 1 | |
27478 | _ACEOF | |
27479 | ||
27480 | cat >>confdefs.h <<\_ACEOF | |
27481 | #define wxUSE_GLCANVAS 1 | |
27482 | _ACEOF | |
27483 | ||
27484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27485 | fi | |
27486 | fi | |
27487 | ||
27488 | if test -z "$TOOLKIT_VPATH" ; then | |
27489 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
27490 | fi | |
27491 | ||
27492 | if test -n "$TOOLKIT" ; then | |
27493 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27494 | fi | |
27495 | ||
27496 | UNICODE=0 | |
27497 | lib_unicode_suffix= | |
48112931 | 27498 | wxconfig_filename_unicode="ansi" |
a848cd7e SC |
27499 | if test "$wxUSE_UNICODE" = "yes"; then |
27500 | lib_unicode_suffix=u | |
48112931 | 27501 | wxconfig_filename_unicode="unicode" |
a848cd7e SC |
27502 | UNICODE=1 |
27503 | fi | |
27504 | ||
27505 | lib_debug_suffix= | |
48112931 | 27506 | wxconfig_filename_debug="release" |
a848cd7e SC |
27507 | DEBUG_FLAG=0 |
27508 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27509 | lib_debug_suffix=d | |
48112931 | 27510 | wxconfig_filename_debug="debug" |
a848cd7e SC |
27511 | DEBUG_FLAG=1 |
27512 | fi | |
27513 | ||
27514 | DEBUG_INFO=0 | |
27515 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27516 | DEBUG_INFO=1 | |
27517 | fi | |
27518 | ||
27519 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` | |
27520 | ||
27521 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
27522 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
27523 | ||
48112931 VS |
27524 | WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}" |
27525 | ||
a848cd7e SC |
27526 | if test "$cross_compiling" = "yes"; then |
27527 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
27528 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
48112931 | 27529 | WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}" |
a848cd7e SC |
27530 | HOST_SUFFIX="-${host_alias}" |
27531 | fi | |
27532 | ||
27533 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
27534 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
27535 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" | |
27536 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
27537 | ||
27538 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27539 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27540 | ||
27541 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
27542 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27543 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
27544 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27545 | ||
27546 | case "${host}" in | |
27547 | *-*-cygwin* | *-*-mingw32* ) | |
27548 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27549 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27550 | ;; | |
27551 | ||
27552 | *-*-darwin* ) | |
27553 | ||
27554 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27555 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27556 | ||
27557 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
27558 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27559 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
27560 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27561 | ||
27562 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27563 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
27564 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
27565 | fi | |
27566 | ;; | |
27567 | esac | |
27568 | ||
27569 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
27570 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
27571 | ||
27572 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
27573 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
27574 | ||
27575 | if test "$wxUSE_OPENGL" = "yes"; then | |
27576 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
27577 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
27578 | fi | |
27579 | ||
27580 | ||
27581 | ||
27582 | if test "$wxUSE_SHARED" = "yes"; then | |
27583 | case "${host}" in | |
27584 | *-pc-msdosdjgpp ) | |
27585 | wxUSE_SHARED=no | |
27586 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27587 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27588 | ;; | |
27589 | esac | |
27590 | fi | |
27591 | ||
27592 | SHARED=0 | |
27593 | if test "$wxUSE_SHARED" = "yes"; then | |
27594 | SHARED=1 | |
27595 | ||
27596 | ||
27597 | found_versioning=no | |
27598 | ||
27599 | ||
27600 | if test $found_versioning = no ; then | |
27601 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27602 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27603 | if test "${wx_cv_version_script+set}" = set; then | |
27604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27605 | else | |
27606 | ||
27607 | echo "VER_1 { *; };" >conftest.sym | |
27608 | echo "int main() { return 0; }" >conftest.cpp | |
27609 | ||
27610 | if { ac_try=' | |
27611 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27612 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27614 | (eval $ac_try) 2>&5 | |
27615 | ac_status=$? | |
27616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27617 | (exit $ac_status); }; } ; then | |
27618 | if test -s conftest.stderr ; then | |
27619 | wx_cv_version_script=no | |
27620 | else | |
27621 | wx_cv_version_script=yes | |
27622 | fi | |
27623 | else | |
27624 | wx_cv_version_script=no | |
27625 | fi | |
27626 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27627 | ||
27628 | fi | |
27629 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27630 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27631 | if test $wx_cv_version_script = yes ; then | |
27632 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27633 | fi | |
27634 | fi | |
27635 | ||
27636 | ||
27637 | case "${host}" in | |
27638 | *-*-linux* | *-*-gnu* ) | |
27639 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27640 | ;; | |
27641 | ||
27642 | *-*-solaris2* ) | |
27643 | if test "$GCC" = yes ; then | |
27644 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27645 | ||
27646 | saveLdflags="$LDFLAGS" | |
27647 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27648 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27649 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27650 | cat >conftest.$ac_ext <<_ACEOF | |
27651 | /* confdefs.h. */ | |
27652 | _ACEOF | |
27653 | cat confdefs.h >>conftest.$ac_ext | |
27654 | cat >>conftest.$ac_ext <<_ACEOF | |
27655 | /* end confdefs.h. */ | |
27656 | ||
27657 | int | |
27658 | main () | |
27659 | { | |
27660 | ||
27661 | ; | |
27662 | return 0; | |
27663 | } | |
27664 | _ACEOF | |
27665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27667 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27668 | ac_status=$? |
ac1cb8d3 VS |
27669 | grep -v '^ *+' conftest.er1 >conftest.err |
27670 | rm -f conftest.er1 | |
27671 | cat conftest.err >&5 | |
a848cd7e SC |
27672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27673 | (exit $ac_status); } && | |
ea7db9ff DE |
27674 | { ac_try='test -z "$ac_c_werror_flag" |
27675 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27677 | (eval $ac_try) 2>&5 | |
27678 | ac_status=$? | |
27679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27680 | (exit $ac_status); }; } && | |
27681 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27683 | (eval $ac_try) 2>&5 | |
27684 | ac_status=$? | |
27685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27686 | (exit $ac_status); }; }; then | |
27687 | ||
27688 | echo "$as_me:$LINENO: result: yes" >&5 | |
27689 | echo "${ECHO_T}yes" >&6 | |
27690 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27691 | ||
27692 | else | |
27693 | echo "$as_me: failed program was:" >&5 | |
27694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27695 | ||
27696 | ||
27697 | echo "$as_me:$LINENO: result: no" >&5 | |
27698 | echo "${ECHO_T}no" >&6 | |
27699 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27700 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27701 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27702 | cat >conftest.$ac_ext <<_ACEOF | |
27703 | /* confdefs.h. */ | |
27704 | _ACEOF | |
27705 | cat confdefs.h >>conftest.$ac_ext | |
27706 | cat >>conftest.$ac_ext <<_ACEOF | |
27707 | /* end confdefs.h. */ | |
27708 | ||
27709 | int | |
27710 | main () | |
27711 | { | |
27712 | ||
27713 | ; | |
27714 | return 0; | |
27715 | } | |
27716 | _ACEOF | |
27717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27719 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27720 | ac_status=$? |
ac1cb8d3 VS |
27721 | grep -v '^ *+' conftest.er1 >conftest.err |
27722 | rm -f conftest.er1 | |
27723 | cat conftest.err >&5 | |
a848cd7e SC |
27724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27725 | (exit $ac_status); } && | |
ea7db9ff DE |
27726 | { ac_try='test -z "$ac_c_werror_flag" |
27727 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27729 | (eval $ac_try) 2>&5 | |
27730 | ac_status=$? | |
27731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27732 | (exit $ac_status); }; } && | |
27733 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27735 | (eval $ac_try) 2>&5 | |
27736 | ac_status=$? | |
27737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27738 | (exit $ac_status); }; }; then | |
27739 | ||
27740 | echo "$as_me:$LINENO: result: yes" >&5 | |
27741 | echo "${ECHO_T}yes" >&6 | |
27742 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27743 | else | |
27744 | echo "$as_me: failed program was:" >&5 | |
27745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27746 | ||
27747 | ||
27748 | echo "$as_me:$LINENO: result: no" >&5 | |
27749 | echo "${ECHO_T}no" >&6 | |
27750 | ||
27751 | fi | |
ac1cb8d3 VS |
27752 | rm -f conftest.err conftest.$ac_objext \ |
27753 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27754 | |
27755 | fi | |
ac1cb8d3 VS |
27756 | rm -f conftest.err conftest.$ac_objext \ |
27757 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27758 | LDFLAGS="$saveLdflags" |
27759 | else | |
27760 | SHARED_LD="${CXX} -G -o" | |
27761 | PIC_FLAG="-KPIC" | |
27762 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" | |
27763 | fi | |
27764 | ;; | |
27765 | ||
27766 | powerpc-*-darwin* ) | |
27767 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27768 | cat <<EOF >change-install-names | |
27769 | #!/bin/sh | |
27770 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27771 | inst_cmd="install_name_tool " | |
27772 | for i in \${libnames} ; do | |
27773 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27774 | done | |
27775 | \${inst_cmd} \${3} | |
27776 | EOF | |
27777 | chmod +x change-install-names | |
27778 | ;; | |
27779 | ||
27780 | *-*-cygwin* | *-*-mingw32* ) | |
27781 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27782 | ;; | |
27783 | ||
27784 | esac | |
27785 | ||
27786 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
27787 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
27788 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
27789 | fi | |
27790 | ||
27791 | WX_TARGET_LIBRARY_TYPE="so" | |
27792 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
27793 | fi | |
27794 | ||
27795 | if test "$wxUSE_SHARED" = "no"; then | |
27796 | ||
27797 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
27798 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27799 | fi | |
27800 | ||
27801 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
27802 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27803 | fi | |
27804 | ||
27805 | if test "$wxUSE_OPENGL" = "yes"; then | |
27806 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
27807 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
27808 | else | |
27809 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
27810 | fi | |
27811 | ||
27812 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
27813 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
27814 | ||
27815 | WX_TARGET_LIBRARY_TYPE="a" | |
27816 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
27817 | ||
27818 | STATIC_FLAG="yes" | |
27819 | else | |
27820 | STATIC_FLAG="no" | |
27821 | fi | |
27822 | ||
27823 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then | |
27824 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" | |
27825 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
27826 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
27827 | ||
27828 | # Extract the first word of "Rez", so it can be a program name with args. | |
27829 | set dummy Rez; ac_word=$2 | |
27830 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27832 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27834 | else | |
27835 | if test -n "$RESCOMP"; then | |
27836 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
27837 | else | |
27838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27839 | for as_dir in $PATH | |
27840 | do | |
27841 | IFS=$as_save_IFS | |
27842 | test -z "$as_dir" && as_dir=. | |
27843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27845 | ac_cv_prog_RESCOMP="Rez" | |
27846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27847 | break 2 | |
27848 | fi | |
27849 | done | |
27850 | done | |
27851 | ||
27852 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
27853 | fi | |
27854 | fi | |
27855 | RESCOMP=$ac_cv_prog_RESCOMP | |
27856 | if test -n "$RESCOMP"; then | |
27857 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
27858 | echo "${ECHO_T}$RESCOMP" >&6 | |
27859 | else | |
27860 | echo "$as_me:$LINENO: result: no" >&5 | |
27861 | echo "${ECHO_T}no" >&6 | |
27862 | fi | |
27863 | ||
27864 | # Extract the first word of "DeRez", so it can be a program name with args. | |
27865 | set dummy DeRez; ac_word=$2 | |
27866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27868 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27870 | else | |
27871 | if test -n "$DEREZ"; then | |
27872 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
27873 | else | |
27874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27875 | for as_dir in $PATH | |
27876 | do | |
27877 | IFS=$as_save_IFS | |
27878 | test -z "$as_dir" && as_dir=. | |
27879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27881 | ac_cv_prog_DEREZ="DeRez" | |
27882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27883 | break 2 | |
27884 | fi | |
27885 | done | |
27886 | done | |
27887 | ||
27888 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
27889 | fi | |
27890 | fi | |
27891 | DEREZ=$ac_cv_prog_DEREZ | |
27892 | if test -n "$DEREZ"; then | |
27893 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
27894 | echo "${ECHO_T}$DEREZ" >&6 | |
27895 | else | |
27896 | echo "$as_me:$LINENO: result: no" >&5 | |
27897 | echo "${ECHO_T}no" >&6 | |
27898 | fi | |
27899 | ||
27900 | # Extract the first word of "SetFile", so it can be a program name with args. | |
27901 | set dummy SetFile; ac_word=$2 | |
27902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27904 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27906 | else | |
27907 | if test -n "$SETFILE"; then | |
27908 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27909 | else | |
27910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27911 | for as_dir in $PATH | |
27912 | do | |
27913 | IFS=$as_save_IFS | |
27914 | test -z "$as_dir" && as_dir=. | |
27915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27916 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27917 | ac_cv_prog_SETFILE="SetFile" | |
27918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27919 | break 2 | |
27920 | fi | |
27921 | done | |
27922 | done | |
27923 | ||
27924 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
27925 | fi | |
27926 | fi | |
27927 | SETFILE=$ac_cv_prog_SETFILE | |
27928 | if test -n "$SETFILE"; then | |
27929 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
27930 | echo "${ECHO_T}$SETFILE" >&6 | |
27931 | else | |
27932 | echo "$as_me:$LINENO: result: no" >&5 | |
27933 | echo "${ECHO_T}no" >&6 | |
27934 | fi | |
27935 | ||
27936 | ||
27937 | MACSETFILE="\$(SETFILE)" | |
27938 | ||
27939 | if test "$wxUSE_MAC" = 1; then | |
27940 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
27941 | ||
27942 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27943 | else | |
27944 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27945 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27946 | fi | |
27947 | else | |
27948 | MACSETFILE="@#" | |
27949 | MACRESWXCONFIG="#" | |
27950 | ||
27951 | if test "$wxUSE_PM" = 1; then | |
27952 | MACRESCOMP="emxbind -ep" | |
27953 | else | |
27954 | MACRESCOMP="@#" | |
27955 | fi | |
27956 | fi | |
27957 | ||
27958 | ||
27959 | ||
27960 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
27961 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
27962 | if test "${ac_cv_type_mode_t+set}" = set; then | |
27963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27964 | else | |
27965 | cat >conftest.$ac_ext <<_ACEOF | |
27966 | /* confdefs.h. */ | |
27967 | _ACEOF | |
27968 | cat confdefs.h >>conftest.$ac_ext | |
27969 | cat >>conftest.$ac_ext <<_ACEOF | |
27970 | /* end confdefs.h. */ | |
27971 | $ac_includes_default | |
27972 | int | |
27973 | main () | |
27974 | { | |
27975 | if ((mode_t *) 0) | |
27976 | return 0; | |
27977 | if (sizeof (mode_t)) | |
27978 | return 0; | |
27979 | ; | |
27980 | return 0; | |
27981 | } | |
27982 | _ACEOF | |
27983 | rm -f conftest.$ac_objext | |
27984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27985 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27986 | ac_status=$? |
ac1cb8d3 VS |
27987 | grep -v '^ *+' conftest.er1 >conftest.err |
27988 | rm -f conftest.er1 | |
27989 | cat conftest.err >&5 | |
a848cd7e SC |
27990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27991 | (exit $ac_status); } && | |
ea7db9ff DE |
27992 | { ac_try='test -z "$ac_c_werror_flag" |
27993 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27995 | (eval $ac_try) 2>&5 | |
27996 | ac_status=$? | |
27997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27998 | (exit $ac_status); }; } && | |
27999 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28001 | (eval $ac_try) 2>&5 | |
28002 | ac_status=$? | |
28003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28004 | (exit $ac_status); }; }; then | |
28005 | ac_cv_type_mode_t=yes | |
28006 | else | |
28007 | echo "$as_me: failed program was:" >&5 | |
28008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28009 | ||
28010 | ac_cv_type_mode_t=no | |
28011 | fi | |
ac1cb8d3 | 28012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28013 | fi |
28014 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
28015 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28016 | if test $ac_cv_type_mode_t = yes; then | |
28017 | : | |
28018 | else | |
28019 | ||
28020 | cat >>confdefs.h <<_ACEOF | |
28021 | #define mode_t int | |
28022 | _ACEOF | |
28023 | ||
28024 | fi | |
28025 | ||
28026 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28027 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28028 | if test "${ac_cv_type_off_t+set}" = set; then | |
28029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28030 | else | |
28031 | cat >conftest.$ac_ext <<_ACEOF | |
28032 | /* confdefs.h. */ | |
28033 | _ACEOF | |
28034 | cat confdefs.h >>conftest.$ac_ext | |
28035 | cat >>conftest.$ac_ext <<_ACEOF | |
28036 | /* end confdefs.h. */ | |
28037 | $ac_includes_default | |
28038 | int | |
28039 | main () | |
28040 | { | |
28041 | if ((off_t *) 0) | |
28042 | return 0; | |
28043 | if (sizeof (off_t)) | |
28044 | return 0; | |
28045 | ; | |
28046 | return 0; | |
28047 | } | |
28048 | _ACEOF | |
28049 | rm -f conftest.$ac_objext | |
28050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28051 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28052 | ac_status=$? |
ac1cb8d3 VS |
28053 | grep -v '^ *+' conftest.er1 >conftest.err |
28054 | rm -f conftest.er1 | |
28055 | cat conftest.err >&5 | |
a848cd7e SC |
28056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28057 | (exit $ac_status); } && | |
ea7db9ff DE |
28058 | { ac_try='test -z "$ac_c_werror_flag" |
28059 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28061 | (eval $ac_try) 2>&5 | |
28062 | ac_status=$? | |
28063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28064 | (exit $ac_status); }; } && | |
28065 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28067 | (eval $ac_try) 2>&5 | |
28068 | ac_status=$? | |
28069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28070 | (exit $ac_status); }; }; then | |
28071 | ac_cv_type_off_t=yes | |
28072 | else | |
28073 | echo "$as_me: failed program was:" >&5 | |
28074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28075 | ||
28076 | ac_cv_type_off_t=no | |
28077 | fi | |
ac1cb8d3 | 28078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28079 | fi |
28080 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28081 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28082 | if test $ac_cv_type_off_t = yes; then | |
28083 | : | |
28084 | else | |
28085 | ||
28086 | cat >>confdefs.h <<_ACEOF | |
28087 | #define off_t long | |
28088 | _ACEOF | |
28089 | ||
28090 | fi | |
28091 | ||
28092 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28093 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28094 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28096 | else | |
28097 | cat >conftest.$ac_ext <<_ACEOF | |
28098 | /* confdefs.h. */ | |
28099 | _ACEOF | |
28100 | cat confdefs.h >>conftest.$ac_ext | |
28101 | cat >>conftest.$ac_ext <<_ACEOF | |
28102 | /* end confdefs.h. */ | |
28103 | $ac_includes_default | |
28104 | int | |
28105 | main () | |
28106 | { | |
28107 | if ((pid_t *) 0) | |
28108 | return 0; | |
28109 | if (sizeof (pid_t)) | |
28110 | return 0; | |
28111 | ; | |
28112 | return 0; | |
28113 | } | |
28114 | _ACEOF | |
28115 | rm -f conftest.$ac_objext | |
28116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28117 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28118 | ac_status=$? |
ac1cb8d3 VS |
28119 | grep -v '^ *+' conftest.er1 >conftest.err |
28120 | rm -f conftest.er1 | |
28121 | cat conftest.err >&5 | |
a848cd7e SC |
28122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28123 | (exit $ac_status); } && | |
ea7db9ff DE |
28124 | { ac_try='test -z "$ac_c_werror_flag" |
28125 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28127 | (eval $ac_try) 2>&5 | |
28128 | ac_status=$? | |
28129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28130 | (exit $ac_status); }; } && | |
28131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28133 | (eval $ac_try) 2>&5 | |
28134 | ac_status=$? | |
28135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28136 | (exit $ac_status); }; }; then | |
28137 | ac_cv_type_pid_t=yes | |
28138 | else | |
28139 | echo "$as_me: failed program was:" >&5 | |
28140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28141 | ||
28142 | ac_cv_type_pid_t=no | |
28143 | fi | |
ac1cb8d3 | 28144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28145 | fi |
28146 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28147 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28148 | if test $ac_cv_type_pid_t = yes; then | |
28149 | : | |
28150 | else | |
28151 | ||
28152 | cat >>confdefs.h <<_ACEOF | |
28153 | #define pid_t int | |
28154 | _ACEOF | |
28155 | ||
28156 | fi | |
28157 | ||
28158 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28159 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28160 | if test "${ac_cv_type_size_t+set}" = set; then | |
28161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28162 | else | |
28163 | cat >conftest.$ac_ext <<_ACEOF | |
28164 | /* confdefs.h. */ | |
28165 | _ACEOF | |
28166 | cat confdefs.h >>conftest.$ac_ext | |
28167 | cat >>conftest.$ac_ext <<_ACEOF | |
28168 | /* end confdefs.h. */ | |
28169 | $ac_includes_default | |
28170 | int | |
28171 | main () | |
28172 | { | |
28173 | if ((size_t *) 0) | |
28174 | return 0; | |
28175 | if (sizeof (size_t)) | |
28176 | return 0; | |
28177 | ; | |
28178 | return 0; | |
28179 | } | |
28180 | _ACEOF | |
28181 | rm -f conftest.$ac_objext | |
28182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28183 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28184 | ac_status=$? |
ac1cb8d3 VS |
28185 | grep -v '^ *+' conftest.er1 >conftest.err |
28186 | rm -f conftest.er1 | |
28187 | cat conftest.err >&5 | |
a848cd7e SC |
28188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28189 | (exit $ac_status); } && | |
ea7db9ff DE |
28190 | { ac_try='test -z "$ac_c_werror_flag" |
28191 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28193 | (eval $ac_try) 2>&5 | |
28194 | ac_status=$? | |
28195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28196 | (exit $ac_status); }; } && | |
28197 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28199 | (eval $ac_try) 2>&5 | |
28200 | ac_status=$? | |
28201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28202 | (exit $ac_status); }; }; then | |
28203 | ac_cv_type_size_t=yes | |
28204 | else | |
28205 | echo "$as_me: failed program was:" >&5 | |
28206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28207 | ||
28208 | ac_cv_type_size_t=no | |
28209 | fi | |
ac1cb8d3 | 28210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28211 | fi |
28212 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28213 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28214 | if test $ac_cv_type_size_t = yes; then | |
28215 | : | |
28216 | else | |
28217 | ||
28218 | cat >>confdefs.h <<_ACEOF | |
28219 | #define size_t unsigned | |
28220 | _ACEOF | |
28221 | ||
28222 | fi | |
28223 | ||
28224 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28225 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28226 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28228 | else | |
28229 | cat >conftest.$ac_ext <<_ACEOF | |
28230 | /* confdefs.h. */ | |
28231 | _ACEOF | |
28232 | cat confdefs.h >>conftest.$ac_ext | |
28233 | cat >>conftest.$ac_ext <<_ACEOF | |
28234 | /* end confdefs.h. */ | |
28235 | #include <sys/types.h> | |
28236 | ||
28237 | _ACEOF | |
28238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28239 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28240 | ac_cv_type_uid_t=yes | |
28241 | else | |
28242 | ac_cv_type_uid_t=no | |
28243 | fi | |
28244 | rm -f conftest* | |
28245 | ||
28246 | fi | |
28247 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28248 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28249 | if test $ac_cv_type_uid_t = no; then | |
28250 | ||
28251 | cat >>confdefs.h <<\_ACEOF | |
28252 | #define uid_t int | |
28253 | _ACEOF | |
28254 | ||
28255 | ||
28256 | cat >>confdefs.h <<\_ACEOF | |
28257 | #define gid_t int | |
28258 | _ACEOF | |
28259 | ||
28260 | fi | |
28261 | ||
28262 | ||
28263 | ||
28264 | ||
28265 | ac_ext=cc | |
28266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28267 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28268 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28269 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28270 | ||
28271 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28272 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28273 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28275 | else | |
28276 | ||
28277 | cat >conftest.$ac_ext <<_ACEOF | |
28278 | /* confdefs.h. */ | |
28279 | _ACEOF | |
28280 | cat confdefs.h >>conftest.$ac_ext | |
28281 | cat >>conftest.$ac_ext <<_ACEOF | |
28282 | /* end confdefs.h. */ | |
28283 | #include <stddef.h> | |
28284 | int | |
28285 | main () | |
28286 | { | |
28287 | ||
28288 | return 0; } | |
28289 | ||
28290 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28291 | ||
28292 | int bar() { | |
28293 | ||
28294 | ; | |
28295 | return 0; | |
28296 | } | |
28297 | _ACEOF | |
28298 | rm -f conftest.$ac_objext | |
28299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28300 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28301 | ac_status=$? |
ac1cb8d3 VS |
28302 | grep -v '^ *+' conftest.er1 >conftest.err |
28303 | rm -f conftest.er1 | |
28304 | cat conftest.err >&5 | |
a848cd7e SC |
28305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28306 | (exit $ac_status); } && | |
ea7db9ff DE |
28307 | { ac_try='test -z "$ac_cxx_werror_flag" |
28308 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28310 | (eval $ac_try) 2>&5 | |
28311 | ac_status=$? | |
28312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28313 | (exit $ac_status); }; } && | |
28314 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28316 | (eval $ac_try) 2>&5 | |
28317 | ac_status=$? | |
28318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28319 | (exit $ac_status); }; }; then | |
28320 | wx_cv_size_t_is_uint=no | |
28321 | else | |
28322 | echo "$as_me: failed program was:" >&5 | |
28323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28324 | ||
28325 | wx_cv_size_t_is_uint=yes | |
28326 | ||
28327 | fi | |
ac1cb8d3 | 28328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28329 | |
28330 | ||
28331 | fi | |
28332 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28333 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28334 | ||
28335 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28336 | cat >>confdefs.h <<\_ACEOF | |
28337 | #define wxSIZE_T_IS_UINT 1 | |
28338 | _ACEOF | |
28339 | ||
28340 | else | |
28341 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28342 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28343 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28345 | else | |
28346 | cat >conftest.$ac_ext <<_ACEOF | |
28347 | /* confdefs.h. */ | |
28348 | _ACEOF | |
28349 | cat confdefs.h >>conftest.$ac_ext | |
28350 | cat >>conftest.$ac_ext <<_ACEOF | |
28351 | /* end confdefs.h. */ | |
28352 | #include <stddef.h> | |
28353 | int | |
28354 | main () | |
28355 | { | |
28356 | ||
28357 | return 0; } | |
28358 | ||
28359 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28360 | ||
28361 | int bar() { | |
28362 | ||
28363 | ; | |
28364 | return 0; | |
28365 | } | |
28366 | _ACEOF | |
28367 | rm -f conftest.$ac_objext | |
28368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28369 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28370 | ac_status=$? |
ac1cb8d3 VS |
28371 | grep -v '^ *+' conftest.er1 >conftest.err |
28372 | rm -f conftest.er1 | |
28373 | cat conftest.err >&5 | |
a848cd7e SC |
28374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28375 | (exit $ac_status); } && | |
ea7db9ff DE |
28376 | { ac_try='test -z "$ac_cxx_werror_flag" |
28377 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28379 | (eval $ac_try) 2>&5 | |
28380 | ac_status=$? | |
28381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28382 | (exit $ac_status); }; } && | |
28383 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28385 | (eval $ac_try) 2>&5 | |
28386 | ac_status=$? | |
28387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28388 | (exit $ac_status); }; }; then | |
28389 | wx_cv_size_t_is_ulong=no | |
28390 | else | |
28391 | echo "$as_me: failed program was:" >&5 | |
28392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28393 | ||
28394 | wx_cv_size_t_is_ulong=yes | |
28395 | ||
28396 | fi | |
ac1cb8d3 | 28397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28398 | |
28399 | fi | |
28400 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28401 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28402 | ||
28403 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28404 | cat >>confdefs.h <<\_ACEOF | |
28405 | #define wxSIZE_T_IS_ULONG 1 | |
28406 | _ACEOF | |
28407 | ||
28408 | fi | |
28409 | fi | |
28410 | ||
28411 | ac_ext=c | |
28412 | ac_cpp='$CPP $CPPFLAGS' | |
28413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28416 | ||
28417 | ||
28418 | ||
28419 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28420 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28421 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28423 | else | |
28424 | ||
28425 | cat >conftest.$ac_ext <<_ACEOF | |
28426 | /* confdefs.h. */ | |
28427 | _ACEOF | |
28428 | cat confdefs.h >>conftest.$ac_ext | |
28429 | cat >>conftest.$ac_ext <<_ACEOF | |
28430 | /* end confdefs.h. */ | |
28431 | #include <pwd.h> | |
28432 | int | |
28433 | main () | |
28434 | { | |
28435 | ||
28436 | char *p; | |
28437 | struct passwd *pw; | |
28438 | p = pw->pw_gecos; | |
28439 | ||
28440 | ; | |
28441 | return 0; | |
28442 | } | |
28443 | _ACEOF | |
28444 | rm -f conftest.$ac_objext | |
28445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28446 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28447 | ac_status=$? |
ac1cb8d3 VS |
28448 | grep -v '^ *+' conftest.er1 >conftest.err |
28449 | rm -f conftest.er1 | |
28450 | cat conftest.err >&5 | |
a848cd7e SC |
28451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28452 | (exit $ac_status); } && | |
ea7db9ff DE |
28453 | { ac_try='test -z "$ac_c_werror_flag" |
28454 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28456 | (eval $ac_try) 2>&5 | |
28457 | ac_status=$? | |
28458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28459 | (exit $ac_status); }; } && | |
28460 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28462 | (eval $ac_try) 2>&5 | |
28463 | ac_status=$? | |
28464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28465 | (exit $ac_status); }; }; then | |
28466 | ||
28467 | wx_cv_struct_pw_gecos=yes | |
28468 | ||
28469 | else | |
28470 | echo "$as_me: failed program was:" >&5 | |
28471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28472 | ||
28473 | ||
28474 | wx_cv_struct_pw_gecos=no | |
28475 | ||
28476 | ||
28477 | fi | |
ac1cb8d3 | 28478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28479 | |
28480 | ||
28481 | fi | |
28482 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28483 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28484 | ||
28485 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28486 | cat >>confdefs.h <<\_ACEOF | |
28487 | #define HAVE_PW_GECOS 1 | |
28488 | _ACEOF | |
28489 | ||
28490 | fi | |
28491 | ||
28492 | ||
28493 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28494 | cat >>confdefs.h <<\_ACEOF | |
28495 | #define wxUSE_WCHAR_T 1 | |
28496 | _ACEOF | |
28497 | ||
28498 | ||
28499 | WCSLEN_FOUND=0 | |
28500 | WCHAR_LINK= | |
28501 | ||
28502 | for ac_func in wcslen | |
28503 | do | |
28504 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28505 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28506 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28507 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28509 | else | |
28510 | cat >conftest.$ac_ext <<_ACEOF | |
28511 | /* confdefs.h. */ | |
28512 | _ACEOF | |
28513 | cat confdefs.h >>conftest.$ac_ext | |
28514 | cat >>conftest.$ac_ext <<_ACEOF | |
28515 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28516 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28517 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28518 | #define $ac_func innocuous_$ac_func | |
28519 | ||
a848cd7e SC |
28520 | /* System header to define __stub macros and hopefully few prototypes, |
28521 | which can conflict with char $ac_func (); below. | |
28522 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28523 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28524 | |
a848cd7e SC |
28525 | #ifdef __STDC__ |
28526 | # include <limits.h> | |
28527 | #else | |
28528 | # include <assert.h> | |
28529 | #endif | |
ac1cb8d3 VS |
28530 | |
28531 | #undef $ac_func | |
28532 | ||
a848cd7e SC |
28533 | /* Override any gcc2 internal prototype to avoid an error. */ |
28534 | #ifdef __cplusplus | |
28535 | extern "C" | |
28536 | { | |
28537 | #endif | |
28538 | /* We use char because int might match the return type of a gcc2 | |
28539 | builtin and then its argument prototype would still apply. */ | |
28540 | char $ac_func (); | |
28541 | /* The GNU C library defines this for functions which it implements | |
28542 | to always fail with ENOSYS. Some functions are actually named | |
28543 | something starting with __ and the normal name is an alias. */ | |
28544 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28545 | choke me | |
28546 | #else | |
28547 | char (*f) () = $ac_func; | |
28548 | #endif | |
28549 | #ifdef __cplusplus | |
28550 | } | |
28551 | #endif | |
28552 | ||
28553 | int | |
28554 | main () | |
28555 | { | |
28556 | return f != $ac_func; | |
28557 | ; | |
28558 | return 0; | |
28559 | } | |
28560 | _ACEOF | |
28561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28563 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28564 | ac_status=$? |
ac1cb8d3 VS |
28565 | grep -v '^ *+' conftest.er1 >conftest.err |
28566 | rm -f conftest.er1 | |
28567 | cat conftest.err >&5 | |
a848cd7e SC |
28568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28569 | (exit $ac_status); } && | |
ea7db9ff DE |
28570 | { ac_try='test -z "$ac_c_werror_flag" |
28571 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28573 | (eval $ac_try) 2>&5 | |
28574 | ac_status=$? | |
28575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28576 | (exit $ac_status); }; } && | |
28577 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28579 | (eval $ac_try) 2>&5 | |
28580 | ac_status=$? | |
28581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28582 | (exit $ac_status); }; }; then | |
28583 | eval "$as_ac_var=yes" | |
28584 | else | |
28585 | echo "$as_me: failed program was:" >&5 | |
28586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28587 | ||
28588 | eval "$as_ac_var=no" | |
28589 | fi | |
ac1cb8d3 VS |
28590 | rm -f conftest.err conftest.$ac_objext \ |
28591 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28592 | fi |
28593 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28594 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28595 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28596 | cat >>confdefs.h <<_ACEOF | |
28597 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28598 | _ACEOF | |
28599 | WCSLEN_FOUND=1 | |
28600 | fi | |
28601 | done | |
28602 | ||
28603 | ||
28604 | if test "$WCSLEN_FOUND" = 0; then | |
28605 | if test "$TOOLKIT" = "MSW"; then | |
28606 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28607 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28608 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28610 | else | |
28611 | ac_check_lib_save_LIBS=$LIBS | |
28612 | LIBS="-lmsvcrt $LIBS" | |
28613 | cat >conftest.$ac_ext <<_ACEOF | |
28614 | /* confdefs.h. */ | |
28615 | _ACEOF | |
28616 | cat confdefs.h >>conftest.$ac_ext | |
28617 | cat >>conftest.$ac_ext <<_ACEOF | |
28618 | /* end confdefs.h. */ | |
28619 | ||
28620 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28621 | #ifdef __cplusplus | |
28622 | extern "C" | |
28623 | #endif | |
28624 | /* We use char because int might match the return type of a gcc2 | |
28625 | builtin and then its argument prototype would still apply. */ | |
28626 | char wcslen (); | |
28627 | int | |
28628 | main () | |
28629 | { | |
28630 | wcslen (); | |
28631 | ; | |
28632 | return 0; | |
28633 | } | |
28634 | _ACEOF | |
28635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28637 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28638 | ac_status=$? |
ac1cb8d3 VS |
28639 | grep -v '^ *+' conftest.er1 >conftest.err |
28640 | rm -f conftest.er1 | |
28641 | cat conftest.err >&5 | |
a848cd7e SC |
28642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28643 | (exit $ac_status); } && | |
ea7db9ff DE |
28644 | { ac_try='test -z "$ac_c_werror_flag" |
28645 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28647 | (eval $ac_try) 2>&5 | |
28648 | ac_status=$? | |
28649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28650 | (exit $ac_status); }; } && | |
28651 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28653 | (eval $ac_try) 2>&5 | |
28654 | ac_status=$? | |
28655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28656 | (exit $ac_status); }; }; then | |
28657 | ac_cv_lib_msvcrt_wcslen=yes | |
28658 | else | |
28659 | echo "$as_me: failed program was:" >&5 | |
28660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28661 | ||
28662 | ac_cv_lib_msvcrt_wcslen=no | |
28663 | fi | |
ac1cb8d3 VS |
28664 | rm -f conftest.err conftest.$ac_objext \ |
28665 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28666 | LIBS=$ac_check_lib_save_LIBS |
28667 | fi | |
28668 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28669 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28670 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28671 | WCHAR_OK=1 | |
28672 | fi | |
28673 | ||
28674 | else | |
28675 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28676 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28677 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28679 | else | |
28680 | ac_check_lib_save_LIBS=$LIBS | |
28681 | LIBS="-lw $LIBS" | |
28682 | cat >conftest.$ac_ext <<_ACEOF | |
28683 | /* confdefs.h. */ | |
28684 | _ACEOF | |
28685 | cat confdefs.h >>conftest.$ac_ext | |
28686 | cat >>conftest.$ac_ext <<_ACEOF | |
28687 | /* end confdefs.h. */ | |
28688 | ||
28689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28690 | #ifdef __cplusplus | |
28691 | extern "C" | |
28692 | #endif | |
28693 | /* We use char because int might match the return type of a gcc2 | |
28694 | builtin and then its argument prototype would still apply. */ | |
28695 | char wcslen (); | |
28696 | int | |
28697 | main () | |
28698 | { | |
28699 | wcslen (); | |
28700 | ; | |
28701 | return 0; | |
28702 | } | |
28703 | _ACEOF | |
28704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28706 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28707 | ac_status=$? |
ac1cb8d3 VS |
28708 | grep -v '^ *+' conftest.er1 >conftest.err |
28709 | rm -f conftest.er1 | |
28710 | cat conftest.err >&5 | |
a848cd7e SC |
28711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28712 | (exit $ac_status); } && | |
ea7db9ff DE |
28713 | { ac_try='test -z "$ac_c_werror_flag" |
28714 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28716 | (eval $ac_try) 2>&5 | |
28717 | ac_status=$? | |
28718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28719 | (exit $ac_status); }; } && | |
28720 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28722 | (eval $ac_try) 2>&5 | |
28723 | ac_status=$? | |
28724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28725 | (exit $ac_status); }; }; then | |
28726 | ac_cv_lib_w_wcslen=yes | |
28727 | else | |
28728 | echo "$as_me: failed program was:" >&5 | |
28729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28730 | ||
28731 | ac_cv_lib_w_wcslen=no | |
28732 | fi | |
ac1cb8d3 VS |
28733 | rm -f conftest.err conftest.$ac_objext \ |
28734 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28735 | LIBS=$ac_check_lib_save_LIBS |
28736 | fi | |
28737 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28738 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28739 | if test $ac_cv_lib_w_wcslen = yes; then | |
28740 | ||
28741 | WCHAR_LINK=" -lw" | |
28742 | WCSLEN_FOUND=1 | |
28743 | ||
28744 | fi | |
28745 | ||
28746 | fi | |
28747 | fi | |
28748 | ||
28749 | if test "$WCSLEN_FOUND" = 1; then | |
28750 | cat >>confdefs.h <<\_ACEOF | |
28751 | #define HAVE_WCSLEN 1 | |
28752 | _ACEOF | |
28753 | ||
28754 | fi | |
28755 | ||
473276a9 VS |
28756 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
28757 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
28758 | fi | |
28759 | ||
a848cd7e SC |
28760 | |
28761 | for ac_func in wcsrtombs | |
28762 | do | |
28763 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28764 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28765 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28766 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28768 | else | |
28769 | cat >conftest.$ac_ext <<_ACEOF | |
28770 | /* confdefs.h. */ | |
28771 | _ACEOF | |
28772 | cat confdefs.h >>conftest.$ac_ext | |
28773 | cat >>conftest.$ac_ext <<_ACEOF | |
28774 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28775 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28776 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28777 | #define $ac_func innocuous_$ac_func | |
28778 | ||
a848cd7e SC |
28779 | /* System header to define __stub macros and hopefully few prototypes, |
28780 | which can conflict with char $ac_func (); below. | |
28781 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28782 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28783 | |
a848cd7e SC |
28784 | #ifdef __STDC__ |
28785 | # include <limits.h> | |
28786 | #else | |
28787 | # include <assert.h> | |
28788 | #endif | |
ac1cb8d3 VS |
28789 | |
28790 | #undef $ac_func | |
28791 | ||
a848cd7e SC |
28792 | /* Override any gcc2 internal prototype to avoid an error. */ |
28793 | #ifdef __cplusplus | |
28794 | extern "C" | |
28795 | { | |
28796 | #endif | |
28797 | /* We use char because int might match the return type of a gcc2 | |
28798 | builtin and then its argument prototype would still apply. */ | |
28799 | char $ac_func (); | |
28800 | /* The GNU C library defines this for functions which it implements | |
28801 | to always fail with ENOSYS. Some functions are actually named | |
28802 | something starting with __ and the normal name is an alias. */ | |
28803 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28804 | choke me | |
28805 | #else | |
28806 | char (*f) () = $ac_func; | |
28807 | #endif | |
28808 | #ifdef __cplusplus | |
28809 | } | |
28810 | #endif | |
28811 | ||
28812 | int | |
28813 | main () | |
28814 | { | |
28815 | return f != $ac_func; | |
28816 | ; | |
28817 | return 0; | |
28818 | } | |
28819 | _ACEOF | |
28820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28822 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28823 | ac_status=$? |
ac1cb8d3 VS |
28824 | grep -v '^ *+' conftest.er1 >conftest.err |
28825 | rm -f conftest.er1 | |
28826 | cat conftest.err >&5 | |
a848cd7e SC |
28827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28828 | (exit $ac_status); } && | |
ea7db9ff DE |
28829 | { ac_try='test -z "$ac_c_werror_flag" |
28830 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28832 | (eval $ac_try) 2>&5 | |
28833 | ac_status=$? | |
28834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28835 | (exit $ac_status); }; } && | |
28836 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28838 | (eval $ac_try) 2>&5 | |
28839 | ac_status=$? | |
28840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28841 | (exit $ac_status); }; }; then | |
28842 | eval "$as_ac_var=yes" | |
28843 | else | |
28844 | echo "$as_me: failed program was:" >&5 | |
28845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28846 | ||
28847 | eval "$as_ac_var=no" | |
28848 | fi | |
ac1cb8d3 VS |
28849 | rm -f conftest.err conftest.$ac_objext \ |
28850 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28851 | fi |
28852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28853 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28854 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28855 | cat >>confdefs.h <<_ACEOF | |
28856 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28857 | _ACEOF | |
28858 | ||
28859 | fi | |
28860 | done | |
28861 | ||
28862 | else | |
28863 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
28864 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
28865 | fi | |
28866 | ||
28867 | ||
28868 | ||
28869 | ac_ext=cc | |
28870 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28871 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28872 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28873 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28874 | ||
28875 | ||
28876 | ||
28877 | for ac_func in vsnprintf | |
28878 | do | |
28879 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28880 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28882 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28884 | else | |
28885 | cat >conftest.$ac_ext <<_ACEOF | |
28886 | /* confdefs.h. */ | |
28887 | _ACEOF | |
28888 | cat confdefs.h >>conftest.$ac_ext | |
28889 | cat >>conftest.$ac_ext <<_ACEOF | |
28890 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28891 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28893 | #define $ac_func innocuous_$ac_func | |
28894 | ||
a848cd7e SC |
28895 | /* System header to define __stub macros and hopefully few prototypes, |
28896 | which can conflict with char $ac_func (); below. | |
28897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28898 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28899 | |
a848cd7e SC |
28900 | #ifdef __STDC__ |
28901 | # include <limits.h> | |
28902 | #else | |
28903 | # include <assert.h> | |
28904 | #endif | |
ac1cb8d3 VS |
28905 | |
28906 | #undef $ac_func | |
28907 | ||
a848cd7e SC |
28908 | /* Override any gcc2 internal prototype to avoid an error. */ |
28909 | #ifdef __cplusplus | |
28910 | extern "C" | |
28911 | { | |
28912 | #endif | |
28913 | /* We use char because int might match the return type of a gcc2 | |
28914 | builtin and then its argument prototype would still apply. */ | |
28915 | char $ac_func (); | |
28916 | /* The GNU C library defines this for functions which it implements | |
28917 | to always fail with ENOSYS. Some functions are actually named | |
28918 | something starting with __ and the normal name is an alias. */ | |
28919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28920 | choke me | |
28921 | #else | |
28922 | char (*f) () = $ac_func; | |
28923 | #endif | |
28924 | #ifdef __cplusplus | |
28925 | } | |
28926 | #endif | |
28927 | ||
28928 | int | |
28929 | main () | |
28930 | { | |
28931 | return f != $ac_func; | |
28932 | ; | |
28933 | return 0; | |
28934 | } | |
28935 | _ACEOF | |
28936 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28938 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28939 | ac_status=$? |
ac1cb8d3 VS |
28940 | grep -v '^ *+' conftest.er1 >conftest.err |
28941 | rm -f conftest.er1 | |
28942 | cat conftest.err >&5 | |
a848cd7e SC |
28943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28944 | (exit $ac_status); } && | |
ea7db9ff DE |
28945 | { ac_try='test -z "$ac_cxx_werror_flag" |
28946 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28948 | (eval $ac_try) 2>&5 | |
28949 | ac_status=$? | |
28950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28951 | (exit $ac_status); }; } && | |
28952 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28954 | (eval $ac_try) 2>&5 | |
28955 | ac_status=$? | |
28956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28957 | (exit $ac_status); }; }; then | |
28958 | eval "$as_ac_var=yes" | |
28959 | else | |
28960 | echo "$as_me: failed program was:" >&5 | |
28961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28962 | ||
28963 | eval "$as_ac_var=no" | |
28964 | fi | |
ac1cb8d3 VS |
28965 | rm -f conftest.err conftest.$ac_objext \ |
28966 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28967 | fi |
28968 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28969 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28970 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28971 | cat >>confdefs.h <<_ACEOF | |
28972 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28973 | _ACEOF | |
28974 | ||
28975 | fi | |
28976 | done | |
28977 | ||
28978 | ||
28979 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
28980 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
28981 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
28982 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
28983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28984 | else | |
28985 | ||
28986 | cat >conftest.$ac_ext <<_ACEOF | |
28987 | /* confdefs.h. */ | |
28988 | _ACEOF | |
28989 | cat confdefs.h >>conftest.$ac_ext | |
28990 | cat >>conftest.$ac_ext <<_ACEOF | |
28991 | /* end confdefs.h. */ | |
28992 | ||
28993 | #include <stdio.h> | |
28994 | #include <stdarg.h> | |
28995 | ||
28996 | int | |
28997 | main () | |
28998 | { | |
28999 | ||
29000 | char *buf; | |
29001 | va_list ap; | |
29002 | vsnprintf(buf, 10u, "%s", ap); | |
29003 | ||
29004 | ; | |
29005 | return 0; | |
29006 | } | |
29007 | _ACEOF | |
29008 | rm -f conftest.$ac_objext | |
29009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29010 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29011 | ac_status=$? |
ac1cb8d3 VS |
29012 | grep -v '^ *+' conftest.er1 >conftest.err |
29013 | rm -f conftest.er1 | |
29014 | cat conftest.err >&5 | |
a848cd7e SC |
29015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29016 | (exit $ac_status); } && | |
ea7db9ff DE |
29017 | { ac_try='test -z "$ac_cxx_werror_flag" |
29018 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29020 | (eval $ac_try) 2>&5 | |
29021 | ac_status=$? | |
29022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29023 | (exit $ac_status); }; } && | |
29024 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29026 | (eval $ac_try) 2>&5 | |
29027 | ac_status=$? | |
29028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29029 | (exit $ac_status); }; }; then | |
29030 | wx_cv_func_vsnprintf_decl=yes | |
29031 | else | |
29032 | echo "$as_me: failed program was:" >&5 | |
29033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29034 | ||
29035 | wx_cv_func_vsnprintf_decl=no | |
29036 | ||
29037 | fi | |
ac1cb8d3 | 29038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29039 | |
29040 | ||
29041 | fi | |
29042 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29043 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29044 | ||
29045 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29046 | cat >>confdefs.h <<\_ACEOF | |
29047 | #define HAVE_VSNPRINTF_DECL 1 | |
29048 | _ACEOF | |
29049 | ||
29050 | fi | |
29051 | fi | |
29052 | ||
29053 | if test "$wxUSE_UNICODE" = yes; then | |
29054 | ||
29055 | ||
29056 | ||
fbe47c7b VS |
29057 | |
29058 | ||
29059 | ||
29060 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29061 | do |
29062 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29063 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29064 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29065 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29067 | else | |
29068 | cat >conftest.$ac_ext <<_ACEOF | |
29069 | /* confdefs.h. */ | |
29070 | _ACEOF | |
29071 | cat confdefs.h >>conftest.$ac_ext | |
29072 | cat >>conftest.$ac_ext <<_ACEOF | |
29073 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29074 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29076 | #define $ac_func innocuous_$ac_func | |
29077 | ||
a848cd7e SC |
29078 | /* System header to define __stub macros and hopefully few prototypes, |
29079 | which can conflict with char $ac_func (); below. | |
29080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29081 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29082 | |
a848cd7e SC |
29083 | #ifdef __STDC__ |
29084 | # include <limits.h> | |
29085 | #else | |
29086 | # include <assert.h> | |
29087 | #endif | |
ac1cb8d3 VS |
29088 | |
29089 | #undef $ac_func | |
29090 | ||
a848cd7e SC |
29091 | /* Override any gcc2 internal prototype to avoid an error. */ |
29092 | #ifdef __cplusplus | |
29093 | extern "C" | |
29094 | { | |
29095 | #endif | |
29096 | /* We use char because int might match the return type of a gcc2 | |
29097 | builtin and then its argument prototype would still apply. */ | |
29098 | char $ac_func (); | |
29099 | /* The GNU C library defines this for functions which it implements | |
29100 | to always fail with ENOSYS. Some functions are actually named | |
29101 | something starting with __ and the normal name is an alias. */ | |
29102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29103 | choke me | |
29104 | #else | |
29105 | char (*f) () = $ac_func; | |
29106 | #endif | |
29107 | #ifdef __cplusplus | |
29108 | } | |
29109 | #endif | |
29110 | ||
29111 | int | |
29112 | main () | |
29113 | { | |
29114 | return f != $ac_func; | |
29115 | ; | |
29116 | return 0; | |
29117 | } | |
29118 | _ACEOF | |
29119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29121 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29122 | ac_status=$? |
ac1cb8d3 VS |
29123 | grep -v '^ *+' conftest.er1 >conftest.err |
29124 | rm -f conftest.er1 | |
29125 | cat conftest.err >&5 | |
a848cd7e SC |
29126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29127 | (exit $ac_status); } && | |
ea7db9ff DE |
29128 | { ac_try='test -z "$ac_cxx_werror_flag" |
29129 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29131 | (eval $ac_try) 2>&5 | |
29132 | ac_status=$? | |
29133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29134 | (exit $ac_status); }; } && | |
29135 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29137 | (eval $ac_try) 2>&5 | |
29138 | ac_status=$? | |
29139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29140 | (exit $ac_status); }; }; then | |
29141 | eval "$as_ac_var=yes" | |
29142 | else | |
29143 | echo "$as_me: failed program was:" >&5 | |
29144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29145 | ||
29146 | eval "$as_ac_var=no" | |
29147 | fi | |
ac1cb8d3 VS |
29148 | rm -f conftest.err conftest.$ac_objext \ |
29149 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29150 | fi |
29151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29152 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29153 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29154 | cat >>confdefs.h <<_ACEOF | |
29155 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29156 | _ACEOF | |
29157 | ||
29158 | fi | |
29159 | done | |
29160 | ||
29161 | ||
29162 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29163 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29164 | cat >conftest.$ac_ext <<_ACEOF | |
29165 | /* confdefs.h. */ | |
29166 | _ACEOF | |
29167 | cat confdefs.h >>conftest.$ac_ext | |
29168 | cat >>conftest.$ac_ext <<_ACEOF | |
29169 | /* end confdefs.h. */ | |
29170 | #include <wchar.h> | |
29171 | int | |
29172 | main () | |
29173 | { | |
29174 | &_vsnwprintf; | |
29175 | ; | |
29176 | return 0; | |
29177 | } | |
29178 | _ACEOF | |
29179 | rm -f conftest.$ac_objext | |
29180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29181 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29182 | ac_status=$? |
ac1cb8d3 VS |
29183 | grep -v '^ *+' conftest.er1 >conftest.err |
29184 | rm -f conftest.er1 | |
29185 | cat conftest.err >&5 | |
a848cd7e SC |
29186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29187 | (exit $ac_status); } && | |
ea7db9ff DE |
29188 | { ac_try='test -z "$ac_cxx_werror_flag" |
29189 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29191 | (eval $ac_try) 2>&5 | |
29192 | ac_status=$? | |
29193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29194 | (exit $ac_status); }; } && | |
29195 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29197 | (eval $ac_try) 2>&5 | |
29198 | ac_status=$? | |
29199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29200 | (exit $ac_status); }; }; then | |
29201 | echo "$as_me:$LINENO: result: yes" >&5 | |
29202 | echo "${ECHO_T}yes" >&6 | |
29203 | cat >>confdefs.h <<\_ACEOF | |
29204 | #define HAVE__VSNWPRINTF 1 | |
29205 | _ACEOF | |
29206 | ||
29207 | else | |
29208 | echo "$as_me: failed program was:" >&5 | |
29209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29210 | ||
29211 | echo "$as_me:$LINENO: result: no" >&5 | |
29212 | echo "${ECHO_T}no" >&6 | |
29213 | fi | |
ac1cb8d3 | 29214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29215 | fi |
29216 | ||
29217 | ac_ext=c | |
29218 | ac_cpp='$CPP $CPPFLAGS' | |
29219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29220 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29221 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29222 | ||
29223 | ||
29224 | ||
29225 | ||
29226 | if test "$TOOLKIT" != "MSW"; then | |
29227 | ||
29228 | ||
29229 | ||
29230 | ||
29231 | ac_ext=cc | |
29232 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29233 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29234 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29235 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29236 | ||
29237 | ||
29238 | ||
29239 | ||
29240 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29241 | if test "${with_libiconv_prefix+set}" = set; then | |
29242 | withval="$with_libiconv_prefix" | |
29243 | ||
29244 | for dir in `echo "$withval" | tr : ' '`; do | |
29245 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29246 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29247 | done | |
29248 | ||
29249 | fi; | |
29250 | ||
29251 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29252 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29253 | if test "${am_cv_func_iconv+set}" = set; then | |
29254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29255 | else | |
29256 | ||
29257 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29258 | am_cv_lib_iconv=no | |
29259 | cat >conftest.$ac_ext <<_ACEOF | |
29260 | /* confdefs.h. */ | |
29261 | _ACEOF | |
29262 | cat confdefs.h >>conftest.$ac_ext | |
29263 | cat >>conftest.$ac_ext <<_ACEOF | |
29264 | /* end confdefs.h. */ | |
29265 | #include <stdlib.h> | |
29266 | #include <iconv.h> | |
29267 | int | |
29268 | main () | |
29269 | { | |
29270 | iconv_t cd = iconv_open("",""); | |
29271 | iconv(cd,NULL,NULL,NULL,NULL); | |
29272 | iconv_close(cd); | |
29273 | ; | |
29274 | return 0; | |
29275 | } | |
29276 | _ACEOF | |
29277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29279 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29280 | ac_status=$? |
ac1cb8d3 VS |
29281 | grep -v '^ *+' conftest.er1 >conftest.err |
29282 | rm -f conftest.er1 | |
29283 | cat conftest.err >&5 | |
a848cd7e SC |
29284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29285 | (exit $ac_status); } && | |
ea7db9ff DE |
29286 | { ac_try='test -z "$ac_cxx_werror_flag" |
29287 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29289 | (eval $ac_try) 2>&5 | |
29290 | ac_status=$? | |
29291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29292 | (exit $ac_status); }; } && | |
29293 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29295 | (eval $ac_try) 2>&5 | |
29296 | ac_status=$? | |
29297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29298 | (exit $ac_status); }; }; then | |
29299 | am_cv_func_iconv=yes | |
29300 | else | |
29301 | echo "$as_me: failed program was:" >&5 | |
29302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29303 | ||
29304 | fi | |
ac1cb8d3 VS |
29305 | rm -f conftest.err conftest.$ac_objext \ |
29306 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29307 | if test "$am_cv_func_iconv" != yes; then |
29308 | am_save_LIBS="$LIBS" | |
29309 | LIBS="$LIBS -liconv" | |
29310 | cat >conftest.$ac_ext <<_ACEOF | |
29311 | /* confdefs.h. */ | |
29312 | _ACEOF | |
29313 | cat confdefs.h >>conftest.$ac_ext | |
29314 | cat >>conftest.$ac_ext <<_ACEOF | |
29315 | /* end confdefs.h. */ | |
29316 | #include <stdlib.h> | |
29317 | #include <iconv.h> | |
29318 | int | |
29319 | main () | |
29320 | { | |
29321 | iconv_t cd = iconv_open("",""); | |
29322 | iconv(cd,NULL,NULL,NULL,NULL); | |
29323 | iconv_close(cd); | |
29324 | ; | |
29325 | return 0; | |
29326 | } | |
29327 | _ACEOF | |
29328 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29330 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29331 | ac_status=$? |
ac1cb8d3 VS |
29332 | grep -v '^ *+' conftest.er1 >conftest.err |
29333 | rm -f conftest.er1 | |
29334 | cat conftest.err >&5 | |
a848cd7e SC |
29335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29336 | (exit $ac_status); } && | |
ea7db9ff DE |
29337 | { ac_try='test -z "$ac_cxx_werror_flag" |
29338 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29340 | (eval $ac_try) 2>&5 | |
29341 | ac_status=$? | |
29342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29343 | (exit $ac_status); }; } && | |
29344 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29346 | (eval $ac_try) 2>&5 | |
29347 | ac_status=$? | |
29348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29349 | (exit $ac_status); }; }; then | |
29350 | am_cv_lib_iconv=yes | |
29351 | am_cv_func_iconv=yes | |
29352 | else | |
29353 | echo "$as_me: failed program was:" >&5 | |
29354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29355 | ||
29356 | fi | |
ac1cb8d3 VS |
29357 | rm -f conftest.err conftest.$ac_objext \ |
29358 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29359 | LIBS="$am_save_LIBS" |
29360 | fi | |
29361 | ||
29362 | fi | |
29363 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29364 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29365 | if test "$am_cv_func_iconv" = yes; then | |
29366 | ||
29367 | cat >>confdefs.h <<\_ACEOF | |
29368 | #define HAVE_ICONV 1 | |
29369 | _ACEOF | |
29370 | ||
29371 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29372 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29373 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29375 | else | |
29376 | cat >conftest.$ac_ext <<_ACEOF | |
29377 | /* confdefs.h. */ | |
29378 | _ACEOF | |
29379 | cat confdefs.h >>conftest.$ac_ext | |
29380 | cat >>conftest.$ac_ext <<_ACEOF | |
29381 | /* end confdefs.h. */ | |
29382 | ||
29383 | #include <stdlib.h> | |
29384 | #include <iconv.h> | |
29385 | extern | |
29386 | #ifdef __cplusplus | |
29387 | "C" | |
29388 | #endif | |
29389 | #if defined(__STDC__) || defined(__cplusplus) | |
29390 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29391 | #else | |
29392 | size_t iconv(); | |
29393 | #endif | |
29394 | ||
29395 | int | |
29396 | main () | |
29397 | { | |
29398 | ||
29399 | ; | |
29400 | return 0; | |
29401 | } | |
29402 | _ACEOF | |
29403 | rm -f conftest.$ac_objext | |
29404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29405 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29406 | ac_status=$? |
ac1cb8d3 VS |
29407 | grep -v '^ *+' conftest.er1 >conftest.err |
29408 | rm -f conftest.er1 | |
29409 | cat conftest.err >&5 | |
a848cd7e SC |
29410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29411 | (exit $ac_status); } && | |
ea7db9ff DE |
29412 | { ac_try='test -z "$ac_cxx_werror_flag" |
29413 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29415 | (eval $ac_try) 2>&5 | |
29416 | ac_status=$? | |
29417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29418 | (exit $ac_status); }; } && | |
29419 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29421 | (eval $ac_try) 2>&5 | |
29422 | ac_status=$? | |
29423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29424 | (exit $ac_status); }; }; then | |
29425 | wx_cv_func_iconv_const="no" | |
29426 | else | |
29427 | echo "$as_me: failed program was:" >&5 | |
29428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29429 | ||
29430 | wx_cv_func_iconv_const="yes" | |
29431 | ||
29432 | fi | |
ac1cb8d3 | 29433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29434 | |
29435 | fi | |
29436 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29437 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29438 | ||
29439 | iconv_const= | |
29440 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29441 | iconv_const="const" | |
29442 | fi | |
29443 | ||
29444 | ||
29445 | cat >>confdefs.h <<_ACEOF | |
29446 | #define ICONV_CONST $iconv_const | |
29447 | _ACEOF | |
29448 | ||
29449 | fi | |
29450 | LIBICONV= | |
29451 | if test "$am_cv_lib_iconv" = yes; then | |
29452 | LIBICONV="-liconv" | |
29453 | fi | |
29454 | ||
29455 | ||
29456 | LIBS="$LIBICONV $LIBS" | |
29457 | ac_ext=c | |
29458 | ac_cpp='$CPP $CPPFLAGS' | |
29459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29462 | ||
29463 | ||
29464 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29465 | ||
29466 | for ac_func in sigaction | |
29467 | do | |
29468 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29469 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29470 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29471 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29473 | else | |
29474 | cat >conftest.$ac_ext <<_ACEOF | |
29475 | /* confdefs.h. */ | |
29476 | _ACEOF | |
29477 | cat confdefs.h >>conftest.$ac_ext | |
29478 | cat >>conftest.$ac_ext <<_ACEOF | |
29479 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29480 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29481 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29482 | #define $ac_func innocuous_$ac_func | |
29483 | ||
a848cd7e SC |
29484 | /* System header to define __stub macros and hopefully few prototypes, |
29485 | which can conflict with char $ac_func (); below. | |
29486 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29487 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29488 | |
a848cd7e SC |
29489 | #ifdef __STDC__ |
29490 | # include <limits.h> | |
29491 | #else | |
29492 | # include <assert.h> | |
29493 | #endif | |
ac1cb8d3 VS |
29494 | |
29495 | #undef $ac_func | |
29496 | ||
a848cd7e SC |
29497 | /* Override any gcc2 internal prototype to avoid an error. */ |
29498 | #ifdef __cplusplus | |
29499 | extern "C" | |
29500 | { | |
29501 | #endif | |
29502 | /* We use char because int might match the return type of a gcc2 | |
29503 | builtin and then its argument prototype would still apply. */ | |
29504 | char $ac_func (); | |
29505 | /* The GNU C library defines this for functions which it implements | |
29506 | to always fail with ENOSYS. Some functions are actually named | |
29507 | something starting with __ and the normal name is an alias. */ | |
29508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29509 | choke me | |
29510 | #else | |
29511 | char (*f) () = $ac_func; | |
29512 | #endif | |
29513 | #ifdef __cplusplus | |
29514 | } | |
29515 | #endif | |
29516 | ||
29517 | int | |
29518 | main () | |
29519 | { | |
29520 | return f != $ac_func; | |
29521 | ; | |
29522 | return 0; | |
29523 | } | |
29524 | _ACEOF | |
29525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29527 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29528 | ac_status=$? |
ac1cb8d3 VS |
29529 | grep -v '^ *+' conftest.er1 >conftest.err |
29530 | rm -f conftest.er1 | |
29531 | cat conftest.err >&5 | |
a848cd7e SC |
29532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29533 | (exit $ac_status); } && | |
ea7db9ff DE |
29534 | { ac_try='test -z "$ac_c_werror_flag" |
29535 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29537 | (eval $ac_try) 2>&5 | |
29538 | ac_status=$? | |
29539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29540 | (exit $ac_status); }; } && | |
29541 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29543 | (eval $ac_try) 2>&5 | |
29544 | ac_status=$? | |
29545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29546 | (exit $ac_status); }; }; then | |
29547 | eval "$as_ac_var=yes" | |
29548 | else | |
29549 | echo "$as_me: failed program was:" >&5 | |
29550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29551 | ||
29552 | eval "$as_ac_var=no" | |
29553 | fi | |
ac1cb8d3 VS |
29554 | rm -f conftest.err conftest.$ac_objext \ |
29555 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29556 | fi |
29557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29559 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29560 | cat >>confdefs.h <<_ACEOF | |
29561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29562 | _ACEOF | |
29563 | ||
29564 | fi | |
29565 | done | |
29566 | ||
29567 | ||
29568 | if test "$ac_cv_func_sigaction" = "no"; then | |
29569 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29570 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29571 | wxUSE_ON_FATAL_EXCEPTION=no | |
29572 | fi | |
29573 | ||
29574 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29575 | ||
29576 | ||
29577 | ac_ext=cc | |
29578 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29579 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29580 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29581 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29582 | ||
29583 | ||
29584 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29585 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29586 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29588 | else | |
29589 | ||
29590 | cat >conftest.$ac_ext <<_ACEOF | |
29591 | /* confdefs.h. */ | |
29592 | _ACEOF | |
29593 | cat confdefs.h >>conftest.$ac_ext | |
29594 | cat >>conftest.$ac_ext <<_ACEOF | |
29595 | /* end confdefs.h. */ | |
29596 | #include <signal.h> | |
29597 | int | |
29598 | main () | |
29599 | { | |
29600 | ||
29601 | extern void testSigHandler(int); | |
29602 | ||
29603 | struct sigaction sa; | |
29604 | sa.sa_handler = testSigHandler; | |
29605 | ||
29606 | ; | |
29607 | return 0; | |
29608 | } | |
29609 | _ACEOF | |
29610 | rm -f conftest.$ac_objext | |
29611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29613 | ac_status=$? |
ac1cb8d3 VS |
29614 | grep -v '^ *+' conftest.er1 >conftest.err |
29615 | rm -f conftest.er1 | |
29616 | cat conftest.err >&5 | |
a848cd7e SC |
29617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29618 | (exit $ac_status); } && | |
ea7db9ff DE |
29619 | { ac_try='test -z "$ac_cxx_werror_flag" |
29620 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29622 | (eval $ac_try) 2>&5 | |
29623 | ac_status=$? | |
29624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29625 | (exit $ac_status); }; } && | |
29626 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29628 | (eval $ac_try) 2>&5 | |
29629 | ac_status=$? | |
29630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29631 | (exit $ac_status); }; }; then | |
29632 | ||
29633 | wx_cv_type_sa_handler=int | |
29634 | ||
29635 | else | |
29636 | echo "$as_me: failed program was:" >&5 | |
29637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29638 | ||
29639 | ||
29640 | wx_cv_type_sa_handler=void | |
29641 | ||
29642 | fi | |
ac1cb8d3 | 29643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29644 | |
29645 | fi | |
29646 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29647 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29648 | ||
29649 | ac_ext=c | |
29650 | ac_cpp='$CPP $CPPFLAGS' | |
29651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29654 | ||
29655 | ||
29656 | cat >>confdefs.h <<_ACEOF | |
29657 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29658 | _ACEOF | |
29659 | ||
29660 | fi | |
29661 | fi | |
29662 | ||
29663 | ||
29664 | ||
29665 | for ac_func in mkstemp mktemp | |
29666 | do | |
29667 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29668 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29669 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29670 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29672 | else | |
29673 | cat >conftest.$ac_ext <<_ACEOF | |
29674 | /* confdefs.h. */ | |
29675 | _ACEOF | |
29676 | cat confdefs.h >>conftest.$ac_ext | |
29677 | cat >>conftest.$ac_ext <<_ACEOF | |
29678 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29679 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29680 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29681 | #define $ac_func innocuous_$ac_func | |
29682 | ||
a848cd7e SC |
29683 | /* System header to define __stub macros and hopefully few prototypes, |
29684 | which can conflict with char $ac_func (); below. | |
29685 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29686 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29687 | |
a848cd7e SC |
29688 | #ifdef __STDC__ |
29689 | # include <limits.h> | |
29690 | #else | |
29691 | # include <assert.h> | |
29692 | #endif | |
ac1cb8d3 VS |
29693 | |
29694 | #undef $ac_func | |
29695 | ||
a848cd7e SC |
29696 | /* Override any gcc2 internal prototype to avoid an error. */ |
29697 | #ifdef __cplusplus | |
29698 | extern "C" | |
29699 | { | |
29700 | #endif | |
29701 | /* We use char because int might match the return type of a gcc2 | |
29702 | builtin and then its argument prototype would still apply. */ | |
29703 | char $ac_func (); | |
29704 | /* The GNU C library defines this for functions which it implements | |
29705 | to always fail with ENOSYS. Some functions are actually named | |
29706 | something starting with __ and the normal name is an alias. */ | |
29707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29708 | choke me | |
29709 | #else | |
29710 | char (*f) () = $ac_func; | |
29711 | #endif | |
29712 | #ifdef __cplusplus | |
29713 | } | |
29714 | #endif | |
29715 | ||
29716 | int | |
29717 | main () | |
29718 | { | |
29719 | return f != $ac_func; | |
29720 | ; | |
29721 | return 0; | |
29722 | } | |
29723 | _ACEOF | |
29724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29726 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29727 | ac_status=$? |
ac1cb8d3 VS |
29728 | grep -v '^ *+' conftest.er1 >conftest.err |
29729 | rm -f conftest.er1 | |
29730 | cat conftest.err >&5 | |
a848cd7e SC |
29731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29732 | (exit $ac_status); } && | |
ea7db9ff DE |
29733 | { ac_try='test -z "$ac_c_werror_flag" |
29734 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29736 | (eval $ac_try) 2>&5 | |
29737 | ac_status=$? | |
29738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29739 | (exit $ac_status); }; } && | |
29740 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29742 | (eval $ac_try) 2>&5 | |
29743 | ac_status=$? | |
29744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29745 | (exit $ac_status); }; }; then | |
29746 | eval "$as_ac_var=yes" | |
29747 | else | |
29748 | echo "$as_me: failed program was:" >&5 | |
29749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29750 | ||
29751 | eval "$as_ac_var=no" | |
29752 | fi | |
ac1cb8d3 VS |
29753 | rm -f conftest.err conftest.$ac_objext \ |
29754 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29755 | fi |
29756 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29757 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29758 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29759 | cat >>confdefs.h <<_ACEOF | |
29760 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29761 | _ACEOF | |
29762 | break | |
29763 | fi | |
29764 | done | |
29765 | ||
29766 | ||
29767 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
29768 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29769 | if test "${wx_cv_func_statfs+set}" = set; then | |
29770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29771 | else | |
29772 | cat >conftest.$ac_ext <<_ACEOF | |
29773 | /* confdefs.h. */ | |
29774 | _ACEOF | |
29775 | cat confdefs.h >>conftest.$ac_ext | |
29776 | cat >>conftest.$ac_ext <<_ACEOF | |
29777 | /* end confdefs.h. */ | |
29778 | ||
29779 | #if defined(__BSD__) | |
29780 | #include <sys/param.h> | |
29781 | #include <sys/mount.h> | |
29782 | #else | |
29783 | #include <sys/vfs.h> | |
29784 | #endif | |
29785 | ||
29786 | int | |
29787 | main () | |
29788 | { | |
29789 | ||
29790 | long l; | |
29791 | struct statfs fs; | |
29792 | statfs("/", &fs); | |
29793 | l = fs.f_bsize; | |
29794 | l += fs.f_blocks; | |
29795 | l += fs.f_bavail; | |
29796 | ||
29797 | ; | |
29798 | return 0; | |
29799 | } | |
29800 | _ACEOF | |
29801 | rm -f conftest.$ac_objext | |
29802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29803 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29804 | ac_status=$? |
ac1cb8d3 VS |
29805 | grep -v '^ *+' conftest.er1 >conftest.err |
29806 | rm -f conftest.er1 | |
29807 | cat conftest.err >&5 | |
a848cd7e SC |
29808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29809 | (exit $ac_status); } && | |
ea7db9ff DE |
29810 | { ac_try='test -z "$ac_c_werror_flag" |
29811 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29813 | (eval $ac_try) 2>&5 | |
29814 | ac_status=$? | |
29815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29816 | (exit $ac_status); }; } && | |
29817 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29819 | (eval $ac_try) 2>&5 | |
29820 | ac_status=$? | |
29821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29822 | (exit $ac_status); }; }; then | |
29823 | ||
29824 | wx_cv_func_statfs=yes | |
29825 | ||
29826 | else | |
29827 | echo "$as_me: failed program was:" >&5 | |
29828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29829 | ||
29830 | ||
29831 | wx_cv_func_statfs=no | |
29832 | ||
29833 | ||
29834 | fi | |
ac1cb8d3 | 29835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29836 | |
29837 | fi | |
29838 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29839 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
29840 | ||
29841 | if test "$wx_cv_func_statfs" = "yes"; then | |
29842 | wx_cv_type_statvfs_t="struct statfs" | |
29843 | cat >>confdefs.h <<\_ACEOF | |
29844 | #define HAVE_STATFS 1 | |
29845 | _ACEOF | |
29846 | ||
29847 | else | |
29848 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
29849 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29850 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29852 | else | |
29853 | cat >conftest.$ac_ext <<_ACEOF | |
29854 | /* confdefs.h. */ | |
29855 | _ACEOF | |
29856 | cat confdefs.h >>conftest.$ac_ext | |
29857 | cat >>conftest.$ac_ext <<_ACEOF | |
29858 | /* end confdefs.h. */ | |
29859 | ||
29860 | #include <stddef.h> | |
29861 | #include <sys/statvfs.h> | |
29862 | ||
29863 | int | |
29864 | main () | |
29865 | { | |
29866 | ||
29867 | statvfs("/", NULL); | |
29868 | ||
29869 | ; | |
29870 | return 0; | |
29871 | } | |
29872 | _ACEOF | |
29873 | rm -f conftest.$ac_objext | |
29874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29876 | ac_status=$? |
ac1cb8d3 VS |
29877 | grep -v '^ *+' conftest.er1 >conftest.err |
29878 | rm -f conftest.er1 | |
29879 | cat conftest.err >&5 | |
a848cd7e SC |
29880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29881 | (exit $ac_status); } && | |
ea7db9ff DE |
29882 | { ac_try='test -z "$ac_c_werror_flag" |
29883 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29885 | (eval $ac_try) 2>&5 | |
29886 | ac_status=$? | |
29887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29888 | (exit $ac_status); }; } && | |
29889 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29891 | (eval $ac_try) 2>&5 | |
29892 | ac_status=$? | |
29893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29894 | (exit $ac_status); }; }; then | |
29895 | wx_cv_func_statvfs=yes | |
29896 | else | |
29897 | echo "$as_me: failed program was:" >&5 | |
29898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29899 | ||
29900 | wx_cv_func_statvfs=no | |
29901 | ||
29902 | fi | |
ac1cb8d3 | 29903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29904 | |
29905 | fi | |
29906 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29907 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
29908 | ||
29909 | if test "$wx_cv_func_statvfs" = "yes"; then | |
29910 | ||
29911 | ||
29912 | ac_ext=cc | |
29913 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29914 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29915 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29916 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29917 | ||
29918 | ||
29919 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
29920 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29921 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29923 | else | |
29924 | cat >conftest.$ac_ext <<_ACEOF | |
29925 | /* confdefs.h. */ | |
29926 | _ACEOF | |
29927 | cat confdefs.h >>conftest.$ac_ext | |
29928 | cat >>conftest.$ac_ext <<_ACEOF | |
29929 | /* end confdefs.h. */ | |
29930 | ||
29931 | #include <sys/statvfs.h> | |
29932 | ||
29933 | int | |
29934 | main () | |
29935 | { | |
29936 | ||
29937 | long l; | |
29938 | statvfs_t fs; | |
29939 | statvfs("/", &fs); | |
29940 | l = fs.f_bsize; | |
29941 | l += fs.f_blocks; | |
29942 | l += fs.f_bavail; | |
29943 | ||
29944 | ; | |
29945 | return 0; | |
29946 | } | |
29947 | _ACEOF | |
29948 | rm -f conftest.$ac_objext | |
29949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29950 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29951 | ac_status=$? |
ac1cb8d3 VS |
29952 | grep -v '^ *+' conftest.er1 >conftest.err |
29953 | rm -f conftest.er1 | |
29954 | cat conftest.err >&5 | |
a848cd7e SC |
29955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29956 | (exit $ac_status); } && | |
ea7db9ff DE |
29957 | { ac_try='test -z "$ac_cxx_werror_flag" |
29958 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29960 | (eval $ac_try) 2>&5 | |
29961 | ac_status=$? | |
29962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29963 | (exit $ac_status); }; } && | |
29964 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29966 | (eval $ac_try) 2>&5 | |
29967 | ac_status=$? | |
29968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29969 | (exit $ac_status); }; }; then | |
29970 | wx_cv_type_statvfs_t=statvfs_t | |
29971 | else | |
29972 | echo "$as_me: failed program was:" >&5 | |
29973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29974 | ||
29975 | ||
29976 | cat >conftest.$ac_ext <<_ACEOF | |
29977 | /* confdefs.h. */ | |
29978 | _ACEOF | |
29979 | cat confdefs.h >>conftest.$ac_ext | |
29980 | cat >>conftest.$ac_ext <<_ACEOF | |
29981 | /* end confdefs.h. */ | |
29982 | ||
29983 | #include <sys/statvfs.h> | |
29984 | ||
29985 | int | |
29986 | main () | |
29987 | { | |
29988 | ||
29989 | long l; | |
29990 | struct statvfs fs; | |
29991 | statvfs("/", &fs); | |
29992 | l = fs.f_bsize; | |
29993 | l += fs.f_blocks; | |
29994 | l += fs.f_bavail; | |
29995 | ||
29996 | ; | |
29997 | return 0; | |
29998 | } | |
29999 | _ACEOF | |
30000 | rm -f conftest.$ac_objext | |
30001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30002 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30003 | ac_status=$? |
ac1cb8d3 VS |
30004 | grep -v '^ *+' conftest.er1 >conftest.err |
30005 | rm -f conftest.er1 | |
30006 | cat conftest.err >&5 | |
a848cd7e SC |
30007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30008 | (exit $ac_status); } && | |
ea7db9ff DE |
30009 | { ac_try='test -z "$ac_cxx_werror_flag" |
30010 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30012 | (eval $ac_try) 2>&5 | |
30013 | ac_status=$? | |
30014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30015 | (exit $ac_status); }; } && | |
30016 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30018 | (eval $ac_try) 2>&5 | |
30019 | ac_status=$? | |
30020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30021 | (exit $ac_status); }; }; then | |
30022 | wx_cv_type_statvfs_t="struct statvfs" | |
30023 | else | |
30024 | echo "$as_me: failed program was:" >&5 | |
30025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30026 | ||
30027 | wx_cv_type_statvfs_t="unknown" | |
30028 | ||
30029 | fi | |
ac1cb8d3 | 30030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30031 | |
30032 | ||
30033 | fi | |
ac1cb8d3 | 30034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30035 | |
30036 | fi | |
30037 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30038 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
30039 | ||
30040 | ac_ext=c | |
30041 | ac_cpp='$CPP $CPPFLAGS' | |
30042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30045 | ||
30046 | ||
30047 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30048 | cat >>confdefs.h <<\_ACEOF | |
30049 | #define HAVE_STATVFS 1 | |
30050 | _ACEOF | |
30051 | ||
30052 | fi | |
30053 | else | |
30054 | wx_cv_type_statvfs_t="unknown" | |
30055 | fi | |
30056 | fi | |
30057 | ||
30058 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30059 | cat >>confdefs.h <<_ACEOF | |
30060 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30061 | _ACEOF | |
30062 | ||
30063 | else | |
30064 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30065 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30066 | fi | |
30067 | ||
30068 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30069 | ||
30070 | ||
30071 | for ac_func in fcntl flock | |
30072 | do | |
30073 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30074 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30075 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30076 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30078 | else | |
30079 | cat >conftest.$ac_ext <<_ACEOF | |
30080 | /* confdefs.h. */ | |
30081 | _ACEOF | |
30082 | cat confdefs.h >>conftest.$ac_ext | |
30083 | cat >>conftest.$ac_ext <<_ACEOF | |
30084 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30085 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30086 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30087 | #define $ac_func innocuous_$ac_func | |
30088 | ||
a848cd7e SC |
30089 | /* System header to define __stub macros and hopefully few prototypes, |
30090 | which can conflict with char $ac_func (); below. | |
30091 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30092 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30093 | |
a848cd7e SC |
30094 | #ifdef __STDC__ |
30095 | # include <limits.h> | |
30096 | #else | |
30097 | # include <assert.h> | |
30098 | #endif | |
ac1cb8d3 VS |
30099 | |
30100 | #undef $ac_func | |
30101 | ||
a848cd7e SC |
30102 | /* Override any gcc2 internal prototype to avoid an error. */ |
30103 | #ifdef __cplusplus | |
30104 | extern "C" | |
30105 | { | |
30106 | #endif | |
30107 | /* We use char because int might match the return type of a gcc2 | |
30108 | builtin and then its argument prototype would still apply. */ | |
30109 | char $ac_func (); | |
30110 | /* The GNU C library defines this for functions which it implements | |
30111 | to always fail with ENOSYS. Some functions are actually named | |
30112 | something starting with __ and the normal name is an alias. */ | |
30113 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30114 | choke me | |
30115 | #else | |
30116 | char (*f) () = $ac_func; | |
30117 | #endif | |
30118 | #ifdef __cplusplus | |
30119 | } | |
30120 | #endif | |
30121 | ||
30122 | int | |
30123 | main () | |
30124 | { | |
30125 | return f != $ac_func; | |
30126 | ; | |
30127 | return 0; | |
30128 | } | |
30129 | _ACEOF | |
30130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30132 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30133 | ac_status=$? |
ac1cb8d3 VS |
30134 | grep -v '^ *+' conftest.er1 >conftest.err |
30135 | rm -f conftest.er1 | |
30136 | cat conftest.err >&5 | |
a848cd7e SC |
30137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30138 | (exit $ac_status); } && | |
ea7db9ff DE |
30139 | { ac_try='test -z "$ac_c_werror_flag" |
30140 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30142 | (eval $ac_try) 2>&5 | |
30143 | ac_status=$? | |
30144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30145 | (exit $ac_status); }; } && | |
30146 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30148 | (eval $ac_try) 2>&5 | |
30149 | ac_status=$? | |
30150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30151 | (exit $ac_status); }; }; then | |
30152 | eval "$as_ac_var=yes" | |
30153 | else | |
30154 | echo "$as_me: failed program was:" >&5 | |
30155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30156 | ||
30157 | eval "$as_ac_var=no" | |
30158 | fi | |
ac1cb8d3 VS |
30159 | rm -f conftest.err conftest.$ac_objext \ |
30160 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30161 | fi |
30162 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30163 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30164 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30165 | cat >>confdefs.h <<_ACEOF | |
30166 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30167 | _ACEOF | |
30168 | break | |
30169 | fi | |
30170 | done | |
30171 | ||
30172 | ||
30173 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30174 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30175 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30176 | wxUSE_SNGLINST_CHECKER=no | |
30177 | fi | |
30178 | fi | |
30179 | ||
30180 | ||
30181 | for ac_func in timegm | |
30182 | do | |
30183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30184 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30186 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30188 | else | |
30189 | cat >conftest.$ac_ext <<_ACEOF | |
30190 | /* confdefs.h. */ | |
30191 | _ACEOF | |
30192 | cat confdefs.h >>conftest.$ac_ext | |
30193 | cat >>conftest.$ac_ext <<_ACEOF | |
30194 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30195 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30196 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30197 | #define $ac_func innocuous_$ac_func | |
30198 | ||
a848cd7e SC |
30199 | /* System header to define __stub macros and hopefully few prototypes, |
30200 | which can conflict with char $ac_func (); below. | |
30201 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30202 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30203 | |
a848cd7e SC |
30204 | #ifdef __STDC__ |
30205 | # include <limits.h> | |
30206 | #else | |
30207 | # include <assert.h> | |
30208 | #endif | |
ac1cb8d3 VS |
30209 | |
30210 | #undef $ac_func | |
30211 | ||
a848cd7e SC |
30212 | /* Override any gcc2 internal prototype to avoid an error. */ |
30213 | #ifdef __cplusplus | |
30214 | extern "C" | |
30215 | { | |
30216 | #endif | |
30217 | /* We use char because int might match the return type of a gcc2 | |
30218 | builtin and then its argument prototype would still apply. */ | |
30219 | char $ac_func (); | |
30220 | /* The GNU C library defines this for functions which it implements | |
30221 | to always fail with ENOSYS. Some functions are actually named | |
30222 | something starting with __ and the normal name is an alias. */ | |
30223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30224 | choke me | |
30225 | #else | |
30226 | char (*f) () = $ac_func; | |
30227 | #endif | |
30228 | #ifdef __cplusplus | |
30229 | } | |
30230 | #endif | |
30231 | ||
30232 | int | |
30233 | main () | |
30234 | { | |
30235 | return f != $ac_func; | |
30236 | ; | |
30237 | return 0; | |
30238 | } | |
30239 | _ACEOF | |
30240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30242 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30243 | ac_status=$? |
ac1cb8d3 VS |
30244 | grep -v '^ *+' conftest.er1 >conftest.err |
30245 | rm -f conftest.er1 | |
30246 | cat conftest.err >&5 | |
a848cd7e SC |
30247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30248 | (exit $ac_status); } && | |
ea7db9ff DE |
30249 | { ac_try='test -z "$ac_c_werror_flag" |
30250 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30252 | (eval $ac_try) 2>&5 | |
30253 | ac_status=$? | |
30254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30255 | (exit $ac_status); }; } && | |
30256 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30258 | (eval $ac_try) 2>&5 | |
30259 | ac_status=$? | |
30260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30261 | (exit $ac_status); }; }; then | |
30262 | eval "$as_ac_var=yes" | |
30263 | else | |
30264 | echo "$as_me: failed program was:" >&5 | |
30265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30266 | ||
30267 | eval "$as_ac_var=no" | |
30268 | fi | |
ac1cb8d3 VS |
30269 | rm -f conftest.err conftest.$ac_objext \ |
30270 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30271 | fi |
30272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30273 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30274 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30275 | cat >>confdefs.h <<_ACEOF | |
30276 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30277 | _ACEOF | |
30278 | ||
30279 | fi | |
30280 | done | |
30281 | ||
30282 | ||
30283 | ||
30284 | ||
30285 | for ac_func in putenv setenv | |
30286 | do | |
30287 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30288 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30289 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30290 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30292 | else | |
30293 | cat >conftest.$ac_ext <<_ACEOF | |
30294 | /* confdefs.h. */ | |
30295 | _ACEOF | |
30296 | cat confdefs.h >>conftest.$ac_ext | |
30297 | cat >>conftest.$ac_ext <<_ACEOF | |
30298 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30299 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30301 | #define $ac_func innocuous_$ac_func | |
30302 | ||
a848cd7e SC |
30303 | /* System header to define __stub macros and hopefully few prototypes, |
30304 | which can conflict with char $ac_func (); below. | |
30305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30306 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30307 | |
a848cd7e SC |
30308 | #ifdef __STDC__ |
30309 | # include <limits.h> | |
30310 | #else | |
30311 | # include <assert.h> | |
30312 | #endif | |
ac1cb8d3 VS |
30313 | |
30314 | #undef $ac_func | |
30315 | ||
a848cd7e SC |
30316 | /* Override any gcc2 internal prototype to avoid an error. */ |
30317 | #ifdef __cplusplus | |
30318 | extern "C" | |
30319 | { | |
30320 | #endif | |
30321 | /* We use char because int might match the return type of a gcc2 | |
30322 | builtin and then its argument prototype would still apply. */ | |
30323 | char $ac_func (); | |
30324 | /* The GNU C library defines this for functions which it implements | |
30325 | to always fail with ENOSYS. Some functions are actually named | |
30326 | something starting with __ and the normal name is an alias. */ | |
30327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30328 | choke me | |
30329 | #else | |
30330 | char (*f) () = $ac_func; | |
30331 | #endif | |
30332 | #ifdef __cplusplus | |
30333 | } | |
30334 | #endif | |
30335 | ||
30336 | int | |
30337 | main () | |
30338 | { | |
30339 | return f != $ac_func; | |
30340 | ; | |
30341 | return 0; | |
30342 | } | |
30343 | _ACEOF | |
30344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30346 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30347 | ac_status=$? |
ac1cb8d3 VS |
30348 | grep -v '^ *+' conftest.er1 >conftest.err |
30349 | rm -f conftest.er1 | |
30350 | cat conftest.err >&5 | |
a848cd7e SC |
30351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30352 | (exit $ac_status); } && | |
ea7db9ff DE |
30353 | { ac_try='test -z "$ac_c_werror_flag" |
30354 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30356 | (eval $ac_try) 2>&5 | |
30357 | ac_status=$? | |
30358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30359 | (exit $ac_status); }; } && | |
30360 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30362 | (eval $ac_try) 2>&5 | |
30363 | ac_status=$? | |
30364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30365 | (exit $ac_status); }; }; then | |
30366 | eval "$as_ac_var=yes" | |
30367 | else | |
30368 | echo "$as_me: failed program was:" >&5 | |
30369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30370 | ||
30371 | eval "$as_ac_var=no" | |
30372 | fi | |
ac1cb8d3 VS |
30373 | rm -f conftest.err conftest.$ac_objext \ |
30374 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30375 | fi |
30376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30377 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30378 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30379 | cat >>confdefs.h <<_ACEOF | |
30380 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30381 | _ACEOF | |
30382 | break | |
30383 | fi | |
30384 | done | |
30385 | ||
30386 | ||
30387 | HAVE_SOME_SLEEP_FUNC=0 | |
30388 | if test "$USE_BEOS" = 1; then | |
30389 | cat >>confdefs.h <<\_ACEOF | |
30390 | #define HAVE_SLEEP 1 | |
30391 | _ACEOF | |
30392 | ||
30393 | HAVE_SOME_SLEEP_FUNC=1 | |
30394 | fi | |
30395 | ||
30396 | if test "$USE_DARWIN" = 1; then | |
30397 | cat >>confdefs.h <<\_ACEOF | |
30398 | #define HAVE_USLEEP 1 | |
30399 | _ACEOF | |
30400 | ||
30401 | HAVE_SOME_SLEEP_FUNC=1 | |
30402 | fi | |
30403 | ||
30404 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30405 | POSIX4_LINK= | |
30406 | ||
30407 | for ac_func in nanosleep | |
30408 | do | |
30409 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30410 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30411 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30412 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30414 | else | |
30415 | cat >conftest.$ac_ext <<_ACEOF | |
30416 | /* confdefs.h. */ | |
30417 | _ACEOF | |
30418 | cat confdefs.h >>conftest.$ac_ext | |
30419 | cat >>conftest.$ac_ext <<_ACEOF | |
30420 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30421 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30422 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30423 | #define $ac_func innocuous_$ac_func | |
30424 | ||
a848cd7e SC |
30425 | /* System header to define __stub macros and hopefully few prototypes, |
30426 | which can conflict with char $ac_func (); below. | |
30427 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30428 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30429 | |
a848cd7e SC |
30430 | #ifdef __STDC__ |
30431 | # include <limits.h> | |
30432 | #else | |
30433 | # include <assert.h> | |
30434 | #endif | |
ac1cb8d3 VS |
30435 | |
30436 | #undef $ac_func | |
30437 | ||
a848cd7e SC |
30438 | /* Override any gcc2 internal prototype to avoid an error. */ |
30439 | #ifdef __cplusplus | |
30440 | extern "C" | |
30441 | { | |
30442 | #endif | |
30443 | /* We use char because int might match the return type of a gcc2 | |
30444 | builtin and then its argument prototype would still apply. */ | |
30445 | char $ac_func (); | |
30446 | /* The GNU C library defines this for functions which it implements | |
30447 | to always fail with ENOSYS. Some functions are actually named | |
30448 | something starting with __ and the normal name is an alias. */ | |
30449 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30450 | choke me | |
30451 | #else | |
30452 | char (*f) () = $ac_func; | |
30453 | #endif | |
30454 | #ifdef __cplusplus | |
30455 | } | |
30456 | #endif | |
30457 | ||
30458 | int | |
30459 | main () | |
30460 | { | |
30461 | return f != $ac_func; | |
30462 | ; | |
30463 | return 0; | |
30464 | } | |
30465 | _ACEOF | |
30466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30468 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30469 | ac_status=$? |
ac1cb8d3 VS |
30470 | grep -v '^ *+' conftest.er1 >conftest.err |
30471 | rm -f conftest.er1 | |
30472 | cat conftest.err >&5 | |
a848cd7e SC |
30473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30474 | (exit $ac_status); } && | |
ea7db9ff DE |
30475 | { ac_try='test -z "$ac_c_werror_flag" |
30476 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30478 | (eval $ac_try) 2>&5 | |
30479 | ac_status=$? | |
30480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30481 | (exit $ac_status); }; } && | |
30482 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30484 | (eval $ac_try) 2>&5 | |
30485 | ac_status=$? | |
30486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30487 | (exit $ac_status); }; }; then | |
30488 | eval "$as_ac_var=yes" | |
30489 | else | |
30490 | echo "$as_me: failed program was:" >&5 | |
30491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30492 | ||
30493 | eval "$as_ac_var=no" | |
30494 | fi | |
ac1cb8d3 VS |
30495 | rm -f conftest.err conftest.$ac_objext \ |
30496 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30497 | fi |
30498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30499 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30500 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30501 | cat >>confdefs.h <<_ACEOF | |
30502 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30503 | _ACEOF | |
30504 | cat >>confdefs.h <<\_ACEOF | |
30505 | #define HAVE_NANOSLEEP 1 | |
30506 | _ACEOF | |
30507 | ||
30508 | else | |
30509 | ||
30510 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30511 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30512 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30514 | else | |
30515 | ac_check_lib_save_LIBS=$LIBS | |
30516 | LIBS="-lposix4 $LIBS" | |
30517 | cat >conftest.$ac_ext <<_ACEOF | |
30518 | /* confdefs.h. */ | |
30519 | _ACEOF | |
30520 | cat confdefs.h >>conftest.$ac_ext | |
30521 | cat >>conftest.$ac_ext <<_ACEOF | |
30522 | /* end confdefs.h. */ | |
30523 | ||
30524 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30525 | #ifdef __cplusplus | |
30526 | extern "C" | |
30527 | #endif | |
30528 | /* We use char because int might match the return type of a gcc2 | |
30529 | builtin and then its argument prototype would still apply. */ | |
30530 | char nanosleep (); | |
30531 | int | |
30532 | main () | |
30533 | { | |
30534 | nanosleep (); | |
30535 | ; | |
30536 | return 0; | |
30537 | } | |
30538 | _ACEOF | |
30539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30541 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30542 | ac_status=$? |
ac1cb8d3 VS |
30543 | grep -v '^ *+' conftest.er1 >conftest.err |
30544 | rm -f conftest.er1 | |
30545 | cat conftest.err >&5 | |
a848cd7e SC |
30546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30547 | (exit $ac_status); } && | |
ea7db9ff DE |
30548 | { ac_try='test -z "$ac_c_werror_flag" |
30549 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30551 | (eval $ac_try) 2>&5 | |
30552 | ac_status=$? | |
30553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30554 | (exit $ac_status); }; } && | |
30555 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30557 | (eval $ac_try) 2>&5 | |
30558 | ac_status=$? | |
30559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30560 | (exit $ac_status); }; }; then | |
30561 | ac_cv_lib_posix4_nanosleep=yes | |
30562 | else | |
30563 | echo "$as_me: failed program was:" >&5 | |
30564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30565 | ||
30566 | ac_cv_lib_posix4_nanosleep=no | |
30567 | fi | |
ac1cb8d3 VS |
30568 | rm -f conftest.err conftest.$ac_objext \ |
30569 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30570 | LIBS=$ac_check_lib_save_LIBS |
30571 | fi | |
30572 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30573 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30574 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30575 | ||
30576 | cat >>confdefs.h <<\_ACEOF | |
30577 | #define HAVE_NANOSLEEP 1 | |
30578 | _ACEOF | |
30579 | ||
30580 | POSIX4_LINK=" -lposix4" | |
30581 | ||
30582 | else | |
30583 | ||
30584 | ||
30585 | for ac_func in usleep | |
30586 | do | |
30587 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30588 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30589 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30590 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30592 | else | |
30593 | cat >conftest.$ac_ext <<_ACEOF | |
30594 | /* confdefs.h. */ | |
30595 | _ACEOF | |
30596 | cat confdefs.h >>conftest.$ac_ext | |
30597 | cat >>conftest.$ac_ext <<_ACEOF | |
30598 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30599 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30601 | #define $ac_func innocuous_$ac_func | |
30602 | ||
a848cd7e SC |
30603 | /* System header to define __stub macros and hopefully few prototypes, |
30604 | which can conflict with char $ac_func (); below. | |
30605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30606 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30607 | |
a848cd7e SC |
30608 | #ifdef __STDC__ |
30609 | # include <limits.h> | |
30610 | #else | |
30611 | # include <assert.h> | |
30612 | #endif | |
ac1cb8d3 VS |
30613 | |
30614 | #undef $ac_func | |
30615 | ||
a848cd7e SC |
30616 | /* Override any gcc2 internal prototype to avoid an error. */ |
30617 | #ifdef __cplusplus | |
30618 | extern "C" | |
30619 | { | |
30620 | #endif | |
30621 | /* We use char because int might match the return type of a gcc2 | |
30622 | builtin and then its argument prototype would still apply. */ | |
30623 | char $ac_func (); | |
30624 | /* The GNU C library defines this for functions which it implements | |
30625 | to always fail with ENOSYS. Some functions are actually named | |
30626 | something starting with __ and the normal name is an alias. */ | |
30627 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30628 | choke me | |
30629 | #else | |
30630 | char (*f) () = $ac_func; | |
30631 | #endif | |
30632 | #ifdef __cplusplus | |
30633 | } | |
30634 | #endif | |
30635 | ||
30636 | int | |
30637 | main () | |
30638 | { | |
30639 | return f != $ac_func; | |
30640 | ; | |
30641 | return 0; | |
30642 | } | |
30643 | _ACEOF | |
30644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30646 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30647 | ac_status=$? |
ac1cb8d3 VS |
30648 | grep -v '^ *+' conftest.er1 >conftest.err |
30649 | rm -f conftest.er1 | |
30650 | cat conftest.err >&5 | |
a848cd7e SC |
30651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30652 | (exit $ac_status); } && | |
ea7db9ff DE |
30653 | { ac_try='test -z "$ac_c_werror_flag" |
30654 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30656 | (eval $ac_try) 2>&5 | |
30657 | ac_status=$? | |
30658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30659 | (exit $ac_status); }; } && | |
30660 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30662 | (eval $ac_try) 2>&5 | |
30663 | ac_status=$? | |
30664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30665 | (exit $ac_status); }; }; then | |
30666 | eval "$as_ac_var=yes" | |
30667 | else | |
30668 | echo "$as_me: failed program was:" >&5 | |
30669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30670 | ||
30671 | eval "$as_ac_var=no" | |
30672 | fi | |
ac1cb8d3 VS |
30673 | rm -f conftest.err conftest.$ac_objext \ |
30674 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30675 | fi |
30676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30677 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30678 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30679 | cat >>confdefs.h <<_ACEOF | |
30680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30681 | _ACEOF | |
30682 | cat >>confdefs.h <<\_ACEOF | |
30683 | #define HAVE_USLEEP 1 | |
30684 | _ACEOF | |
30685 | ||
30686 | else | |
30687 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30688 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30689 | ||
30690 | fi | |
30691 | done | |
30692 | ||
30693 | ||
30694 | ||
30695 | fi | |
30696 | ||
30697 | ||
30698 | ||
30699 | fi | |
30700 | done | |
30701 | ||
30702 | fi | |
30703 | ||
30704 | ||
30705 | ||
30706 | for ac_func in uname gethostname | |
30707 | do | |
30708 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30709 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30710 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30711 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30713 | else | |
30714 | cat >conftest.$ac_ext <<_ACEOF | |
30715 | /* confdefs.h. */ | |
30716 | _ACEOF | |
30717 | cat confdefs.h >>conftest.$ac_ext | |
30718 | cat >>conftest.$ac_ext <<_ACEOF | |
30719 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30720 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30722 | #define $ac_func innocuous_$ac_func | |
30723 | ||
a848cd7e SC |
30724 | /* System header to define __stub macros and hopefully few prototypes, |
30725 | which can conflict with char $ac_func (); below. | |
30726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30727 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30728 | |
a848cd7e SC |
30729 | #ifdef __STDC__ |
30730 | # include <limits.h> | |
30731 | #else | |
30732 | # include <assert.h> | |
30733 | #endif | |
ac1cb8d3 VS |
30734 | |
30735 | #undef $ac_func | |
30736 | ||
a848cd7e SC |
30737 | /* Override any gcc2 internal prototype to avoid an error. */ |
30738 | #ifdef __cplusplus | |
30739 | extern "C" | |
30740 | { | |
30741 | #endif | |
30742 | /* We use char because int might match the return type of a gcc2 | |
30743 | builtin and then its argument prototype would still apply. */ | |
30744 | char $ac_func (); | |
30745 | /* The GNU C library defines this for functions which it implements | |
30746 | to always fail with ENOSYS. Some functions are actually named | |
30747 | something starting with __ and the normal name is an alias. */ | |
30748 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30749 | choke me | |
30750 | #else | |
30751 | char (*f) () = $ac_func; | |
30752 | #endif | |
30753 | #ifdef __cplusplus | |
30754 | } | |
30755 | #endif | |
30756 | ||
30757 | int | |
30758 | main () | |
30759 | { | |
30760 | return f != $ac_func; | |
30761 | ; | |
30762 | return 0; | |
30763 | } | |
30764 | _ACEOF | |
30765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30767 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30768 | ac_status=$? |
ac1cb8d3 VS |
30769 | grep -v '^ *+' conftest.er1 >conftest.err |
30770 | rm -f conftest.er1 | |
30771 | cat conftest.err >&5 | |
a848cd7e SC |
30772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30773 | (exit $ac_status); } && | |
ea7db9ff DE |
30774 | { ac_try='test -z "$ac_c_werror_flag" |
30775 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30777 | (eval $ac_try) 2>&5 | |
30778 | ac_status=$? | |
30779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30780 | (exit $ac_status); }; } && | |
30781 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30783 | (eval $ac_try) 2>&5 | |
30784 | ac_status=$? | |
30785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30786 | (exit $ac_status); }; }; then | |
30787 | eval "$as_ac_var=yes" | |
30788 | else | |
30789 | echo "$as_me: failed program was:" >&5 | |
30790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30791 | ||
30792 | eval "$as_ac_var=no" | |
30793 | fi | |
ac1cb8d3 VS |
30794 | rm -f conftest.err conftest.$ac_objext \ |
30795 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30796 | fi |
30797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30798 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30799 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30800 | cat >>confdefs.h <<_ACEOF | |
30801 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30802 | _ACEOF | |
30803 | break | |
30804 | fi | |
30805 | done | |
30806 | ||
30807 | ||
30808 | ||
30809 | ||
30810 | ac_ext=cc | |
30811 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30812 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30813 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30814 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30815 | ||
30816 | ||
30817 | ||
30818 | for ac_func in strtok_r | |
30819 | do | |
30820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30821 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30823 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30825 | else | |
30826 | cat >conftest.$ac_ext <<_ACEOF | |
30827 | /* confdefs.h. */ | |
30828 | _ACEOF | |
30829 | cat confdefs.h >>conftest.$ac_ext | |
30830 | cat >>conftest.$ac_ext <<_ACEOF | |
30831 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30834 | #define $ac_func innocuous_$ac_func | |
30835 | ||
a848cd7e SC |
30836 | /* System header to define __stub macros and hopefully few prototypes, |
30837 | which can conflict with char $ac_func (); below. | |
30838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30839 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30840 | |
a848cd7e SC |
30841 | #ifdef __STDC__ |
30842 | # include <limits.h> | |
30843 | #else | |
30844 | # include <assert.h> | |
30845 | #endif | |
ac1cb8d3 VS |
30846 | |
30847 | #undef $ac_func | |
30848 | ||
a848cd7e SC |
30849 | /* Override any gcc2 internal prototype to avoid an error. */ |
30850 | #ifdef __cplusplus | |
30851 | extern "C" | |
30852 | { | |
30853 | #endif | |
30854 | /* We use char because int might match the return type of a gcc2 | |
30855 | builtin and then its argument prototype would still apply. */ | |
30856 | char $ac_func (); | |
30857 | /* The GNU C library defines this for functions which it implements | |
30858 | to always fail with ENOSYS. Some functions are actually named | |
30859 | something starting with __ and the normal name is an alias. */ | |
30860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30861 | choke me | |
30862 | #else | |
30863 | char (*f) () = $ac_func; | |
30864 | #endif | |
30865 | #ifdef __cplusplus | |
30866 | } | |
30867 | #endif | |
30868 | ||
30869 | int | |
30870 | main () | |
30871 | { | |
30872 | return f != $ac_func; | |
30873 | ; | |
30874 | return 0; | |
30875 | } | |
30876 | _ACEOF | |
30877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30879 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30880 | ac_status=$? |
ac1cb8d3 VS |
30881 | grep -v '^ *+' conftest.er1 >conftest.err |
30882 | rm -f conftest.er1 | |
30883 | cat conftest.err >&5 | |
a848cd7e SC |
30884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30885 | (exit $ac_status); } && | |
ea7db9ff DE |
30886 | { ac_try='test -z "$ac_cxx_werror_flag" |
30887 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30889 | (eval $ac_try) 2>&5 | |
30890 | ac_status=$? | |
30891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30892 | (exit $ac_status); }; } && | |
30893 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30895 | (eval $ac_try) 2>&5 | |
30896 | ac_status=$? | |
30897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30898 | (exit $ac_status); }; }; then | |
30899 | eval "$as_ac_var=yes" | |
30900 | else | |
30901 | echo "$as_me: failed program was:" >&5 | |
30902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30903 | ||
30904 | eval "$as_ac_var=no" | |
30905 | fi | |
ac1cb8d3 VS |
30906 | rm -f conftest.err conftest.$ac_objext \ |
30907 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30908 | fi |
30909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30911 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30912 | cat >>confdefs.h <<_ACEOF | |
30913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30914 | _ACEOF | |
30915 | ||
30916 | fi | |
30917 | done | |
30918 | ||
30919 | ||
30920 | ac_ext=c | |
30921 | ac_cpp='$CPP $CPPFLAGS' | |
30922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30925 | ||
30926 | ||
30927 | INET_LINK= | |
30928 | ||
30929 | for ac_func in inet_addr | |
30930 | do | |
30931 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30932 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30933 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30934 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30936 | else | |
30937 | cat >conftest.$ac_ext <<_ACEOF | |
30938 | /* confdefs.h. */ | |
30939 | _ACEOF | |
30940 | cat confdefs.h >>conftest.$ac_ext | |
30941 | cat >>conftest.$ac_ext <<_ACEOF | |
30942 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30943 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30945 | #define $ac_func innocuous_$ac_func | |
30946 | ||
a848cd7e SC |
30947 | /* System header to define __stub macros and hopefully few prototypes, |
30948 | which can conflict with char $ac_func (); below. | |
30949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30950 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30951 | |
a848cd7e SC |
30952 | #ifdef __STDC__ |
30953 | # include <limits.h> | |
30954 | #else | |
30955 | # include <assert.h> | |
30956 | #endif | |
ac1cb8d3 VS |
30957 | |
30958 | #undef $ac_func | |
30959 | ||
a848cd7e SC |
30960 | /* Override any gcc2 internal prototype to avoid an error. */ |
30961 | #ifdef __cplusplus | |
30962 | extern "C" | |
30963 | { | |
30964 | #endif | |
30965 | /* We use char because int might match the return type of a gcc2 | |
30966 | builtin and then its argument prototype would still apply. */ | |
30967 | char $ac_func (); | |
30968 | /* The GNU C library defines this for functions which it implements | |
30969 | to always fail with ENOSYS. Some functions are actually named | |
30970 | something starting with __ and the normal name is an alias. */ | |
30971 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30972 | choke me | |
30973 | #else | |
30974 | char (*f) () = $ac_func; | |
30975 | #endif | |
30976 | #ifdef __cplusplus | |
30977 | } | |
30978 | #endif | |
30979 | ||
30980 | int | |
30981 | main () | |
30982 | { | |
30983 | return f != $ac_func; | |
30984 | ; | |
30985 | return 0; | |
30986 | } | |
30987 | _ACEOF | |
30988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30990 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30991 | ac_status=$? |
ac1cb8d3 VS |
30992 | grep -v '^ *+' conftest.er1 >conftest.err |
30993 | rm -f conftest.er1 | |
30994 | cat conftest.err >&5 | |
a848cd7e SC |
30995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30996 | (exit $ac_status); } && | |
ea7db9ff DE |
30997 | { ac_try='test -z "$ac_c_werror_flag" |
30998 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31000 | (eval $ac_try) 2>&5 | |
31001 | ac_status=$? | |
31002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31003 | (exit $ac_status); }; } && | |
31004 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31006 | (eval $ac_try) 2>&5 | |
31007 | ac_status=$? | |
31008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31009 | (exit $ac_status); }; }; then | |
31010 | eval "$as_ac_var=yes" | |
31011 | else | |
31012 | echo "$as_me: failed program was:" >&5 | |
31013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31014 | ||
31015 | eval "$as_ac_var=no" | |
31016 | fi | |
ac1cb8d3 VS |
31017 | rm -f conftest.err conftest.$ac_objext \ |
31018 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31019 | fi |
31020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31021 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31022 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31023 | cat >>confdefs.h <<_ACEOF | |
31024 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31025 | _ACEOF | |
31026 | cat >>confdefs.h <<\_ACEOF | |
31027 | #define HAVE_INET_ADDR 1 | |
31028 | _ACEOF | |
31029 | ||
31030 | else | |
31031 | ||
31032 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31033 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31034 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31036 | else | |
31037 | ac_check_lib_save_LIBS=$LIBS | |
31038 | LIBS="-lnsl $LIBS" | |
31039 | cat >conftest.$ac_ext <<_ACEOF | |
31040 | /* confdefs.h. */ | |
31041 | _ACEOF | |
31042 | cat confdefs.h >>conftest.$ac_ext | |
31043 | cat >>conftest.$ac_ext <<_ACEOF | |
31044 | /* end confdefs.h. */ | |
31045 | ||
31046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31047 | #ifdef __cplusplus | |
31048 | extern "C" | |
31049 | #endif | |
31050 | /* We use char because int might match the return type of a gcc2 | |
31051 | builtin and then its argument prototype would still apply. */ | |
31052 | char inet_addr (); | |
31053 | int | |
31054 | main () | |
31055 | { | |
31056 | inet_addr (); | |
31057 | ; | |
31058 | return 0; | |
31059 | } | |
31060 | _ACEOF | |
31061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31063 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31064 | ac_status=$? |
ac1cb8d3 VS |
31065 | grep -v '^ *+' conftest.er1 >conftest.err |
31066 | rm -f conftest.er1 | |
31067 | cat conftest.err >&5 | |
a848cd7e SC |
31068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31069 | (exit $ac_status); } && | |
ea7db9ff DE |
31070 | { ac_try='test -z "$ac_c_werror_flag" |
31071 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31073 | (eval $ac_try) 2>&5 | |
31074 | ac_status=$? | |
31075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31076 | (exit $ac_status); }; } && | |
31077 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31079 | (eval $ac_try) 2>&5 | |
31080 | ac_status=$? | |
31081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31082 | (exit $ac_status); }; }; then | |
31083 | ac_cv_lib_nsl_inet_addr=yes | |
31084 | else | |
31085 | echo "$as_me: failed program was:" >&5 | |
31086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31087 | ||
31088 | ac_cv_lib_nsl_inet_addr=no | |
31089 | fi | |
ac1cb8d3 VS |
31090 | rm -f conftest.err conftest.$ac_objext \ |
31091 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31092 | LIBS=$ac_check_lib_save_LIBS |
31093 | fi | |
31094 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31095 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31096 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31097 | INET_LINK="nsl" | |
31098 | else | |
31099 | ||
31100 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31101 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31102 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31104 | else | |
31105 | ac_check_lib_save_LIBS=$LIBS | |
31106 | LIBS="-lresolv $LIBS" | |
31107 | cat >conftest.$ac_ext <<_ACEOF | |
31108 | /* confdefs.h. */ | |
31109 | _ACEOF | |
31110 | cat confdefs.h >>conftest.$ac_ext | |
31111 | cat >>conftest.$ac_ext <<_ACEOF | |
31112 | /* end confdefs.h. */ | |
31113 | ||
31114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31115 | #ifdef __cplusplus | |
31116 | extern "C" | |
31117 | #endif | |
31118 | /* We use char because int might match the return type of a gcc2 | |
31119 | builtin and then its argument prototype would still apply. */ | |
31120 | char inet_addr (); | |
31121 | int | |
31122 | main () | |
31123 | { | |
31124 | inet_addr (); | |
31125 | ; | |
31126 | return 0; | |
31127 | } | |
31128 | _ACEOF | |
31129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31131 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31132 | ac_status=$? |
ac1cb8d3 VS |
31133 | grep -v '^ *+' conftest.er1 >conftest.err |
31134 | rm -f conftest.er1 | |
31135 | cat conftest.err >&5 | |
a848cd7e SC |
31136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31137 | (exit $ac_status); } && | |
ea7db9ff DE |
31138 | { ac_try='test -z "$ac_c_werror_flag" |
31139 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31141 | (eval $ac_try) 2>&5 | |
31142 | ac_status=$? | |
31143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31144 | (exit $ac_status); }; } && | |
31145 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31147 | (eval $ac_try) 2>&5 | |
31148 | ac_status=$? | |
31149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31150 | (exit $ac_status); }; }; then | |
31151 | ac_cv_lib_resolv_inet_addr=yes | |
31152 | else | |
31153 | echo "$as_me: failed program was:" >&5 | |
31154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31155 | ||
31156 | ac_cv_lib_resolv_inet_addr=no | |
31157 | fi | |
ac1cb8d3 VS |
31158 | rm -f conftest.err conftest.$ac_objext \ |
31159 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31160 | LIBS=$ac_check_lib_save_LIBS |
31161 | fi | |
31162 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31163 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31164 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31165 | INET_LINK="resolv" | |
31166 | else | |
31167 | ||
31168 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31169 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31170 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31172 | else | |
31173 | ac_check_lib_save_LIBS=$LIBS | |
31174 | LIBS="-lsocket $LIBS" | |
31175 | cat >conftest.$ac_ext <<_ACEOF | |
31176 | /* confdefs.h. */ | |
31177 | _ACEOF | |
31178 | cat confdefs.h >>conftest.$ac_ext | |
31179 | cat >>conftest.$ac_ext <<_ACEOF | |
31180 | /* end confdefs.h. */ | |
31181 | ||
31182 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31183 | #ifdef __cplusplus | |
31184 | extern "C" | |
31185 | #endif | |
31186 | /* We use char because int might match the return type of a gcc2 | |
31187 | builtin and then its argument prototype would still apply. */ | |
31188 | char inet_addr (); | |
31189 | int | |
31190 | main () | |
31191 | { | |
31192 | inet_addr (); | |
31193 | ; | |
31194 | return 0; | |
31195 | } | |
31196 | _ACEOF | |
31197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31199 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31200 | ac_status=$? |
ac1cb8d3 VS |
31201 | grep -v '^ *+' conftest.er1 >conftest.err |
31202 | rm -f conftest.er1 | |
31203 | cat conftest.err >&5 | |
a848cd7e SC |
31204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31205 | (exit $ac_status); } && | |
ea7db9ff DE |
31206 | { ac_try='test -z "$ac_c_werror_flag" |
31207 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31209 | (eval $ac_try) 2>&5 | |
31210 | ac_status=$? | |
31211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31212 | (exit $ac_status); }; } && | |
31213 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31215 | (eval $ac_try) 2>&5 | |
31216 | ac_status=$? | |
31217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31218 | (exit $ac_status); }; }; then | |
31219 | ac_cv_lib_socket_inet_addr=yes | |
31220 | else | |
31221 | echo "$as_me: failed program was:" >&5 | |
31222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31223 | ||
31224 | ac_cv_lib_socket_inet_addr=no | |
31225 | fi | |
ac1cb8d3 VS |
31226 | rm -f conftest.err conftest.$ac_objext \ |
31227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31228 | LIBS=$ac_check_lib_save_LIBS |
31229 | fi | |
31230 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31231 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31232 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31233 | INET_LINK="socket" | |
31234 | ||
31235 | fi | |
31236 | ||
31237 | ||
31238 | ||
31239 | fi | |
31240 | ||
31241 | ||
31242 | ||
31243 | fi | |
31244 | ||
31245 | ||
31246 | ||
31247 | fi | |
31248 | done | |
31249 | ||
31250 | ||
31251 | ||
31252 | for ac_func in inet_aton | |
31253 | do | |
31254 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31255 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31256 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31257 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31259 | else | |
31260 | cat >conftest.$ac_ext <<_ACEOF | |
31261 | /* confdefs.h. */ | |
31262 | _ACEOF | |
31263 | cat confdefs.h >>conftest.$ac_ext | |
31264 | cat >>conftest.$ac_ext <<_ACEOF | |
31265 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31266 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31267 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31268 | #define $ac_func innocuous_$ac_func | |
31269 | ||
a848cd7e SC |
31270 | /* System header to define __stub macros and hopefully few prototypes, |
31271 | which can conflict with char $ac_func (); below. | |
31272 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31273 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31274 | |
a848cd7e SC |
31275 | #ifdef __STDC__ |
31276 | # include <limits.h> | |
31277 | #else | |
31278 | # include <assert.h> | |
31279 | #endif | |
ac1cb8d3 VS |
31280 | |
31281 | #undef $ac_func | |
31282 | ||
a848cd7e SC |
31283 | /* Override any gcc2 internal prototype to avoid an error. */ |
31284 | #ifdef __cplusplus | |
31285 | extern "C" | |
31286 | { | |
31287 | #endif | |
31288 | /* We use char because int might match the return type of a gcc2 | |
31289 | builtin and then its argument prototype would still apply. */ | |
31290 | char $ac_func (); | |
31291 | /* The GNU C library defines this for functions which it implements | |
31292 | to always fail with ENOSYS. Some functions are actually named | |
31293 | something starting with __ and the normal name is an alias. */ | |
31294 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31295 | choke me | |
31296 | #else | |
31297 | char (*f) () = $ac_func; | |
31298 | #endif | |
31299 | #ifdef __cplusplus | |
31300 | } | |
31301 | #endif | |
31302 | ||
31303 | int | |
31304 | main () | |
31305 | { | |
31306 | return f != $ac_func; | |
31307 | ; | |
31308 | return 0; | |
31309 | } | |
31310 | _ACEOF | |
31311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31313 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31314 | ac_status=$? |
ac1cb8d3 VS |
31315 | grep -v '^ *+' conftest.er1 >conftest.err |
31316 | rm -f conftest.er1 | |
31317 | cat conftest.err >&5 | |
a848cd7e SC |
31318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31319 | (exit $ac_status); } && | |
ea7db9ff DE |
31320 | { ac_try='test -z "$ac_c_werror_flag" |
31321 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31323 | (eval $ac_try) 2>&5 | |
31324 | ac_status=$? | |
31325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31326 | (exit $ac_status); }; } && | |
31327 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31329 | (eval $ac_try) 2>&5 | |
31330 | ac_status=$? | |
31331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31332 | (exit $ac_status); }; }; then | |
31333 | eval "$as_ac_var=yes" | |
31334 | else | |
31335 | echo "$as_me: failed program was:" >&5 | |
31336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31337 | ||
31338 | eval "$as_ac_var=no" | |
31339 | fi | |
ac1cb8d3 VS |
31340 | rm -f conftest.err conftest.$ac_objext \ |
31341 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31342 | fi |
31343 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31344 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31345 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31346 | cat >>confdefs.h <<_ACEOF | |
31347 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31348 | _ACEOF | |
31349 | cat >>confdefs.h <<\_ACEOF | |
31350 | #define HAVE_INET_ATON 1 | |
31351 | _ACEOF | |
31352 | ||
31353 | else | |
31354 | ||
31355 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31356 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31357 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31358 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31360 | else | |
31361 | ac_check_lib_save_LIBS=$LIBS | |
31362 | LIBS="-l$INET_LINK $LIBS" | |
31363 | cat >conftest.$ac_ext <<_ACEOF | |
31364 | /* confdefs.h. */ | |
31365 | _ACEOF | |
31366 | cat confdefs.h >>conftest.$ac_ext | |
31367 | cat >>conftest.$ac_ext <<_ACEOF | |
31368 | /* end confdefs.h. */ | |
31369 | ||
31370 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31371 | #ifdef __cplusplus | |
31372 | extern "C" | |
31373 | #endif | |
31374 | /* We use char because int might match the return type of a gcc2 | |
31375 | builtin and then its argument prototype would still apply. */ | |
31376 | char inet_aton (); | |
31377 | int | |
31378 | main () | |
31379 | { | |
31380 | inet_aton (); | |
31381 | ; | |
31382 | return 0; | |
31383 | } | |
31384 | _ACEOF | |
31385 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31387 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31388 | ac_status=$? |
ac1cb8d3 VS |
31389 | grep -v '^ *+' conftest.er1 >conftest.err |
31390 | rm -f conftest.er1 | |
31391 | cat conftest.err >&5 | |
a848cd7e SC |
31392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31393 | (exit $ac_status); } && | |
ea7db9ff DE |
31394 | { ac_try='test -z "$ac_c_werror_flag" |
31395 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31397 | (eval $ac_try) 2>&5 | |
31398 | ac_status=$? | |
31399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31400 | (exit $ac_status); }; } && | |
31401 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31403 | (eval $ac_try) 2>&5 | |
31404 | ac_status=$? | |
31405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31406 | (exit $ac_status); }; }; then | |
31407 | eval "$as_ac_Lib=yes" | |
31408 | else | |
31409 | echo "$as_me: failed program was:" >&5 | |
31410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31411 | ||
31412 | eval "$as_ac_Lib=no" | |
31413 | fi | |
ac1cb8d3 VS |
31414 | rm -f conftest.err conftest.$ac_objext \ |
31415 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31416 | LIBS=$ac_check_lib_save_LIBS |
31417 | fi | |
31418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31419 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31420 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31421 | cat >>confdefs.h <<\_ACEOF | |
31422 | #define HAVE_INET_ATON 1 | |
31423 | _ACEOF | |
31424 | ||
31425 | fi | |
31426 | ||
31427 | ||
31428 | fi | |
31429 | done | |
31430 | ||
31431 | ||
31432 | if test "x$INET_LINK" != "x"; then | |
31433 | cat >>confdefs.h <<\_ACEOF | |
31434 | #define HAVE_INET_ADDR 1 | |
31435 | _ACEOF | |
31436 | ||
31437 | INET_LINK=" -l$INET_LINK" | |
31438 | fi | |
31439 | ||
31440 | fi | |
31441 | ||
31442 | ||
31443 | ||
31444 | EXTRALIBS_ESD= | |
31445 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31446 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31447 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31449 | else | |
31450 | ac_check_lib_save_LIBS=$LIBS | |
31451 | LIBS="-lesd $LIBS" | |
31452 | cat >conftest.$ac_ext <<_ACEOF | |
31453 | /* confdefs.h. */ | |
31454 | _ACEOF | |
31455 | cat confdefs.h >>conftest.$ac_ext | |
31456 | cat >>conftest.$ac_ext <<_ACEOF | |
31457 | /* end confdefs.h. */ | |
31458 | ||
31459 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31460 | #ifdef __cplusplus | |
31461 | extern "C" | |
31462 | #endif | |
31463 | /* We use char because int might match the return type of a gcc2 | |
31464 | builtin and then its argument prototype would still apply. */ | |
31465 | char esd_close (); | |
31466 | int | |
31467 | main () | |
31468 | { | |
31469 | esd_close (); | |
31470 | ; | |
31471 | return 0; | |
31472 | } | |
31473 | _ACEOF | |
31474 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31476 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31477 | ac_status=$? |
ac1cb8d3 VS |
31478 | grep -v '^ *+' conftest.er1 >conftest.err |
31479 | rm -f conftest.er1 | |
31480 | cat conftest.err >&5 | |
a848cd7e SC |
31481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31482 | (exit $ac_status); } && | |
ea7db9ff DE |
31483 | { ac_try='test -z "$ac_c_werror_flag" |
31484 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31486 | (eval $ac_try) 2>&5 | |
31487 | ac_status=$? | |
31488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31489 | (exit $ac_status); }; } && | |
31490 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31492 | (eval $ac_try) 2>&5 | |
31493 | ac_status=$? | |
31494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31495 | (exit $ac_status); }; }; then | |
31496 | ac_cv_lib_esd_esd_close=yes | |
31497 | else | |
31498 | echo "$as_me: failed program was:" >&5 | |
31499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31500 | ||
31501 | ac_cv_lib_esd_esd_close=no | |
31502 | fi | |
ac1cb8d3 VS |
31503 | rm -f conftest.err conftest.$ac_objext \ |
31504 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31505 | LIBS=$ac_check_lib_save_LIBS |
31506 | fi | |
31507 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31508 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31509 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31510 | ||
31511 | ||
31512 | for ac_header in esd.h | |
31513 | do | |
31514 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31520 | fi | |
31521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31522 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31523 | else | |
31524 | # Is the header compilable? | |
31525 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31526 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31527 | cat >conftest.$ac_ext <<_ACEOF | |
31528 | /* confdefs.h. */ | |
31529 | _ACEOF | |
31530 | cat confdefs.h >>conftest.$ac_ext | |
31531 | cat >>conftest.$ac_ext <<_ACEOF | |
31532 | /* end confdefs.h. */ | |
31533 | $ac_includes_default | |
31534 | #include <$ac_header> | |
31535 | _ACEOF | |
31536 | rm -f conftest.$ac_objext | |
31537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31538 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31539 | ac_status=$? |
ac1cb8d3 VS |
31540 | grep -v '^ *+' conftest.er1 >conftest.err |
31541 | rm -f conftest.er1 | |
31542 | cat conftest.err >&5 | |
a848cd7e SC |
31543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31544 | (exit $ac_status); } && | |
ea7db9ff DE |
31545 | { ac_try='test -z "$ac_c_werror_flag" |
31546 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31548 | (eval $ac_try) 2>&5 | |
31549 | ac_status=$? | |
31550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31551 | (exit $ac_status); }; } && | |
31552 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31554 | (eval $ac_try) 2>&5 | |
31555 | ac_status=$? | |
31556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31557 | (exit $ac_status); }; }; then | |
31558 | ac_header_compiler=yes | |
31559 | else | |
31560 | echo "$as_me: failed program was:" >&5 | |
31561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31562 | ||
31563 | ac_header_compiler=no | |
31564 | fi | |
ac1cb8d3 | 31565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31566 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31567 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31568 | ||
31569 | # Is the header present? | |
31570 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31571 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31572 | cat >conftest.$ac_ext <<_ACEOF | |
31573 | /* confdefs.h. */ | |
31574 | _ACEOF | |
31575 | cat confdefs.h >>conftest.$ac_ext | |
31576 | cat >>conftest.$ac_ext <<_ACEOF | |
31577 | /* end confdefs.h. */ | |
31578 | #include <$ac_header> | |
31579 | _ACEOF | |
31580 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31582 | ac_status=$? | |
31583 | grep -v '^ *+' conftest.er1 >conftest.err | |
31584 | rm -f conftest.er1 | |
31585 | cat conftest.err >&5 | |
31586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31587 | (exit $ac_status); } >/dev/null; then | |
31588 | if test -s conftest.err; then | |
31589 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31590 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31591 | else |
31592 | ac_cpp_err= | |
31593 | fi | |
31594 | else | |
31595 | ac_cpp_err=yes | |
31596 | fi | |
31597 | if test -z "$ac_cpp_err"; then | |
31598 | ac_header_preproc=yes | |
31599 | else | |
31600 | echo "$as_me: failed program was:" >&5 | |
31601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31602 | ||
31603 | ac_header_preproc=no | |
31604 | fi | |
31605 | rm -f conftest.err conftest.$ac_ext | |
31606 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31607 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31608 | ||
31609 | # So? What about this header? | |
ac1cb8d3 VS |
31610 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31611 | yes:no: ) | |
a848cd7e SC |
31612 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31613 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31615 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31616 | ac_header_preproc=yes | |
a848cd7e | 31617 | ;; |
ac1cb8d3 | 31618 | no:yes:* ) |
a848cd7e SC |
31619 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31620 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31621 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31622 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31623 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31624 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31625 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31626 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31628 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31629 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31630 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31631 | ( |
31632 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31633 | ## ----------------------------------------- ## |
31634 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31635 | ## ----------------------------------------- ## | |
a848cd7e SC |
31636 | _ASBOX |
31637 | ) | | |
31638 | sed "s/^/$as_me: WARNING: /" >&2 | |
31639 | ;; | |
31640 | esac | |
31641 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31645 | else | |
ac1cb8d3 | 31646 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31647 | fi |
31648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31650 | ||
31651 | fi | |
31652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31653 | cat >>confdefs.h <<_ACEOF | |
31654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31655 | _ACEOF | |
31656 | ||
31657 | EXTRALIBS_ESD="-lesd" | |
31658 | ||
31659 | fi | |
31660 | ||
31661 | done | |
31662 | ||
31663 | ||
31664 | fi | |
31665 | ||
31666 | ||
31667 | ||
31668 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31669 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31670 | cat >conftest.$ac_ext <<_ACEOF | |
31671 | /* confdefs.h. */ | |
31672 | _ACEOF | |
31673 | cat confdefs.h >>conftest.$ac_ext | |
31674 | cat >>conftest.$ac_ext <<_ACEOF | |
31675 | /* end confdefs.h. */ | |
31676 | #ifdef __linux__ | |
31677 | #include <linux/cdrom.h> | |
31678 | #else | |
31679 | /* For Solaris */ | |
31680 | #include <sys/cdio.h> | |
31681 | #endif | |
31682 | ||
31683 | int | |
31684 | main () | |
31685 | { | |
31686 | struct cdrom_tocentry entry, old_entry; | |
31687 | ; | |
31688 | return 0; | |
31689 | } | |
31690 | _ACEOF | |
31691 | rm -f conftest.$ac_objext | |
31692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31693 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31694 | ac_status=$? |
ac1cb8d3 VS |
31695 | grep -v '^ *+' conftest.er1 >conftest.err |
31696 | rm -f conftest.er1 | |
31697 | cat conftest.err >&5 | |
a848cd7e SC |
31698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31699 | (exit $ac_status); } && | |
ea7db9ff DE |
31700 | { ac_try='test -z "$ac_c_werror_flag" |
31701 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31703 | (eval $ac_try) 2>&5 | |
31704 | ac_status=$? | |
31705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31706 | (exit $ac_status); }; } && | |
31707 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31709 | (eval $ac_try) 2>&5 | |
31710 | ac_status=$? | |
31711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31712 | (exit $ac_status); }; }; then | |
31713 | echo "$as_me:$LINENO: result: yes" >&5 | |
31714 | echo "${ECHO_T}yes" >&6 | |
31715 | cat >>confdefs.h <<\_ACEOF | |
31716 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31717 | _ACEOF | |
31718 | ||
31719 | else | |
31720 | echo "$as_me: failed program was:" >&5 | |
31721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31722 | ||
31723 | echo "$as_me:$LINENO: result: no" >&5 | |
31724 | echo "${ECHO_T}no" >&6 | |
31725 | fi | |
ac1cb8d3 | 31726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31727 | |
31728 | ||
31729 | cat >confcache <<\_ACEOF | |
31730 | # This file is a shell script that caches the results of configure | |
31731 | # tests run on this system so they can be shared between configure | |
31732 | # scripts and configure runs, see configure's option --config-cache. | |
31733 | # It is not useful on other systems. If it contains results you don't | |
31734 | # want to keep, you may remove or edit it. | |
31735 | # | |
31736 | # config.status only pays attention to the cache file if you give it | |
31737 | # the --recheck option to rerun configure. | |
31738 | # | |
31739 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31740 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31741 | # following values. | |
31742 | ||
31743 | _ACEOF | |
31744 | ||
31745 | # The following way of writing the cache mishandles newlines in values, | |
31746 | # but we know of no workaround that is simple, portable, and efficient. | |
31747 | # So, don't put newlines in cache variables' values. | |
31748 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31749 | # and sets the high bit in the cache file unless we assign to the vars. | |
31750 | { | |
31751 | (set) 2>&1 | | |
31752 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31753 | *ac_space=\ *) | |
31754 | # `set' does not quote correctly, so add quotes (double-quote | |
31755 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31756 | sed -n \ | |
ac1cb8d3 VS |
31757 | "s/'/'\\\\''/g; |
31758 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31759 | ;; |
31760 | *) | |
31761 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31762 | sed -n \ | |
ac1cb8d3 | 31763 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31764 | ;; |
31765 | esac; | |
31766 | } | | |
31767 | sed ' | |
31768 | t clear | |
31769 | : clear | |
31770 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31771 | t end | |
31772 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31773 | : end' >>confcache | |
31774 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31775 | if test -w $cache_file; then | |
31776 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31777 | cat confcache >$cache_file | |
31778 | else | |
31779 | echo "not updating unwritable cache $cache_file" | |
31780 | fi | |
31781 | fi | |
31782 | rm -f confcache | |
31783 | ||
31784 | ||
31785 | CPP_MT_FLAG= | |
31786 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31787 | ||
31788 | ||
31789 | THREADS_LINK= | |
31790 | THREADS_CFLAGS= | |
31791 | ||
31792 | if test "$wxUSE_THREADS" = "yes" ; then | |
31793 | if test "$USE_BEOS" = 1; then | |
31794 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
31795 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
31796 | wxUSE_THREADS="no" | |
31797 | fi | |
31798 | fi | |
31799 | ||
31800 | if test "$wxUSE_THREADS" = "yes" ; then | |
31801 | ||
31802 | ||
31803 | THREAD_OPTS="-pthread" | |
31804 | case "${host}" in | |
31805 | *-*-solaris2* | *-*-sunos4* ) | |
31806 | if test "x$GCC" = "xyes"; then | |
31807 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
31808 | else | |
31809 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31810 | fi | |
31811 | ;; | |
31812 | *-*-freebsd*) | |
31813 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31814 | ;; | |
31815 | *-*-darwin* | *-*-cygwin* ) | |
31816 | THREAD_OPTS="" | |
31817 | ;; | |
31818 | *-*-aix*) | |
31819 | THREAD_OPTS="pthreads" | |
31820 | ;; | |
31821 | *-hp-hpux* ) | |
31822 | if test "x$GCC" != "xyes"; then | |
31823 | THREAD_OPTS="" | |
31824 | fi | |
31825 | ;; | |
31826 | ||
31827 | *-*-irix* ) | |
31828 | if test "x$GCC" = "xyes"; then | |
31829 | THREAD_OPTS="" | |
31830 | fi | |
31831 | ;; | |
31832 | ||
31833 | *-*-*UnixWare*) | |
31834 | if test "x$GCC" != "xyes"; then | |
31835 | THREAD_OPTS="-Ethread" | |
31836 | fi | |
31837 | ;; | |
31838 | esac | |
31839 | ||
31840 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
31841 | ||
31842 | THREADS_OK=no | |
31843 | for flag in $THREAD_OPTS; do | |
31844 | case $flag in | |
31845 | none) | |
31846 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
31847 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
31848 | ;; | |
31849 | ||
31850 | -*) | |
31851 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
31852 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
31853 | THREADS_CFLAGS="$flag" | |
31854 | ;; | |
31855 | ||
31856 | *) | |
31857 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
31858 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
31859 | THREADS_LINK="-l$flag" | |
31860 | ;; | |
31861 | esac | |
31862 | ||
31863 | save_LIBS="$LIBS" | |
31864 | save_CFLAGS="$CFLAGS" | |
31865 | LIBS="$THREADS_LINK $LIBS" | |
31866 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
31867 | ||
31868 | cat >conftest.$ac_ext <<_ACEOF | |
31869 | /* confdefs.h. */ | |
31870 | _ACEOF | |
31871 | cat confdefs.h >>conftest.$ac_ext | |
31872 | cat >>conftest.$ac_ext <<_ACEOF | |
31873 | /* end confdefs.h. */ | |
31874 | #include <pthread.h> | |
31875 | int | |
31876 | main () | |
31877 | { | |
31878 | pthread_create(0,0,0,0); | |
31879 | ; | |
31880 | return 0; | |
31881 | } | |
31882 | _ACEOF | |
31883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31885 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31886 | ac_status=$? |
ac1cb8d3 VS |
31887 | grep -v '^ *+' conftest.er1 >conftest.err |
31888 | rm -f conftest.er1 | |
31889 | cat conftest.err >&5 | |
a848cd7e SC |
31890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31891 | (exit $ac_status); } && | |
ea7db9ff DE |
31892 | { ac_try='test -z "$ac_c_werror_flag" |
31893 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31895 | (eval $ac_try) 2>&5 | |
31896 | ac_status=$? | |
31897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31898 | (exit $ac_status); }; } && | |
31899 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31901 | (eval $ac_try) 2>&5 | |
31902 | ac_status=$? | |
31903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31904 | (exit $ac_status); }; }; then | |
31905 | THREADS_OK=yes | |
31906 | else | |
31907 | echo "$as_me: failed program was:" >&5 | |
31908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31909 | ||
31910 | fi | |
ac1cb8d3 VS |
31911 | rm -f conftest.err conftest.$ac_objext \ |
31912 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31913 | |
31914 | LIBS="$save_LIBS" | |
31915 | CFLAGS="$save_CFLAGS" | |
31916 | ||
31917 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
31918 | echo "${ECHO_T}$THREADS_OK" >&6 | |
31919 | if test "x$THREADS_OK" = "xyes"; then | |
31920 | break; | |
31921 | fi | |
31922 | ||
31923 | THREADS_LINK="" | |
31924 | THREADS_CFLAGS="" | |
31925 | done | |
31926 | ||
31927 | if test "x$THREADS_OK" != "xyes"; then | |
31928 | wxUSE_THREADS=no | |
31929 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
31930 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
31931 | else | |
31932 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
31933 | LIBS="$THREADS_LINK $LIBS" | |
31934 | ||
31935 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
31936 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
31937 | flag=no | |
31938 | case "${host}" in | |
31939 | *-aix*) | |
31940 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31941 | flag="-D_THREAD_SAFE" | |
31942 | ;; | |
31943 | *-freebsd*) | |
31944 | flag="-D_THREAD_SAFE" | |
31945 | ;; | |
31946 | *-hp-hpux* ) | |
31947 | flag="-D_REENTRANT" | |
31948 | if test "x$GCC" != "xyes"; then | |
31949 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
31950 | |
31951 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
31952 | fi |
31953 | ;; | |
31954 | *solaris* | alpha*-osf*) | |
31955 | flag="-D_REENTRANT" | |
31956 | ;; | |
31957 | esac | |
31958 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
31959 | echo "${ECHO_T}${flag}" >&6 | |
31960 | if test "x$flag" != xno; then | |
31961 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
31962 | fi | |
31963 | ||
31964 | if test "x$THREADS_CFLAGS" != "x"; then | |
31965 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
31966 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
31967 | fi | |
31968 | fi | |
31969 | fi | |
31970 | ||
31971 | if test "$wxUSE_THREADS" = "yes" ; then | |
31972 | ||
31973 | for ac_func in thr_setconcurrency | |
31974 | do | |
31975 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31976 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31977 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31978 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31980 | else | |
31981 | cat >conftest.$ac_ext <<_ACEOF | |
31982 | /* confdefs.h. */ | |
31983 | _ACEOF | |
31984 | cat confdefs.h >>conftest.$ac_ext | |
31985 | cat >>conftest.$ac_ext <<_ACEOF | |
31986 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31987 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31988 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31989 | #define $ac_func innocuous_$ac_func | |
31990 | ||
a848cd7e SC |
31991 | /* System header to define __stub macros and hopefully few prototypes, |
31992 | which can conflict with char $ac_func (); below. | |
31993 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31994 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31995 | |
a848cd7e SC |
31996 | #ifdef __STDC__ |
31997 | # include <limits.h> | |
31998 | #else | |
31999 | # include <assert.h> | |
32000 | #endif | |
ac1cb8d3 VS |
32001 | |
32002 | #undef $ac_func | |
32003 | ||
a848cd7e SC |
32004 | /* Override any gcc2 internal prototype to avoid an error. */ |
32005 | #ifdef __cplusplus | |
32006 | extern "C" | |
32007 | { | |
32008 | #endif | |
32009 | /* We use char because int might match the return type of a gcc2 | |
32010 | builtin and then its argument prototype would still apply. */ | |
32011 | char $ac_func (); | |
32012 | /* The GNU C library defines this for functions which it implements | |
32013 | to always fail with ENOSYS. Some functions are actually named | |
32014 | something starting with __ and the normal name is an alias. */ | |
32015 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32016 | choke me | |
32017 | #else | |
32018 | char (*f) () = $ac_func; | |
32019 | #endif | |
32020 | #ifdef __cplusplus | |
32021 | } | |
32022 | #endif | |
32023 | ||
32024 | int | |
32025 | main () | |
32026 | { | |
32027 | return f != $ac_func; | |
32028 | ; | |
32029 | return 0; | |
32030 | } | |
32031 | _ACEOF | |
32032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32034 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32035 | ac_status=$? |
ac1cb8d3 VS |
32036 | grep -v '^ *+' conftest.er1 >conftest.err |
32037 | rm -f conftest.er1 | |
32038 | cat conftest.err >&5 | |
a848cd7e SC |
32039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32040 | (exit $ac_status); } && | |
ea7db9ff DE |
32041 | { ac_try='test -z "$ac_c_werror_flag" |
32042 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32044 | (eval $ac_try) 2>&5 | |
32045 | ac_status=$? | |
32046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32047 | (exit $ac_status); }; } && | |
32048 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32050 | (eval $ac_try) 2>&5 | |
32051 | ac_status=$? | |
32052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32053 | (exit $ac_status); }; }; then | |
32054 | eval "$as_ac_var=yes" | |
32055 | else | |
32056 | echo "$as_me: failed program was:" >&5 | |
32057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32058 | ||
32059 | eval "$as_ac_var=no" | |
32060 | fi | |
ac1cb8d3 VS |
32061 | rm -f conftest.err conftest.$ac_objext \ |
32062 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32063 | fi |
32064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32065 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32066 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32067 | cat >>confdefs.h <<_ACEOF | |
32068 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32069 | _ACEOF | |
32070 | ||
32071 | fi | |
32072 | done | |
32073 | ||
32074 | ||
32075 | ||
32076 | for ac_header in sched.h | |
32077 | do | |
32078 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32079 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32080 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32081 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32084 | fi | |
32085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32086 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32087 | else | |
32088 | # Is the header compilable? | |
32089 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32090 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32091 | cat >conftest.$ac_ext <<_ACEOF | |
32092 | /* confdefs.h. */ | |
32093 | _ACEOF | |
32094 | cat confdefs.h >>conftest.$ac_ext | |
32095 | cat >>conftest.$ac_ext <<_ACEOF | |
32096 | /* end confdefs.h. */ | |
32097 | $ac_includes_default | |
32098 | #include <$ac_header> | |
32099 | _ACEOF | |
32100 | rm -f conftest.$ac_objext | |
32101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32102 | (eval $ac_compile) 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); } && | |
ea7db9ff DE |
32109 | { ac_try='test -z "$ac_c_werror_flag" |
32110 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32112 | (eval $ac_try) 2>&5 | |
32113 | ac_status=$? | |
32114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32115 | (exit $ac_status); }; } && | |
32116 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32118 | (eval $ac_try) 2>&5 | |
32119 | ac_status=$? | |
32120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32121 | (exit $ac_status); }; }; then | |
32122 | ac_header_compiler=yes | |
32123 | else | |
32124 | echo "$as_me: failed program was:" >&5 | |
32125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32126 | ||
32127 | ac_header_compiler=no | |
32128 | fi | |
ac1cb8d3 | 32129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32130 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32131 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32132 | ||
32133 | # Is the header present? | |
32134 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32135 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32136 | cat >conftest.$ac_ext <<_ACEOF | |
32137 | /* confdefs.h. */ | |
32138 | _ACEOF | |
32139 | cat confdefs.h >>conftest.$ac_ext | |
32140 | cat >>conftest.$ac_ext <<_ACEOF | |
32141 | /* end confdefs.h. */ | |
32142 | #include <$ac_header> | |
32143 | _ACEOF | |
32144 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32145 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32146 | ac_status=$? | |
32147 | grep -v '^ *+' conftest.er1 >conftest.err | |
32148 | rm -f conftest.er1 | |
32149 | cat conftest.err >&5 | |
32150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32151 | (exit $ac_status); } >/dev/null; then | |
32152 | if test -s conftest.err; then | |
32153 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32154 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32155 | else |
32156 | ac_cpp_err= | |
32157 | fi | |
32158 | else | |
32159 | ac_cpp_err=yes | |
32160 | fi | |
32161 | if test -z "$ac_cpp_err"; then | |
32162 | ac_header_preproc=yes | |
32163 | else | |
32164 | echo "$as_me: failed program was:" >&5 | |
32165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32166 | ||
32167 | ac_header_preproc=no | |
32168 | fi | |
32169 | rm -f conftest.err conftest.$ac_ext | |
32170 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32171 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32172 | ||
32173 | # So? What about this header? | |
ac1cb8d3 VS |
32174 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32175 | yes:no: ) | |
a848cd7e SC |
32176 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32177 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32178 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32179 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32180 | ac_header_preproc=yes | |
a848cd7e | 32181 | ;; |
ac1cb8d3 | 32182 | no:yes:* ) |
a848cd7e SC |
32183 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32184 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32185 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32186 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32187 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32188 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32189 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32190 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32192 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32193 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32194 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32195 | ( |
32196 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32197 | ## ----------------------------------------- ## |
32198 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32199 | ## ----------------------------------------- ## | |
a848cd7e SC |
32200 | _ASBOX |
32201 | ) | | |
32202 | sed "s/^/$as_me: WARNING: /" >&2 | |
32203 | ;; | |
32204 | esac | |
32205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32209 | else | |
ac1cb8d3 | 32210 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32211 | fi |
32212 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32213 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32214 | ||
32215 | fi | |
32216 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32217 | cat >>confdefs.h <<_ACEOF | |
32218 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32219 | _ACEOF | |
32220 | ||
32221 | fi | |
32222 | ||
32223 | done | |
32224 | ||
32225 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32226 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32227 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32228 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32230 | else | |
32231 | cat >conftest.$ac_ext <<_ACEOF | |
32232 | /* confdefs.h. */ | |
32233 | _ACEOF | |
32234 | cat confdefs.h >>conftest.$ac_ext | |
32235 | cat >>conftest.$ac_ext <<_ACEOF | |
32236 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32237 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32238 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32239 | #define sched_yield innocuous_sched_yield | |
32240 | ||
a848cd7e SC |
32241 | /* System header to define __stub macros and hopefully few prototypes, |
32242 | which can conflict with char sched_yield (); below. | |
32243 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32244 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32245 | |
a848cd7e SC |
32246 | #ifdef __STDC__ |
32247 | # include <limits.h> | |
32248 | #else | |
32249 | # include <assert.h> | |
32250 | #endif | |
ac1cb8d3 VS |
32251 | |
32252 | #undef sched_yield | |
32253 | ||
a848cd7e SC |
32254 | /* Override any gcc2 internal prototype to avoid an error. */ |
32255 | #ifdef __cplusplus | |
32256 | extern "C" | |
32257 | { | |
32258 | #endif | |
32259 | /* We use char because int might match the return type of a gcc2 | |
32260 | builtin and then its argument prototype would still apply. */ | |
32261 | char sched_yield (); | |
32262 | /* The GNU C library defines this for functions which it implements | |
32263 | to always fail with ENOSYS. Some functions are actually named | |
32264 | something starting with __ and the normal name is an alias. */ | |
32265 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32266 | choke me | |
32267 | #else | |
32268 | char (*f) () = sched_yield; | |
32269 | #endif | |
32270 | #ifdef __cplusplus | |
32271 | } | |
32272 | #endif | |
32273 | ||
32274 | int | |
32275 | main () | |
32276 | { | |
32277 | return f != sched_yield; | |
32278 | ; | |
32279 | return 0; | |
32280 | } | |
32281 | _ACEOF | |
32282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32284 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32285 | ac_status=$? |
ac1cb8d3 VS |
32286 | grep -v '^ *+' conftest.er1 >conftest.err |
32287 | rm -f conftest.er1 | |
32288 | cat conftest.err >&5 | |
a848cd7e SC |
32289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32290 | (exit $ac_status); } && | |
ea7db9ff DE |
32291 | { ac_try='test -z "$ac_c_werror_flag" |
32292 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
32298 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32300 | (eval $ac_try) 2>&5 | |
32301 | ac_status=$? | |
32302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32303 | (exit $ac_status); }; }; then | |
32304 | ac_cv_func_sched_yield=yes | |
32305 | else | |
32306 | echo "$as_me: failed program was:" >&5 | |
32307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32308 | ||
32309 | ac_cv_func_sched_yield=no | |
32310 | fi | |
ac1cb8d3 VS |
32311 | rm -f conftest.err conftest.$ac_objext \ |
32312 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32313 | fi |
32314 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32315 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32316 | if test $ac_cv_func_sched_yield = yes; then | |
32317 | cat >>confdefs.h <<\_ACEOF | |
32318 | #define HAVE_SCHED_YIELD 1 | |
32319 | _ACEOF | |
32320 | ||
32321 | else | |
32322 | ||
32323 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32324 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32325 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32327 | else | |
32328 | ac_check_lib_save_LIBS=$LIBS | |
32329 | LIBS="-lposix4 $LIBS" | |
32330 | cat >conftest.$ac_ext <<_ACEOF | |
32331 | /* confdefs.h. */ | |
32332 | _ACEOF | |
32333 | cat confdefs.h >>conftest.$ac_ext | |
32334 | cat >>conftest.$ac_ext <<_ACEOF | |
32335 | /* end confdefs.h. */ | |
32336 | ||
32337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32338 | #ifdef __cplusplus | |
32339 | extern "C" | |
32340 | #endif | |
32341 | /* We use char because int might match the return type of a gcc2 | |
32342 | builtin and then its argument prototype would still apply. */ | |
32343 | char sched_yield (); | |
32344 | int | |
32345 | main () | |
32346 | { | |
32347 | sched_yield (); | |
32348 | ; | |
32349 | return 0; | |
32350 | } | |
32351 | _ACEOF | |
32352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32354 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32355 | ac_status=$? |
ac1cb8d3 VS |
32356 | grep -v '^ *+' conftest.er1 >conftest.err |
32357 | rm -f conftest.er1 | |
32358 | cat conftest.err >&5 | |
a848cd7e SC |
32359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32360 | (exit $ac_status); } && | |
ea7db9ff DE |
32361 | { ac_try='test -z "$ac_c_werror_flag" |
32362 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32364 | (eval $ac_try) 2>&5 | |
32365 | ac_status=$? | |
32366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32367 | (exit $ac_status); }; } && | |
32368 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32370 | (eval $ac_try) 2>&5 | |
32371 | ac_status=$? | |
32372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32373 | (exit $ac_status); }; }; then | |
32374 | ac_cv_lib_posix4_sched_yield=yes | |
32375 | else | |
32376 | echo "$as_me: failed program was:" >&5 | |
32377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32378 | ||
32379 | ac_cv_lib_posix4_sched_yield=no | |
32380 | fi | |
ac1cb8d3 VS |
32381 | rm -f conftest.err conftest.$ac_objext \ |
32382 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32383 | LIBS=$ac_check_lib_save_LIBS |
32384 | fi | |
32385 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32386 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32387 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32388 | cat >>confdefs.h <<\_ACEOF | |
32389 | #define HAVE_SCHED_YIELD 1 | |
32390 | _ACEOF | |
32391 | POSIX4_LINK=" -lposix4" | |
32392 | else | |
32393 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32394 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32395 | ||
32396 | fi | |
32397 | ||
32398 | ||
32399 | ||
32400 | fi | |
32401 | ||
32402 | fi | |
32403 | ||
32404 | HAVE_PRIOR_FUNCS=0 | |
32405 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32406 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32407 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32409 | else | |
32410 | cat >conftest.$ac_ext <<_ACEOF | |
32411 | /* confdefs.h. */ | |
32412 | _ACEOF | |
32413 | cat confdefs.h >>conftest.$ac_ext | |
32414 | cat >>conftest.$ac_ext <<_ACEOF | |
32415 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32416 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32417 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32418 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32419 | ||
a848cd7e SC |
32420 | /* System header to define __stub macros and hopefully few prototypes, |
32421 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32422 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32423 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32424 | |
a848cd7e SC |
32425 | #ifdef __STDC__ |
32426 | # include <limits.h> | |
32427 | #else | |
32428 | # include <assert.h> | |
32429 | #endif | |
ac1cb8d3 VS |
32430 | |
32431 | #undef pthread_attr_getschedpolicy | |
32432 | ||
a848cd7e SC |
32433 | /* Override any gcc2 internal prototype to avoid an error. */ |
32434 | #ifdef __cplusplus | |
32435 | extern "C" | |
32436 | { | |
32437 | #endif | |
32438 | /* We use char because int might match the return type of a gcc2 | |
32439 | builtin and then its argument prototype would still apply. */ | |
32440 | char pthread_attr_getschedpolicy (); | |
32441 | /* The GNU C library defines this for functions which it implements | |
32442 | to always fail with ENOSYS. Some functions are actually named | |
32443 | something starting with __ and the normal name is an alias. */ | |
32444 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32445 | choke me | |
32446 | #else | |
32447 | char (*f) () = pthread_attr_getschedpolicy; | |
32448 | #endif | |
32449 | #ifdef __cplusplus | |
32450 | } | |
32451 | #endif | |
32452 | ||
32453 | int | |
32454 | main () | |
32455 | { | |
32456 | return f != pthread_attr_getschedpolicy; | |
32457 | ; | |
32458 | return 0; | |
32459 | } | |
32460 | _ACEOF | |
32461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32463 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32464 | ac_status=$? |
ac1cb8d3 VS |
32465 | grep -v '^ *+' conftest.er1 >conftest.err |
32466 | rm -f conftest.er1 | |
32467 | cat conftest.err >&5 | |
a848cd7e SC |
32468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32469 | (exit $ac_status); } && | |
ea7db9ff DE |
32470 | { ac_try='test -z "$ac_c_werror_flag" |
32471 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32473 | (eval $ac_try) 2>&5 | |
32474 | ac_status=$? | |
32475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32476 | (exit $ac_status); }; } && | |
32477 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32479 | (eval $ac_try) 2>&5 | |
32480 | ac_status=$? | |
32481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32482 | (exit $ac_status); }; }; then | |
32483 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32484 | else | |
32485 | echo "$as_me: failed program was:" >&5 | |
32486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32487 | ||
32488 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32489 | fi | |
ac1cb8d3 VS |
32490 | rm -f conftest.err conftest.$ac_objext \ |
32491 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32492 | fi |
32493 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32494 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32495 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32496 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32497 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32498 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32500 | else | |
32501 | cat >conftest.$ac_ext <<_ACEOF | |
32502 | /* confdefs.h. */ | |
32503 | _ACEOF | |
32504 | cat confdefs.h >>conftest.$ac_ext | |
32505 | cat >>conftest.$ac_ext <<_ACEOF | |
32506 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32507 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32509 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32510 | ||
a848cd7e SC |
32511 | /* System header to define __stub macros and hopefully few prototypes, |
32512 | which can conflict with char pthread_attr_setschedparam (); below. | |
32513 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32514 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32515 | |
a848cd7e SC |
32516 | #ifdef __STDC__ |
32517 | # include <limits.h> | |
32518 | #else | |
32519 | # include <assert.h> | |
32520 | #endif | |
ac1cb8d3 VS |
32521 | |
32522 | #undef pthread_attr_setschedparam | |
32523 | ||
a848cd7e SC |
32524 | /* Override any gcc2 internal prototype to avoid an error. */ |
32525 | #ifdef __cplusplus | |
32526 | extern "C" | |
32527 | { | |
32528 | #endif | |
32529 | /* We use char because int might match the return type of a gcc2 | |
32530 | builtin and then its argument prototype would still apply. */ | |
32531 | char pthread_attr_setschedparam (); | |
32532 | /* The GNU C library defines this for functions which it implements | |
32533 | to always fail with ENOSYS. Some functions are actually named | |
32534 | something starting with __ and the normal name is an alias. */ | |
32535 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32536 | choke me | |
32537 | #else | |
32538 | char (*f) () = pthread_attr_setschedparam; | |
32539 | #endif | |
32540 | #ifdef __cplusplus | |
32541 | } | |
32542 | #endif | |
32543 | ||
32544 | int | |
32545 | main () | |
32546 | { | |
32547 | return f != pthread_attr_setschedparam; | |
32548 | ; | |
32549 | return 0; | |
32550 | } | |
32551 | _ACEOF | |
32552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32554 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32555 | ac_status=$? |
ac1cb8d3 VS |
32556 | grep -v '^ *+' conftest.er1 >conftest.err |
32557 | rm -f conftest.er1 | |
32558 | cat conftest.err >&5 | |
a848cd7e SC |
32559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32560 | (exit $ac_status); } && | |
ea7db9ff DE |
32561 | { ac_try='test -z "$ac_c_werror_flag" |
32562 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32564 | (eval $ac_try) 2>&5 | |
32565 | ac_status=$? | |
32566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32567 | (exit $ac_status); }; } && | |
32568 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32570 | (eval $ac_try) 2>&5 | |
32571 | ac_status=$? | |
32572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32573 | (exit $ac_status); }; }; then | |
32574 | ac_cv_func_pthread_attr_setschedparam=yes | |
32575 | else | |
32576 | echo "$as_me: failed program was:" >&5 | |
32577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32578 | ||
32579 | ac_cv_func_pthread_attr_setschedparam=no | |
32580 | fi | |
ac1cb8d3 VS |
32581 | rm -f conftest.err conftest.$ac_objext \ |
32582 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32583 | fi |
32584 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32585 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32586 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32587 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32588 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32589 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32591 | else | |
32592 | cat >conftest.$ac_ext <<_ACEOF | |
32593 | /* confdefs.h. */ | |
32594 | _ACEOF | |
32595 | cat confdefs.h >>conftest.$ac_ext | |
32596 | cat >>conftest.$ac_ext <<_ACEOF | |
32597 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32598 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32600 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32601 | ||
a848cd7e SC |
32602 | /* System header to define __stub macros and hopefully few prototypes, |
32603 | which can conflict with char sched_get_priority_max (); below. | |
32604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32605 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32606 | |
a848cd7e SC |
32607 | #ifdef __STDC__ |
32608 | # include <limits.h> | |
32609 | #else | |
32610 | # include <assert.h> | |
32611 | #endif | |
ac1cb8d3 VS |
32612 | |
32613 | #undef sched_get_priority_max | |
32614 | ||
a848cd7e SC |
32615 | /* Override any gcc2 internal prototype to avoid an error. */ |
32616 | #ifdef __cplusplus | |
32617 | extern "C" | |
32618 | { | |
32619 | #endif | |
32620 | /* We use char because int might match the return type of a gcc2 | |
32621 | builtin and then its argument prototype would still apply. */ | |
32622 | char sched_get_priority_max (); | |
32623 | /* The GNU C library defines this for functions which it implements | |
32624 | to always fail with ENOSYS. Some functions are actually named | |
32625 | something starting with __ and the normal name is an alias. */ | |
32626 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32627 | choke me | |
32628 | #else | |
32629 | char (*f) () = sched_get_priority_max; | |
32630 | #endif | |
32631 | #ifdef __cplusplus | |
32632 | } | |
32633 | #endif | |
32634 | ||
32635 | int | |
32636 | main () | |
32637 | { | |
32638 | return f != sched_get_priority_max; | |
32639 | ; | |
32640 | return 0; | |
32641 | } | |
32642 | _ACEOF | |
32643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32645 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32646 | ac_status=$? |
ac1cb8d3 VS |
32647 | grep -v '^ *+' conftest.er1 >conftest.err |
32648 | rm -f conftest.er1 | |
32649 | cat conftest.err >&5 | |
a848cd7e SC |
32650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32651 | (exit $ac_status); } && | |
ea7db9ff DE |
32652 | { ac_try='test -z "$ac_c_werror_flag" |
32653 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32655 | (eval $ac_try) 2>&5 | |
32656 | ac_status=$? | |
32657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32658 | (exit $ac_status); }; } && | |
32659 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32661 | (eval $ac_try) 2>&5 | |
32662 | ac_status=$? | |
32663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32664 | (exit $ac_status); }; }; then | |
32665 | ac_cv_func_sched_get_priority_max=yes | |
32666 | else | |
32667 | echo "$as_me: failed program was:" >&5 | |
32668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32669 | ||
32670 | ac_cv_func_sched_get_priority_max=no | |
32671 | fi | |
ac1cb8d3 VS |
32672 | rm -f conftest.err conftest.$ac_objext \ |
32673 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32674 | fi |
32675 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32676 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32677 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32678 | HAVE_PRIOR_FUNCS=1 | |
32679 | else | |
32680 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32681 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32682 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32684 | else | |
32685 | ac_check_lib_save_LIBS=$LIBS | |
32686 | LIBS="-lposix4 $LIBS" | |
32687 | cat >conftest.$ac_ext <<_ACEOF | |
32688 | /* confdefs.h. */ | |
32689 | _ACEOF | |
32690 | cat confdefs.h >>conftest.$ac_ext | |
32691 | cat >>conftest.$ac_ext <<_ACEOF | |
32692 | /* end confdefs.h. */ | |
32693 | ||
32694 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32695 | #ifdef __cplusplus | |
32696 | extern "C" | |
32697 | #endif | |
32698 | /* We use char because int might match the return type of a gcc2 | |
32699 | builtin and then its argument prototype would still apply. */ | |
32700 | char sched_get_priority_max (); | |
32701 | int | |
32702 | main () | |
32703 | { | |
32704 | sched_get_priority_max (); | |
32705 | ; | |
32706 | return 0; | |
32707 | } | |
32708 | _ACEOF | |
32709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32711 | (eval $ac_link) 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); } && | |
ea7db9ff DE |
32718 | { ac_try='test -z "$ac_c_werror_flag" |
32719 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32721 | (eval $ac_try) 2>&5 | |
32722 | ac_status=$? | |
32723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32724 | (exit $ac_status); }; } && | |
32725 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32727 | (eval $ac_try) 2>&5 | |
32728 | ac_status=$? | |
32729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32730 | (exit $ac_status); }; }; then | |
32731 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32732 | else | |
32733 | echo "$as_me: failed program was:" >&5 | |
32734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32735 | ||
32736 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32737 | fi | |
ac1cb8d3 VS |
32738 | rm -f conftest.err conftest.$ac_objext \ |
32739 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32740 | LIBS=$ac_check_lib_save_LIBS |
32741 | fi | |
32742 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32743 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32744 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32745 | ||
32746 | HAVE_PRIOR_FUNCS=1 | |
32747 | POSIX4_LINK=" -lposix4" | |
32748 | ||
32749 | fi | |
32750 | ||
32751 | ||
32752 | fi | |
32753 | ||
32754 | ||
32755 | fi | |
32756 | ||
32757 | ||
32758 | fi | |
32759 | ||
32760 | ||
32761 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32762 | cat >>confdefs.h <<\_ACEOF | |
32763 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32764 | _ACEOF | |
32765 | ||
32766 | else | |
32767 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32768 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32769 | fi | |
32770 | ||
32771 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32772 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32773 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32775 | else | |
32776 | cat >conftest.$ac_ext <<_ACEOF | |
32777 | /* confdefs.h. */ | |
32778 | _ACEOF | |
32779 | cat confdefs.h >>conftest.$ac_ext | |
32780 | cat >>conftest.$ac_ext <<_ACEOF | |
32781 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32782 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32783 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32784 | #define pthread_cancel innocuous_pthread_cancel | |
32785 | ||
a848cd7e SC |
32786 | /* System header to define __stub macros and hopefully few prototypes, |
32787 | which can conflict with char pthread_cancel (); below. | |
32788 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32789 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32790 | |
a848cd7e SC |
32791 | #ifdef __STDC__ |
32792 | # include <limits.h> | |
32793 | #else | |
32794 | # include <assert.h> | |
32795 | #endif | |
ac1cb8d3 VS |
32796 | |
32797 | #undef pthread_cancel | |
32798 | ||
a848cd7e SC |
32799 | /* Override any gcc2 internal prototype to avoid an error. */ |
32800 | #ifdef __cplusplus | |
32801 | extern "C" | |
32802 | { | |
32803 | #endif | |
32804 | /* We use char because int might match the return type of a gcc2 | |
32805 | builtin and then its argument prototype would still apply. */ | |
32806 | char pthread_cancel (); | |
32807 | /* The GNU C library defines this for functions which it implements | |
32808 | to always fail with ENOSYS. Some functions are actually named | |
32809 | something starting with __ and the normal name is an alias. */ | |
32810 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32811 | choke me | |
32812 | #else | |
32813 | char (*f) () = pthread_cancel; | |
32814 | #endif | |
32815 | #ifdef __cplusplus | |
32816 | } | |
32817 | #endif | |
32818 | ||
32819 | int | |
32820 | main () | |
32821 | { | |
32822 | return f != pthread_cancel; | |
32823 | ; | |
32824 | return 0; | |
32825 | } | |
32826 | _ACEOF | |
32827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32829 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32830 | ac_status=$? |
ac1cb8d3 VS |
32831 | grep -v '^ *+' conftest.er1 >conftest.err |
32832 | rm -f conftest.er1 | |
32833 | cat conftest.err >&5 | |
a848cd7e SC |
32834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32835 | (exit $ac_status); } && | |
ea7db9ff DE |
32836 | { ac_try='test -z "$ac_c_werror_flag" |
32837 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32839 | (eval $ac_try) 2>&5 | |
32840 | ac_status=$? | |
32841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32842 | (exit $ac_status); }; } && | |
32843 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32845 | (eval $ac_try) 2>&5 | |
32846 | ac_status=$? | |
32847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32848 | (exit $ac_status); }; }; then | |
32849 | ac_cv_func_pthread_cancel=yes | |
32850 | else | |
32851 | echo "$as_me: failed program was:" >&5 | |
32852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32853 | ||
32854 | ac_cv_func_pthread_cancel=no | |
32855 | fi | |
ac1cb8d3 VS |
32856 | rm -f conftest.err conftest.$ac_objext \ |
32857 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32858 | fi |
32859 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32860 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32861 | if test $ac_cv_func_pthread_cancel = yes; then | |
32862 | cat >>confdefs.h <<\_ACEOF | |
32863 | #define HAVE_PTHREAD_CANCEL 1 | |
32864 | _ACEOF | |
32865 | ||
32866 | else | |
32867 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
32868 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
32869 | fi | |
32870 | ||
32871 | ||
32872 | ||
32873 | ||
32874 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32875 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32876 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32878 | else | |
32879 | ||
32880 | cat >conftest.$ac_ext <<_ACEOF | |
32881 | /* confdefs.h. */ | |
32882 | _ACEOF | |
32883 | cat confdefs.h >>conftest.$ac_ext | |
32884 | cat >>conftest.$ac_ext <<_ACEOF | |
32885 | /* end confdefs.h. */ | |
32886 | #include <pthread.h> | |
32887 | int | |
32888 | main () | |
32889 | { | |
32890 | ||
32891 | pthread_mutexattr_t attr; | |
32892 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
32893 | ||
32894 | ; | |
32895 | return 0; | |
32896 | } | |
32897 | _ACEOF | |
32898 | rm -f conftest.$ac_objext | |
32899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32901 | ac_status=$? |
ac1cb8d3 VS |
32902 | grep -v '^ *+' conftest.er1 >conftest.err |
32903 | rm -f conftest.er1 | |
32904 | cat conftest.err >&5 | |
a848cd7e SC |
32905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32906 | (exit $ac_status); } && | |
ea7db9ff DE |
32907 | { ac_try='test -z "$ac_c_werror_flag" |
32908 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32910 | (eval $ac_try) 2>&5 | |
32911 | ac_status=$? | |
32912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32913 | (exit $ac_status); }; } && | |
32914 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32916 | (eval $ac_try) 2>&5 | |
32917 | ac_status=$? | |
32918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32919 | (exit $ac_status); }; }; then | |
32920 | ||
32921 | wx_cv_type_pthread_mutexattr_t=yes | |
32922 | ||
32923 | else | |
32924 | echo "$as_me: failed program was:" >&5 | |
32925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32926 | ||
32927 | ||
32928 | wx_cv_type_pthread_mutexattr_t=no | |
32929 | ||
32930 | ||
32931 | fi | |
ac1cb8d3 | 32932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32933 | |
32934 | fi | |
32935 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32936 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
32937 | ||
32938 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
32939 | cat >>confdefs.h <<\_ACEOF | |
32940 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
32941 | _ACEOF | |
32942 | ||
32943 | else | |
32944 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
32945 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32946 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32948 | else | |
32949 | ||
32950 | cat >conftest.$ac_ext <<_ACEOF | |
32951 | /* confdefs.h. */ | |
32952 | _ACEOF | |
32953 | cat confdefs.h >>conftest.$ac_ext | |
32954 | cat >>conftest.$ac_ext <<_ACEOF | |
32955 | /* end confdefs.h. */ | |
32956 | #include <pthread.h> | |
32957 | int | |
32958 | main () | |
32959 | { | |
32960 | ||
32961 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
32962 | ||
32963 | ; | |
32964 | return 0; | |
32965 | } | |
32966 | _ACEOF | |
32967 | rm -f conftest.$ac_objext | |
32968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32969 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32970 | ac_status=$? |
ac1cb8d3 VS |
32971 | grep -v '^ *+' conftest.er1 >conftest.err |
32972 | rm -f conftest.er1 | |
32973 | cat conftest.err >&5 | |
a848cd7e SC |
32974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32975 | (exit $ac_status); } && | |
ea7db9ff DE |
32976 | { ac_try='test -z "$ac_c_werror_flag" |
32977 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32979 | (eval $ac_try) 2>&5 | |
32980 | ac_status=$? | |
32981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32982 | (exit $ac_status); }; } && | |
32983 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32985 | (eval $ac_try) 2>&5 | |
32986 | ac_status=$? | |
32987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32988 | (exit $ac_status); }; }; then | |
32989 | ||
32990 | wx_cv_type_pthread_rec_mutex_init=yes | |
32991 | ||
32992 | else | |
32993 | echo "$as_me: failed program was:" >&5 | |
32994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32995 | ||
32996 | ||
32997 | wx_cv_type_pthread_rec_mutex_init=no | |
32998 | ||
32999 | ||
33000 | fi | |
ac1cb8d3 | 33001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33002 | |
33003 | fi | |
33004 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33005 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
33006 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
33007 | cat >>confdefs.h <<\_ACEOF | |
33008 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
33009 | _ACEOF | |
33010 | ||
33011 | else | |
33012 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
33013 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
33014 | fi | |
33015 | fi | |
33016 | fi | |
33017 | ||
33018 | else | |
33019 | if test "$wxUSE_THREADS" = "yes" ; then | |
33020 | case "${host}" in | |
33021 | *-*-mingw32* ) | |
33022 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
33023 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33024 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33026 | else | |
33027 | ||
33028 | CFLAGS_OLD="$CFLAGS" | |
33029 | CFLAGS="$CFLAGS -mthreads" | |
33030 | cat >conftest.$ac_ext <<_ACEOF | |
33031 | /* confdefs.h. */ | |
33032 | _ACEOF | |
33033 | cat confdefs.h >>conftest.$ac_ext | |
33034 | cat >>conftest.$ac_ext <<_ACEOF | |
33035 | /* end confdefs.h. */ | |
33036 | ||
33037 | int | |
33038 | main () | |
33039 | { | |
33040 | ||
33041 | ; | |
33042 | return 0; | |
33043 | } | |
33044 | _ACEOF | |
33045 | rm -f conftest.$ac_objext | |
33046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33047 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33048 | ac_status=$? |
ac1cb8d3 VS |
33049 | grep -v '^ *+' conftest.er1 >conftest.err |
33050 | rm -f conftest.er1 | |
33051 | cat conftest.err >&5 | |
a848cd7e SC |
33052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33053 | (exit $ac_status); } && | |
ea7db9ff DE |
33054 | { ac_try='test -z "$ac_c_werror_flag" |
33055 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33057 | (eval $ac_try) 2>&5 | |
33058 | ac_status=$? | |
33059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33060 | (exit $ac_status); }; } && | |
33061 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33063 | (eval $ac_try) 2>&5 | |
33064 | ac_status=$? | |
33065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33066 | (exit $ac_status); }; }; then | |
33067 | wx_cv_cflags_mthread=yes | |
33068 | else | |
33069 | echo "$as_me: failed program was:" >&5 | |
33070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33071 | ||
33072 | wx_cv_cflags_mthread=no | |
33073 | ||
33074 | fi | |
ac1cb8d3 | 33075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33076 | |
33077 | ||
33078 | fi | |
33079 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33080 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33081 | ||
33082 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33083 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33084 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33085 | LDFLAGS="$LDFLAGS -mthreads" | |
33086 | else | |
33087 | CFLAGS="$CFLAGS_OLD" | |
33088 | fi | |
33089 | ;; | |
33090 | *-pc-os2*emx ) | |
33091 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33092 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33093 | LDFLAGS="$LDFLAGS -Zmt" | |
33094 | ;; | |
33095 | esac | |
33096 | fi | |
33097 | fi | |
33098 | ||
33099 | if test "$wxUSE_THREADS" = "yes"; then | |
33100 | cat >>confdefs.h <<\_ACEOF | |
33101 | #define wxUSE_THREADS 1 | |
33102 | _ACEOF | |
33103 | ||
33104 | ||
33105 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33106 | else | |
33107 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33108 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33109 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33110 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33111 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33112 | echo "$as_me:$LINENO: result: yes" >&5 | |
33113 | echo "${ECHO_T}yes" >&6 | |
33114 | else | |
33115 | echo "$as_me:$LINENO: result: no" >&5 | |
33116 | echo "${ECHO_T}no" >&6 | |
33117 | fi | |
33118 | fi | |
33119 | fi | |
33120 | ||
33121 | if test "$WXGTK20" = 1 ; then | |
33122 | cat >>confdefs.h <<_ACEOF | |
33123 | #define __WXGTK20__ $WXGTK20 | |
33124 | _ACEOF | |
33125 | ||
33126 | WXGTK12=1 | |
33127 | fi | |
33128 | ||
33129 | if test "$WXGTK12" = 1 ; then | |
33130 | cat >>confdefs.h <<_ACEOF | |
33131 | #define __WXGTK12__ $WXGTK12 | |
33132 | _ACEOF | |
33133 | ||
33134 | fi | |
33135 | ||
33136 | if test "$WXGTK127" = 1 ; then | |
33137 | cat >>confdefs.h <<_ACEOF | |
33138 | #define __WXGTK127__ $WXGTK127 | |
33139 | _ACEOF | |
33140 | ||
33141 | fi | |
33142 | ||
33143 | if test "$WXGPE" = 1 ; then | |
33144 | cat >>confdefs.h <<_ACEOF | |
33145 | #define __WXGPE__ $WXGPE | |
33146 | _ACEOF | |
33147 | ||
33148 | fi | |
33149 | ||
33150 | WXDEBUG= | |
33151 | ||
33152 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33153 | WXDEBUG="-g" | |
33154 | wxUSE_OPTIMISE=no | |
33155 | fi | |
33156 | ||
33157 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33158 | wxUSE_DEBUG_INFO=yes | |
33159 | WXDEBUG="-ggdb" | |
33160 | fi | |
33161 | ||
33162 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33163 | cat >>confdefs.h <<\_ACEOF | |
33164 | #define WXDEBUG 1 | |
33165 | _ACEOF | |
33166 | ||
33167 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33168 | else | |
33169 | if test "$wxUSE_GTK" = 1 ; then | |
33170 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33171 | fi | |
33172 | fi | |
33173 | ||
33174 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33175 | cat >>confdefs.h <<\_ACEOF | |
33176 | #define wxUSE_MEMORY_TRACING 1 | |
33177 | _ACEOF | |
33178 | ||
33179 | cat >>confdefs.h <<\_ACEOF | |
33180 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33181 | _ACEOF | |
33182 | ||
33183 | cat >>confdefs.h <<\_ACEOF | |
33184 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33185 | _ACEOF | |
33186 | ||
33187 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33188 | fi | |
33189 | ||
33190 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33191 | DMALLOC_LIBS="-ldmalloc" | |
33192 | fi | |
33193 | ||
33194 | PROFILE= | |
33195 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33196 | PROFILE=" -pg" | |
33197 | fi | |
33198 | ||
33199 | CODE_GEN_FLAGS= | |
33200 | CODE_GEN_FLAGS_CXX= | |
33201 | if test "$GCC" = "yes" ; then | |
33202 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33203 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33204 | fi | |
33205 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33206 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33207 | fi | |
33208 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33209 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33210 | fi | |
33211 | ||
33212 | case "${host}" in | |
33213 | powerpc*-*-aix* ) | |
33214 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33215 | ;; | |
33216 | *-hppa* ) | |
33217 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33218 | ;; | |
33219 | esac | |
33220 | fi | |
33221 | ||
33222 | OPTIMISE= | |
33223 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33224 | if test "$GCC" = yes ; then | |
33225 | OPTIMISE="-O0" | |
33226 | fi | |
33227 | else | |
33228 | if test "$GCC" = yes ; then | |
33229 | OPTIMISE="-O2" | |
33230 | ||
33231 | case "${host}" in | |
33232 | i586-*-*|i686-*-* ) | |
33233 | OPTIMISE="${OPTIMISE} " | |
33234 | ;; | |
33235 | esac | |
33236 | else | |
33237 | OPTIMISE="-O" | |
33238 | fi | |
33239 | fi | |
33240 | ||
33241 | ||
33242 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33243 | cat >>confdefs.h <<\_ACEOF | |
33244 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33245 | _ACEOF | |
33246 | ||
33247 | ||
33248 | WXWIN_COMPATIBILITY_2_4="yes" | |
33249 | fi | |
33250 | ||
33251 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33252 | cat >>confdefs.h <<\_ACEOF | |
33253 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33254 | _ACEOF | |
33255 | ||
33256 | fi | |
33257 | ||
33258 | ||
33259 | if test "$wxUSE_GUI" = "yes"; then | |
33260 | cat >>confdefs.h <<\_ACEOF | |
33261 | #define wxUSE_GUI 1 | |
33262 | _ACEOF | |
33263 | ||
33264 | ||
33265 | else | |
33266 | cat >>confdefs.h <<\_ACEOF | |
33267 | #define wxUSE_NOGUI 1 | |
33268 | _ACEOF | |
33269 | ||
33270 | fi | |
33271 | ||
33272 | ||
33273 | if test "$wxUSE_UNIX" = "yes"; then | |
33274 | cat >>confdefs.h <<\_ACEOF | |
33275 | #define wxUSE_UNIX 1 | |
33276 | _ACEOF | |
33277 | ||
33278 | fi | |
33279 | ||
33280 | ||
33281 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33282 | ||
33283 | HAVE_DL_FUNCS=0 | |
33284 | HAVE_SHL_FUNCS=0 | |
33285 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33286 | if test "$USE_DARWIN" = 1; then | |
33287 | HAVE_DL_FUNCS=1 | |
33288 | else | |
33289 | ||
33290 | for ac_func in dlopen | |
33291 | do | |
33292 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33293 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33294 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33295 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33297 | else | |
33298 | cat >conftest.$ac_ext <<_ACEOF | |
33299 | /* confdefs.h. */ | |
33300 | _ACEOF | |
33301 | cat confdefs.h >>conftest.$ac_ext | |
33302 | cat >>conftest.$ac_ext <<_ACEOF | |
33303 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33304 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33306 | #define $ac_func innocuous_$ac_func | |
33307 | ||
a848cd7e SC |
33308 | /* System header to define __stub macros and hopefully few prototypes, |
33309 | which can conflict with char $ac_func (); below. | |
33310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33311 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33312 | |
a848cd7e SC |
33313 | #ifdef __STDC__ |
33314 | # include <limits.h> | |
33315 | #else | |
33316 | # include <assert.h> | |
33317 | #endif | |
ac1cb8d3 VS |
33318 | |
33319 | #undef $ac_func | |
33320 | ||
a848cd7e SC |
33321 | /* Override any gcc2 internal prototype to avoid an error. */ |
33322 | #ifdef __cplusplus | |
33323 | extern "C" | |
33324 | { | |
33325 | #endif | |
33326 | /* We use char because int might match the return type of a gcc2 | |
33327 | builtin and then its argument prototype would still apply. */ | |
33328 | char $ac_func (); | |
33329 | /* The GNU C library defines this for functions which it implements | |
33330 | to always fail with ENOSYS. Some functions are actually named | |
33331 | something starting with __ and the normal name is an alias. */ | |
33332 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33333 | choke me | |
33334 | #else | |
33335 | char (*f) () = $ac_func; | |
33336 | #endif | |
33337 | #ifdef __cplusplus | |
33338 | } | |
33339 | #endif | |
33340 | ||
33341 | int | |
33342 | main () | |
33343 | { | |
33344 | return f != $ac_func; | |
33345 | ; | |
33346 | return 0; | |
33347 | } | |
33348 | _ACEOF | |
33349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33351 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33352 | ac_status=$? |
ac1cb8d3 VS |
33353 | grep -v '^ *+' conftest.er1 >conftest.err |
33354 | rm -f conftest.er1 | |
33355 | cat conftest.err >&5 | |
a848cd7e SC |
33356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33357 | (exit $ac_status); } && | |
ea7db9ff DE |
33358 | { ac_try='test -z "$ac_c_werror_flag" |
33359 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33361 | (eval $ac_try) 2>&5 | |
33362 | ac_status=$? | |
33363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33364 | (exit $ac_status); }; } && | |
33365 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33367 | (eval $ac_try) 2>&5 | |
33368 | ac_status=$? | |
33369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33370 | (exit $ac_status); }; }; then | |
33371 | eval "$as_ac_var=yes" | |
33372 | else | |
33373 | echo "$as_me: failed program was:" >&5 | |
33374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33375 | ||
33376 | eval "$as_ac_var=no" | |
33377 | fi | |
ac1cb8d3 VS |
33378 | rm -f conftest.err conftest.$ac_objext \ |
33379 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33380 | fi |
33381 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33382 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33383 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33384 | cat >>confdefs.h <<_ACEOF | |
33385 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33386 | _ACEOF | |
33387 | ||
33388 | cat >>confdefs.h <<\_ACEOF | |
33389 | #define HAVE_DLOPEN 1 | |
33390 | _ACEOF | |
33391 | ||
33392 | HAVE_DL_FUNCS=1 | |
33393 | ||
33394 | else | |
33395 | ||
33396 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33397 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33398 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33400 | else | |
33401 | ac_check_lib_save_LIBS=$LIBS | |
33402 | LIBS="-ldl $LIBS" | |
33403 | cat >conftest.$ac_ext <<_ACEOF | |
33404 | /* confdefs.h. */ | |
33405 | _ACEOF | |
33406 | cat confdefs.h >>conftest.$ac_ext | |
33407 | cat >>conftest.$ac_ext <<_ACEOF | |
33408 | /* end confdefs.h. */ | |
33409 | ||
33410 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33411 | #ifdef __cplusplus | |
33412 | extern "C" | |
33413 | #endif | |
33414 | /* We use char because int might match the return type of a gcc2 | |
33415 | builtin and then its argument prototype would still apply. */ | |
33416 | char dlopen (); | |
33417 | int | |
33418 | main () | |
33419 | { | |
33420 | dlopen (); | |
33421 | ; | |
33422 | return 0; | |
33423 | } | |
33424 | _ACEOF | |
33425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33427 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33428 | ac_status=$? |
ac1cb8d3 VS |
33429 | grep -v '^ *+' conftest.er1 >conftest.err |
33430 | rm -f conftest.er1 | |
33431 | cat conftest.err >&5 | |
a848cd7e SC |
33432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33433 | (exit $ac_status); } && | |
ea7db9ff DE |
33434 | { ac_try='test -z "$ac_c_werror_flag" |
33435 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33437 | (eval $ac_try) 2>&5 | |
33438 | ac_status=$? | |
33439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33440 | (exit $ac_status); }; } && | |
33441 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33443 | (eval $ac_try) 2>&5 | |
33444 | ac_status=$? | |
33445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33446 | (exit $ac_status); }; }; then | |
33447 | ac_cv_lib_dl_dlopen=yes | |
33448 | else | |
33449 | echo "$as_me: failed program was:" >&5 | |
33450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33451 | ||
33452 | ac_cv_lib_dl_dlopen=no | |
33453 | fi | |
ac1cb8d3 VS |
33454 | rm -f conftest.err conftest.$ac_objext \ |
33455 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33456 | LIBS=$ac_check_lib_save_LIBS |
33457 | fi | |
33458 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33459 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33460 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33461 | ||
33462 | cat >>confdefs.h <<\_ACEOF | |
33463 | #define HAVE_DLOPEN 1 | |
33464 | _ACEOF | |
33465 | ||
33466 | HAVE_DL_FUNCS=1 | |
33467 | DL_LINK=" -ldl$DL_LINK" | |
33468 | ||
33469 | else | |
33470 | ||
33471 | ||
33472 | for ac_func in shl_load | |
33473 | do | |
33474 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33475 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33476 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33477 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33479 | else | |
33480 | cat >conftest.$ac_ext <<_ACEOF | |
33481 | /* confdefs.h. */ | |
33482 | _ACEOF | |
33483 | cat confdefs.h >>conftest.$ac_ext | |
33484 | cat >>conftest.$ac_ext <<_ACEOF | |
33485 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33486 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33487 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33488 | #define $ac_func innocuous_$ac_func | |
33489 | ||
a848cd7e SC |
33490 | /* System header to define __stub macros and hopefully few prototypes, |
33491 | which can conflict with char $ac_func (); below. | |
33492 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33493 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33494 | |
a848cd7e SC |
33495 | #ifdef __STDC__ |
33496 | # include <limits.h> | |
33497 | #else | |
33498 | # include <assert.h> | |
33499 | #endif | |
ac1cb8d3 VS |
33500 | |
33501 | #undef $ac_func | |
33502 | ||
a848cd7e SC |
33503 | /* Override any gcc2 internal prototype to avoid an error. */ |
33504 | #ifdef __cplusplus | |
33505 | extern "C" | |
33506 | { | |
33507 | #endif | |
33508 | /* We use char because int might match the return type of a gcc2 | |
33509 | builtin and then its argument prototype would still apply. */ | |
33510 | char $ac_func (); | |
33511 | /* The GNU C library defines this for functions which it implements | |
33512 | to always fail with ENOSYS. Some functions are actually named | |
33513 | something starting with __ and the normal name is an alias. */ | |
33514 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33515 | choke me | |
33516 | #else | |
33517 | char (*f) () = $ac_func; | |
33518 | #endif | |
33519 | #ifdef __cplusplus | |
33520 | } | |
33521 | #endif | |
33522 | ||
33523 | int | |
33524 | main () | |
33525 | { | |
33526 | return f != $ac_func; | |
33527 | ; | |
33528 | return 0; | |
33529 | } | |
33530 | _ACEOF | |
33531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33533 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33534 | ac_status=$? |
ac1cb8d3 VS |
33535 | grep -v '^ *+' conftest.er1 >conftest.err |
33536 | rm -f conftest.er1 | |
33537 | cat conftest.err >&5 | |
a848cd7e SC |
33538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33539 | (exit $ac_status); } && | |
ea7db9ff DE |
33540 | { ac_try='test -z "$ac_c_werror_flag" |
33541 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
33547 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33549 | (eval $ac_try) 2>&5 | |
33550 | ac_status=$? | |
33551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33552 | (exit $ac_status); }; }; then | |
33553 | eval "$as_ac_var=yes" | |
33554 | else | |
33555 | echo "$as_me: failed program was:" >&5 | |
33556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33557 | ||
33558 | eval "$as_ac_var=no" | |
33559 | fi | |
ac1cb8d3 VS |
33560 | rm -f conftest.err conftest.$ac_objext \ |
33561 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33562 | fi |
33563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33564 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33565 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33566 | cat >>confdefs.h <<_ACEOF | |
33567 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33568 | _ACEOF | |
33569 | ||
33570 | cat >>confdefs.h <<\_ACEOF | |
33571 | #define HAVE_SHL_LOAD 1 | |
33572 | _ACEOF | |
33573 | ||
33574 | HAVE_SHL_FUNCS=1 | |
33575 | ||
33576 | else | |
33577 | ||
33578 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33579 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33580 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33582 | else | |
33583 | ac_check_lib_save_LIBS=$LIBS | |
33584 | LIBS="-lshl_load $LIBS" | |
33585 | cat >conftest.$ac_ext <<_ACEOF | |
33586 | /* confdefs.h. */ | |
33587 | _ACEOF | |
33588 | cat confdefs.h >>conftest.$ac_ext | |
33589 | cat >>conftest.$ac_ext <<_ACEOF | |
33590 | /* end confdefs.h. */ | |
33591 | ||
33592 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33593 | #ifdef __cplusplus | |
33594 | extern "C" | |
33595 | #endif | |
33596 | /* We use char because int might match the return type of a gcc2 | |
33597 | builtin and then its argument prototype would still apply. */ | |
33598 | char dld (); | |
33599 | int | |
33600 | main () | |
33601 | { | |
33602 | dld (); | |
33603 | ; | |
33604 | return 0; | |
33605 | } | |
33606 | _ACEOF | |
33607 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33609 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33610 | ac_status=$? |
ac1cb8d3 VS |
33611 | grep -v '^ *+' conftest.er1 >conftest.err |
33612 | rm -f conftest.er1 | |
33613 | cat conftest.err >&5 | |
a848cd7e SC |
33614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33615 | (exit $ac_status); } && | |
ea7db9ff DE |
33616 | { ac_try='test -z "$ac_c_werror_flag" |
33617 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33619 | (eval $ac_try) 2>&5 | |
33620 | ac_status=$? | |
33621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33622 | (exit $ac_status); }; } && | |
33623 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33625 | (eval $ac_try) 2>&5 | |
33626 | ac_status=$? | |
33627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33628 | (exit $ac_status); }; }; then | |
33629 | ac_cv_lib_shl_load_dld=yes | |
33630 | else | |
33631 | echo "$as_me: failed program was:" >&5 | |
33632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33633 | ||
33634 | ac_cv_lib_shl_load_dld=no | |
33635 | fi | |
ac1cb8d3 VS |
33636 | rm -f conftest.err conftest.$ac_objext \ |
33637 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33638 | LIBS=$ac_check_lib_save_LIBS |
33639 | fi | |
33640 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33641 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33642 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33643 | ||
33644 | HAVE_SHL_FUNCS=1 | |
33645 | DL_LINK=" -ldld$DL_LINK" | |
33646 | ||
33647 | fi | |
33648 | ||
33649 | ||
33650 | fi | |
33651 | done | |
33652 | ||
33653 | ||
33654 | fi | |
33655 | ||
33656 | ||
33657 | fi | |
33658 | done | |
33659 | ||
33660 | ||
33661 | if test "$HAVE_DL_FUNCS" = 1; then | |
33662 | ||
33663 | for ac_func in dlerror | |
33664 | do | |
33665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33666 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33668 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33670 | else | |
33671 | cat >conftest.$ac_ext <<_ACEOF | |
33672 | /* confdefs.h. */ | |
33673 | _ACEOF | |
33674 | cat confdefs.h >>conftest.$ac_ext | |
33675 | cat >>conftest.$ac_ext <<_ACEOF | |
33676 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33677 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33679 | #define $ac_func innocuous_$ac_func | |
33680 | ||
a848cd7e SC |
33681 | /* System header to define __stub macros and hopefully few prototypes, |
33682 | which can conflict with char $ac_func (); below. | |
33683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33684 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33685 | |
a848cd7e SC |
33686 | #ifdef __STDC__ |
33687 | # include <limits.h> | |
33688 | #else | |
33689 | # include <assert.h> | |
33690 | #endif | |
ac1cb8d3 VS |
33691 | |
33692 | #undef $ac_func | |
33693 | ||
a848cd7e SC |
33694 | /* Override any gcc2 internal prototype to avoid an error. */ |
33695 | #ifdef __cplusplus | |
33696 | extern "C" | |
33697 | { | |
33698 | #endif | |
33699 | /* We use char because int might match the return type of a gcc2 | |
33700 | builtin and then its argument prototype would still apply. */ | |
33701 | char $ac_func (); | |
33702 | /* The GNU C library defines this for functions which it implements | |
33703 | to always fail with ENOSYS. Some functions are actually named | |
33704 | something starting with __ and the normal name is an alias. */ | |
33705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33706 | choke me | |
33707 | #else | |
33708 | char (*f) () = $ac_func; | |
33709 | #endif | |
33710 | #ifdef __cplusplus | |
33711 | } | |
33712 | #endif | |
33713 | ||
33714 | int | |
33715 | main () | |
33716 | { | |
33717 | return f != $ac_func; | |
33718 | ; | |
33719 | return 0; | |
33720 | } | |
33721 | _ACEOF | |
33722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33724 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33725 | ac_status=$? |
ac1cb8d3 VS |
33726 | grep -v '^ *+' conftest.er1 >conftest.err |
33727 | rm -f conftest.er1 | |
33728 | cat conftest.err >&5 | |
a848cd7e SC |
33729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33730 | (exit $ac_status); } && | |
ea7db9ff DE |
33731 | { ac_try='test -z "$ac_c_werror_flag" |
33732 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33734 | (eval $ac_try) 2>&5 | |
33735 | ac_status=$? | |
33736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33737 | (exit $ac_status); }; } && | |
33738 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33740 | (eval $ac_try) 2>&5 | |
33741 | ac_status=$? | |
33742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33743 | (exit $ac_status); }; }; then | |
33744 | eval "$as_ac_var=yes" | |
33745 | else | |
33746 | echo "$as_me: failed program was:" >&5 | |
33747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33748 | ||
33749 | eval "$as_ac_var=no" | |
33750 | fi | |
ac1cb8d3 VS |
33751 | rm -f conftest.err conftest.$ac_objext \ |
33752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33753 | fi |
33754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33755 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33756 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33757 | cat >>confdefs.h <<_ACEOF | |
33758 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33759 | _ACEOF | |
33760 | cat >>confdefs.h <<\_ACEOF | |
33761 | #define HAVE_DLERROR 1 | |
33762 | _ACEOF | |
33763 | ||
33764 | else | |
33765 | ||
33766 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33767 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33768 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33770 | else | |
33771 | ac_check_lib_save_LIBS=$LIBS | |
33772 | LIBS="-ldl $LIBS" | |
33773 | cat >conftest.$ac_ext <<_ACEOF | |
33774 | /* confdefs.h. */ | |
33775 | _ACEOF | |
33776 | cat confdefs.h >>conftest.$ac_ext | |
33777 | cat >>conftest.$ac_ext <<_ACEOF | |
33778 | /* end confdefs.h. */ | |
33779 | ||
33780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33781 | #ifdef __cplusplus | |
33782 | extern "C" | |
33783 | #endif | |
33784 | /* We use char because int might match the return type of a gcc2 | |
33785 | builtin and then its argument prototype would still apply. */ | |
33786 | char dlerror (); | |
33787 | int | |
33788 | main () | |
33789 | { | |
33790 | dlerror (); | |
33791 | ; | |
33792 | return 0; | |
33793 | } | |
33794 | _ACEOF | |
33795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33797 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33798 | ac_status=$? |
ac1cb8d3 VS |
33799 | grep -v '^ *+' conftest.er1 >conftest.err |
33800 | rm -f conftest.er1 | |
33801 | cat conftest.err >&5 | |
a848cd7e SC |
33802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33803 | (exit $ac_status); } && | |
ea7db9ff DE |
33804 | { ac_try='test -z "$ac_c_werror_flag" |
33805 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33807 | (eval $ac_try) 2>&5 | |
33808 | ac_status=$? | |
33809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33810 | (exit $ac_status); }; } && | |
33811 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33813 | (eval $ac_try) 2>&5 | |
33814 | ac_status=$? | |
33815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33816 | (exit $ac_status); }; }; then | |
33817 | ac_cv_lib_dl_dlerror=yes | |
33818 | else | |
33819 | echo "$as_me: failed program was:" >&5 | |
33820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33821 | ||
33822 | ac_cv_lib_dl_dlerror=no | |
33823 | fi | |
ac1cb8d3 VS |
33824 | rm -f conftest.err conftest.$ac_objext \ |
33825 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33826 | LIBS=$ac_check_lib_save_LIBS |
33827 | fi | |
33828 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33829 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33830 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33831 | cat >>confdefs.h <<\_ACEOF | |
33832 | #define HAVE_DLERROR 1 | |
33833 | _ACEOF | |
33834 | ||
33835 | fi | |
33836 | ||
33837 | ||
33838 | ||
33839 | fi | |
33840 | done | |
33841 | ||
33842 | fi | |
33843 | fi | |
33844 | ||
33845 | if test "$HAVE_DL_FUNCS" = 0; then | |
33846 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33847 | if test "$USE_UNIX" = 1; then | |
33848 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33849 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33850 | wxUSE_DYNAMIC_LOADER=no | |
33851 | wxUSE_DYNLIB_CLASS=no | |
33852 | else | |
33853 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33854 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33855 | fi | |
33856 | fi | |
33857 | fi | |
33858 | fi | |
33859 | fi | |
33860 | ||
33861 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
33862 | cat >>confdefs.h <<\_ACEOF | |
33863 | #define wxUSE_DYNAMIC_LOADER 1 | |
33864 | _ACEOF | |
33865 | ||
33866 | fi | |
33867 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33868 | cat >>confdefs.h <<\_ACEOF | |
33869 | #define wxUSE_DYNLIB_CLASS 1 | |
33870 | _ACEOF | |
33871 | ||
33872 | fi | |
33873 | ||
33874 | ||
33875 | ||
33876 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33877 | if test "$wxUSE_SHARED" = "no" ; then | |
33878 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
33879 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
33880 | wxUSE_PLUGINS=no | |
33881 | fi | |
33882 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
33883 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
33884 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
33885 | wxUSE_PLUGINS=no | |
33886 | fi | |
33887 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
33888 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
33889 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
33890 | wxUSE_PLUGINS=no | |
33891 | fi | |
33892 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33893 | cat >>confdefs.h <<\_ACEOF | |
33894 | #define wxUSE_PLUGINS 1 | |
33895 | _ACEOF | |
33896 | ||
33897 | fi | |
33898 | fi | |
33899 | ||
33900 | ||
33901 | if test "$wxUSE_STL" = "yes"; then | |
33902 | cat >>confdefs.h <<\_ACEOF | |
33903 | #define wxUSE_STL 1 | |
33904 | _ACEOF | |
33905 | ||
33906 | fi | |
33907 | ||
33908 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
33909 | cat >>confdefs.h <<\_ACEOF | |
33910 | #define wxUSE_APPLE_IEEE 1 | |
33911 | _ACEOF | |
33912 | ||
33913 | fi | |
33914 | ||
33915 | if test "$wxUSE_TIMER" = "yes"; then | |
33916 | cat >>confdefs.h <<\_ACEOF | |
33917 | #define wxUSE_TIMER 1 | |
33918 | _ACEOF | |
33919 | ||
33920 | fi | |
33921 | ||
33922 | WITH_PLUGIN_SDL=0 | |
33923 | if test "$wxUSE_SOUND" = "yes"; then | |
33924 | if test "$USE_UNIX" = "1" ; then | |
33925 | ||
33926 | for ac_header in sys/soundcard.h | |
33927 | do | |
33928 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33930 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33934 | fi | |
33935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33937 | else | |
33938 | # Is the header compilable? | |
33939 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33940 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33941 | cat >conftest.$ac_ext <<_ACEOF | |
33942 | /* confdefs.h. */ | |
33943 | _ACEOF | |
33944 | cat confdefs.h >>conftest.$ac_ext | |
33945 | cat >>conftest.$ac_ext <<_ACEOF | |
33946 | /* end confdefs.h. */ | |
33947 | $ac_includes_default | |
33948 | #include <$ac_header> | |
33949 | _ACEOF | |
33950 | rm -f conftest.$ac_objext | |
33951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33952 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33953 | ac_status=$? |
ac1cb8d3 VS |
33954 | grep -v '^ *+' conftest.er1 >conftest.err |
33955 | rm -f conftest.er1 | |
33956 | cat conftest.err >&5 | |
a848cd7e SC |
33957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33958 | (exit $ac_status); } && | |
ea7db9ff DE |
33959 | { ac_try='test -z "$ac_c_werror_flag" |
33960 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33962 | (eval $ac_try) 2>&5 | |
33963 | ac_status=$? | |
33964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33965 | (exit $ac_status); }; } && | |
33966 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33968 | (eval $ac_try) 2>&5 | |
33969 | ac_status=$? | |
33970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33971 | (exit $ac_status); }; }; then | |
33972 | ac_header_compiler=yes | |
33973 | else | |
33974 | echo "$as_me: failed program was:" >&5 | |
33975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33976 | ||
33977 | ac_header_compiler=no | |
33978 | fi | |
ac1cb8d3 | 33979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33980 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33981 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33982 | ||
33983 | # Is the header present? | |
33984 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33985 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33986 | cat >conftest.$ac_ext <<_ACEOF | |
33987 | /* confdefs.h. */ | |
33988 | _ACEOF | |
33989 | cat confdefs.h >>conftest.$ac_ext | |
33990 | cat >>conftest.$ac_ext <<_ACEOF | |
33991 | /* end confdefs.h. */ | |
33992 | #include <$ac_header> | |
33993 | _ACEOF | |
33994 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33995 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33996 | ac_status=$? | |
33997 | grep -v '^ *+' conftest.er1 >conftest.err | |
33998 | rm -f conftest.er1 | |
33999 | cat conftest.err >&5 | |
34000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34001 | (exit $ac_status); } >/dev/null; then | |
34002 | if test -s conftest.err; then | |
34003 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34004 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34005 | else |
34006 | ac_cpp_err= | |
34007 | fi | |
34008 | else | |
34009 | ac_cpp_err=yes | |
34010 | fi | |
34011 | if test -z "$ac_cpp_err"; then | |
34012 | ac_header_preproc=yes | |
34013 | else | |
34014 | echo "$as_me: failed program was:" >&5 | |
34015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34016 | ||
34017 | ac_header_preproc=no | |
34018 | fi | |
34019 | rm -f conftest.err conftest.$ac_ext | |
34020 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34021 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34022 | ||
34023 | # So? What about this header? | |
ac1cb8d3 VS |
34024 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34025 | yes:no: ) | |
a848cd7e SC |
34026 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34027 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34028 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34029 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34030 | ac_header_preproc=yes | |
a848cd7e | 34031 | ;; |
ac1cb8d3 | 34032 | no:yes:* ) |
a848cd7e SC |
34033 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34034 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34035 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34036 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34037 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34038 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34039 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34040 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34042 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34043 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34044 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34045 | ( |
34046 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34047 | ## ----------------------------------------- ## |
34048 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34049 | ## ----------------------------------------- ## | |
a848cd7e SC |
34050 | _ASBOX |
34051 | ) | | |
34052 | sed "s/^/$as_me: WARNING: /" >&2 | |
34053 | ;; | |
34054 | esac | |
34055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34059 | else | |
ac1cb8d3 | 34060 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34061 | fi |
34062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34064 | ||
34065 | fi | |
34066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34067 | cat >>confdefs.h <<_ACEOF | |
34068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34069 | _ACEOF | |
34070 | ||
34071 | fi | |
34072 | ||
34073 | done | |
34074 | ||
34075 | ||
34076 | if test "$wxUSE_LIBSDL" != "no"; then | |
34077 | ||
34078 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34079 | if test "${with_sdl_prefix+set}" = set; then | |
34080 | withval="$with_sdl_prefix" | |
34081 | sdl_prefix="$withval" | |
34082 | else | |
34083 | sdl_prefix="" | |
34084 | fi; | |
34085 | ||
34086 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34087 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34088 | withval="$with_sdl_exec_prefix" | |
34089 | sdl_exec_prefix="$withval" | |
34090 | else | |
34091 | sdl_exec_prefix="" | |
34092 | fi; | |
34093 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34094 | if test "${enable_sdltest+set}" = set; then | |
34095 | enableval="$enable_sdltest" | |
34096 | ||
34097 | else | |
34098 | enable_sdltest=yes | |
34099 | fi; | |
34100 | ||
34101 | if test x$sdl_exec_prefix != x ; then | |
34102 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34103 | if test x${SDL_CONFIG+set} != xset ; then | |
34104 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34105 | fi | |
34106 | fi | |
34107 | if test x$sdl_prefix != x ; then | |
34108 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34109 | if test x${SDL_CONFIG+set} != xset ; then | |
34110 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34111 | fi | |
34112 | fi | |
34113 | ||
34114 | ||
34115 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34116 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34117 | set dummy sdl-config; ac_word=$2 | |
34118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34120 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34122 | else | |
34123 | case $SDL_CONFIG in | |
34124 | [\\/]* | ?:[\\/]*) | |
34125 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34126 | ;; | |
34127 | *) | |
34128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34129 | for as_dir in $PATH | |
34130 | do | |
34131 | IFS=$as_save_IFS | |
34132 | test -z "$as_dir" && as_dir=. | |
34133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34135 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34137 | break 2 | |
34138 | fi | |
34139 | done | |
34140 | done | |
34141 | ||
34142 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34143 | ;; | |
34144 | esac | |
34145 | fi | |
34146 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34147 | ||
34148 | if test -n "$SDL_CONFIG"; then | |
34149 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34150 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34151 | else | |
34152 | echo "$as_me:$LINENO: result: no" >&5 | |
34153 | echo "${ECHO_T}no" >&6 | |
34154 | fi | |
34155 | ||
34156 | min_sdl_version=1.2.0 | |
34157 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34158 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34159 | no_sdl="" | |
34160 | if test "$SDL_CONFIG" = "no" ; then | |
34161 | no_sdl=yes | |
34162 | else | |
34163 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34164 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34165 | ||
34166 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34167 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34168 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34169 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34170 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34171 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34172 | if test "x$enable_sdltest" = "xyes" ; then | |
34173 | ac_save_CFLAGS="$CFLAGS" | |
34174 | ac_save_LIBS="$LIBS" | |
34175 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34176 | LIBS="$LIBS $SDL_LIBS" | |
34177 | rm -f conf.sdltest | |
34178 | if test "$cross_compiling" = yes; then | |
34179 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34180 | else | |
34181 | cat >conftest.$ac_ext <<_ACEOF | |
34182 | /* confdefs.h. */ | |
34183 | _ACEOF | |
34184 | cat confdefs.h >>conftest.$ac_ext | |
34185 | cat >>conftest.$ac_ext <<_ACEOF | |
34186 | /* end confdefs.h. */ | |
34187 | ||
34188 | #include <stdio.h> | |
34189 | #include <stdlib.h> | |
34190 | #include <string.h> | |
34191 | #include "SDL.h" | |
34192 | ||
34193 | char* | |
34194 | my_strdup (char *str) | |
34195 | { | |
34196 | char *new_str; | |
34197 | ||
34198 | if (str) | |
34199 | { | |
34200 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34201 | strcpy (new_str, str); | |
34202 | } | |
34203 | else | |
34204 | new_str = NULL; | |
34205 | ||
34206 | return new_str; | |
34207 | } | |
34208 | ||
34209 | int main (int argc, char *argv[]) | |
34210 | { | |
34211 | int major, minor, micro; | |
34212 | char *tmp_version; | |
34213 | ||
34214 | /* This hangs on some systems (?) | |
34215 | system ("touch conf.sdltest"); | |
34216 | */ | |
34217 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34218 | ||
34219 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34220 | tmp_version = my_strdup("$min_sdl_version"); | |
34221 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34222 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34223 | exit(1); | |
34224 | } | |
34225 | ||
34226 | if (($sdl_major_version > major) || | |
34227 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34228 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34229 | { | |
34230 | return 0; | |
34231 | } | |
34232 | else | |
34233 | { | |
34234 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34235 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34236 | printf("*** best to upgrade to the required version.\n"); | |
34237 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34238 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34239 | printf("*** config.cache before re-running configure\n"); | |
34240 | return 1; | |
34241 | } | |
34242 | } | |
34243 | ||
34244 | ||
34245 | _ACEOF | |
34246 | rm -f conftest$ac_exeext | |
34247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34248 | (eval $ac_link) 2>&5 | |
34249 | ac_status=$? | |
34250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34253 | (eval $ac_try) 2>&5 | |
34254 | ac_status=$? | |
34255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34256 | (exit $ac_status); }; }; then | |
34257 | : | |
34258 | else | |
34259 | echo "$as_me: program exited with status $ac_status" >&5 | |
34260 | echo "$as_me: failed program was:" >&5 | |
34261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34262 | ||
34263 | ( exit $ac_status ) | |
34264 | no_sdl=yes | |
34265 | fi | |
ac1cb8d3 | 34266 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34267 | fi |
34268 | CFLAGS="$ac_save_CFLAGS" | |
34269 | LIBS="$ac_save_LIBS" | |
34270 | fi | |
34271 | fi | |
34272 | if test "x$no_sdl" = x ; then | |
34273 | echo "$as_me:$LINENO: result: yes" >&5 | |
34274 | echo "${ECHO_T}yes" >&6 | |
34275 | ||
34276 | EXTRALIBS_SDL="$SDL_LIBS" | |
34277 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34278 | cat >>confdefs.h <<\_ACEOF | |
34279 | #define wxUSE_LIBSDL 1 | |
34280 | _ACEOF | |
34281 | ||
34282 | ||
34283 | else | |
34284 | echo "$as_me:$LINENO: result: no" >&5 | |
34285 | echo "${ECHO_T}no" >&6 | |
34286 | if test "$SDL_CONFIG" = "no" ; then | |
34287 | echo "*** The sdl-config script installed by SDL could not be found" | |
34288 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34289 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34290 | echo "*** full path to sdl-config." | |
34291 | else | |
34292 | if test -f conf.sdltest ; then | |
34293 | : | |
34294 | else | |
34295 | echo "*** Could not run SDL test program, checking why..." | |
34296 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34297 | LIBS="$LIBS $SDL_LIBS" | |
34298 | cat >conftest.$ac_ext <<_ACEOF | |
34299 | /* confdefs.h. */ | |
34300 | _ACEOF | |
34301 | cat confdefs.h >>conftest.$ac_ext | |
34302 | cat >>conftest.$ac_ext <<_ACEOF | |
34303 | /* end confdefs.h. */ | |
34304 | ||
34305 | #include <stdio.h> | |
34306 | #include "SDL.h" | |
34307 | ||
34308 | int main(int argc, char *argv[]) | |
34309 | { return 0; } | |
34310 | #undef main | |
34311 | #define main K_and_R_C_main | |
34312 | ||
34313 | int | |
34314 | main () | |
34315 | { | |
34316 | return 0; | |
34317 | ; | |
34318 | return 0; | |
34319 | } | |
34320 | _ACEOF | |
34321 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34323 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34324 | ac_status=$? |
ac1cb8d3 VS |
34325 | grep -v '^ *+' conftest.er1 >conftest.err |
34326 | rm -f conftest.er1 | |
34327 | cat conftest.err >&5 | |
a848cd7e SC |
34328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34329 | (exit $ac_status); } && | |
ea7db9ff DE |
34330 | { ac_try='test -z "$ac_c_werror_flag" |
34331 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34333 | (eval $ac_try) 2>&5 | |
34334 | ac_status=$? | |
34335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34336 | (exit $ac_status); }; } && | |
34337 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34339 | (eval $ac_try) 2>&5 | |
34340 | ac_status=$? | |
34341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34342 | (exit $ac_status); }; }; then | |
34343 | echo "*** The test program compiled, but did not run. This usually means" | |
34344 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34345 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34346 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34347 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34348 | echo "*** is required on your system" | |
34349 | echo "***" | |
34350 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34351 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34352 | else | |
34353 | echo "$as_me: failed program was:" >&5 | |
34354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34355 | ||
34356 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34357 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34358 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34359 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34360 | fi | |
ac1cb8d3 VS |
34361 | rm -f conftest.err conftest.$ac_objext \ |
34362 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34363 | CFLAGS="$ac_save_CFLAGS" |
34364 | LIBS="$ac_save_LIBS" | |
34365 | fi | |
34366 | fi | |
34367 | SDL_CFLAGS="" | |
34368 | SDL_LIBS="" | |
34369 | wxUSE_LIBSDL="no" | |
34370 | fi | |
34371 | ||
34372 | ||
34373 | rm -f conf.sdltest | |
34374 | ||
34375 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34376 | WITH_PLUGIN_SDL=1 | |
34377 | fi | |
34378 | fi | |
34379 | fi | |
34380 | ||
34381 | cat >>confdefs.h <<\_ACEOF | |
34382 | #define wxUSE_SOUND 1 | |
34383 | _ACEOF | |
34384 | ||
34385 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34386 | fi | |
34387 | ||
34388 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
34389 | cat >>confdefs.h <<\_ACEOF | |
34390 | #define wxUSE_CMDLINE_PARSER 1 | |
34391 | _ACEOF | |
34392 | ||
34393 | fi | |
34394 | ||
34395 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34396 | cat >>confdefs.h <<\_ACEOF | |
34397 | #define wxUSE_STOPWATCH 1 | |
34398 | _ACEOF | |
34399 | ||
34400 | fi | |
34401 | ||
34402 | if test "$wxUSE_DATETIME" = "yes"; then | |
34403 | cat >>confdefs.h <<\_ACEOF | |
34404 | #define wxUSE_DATETIME 1 | |
34405 | _ACEOF | |
34406 | ||
34407 | fi | |
34408 | ||
34409 | if test "$wxUSE_FILE" = "yes"; then | |
34410 | cat >>confdefs.h <<\_ACEOF | |
34411 | #define wxUSE_FILE 1 | |
34412 | _ACEOF | |
34413 | ||
34414 | fi | |
34415 | ||
34416 | if test "$wxUSE_FFILE" = "yes"; then | |
34417 | cat >>confdefs.h <<\_ACEOF | |
34418 | #define wxUSE_FFILE 1 | |
34419 | _ACEOF | |
34420 | ||
34421 | fi | |
34422 | ||
34423 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34424 | cat >>confdefs.h <<\_ACEOF | |
34425 | #define wxUSE_FILESYSTEM 1 | |
34426 | _ACEOF | |
34427 | ||
34428 | fi | |
34429 | ||
34430 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34431 | cat >>confdefs.h <<\_ACEOF | |
34432 | #define wxUSE_FS_ZIP 1 | |
34433 | _ACEOF | |
34434 | ||
34435 | fi | |
34436 | ||
34437 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34438 | cat >>confdefs.h <<\_ACEOF | |
34439 | #define wxUSE_ZIPSTREAM 1 | |
34440 | _ACEOF | |
34441 | ||
34442 | fi | |
34443 | ||
a848cd7e SC |
34444 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34445 | cat >>confdefs.h <<\_ACEOF | |
34446 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34447 | _ACEOF | |
34448 | ||
34449 | fi | |
34450 | ||
34451 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34452 | cat >>confdefs.h <<\_ACEOF | |
34453 | #define wxUSE_SNGLINST_CHECKER 1 | |
34454 | _ACEOF | |
34455 | ||
34456 | fi | |
34457 | ||
34458 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34459 | cat >>confdefs.h <<\_ACEOF | |
34460 | #define wxUSE_BUSYINFO 1 | |
34461 | _ACEOF | |
34462 | ||
34463 | fi | |
34464 | ||
34465 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34466 | cat >>confdefs.h <<\_ACEOF | |
34467 | #define wxUSE_STD_IOSTREAM 1 | |
34468 | _ACEOF | |
34469 | ||
34470 | fi | |
34471 | ||
34472 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34473 | cat >>confdefs.h <<\_ACEOF | |
34474 | #define wxUSE_TEXTBUFFER 1 | |
34475 | _ACEOF | |
34476 | ||
34477 | fi | |
34478 | ||
34479 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34480 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34481 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34482 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34483 | else | |
34484 | cat >>confdefs.h <<\_ACEOF | |
34485 | #define wxUSE_TEXTFILE 1 | |
34486 | _ACEOF | |
34487 | ||
34488 | fi | |
34489 | fi | |
34490 | ||
34491 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34492 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34493 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34494 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34495 | else | |
34496 | cat >>confdefs.h <<\_ACEOF | |
34497 | #define wxUSE_CONFIG 1 | |
34498 | _ACEOF | |
34499 | ||
34500 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34501 | fi | |
34502 | fi | |
34503 | ||
34504 | if test "$wxUSE_INTL" = "yes" ; then | |
34505 | if test "$wxUSE_FILE" != "yes"; then | |
34506 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34507 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34508 | else | |
34509 | cat >>confdefs.h <<\_ACEOF | |
34510 | #define wxUSE_INTL 1 | |
34511 | _ACEOF | |
34512 | ||
34513 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34514 | GUIDIST="$GUIDIST INTL_DIST" | |
34515 | fi | |
34516 | fi | |
34517 | ||
34518 | if test "$wxUSE_LOG" = "yes"; then | |
34519 | cat >>confdefs.h <<\_ACEOF | |
34520 | #define wxUSE_LOG 1 | |
34521 | _ACEOF | |
34522 | ||
34523 | ||
34524 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34525 | cat >>confdefs.h <<\_ACEOF | |
34526 | #define wxUSE_LOGGUI 1 | |
34527 | _ACEOF | |
34528 | ||
34529 | fi | |
34530 | ||
34531 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34532 | cat >>confdefs.h <<\_ACEOF | |
34533 | #define wxUSE_LOGWINDOW 1 | |
34534 | _ACEOF | |
34535 | ||
34536 | fi | |
34537 | ||
34538 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34539 | cat >>confdefs.h <<\_ACEOF | |
34540 | #define wxUSE_LOG_DIALOG 1 | |
34541 | _ACEOF | |
34542 | ||
34543 | fi | |
34544 | fi | |
34545 | ||
34546 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34547 | cat >>confdefs.h <<\_ACEOF | |
34548 | #define wxUSE_LONGLONG 1 | |
34549 | _ACEOF | |
34550 | ||
34551 | fi | |
34552 | ||
34553 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34554 | cat >>confdefs.h <<\_ACEOF | |
34555 | #define wxUSE_GEOMETRY 1 | |
34556 | _ACEOF | |
34557 | ||
34558 | fi | |
34559 | ||
34560 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34561 | cat >>confdefs.h <<\_ACEOF | |
34562 | #define wxUSE_DIALUP_MANAGER 1 | |
34563 | _ACEOF | |
34564 | ||
34565 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34566 | fi | |
34567 | ||
34568 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34569 | cat >>confdefs.h <<\_ACEOF | |
34570 | #define wxUSE_STREAMS 1 | |
34571 | _ACEOF | |
34572 | ||
34573 | fi | |
34574 | ||
34575 | ||
34576 | if test "$wxUSE_DATETIME" = "yes"; then | |
34577 | ||
34578 | for ac_func in strptime | |
34579 | do | |
34580 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34581 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34582 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34583 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34585 | else | |
34586 | cat >conftest.$ac_ext <<_ACEOF | |
34587 | /* confdefs.h. */ | |
34588 | _ACEOF | |
34589 | cat confdefs.h >>conftest.$ac_ext | |
34590 | cat >>conftest.$ac_ext <<_ACEOF | |
34591 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34592 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34593 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34594 | #define $ac_func innocuous_$ac_func | |
34595 | ||
a848cd7e SC |
34596 | /* System header to define __stub macros and hopefully few prototypes, |
34597 | which can conflict with char $ac_func (); below. | |
34598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34599 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34600 | |
a848cd7e SC |
34601 | #ifdef __STDC__ |
34602 | # include <limits.h> | |
34603 | #else | |
34604 | # include <assert.h> | |
34605 | #endif | |
ac1cb8d3 VS |
34606 | |
34607 | #undef $ac_func | |
34608 | ||
a848cd7e SC |
34609 | /* Override any gcc2 internal prototype to avoid an error. */ |
34610 | #ifdef __cplusplus | |
34611 | extern "C" | |
34612 | { | |
34613 | #endif | |
34614 | /* We use char because int might match the return type of a gcc2 | |
34615 | builtin and then its argument prototype would still apply. */ | |
34616 | char $ac_func (); | |
34617 | /* The GNU C library defines this for functions which it implements | |
34618 | to always fail with ENOSYS. Some functions are actually named | |
34619 | something starting with __ and the normal name is an alias. */ | |
34620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34621 | choke me | |
34622 | #else | |
34623 | char (*f) () = $ac_func; | |
34624 | #endif | |
34625 | #ifdef __cplusplus | |
34626 | } | |
34627 | #endif | |
34628 | ||
34629 | int | |
34630 | main () | |
34631 | { | |
34632 | return f != $ac_func; | |
34633 | ; | |
34634 | return 0; | |
34635 | } | |
34636 | _ACEOF | |
34637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34639 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34640 | ac_status=$? |
ac1cb8d3 VS |
34641 | grep -v '^ *+' conftest.er1 >conftest.err |
34642 | rm -f conftest.er1 | |
34643 | cat conftest.err >&5 | |
a848cd7e SC |
34644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34645 | (exit $ac_status); } && | |
ea7db9ff DE |
34646 | { ac_try='test -z "$ac_c_werror_flag" |
34647 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34649 | (eval $ac_try) 2>&5 | |
34650 | ac_status=$? | |
34651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34652 | (exit $ac_status); }; } && | |
34653 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34655 | (eval $ac_try) 2>&5 | |
34656 | ac_status=$? | |
34657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34658 | (exit $ac_status); }; }; then | |
34659 | eval "$as_ac_var=yes" | |
34660 | else | |
34661 | echo "$as_me: failed program was:" >&5 | |
34662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34663 | ||
34664 | eval "$as_ac_var=no" | |
34665 | fi | |
ac1cb8d3 VS |
34666 | rm -f conftest.err conftest.$ac_objext \ |
34667 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34668 | fi |
34669 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34670 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34671 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34672 | cat >>confdefs.h <<_ACEOF | |
34673 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34674 | _ACEOF | |
34675 | ||
34676 | fi | |
34677 | done | |
34678 | ||
34679 | ||
34680 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34681 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34682 | if test "${wx_cv_var_timezone+set}" = set; then | |
34683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34684 | else | |
34685 | ||
34686 | cat >conftest.$ac_ext <<_ACEOF | |
34687 | /* confdefs.h. */ | |
34688 | _ACEOF | |
34689 | cat confdefs.h >>conftest.$ac_ext | |
34690 | cat >>conftest.$ac_ext <<_ACEOF | |
34691 | /* end confdefs.h. */ | |
34692 | ||
34693 | #include <time.h> | |
34694 | ||
34695 | int | |
34696 | main () | |
34697 | { | |
34698 | ||
34699 | int tz; | |
34700 | tz = timezone; | |
34701 | ||
34702 | ; | |
34703 | return 0; | |
34704 | } | |
34705 | _ACEOF | |
34706 | rm -f conftest.$ac_objext | |
34707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34709 | ac_status=$? |
ac1cb8d3 VS |
34710 | grep -v '^ *+' conftest.er1 >conftest.err |
34711 | rm -f conftest.er1 | |
34712 | cat conftest.err >&5 | |
a848cd7e SC |
34713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34714 | (exit $ac_status); } && | |
ea7db9ff DE |
34715 | { ac_try='test -z "$ac_c_werror_flag" |
34716 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34718 | (eval $ac_try) 2>&5 | |
34719 | ac_status=$? | |
34720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34721 | (exit $ac_status); }; } && | |
34722 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34724 | (eval $ac_try) 2>&5 | |
34725 | ac_status=$? | |
34726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34727 | (exit $ac_status); }; }; then | |
34728 | ||
34729 | wx_cv_var_timezone=timezone | |
34730 | ||
34731 | else | |
34732 | echo "$as_me: failed program was:" >&5 | |
34733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34734 | ||
34735 | ||
34736 | cat >conftest.$ac_ext <<_ACEOF | |
34737 | /* confdefs.h. */ | |
34738 | _ACEOF | |
34739 | cat confdefs.h >>conftest.$ac_ext | |
34740 | cat >>conftest.$ac_ext <<_ACEOF | |
34741 | /* end confdefs.h. */ | |
34742 | ||
34743 | #include <time.h> | |
34744 | ||
34745 | int | |
34746 | main () | |
34747 | { | |
34748 | ||
34749 | int tz; | |
34750 | tz = _timezone; | |
34751 | ||
34752 | ; | |
34753 | return 0; | |
34754 | } | |
34755 | _ACEOF | |
34756 | rm -f conftest.$ac_objext | |
34757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34758 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34759 | ac_status=$? |
ac1cb8d3 VS |
34760 | grep -v '^ *+' conftest.er1 >conftest.err |
34761 | rm -f conftest.er1 | |
34762 | cat conftest.err >&5 | |
a848cd7e SC |
34763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34764 | (exit $ac_status); } && | |
ea7db9ff DE |
34765 | { ac_try='test -z "$ac_c_werror_flag" |
34766 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34768 | (eval $ac_try) 2>&5 | |
34769 | ac_status=$? | |
34770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34771 | (exit $ac_status); }; } && | |
34772 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34774 | (eval $ac_try) 2>&5 | |
34775 | ac_status=$? | |
34776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34777 | (exit $ac_status); }; }; then | |
34778 | ||
34779 | wx_cv_var_timezone=_timezone | |
34780 | ||
34781 | else | |
34782 | echo "$as_me: failed program was:" >&5 | |
34783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34784 | ||
34785 | ||
34786 | cat >conftest.$ac_ext <<_ACEOF | |
34787 | /* confdefs.h. */ | |
34788 | _ACEOF | |
34789 | cat confdefs.h >>conftest.$ac_ext | |
34790 | cat >>conftest.$ac_ext <<_ACEOF | |
34791 | /* end confdefs.h. */ | |
34792 | ||
34793 | #include <time.h> | |
34794 | ||
34795 | int | |
34796 | main () | |
34797 | { | |
34798 | ||
34799 | int tz; | |
34800 | tz = __timezone; | |
34801 | ||
34802 | ; | |
34803 | return 0; | |
34804 | } | |
34805 | _ACEOF | |
34806 | rm -f conftest.$ac_objext | |
34807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34808 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34809 | ac_status=$? |
ac1cb8d3 VS |
34810 | grep -v '^ *+' conftest.er1 >conftest.err |
34811 | rm -f conftest.er1 | |
34812 | cat conftest.err >&5 | |
a848cd7e SC |
34813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34814 | (exit $ac_status); } && | |
ea7db9ff DE |
34815 | { ac_try='test -z "$ac_c_werror_flag" |
34816 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34818 | (eval $ac_try) 2>&5 | |
34819 | ac_status=$? | |
34820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34821 | (exit $ac_status); }; } && | |
34822 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34824 | (eval $ac_try) 2>&5 | |
34825 | ac_status=$? | |
34826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34827 | (exit $ac_status); }; }; then | |
34828 | ||
34829 | wx_cv_var_timezone=__timezone | |
34830 | ||
34831 | else | |
34832 | echo "$as_me: failed program was:" >&5 | |
34833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34834 | ||
34835 | ||
34836 | if test "$USE_DOS" = 0 ; then | |
34837 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
34838 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
34839 | fi | |
34840 | ||
34841 | ||
34842 | fi | |
ac1cb8d3 | 34843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34844 | |
34845 | ||
34846 | fi | |
ac1cb8d3 | 34847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34848 | |
34849 | ||
34850 | fi | |
ac1cb8d3 | 34851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34852 | |
34853 | ||
34854 | fi | |
34855 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
34856 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
34857 | ||
34858 | if test "x$wx_cv_var_timezone" != x ; then | |
34859 | cat >>confdefs.h <<_ACEOF | |
34860 | #define WX_TIMEZONE $wx_cv_var_timezone | |
34861 | _ACEOF | |
34862 | ||
34863 | fi | |
34864 | ||
34865 | ||
34866 | for ac_func in localtime | |
34867 | do | |
34868 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34869 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34870 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34871 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34873 | else | |
34874 | cat >conftest.$ac_ext <<_ACEOF | |
34875 | /* confdefs.h. */ | |
34876 | _ACEOF | |
34877 | cat confdefs.h >>conftest.$ac_ext | |
34878 | cat >>conftest.$ac_ext <<_ACEOF | |
34879 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34880 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34881 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34882 | #define $ac_func innocuous_$ac_func | |
34883 | ||
a848cd7e SC |
34884 | /* System header to define __stub macros and hopefully few prototypes, |
34885 | which can conflict with char $ac_func (); below. | |
34886 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34887 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34888 | |
a848cd7e SC |
34889 | #ifdef __STDC__ |
34890 | # include <limits.h> | |
34891 | #else | |
34892 | # include <assert.h> | |
34893 | #endif | |
ac1cb8d3 VS |
34894 | |
34895 | #undef $ac_func | |
34896 | ||
a848cd7e SC |
34897 | /* Override any gcc2 internal prototype to avoid an error. */ |
34898 | #ifdef __cplusplus | |
34899 | extern "C" | |
34900 | { | |
34901 | #endif | |
34902 | /* We use char because int might match the return type of a gcc2 | |
34903 | builtin and then its argument prototype would still apply. */ | |
34904 | char $ac_func (); | |
34905 | /* The GNU C library defines this for functions which it implements | |
34906 | to always fail with ENOSYS. Some functions are actually named | |
34907 | something starting with __ and the normal name is an alias. */ | |
34908 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34909 | choke me | |
34910 | #else | |
34911 | char (*f) () = $ac_func; | |
34912 | #endif | |
34913 | #ifdef __cplusplus | |
34914 | } | |
34915 | #endif | |
34916 | ||
34917 | int | |
34918 | main () | |
34919 | { | |
34920 | return f != $ac_func; | |
34921 | ; | |
34922 | return 0; | |
34923 | } | |
34924 | _ACEOF | |
34925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34927 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34928 | ac_status=$? |
ac1cb8d3 VS |
34929 | grep -v '^ *+' conftest.er1 >conftest.err |
34930 | rm -f conftest.er1 | |
34931 | cat conftest.err >&5 | |
a848cd7e SC |
34932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34933 | (exit $ac_status); } && | |
ea7db9ff DE |
34934 | { ac_try='test -z "$ac_c_werror_flag" |
34935 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34937 | (eval $ac_try) 2>&5 | |
34938 | ac_status=$? | |
34939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34940 | (exit $ac_status); }; } && | |
34941 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34943 | (eval $ac_try) 2>&5 | |
34944 | ac_status=$? | |
34945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34946 | (exit $ac_status); }; }; then | |
34947 | eval "$as_ac_var=yes" | |
34948 | else | |
34949 | echo "$as_me: failed program was:" >&5 | |
34950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34951 | ||
34952 | eval "$as_ac_var=no" | |
34953 | fi | |
ac1cb8d3 VS |
34954 | rm -f conftest.err conftest.$ac_objext \ |
34955 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34956 | fi |
34957 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34958 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34959 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34960 | cat >>confdefs.h <<_ACEOF | |
34961 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34962 | _ACEOF | |
34963 | ||
34964 | fi | |
34965 | done | |
34966 | ||
34967 | ||
34968 | if test "$ac_cv_func_localtime" = "yes"; then | |
34969 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
34970 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
34971 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
34972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34973 | else | |
34974 | ||
34975 | cat >conftest.$ac_ext <<_ACEOF | |
34976 | /* confdefs.h. */ | |
34977 | _ACEOF | |
34978 | cat confdefs.h >>conftest.$ac_ext | |
34979 | cat >>conftest.$ac_ext <<_ACEOF | |
34980 | /* end confdefs.h. */ | |
34981 | ||
34982 | #include <time.h> | |
34983 | ||
34984 | int | |
34985 | main () | |
34986 | { | |
34987 | ||
34988 | struct tm tm; | |
34989 | tm.tm_gmtoff++; | |
34990 | ||
34991 | ; | |
34992 | return 0; | |
34993 | } | |
34994 | _ACEOF | |
34995 | rm -f conftest.$ac_objext | |
34996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34998 | ac_status=$? |
ac1cb8d3 VS |
34999 | grep -v '^ *+' conftest.er1 >conftest.err |
35000 | rm -f conftest.er1 | |
35001 | cat conftest.err >&5 | |
a848cd7e SC |
35002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35003 | (exit $ac_status); } && | |
ea7db9ff DE |
35004 | { ac_try='test -z "$ac_c_werror_flag" |
35005 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35007 | (eval $ac_try) 2>&5 | |
35008 | ac_status=$? | |
35009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35010 | (exit $ac_status); }; } && | |
35011 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35013 | (eval $ac_try) 2>&5 | |
35014 | ac_status=$? | |
35015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35016 | (exit $ac_status); }; }; then | |
35017 | ||
35018 | wx_cv_struct_tm_has_gmtoff=yes | |
35019 | ||
35020 | else | |
35021 | echo "$as_me: failed program was:" >&5 | |
35022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35023 | ||
35024 | wx_cv_struct_tm_has_gmtoff=no | |
35025 | ||
35026 | fi | |
ac1cb8d3 | 35027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35028 | |
35029 | fi | |
35030 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
35031 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35032 | fi | |
35033 | ||
35034 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
35035 | cat >>confdefs.h <<\_ACEOF | |
35036 | #define WX_GMTOFF_IN_TM 1 | |
35037 | _ACEOF | |
35038 | ||
35039 | fi | |
35040 | ||
35041 | ||
35042 | ||
35043 | for ac_func in gettimeofday ftime | |
35044 | do | |
35045 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35046 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35047 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35048 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35050 | else | |
35051 | cat >conftest.$ac_ext <<_ACEOF | |
35052 | /* confdefs.h. */ | |
35053 | _ACEOF | |
35054 | cat confdefs.h >>conftest.$ac_ext | |
35055 | cat >>conftest.$ac_ext <<_ACEOF | |
35056 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35057 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35059 | #define $ac_func innocuous_$ac_func | |
35060 | ||
a848cd7e SC |
35061 | /* System header to define __stub macros and hopefully few prototypes, |
35062 | which can conflict with char $ac_func (); below. | |
35063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35064 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35065 | |
a848cd7e SC |
35066 | #ifdef __STDC__ |
35067 | # include <limits.h> | |
35068 | #else | |
35069 | # include <assert.h> | |
35070 | #endif | |
ac1cb8d3 VS |
35071 | |
35072 | #undef $ac_func | |
35073 | ||
a848cd7e SC |
35074 | /* Override any gcc2 internal prototype to avoid an error. */ |
35075 | #ifdef __cplusplus | |
35076 | extern "C" | |
35077 | { | |
35078 | #endif | |
35079 | /* We use char because int might match the return type of a gcc2 | |
35080 | builtin and then its argument prototype would still apply. */ | |
35081 | char $ac_func (); | |
35082 | /* The GNU C library defines this for functions which it implements | |
35083 | to always fail with ENOSYS. Some functions are actually named | |
35084 | something starting with __ and the normal name is an alias. */ | |
35085 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35086 | choke me | |
35087 | #else | |
35088 | char (*f) () = $ac_func; | |
35089 | #endif | |
35090 | #ifdef __cplusplus | |
35091 | } | |
35092 | #endif | |
35093 | ||
35094 | int | |
35095 | main () | |
35096 | { | |
35097 | return f != $ac_func; | |
35098 | ; | |
35099 | return 0; | |
35100 | } | |
35101 | _ACEOF | |
35102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35104 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35105 | ac_status=$? |
ac1cb8d3 VS |
35106 | grep -v '^ *+' conftest.er1 >conftest.err |
35107 | rm -f conftest.er1 | |
35108 | cat conftest.err >&5 | |
a848cd7e SC |
35109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35110 | (exit $ac_status); } && | |
ea7db9ff DE |
35111 | { ac_try='test -z "$ac_c_werror_flag" |
35112 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35114 | (eval $ac_try) 2>&5 | |
35115 | ac_status=$? | |
35116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35117 | (exit $ac_status); }; } && | |
35118 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35120 | (eval $ac_try) 2>&5 | |
35121 | ac_status=$? | |
35122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35123 | (exit $ac_status); }; }; then | |
35124 | eval "$as_ac_var=yes" | |
35125 | else | |
35126 | echo "$as_me: failed program was:" >&5 | |
35127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35128 | ||
35129 | eval "$as_ac_var=no" | |
35130 | fi | |
ac1cb8d3 VS |
35131 | rm -f conftest.err conftest.$ac_objext \ |
35132 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35133 | fi |
35134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35135 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35136 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35137 | cat >>confdefs.h <<_ACEOF | |
35138 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35139 | _ACEOF | |
35140 | break | |
35141 | fi | |
35142 | done | |
35143 | ||
35144 | ||
35145 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35146 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35147 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35148 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35150 | else | |
35151 | ||
35152 | ||
35153 | ||
35154 | ac_ext=cc | |
35155 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35156 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35157 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35158 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35159 | ||
35160 | ||
35161 | cat >conftest.$ac_ext <<_ACEOF | |
35162 | /* confdefs.h. */ | |
35163 | _ACEOF | |
35164 | cat confdefs.h >>conftest.$ac_ext | |
35165 | cat >>conftest.$ac_ext <<_ACEOF | |
35166 | /* end confdefs.h. */ | |
35167 | ||
35168 | #include <sys/time.h> | |
35169 | #include <unistd.h> | |
35170 | ||
35171 | int | |
35172 | main () | |
35173 | { | |
35174 | ||
35175 | struct timeval tv; | |
35176 | gettimeofday(&tv, NULL); | |
35177 | ||
35178 | ; | |
35179 | return 0; | |
35180 | } | |
35181 | _ACEOF | |
35182 | rm -f conftest.$ac_objext | |
35183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35184 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35185 | ac_status=$? |
ac1cb8d3 VS |
35186 | grep -v '^ *+' conftest.er1 >conftest.err |
35187 | rm -f conftest.er1 | |
35188 | cat conftest.err >&5 | |
a848cd7e SC |
35189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35190 | (exit $ac_status); } && | |
ea7db9ff DE |
35191 | { ac_try='test -z "$ac_cxx_werror_flag" |
35192 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35194 | (eval $ac_try) 2>&5 | |
35195 | ac_status=$? | |
35196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35197 | (exit $ac_status); }; } && | |
35198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35200 | (eval $ac_try) 2>&5 | |
35201 | ac_status=$? | |
35202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35203 | (exit $ac_status); }; }; then | |
35204 | wx_cv_func_gettimeofday_has_2_args=yes | |
35205 | else | |
35206 | echo "$as_me: failed program was:" >&5 | |
35207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35208 | ||
35209 | cat >conftest.$ac_ext <<_ACEOF | |
35210 | /* confdefs.h. */ | |
35211 | _ACEOF | |
35212 | cat confdefs.h >>conftest.$ac_ext | |
35213 | cat >>conftest.$ac_ext <<_ACEOF | |
35214 | /* end confdefs.h. */ | |
35215 | ||
35216 | #include <sys/time.h> | |
35217 | #include <unistd.h> | |
35218 | ||
35219 | int | |
35220 | main () | |
35221 | { | |
35222 | ||
35223 | struct timeval tv; | |
35224 | gettimeofday(&tv); | |
35225 | ||
35226 | ; | |
35227 | return 0; | |
35228 | } | |
35229 | _ACEOF | |
35230 | rm -f conftest.$ac_objext | |
35231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35232 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35233 | ac_status=$? |
ac1cb8d3 VS |
35234 | grep -v '^ *+' conftest.er1 >conftest.err |
35235 | rm -f conftest.er1 | |
35236 | cat conftest.err >&5 | |
a848cd7e SC |
35237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35238 | (exit $ac_status); } && | |
ea7db9ff DE |
35239 | { ac_try='test -z "$ac_cxx_werror_flag" |
35240 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35242 | (eval $ac_try) 2>&5 | |
35243 | ac_status=$? | |
35244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35245 | (exit $ac_status); }; } && | |
35246 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35248 | (eval $ac_try) 2>&5 | |
35249 | ac_status=$? | |
35250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35251 | (exit $ac_status); }; }; then | |
35252 | wx_cv_func_gettimeofday_has_2_args=no | |
35253 | else | |
35254 | echo "$as_me: failed program was:" >&5 | |
35255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35256 | ||
35257 | ||
35258 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35259 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35260 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35261 | ||
35262 | ||
35263 | fi | |
ac1cb8d3 | 35264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35265 | |
35266 | fi | |
ac1cb8d3 | 35267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35268 | ac_ext=c |
35269 | ac_cpp='$CPP $CPPFLAGS' | |
35270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35273 | ||
35274 | ||
35275 | fi | |
35276 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35277 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35278 | ||
35279 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35280 | cat >>confdefs.h <<\_ACEOF | |
35281 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35282 | _ACEOF | |
35283 | ||
35284 | fi | |
35285 | fi | |
35286 | ||
35287 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35288 | fi | |
35289 | ||
35290 | ||
35291 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35292 | if test "$wxUSE_MGL" = "1"; then | |
35293 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35294 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35295 | wxUSE_SOCKETS="no" | |
35296 | fi | |
35297 | fi | |
35298 | ||
35299 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35300 | if test "$TOOLKIT" != "MSW"; then | |
35301 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35302 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35303 | if test "${ac_cv_func_socket+set}" = set; then | |
35304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35305 | else | |
35306 | cat >conftest.$ac_ext <<_ACEOF | |
35307 | /* confdefs.h. */ | |
35308 | _ACEOF | |
35309 | cat confdefs.h >>conftest.$ac_ext | |
35310 | cat >>conftest.$ac_ext <<_ACEOF | |
35311 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35312 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35313 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35314 | #define socket innocuous_socket | |
35315 | ||
a848cd7e SC |
35316 | /* System header to define __stub macros and hopefully few prototypes, |
35317 | which can conflict with char socket (); below. | |
35318 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35319 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35320 | |
a848cd7e SC |
35321 | #ifdef __STDC__ |
35322 | # include <limits.h> | |
35323 | #else | |
35324 | # include <assert.h> | |
35325 | #endif | |
ac1cb8d3 VS |
35326 | |
35327 | #undef socket | |
35328 | ||
a848cd7e SC |
35329 | /* Override any gcc2 internal prototype to avoid an error. */ |
35330 | #ifdef __cplusplus | |
35331 | extern "C" | |
35332 | { | |
35333 | #endif | |
35334 | /* We use char because int might match the return type of a gcc2 | |
35335 | builtin and then its argument prototype would still apply. */ | |
35336 | char socket (); | |
35337 | /* The GNU C library defines this for functions which it implements | |
35338 | to always fail with ENOSYS. Some functions are actually named | |
35339 | something starting with __ and the normal name is an alias. */ | |
35340 | #if defined (__stub_socket) || defined (__stub___socket) | |
35341 | choke me | |
35342 | #else | |
35343 | char (*f) () = socket; | |
35344 | #endif | |
35345 | #ifdef __cplusplus | |
35346 | } | |
35347 | #endif | |
35348 | ||
35349 | int | |
35350 | main () | |
35351 | { | |
35352 | return f != socket; | |
35353 | ; | |
35354 | return 0; | |
35355 | } | |
35356 | _ACEOF | |
35357 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35359 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35360 | ac_status=$? |
ac1cb8d3 VS |
35361 | grep -v '^ *+' conftest.er1 >conftest.err |
35362 | rm -f conftest.er1 | |
35363 | cat conftest.err >&5 | |
a848cd7e SC |
35364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35365 | (exit $ac_status); } && | |
ea7db9ff DE |
35366 | { ac_try='test -z "$ac_c_werror_flag" |
35367 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35369 | (eval $ac_try) 2>&5 | |
35370 | ac_status=$? | |
35371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35372 | (exit $ac_status); }; } && | |
35373 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35375 | (eval $ac_try) 2>&5 | |
35376 | ac_status=$? | |
35377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35378 | (exit $ac_status); }; }; then | |
35379 | ac_cv_func_socket=yes | |
35380 | else | |
35381 | echo "$as_me: failed program was:" >&5 | |
35382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35383 | ||
35384 | ac_cv_func_socket=no | |
35385 | fi | |
ac1cb8d3 VS |
35386 | rm -f conftest.err conftest.$ac_objext \ |
35387 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35388 | fi |
35389 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35390 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35391 | if test $ac_cv_func_socket = yes; then | |
35392 | : | |
35393 | else | |
35394 | ||
35395 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35396 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35397 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35399 | else | |
35400 | ac_check_lib_save_LIBS=$LIBS | |
35401 | LIBS="-lsocket $LIBS" | |
35402 | cat >conftest.$ac_ext <<_ACEOF | |
35403 | /* confdefs.h. */ | |
35404 | _ACEOF | |
35405 | cat confdefs.h >>conftest.$ac_ext | |
35406 | cat >>conftest.$ac_ext <<_ACEOF | |
35407 | /* end confdefs.h. */ | |
35408 | ||
35409 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35410 | #ifdef __cplusplus | |
35411 | extern "C" | |
35412 | #endif | |
35413 | /* We use char because int might match the return type of a gcc2 | |
35414 | builtin and then its argument prototype would still apply. */ | |
35415 | char socket (); | |
35416 | int | |
35417 | main () | |
35418 | { | |
35419 | socket (); | |
35420 | ; | |
35421 | return 0; | |
35422 | } | |
35423 | _ACEOF | |
35424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35426 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35427 | ac_status=$? |
ac1cb8d3 VS |
35428 | grep -v '^ *+' conftest.er1 >conftest.err |
35429 | rm -f conftest.er1 | |
35430 | cat conftest.err >&5 | |
a848cd7e SC |
35431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35432 | (exit $ac_status); } && | |
ea7db9ff DE |
35433 | { ac_try='test -z "$ac_c_werror_flag" |
35434 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35436 | (eval $ac_try) 2>&5 | |
35437 | ac_status=$? | |
35438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35439 | (exit $ac_status); }; } && | |
35440 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35442 | (eval $ac_try) 2>&5 | |
35443 | ac_status=$? | |
35444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35445 | (exit $ac_status); }; }; then | |
35446 | ac_cv_lib_socket_socket=yes | |
35447 | else | |
35448 | echo "$as_me: failed program was:" >&5 | |
35449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35450 | ||
35451 | ac_cv_lib_socket_socket=no | |
35452 | fi | |
ac1cb8d3 VS |
35453 | rm -f conftest.err conftest.$ac_objext \ |
35454 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35455 | LIBS=$ac_check_lib_save_LIBS |
35456 | fi | |
35457 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35458 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35459 | if test $ac_cv_lib_socket_socket = yes; then | |
35460 | if test "$INET_LINK" != " -lsocket"; then | |
35461 | INET_LINK="$INET_LINK -lsocket" | |
35462 | fi | |
35463 | else | |
35464 | ||
35465 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35466 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35467 | wxUSE_SOCKETS=no | |
35468 | ||
35469 | ||
35470 | fi | |
35471 | ||
35472 | ||
35473 | ||
35474 | fi | |
35475 | ||
35476 | fi | |
35477 | fi | |
35478 | ||
35479 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35480 | if test "$TOOLKIT" != "MSW"; then | |
35481 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
35482 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
35483 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35485 | else | |
35486 | ||
35487 | cat >conftest.$ac_ext <<_ACEOF | |
35488 | /* confdefs.h. */ | |
35489 | _ACEOF | |
35490 | cat confdefs.h >>conftest.$ac_ext | |
35491 | cat >>conftest.$ac_ext <<_ACEOF | |
35492 | /* end confdefs.h. */ | |
35493 | ||
35494 | #include <sys/types.h> | |
35495 | #include <sys/socket.h> | |
35496 | ||
35497 | int | |
35498 | main () | |
35499 | { | |
35500 | ||
35501 | socklen_t len; | |
35502 | getsockname(0, 0, &len); | |
35503 | ||
35504 | ; | |
35505 | return 0; | |
35506 | } | |
35507 | _ACEOF | |
35508 | rm -f conftest.$ac_objext | |
35509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35510 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35511 | ac_status=$? |
ac1cb8d3 VS |
35512 | grep -v '^ *+' conftest.er1 >conftest.err |
35513 | rm -f conftest.er1 | |
35514 | cat conftest.err >&5 | |
a848cd7e SC |
35515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35516 | (exit $ac_status); } && | |
ea7db9ff DE |
35517 | { ac_try='test -z "$ac_c_werror_flag" |
35518 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35520 | (eval $ac_try) 2>&5 | |
35521 | ac_status=$? | |
35522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35523 | (exit $ac_status); }; } && | |
35524 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35526 | (eval $ac_try) 2>&5 | |
35527 | ac_status=$? | |
35528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35529 | (exit $ac_status); }; }; then | |
35530 | wx_cv_type_getsockname3=socklen_t | |
35531 | else | |
35532 | echo "$as_me: failed program was:" >&5 | |
35533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35534 | ||
35535 | ||
35536 | CFLAGS_OLD="$CFLAGS" | |
35537 | if test "$GCC" = yes ; then | |
35538 | CFLAGS="$CFLAGS -Werror" | |
35539 | fi | |
35540 | ||
35541 | cat >conftest.$ac_ext <<_ACEOF | |
35542 | /* confdefs.h. */ | |
35543 | _ACEOF | |
35544 | cat confdefs.h >>conftest.$ac_ext | |
35545 | cat >>conftest.$ac_ext <<_ACEOF | |
35546 | /* end confdefs.h. */ | |
35547 | ||
35548 | #include <sys/types.h> | |
35549 | #include <sys/socket.h> | |
35550 | ||
35551 | int | |
35552 | main () | |
35553 | { | |
35554 | ||
35555 | size_t len; | |
35556 | getsockname(0, 0, &len); | |
35557 | ||
35558 | ; | |
35559 | return 0; | |
35560 | } | |
35561 | _ACEOF | |
35562 | rm -f conftest.$ac_objext | |
35563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35564 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35565 | ac_status=$? |
ac1cb8d3 VS |
35566 | grep -v '^ *+' conftest.er1 >conftest.err |
35567 | rm -f conftest.er1 | |
35568 | cat conftest.err >&5 | |
a848cd7e SC |
35569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35570 | (exit $ac_status); } && | |
ea7db9ff DE |
35571 | { ac_try='test -z "$ac_c_werror_flag" |
35572 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35574 | (eval $ac_try) 2>&5 | |
35575 | ac_status=$? | |
35576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35577 | (exit $ac_status); }; } && | |
35578 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35580 | (eval $ac_try) 2>&5 | |
35581 | ac_status=$? | |
35582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35583 | (exit $ac_status); }; }; then | |
35584 | wx_cv_type_getsockname3=size_t | |
35585 | else | |
35586 | echo "$as_me: failed program was:" >&5 | |
35587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35588 | ||
35589 | cat >conftest.$ac_ext <<_ACEOF | |
35590 | /* confdefs.h. */ | |
35591 | _ACEOF | |
35592 | cat confdefs.h >>conftest.$ac_ext | |
35593 | cat >>conftest.$ac_ext <<_ACEOF | |
35594 | /* end confdefs.h. */ | |
35595 | ||
35596 | #include <sys/types.h> | |
35597 | #include <sys/socket.h> | |
35598 | ||
35599 | int | |
35600 | main () | |
35601 | { | |
35602 | ||
35603 | int len; | |
35604 | getsockname(0, 0, &len); | |
35605 | ||
35606 | ; | |
35607 | return 0; | |
35608 | } | |
35609 | _ACEOF | |
35610 | rm -f conftest.$ac_objext | |
35611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35613 | ac_status=$? |
ac1cb8d3 VS |
35614 | grep -v '^ *+' conftest.er1 >conftest.err |
35615 | rm -f conftest.er1 | |
35616 | cat conftest.err >&5 | |
a848cd7e SC |
35617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35618 | (exit $ac_status); } && | |
ea7db9ff DE |
35619 | { ac_try='test -z "$ac_c_werror_flag" |
35620 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35622 | (eval $ac_try) 2>&5 | |
35623 | ac_status=$? | |
35624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35625 | (exit $ac_status); }; } && | |
35626 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35628 | (eval $ac_try) 2>&5 | |
35629 | ac_status=$? | |
35630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35631 | (exit $ac_status); }; }; then | |
35632 | wx_cv_type_getsockname3=int | |
35633 | else | |
35634 | echo "$as_me: failed program was:" >&5 | |
35635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35636 | ||
35637 | wx_cv_type_getsockname3=unknown | |
35638 | ||
35639 | fi | |
ac1cb8d3 | 35640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35641 | |
35642 | fi | |
ac1cb8d3 | 35643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35644 | |
35645 | CFLAGS="$CFLAGS_OLD" | |
35646 | ||
35647 | ||
35648 | fi | |
ac1cb8d3 | 35649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35650 | |
35651 | fi | |
35652 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35653 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35654 | ||
35655 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35656 | wxUSE_SOCKETS=no | |
35657 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35658 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35659 | else | |
35660 | cat >>confdefs.h <<_ACEOF | |
35661 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35662 | _ACEOF | |
35663 | ||
35664 | fi | |
35665 | fi | |
35666 | fi | |
35667 | ||
35668 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35669 | cat >>confdefs.h <<\_ACEOF | |
35670 | #define wxUSE_SOCKETS 1 | |
35671 | _ACEOF | |
35672 | ||
35673 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35674 | fi | |
35675 | ||
35676 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35677 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35678 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35679 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35680 | wxUSE_PROTOCOL=no | |
35681 | fi | |
35682 | fi | |
35683 | ||
35684 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35685 | cat >>confdefs.h <<\_ACEOF | |
35686 | #define wxUSE_PROTOCOL 1 | |
35687 | _ACEOF | |
35688 | ||
35689 | ||
35690 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35691 | cat >>confdefs.h <<\_ACEOF | |
35692 | #define wxUSE_PROTOCOL_HTTP 1 | |
35693 | _ACEOF | |
35694 | ||
35695 | fi | |
35696 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35697 | cat >>confdefs.h <<\_ACEOF | |
35698 | #define wxUSE_PROTOCOL_FTP 1 | |
35699 | _ACEOF | |
35700 | ||
35701 | fi | |
35702 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35703 | cat >>confdefs.h <<\_ACEOF | |
35704 | #define wxUSE_PROTOCOL_FILE 1 | |
35705 | _ACEOF | |
35706 | ||
35707 | fi | |
35708 | else | |
35709 | if test "$wxUSE_FS_INET" = "yes"; then | |
35710 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35711 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35712 | wxUSE_FS_INET="no" | |
35713 | fi | |
35714 | fi | |
35715 | ||
35716 | if test "$wxUSE_URL" = "yes"; then | |
35717 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35718 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35719 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35720 | wxUSE_URL=no | |
35721 | fi | |
35722 | if test "$wxUSE_URL" = "yes"; then | |
35723 | cat >>confdefs.h <<\_ACEOF | |
35724 | #define wxUSE_URL 1 | |
35725 | _ACEOF | |
35726 | ||
35727 | fi | |
35728 | fi | |
35729 | ||
35730 | if test "$wxUSE_FS_INET" = "yes"; then | |
35731 | cat >>confdefs.h <<\_ACEOF | |
35732 | #define wxUSE_FS_INET 1 | |
35733 | _ACEOF | |
35734 | ||
35735 | fi | |
35736 | ||
35737 | ||
35738 | if test "$wxUSE_GUI" = "yes"; then | |
35739 | ||
35740 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35741 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35742 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35743 | wxUSE_JOYSTICK=no | |
35744 | fi | |
35745 | ||
35746 | if test "$TOOLKIT" != "MSW"; then | |
35747 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35748 | ||
35749 | for ac_header in linux/joystick.h | |
35750 | do | |
35751 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35752 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35753 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35755 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35757 | fi | |
35758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35759 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35760 | else | |
35761 | # Is the header compilable? | |
35762 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35763 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35764 | cat >conftest.$ac_ext <<_ACEOF | |
35765 | /* confdefs.h. */ | |
35766 | _ACEOF | |
35767 | cat confdefs.h >>conftest.$ac_ext | |
35768 | cat >>conftest.$ac_ext <<_ACEOF | |
35769 | /* end confdefs.h. */ | |
35770 | $ac_includes_default | |
35771 | #include <$ac_header> | |
35772 | _ACEOF | |
35773 | rm -f conftest.$ac_objext | |
35774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35775 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35776 | ac_status=$? |
ac1cb8d3 VS |
35777 | grep -v '^ *+' conftest.er1 >conftest.err |
35778 | rm -f conftest.er1 | |
35779 | cat conftest.err >&5 | |
a848cd7e SC |
35780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35781 | (exit $ac_status); } && | |
ea7db9ff DE |
35782 | { ac_try='test -z "$ac_c_werror_flag" |
35783 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35785 | (eval $ac_try) 2>&5 | |
35786 | ac_status=$? | |
35787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35788 | (exit $ac_status); }; } && | |
35789 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35791 | (eval $ac_try) 2>&5 | |
35792 | ac_status=$? | |
35793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35794 | (exit $ac_status); }; }; then | |
35795 | ac_header_compiler=yes | |
35796 | else | |
35797 | echo "$as_me: failed program was:" >&5 | |
35798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35799 | ||
35800 | ac_header_compiler=no | |
35801 | fi | |
ac1cb8d3 | 35802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35803 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35804 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35805 | ||
35806 | # Is the header present? | |
35807 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35808 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35809 | cat >conftest.$ac_ext <<_ACEOF | |
35810 | /* confdefs.h. */ | |
35811 | _ACEOF | |
35812 | cat confdefs.h >>conftest.$ac_ext | |
35813 | cat >>conftest.$ac_ext <<_ACEOF | |
35814 | /* end confdefs.h. */ | |
35815 | #include <$ac_header> | |
35816 | _ACEOF | |
35817 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35818 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35819 | ac_status=$? | |
35820 | grep -v '^ *+' conftest.er1 >conftest.err | |
35821 | rm -f conftest.er1 | |
35822 | cat conftest.err >&5 | |
35823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35824 | (exit $ac_status); } >/dev/null; then | |
35825 | if test -s conftest.err; then | |
35826 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35827 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35828 | else |
35829 | ac_cpp_err= | |
35830 | fi | |
35831 | else | |
35832 | ac_cpp_err=yes | |
35833 | fi | |
35834 | if test -z "$ac_cpp_err"; then | |
35835 | ac_header_preproc=yes | |
35836 | else | |
35837 | echo "$as_me: failed program was:" >&5 | |
35838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35839 | ||
35840 | ac_header_preproc=no | |
35841 | fi | |
35842 | rm -f conftest.err conftest.$ac_ext | |
35843 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35844 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35845 | ||
35846 | # So? What about this header? | |
ac1cb8d3 VS |
35847 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35848 | yes:no: ) | |
a848cd7e SC |
35849 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35850 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35851 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35852 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35853 | ac_header_preproc=yes | |
a848cd7e | 35854 | ;; |
ac1cb8d3 | 35855 | no:yes:* ) |
a848cd7e SC |
35856 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35857 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35858 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35859 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35860 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35861 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35862 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35863 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35864 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35865 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35866 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35867 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35868 | ( |
35869 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35870 | ## ----------------------------------------- ## |
35871 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35872 | ## ----------------------------------------- ## | |
a848cd7e SC |
35873 | _ASBOX |
35874 | ) | | |
35875 | sed "s/^/$as_me: WARNING: /" >&2 | |
35876 | ;; | |
35877 | esac | |
35878 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35880 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35882 | else | |
ac1cb8d3 | 35883 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35884 | fi |
35885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35886 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35887 | ||
35888 | fi | |
35889 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35890 | cat >>confdefs.h <<_ACEOF | |
35891 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35892 | _ACEOF | |
35893 | ||
35894 | fi | |
35895 | ||
35896 | done | |
35897 | ||
35898 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
35899 | wxUSE_JOYSTICK=no | |
35900 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
35901 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
35902 | fi | |
35903 | fi | |
35904 | fi | |
35905 | ||
35906 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35907 | cat >>confdefs.h <<\_ACEOF | |
35908 | #define wxUSE_JOYSTICK 1 | |
35909 | _ACEOF | |
35910 | ||
35911 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
35912 | fi | |
35913 | fi | |
35914 | ||
35915 | ||
35916 | ||
35917 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
35918 | cat >>confdefs.h <<\_ACEOF | |
35919 | #define wxUSE_FONTMAP 1 | |
35920 | _ACEOF | |
35921 | ||
35922 | fi | |
35923 | ||
35924 | if test "$wxUSE_UNICODE" = "yes" ; then | |
35925 | cat >>confdefs.h <<\_ACEOF | |
35926 | #define wxUSE_UNICODE 1 | |
35927 | _ACEOF | |
35928 | ||
35929 | ||
35930 | if test "$USE_WIN32" != 1; then | |
35931 | wxUSE_UNICODE_MSLU=no | |
35932 | fi | |
35933 | ||
35934 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
35935 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
35936 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
35937 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
35938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35939 | else | |
35940 | ac_check_lib_save_LIBS=$LIBS | |
35941 | LIBS="-lunicows $LIBS" | |
35942 | cat >conftest.$ac_ext <<_ACEOF | |
35943 | /* confdefs.h. */ | |
35944 | _ACEOF | |
35945 | cat confdefs.h >>conftest.$ac_ext | |
35946 | cat >>conftest.$ac_ext <<_ACEOF | |
35947 | /* end confdefs.h. */ | |
35948 | ||
35949 | ||
35950 | int | |
35951 | main () | |
35952 | { | |
35953 | main (); | |
35954 | ; | |
35955 | return 0; | |
35956 | } | |
35957 | _ACEOF | |
35958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35960 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35961 | ac_status=$? |
ac1cb8d3 VS |
35962 | grep -v '^ *+' conftest.er1 >conftest.err |
35963 | rm -f conftest.er1 | |
35964 | cat conftest.err >&5 | |
a848cd7e SC |
35965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35966 | (exit $ac_status); } && | |
ea7db9ff DE |
35967 | { ac_try='test -z "$ac_c_werror_flag" |
35968 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35970 | (eval $ac_try) 2>&5 | |
35971 | ac_status=$? | |
35972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35973 | (exit $ac_status); }; } && | |
35974 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35976 | (eval $ac_try) 2>&5 | |
35977 | ac_status=$? | |
35978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35979 | (exit $ac_status); }; }; then | |
35980 | ac_cv_lib_unicows_main=yes | |
35981 | else | |
35982 | echo "$as_me: failed program was:" >&5 | |
35983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35984 | ||
35985 | ac_cv_lib_unicows_main=no | |
35986 | fi | |
ac1cb8d3 VS |
35987 | rm -f conftest.err conftest.$ac_objext \ |
35988 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35989 | LIBS=$ac_check_lib_save_LIBS |
35990 | fi | |
35991 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
35992 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
35993 | if test $ac_cv_lib_unicows_main = yes; then | |
35994 | ||
35995 | cat >>confdefs.h <<\_ACEOF | |
35996 | #define wxUSE_UNICODE_MSLU 1 | |
35997 | _ACEOF | |
35998 | ||
35999 | ||
36000 | else | |
36001 | ||
36002 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36003 | Applications will only run on Windows NT/2000/XP!" >&5 | |
36004 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36005 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
36006 | wxUSE_UNICODE_MSLU=no | |
36007 | ||
36008 | fi | |
36009 | ||
36010 | fi | |
36011 | fi | |
36012 | ||
36013 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
36014 | cat >>confdefs.h <<\_ACEOF | |
36015 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
36016 | _ACEOF | |
36017 | ||
36018 | fi | |
36019 | ||
36020 | ||
36021 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
36022 | cat >>confdefs.h <<\_ACEOF | |
36023 | #define wxUSE_POSTSCRIPT 1 | |
36024 | _ACEOF | |
36025 | ||
36026 | fi | |
36027 | ||
36028 | cat >>confdefs.h <<\_ACEOF | |
36029 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
36030 | _ACEOF | |
36031 | ||
36032 | ||
36033 | cat >>confdefs.h <<\_ACEOF | |
36034 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
36035 | _ACEOF | |
36036 | ||
36037 | ||
36038 | ||
36039 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
36040 | cat >>confdefs.h <<\_ACEOF | |
36041 | #define wxUSE_CONSTRAINTS 1 | |
36042 | _ACEOF | |
36043 | ||
36044 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36045 | fi | |
36046 | ||
8a7b1113 VZ |
36047 | if test "$wxUSE_MDI" = "yes"; then |
36048 | cat >>confdefs.h <<\_ACEOF | |
36049 | #define wxUSE_MDI 1 | |
36050 | _ACEOF | |
36051 | ||
36052 | ||
36053 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36054 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36055 | #define wxUSE_MDI_ARCHITECTURE 1 |
36056 | _ACEOF | |
36057 | ||
8a7b1113 VZ |
36058 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
36059 | fi | |
a848cd7e SC |
36060 | fi |
36061 | ||
36062 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
36063 | cat >>confdefs.h <<\_ACEOF | |
36064 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
36065 | _ACEOF | |
36066 | ||
36067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36068 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36069 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36070 | fi | |
36071 | fi | |
36072 | ||
36073 | if test "$wxUSE_HELP" = "yes"; then | |
36074 | cat >>confdefs.h <<\_ACEOF | |
36075 | #define wxUSE_HELP 1 | |
36076 | _ACEOF | |
36077 | ||
36078 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
36079 | ||
36080 | if test "$wxUSE_MSW" = 1; then | |
36081 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
36082 | cat >>confdefs.h <<\_ACEOF | |
36083 | #define wxUSE_MS_HTML_HELP 1 | |
36084 | _ACEOF | |
36085 | ||
36086 | fi | |
36087 | fi | |
36088 | ||
36089 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36090 | if test "$wxUSE_HTML" = "yes"; then | |
36091 | cat >>confdefs.h <<\_ACEOF | |
36092 | #define wxUSE_WXHTML_HELP 1 | |
36093 | _ACEOF | |
36094 | ||
36095 | else | |
36096 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
36097 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
36098 | wxUSE_WXHTML_HELP=no | |
36099 | fi | |
36100 | fi | |
36101 | fi | |
36102 | ||
36103 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36104 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36105 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
36106 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
36107 | else | |
36108 | cat >>confdefs.h <<\_ACEOF | |
36109 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
36110 | _ACEOF | |
36111 | ||
36112 | fi | |
36113 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36114 | fi | |
36115 | ||
36116 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
36117 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36118 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36119 | { (exit 1); exit 1; }; } | |
36120 | fi | |
36121 | ||
36122 | ||
36123 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
36124 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
36125 | -o "$wxUSE_OLE" = "yes" \ | |
36126 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36127 | ||
36128 | for ac_header in ole2.h | |
36129 | do | |
36130 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36132 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36133 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36136 | fi | |
36137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36139 | else | |
36140 | # Is the header compilable? | |
36141 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36142 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36143 | cat >conftest.$ac_ext <<_ACEOF | |
36144 | /* confdefs.h. */ | |
36145 | _ACEOF | |
36146 | cat confdefs.h >>conftest.$ac_ext | |
36147 | cat >>conftest.$ac_ext <<_ACEOF | |
36148 | /* end confdefs.h. */ | |
36149 | $ac_includes_default | |
36150 | #include <$ac_header> | |
36151 | _ACEOF | |
36152 | rm -f conftest.$ac_objext | |
36153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36154 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36155 | ac_status=$? |
ac1cb8d3 VS |
36156 | grep -v '^ *+' conftest.er1 >conftest.err |
36157 | rm -f conftest.er1 | |
36158 | cat conftest.err >&5 | |
a848cd7e SC |
36159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36160 | (exit $ac_status); } && | |
ea7db9ff DE |
36161 | { ac_try='test -z "$ac_c_werror_flag" |
36162 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36164 | (eval $ac_try) 2>&5 | |
36165 | ac_status=$? | |
36166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36167 | (exit $ac_status); }; } && | |
36168 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36170 | (eval $ac_try) 2>&5 | |
36171 | ac_status=$? | |
36172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36173 | (exit $ac_status); }; }; then | |
36174 | ac_header_compiler=yes | |
36175 | else | |
36176 | echo "$as_me: failed program was:" >&5 | |
36177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36178 | ||
36179 | ac_header_compiler=no | |
36180 | fi | |
ac1cb8d3 | 36181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36183 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36184 | ||
36185 | # Is the header present? | |
36186 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36187 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36188 | cat >conftest.$ac_ext <<_ACEOF | |
36189 | /* confdefs.h. */ | |
36190 | _ACEOF | |
36191 | cat confdefs.h >>conftest.$ac_ext | |
36192 | cat >>conftest.$ac_ext <<_ACEOF | |
36193 | /* end confdefs.h. */ | |
36194 | #include <$ac_header> | |
36195 | _ACEOF | |
36196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36198 | ac_status=$? | |
36199 | grep -v '^ *+' conftest.er1 >conftest.err | |
36200 | rm -f conftest.er1 | |
36201 | cat conftest.err >&5 | |
36202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36203 | (exit $ac_status); } >/dev/null; then | |
36204 | if test -s conftest.err; then | |
36205 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36206 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36207 | else |
36208 | ac_cpp_err= | |
36209 | fi | |
36210 | else | |
36211 | ac_cpp_err=yes | |
36212 | fi | |
36213 | if test -z "$ac_cpp_err"; then | |
36214 | ac_header_preproc=yes | |
36215 | else | |
36216 | echo "$as_me: failed program was:" >&5 | |
36217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36218 | ||
36219 | ac_header_preproc=no | |
36220 | fi | |
36221 | rm -f conftest.err conftest.$ac_ext | |
36222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36223 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36224 | ||
36225 | # So? What about this header? | |
ac1cb8d3 VS |
36226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36227 | yes:no: ) | |
a848cd7e SC |
36228 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36229 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36230 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36231 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36232 | ac_header_preproc=yes | |
a848cd7e | 36233 | ;; |
ac1cb8d3 | 36234 | no:yes:* ) |
a848cd7e SC |
36235 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36236 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36237 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36238 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36239 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36240 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36241 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36242 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36244 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36245 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36246 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36247 | ( |
36248 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36249 | ## ----------------------------------------- ## |
36250 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36251 | ## ----------------------------------------- ## | |
a848cd7e SC |
36252 | _ASBOX |
36253 | ) | | |
36254 | sed "s/^/$as_me: WARNING: /" >&2 | |
36255 | ;; | |
36256 | esac | |
36257 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36261 | else | |
ac1cb8d3 | 36262 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36263 | fi |
36264 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36265 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36266 | ||
36267 | fi | |
36268 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36269 | cat >>confdefs.h <<_ACEOF | |
36270 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36271 | _ACEOF | |
36272 | ||
36273 | fi | |
36274 | ||
36275 | done | |
36276 | ||
36277 | ||
36278 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36279 | if test "$GCC" = yes ; then | |
36280 | ||
36281 | ||
36282 | ac_ext=cc | |
36283 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36284 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36285 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36286 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36287 | ||
36288 | ||
36289 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36290 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36291 | cat >conftest.$ac_ext <<_ACEOF | |
36292 | /* confdefs.h. */ | |
36293 | _ACEOF | |
36294 | cat confdefs.h >>conftest.$ac_ext | |
36295 | cat >>conftest.$ac_ext <<_ACEOF | |
36296 | /* end confdefs.h. */ | |
36297 | #include <windows.h> | |
36298 | #include <ole2.h> | |
36299 | int | |
36300 | main () | |
36301 | { | |
36302 | ||
36303 | ; | |
36304 | return 0; | |
36305 | } | |
36306 | _ACEOF | |
36307 | rm -f conftest.$ac_objext | |
36308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36309 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36310 | ac_status=$? |
ac1cb8d3 VS |
36311 | grep -v '^ *+' conftest.er1 >conftest.err |
36312 | rm -f conftest.er1 | |
36313 | cat conftest.err >&5 | |
a848cd7e SC |
36314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36315 | (exit $ac_status); } && | |
ea7db9ff DE |
36316 | { ac_try='test -z "$ac_cxx_werror_flag" |
36317 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36319 | (eval $ac_try) 2>&5 | |
36320 | ac_status=$? | |
36321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36322 | (exit $ac_status); }; } && | |
36323 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36325 | (eval $ac_try) 2>&5 | |
36326 | ac_status=$? | |
36327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36328 | (exit $ac_status); }; }; then | |
36329 | echo "$as_me:$LINENO: result: no" >&5 | |
36330 | echo "${ECHO_T}no" >&6 | |
36331 | else | |
36332 | echo "$as_me: failed program was:" >&5 | |
36333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36334 | ||
36335 | echo "$as_me:$LINENO: result: yes" >&5 | |
36336 | echo "${ECHO_T}yes" >&6 | |
36337 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36338 | fi | |
ac1cb8d3 | 36339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36340 | ac_ext=c |
36341 | ac_cpp='$CPP $CPPFLAGS' | |
36342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36345 | ||
36346 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
36347 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
36348 | if test "$wxUSE_OLE" = "yes" ; then | |
36349 | cat >>confdefs.h <<\_ACEOF | |
36350 | #define wxUSE_OLE 1 | |
36351 | _ACEOF | |
36352 | ||
36353 | fi | |
36354 | fi | |
36355 | ||
36356 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36357 | cat >>confdefs.h <<\_ACEOF | |
36358 | #define wxUSE_DATAOBJ 1 | |
36359 | _ACEOF | |
36360 | ||
36361 | fi | |
36362 | else | |
36363 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36364 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36365 | ||
36366 | wxUSE_CLIPBOARD=no | |
36367 | wxUSE_DRAG_AND_DROP=no | |
36368 | wxUSE_DATAOBJ=no | |
36369 | wxUSE_OLE=no | |
36370 | fi | |
36371 | ||
36372 | if test "$wxUSE_METAFILE" = "yes"; then | |
36373 | cat >>confdefs.h <<\_ACEOF | |
36374 | #define wxUSE_METAFILE 1 | |
36375 | _ACEOF | |
36376 | ||
36377 | ||
36378 | cat >>confdefs.h <<\_ACEOF | |
36379 | #define wxUSE_ENH_METAFILE 1 | |
36380 | _ACEOF | |
36381 | ||
36382 | fi | |
36383 | fi | |
36384 | ||
36385 | if test "$wxUSE_IPC" = "yes"; then | |
36386 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36387 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36388 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36389 | fi |
36390 | ||
36391 | cat >>confdefs.h <<\_ACEOF | |
36392 | #define wxUSE_IPC 1 | |
36393 | _ACEOF | |
36394 | ||
36395 | fi | |
36396 | ||
36397 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36398 | if test "$wxUSE_MGL" = 1; then | |
36399 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36400 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36401 | wxUSE_CLIPBOARD=no | |
36402 | fi | |
36403 | ||
36404 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36405 | cat >>confdefs.h <<\_ACEOF | |
36406 | #define wxUSE_CLIPBOARD 1 | |
36407 | _ACEOF | |
36408 | ||
36409 | ||
36410 | cat >>confdefs.h <<\_ACEOF | |
36411 | #define wxUSE_DATAOBJ 1 | |
36412 | _ACEOF | |
36413 | ||
36414 | fi | |
36415 | fi | |
36416 | ||
36417 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36418 | if test "$wxUSE_GTK" = 1; then | |
36419 | if test "$WXGTK12" != 1; then | |
36420 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36421 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36422 | wxUSE_DRAG_AND_DROP=no | |
36423 | fi | |
36424 | fi | |
36425 | ||
36426 | if test "$wxUSE_MOTIF" = 1; then | |
36427 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36428 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36429 | wxUSE_DRAG_AND_DROP=no | |
36430 | fi | |
36431 | ||
36432 | if test "$wxUSE_X11" = 1; then | |
36433 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36434 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36435 | wxUSE_DRAG_AND_DROP=no | |
36436 | fi | |
36437 | ||
36438 | if test "$wxUSE_MGL" = 1; then | |
36439 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36440 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36441 | wxUSE_DRAG_AND_DROP=no | |
36442 | fi | |
36443 | ||
36444 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36445 | cat >>confdefs.h <<\_ACEOF | |
36446 | #define wxUSE_DRAG_AND_DROP 1 | |
36447 | _ACEOF | |
36448 | ||
36449 | fi | |
36450 | ||
36451 | fi | |
36452 | ||
36453 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36454 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36455 | fi | |
36456 | ||
36457 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36458 | cat >>confdefs.h <<\_ACEOF | |
36459 | #define wxUSE_SPLINES 1 | |
36460 | _ACEOF | |
36461 | ||
36462 | fi | |
36463 | ||
36464 | ||
36465 | USES_CONTROLS=0 | |
36466 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36467 | USES_CONTROLS=1 | |
36468 | fi | |
36469 | ||
36470 | if test "$wxUSE_ACCEL" = "yes"; then | |
36471 | cat >>confdefs.h <<\_ACEOF | |
36472 | #define wxUSE_ACCEL 1 | |
36473 | _ACEOF | |
36474 | ||
36475 | USES_CONTROLS=1 | |
36476 | fi | |
36477 | ||
36478 | if test "$wxUSE_BUTTON" = "yes"; then | |
36479 | cat >>confdefs.h <<\_ACEOF | |
36480 | #define wxUSE_BUTTON 1 | |
36481 | _ACEOF | |
36482 | ||
36483 | USES_CONTROLS=1 | |
36484 | fi | |
36485 | ||
36486 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36487 | cat >>confdefs.h <<\_ACEOF | |
36488 | #define wxUSE_BMPBUTTON 1 | |
36489 | _ACEOF | |
36490 | ||
36491 | USES_CONTROLS=1 | |
36492 | fi | |
36493 | ||
36494 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36495 | cat >>confdefs.h <<\_ACEOF | |
36496 | #define wxUSE_CALENDARCTRL 1 | |
36497 | _ACEOF | |
36498 | ||
36499 | USES_CONTROLS=1 | |
36500 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36501 | fi | |
36502 | ||
36503 | if test "$wxUSE_CARET" = "yes"; then | |
36504 | cat >>confdefs.h <<\_ACEOF | |
36505 | #define wxUSE_CARET 1 | |
36506 | _ACEOF | |
36507 | ||
36508 | USES_CONTROLS=1 | |
36509 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36510 | fi | |
36511 | ||
36512 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36513 | cat >>confdefs.h <<\_ACEOF | |
36514 | #define wxUSE_COMBOBOX 1 | |
36515 | _ACEOF | |
36516 | ||
36517 | USES_CONTROLS=1 | |
36518 | fi | |
36519 | ||
36520 | if test "$wxUSE_CHOICE" = "yes"; then | |
36521 | cat >>confdefs.h <<\_ACEOF | |
36522 | #define wxUSE_CHOICE 1 | |
36523 | _ACEOF | |
36524 | ||
36525 | USES_CONTROLS=1 | |
36526 | fi | |
36527 | ||
36528 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
36529 | cat >>confdefs.h <<\_ACEOF | |
36530 | #define wxUSE_CHECKBOX 1 | |
36531 | _ACEOF | |
36532 | ||
36533 | USES_CONTROLS=1 | |
36534 | fi | |
36535 | ||
36536 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36537 | cat >>confdefs.h <<\_ACEOF | |
36538 | #define wxUSE_CHECKLISTBOX 1 | |
36539 | _ACEOF | |
36540 | ||
36541 | USES_CONTROLS=1 | |
36542 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36543 | fi | |
36544 | ||
36545 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36546 | cat >>confdefs.h <<\_ACEOF | |
36547 | #define wxUSE_DISPLAY 1 | |
36548 | _ACEOF | |
36549 | ||
36550 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36551 | fi | |
36552 | ||
36553 | if test "$wxUSE_GAUGE" = "yes"; then | |
36554 | cat >>confdefs.h <<\_ACEOF | |
36555 | #define wxUSE_GAUGE 1 | |
36556 | _ACEOF | |
36557 | ||
36558 | USES_CONTROLS=1 | |
36559 | fi | |
36560 | ||
36561 | if test "$wxUSE_GRID" = "yes"; then | |
36562 | cat >>confdefs.h <<\_ACEOF | |
36563 | #define wxUSE_GRID 1 | |
36564 | _ACEOF | |
36565 | ||
36566 | USES_CONTROLS=1 | |
36567 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36568 | fi | |
36569 | ||
36570 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36571 | cat >>confdefs.h <<\_ACEOF | |
36572 | #define wxUSE_IMAGLIST 1 | |
36573 | _ACEOF | |
36574 | ||
36575 | fi | |
36576 | ||
36577 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36578 | cat >>confdefs.h <<\_ACEOF | |
36579 | #define wxUSE_LISTBOOK 1 | |
36580 | _ACEOF | |
36581 | ||
36582 | USES_CONTROLS=1 | |
36583 | fi | |
36584 | ||
36585 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36586 | cat >>confdefs.h <<\_ACEOF | |
36587 | #define wxUSE_LISTBOX 1 | |
36588 | _ACEOF | |
36589 | ||
36590 | USES_CONTROLS=1 | |
36591 | fi | |
36592 | ||
36593 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36594 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36595 | cat >>confdefs.h <<\_ACEOF | |
36596 | #define wxUSE_LISTCTRL 1 | |
36597 | _ACEOF | |
36598 | ||
36599 | USES_CONTROLS=1 | |
36600 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36601 | else | |
36602 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36603 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36604 | fi | |
36605 | fi | |
36606 | ||
36607 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36608 | cat >>confdefs.h <<\_ACEOF | |
36609 | #define wxUSE_NOTEBOOK 1 | |
36610 | _ACEOF | |
36611 | ||
36612 | USES_CONTROLS=1 | |
36613 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36614 | fi | |
36615 | ||
36616 | ||
36617 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36618 | cat >>confdefs.h <<\_ACEOF | |
36619 | #define wxUSE_RADIOBOX 1 | |
36620 | _ACEOF | |
36621 | ||
36622 | USES_CONTROLS=1 | |
36623 | fi | |
36624 | ||
36625 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36626 | cat >>confdefs.h <<\_ACEOF | |
36627 | #define wxUSE_RADIOBTN 1 | |
36628 | _ACEOF | |
36629 | ||
36630 | USES_CONTROLS=1 | |
36631 | fi | |
36632 | ||
36633 | if test "$wxUSE_SASH" = "yes"; then | |
36634 | cat >>confdefs.h <<\_ACEOF | |
36635 | #define wxUSE_SASH 1 | |
36636 | _ACEOF | |
36637 | ||
36638 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36639 | fi | |
36640 | ||
36641 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36642 | cat >>confdefs.h <<\_ACEOF | |
36643 | #define wxUSE_SCROLLBAR 1 | |
36644 | _ACEOF | |
36645 | ||
36646 | USES_CONTROLS=1 | |
36647 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36648 | fi | |
36649 | ||
36650 | if test "$wxUSE_SLIDER" = "yes"; then | |
36651 | cat >>confdefs.h <<\_ACEOF | |
36652 | #define wxUSE_SLIDER 1 | |
36653 | _ACEOF | |
36654 | ||
36655 | USES_CONTROLS=1 | |
36656 | fi | |
36657 | ||
36658 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36659 | cat >>confdefs.h <<\_ACEOF | |
36660 | #define wxUSE_SPINBTN 1 | |
36661 | _ACEOF | |
36662 | ||
36663 | USES_CONTROLS=1 | |
36664 | fi | |
36665 | ||
36666 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36667 | cat >>confdefs.h <<\_ACEOF | |
36668 | #define wxUSE_SPINCTRL 1 | |
36669 | _ACEOF | |
36670 | ||
36671 | USES_CONTROLS=1 | |
36672 | fi | |
36673 | ||
36674 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36675 | cat >>confdefs.h <<\_ACEOF | |
36676 | #define wxUSE_SPLITTER 1 | |
36677 | _ACEOF | |
36678 | ||
36679 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36680 | fi | |
36681 | ||
36682 | if test "$wxUSE_STATBMP" = "yes"; then | |
36683 | cat >>confdefs.h <<\_ACEOF | |
36684 | #define wxUSE_STATBMP 1 | |
36685 | _ACEOF | |
36686 | ||
36687 | USES_CONTROLS=1 | |
36688 | fi | |
36689 | ||
36690 | if test "$wxUSE_STATBOX" = "yes"; then | |
36691 | cat >>confdefs.h <<\_ACEOF | |
36692 | #define wxUSE_STATBOX 1 | |
36693 | _ACEOF | |
36694 | ||
36695 | USES_CONTROLS=1 | |
36696 | fi | |
36697 | ||
36698 | if test "$wxUSE_STATTEXT" = "yes"; then | |
36699 | cat >>confdefs.h <<\_ACEOF | |
36700 | #define wxUSE_STATTEXT 1 | |
36701 | _ACEOF | |
36702 | ||
36703 | USES_CONTROLS=1 | |
36704 | fi | |
36705 | ||
36706 | if test "$wxUSE_STATLINE" = "yes"; then | |
36707 | cat >>confdefs.h <<\_ACEOF | |
36708 | #define wxUSE_STATLINE 1 | |
36709 | _ACEOF | |
36710 | ||
36711 | USES_CONTROLS=1 | |
36712 | fi | |
36713 | ||
36714 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
36715 | cat >>confdefs.h <<\_ACEOF | |
36716 | #define wxUSE_STATUSBAR 1 | |
36717 | _ACEOF | |
36718 | ||
36719 | USES_CONTROLS=1 | |
36720 | ||
36721 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
36722 | fi | |
36723 | ||
36724 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
36725 | cat >>confdefs.h <<\_ACEOF | |
36726 | #define wxUSE_TAB_DIALOG 1 | |
36727 | _ACEOF | |
36728 | ||
36729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36730 | fi | |
36731 | ||
36732 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
36733 | cat >>confdefs.h <<\_ACEOF | |
36734 | #define wxUSE_TEXTCTRL 1 | |
36735 | _ACEOF | |
36736 | ||
36737 | USES_CONTROLS=1 | |
36738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36739 | fi | |
36740 | ||
36741 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36742 | if test "$wxUSE_COCOA" = 1 ; then | |
36743 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
36744 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
36745 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
36746 | else |
36747 | if test "$wxUSE_PM" = 1; then | |
36748 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
36749 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
36750 | wxUSE_TOGGLEBTN=no | |
36751 | fi | |
a848cd7e SC |
36752 | fi |
36753 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36754 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
36755 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
36756 | wxUSE_TOGGLEBTN=no | |
36757 | fi | |
36758 | ||
36759 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36760 | cat >>confdefs.h <<\_ACEOF | |
36761 | #define wxUSE_TOGGLEBTN 1 | |
36762 | _ACEOF | |
36763 | ||
36764 | USES_CONTROLS=1 | |
36765 | fi | |
36766 | fi | |
36767 | ||
36768 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
36769 | cat >>confdefs.h <<\_ACEOF | |
36770 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
36771 | _ACEOF | |
36772 | ||
36773 | wxUSE_TOOLBAR="yes" | |
36774 | USES_CONTROLS=1 | |
36775 | fi | |
36776 | ||
36777 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
36778 | cat >>confdefs.h <<\_ACEOF | |
36779 | #define wxUSE_TOOLBAR 1 | |
36780 | _ACEOF | |
36781 | ||
36782 | USES_CONTROLS=1 | |
36783 | ||
36784 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
36785 | wxUSE_TOOLBAR_NATIVE="yes" | |
36786 | fi | |
36787 | ||
36788 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
36789 | cat >>confdefs.h <<\_ACEOF | |
36790 | #define wxUSE_TOOLBAR_NATIVE 1 | |
36791 | _ACEOF | |
36792 | ||
36793 | USES_CONTROLS=1 | |
36794 | fi | |
36795 | ||
36796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
36797 | fi | |
36798 | ||
36799 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
36800 | if test "$wxUSE_MOTIF" = 1; then | |
36801 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
36802 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
36803 | else | |
36804 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36805 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
36806 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
36807 | else | |
36808 | cat >>confdefs.h <<\_ACEOF | |
36809 | #define wxUSE_TOOLTIPS 1 | |
36810 | _ACEOF | |
36811 | ||
36812 | fi | |
36813 | fi | |
36814 | fi | |
36815 | ||
36816 | if test "$wxUSE_TREECTRL" = "yes"; then | |
36817 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36818 | cat >>confdefs.h <<\_ACEOF | |
36819 | #define wxUSE_TREECTRL 1 | |
36820 | _ACEOF | |
36821 | ||
36822 | USES_CONTROLS=1 | |
36823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
36824 | else | |
36825 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
36826 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36827 | fi | |
36828 | fi | |
36829 | ||
36830 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
36831 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
36832 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
36833 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
36834 | else | |
36835 | if test "$wxUSE_PM" = 1; then | |
36836 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
36837 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
36838 | else | |
36839 | cat >>confdefs.h <<\_ACEOF | |
36840 | #define wxUSE_POPUPWIN 1 | |
36841 | _ACEOF | |
36842 | ||
36843 | ||
36844 | USES_CONTROLS=1 | |
36845 | fi | |
36846 | fi | |
36847 | fi | |
36848 | ||
36849 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
36850 | if test "$wxUSE_PM" = 1; then | |
36851 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
36852 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
36853 | else | |
36854 | cat >>confdefs.h <<\_ACEOF | |
36855 | #define wxUSE_TIPWINDOW 1 | |
36856 | _ACEOF | |
36857 | ||
36858 | fi | |
36859 | fi | |
36860 | ||
36861 | if test "$USES_CONTROLS" = 1; then | |
36862 | cat >>confdefs.h <<\_ACEOF | |
36863 | #define wxUSE_CONTROLS 1 | |
36864 | _ACEOF | |
36865 | ||
36866 | fi | |
36867 | ||
36868 | ||
36869 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
36870 | cat >>confdefs.h <<\_ACEOF | |
36871 | #define wxUSE_ACCESSIBILITY 1 | |
36872 | _ACEOF | |
36873 | ||
36874 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36875 | fi | |
36876 | ||
36877 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
36878 | cat >>confdefs.h <<\_ACEOF | |
36879 | #define wxUSE_DRAGIMAGE 1 | |
36880 | _ACEOF | |
36881 | ||
36882 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36883 | fi | |
36884 | ||
36885 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
36886 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
36887 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
36888 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
36889 | else | |
36890 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36891 | #define wxUSE_EXCEPTIONS 1 |
36892 | _ACEOF | |
36893 | ||
07bea8f0 VS |
36894 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
36895 | fi | |
a848cd7e SC |
36896 | fi |
36897 | ||
36898 | USE_HTML=0 | |
36899 | if test "$wxUSE_HTML" = "yes"; then | |
36900 | cat >>confdefs.h <<\_ACEOF | |
36901 | #define wxUSE_HTML 1 | |
36902 | _ACEOF | |
36903 | ||
36904 | USE_HTML=1 | |
36905 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
36906 | if test "$wxUSE_MAC" = 1; then |
36907 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
36908 | fi | |
a848cd7e | 36909 | fi |
646b6ec1 | 36910 | if test "$wxUSE_WEBKIT" = "yes"; then |
07bea8f0 VS |
36911 | if test "$wxUSE_MAC" = 1; then |
36912 | old_CPPFLAGS="$CPPFLAGS" | |
36913 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
36914 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
36915 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
36916 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
36917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36918 | else | |
36919 | cat >conftest.$ac_ext <<_ACEOF | |
36920 | /* confdefs.h. */ | |
36921 | _ACEOF | |
36922 | cat confdefs.h >>conftest.$ac_ext | |
36923 | cat >>conftest.$ac_ext <<_ACEOF | |
36924 | /* end confdefs.h. */ | |
36925 | #include <Carbon/Carbon.h> | |
36926 | ||
36927 | #include <WebKit/HIWebView.h> | |
36928 | _ACEOF | |
36929 | rm -f conftest.$ac_objext | |
36930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36931 | (eval $ac_compile) 2>conftest.er1 | |
36932 | ac_status=$? | |
36933 | grep -v '^ *+' conftest.er1 >conftest.err | |
36934 | rm -f conftest.er1 | |
36935 | cat conftest.err >&5 | |
36936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36937 | (exit $ac_status); } && | |
ea7db9ff DE |
36938 | { ac_try='test -z "$ac_c_werror_flag" |
36939 | || test ! -s conftest.err' | |
07bea8f0 VS |
36940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36941 | (eval $ac_try) 2>&5 | |
36942 | ac_status=$? | |
36943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36944 | (exit $ac_status); }; } && | |
36945 | { ac_try='test -s conftest.$ac_objext' | |
36946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36947 | (eval $ac_try) 2>&5 | |
36948 | ac_status=$? | |
36949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36950 | (exit $ac_status); }; }; then | |
36951 | ac_cv_header_WebKit_HIWebView_h=yes | |
36952 | else | |
36953 | echo "$as_me: failed program was:" >&5 | |
36954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36955 | ||
36956 | ac_cv_header_WebKit_HIWebView_h=no | |
36957 | fi | |
36958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36959 | fi | |
36960 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
36961 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
36962 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
36963 | ||
36964 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
36965 | #define wxUSE_WEBKIT 1 |
36966 | _ACEOF | |
36967 | ||
07bea8f0 VS |
36968 | WEBKIT_LINK="-framework WebKit" |
36969 | ||
36970 | else | |
36971 | ||
36972 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
36973 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
36974 | wxUSE_WEBKIT=no | |
36975 | ||
646b6ec1 VS |
36976 | fi |
36977 | ||
07bea8f0 VS |
36978 | |
36979 | CPPFLAGS="$old_CPPFLAGS" | |
36980 | elif test "$wxUSE_COCOA" = 1; then | |
36981 | cat >>confdefs.h <<\_ACEOF | |
36982 | #define wxUSE_WEBKIT 1 | |
36983 | _ACEOF | |
36984 | ||
36985 | else | |
36986 | wxUSE_WEBKIT=no | |
36987 | fi | |
36988 | fi | |
36989 | ||
36990 | ||
a848cd7e SC |
36991 | if test "$wxUSE_MENUS" = "yes"; then |
36992 | cat >>confdefs.h <<\_ACEOF | |
36993 | #define wxUSE_MENUS 1 | |
36994 | _ACEOF | |
36995 | ||
36996 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
36997 | fi | |
36998 | ||
36999 | if test "$wxUSE_METAFILE" = "yes"; then | |
37000 | cat >>confdefs.h <<\_ACEOF | |
37001 | #define wxUSE_METAFILE 1 | |
37002 | _ACEOF | |
37003 | ||
37004 | fi | |
37005 | ||
37006 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
37007 | cat >>confdefs.h <<\_ACEOF | |
37008 | #define wxUSE_MIMETYPE 1 | |
37009 | _ACEOF | |
37010 | ||
37011 | fi | |
37012 | ||
37013 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
37014 | cat >>confdefs.h <<\_ACEOF | |
37015 | #define wxUSE_MINIFRAME 1 | |
37016 | _ACEOF | |
37017 | ||
37018 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
37019 | fi | |
37020 | ||
37021 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
37022 | cat >>confdefs.h <<\_ACEOF | |
37023 | #define wxUSE_SYSTEM_OPTIONS 1 | |
37024 | _ACEOF | |
37025 | ||
37026 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
37027 | "$TOOLKIT" = "MOTIF"; then | |
37028 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
37029 | fi | |
37030 | fi | |
37031 | ||
37032 | ||
37033 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
37034 | cat >>confdefs.h <<\_ACEOF | |
37035 | #define wxUSE_VALIDATORS 1 | |
37036 | _ACEOF | |
37037 | ||
37038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
37039 | fi | |
37040 | ||
37041 | if test "$wxUSE_PALETTE" = "yes" ; then | |
37042 | cat >>confdefs.h <<\_ACEOF | |
37043 | #define wxUSE_PALETTE 1 | |
37044 | _ACEOF | |
37045 | ||
37046 | fi | |
37047 | ||
37048 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
37049 | LIBS=" -lunicows $LIBS" | |
37050 | fi | |
37051 | ||
37052 | ||
37053 | if test "$wxUSE_IMAGE" = "yes" ; then | |
37054 | cat >>confdefs.h <<\_ACEOF | |
37055 | #define wxUSE_IMAGE 1 | |
37056 | _ACEOF | |
37057 | ||
37058 | ||
37059 | if test "$wxUSE_GIF" = "yes" ; then | |
37060 | cat >>confdefs.h <<\_ACEOF | |
37061 | #define wxUSE_GIF 1 | |
37062 | _ACEOF | |
37063 | ||
37064 | fi | |
37065 | ||
37066 | if test "$wxUSE_PCX" = "yes" ; then | |
37067 | cat >>confdefs.h <<\_ACEOF | |
37068 | #define wxUSE_PCX 1 | |
37069 | _ACEOF | |
37070 | ||
37071 | fi | |
37072 | ||
37073 | if test "$wxUSE_IFF" = "yes" ; then | |
37074 | cat >>confdefs.h <<\_ACEOF | |
37075 | #define wxUSE_IFF 1 | |
37076 | _ACEOF | |
37077 | ||
37078 | fi | |
37079 | ||
37080 | if test "$wxUSE_PNM" = "yes" ; then | |
37081 | cat >>confdefs.h <<\_ACEOF | |
37082 | #define wxUSE_PNM 1 | |
37083 | _ACEOF | |
37084 | ||
37085 | fi | |
37086 | ||
37087 | if test "$wxUSE_XPM" = "yes" ; then | |
37088 | cat >>confdefs.h <<\_ACEOF | |
37089 | #define wxUSE_XPM 1 | |
37090 | _ACEOF | |
37091 | ||
37092 | fi | |
37093 | ||
37094 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
37095 | cat >>confdefs.h <<\_ACEOF | |
37096 | #define wxUSE_ICO_CUR 1 | |
37097 | _ACEOF | |
37098 | ||
37099 | fi | |
37100 | fi | |
37101 | ||
37102 | ||
37103 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
37104 | cat >>confdefs.h <<\_ACEOF | |
37105 | #define wxUSE_CHOICEDLG 1 | |
37106 | _ACEOF | |
37107 | ||
37108 | fi | |
37109 | ||
37110 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
37111 | cat >>confdefs.h <<\_ACEOF | |
37112 | #define wxUSE_COLOURDLG 1 | |
37113 | _ACEOF | |
37114 | ||
37115 | fi | |
37116 | ||
37117 | if test "$wxUSE_FILEDLG" = "yes"; then | |
37118 | cat >>confdefs.h <<\_ACEOF | |
37119 | #define wxUSE_FILEDLG 1 | |
37120 | _ACEOF | |
37121 | ||
37122 | fi | |
37123 | ||
37124 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
37125 | cat >>confdefs.h <<\_ACEOF | |
37126 | #define wxUSE_FINDREPLDLG 1 | |
37127 | _ACEOF | |
37128 | ||
37129 | fi | |
37130 | ||
37131 | if test "$wxUSE_FONTDLG" = "yes"; then | |
37132 | cat >>confdefs.h <<\_ACEOF | |
37133 | #define wxUSE_FONTDLG 1 | |
37134 | _ACEOF | |
37135 | ||
37136 | fi | |
37137 | ||
37138 | if test "$wxUSE_DIRDLG" = "yes"; then | |
37139 | if test "$wxUSE_TREECTRL" != "yes"; then | |
37140 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
37141 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
37142 | else | |
37143 | cat >>confdefs.h <<\_ACEOF | |
37144 | #define wxUSE_DIRDLG 1 | |
37145 | _ACEOF | |
37146 | ||
37147 | fi | |
37148 | fi | |
37149 | ||
37150 | if test "$wxUSE_MSGDLG" = "yes"; then | |
37151 | cat >>confdefs.h <<\_ACEOF | |
37152 | #define wxUSE_MSGDLG 1 | |
37153 | _ACEOF | |
37154 | ||
37155 | fi | |
37156 | ||
37157 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
37158 | cat >>confdefs.h <<\_ACEOF | |
37159 | #define wxUSE_NUMBERDLG 1 | |
37160 | _ACEOF | |
37161 | ||
37162 | fi | |
37163 | ||
37164 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37165 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37166 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
37167 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
37168 | else | |
37169 | cat >>confdefs.h <<\_ACEOF | |
37170 | #define wxUSE_PROGRESSDLG 1 | |
37171 | _ACEOF | |
37172 | ||
37173 | fi | |
37174 | fi | |
37175 | ||
37176 | if test "$wxUSE_SPLASH" = "yes"; then | |
37177 | cat >>confdefs.h <<\_ACEOF | |
37178 | #define wxUSE_SPLASH 1 | |
37179 | _ACEOF | |
37180 | ||
2057db16 | 37181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
37182 | fi |
37183 | ||
37184 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
37185 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37186 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
37187 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
37188 | else | |
37189 | cat >>confdefs.h <<\_ACEOF | |
37190 | #define wxUSE_STARTUP_TIPS 1 | |
37191 | _ACEOF | |
37192 | ||
37193 | fi | |
37194 | fi | |
37195 | ||
37196 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
37197 | cat >>confdefs.h <<\_ACEOF | |
37198 | #define wxUSE_TEXTDLG 1 | |
37199 | _ACEOF | |
37200 | ||
37201 | fi | |
37202 | ||
37203 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37204 | cat >>confdefs.h <<\_ACEOF | |
37205 | #define wxUSE_WIZARDDLG 1 | |
37206 | _ACEOF | |
37207 | ||
37208 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37209 | fi | |
37210 | ||
37211 | ||
37212 | if test "$cross_compiling" = "yes"; then | |
37213 | OSINFO="\"$host\"" | |
37214 | else | |
37215 | OSINFO=`uname -s -r -m` | |
37216 | OSINFO="\"$OSINFO\"" | |
37217 | fi | |
37218 | ||
37219 | cat >>confdefs.h <<_ACEOF | |
37220 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37221 | _ACEOF | |
37222 | ||
37223 | ||
37224 | ||
37225 | if test "x$prefix" != "xNONE"; then | |
37226 | wxPREFIX=$prefix | |
37227 | else | |
37228 | wxPREFIX=$ac_default_prefix | |
37229 | fi | |
37230 | ||
37231 | cat >>confdefs.h <<_ACEOF | |
37232 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37233 | _ACEOF | |
37234 | ||
37235 | ||
37236 | top_builddir_wxconfig=`pwd` | |
37237 | ||
37238 | ||
37239 | ||
37240 | CORE_BASE_LIBS="net base" | |
37241 | CORE_GUI_LIBS="adv core" | |
37242 | ||
37243 | if test "$wxUSE_XML" = "yes" ; then | |
37244 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37245 | fi | |
37246 | if test "$wxUSE_ODBC" != "no" ; then | |
37247 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37248 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37249 | fi | |
37250 | if test "$wxUSE_HTML" = "yes" ; then | |
37251 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37252 | fi | |
37253 | ||
37254 | if test "$wxUSE_GUI" != "yes"; then | |
37255 | CORE_GUI_LIBS="" | |
37256 | fi | |
37257 | ||
37258 | ||
37259 | ||
37260 | ||
37261 | ||
37262 | ||
37263 | ||
37264 | ||
37265 | if test "$wxUSE_MAC" = 1 ; then | |
07bea8f0 VS |
37266 | if test "$wxUSE_SOUND" = "yes"; then |
37267 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
37268 | fi | |
37269 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" | |
a848cd7e SC |
37270 | fi |
37271 | if test "$wxUSE_COCOA" = 1 ; then | |
37272 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
37273 | fi | |
37274 | ||
37275 | ||
37276 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37277 | ||
37278 | have_cos=0 | |
37279 | have_floor=0 | |
37280 | ||
37281 | for ac_func in cos | |
37282 | do | |
37283 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37284 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37285 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37286 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37288 | else | |
37289 | cat >conftest.$ac_ext <<_ACEOF | |
37290 | /* confdefs.h. */ | |
37291 | _ACEOF | |
37292 | cat confdefs.h >>conftest.$ac_ext | |
37293 | cat >>conftest.$ac_ext <<_ACEOF | |
37294 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37295 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37296 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37297 | #define $ac_func innocuous_$ac_func | |
37298 | ||
a848cd7e SC |
37299 | /* System header to define __stub macros and hopefully few prototypes, |
37300 | which can conflict with char $ac_func (); below. | |
37301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37302 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37303 | |
a848cd7e SC |
37304 | #ifdef __STDC__ |
37305 | # include <limits.h> | |
37306 | #else | |
37307 | # include <assert.h> | |
37308 | #endif | |
ac1cb8d3 VS |
37309 | |
37310 | #undef $ac_func | |
37311 | ||
a848cd7e SC |
37312 | /* Override any gcc2 internal prototype to avoid an error. */ |
37313 | #ifdef __cplusplus | |
37314 | extern "C" | |
37315 | { | |
37316 | #endif | |
37317 | /* We use char because int might match the return type of a gcc2 | |
37318 | builtin and then its argument prototype would still apply. */ | |
37319 | char $ac_func (); | |
37320 | /* The GNU C library defines this for functions which it implements | |
37321 | to always fail with ENOSYS. Some functions are actually named | |
37322 | something starting with __ and the normal name is an alias. */ | |
37323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37324 | choke me | |
37325 | #else | |
37326 | char (*f) () = $ac_func; | |
37327 | #endif | |
37328 | #ifdef __cplusplus | |
37329 | } | |
37330 | #endif | |
37331 | ||
37332 | int | |
37333 | main () | |
37334 | { | |
37335 | return f != $ac_func; | |
37336 | ; | |
37337 | return 0; | |
37338 | } | |
37339 | _ACEOF | |
37340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37342 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37343 | ac_status=$? |
ac1cb8d3 VS |
37344 | grep -v '^ *+' conftest.er1 >conftest.err |
37345 | rm -f conftest.er1 | |
37346 | cat conftest.err >&5 | |
a848cd7e SC |
37347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37348 | (exit $ac_status); } && | |
ea7db9ff DE |
37349 | { ac_try='test -z "$ac_c_werror_flag" |
37350 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37352 | (eval $ac_try) 2>&5 | |
37353 | ac_status=$? | |
37354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37355 | (exit $ac_status); }; } && | |
37356 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37358 | (eval $ac_try) 2>&5 | |
37359 | ac_status=$? | |
37360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37361 | (exit $ac_status); }; }; then | |
37362 | eval "$as_ac_var=yes" | |
37363 | else | |
37364 | echo "$as_me: failed program was:" >&5 | |
37365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37366 | ||
37367 | eval "$as_ac_var=no" | |
37368 | fi | |
ac1cb8d3 VS |
37369 | rm -f conftest.err conftest.$ac_objext \ |
37370 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37371 | fi |
37372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37373 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37374 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37375 | cat >>confdefs.h <<_ACEOF | |
37376 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37377 | _ACEOF | |
37378 | have_cos=1 | |
37379 | fi | |
37380 | done | |
37381 | ||
37382 | ||
37383 | for ac_func in floor | |
37384 | do | |
37385 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37386 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37387 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37388 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37390 | else | |
37391 | cat >conftest.$ac_ext <<_ACEOF | |
37392 | /* confdefs.h. */ | |
37393 | _ACEOF | |
37394 | cat confdefs.h >>conftest.$ac_ext | |
37395 | cat >>conftest.$ac_ext <<_ACEOF | |
37396 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37397 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37398 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37399 | #define $ac_func innocuous_$ac_func | |
37400 | ||
a848cd7e SC |
37401 | /* System header to define __stub macros and hopefully few prototypes, |
37402 | which can conflict with char $ac_func (); below. | |
37403 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37404 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37405 | |
a848cd7e SC |
37406 | #ifdef __STDC__ |
37407 | # include <limits.h> | |
37408 | #else | |
37409 | # include <assert.h> | |
37410 | #endif | |
ac1cb8d3 VS |
37411 | |
37412 | #undef $ac_func | |
37413 | ||
a848cd7e SC |
37414 | /* Override any gcc2 internal prototype to avoid an error. */ |
37415 | #ifdef __cplusplus | |
37416 | extern "C" | |
37417 | { | |
37418 | #endif | |
37419 | /* We use char because int might match the return type of a gcc2 | |
37420 | builtin and then its argument prototype would still apply. */ | |
37421 | char $ac_func (); | |
37422 | /* The GNU C library defines this for functions which it implements | |
37423 | to always fail with ENOSYS. Some functions are actually named | |
37424 | something starting with __ and the normal name is an alias. */ | |
37425 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37426 | choke me | |
37427 | #else | |
37428 | char (*f) () = $ac_func; | |
37429 | #endif | |
37430 | #ifdef __cplusplus | |
37431 | } | |
37432 | #endif | |
37433 | ||
37434 | int | |
37435 | main () | |
37436 | { | |
37437 | return f != $ac_func; | |
37438 | ; | |
37439 | return 0; | |
37440 | } | |
37441 | _ACEOF | |
37442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37444 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37445 | ac_status=$? |
ac1cb8d3 VS |
37446 | grep -v '^ *+' conftest.er1 >conftest.err |
37447 | rm -f conftest.er1 | |
37448 | cat conftest.err >&5 | |
a848cd7e SC |
37449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37450 | (exit $ac_status); } && | |
ea7db9ff DE |
37451 | { ac_try='test -z "$ac_c_werror_flag" |
37452 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37454 | (eval $ac_try) 2>&5 | |
37455 | ac_status=$? | |
37456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37457 | (exit $ac_status); }; } && | |
37458 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37460 | (eval $ac_try) 2>&5 | |
37461 | ac_status=$? | |
37462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37463 | (exit $ac_status); }; }; then | |
37464 | eval "$as_ac_var=yes" | |
37465 | else | |
37466 | echo "$as_me: failed program was:" >&5 | |
37467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37468 | ||
37469 | eval "$as_ac_var=no" | |
37470 | fi | |
ac1cb8d3 VS |
37471 | rm -f conftest.err conftest.$ac_objext \ |
37472 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37473 | fi |
37474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37475 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37476 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37477 | cat >>confdefs.h <<_ACEOF | |
37478 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37479 | _ACEOF | |
37480 | have_floor=1 | |
37481 | fi | |
37482 | done | |
37483 | ||
37484 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37485 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37486 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37487 | echo "$as_me:$LINENO: result: yes" >&5 | |
37488 | echo "${ECHO_T}yes" >&6 | |
37489 | else | |
37490 | echo "$as_me:$LINENO: result: no" >&5 | |
37491 | echo "${ECHO_T}no" >&6 | |
37492 | LIBS="$LIBS -lm" | |
37493 | # use different functions to avoid configure caching | |
37494 | have_sin=0 | |
37495 | have_ceil=0 | |
37496 | ||
37497 | for ac_func in sin | |
37498 | do | |
37499 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37500 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37501 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37502 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37504 | else | |
37505 | cat >conftest.$ac_ext <<_ACEOF | |
37506 | /* confdefs.h. */ | |
37507 | _ACEOF | |
37508 | cat confdefs.h >>conftest.$ac_ext | |
37509 | cat >>conftest.$ac_ext <<_ACEOF | |
37510 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37511 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37512 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37513 | #define $ac_func innocuous_$ac_func | |
37514 | ||
a848cd7e SC |
37515 | /* System header to define __stub macros and hopefully few prototypes, |
37516 | which can conflict with char $ac_func (); below. | |
37517 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37518 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37519 | |
a848cd7e SC |
37520 | #ifdef __STDC__ |
37521 | # include <limits.h> | |
37522 | #else | |
37523 | # include <assert.h> | |
37524 | #endif | |
ac1cb8d3 VS |
37525 | |
37526 | #undef $ac_func | |
37527 | ||
a848cd7e SC |
37528 | /* Override any gcc2 internal prototype to avoid an error. */ |
37529 | #ifdef __cplusplus | |
37530 | extern "C" | |
37531 | { | |
37532 | #endif | |
37533 | /* We use char because int might match the return type of a gcc2 | |
37534 | builtin and then its argument prototype would still apply. */ | |
37535 | char $ac_func (); | |
37536 | /* The GNU C library defines this for functions which it implements | |
37537 | to always fail with ENOSYS. Some functions are actually named | |
37538 | something starting with __ and the normal name is an alias. */ | |
37539 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37540 | choke me | |
37541 | #else | |
37542 | char (*f) () = $ac_func; | |
37543 | #endif | |
37544 | #ifdef __cplusplus | |
37545 | } | |
37546 | #endif | |
37547 | ||
37548 | int | |
37549 | main () | |
37550 | { | |
37551 | return f != $ac_func; | |
37552 | ; | |
37553 | return 0; | |
37554 | } | |
37555 | _ACEOF | |
37556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37558 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37559 | ac_status=$? |
ac1cb8d3 VS |
37560 | grep -v '^ *+' conftest.er1 >conftest.err |
37561 | rm -f conftest.er1 | |
37562 | cat conftest.err >&5 | |
a848cd7e SC |
37563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37564 | (exit $ac_status); } && | |
ea7db9ff DE |
37565 | { ac_try='test -z "$ac_c_werror_flag" |
37566 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37568 | (eval $ac_try) 2>&5 | |
37569 | ac_status=$? | |
37570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37571 | (exit $ac_status); }; } && | |
37572 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37574 | (eval $ac_try) 2>&5 | |
37575 | ac_status=$? | |
37576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37577 | (exit $ac_status); }; }; then | |
37578 | eval "$as_ac_var=yes" | |
37579 | else | |
37580 | echo "$as_me: failed program was:" >&5 | |
37581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37582 | ||
37583 | eval "$as_ac_var=no" | |
37584 | fi | |
ac1cb8d3 VS |
37585 | rm -f conftest.err conftest.$ac_objext \ |
37586 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37587 | fi |
37588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37589 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37590 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37591 | cat >>confdefs.h <<_ACEOF | |
37592 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37593 | _ACEOF | |
37594 | have_sin=1 | |
37595 | fi | |
37596 | done | |
37597 | ||
37598 | ||
37599 | for ac_func in ceil | |
37600 | do | |
37601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37602 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37604 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37606 | else | |
37607 | cat >conftest.$ac_ext <<_ACEOF | |
37608 | /* confdefs.h. */ | |
37609 | _ACEOF | |
37610 | cat confdefs.h >>conftest.$ac_ext | |
37611 | cat >>conftest.$ac_ext <<_ACEOF | |
37612 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37613 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37614 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37615 | #define $ac_func innocuous_$ac_func | |
37616 | ||
a848cd7e SC |
37617 | /* System header to define __stub macros and hopefully few prototypes, |
37618 | which can conflict with char $ac_func (); below. | |
37619 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37620 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37621 | |
a848cd7e SC |
37622 | #ifdef __STDC__ |
37623 | # include <limits.h> | |
37624 | #else | |
37625 | # include <assert.h> | |
37626 | #endif | |
ac1cb8d3 VS |
37627 | |
37628 | #undef $ac_func | |
37629 | ||
a848cd7e SC |
37630 | /* Override any gcc2 internal prototype to avoid an error. */ |
37631 | #ifdef __cplusplus | |
37632 | extern "C" | |
37633 | { | |
37634 | #endif | |
37635 | /* We use char because int might match the return type of a gcc2 | |
37636 | builtin and then its argument prototype would still apply. */ | |
37637 | char $ac_func (); | |
37638 | /* The GNU C library defines this for functions which it implements | |
37639 | to always fail with ENOSYS. Some functions are actually named | |
37640 | something starting with __ and the normal name is an alias. */ | |
37641 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37642 | choke me | |
37643 | #else | |
37644 | char (*f) () = $ac_func; | |
37645 | #endif | |
37646 | #ifdef __cplusplus | |
37647 | } | |
37648 | #endif | |
37649 | ||
37650 | int | |
37651 | main () | |
37652 | { | |
37653 | return f != $ac_func; | |
37654 | ; | |
37655 | return 0; | |
37656 | } | |
37657 | _ACEOF | |
37658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37660 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37661 | ac_status=$? |
ac1cb8d3 VS |
37662 | grep -v '^ *+' conftest.er1 >conftest.err |
37663 | rm -f conftest.er1 | |
37664 | cat conftest.err >&5 | |
a848cd7e SC |
37665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37666 | (exit $ac_status); } && | |
ea7db9ff DE |
37667 | { ac_try='test -z "$ac_c_werror_flag" |
37668 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37670 | (eval $ac_try) 2>&5 | |
37671 | ac_status=$? | |
37672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37673 | (exit $ac_status); }; } && | |
37674 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37676 | (eval $ac_try) 2>&5 | |
37677 | ac_status=$? | |
37678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37679 | (exit $ac_status); }; }; then | |
37680 | eval "$as_ac_var=yes" | |
37681 | else | |
37682 | echo "$as_me: failed program was:" >&5 | |
37683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37684 | ||
37685 | eval "$as_ac_var=no" | |
37686 | fi | |
ac1cb8d3 VS |
37687 | rm -f conftest.err conftest.$ac_objext \ |
37688 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37689 | fi |
37690 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37691 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37692 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37693 | cat >>confdefs.h <<_ACEOF | |
37694 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37695 | _ACEOF | |
37696 | have_ceil=1 | |
37697 | fi | |
37698 | done | |
37699 | ||
37700 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
37701 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
37702 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
37703 | echo "$as_me:$LINENO: result: yes" >&5 | |
37704 | echo "${ECHO_T}yes" >&6 | |
37705 | else | |
37706 | echo "$as_me:$LINENO: result: no" >&5 | |
37707 | echo "${ECHO_T}no" >&6 | |
37708 | # not sure we should warn the user, crash, etc. | |
37709 | fi | |
37710 | fi | |
37711 | ||
37712 | if test "$wxUSE_GUI" = "yes"; then | |
37713 | ||
37714 | ||
37715 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
37716 | drawing dynamic erase event exec font image \ | |
37717 | minimal propsize rotate shaped widgets render" | |
37718 | ||
37719 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37720 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37721 | fi | |
37722 | else | |
37723 | SAMPLES_SUBDIRS="console" | |
37724 | fi | |
37725 | ||
37726 | ||
37727 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ | |
37728 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" | |
37729 | ||
37730 | if test "$GXX" = yes ; then | |
37731 | CXXWARNINGS="-Wall" | |
37732 | fi | |
37733 | ||
37734 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37735 | ||
37736 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` | |
37737 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
37738 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
37739 | ||
37740 | ||
37741 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
37742 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" | |
37743 | EXTRALIBS_XML="$EXPAT_LINK" | |
37744 | EXTRALIBS_HTML="$MSPACK_LINK" | |
37745 | EXTRALIBS_ODBC="$ODBC_LINK" | |
37746 | if test "$wxUSE_GUI" = "yes"; then | |
07bea8f0 | 37747 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK | sed 's/ \+/ /g'` |
a848cd7e SC |
37748 | fi |
37749 | if test "$wxUSE_OPENGL" = "yes"; then | |
37750 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37751 | fi | |
37752 | ||
37753 | LDFLAGS="$LDFLAGS $PROFILE" | |
37754 | ||
37755 | if test "$wxUSE_GTK" = 1; then | |
37756 | WXCONFIG_INCLUDE= | |
37757 | else | |
37758 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37759 | fi | |
37760 | ||
37761 | WXCONFIG_EXTRALIBS="$LIBS" | |
37762 | ||
37763 | if test "$wxUSE_REGEX" = "builtin" ; then | |
37764 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
37765 | fi | |
37766 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37767 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37768 | fi | |
37769 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37770 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37771 | fi | |
37772 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37773 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37774 | fi | |
37775 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37776 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37777 | fi | |
37778 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37779 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37780 | fi | |
37781 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37782 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37783 | fi | |
37784 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37785 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37786 | fi | |
37787 | ||
37788 | for i in $wxconfig_3rdparty ; do | |
37789 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
37790 | done | |
37791 | ||
37792 | ||
37793 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
37794 | WXUNIV=1 | |
37795 | else | |
37796 | WXUNIV=0 | |
37797 | fi | |
37798 | ||
37799 | ||
37800 | ||
37801 | ||
37802 | ||
37803 | ||
37804 | ||
37805 | ||
37806 | ||
37807 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
37808 | MONOLITHIC=1 | |
37809 | else | |
37810 | MONOLITHIC=0 | |
37811 | fi | |
37812 | ||
37813 | if test $wxUSE_PLUGINS = "yes" ; then | |
37814 | USE_PLUGINS=1 | |
37815 | else | |
37816 | USE_PLUGINS=0 | |
37817 | fi | |
37818 | ||
37819 | if test $wxUSE_ODBC != "no" ; then | |
37820 | USE_ODBC=1 | |
37821 | else | |
37822 | USE_ODBC=0 | |
37823 | fi | |
37824 | ||
37825 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
37826 | OFFICIAL_BUILD=1 | |
37827 | else | |
37828 | OFFICIAL_BUILD=0 | |
37829 | fi | |
37830 | ||
37831 | ||
37832 | ||
37833 | ||
37834 | ||
37835 | ||
37836 | ||
37837 | ||
37838 | ||
37839 | ||
37840 | ||
37841 | ||
37842 | ||
37843 | ||
37844 | ||
37845 | ||
37846 | ||
37847 | ||
37848 | ||
37849 | ||
37850 | ||
37851 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
37852 | ||
37853 | ||
37854 | ||
37855 | ||
37856 | ||
37857 | ||
37858 | ||
37859 | ||
37860 | ||
37861 | if test "x$BAKEFILE_HOST" = "x"; then | |
37862 | BAKEFILE_HOST="${host}" | |
37863 | fi | |
37864 | ||
37865 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
37866 | ||
37867 | if test -n "$ac_tool_prefix"; then | |
37868 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37869 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37872 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37874 | else | |
37875 | if test -n "$RANLIB"; then | |
37876 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
37877 | else | |
37878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37879 | for as_dir in $PATH | |
37880 | do | |
37881 | IFS=$as_save_IFS | |
37882 | test -z "$as_dir" && as_dir=. | |
37883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37884 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37885 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
37886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37887 | break 2 | |
37888 | fi | |
37889 | done | |
37890 | done | |
37891 | ||
37892 | fi | |
37893 | fi | |
37894 | RANLIB=$ac_cv_prog_RANLIB | |
37895 | if test -n "$RANLIB"; then | |
37896 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
37897 | echo "${ECHO_T}$RANLIB" >&6 | |
37898 | else | |
37899 | echo "$as_me:$LINENO: result: no" >&5 | |
37900 | echo "${ECHO_T}no" >&6 | |
37901 | fi | |
37902 | ||
37903 | fi | |
37904 | if test -z "$ac_cv_prog_RANLIB"; then | |
37905 | ac_ct_RANLIB=$RANLIB | |
37906 | # Extract the first word of "ranlib", so it can be a program name with args. | |
37907 | set dummy ranlib; ac_word=$2 | |
37908 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37910 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
37911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37912 | else | |
37913 | if test -n "$ac_ct_RANLIB"; then | |
37914 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
37915 | else | |
37916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37917 | for as_dir in $PATH | |
37918 | do | |
37919 | IFS=$as_save_IFS | |
37920 | test -z "$as_dir" && as_dir=. | |
37921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37922 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37923 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
37924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37925 | break 2 | |
37926 | fi | |
37927 | done | |
37928 | done | |
37929 | ||
37930 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
37931 | fi | |
37932 | fi | |
37933 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
37934 | if test -n "$ac_ct_RANLIB"; then | |
37935 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
37936 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
37937 | else | |
37938 | echo "$as_me:$LINENO: result: no" >&5 | |
37939 | echo "${ECHO_T}no" >&6 | |
37940 | fi | |
37941 | ||
37942 | RANLIB=$ac_ct_RANLIB | |
37943 | else | |
37944 | RANLIB="$ac_cv_prog_RANLIB" | |
37945 | fi | |
37946 | ||
37947 | # Find a good install program. We prefer a C program (faster), | |
37948 | # so one script is as good as another. But avoid the broken or | |
37949 | # incompatible versions: | |
37950 | # SysV /etc/install, /usr/sbin/install | |
37951 | # SunOS /usr/etc/install | |
37952 | # IRIX /sbin/install | |
37953 | # AIX /bin/install | |
37954 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
37955 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
37956 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
37957 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 37958 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
37959 | # ./install, which can be erroneously created by make from ./install.sh. |
37960 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
37961 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
37962 | if test -z "$INSTALL"; then | |
37963 | if test "${ac_cv_path_install+set}" = set; then | |
37964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37965 | else | |
37966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37967 | for as_dir in $PATH | |
37968 | do | |
37969 | IFS=$as_save_IFS | |
37970 | test -z "$as_dir" && as_dir=. | |
37971 | # Account for people who put trailing slashes in PATH elements. | |
37972 | case $as_dir/ in | |
37973 | ./ | .// | /cC/* | \ | |
37974 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 37975 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
37976 | /usr/ucb/* ) ;; |
37977 | *) | |
37978 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
37979 | # Don't use installbsd from OSF since it installs stuff as root | |
37980 | # by default. | |
37981 | for ac_prog in ginstall scoinst install; do | |
37982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
37983 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
37984 | if test $ac_prog = install && | |
37985 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37986 | # AIX install. It has an incompatible calling convention. | |
37987 | : | |
37988 | elif test $ac_prog = install && | |
37989 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37990 | # program-specific install script used by HP pwplus--don't use. | |
37991 | : | |
37992 | else | |
37993 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
37994 | break 3 | |
37995 | fi | |
37996 | fi | |
a848cd7e SC |
37997 | done |
37998 | done | |
37999 | ;; | |
38000 | esac | |
38001 | done | |
38002 | ||
38003 | ||
38004 | fi | |
38005 | if test "${ac_cv_path_install+set}" = set; then | |
38006 | INSTALL=$ac_cv_path_install | |
38007 | else | |
38008 | # As a last resort, use the slow shell script. We don't cache a | |
38009 | # path for INSTALL within a source directory, because that will | |
38010 | # break other packages using the cache if that directory is | |
38011 | # removed, or if the path is relative. | |
38012 | INSTALL=$ac_install_sh | |
38013 | fi | |
38014 | fi | |
38015 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
38016 | echo "${ECHO_T}$INSTALL" >&6 | |
38017 | ||
38018 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
38019 | # It thinks the first close brace ends the variable substitution. | |
38020 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
38021 | ||
38022 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
38023 | ||
38024 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
38025 | ||
38026 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
38027 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
38028 | LN_S=$as_ln_s | |
38029 | if test "$LN_S" = "ln -s"; then | |
38030 | echo "$as_me:$LINENO: result: yes" >&5 | |
38031 | echo "${ECHO_T}yes" >&6 | |
38032 | else | |
38033 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
38034 | echo "${ECHO_T}no, using $LN_S" >&6 | |
38035 | fi | |
38036 | ||
38037 | ||
38038 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38039 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 38040 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
38041 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38043 | else | |
38044 | cat >conftest.make <<\_ACEOF | |
38045 | all: | |
38046 | @echo 'ac_maketemp="$(MAKE)"' | |
38047 | _ACEOF | |
38048 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38049 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38050 | if test -n "$ac_maketemp"; then | |
38051 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38052 | else | |
38053 | eval ac_cv_prog_make_${ac_make}_set=no | |
38054 | fi | |
38055 | rm -f conftest.make | |
38056 | fi | |
38057 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38058 | echo "$as_me:$LINENO: result: yes" >&5 | |
38059 | echo "${ECHO_T}yes" >&6 | |
38060 | SET_MAKE= | |
38061 | else | |
38062 | echo "$as_me:$LINENO: result: no" >&5 | |
38063 | echo "${ECHO_T}no" >&6 | |
38064 | SET_MAKE="MAKE=${MAKE-make}" | |
38065 | fi | |
38066 | ||
38067 | ||
38068 | ||
38069 | if test -n "$ac_tool_prefix"; then | |
38070 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
38071 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
38072 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38074 | if test "${ac_cv_prog_AR+set}" = set; then | |
38075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38076 | else | |
38077 | if test -n "$AR"; then | |
38078 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38079 | else | |
38080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38081 | for as_dir in $PATH | |
38082 | do | |
38083 | IFS=$as_save_IFS | |
38084 | test -z "$as_dir" && as_dir=. | |
38085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38086 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38087 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
38088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38089 | break 2 | |
38090 | fi | |
38091 | done | |
38092 | done | |
38093 | ||
38094 | fi | |
38095 | fi | |
38096 | AR=$ac_cv_prog_AR | |
38097 | if test -n "$AR"; then | |
38098 | echo "$as_me:$LINENO: result: $AR" >&5 | |
38099 | echo "${ECHO_T}$AR" >&6 | |
38100 | else | |
38101 | echo "$as_me:$LINENO: result: no" >&5 | |
38102 | echo "${ECHO_T}no" >&6 | |
38103 | fi | |
38104 | ||
38105 | fi | |
38106 | if test -z "$ac_cv_prog_AR"; then | |
38107 | ac_ct_AR=$AR | |
38108 | # Extract the first word of "ar", so it can be a program name with args. | |
38109 | set dummy ar; ac_word=$2 | |
38110 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38112 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38114 | else | |
38115 | if test -n "$ac_ct_AR"; then | |
38116 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38117 | else | |
38118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38119 | for as_dir in $PATH | |
38120 | do | |
38121 | IFS=$as_save_IFS | |
38122 | test -z "$as_dir" && as_dir=. | |
38123 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38124 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38125 | ac_cv_prog_ac_ct_AR="ar" | |
38126 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38127 | break 2 | |
38128 | fi | |
38129 | done | |
38130 | done | |
38131 | ||
38132 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38133 | fi | |
38134 | fi | |
38135 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38136 | if test -n "$ac_ct_AR"; then | |
38137 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38138 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38139 | else | |
38140 | echo "$as_me:$LINENO: result: no" >&5 | |
38141 | echo "${ECHO_T}no" >&6 | |
38142 | fi | |
38143 | ||
38144 | AR=$ac_ct_AR | |
38145 | else | |
38146 | AR="$ac_cv_prog_AR" | |
38147 | fi | |
38148 | ||
38149 | if test -n "$ac_tool_prefix"; then | |
38150 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38151 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
38152 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38154 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38156 | else | |
38157 | if test -n "$STRIP"; then | |
38158 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38159 | else | |
38160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38161 | for as_dir in $PATH | |
38162 | do | |
38163 | IFS=$as_save_IFS | |
38164 | test -z "$as_dir" && as_dir=. | |
38165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38166 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38167 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
38168 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38169 | break 2 | |
38170 | fi | |
38171 | done | |
38172 | done | |
38173 | ||
38174 | fi | |
38175 | fi | |
38176 | STRIP=$ac_cv_prog_STRIP | |
38177 | if test -n "$STRIP"; then | |
38178 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
38179 | echo "${ECHO_T}$STRIP" >&6 | |
38180 | else | |
38181 | echo "$as_me:$LINENO: result: no" >&5 | |
38182 | echo "${ECHO_T}no" >&6 | |
38183 | fi | |
38184 | ||
38185 | fi | |
38186 | if test -z "$ac_cv_prog_STRIP"; then | |
38187 | ac_ct_STRIP=$STRIP | |
38188 | # Extract the first word of "strip", so it can be a program name with args. | |
38189 | set dummy strip; ac_word=$2 | |
38190 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38192 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38194 | else | |
38195 | if test -n "$ac_ct_STRIP"; then | |
38196 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38197 | else | |
38198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38199 | for as_dir in $PATH | |
38200 | do | |
38201 | IFS=$as_save_IFS | |
38202 | test -z "$as_dir" && as_dir=. | |
38203 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38204 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38205 | ac_cv_prog_ac_ct_STRIP="strip" | |
38206 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38207 | break 2 | |
38208 | fi | |
38209 | done | |
38210 | done | |
38211 | ||
38212 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38213 | fi | |
38214 | fi | |
38215 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38216 | if test -n "$ac_ct_STRIP"; then | |
38217 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38218 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38219 | else | |
38220 | echo "$as_me:$LINENO: result: no" >&5 | |
38221 | echo "${ECHO_T}no" >&6 | |
38222 | fi | |
38223 | ||
38224 | STRIP=$ac_ct_STRIP | |
38225 | else | |
38226 | STRIP="$ac_cv_prog_STRIP" | |
38227 | fi | |
38228 | ||
38229 | if test -n "$ac_tool_prefix"; then | |
38230 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38231 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38232 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38234 | if test "${ac_cv_prog_NM+set}" = set; then | |
38235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38236 | else | |
38237 | if test -n "$NM"; then | |
38238 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38239 | else | |
38240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38241 | for as_dir in $PATH | |
38242 | do | |
38243 | IFS=$as_save_IFS | |
38244 | test -z "$as_dir" && as_dir=. | |
38245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38246 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38247 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38248 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38249 | break 2 | |
38250 | fi | |
38251 | done | |
38252 | done | |
38253 | ||
38254 | fi | |
38255 | fi | |
38256 | NM=$ac_cv_prog_NM | |
38257 | if test -n "$NM"; then | |
38258 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38259 | echo "${ECHO_T}$NM" >&6 | |
38260 | else | |
38261 | echo "$as_me:$LINENO: result: no" >&5 | |
38262 | echo "${ECHO_T}no" >&6 | |
38263 | fi | |
38264 | ||
38265 | fi | |
38266 | if test -z "$ac_cv_prog_NM"; then | |
38267 | ac_ct_NM=$NM | |
38268 | # Extract the first word of "nm", so it can be a program name with args. | |
38269 | set dummy nm; ac_word=$2 | |
38270 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38272 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38274 | else | |
38275 | if test -n "$ac_ct_NM"; then | |
38276 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38277 | else | |
38278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38279 | for as_dir in $PATH | |
38280 | do | |
38281 | IFS=$as_save_IFS | |
38282 | test -z "$as_dir" && as_dir=. | |
38283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38285 | ac_cv_prog_ac_ct_NM="nm" | |
38286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38287 | break 2 | |
38288 | fi | |
38289 | done | |
38290 | done | |
38291 | ||
38292 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38293 | fi | |
38294 | fi | |
38295 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38296 | if test -n "$ac_ct_NM"; then | |
38297 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38298 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38299 | else | |
38300 | echo "$as_me:$LINENO: result: no" >&5 | |
38301 | echo "${ECHO_T}no" >&6 | |
38302 | fi | |
38303 | ||
38304 | NM=$ac_ct_NM | |
38305 | else | |
38306 | NM="$ac_cv_prog_NM" | |
38307 | fi | |
38308 | ||
38309 | ||
38310 | case ${BAKEFILE_HOST} in | |
38311 | *-hp-hpux* ) | |
38312 | INSTALL_DIR="mkdir" | |
38313 | ;; | |
38314 | *) INSTALL_DIR="$INSTALL -d" | |
38315 | ;; | |
38316 | esac | |
38317 | ||
38318 | ||
38319 | LDFLAGS_GUI= | |
38320 | case ${BAKEFILE_HOST} in | |
38321 | *-*-cygwin* | *-*-mingw32* ) | |
38322 | LDFLAGS_GUI="-mwindows" | |
38323 | esac | |
38324 | ||
38325 | ||
38326 | fi | |
38327 | ||
38328 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38329 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38330 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38332 | else | |
38333 | ||
38334 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38335 | egrep -s GNU > /dev/null); then | |
38336 | bakefile_cv_prog_makeisgnu="yes" | |
38337 | else | |
38338 | bakefile_cv_prog_makeisgnu="no" | |
38339 | fi | |
38340 | ||
38341 | fi | |
38342 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38343 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38344 | ||
38345 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38346 | IF_GNU_MAKE="" | |
38347 | else | |
38348 | IF_GNU_MAKE="#" | |
38349 | fi | |
38350 | ||
38351 | ||
38352 | ||
38353 | PLATFORM_UNIX=0 | |
38354 | PLATFORM_WIN32=0 | |
38355 | PLATFORM_MSDOS=0 | |
38356 | PLATFORM_MAC=0 | |
38357 | PLATFORM_MACOSX=0 | |
38358 | PLATFORM_OS2=0 | |
38359 | ||
38360 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38361 | case "${BAKEFILE_HOST}" in | |
38362 | *-*-cygwin* | *-*-mingw32* ) | |
38363 | PLATFORM_WIN32=1 | |
38364 | ;; | |
38365 | *-pc-msdosdjgpp ) | |
38366 | PLATFORM_MSDOS=1 | |
38367 | ;; | |
38368 | *-pc-os2_emx | *-pc-os2-emx ) | |
38369 | PLATFORM_OS2=1 | |
38370 | ;; | |
38371 | powerpc-*-darwin* ) | |
38372 | PLATFORM_MAC=1 | |
38373 | PLATFORM_MACOSX=1 | |
38374 | ;; | |
38375 | * ) | |
38376 | PLATFORM_UNIX=1 | |
38377 | ;; | |
38378 | esac | |
38379 | else | |
38380 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38381 | win32 ) | |
38382 | PLATFORM_WIN32=1 | |
38383 | ;; | |
38384 | msdos ) | |
38385 | PLATFORM_MSDOS=1 | |
38386 | ;; | |
38387 | os2 ) | |
38388 | PLATFORM_OS2=1 | |
38389 | ;; | |
38390 | darwin ) | |
38391 | PLATFORM_MAC=1 | |
38392 | PLATFORM_MACOSX=1 | |
38393 | ;; | |
38394 | unix ) | |
38395 | PLATFORM_UNIX=1 | |
38396 | ;; | |
38397 | * ) | |
38398 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38399 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38400 | { (exit 1); exit 1; }; } | |
38401 | ;; | |
38402 | esac | |
38403 | fi | |
38404 | ||
38405 | ||
38406 | ||
38407 | ||
38408 | ||
38409 | ||
38410 | ||
38411 | ||
38412 | ||
38413 | # Check whether --enable-omf or --disable-omf was given. | |
38414 | if test "${enable_omf+set}" = set; then | |
38415 | enableval="$enable_omf" | |
38416 | bk_os2_use_omf="$enableval" | |
38417 | fi; | |
38418 | ||
38419 | case "${BAKEFILE_HOST}" in | |
38420 | *-*-darwin* ) | |
38421 | CFLAGS="$CFLAGS -fno-common" | |
38422 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38423 | ;; | |
38424 | ||
38425 | *-pc-os2_emx | *-pc-os2-emx ) | |
38426 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38427 | AR=emxomfar | |
38428 | RANLIB=: | |
38429 | LDFLAGS="-Zomf $LDFLAGS" | |
38430 | CFLAGS="-Zomf $CFLAGS" | |
38431 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38432 | OS2_LIBEXT="lib" | |
38433 | else | |
38434 | OS2_LIBEXT="a" | |
38435 | fi | |
38436 | ;; | |
38437 | esac | |
38438 | ||
38439 | ||
38440 | SO_SUFFIX="so" | |
38441 | SO_SUFFIX_MODULE="so" | |
38442 | EXEEXT="" | |
38443 | LIBPREFIX="lib" | |
38444 | LIBEXT=".a" | |
38445 | DLLPREFIX="lib" | |
38446 | DLLPREFIX_MODULE="" | |
38447 | DLLIMP_SUFFIX="" | |
38448 | ||
38449 | case "${BAKEFILE_HOST}" in | |
38450 | *-hp-hpux* ) | |
38451 | SO_SUFFIX="sl" | |
38452 | SO_SUFFIX_MODULE="sl" | |
38453 | ;; | |
38454 | *-*-aix* ) | |
38455 | SO_SUFFIX="a" | |
38456 | SO_SUFFIX_MODULE="a" | |
38457 | ;; | |
38458 | *-*-cygwin* | *-*-mingw32* ) | |
38459 | SO_SUFFIX="dll" | |
38460 | SO_SUFFIX_MODULE="dll" | |
38461 | DLLIMP_SUFFIX="dll.a" | |
38462 | EXEEXT=".exe" | |
38463 | DLLPREFIX="" | |
38464 | ;; | |
38465 | *-pc-msdosdjgpp ) | |
38466 | EXEEXT=".exe" | |
38467 | DLLPREFIX="" | |
38468 | ;; | |
38469 | *-pc-os2_emx | *-pc-os2-emx ) | |
38470 | SO_SUFFIX="dll" | |
38471 | SO_SUFFIX_MODULE="dll" | |
38472 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38473 | EXEEXT=".exe" | |
38474 | DLLPREFIX="" | |
38475 | LIBPREFIX="" | |
38476 | LIBEXT=".$OS2_LIBEXT" | |
38477 | ;; | |
38478 | powerpc-*-darwin* ) | |
38479 | SO_SUFFIX="dylib" | |
38480 | SO_SUFFIX_MODULE="bundle" | |
38481 | ;; | |
38482 | esac | |
38483 | ||
38484 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38485 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38486 | fi | |
38487 | ||
38488 | ||
38489 | ||
38490 | ||
38491 | ||
38492 | ||
38493 | ||
38494 | ||
38495 | ||
38496 | ||
38497 | ||
38498 | SHARED_LD_CC="\$(CC) -shared -o" | |
38499 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38500 | ||
38501 | if test "x$GCC" = "xyes"; then | |
38502 | PIC_FLAG="-fPIC" | |
38503 | fi | |
38504 | ||
38505 | case "${BAKEFILE_HOST}" in | |
38506 | *-hp-hpux* ) | |
38507 | if test "x$GCC" = "xyes"; then | |
38508 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38509 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38510 | else | |
38511 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38512 | ||
38513 | SHARED_LD_CC="${CC} -b -o" | |
38514 | SHARED_LD_CXX="${CXX} -b -o" | |
38515 | PIC_FLAG="+Z" | |
38516 | fi | |
38517 | ;; | |
38518 | ||
38519 | *-*-linux* ) | |
38520 | if test "x$GCC" != "xyes"; then | |
38521 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38522 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38523 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38525 | else | |
38526 | ||
38527 | cat >conftest.$ac_ext <<_ACEOF | |
38528 | /* confdefs.h. */ | |
38529 | _ACEOF | |
38530 | cat confdefs.h >>conftest.$ac_ext | |
38531 | cat >>conftest.$ac_ext <<_ACEOF | |
38532 | /* end confdefs.h. */ | |
38533 | ||
38534 | int | |
38535 | main () | |
38536 | { | |
38537 | ||
38538 | #ifndef __INTEL_COMPILER | |
38539 | #error Not icc | |
38540 | #endif | |
38541 | ||
38542 | ; | |
38543 | return 0; | |
38544 | } | |
38545 | _ACEOF | |
38546 | rm -f conftest.$ac_objext | |
38547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38549 | ac_status=$? |
ac1cb8d3 VS |
38550 | grep -v '^ *+' conftest.er1 >conftest.err |
38551 | rm -f conftest.er1 | |
38552 | cat conftest.err >&5 | |
a848cd7e SC |
38553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38554 | (exit $ac_status); } && | |
ea7db9ff DE |
38555 | { ac_try='test -z "$ac_c_werror_flag" |
38556 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38558 | (eval $ac_try) 2>&5 | |
38559 | ac_status=$? | |
38560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38561 | (exit $ac_status); }; } && | |
38562 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38564 | (eval $ac_try) 2>&5 | |
38565 | ac_status=$? | |
38566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38567 | (exit $ac_status); }; }; then | |
38568 | bakefile_cv_prog_icc=yes | |
38569 | else | |
38570 | echo "$as_me: failed program was:" >&5 | |
38571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38572 | ||
38573 | bakefile_cv_prog_icc=no | |
38574 | ||
38575 | fi | |
ac1cb8d3 | 38576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38577 | |
38578 | fi | |
38579 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38580 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38581 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38582 | PIC_FLAG="-KPIC" | |
38583 | fi | |
38584 | fi | |
38585 | ;; | |
38586 | ||
38587 | *-*-solaris2* ) | |
38588 | if test "x$GCC" != xyes ; then | |
38589 | SHARED_LD_CC="${CC} -G -o" | |
38590 | SHARED_LD_CXX="${CXX} -G -o" | |
38591 | PIC_FLAG="-KPIC" | |
38592 | fi | |
38593 | ;; | |
38594 | ||
38595 | *-*-darwin* ) | |
38596 | ||
38597 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38598 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38599 | if test "${wx_cv_gcc31+set}" = set; then | |
38600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38601 | else | |
38602 | ||
38603 | cat >conftest.$ac_ext <<_ACEOF | |
38604 | /* confdefs.h. */ | |
38605 | _ACEOF | |
38606 | cat confdefs.h >>conftest.$ac_ext | |
38607 | cat >>conftest.$ac_ext <<_ACEOF | |
38608 | /* end confdefs.h. */ | |
38609 | ||
38610 | int | |
38611 | main () | |
38612 | { | |
38613 | ||
38614 | #if (__GNUC__ < 3) || \ | |
38615 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38616 | #error old gcc | |
38617 | #endif | |
38618 | ||
38619 | ; | |
38620 | return 0; | |
38621 | } | |
38622 | _ACEOF | |
38623 | rm -f conftest.$ac_objext | |
38624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38625 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38626 | ac_status=$? |
ac1cb8d3 VS |
38627 | grep -v '^ *+' conftest.er1 >conftest.err |
38628 | rm -f conftest.er1 | |
38629 | cat conftest.err >&5 | |
a848cd7e SC |
38630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38631 | (exit $ac_status); } && | |
ea7db9ff DE |
38632 | { ac_try='test -z "$ac_c_werror_flag" |
38633 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38635 | (eval $ac_try) 2>&5 | |
38636 | ac_status=$? | |
38637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38638 | (exit $ac_status); }; } && | |
38639 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38641 | (eval $ac_try) 2>&5 | |
38642 | ac_status=$? | |
38643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38644 | (exit $ac_status); }; }; then | |
38645 | ||
38646 | wx_cv_gcc31=yes | |
38647 | ||
38648 | else | |
38649 | echo "$as_me: failed program was:" >&5 | |
38650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38651 | ||
38652 | ||
38653 | wx_cv_gcc31=no | |
38654 | ||
38655 | ||
38656 | fi | |
ac1cb8d3 | 38657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38658 | |
38659 | fi | |
38660 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38661 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
38662 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
38663 | |
38664 | D='$' | |
38665 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38666 | #!/bin/sh |
38667 | #----------------------------------------------------------------------------- | |
38668 | #-- Name: distrib/mac/shared-ld-sh | |
38669 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38670 | #-- Author: Gilles Depeyrot | |
38671 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38672 | #-- Licence: any use permitted | |
38673 | #----------------------------------------------------------------------------- | |
38674 | ||
38675 | verbose=0 | |
38676 | args="" | |
38677 | objects="" | |
38678 | linking_flag="-dynamiclib" | |
38679 | ||
473276a9 VS |
38680 | while test ${D}# -gt 0; do |
38681 | case ${D}1 in | |
a848cd7e SC |
38682 | |
38683 | -v) | |
38684 | verbose=1 | |
38685 | ;; | |
38686 | ||
38687 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38688 | # collect these options and values | |
473276a9 | 38689 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
38690 | shift |
38691 | ;; | |
38692 | ||
38693 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
38694 | # collect these options | |
473276a9 | 38695 | args="${D}{args} ${D}1" |
a848cd7e SC |
38696 | ;; |
38697 | ||
38698 | -dynamiclib|-bundle) | |
473276a9 | 38699 | linking_flag="${D}1" |
a848cd7e SC |
38700 | ;; |
38701 | ||
38702 | -*) | |
473276a9 | 38703 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
38704 | exit 1 |
38705 | ;; | |
38706 | ||
38707 | *.o | *.a | *.dylib) | |
38708 | # collect object files | |
473276a9 | 38709 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
38710 | ;; |
38711 | ||
38712 | *) | |
473276a9 | 38713 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
38714 | exit 1 |
38715 | ;; | |
38716 | ||
38717 | esac | |
38718 | shift | |
38719 | done | |
38720 | ||
38721 | # | |
38722 | # Link one module containing all the others | |
38723 | # | |
473276a9 VS |
38724 | if test ${D}{verbose} = 1; then |
38725 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 38726 | fi |
473276a9 VS |
38727 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
38728 | status=${D}? | |
38729 | if test ${D}{status} != 0; then | |
38730 | exit ${D}{status} | |
a848cd7e SC |
38731 | fi |
38732 | ||
38733 | # | |
38734 | # Link the shared library from the single module created | |
38735 | # | |
473276a9 VS |
38736 | if test ${D}{verbose} = 1; then |
38737 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 38738 | fi |
473276a9 VS |
38739 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
38740 | status=${D}? | |
38741 | if test ${D}{status} != 0; then | |
38742 | exit ${D}{status} | |
a848cd7e SC |
38743 | fi |
38744 | ||
38745 | # | |
38746 | # Remove intermediate module | |
38747 | # | |
473276a9 | 38748 | rm -f master.${D}${D}.o |
a848cd7e SC |
38749 | |
38750 | exit 0 | |
38751 | EOF | |
473276a9 | 38752 | |
a848cd7e SC |
38753 | chmod +x shared-ld-sh |
38754 | ||
38755 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
38756 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
38757 | SHARED_LD_CXX="$SHARED_LD_CC" | |
38758 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38759 | else | |
38760 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38761 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38762 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38763 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
38764 | fi | |
38765 | ||
38766 | PIC_FLAG="-dynamic -fPIC" | |
38767 | ;; | |
38768 | ||
38769 | *-*-aix* ) | |
38770 | if test "x$GCC" != "xyes"; then | |
38771 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38772 | set dummy makeC++SharedLib; ac_word=$2 | |
38773 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38775 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38777 | else | |
38778 | if test -n "$AIX_CXX_LD"; then | |
38779 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38780 | else | |
38781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38782 | for as_dir in $PATH | |
38783 | do | |
38784 | IFS=$as_save_IFS | |
38785 | test -z "$as_dir" && as_dir=. | |
38786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38787 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38788 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38790 | break 2 | |
38791 | fi | |
38792 | done | |
38793 | done | |
38794 | ||
38795 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
38796 | fi | |
38797 | fi | |
38798 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
38799 | if test -n "$AIX_CXX_LD"; then | |
38800 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
38801 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
38802 | else | |
38803 | echo "$as_me:$LINENO: result: no" >&5 | |
38804 | echo "${ECHO_T}no" >&6 | |
38805 | fi | |
38806 | ||
38807 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38808 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38809 | fi | |
38810 | ;; | |
38811 | ||
38812 | *-*-beos* ) | |
38813 | SHARED_LD_CC="${LD} -shared -o" | |
38814 | SHARED_LD_CXX="${LD} -shared -o" | |
38815 | ;; | |
38816 | ||
38817 | *-*-irix* ) | |
38818 | if test "x$GCC" != "xyes"; then | |
38819 | PIC_FLAG="-KPIC" | |
38820 | fi | |
38821 | ;; | |
38822 | ||
38823 | *-*-cygwin* | *-*-mingw32* ) | |
38824 | PIC_FLAG="" | |
38825 | ;; | |
38826 | ||
38827 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
38828 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
38829 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 38830 | PIC_FLAG="" |
473276a9 VS |
38831 | |
38832 | D='$' | |
38833 | cat <<EOF >dllar.sh | |
38834 | #!/bin/sh | |
38835 | # | |
38836 | # dllar - a tool to build both a .dll and an .a file | |
38837 | # from a set of object (.o) files for EMX/OS2. | |
38838 | # | |
38839 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
38840 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
38841 | # | |
38842 | # This script will accept a set of files on the command line. | |
38843 | # All the public symbols from the .o files will be exported into | |
38844 | # a .DEF file, then linker will be run (through gcc) against them to | |
38845 | # build a shared library consisting of all given .o files. All libraries | |
38846 | # (.a) will be first decompressed into component .o files then act as | |
38847 | # described above. You can optionally give a description (-d "description") | |
38848 | # which will be put into .DLL. To see the list of accepted options (as well | |
38849 | # as command-line format) simply run this program without options. The .DLL | |
38850 | # is built to be imported by name (there is no guarantee that new versions | |
38851 | # of the library you build will have same ordinals for same symbols). | |
38852 | # | |
38853 | # dllar is free software; you can redistribute it and/or modify | |
38854 | # it under the terms of the GNU General Public License as published by | |
38855 | # the Free Software Foundation; either version 2, or (at your option) | |
38856 | # any later version. | |
38857 | # | |
38858 | # dllar is distributed in the hope that it will be useful, | |
38859 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
38860 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
38861 | # GNU General Public License for more details. | |
38862 | # | |
38863 | # You should have received a copy of the GNU General Public License | |
38864 | # along with dllar; see the file COPYING. If not, write to the Free | |
38865 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
38866 | # 02111-1307, USA. | |
38867 | ||
38868 | # To successfuly run this program you will need: | |
38869 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
38870 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
38871 | # - gcc | |
38872 | # (used to build the .dll) | |
38873 | # - emxexp | |
38874 | # (used to create .def file from .o files) | |
38875 | # - emximp | |
38876 | # (used to create .a file from .def file) | |
38877 | # - GNU text utilites (cat, sort, uniq) | |
38878 | # used to process emxexp output | |
38879 | # - GNU file utilities (mv, rm) | |
38880 | # - GNU sed | |
38881 | # - lxlite (optional, see flag below) | |
38882 | # (used for general .dll cleanup) | |
38883 | # | |
38884 | ||
38885 | flag_USE_LXLITE=1; | |
38886 | ||
38887 | # | |
38888 | # helper functions | |
38889 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
38890 | # second argument (suffix to remove) is given | |
38891 | basnam(){ | |
38892 | case ${D}# in | |
38893 | 1) | |
38894 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
38895 | ;; | |
38896 | 2) | |
38897 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
38898 | ;; | |
38899 | *) | |
38900 | echo "error in basnam ${D}*" | |
38901 | exit 8 | |
38902 | ;; | |
38903 | esac | |
38904 | } | |
38905 | ||
38906 | # Cleanup temporary files and output | |
38907 | CleanUp() { | |
38908 | cd ${D}curDir | |
38909 | for i in ${D}inputFiles ; do | |
38910 | case ${D}i in | |
38911 | *!) | |
38912 | rm -rf \`basnam ${D}i !\` | |
38913 | ;; | |
38914 | *) | |
38915 | ;; | |
38916 | esac | |
38917 | done | |
38918 | ||
38919 | # Kill result in case of failure as there is just to many stupid make/nmake | |
38920 | # things out there which doesn't do this. | |
2057db16 | 38921 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
38922 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
38923 | fi | |
38924 | } | |
38925 | ||
38926 | # Print usage and exit script with rc=1. | |
38927 | PrintHelp() { | |
2057db16 VS |
38928 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
38929 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
38930 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
38931 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
38932 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
38933 | echo '*> "output_file" should have no extension.' |
38934 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
38935 | echo ' The import library name is derived from this and is set to "name".a,' | |
38936 | echo ' unless overridden by -import' | |
38937 | echo '*> "importlib_name" should have no extension.' | |
38938 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
38939 | echo ' This name is used as the import library name and may be longer and' | |
38940 | echo ' more descriptive than the DLL name which has to follow the old ' | |
38941 | echo ' 8.3 convention of FAT.' | |
38942 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
38943 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
38944 | echo ' These flags will be put at the start of GCC command line.' | |
2057db16 VS |
38945 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
38946 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
38947 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
38948 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
38949 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
2057db16 | 38950 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 38951 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
2057db16 | 38952 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 38953 | echo ' C runtime DLLs.' |
2057db16 | 38954 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
38955 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
38956 | echo ' unchanged to GCC at the end of command line.' | |
38957 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
38958 | echo ' the basename for DLL and import library will be set to library name,' | |
38959 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
38960 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
38961 | echo ' library will be renamed into gcc_s.a.' | |
38962 | echo '--------' | |
38963 | echo 'Example:' | |
38964 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
38965 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
38966 | CleanUp | |
38967 | exit 1 | |
38968 | } | |
38969 | ||
38970 | # Execute a command. | |
38971 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
38972 | # @Uses Whatever CleanUp() uses. | |
38973 | doCommand() { | |
38974 | echo "${D}*" | |
38975 | eval ${D}* | |
38976 | rcCmd=${D}? | |
38977 | ||
2057db16 | 38978 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
38979 | echo "command failed, exit code="${D}rcCmd |
38980 | CleanUp | |
38981 | exit ${D}rcCmd | |
38982 | fi | |
38983 | } | |
38984 | ||
38985 | # main routine | |
38986 | # setup globals | |
38987 | cmdLine=${D}* | |
38988 | outFile="" | |
38989 | outimpFile="" | |
38990 | inputFiles="" | |
38991 | description="" | |
38992 | CC=gcc.exe | |
38993 | CFLAGS="-s -Zcrtdll" | |
38994 | EXTRA_CFLAGS="" | |
38995 | EXPORT_BY_ORDINALS=0 | |
38996 | exclude_symbols="" | |
38997 | library_flags="" | |
38998 | curDir=\`pwd\` | |
38999 | curDirS=curDir | |
39000 | case ${D}curDirS in | |
39001 | */) | |
39002 | ;; | |
39003 | *) | |
39004 | curDirS=${D}{curDirS}"/" | |
39005 | ;; | |
39006 | esac | |
39007 | # Parse commandline | |
39008 | libsToLink=0 | |
2057db16 | 39009 | while [] ${D}1 []; do |
473276a9 VS |
39010 | case ${D}1 in |
39011 | -ord*) | |
39012 | EXPORT_BY_ORDINALS=1; | |
39013 | ;; | |
39014 | -o*) | |
39015 | shift | |
39016 | outFile=${D}1 | |
39017 | ;; | |
39018 | -i*) | |
39019 | shift | |
39020 | outimpFile=${D}1 | |
39021 | ;; | |
39022 | -d*) | |
39023 | shift | |
39024 | description=${D}1 | |
39025 | ;; | |
39026 | -f*) | |
39027 | shift | |
39028 | CFLAGS=${D}1 | |
39029 | ;; | |
39030 | -c*) | |
39031 | shift | |
39032 | CC=${D}1 | |
39033 | ;; | |
39034 | -h*) | |
39035 | PrintHelp | |
39036 | ;; | |
39037 | -ex*) | |
39038 | shift | |
39039 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
39040 | ;; | |
39041 | -libf*) | |
39042 | shift | |
39043 | library_flags=${D}{library_flags}${D}1" " | |
39044 | ;; | |
39045 | -nocrt*) | |
39046 | CFLAGS="-s" | |
39047 | ;; | |
39048 | -nolxl*) | |
39049 | flag_USE_LXLITE=0 | |
39050 | ;; | |
39051 | -* | /*) | |
39052 | case ${D}1 in | |
39053 | -L* | -l*) | |
39054 | libsToLink=1 | |
39055 | ;; | |
39056 | *) | |
39057 | ;; | |
39058 | esac | |
39059 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
39060 | ;; | |
39061 | *) | |
39062 | found=0; | |
2057db16 | 39063 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
39064 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
39065 | else | |
39066 | for file in ${D}1 ; do | |
2057db16 | 39067 | if [] -f ${D}file []; then |
473276a9 VS |
39068 | inputFiles="${D}{inputFiles} ${D}file" |
39069 | found=1 | |
39070 | fi | |
39071 | done | |
2057db16 | 39072 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39073 | echo "ERROR: No file(s) found: "${D}1 |
39074 | exit 8 | |
39075 | fi | |
39076 | fi | |
39077 | ;; | |
39078 | esac | |
39079 | shift | |
39080 | done # iterate cmdline words | |
39081 | ||
39082 | # | |
2057db16 | 39083 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
39084 | echo "dllar: no input files" |
39085 | PrintHelp | |
39086 | fi | |
39087 | ||
39088 | # Now extract all .o files from .a files | |
39089 | newInputFiles="" | |
39090 | for file in ${D}inputFiles ; do | |
39091 | case ${D}file in | |
39092 | *.a | *.lib) | |
39093 | case ${D}file in | |
39094 | *.a) | |
39095 | suffix=".a" | |
39096 | AR="ar" | |
39097 | ;; | |
39098 | *.lib) | |
39099 | suffix=".lib" | |
39100 | AR="emxomfar" | |
39101 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39102 | ;; | |
39103 | *) | |
39104 | ;; | |
39105 | esac | |
39106 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39107 | mkdir ${D}dirname | |
2057db16 | 39108 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
39109 | echo "Failed to create subdirectory ./${D}dirname" |
39110 | CleanUp | |
39111 | exit 8; | |
39112 | fi | |
39113 | # Append '!' to indicate archive | |
39114 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39115 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39116 | cd ${D}curDir | |
39117 | found=0; | |
39118 | for subfile in ${D}dirname/*.o* ; do | |
2057db16 | 39119 | if [] -f ${D}subfile []; then |
473276a9 | 39120 | found=1 |
2057db16 | 39121 | if [] -s ${D}subfile []; then |
473276a9 VS |
39122 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39123 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39124 | fi | |
39125 | fi | |
39126 | done | |
2057db16 | 39127 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39128 | echo "WARNING: there are no files in archive \'${D}file\'" |
39129 | fi | |
39130 | ;; | |
39131 | *) | |
39132 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39133 | ;; | |
39134 | esac | |
39135 | done | |
39136 | inputFiles="${D}newInputFiles" | |
39137 | ||
39138 | # Output filename(s). | |
39139 | do_backup=0; | |
2057db16 | 39140 | if [] -z ${D}outFile []; then |
473276a9 VS |
39141 | do_backup=1; |
39142 | set outFile ${D}inputFiles; outFile=${D}2 | |
39143 | fi | |
39144 | ||
39145 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39146 | case ${D}outFile in | |
39147 | *_%!) | |
39148 | outFile=\`basnam ${D}outFile _%!\` | |
39149 | ;; | |
39150 | *) | |
39151 | ;; | |
39152 | esac | |
39153 | case ${D}outFile in | |
39154 | *.dll) | |
39155 | outFile=\`basnam ${D}outFile .dll\` | |
39156 | ;; | |
39157 | *.DLL) | |
39158 | outFile=\`basnam ${D}outFile .DLL\` | |
39159 | ;; | |
39160 | *.o) | |
39161 | outFile=\`basnam ${D}outFile .o\` | |
39162 | ;; | |
39163 | *.obj) | |
39164 | outFile=\`basnam ${D}outFile .obj\` | |
39165 | ;; | |
39166 | *.a) | |
39167 | outFile=\`basnam ${D}outFile .a\` | |
39168 | ;; | |
39169 | *.lib) | |
39170 | outFile=\`basnam ${D}outFile .lib\` | |
39171 | ;; | |
39172 | *) | |
39173 | ;; | |
39174 | esac | |
39175 | case ${D}outimpFile in | |
39176 | *.a) | |
39177 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39178 | ;; | |
39179 | *.lib) | |
39180 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39181 | ;; | |
39182 | *) | |
39183 | ;; | |
39184 | esac | |
2057db16 | 39185 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
39186 | outimpFile=${D}outFile |
39187 | fi | |
39188 | defFile="${D}{outFile}.def" | |
39189 | arcFile="${D}{outimpFile}.a" | |
39190 | arcFile2="${D}{outimpFile}.lib" | |
39191 | dllFile="${D}outFile" | |
39192 | # Add suffix to dllFile later, first we need a version to use as | |
39193 | # name in .def file. | |
39194 | ||
2057db16 VS |
39195 | if [] ${D}do_backup -ne 0 [] ; then |
39196 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
39197 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39198 | fi | |
2057db16 | 39199 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
39200 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39201 | fi | |
39202 | fi | |
39203 | ||
39204 | # Extract public symbols from all the object files. | |
39205 | tmpdefFile=${D}{defFile}_% | |
39206 | rm -f ${D}tmpdefFile | |
39207 | for file in ${D}inputFiles ; do | |
39208 | case ${D}file in | |
39209 | *!) | |
39210 | ;; | |
39211 | *) | |
39212 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39213 | ;; | |
39214 | esac | |
39215 | done | |
39216 | ||
39217 | # Create the def file. | |
39218 | rm -f ${D}defFile | |
39219 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39220 | dllFile="${D}dllFile.dll" | |
2057db16 | 39221 | if [] -n ${D}description []; then |
473276a9 VS |
39222 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
39223 | fi | |
39224 | echo "EXPORTS" >> ${D}defFile | |
39225 | ||
39226 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39227 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39228 | ||
39229 | # Checks if the export is ok or not. | |
39230 | for word in ${D}exclude_symbols; do | |
39231 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39232 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39233 | done | |
39234 | ||
39235 | ||
2057db16 | 39236 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39237 | sed "=" < ${D}tmpdefFile | \ |
39238 | sed ' | |
39239 | N | |
39240 | : loop | |
2057db16 | 39241 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
39242 | t loop |
39243 | ' > ${D}{tmpdefFile}% | |
39244 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39245 | else | |
39246 | rm -f ${D}{tmpdefFile}% | |
39247 | fi | |
39248 | cat ${D}tmpdefFile >> ${D}defFile | |
39249 | rm -f ${D}tmpdefFile | |
39250 | ||
39251 | # Do linking, create implib, and apply lxlite. | |
39252 | gccCmdl=""; | |
39253 | for file in ${D}inputFiles ; do | |
39254 | case ${D}file in | |
39255 | *!) | |
39256 | ;; | |
39257 | *) | |
39258 | gccCmdl="${D}gccCmdl ${D}file" | |
39259 | ;; | |
39260 | esac | |
39261 | done | |
39262 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39263 | touch "${D}{outFile}.dll" | |
39264 | ||
39265 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
2057db16 | 39266 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39267 | add_flags=""; |
2057db16 | 39268 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39269 | add_flags="-ynd" |
39270 | fi | |
39271 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39272 | fi | |
39273 | doCommand "emxomf -s -l ${D}arcFile" | |
39274 | ||
39275 | # Successful exit. | |
39276 | CleanUp 1 | |
39277 | exit 0 | |
39278 | EOF | |
39279 | ||
39280 | chmod +x dllar.sh | |
a848cd7e SC |
39281 | ;; |
39282 | ||
39283 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39284 | *-*-sunos4* | \ | |
39285 | *-*-osf* | \ | |
39286 | *-*-dgux5* | \ | |
39287 | *-*-sysv5* ) | |
39288 | ;; | |
39289 | ||
39290 | *) | |
39291 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39292 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39293 | { (exit 1); exit 1; }; } | |
39294 | esac | |
39295 | ||
2057db16 VS |
39296 | if test "x$PIC_FLAG" != "x" ; then |
39297 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39298 | fi | |
39299 | ||
a848cd7e SC |
39300 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39301 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39302 | fi | |
39303 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39304 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39305 | fi | |
39306 | ||
39307 | ||
39308 | ||
39309 | ||
39310 | ||
39311 | ||
39312 | ||
39313 | ||
39314 | USE_SOVERSION=0 | |
39315 | USE_SOVERLINUX=0 | |
39316 | USE_SOVERSOLARIS=0 | |
39317 | USE_SOSYMLINKS=0 | |
39318 | USE_MACVERSION=0 | |
39319 | SONAME_FLAG= | |
39320 | ||
39321 | case "${BAKEFILE_HOST}" in | |
39322 | *-*-linux* ) | |
39323 | SONAME_FLAG="-Wl,-soname," | |
39324 | USE_SOVERSION=1 | |
39325 | USE_SOVERLINUX=1 | |
39326 | USE_SOSYMLINKS=1 | |
39327 | ;; | |
39328 | ||
39329 | *-*-solaris2* ) | |
39330 | SONAME_FLAG="-h " | |
39331 | USE_SOVERSION=1 | |
39332 | USE_SOVERSOLARIS=1 | |
39333 | USE_SOSYMLINKS=1 | |
39334 | ;; | |
39335 | ||
39336 | *-*-darwin* ) | |
39337 | USE_MACVERSION=1 | |
39338 | USE_SOVERSION=1 | |
39339 | USE_SOSYMLINKS=1 | |
39340 | ;; | |
39341 | esac | |
39342 | ||
39343 | ||
39344 | ||
39345 | ||
39346 | ||
39347 | ||
39348 | ||
39349 | ||
39350 | ||
39351 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39352 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39353 | DEPS_TRACKING=0 | |
39354 | ||
39355 | if test "x$GCC" = "xyes"; then | |
39356 | DEPSMODE=gcc | |
39357 | DEPS_TRACKING=1 | |
39358 | case "${BAKEFILE_HOST}" in | |
39359 | powerpc-*-darwin* ) | |
39360 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39361 | ;; | |
39362 | * ) | |
39363 | DEPSFLAG_GCC="-MMD" | |
39364 | ;; | |
39365 | esac | |
39366 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39367 | echo "${ECHO_T}gcc" >&6 | |
39368 | else | |
39369 | echo "$as_me:$LINENO: result: none" >&5 | |
39370 | echo "${ECHO_T}none" >&6 | |
39371 | fi | |
39372 | ||
39373 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39374 | |
39375 | D='$' | |
39376 | cat <<EOF >bk-deps | |
a848cd7e SC |
39377 | #!/bin/sh |
39378 | ||
39379 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39380 | # script. It is used to track C/C++ files dependencies in portable way. | |
39381 | # | |
39382 | # Permission is given to use this file in any way. | |
39383 | ||
473276a9 | 39384 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39385 | DEPSDIR=.deps |
473276a9 | 39386 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39387 | |
473276a9 | 39388 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39389 | |
473276a9 VS |
39390 | if test ${D}DEPSMODE = gcc ; then |
39391 | ${D}* ${D}{DEPSFLAG_GCC} | |
39392 | status=${D}? | |
39393 | if test ${D}{status} != 0 ; then | |
39394 | exit ${D}{status} | |
a848cd7e SC |
39395 | fi |
39396 | # move created file to the location we want it in: | |
473276a9 VS |
39397 | while test ${D}# -gt 0; do |
39398 | case "${D}1" in | |
a848cd7e SC |
39399 | -o ) |
39400 | shift | |
473276a9 | 39401 | objfile=${D}1 |
a848cd7e SC |
39402 | ;; |
39403 | -* ) | |
39404 | ;; | |
39405 | * ) | |
473276a9 | 39406 | srcfile=${D}1 |
a848cd7e SC |
39407 | ;; |
39408 | esac | |
39409 | shift | |
39410 | done | |
473276a9 VS |
39411 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39412 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39413 | if test -f ${D}depfile ; then | |
39414 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39415 | rm -f ${D}depfile | |
a848cd7e | 39416 | else |
473276a9 VS |
39417 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39418 | if test -f ${D}depfile ; then | |
39419 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39420 | rm -f ${D}depfile | |
a848cd7e SC |
39421 | fi |
39422 | fi | |
39423 | exit 0 | |
39424 | else | |
473276a9 VS |
39425 | ${D}* |
39426 | exit ${D}? | |
a848cd7e SC |
39427 | fi |
39428 | EOF | |
473276a9 | 39429 | |
a848cd7e SC |
39430 | chmod +x bk-deps |
39431 | fi | |
39432 | ||
39433 | ||
39434 | ||
39435 | ||
39436 | RESCOMP= | |
39437 | SETFILE= | |
39438 | ||
39439 | case ${BAKEFILE_HOST} in | |
39440 | *-*-cygwin* | *-*-mingw32* ) | |
39441 | if test "$build" != "$host" ; then | |
39442 | RESCOMP=$host_alias-windres | |
39443 | else | |
39444 | # Extract the first word of "windres", so it can be a program name with args. | |
39445 | set dummy windres; ac_word=$2 | |
39446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39448 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39450 | else | |
39451 | if test -n "$RESCOMP"; then | |
39452 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39453 | else | |
39454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39455 | for as_dir in $PATH | |
39456 | do | |
39457 | IFS=$as_save_IFS | |
39458 | test -z "$as_dir" && as_dir=. | |
39459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39460 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39461 | ac_cv_prog_RESCOMP="windres" | |
39462 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39463 | break 2 | |
39464 | fi | |
39465 | done | |
39466 | done | |
39467 | ||
39468 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39469 | fi | |
39470 | fi | |
39471 | RESCOMP=$ac_cv_prog_RESCOMP | |
39472 | if test -n "$RESCOMP"; then | |
39473 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39474 | echo "${ECHO_T}$RESCOMP" >&6 | |
39475 | else | |
39476 | echo "$as_me:$LINENO: result: no" >&5 | |
39477 | echo "${ECHO_T}no" >&6 | |
39478 | fi | |
39479 | ||
39480 | fi | |
39481 | ;; | |
39482 | ||
39483 | *-*-darwin* ) | |
39484 | # Extract the first word of "Rez", so it can be a program name with args. | |
39485 | set dummy Rez; ac_word=$2 | |
39486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39488 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39490 | else | |
39491 | if test -n "$RESCOMP"; then | |
39492 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39493 | else | |
39494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39495 | for as_dir in $PATH | |
39496 | do | |
39497 | IFS=$as_save_IFS | |
39498 | test -z "$as_dir" && as_dir=. | |
39499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39501 | ac_cv_prog_RESCOMP="Rez" | |
39502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39503 | break 2 | |
39504 | fi | |
39505 | done | |
39506 | done | |
39507 | ||
39508 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39509 | fi | |
39510 | fi | |
39511 | RESCOMP=$ac_cv_prog_RESCOMP | |
39512 | if test -n "$RESCOMP"; then | |
39513 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39514 | echo "${ECHO_T}$RESCOMP" >&6 | |
39515 | else | |
39516 | echo "$as_me:$LINENO: result: no" >&5 | |
39517 | echo "${ECHO_T}no" >&6 | |
39518 | fi | |
39519 | ||
39520 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39521 | set dummy SetFile; ac_word=$2 | |
39522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39524 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39526 | else | |
39527 | if test -n "$SETFILE"; then | |
39528 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39529 | else | |
39530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39531 | for as_dir in $PATH | |
39532 | do | |
39533 | IFS=$as_save_IFS | |
39534 | test -z "$as_dir" && as_dir=. | |
39535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39537 | ac_cv_prog_SETFILE="SetFile" | |
39538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39539 | break 2 | |
39540 | fi | |
39541 | done | |
39542 | done | |
39543 | ||
39544 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39545 | fi | |
39546 | fi | |
39547 | SETFILE=$ac_cv_prog_SETFILE | |
39548 | if test -n "$SETFILE"; then | |
39549 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39550 | echo "${ECHO_T}$SETFILE" >&6 | |
39551 | else | |
39552 | echo "$as_me:$LINENO: result: no" >&5 | |
39553 | echo "${ECHO_T}no" >&6 | |
39554 | fi | |
39555 | ||
39556 | ;; | |
39557 | esac | |
39558 | ||
39559 | ||
39560 | ||
39561 | ||
39562 | ||
2057db16 | 39563 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39564 | |
dcc1b6ad | 39565 | |
9f45f08e | 39566 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39567 | |
646b6ec1 | 39568 | |
74b84332 | 39569 | |
a848cd7e SC |
39570 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39571 | if test "${enable_precomp_headers+set}" = set; then | |
39572 | enableval="$enable_precomp_headers" | |
39573 | bk_use_pch="$enableval" | |
39574 | fi; | |
39575 | ||
39576 | GCC_PCH=0 | |
39577 | ||
39578 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39579 | if test "x$GCC" = "xyes"; then | |
39580 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39581 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39582 | cat >conftest.$ac_ext <<_ACEOF | |
39583 | /* confdefs.h. */ | |
39584 | _ACEOF | |
39585 | cat confdefs.h >>conftest.$ac_ext | |
39586 | cat >>conftest.$ac_ext <<_ACEOF | |
39587 | /* end confdefs.h. */ | |
39588 | ||
39589 | int | |
39590 | main () | |
39591 | { | |
39592 | ||
39593 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39594 | #error "no pch support" | |
39595 | #endif | |
39596 | #if (__GNUC__ < 3) | |
39597 | #error "no pch support" | |
39598 | #endif | |
39599 | #if (__GNUC__ == 3) && \ | |
39600 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39601 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39602 | #error "no pch support" | |
39603 | #endif | |
39604 | ||
39605 | ; | |
39606 | return 0; | |
39607 | } | |
39608 | _ACEOF | |
39609 | rm -f conftest.$ac_objext | |
39610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39611 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39612 | ac_status=$? |
ac1cb8d3 VS |
39613 | grep -v '^ *+' conftest.er1 >conftest.err |
39614 | rm -f conftest.er1 | |
39615 | cat conftest.err >&5 | |
a848cd7e SC |
39616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39617 | (exit $ac_status); } && | |
ea7db9ff DE |
39618 | { ac_try='test -z "$ac_c_werror_flag" |
39619 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39621 | (eval $ac_try) 2>&5 | |
39622 | ac_status=$? | |
39623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39624 | (exit $ac_status); }; } && | |
39625 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39627 | (eval $ac_try) 2>&5 | |
39628 | ac_status=$? | |
39629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39630 | (exit $ac_status); }; }; then | |
39631 | ||
39632 | echo "$as_me:$LINENO: result: yes" >&5 | |
39633 | echo "${ECHO_T}yes" >&6 | |
39634 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
39635 | GCC_PCH=1 | |
39636 | ||
39637 | else | |
39638 | echo "$as_me: failed program was:" >&5 | |
39639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39640 | ||
39641 | ||
39642 | echo "$as_me:$LINENO: result: no" >&5 | |
39643 | echo "${ECHO_T}no" >&6 | |
39644 | ||
39645 | fi | |
ac1cb8d3 | 39646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39647 | if test $GCC_PCH = 1 ; then |
39648 | cat <<EOF >bk-make-pch | |
39649 | #!/bin/sh | |
39650 | ||
39651 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39652 | # script. It is used to generated precompiled headers. | |
39653 | # | |
39654 | # Permission is given to use this file in any way. | |
39655 | ||
39656 | outfile="\${1}" | |
39657 | header="\${2}" | |
39658 | shift | |
39659 | shift | |
39660 | ||
39661 | compiler= | |
39662 | headerfile= | |
39663 | while test \${#} -gt 0; do | |
39664 | case "\${1}" in | |
39665 | -I* ) | |
39666 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39667 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39668 | headerfile="\${incdir}/\${header}" | |
39669 | fi | |
39670 | ;; | |
39671 | esac | |
39672 | compiler="\${compiler} \${1}" | |
39673 | shift | |
39674 | done | |
39675 | ||
39676 | if test "x\${headerfile}" = "x" ; then | |
39677 | echo "error: can't find header \${header} in include paths" >2 | |
39678 | else | |
39679 | if test -f \${outfile} ; then | |
39680 | rm -f \${outfile} | |
39681 | else | |
39682 | mkdir -p \`dirname \${outfile}\` | |
39683 | fi | |
39684 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39685 | mkdir -p .deps | |
39686 | # can do this because gcc is >= 3.4: | |
39687 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39688 | exit \${?} | |
39689 | fi | |
39690 | EOF | |
39691 | chmod +x bk-make-pch | |
39692 | fi | |
39693 | fi | |
39694 | fi | |
39695 | ||
39696 | ||
39697 | ||
39698 | ||
39699 | ||
dcc1b6ad VS |
39700 | |
39701 | ||
39702 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
39703 | if test "${enable_precomp_headers+set}" = set; then | |
39704 | enableval="$enable_precomp_headers" | |
39705 | bk_use_pch="$enableval" | |
39706 | fi; | |
39707 | ||
39708 | GCC_PCH=0 | |
39709 | ||
39710 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39711 | if test "x$GCC" = "xyes"; then | |
39712 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39713 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39714 | cat >conftest.$ac_ext <<_ACEOF | |
39715 | /* confdefs.h. */ | |
39716 | _ACEOF | |
39717 | cat confdefs.h >>conftest.$ac_ext | |
39718 | cat >>conftest.$ac_ext <<_ACEOF | |
39719 | /* end confdefs.h. */ | |
39720 | ||
39721 | int | |
39722 | main () | |
39723 | { | |
39724 | ||
39725 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39726 | #error "no pch support" | |
39727 | #endif | |
39728 | #if (__GNUC__ < 3) | |
39729 | #error "no pch support" | |
39730 | #endif | |
39731 | #if (__GNUC__ == 3) && \ | |
39732 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39733 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39734 | #error "no pch support" | |
39735 | #endif | |
39736 | ||
39737 | ; | |
39738 | return 0; | |
39739 | } | |
39740 | _ACEOF | |
39741 | rm -f conftest.$ac_objext | |
39742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39743 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 39744 | ac_status=$? |
ac1cb8d3 VS |
39745 | grep -v '^ *+' conftest.er1 >conftest.err |
39746 | rm -f conftest.er1 | |
39747 | cat conftest.err >&5 | |
dcc1b6ad VS |
39748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39749 | (exit $ac_status); } && | |
ea7db9ff DE |
39750 | { ac_try='test -z "$ac_c_werror_flag" |
39751 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39753 | (eval $ac_try) 2>&5 | |
39754 | ac_status=$? | |
39755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39756 | (exit $ac_status); }; } && | |
39757 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
39758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39759 | (eval $ac_try) 2>&5 | |
39760 | ac_status=$? | |
39761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39762 | (exit $ac_status); }; }; then | |
39763 | ||
39764 | echo "$as_me:$LINENO: result: yes" >&5 | |
39765 | echo "${ECHO_T}yes" >&6 | |
39766 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
39767 | GCC_PCH=1 | |
39768 | ||
39769 | else | |
39770 | echo "$as_me: failed program was:" >&5 | |
39771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39772 | ||
39773 | ||
39774 | echo "$as_me:$LINENO: result: no" >&5 | |
39775 | echo "${ECHO_T}no" >&6 | |
39776 | ||
39777 | fi | |
ac1cb8d3 | 39778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
39779 | if test $GCC_PCH = 1 ; then |
39780 | cat <<EOF >bk-make-pch | |
39781 | #!/bin/sh | |
39782 | ||
39783 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39784 | # script. It is used to generated precompiled headers. | |
39785 | # | |
39786 | # Permission is given to use this file in any way. | |
39787 | ||
39788 | outfile="\${1}" | |
39789 | header="\${2}" | |
39790 | shift | |
39791 | shift | |
39792 | ||
39793 | compiler= | |
39794 | headerfile= | |
39795 | while test \${#} -gt 0; do | |
39796 | case "\${1}" in | |
39797 | -I* ) | |
39798 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39799 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39800 | headerfile="\${incdir}/\${header}" | |
39801 | fi | |
39802 | ;; | |
39803 | esac | |
39804 | compiler="\${compiler} \${1}" | |
39805 | shift | |
39806 | done | |
39807 | ||
39808 | if test "x\${headerfile}" = "x" ; then | |
39809 | echo "error: can't find header \${header} in include paths" >2 | |
39810 | else | |
39811 | if test -f \${outfile} ; then | |
39812 | rm -f \${outfile} | |
39813 | else | |
39814 | mkdir -p \`dirname \${outfile}\` | |
39815 | fi | |
39816 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39817 | mkdir -p .deps | |
39818 | # can do this because gcc is >= 3.4: | |
39819 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39820 | exit \${?} | |
39821 | fi | |
39822 | EOF | |
39823 | chmod +x bk-make-pch | |
39824 | fi | |
39825 | fi | |
39826 | fi | |
39827 | ||
39828 | ||
39829 | ||
39830 | ||
a848cd7e SC |
39831 | COND_BUILD_DEBUG="#" |
39832 | if test "x$BUILD" = "xdebug" ; then | |
39833 | COND_BUILD_DEBUG="" | |
39834 | fi | |
39835 | ||
39836 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
39837 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39838 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39839 | fi | |
39840 | ||
39841 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39842 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39843 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39844 | fi | |
39845 | ||
39846 | COND_BUILD_DEBUG_UNICODE_0="#" | |
39847 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39848 | COND_BUILD_DEBUG_UNICODE_0="" | |
39849 | fi | |
39850 | ||
39851 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39852 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39853 | COND_BUILD_DEBUG_UNICODE_1="" | |
39854 | fi | |
39855 | ||
39856 | COND_BUILD_RELEASE="#" | |
39857 | if test "x$BUILD" = "xrelease" ; then | |
39858 | COND_BUILD_RELEASE="" | |
39859 | fi | |
39860 | ||
39861 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
39862 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39863 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39864 | fi | |
39865 | ||
39866 | COND_BUILD_RELEASE_UNICODE_0="#" | |
39867 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39868 | COND_BUILD_RELEASE_UNICODE_0="" | |
39869 | fi | |
39870 | ||
39871 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39872 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39873 | COND_BUILD_RELEASE_UNICODE_1="" | |
39874 | fi | |
39875 | ||
39876 | COND_DEBUG_FLAG_1="#" | |
39877 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39878 | COND_DEBUG_FLAG_1="" | |
39879 | fi | |
39880 | ||
39881 | COND_DEBUG_INFO_0="#" | |
39882 | if test "x$DEBUG_INFO" = "x0" ; then | |
39883 | COND_DEBUG_INFO_0="" | |
39884 | fi | |
39885 | ||
39886 | COND_DEBUG_INFO_1="#" | |
39887 | if test "x$DEBUG_INFO" = "x1" ; then | |
39888 | COND_DEBUG_INFO_1="" | |
39889 | fi | |
39890 | ||
39891 | COND_DEPS_TRACKING_0="#" | |
39892 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39893 | COND_DEPS_TRACKING_0="" | |
39894 | fi | |
39895 | ||
39896 | COND_DEPS_TRACKING_1="#" | |
39897 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39898 | COND_DEPS_TRACKING_1="" | |
39899 | fi | |
39900 | ||
39901 | COND_GCC_PCH_1="#" | |
39902 | if test "x$GCC_PCH" = "x1" ; then | |
39903 | COND_GCC_PCH_1="" | |
39904 | fi | |
39905 | ||
39906 | COND_MONOLITHIC_0="#" | |
39907 | if test "x$MONOLITHIC" = "x0" ; then | |
39908 | COND_MONOLITHIC_0="" | |
39909 | fi | |
39910 | ||
39911 | COND_MONOLITHIC_0_SHARED_0="#" | |
39912 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39913 | COND_MONOLITHIC_0_SHARED_0="" | |
39914 | fi | |
39915 | ||
39916 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39917 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39918 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
39919 | fi | |
39920 | ||
39921 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
39922 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39923 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39924 | fi | |
39925 | ||
39926 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
39927 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39928 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39929 | fi | |
39930 | ||
39931 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
39932 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39933 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39934 | fi | |
39935 | ||
39936 | COND_MONOLITHIC_0_SHARED_1="#" | |
39937 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39938 | COND_MONOLITHIC_0_SHARED_1="" | |
39939 | fi | |
39940 | ||
39941 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
39942 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39943 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
39944 | fi | |
39945 | ||
39946 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
39947 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39948 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
39949 | fi | |
39950 | ||
39951 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
39952 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
39953 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
39954 | fi | |
39955 | ||
39956 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
39957 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39958 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
39959 | fi | |
39960 | ||
39961 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
39962 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39963 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
39964 | fi | |
39965 | ||
39966 | COND_MONOLITHIC_1="#" | |
39967 | if test "x$MONOLITHIC" = "x1" ; then | |
39968 | COND_MONOLITHIC_1="" | |
39969 | fi | |
39970 | ||
39971 | COND_MONOLITHIC_1_SHARED_0="#" | |
39972 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
39973 | COND_MONOLITHIC_1_SHARED_0="" | |
39974 | fi | |
39975 | ||
39976 | COND_MONOLITHIC_1_SHARED_1="#" | |
39977 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
39978 | COND_MONOLITHIC_1_SHARED_1="" | |
39979 | fi | |
39980 | ||
39981 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
39982 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39983 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
39984 | fi | |
39985 | ||
39986 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
39987 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39988 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
39989 | fi | |
39990 | ||
39991 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
39992 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
39993 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
39994 | fi | |
39995 | ||
39996 | COND_PLATFORM_MACOSX_1="#" | |
39997 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
39998 | COND_PLATFORM_MACOSX_1="" | |
39999 | fi | |
40000 | ||
40001 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40002 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40003 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40004 | fi | |
40005 | ||
40006 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40007 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40008 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40009 | fi | |
40010 | ||
40011 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40012 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40013 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40014 | fi | |
40015 | ||
40016 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
40017 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40018 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40019 | fi | |
40020 | ||
40021 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40022 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40023 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40024 | fi | |
40025 | ||
40026 | COND_PLATFORM_MAC_1="#" | |
40027 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40028 | COND_PLATFORM_MAC_1="" | |
40029 | fi | |
40030 | ||
40031 | COND_PLATFORM_OS2_1="#" | |
40032 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40033 | COND_PLATFORM_OS2_1="" | |
40034 | fi | |
40035 | ||
40036 | COND_PLATFORM_UNIX_0="#" | |
40037 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40038 | COND_PLATFORM_UNIX_0="" | |
40039 | fi | |
40040 | ||
40041 | COND_PLATFORM_UNIX_1="#" | |
40042 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40043 | COND_PLATFORM_UNIX_1="" | |
40044 | fi | |
40045 | ||
40046 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40047 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40048 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40049 | fi | |
40050 | ||
40051 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40052 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40053 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40054 | fi | |
40055 | ||
40056 | COND_PLATFORM_WIN32_0="#" | |
40057 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40058 | COND_PLATFORM_WIN32_0="" | |
40059 | fi | |
40060 | ||
40061 | COND_PLATFORM_WIN32_1="#" | |
40062 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40063 | COND_PLATFORM_WIN32_1="" | |
40064 | fi | |
40065 | ||
40066 | COND_SHARED_0="#" | |
40067 | if test "x$SHARED" = "x0" ; then | |
40068 | COND_SHARED_0="" | |
40069 | fi | |
40070 | ||
40071 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
40072 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40073 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40074 | fi | |
40075 | ||
40076 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40077 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40078 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40079 | fi | |
40080 | ||
40081 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40082 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40083 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40084 | fi | |
40085 | ||
40086 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40087 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40088 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40089 | fi | |
40090 | ||
40091 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40092 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40093 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40094 | fi | |
40095 | ||
40096 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40097 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40098 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40099 | fi | |
40100 | ||
40101 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40102 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40103 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40104 | fi | |
40105 | ||
40106 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40107 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40108 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40109 | fi | |
40110 | ||
40111 | COND_SHARED_1="#" | |
40112 | if test "x$SHARED" = "x1" ; then | |
40113 | COND_SHARED_1="" | |
40114 | fi | |
40115 | ||
40116 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40117 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40118 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40119 | fi | |
40120 | ||
40121 | COND_TOOLKIT_COCOA="#" | |
40122 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40123 | COND_TOOLKIT_COCOA="" | |
40124 | fi | |
40125 | ||
40126 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40127 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40128 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40129 | fi | |
40130 | ||
40131 | COND_TOOLKIT_GTK="#" | |
40132 | if test "x$TOOLKIT" = "xGTK" ; then | |
40133 | COND_TOOLKIT_GTK="" | |
40134 | fi | |
40135 | ||
40136 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40137 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40138 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40139 | fi | |
40140 | ||
40141 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40142 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40143 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40144 | fi | |
40145 | ||
40146 | COND_TOOLKIT_MAC="#" | |
40147 | if test "x$TOOLKIT" = "xMAC" ; then | |
40148 | COND_TOOLKIT_MAC="" | |
40149 | fi | |
40150 | ||
40151 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40152 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40153 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40154 | fi | |
40155 | ||
40156 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40157 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40158 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40159 | fi | |
40160 | ||
e835546c DE |
40161 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
40162 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40163 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
40164 | fi | |
40165 | ||
a848cd7e SC |
40166 | COND_TOOLKIT_MGL="#" |
40167 | if test "x$TOOLKIT" = "xMGL" ; then | |
40168 | COND_TOOLKIT_MGL="" | |
40169 | fi | |
40170 | ||
40171 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40172 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40173 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40174 | fi | |
40175 | ||
40176 | COND_TOOLKIT_MOTIF="#" | |
40177 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40178 | COND_TOOLKIT_MOTIF="" | |
40179 | fi | |
40180 | ||
40181 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40182 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40183 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40184 | fi | |
40185 | ||
40186 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40187 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40188 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40189 | fi | |
40190 | ||
40191 | COND_TOOLKIT_MSW="#" | |
40192 | if test "x$TOOLKIT" = "xMSW" ; then | |
40193 | COND_TOOLKIT_MSW="" | |
40194 | fi | |
40195 | ||
40196 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40197 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40198 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40199 | fi | |
40200 | ||
40201 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40202 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40203 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40204 | fi | |
40205 | ||
e835546c DE |
40206 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
40207 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40208 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
40209 | fi | |
40210 | ||
a848cd7e SC |
40211 | COND_TOOLKIT_PM="#" |
40212 | if test "x$TOOLKIT" = "xPM" ; then | |
40213 | COND_TOOLKIT_PM="" | |
40214 | fi | |
40215 | ||
40216 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40217 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40218 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40219 | fi | |
40220 | ||
40221 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40222 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40223 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40224 | fi | |
40225 | ||
e835546c DE |
40226 | COND_TOOLKIT_PM_WXUNIV_0="#" |
40227 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40228 | COND_TOOLKIT_PM_WXUNIV_0="" | |
40229 | fi | |
40230 | ||
3fd9c298 DE |
40231 | COND_TOOLKIT_WINCE="#" |
40232 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40233 | COND_TOOLKIT_WINCE="" | |
40234 | fi | |
40235 | ||
40236 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40237 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40238 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40239 | fi | |
40240 | ||
40241 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40242 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40243 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40244 | fi | |
40245 | ||
a848cd7e SC |
40246 | COND_TOOLKIT_X11="#" |
40247 | if test "x$TOOLKIT" = "xX11" ; then | |
40248 | COND_TOOLKIT_X11="" | |
40249 | fi | |
40250 | ||
40251 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40252 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40253 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40254 | fi | |
40255 | ||
40256 | COND_UNICODE_1="#" | |
40257 | if test "x$UNICODE" = "x1" ; then | |
40258 | COND_UNICODE_1="" | |
40259 | fi | |
40260 | ||
40261 | COND_USE_EXCEPTIONS_0="#" | |
40262 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40263 | COND_USE_EXCEPTIONS_0="" | |
40264 | fi | |
40265 | ||
40266 | COND_USE_EXCEPTIONS_1="#" | |
40267 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40268 | COND_USE_EXCEPTIONS_1="" | |
40269 | fi | |
40270 | ||
40271 | COND_USE_GUI_0="#" | |
40272 | if test "x$USE_GUI" = "x0" ; then | |
40273 | COND_USE_GUI_0="" | |
40274 | fi | |
40275 | ||
40276 | COND_USE_GUI_1="#" | |
40277 | if test "x$USE_GUI" = "x1" ; then | |
40278 | COND_USE_GUI_1="" | |
40279 | fi | |
40280 | ||
40281 | COND_USE_GUI_1_WXUNIV_0="#" | |
40282 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40283 | COND_USE_GUI_1_WXUNIV_0="" | |
40284 | fi | |
40285 | ||
40286 | COND_USE_GUI_1_WXUNIV_1="#" | |
40287 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40288 | COND_USE_GUI_1_WXUNIV_1="" | |
40289 | fi | |
40290 | ||
40291 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40292 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40293 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40294 | fi | |
40295 | ||
40296 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40297 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40298 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40299 | fi | |
40300 | ||
40301 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40302 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40303 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40304 | fi | |
40305 | ||
40306 | COND_USE_ODBC_1="#" | |
40307 | if test "x$USE_ODBC" = "x1" ; then | |
40308 | COND_USE_ODBC_1="" | |
40309 | fi | |
40310 | ||
40311 | COND_USE_PLUGINS_0="#" | |
40312 | if test "x$USE_PLUGINS" = "x0" ; then | |
40313 | COND_USE_PLUGINS_0="" | |
40314 | fi | |
40315 | ||
40316 | COND_USE_SOSYMLINKS_1="#" | |
40317 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40318 | COND_USE_SOSYMLINKS_1="" | |
40319 | fi | |
40320 | ||
40321 | COND_USE_SOVERLINUX_1="#" | |
40322 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40323 | COND_USE_SOVERLINUX_1="" | |
40324 | fi | |
40325 | ||
40326 | COND_USE_SOVERSION_0="#" | |
40327 | if test "x$USE_SOVERSION" = "x0" ; then | |
40328 | COND_USE_SOVERSION_0="" | |
40329 | fi | |
40330 | ||
40331 | COND_USE_SOVERSOLARIS_1="#" | |
40332 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40333 | COND_USE_SOVERSOLARIS_1="" | |
40334 | fi | |
40335 | ||
40336 | COND_WITH_PLUGIN_SDL_1="#" | |
40337 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40338 | COND_WITH_PLUGIN_SDL_1="" | |
40339 | fi | |
40340 | ||
40341 | COND_WITH_SDL_1="#" | |
40342 | if test "x$WITH_SDL" = "x1" ; then | |
40343 | COND_WITH_SDL_1="" | |
40344 | fi | |
40345 | ||
40346 | COND_WXUNIV_1="#" | |
40347 | if test "x$WXUNIV" = "x1" ; then | |
40348 | COND_WXUNIV_1="" | |
40349 | fi | |
40350 | ||
40351 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40352 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40353 | COND_WXUSE_EXPAT_BUILTIN="" | |
40354 | fi | |
40355 | ||
40356 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40357 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40358 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40359 | fi | |
40360 | ||
40361 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40362 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40363 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40364 | fi | |
40365 | ||
40366 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40367 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40368 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40369 | fi | |
40370 | ||
40371 | COND_WXUSE_ODBC_BUILTIN="#" | |
40372 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40373 | COND_WXUSE_ODBC_BUILTIN="" | |
40374 | fi | |
40375 | ||
40376 | COND_WXUSE_REGEX_BUILTIN="#" | |
40377 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40378 | COND_WXUSE_REGEX_BUILTIN="" | |
40379 | fi | |
40380 | ||
40381 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40382 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40383 | COND_WXUSE_ZLIB_BUILTIN="" | |
40384 | fi | |
40385 | ||
dcc1b6ad VS |
40386 | COND_BUILD_DEBUG="#" |
40387 | if test "x$BUILD" = "xdebug" ; then | |
40388 | COND_BUILD_DEBUG="" | |
40389 | fi | |
40390 | ||
40391 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40392 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40393 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40394 | fi | |
40395 | ||
40396 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40397 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40398 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40399 | fi | |
40400 | ||
40401 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40402 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40403 | COND_BUILD_DEBUG_UNICODE_0="" | |
40404 | fi | |
40405 | ||
40406 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40407 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40408 | COND_BUILD_DEBUG_UNICODE_1="" | |
40409 | fi | |
40410 | ||
40411 | COND_BUILD_RELEASE="#" | |
40412 | if test "x$BUILD" = "xrelease" ; then | |
40413 | COND_BUILD_RELEASE="" | |
40414 | fi | |
40415 | ||
40416 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40417 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40418 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40419 | fi | |
40420 | ||
40421 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40422 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40423 | COND_BUILD_RELEASE_UNICODE_0="" | |
40424 | fi | |
40425 | ||
40426 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40427 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40428 | COND_BUILD_RELEASE_UNICODE_1="" | |
40429 | fi | |
40430 | ||
40431 | COND_DEBUG_FLAG_1="#" | |
40432 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40433 | COND_DEBUG_FLAG_1="" | |
40434 | fi | |
40435 | ||
40436 | COND_DEBUG_INFO_0="#" | |
40437 | if test "x$DEBUG_INFO" = "x0" ; then | |
40438 | COND_DEBUG_INFO_0="" | |
40439 | fi | |
40440 | ||
40441 | COND_DEBUG_INFO_1="#" | |
40442 | if test "x$DEBUG_INFO" = "x1" ; then | |
40443 | COND_DEBUG_INFO_1="" | |
40444 | fi | |
40445 | ||
40446 | COND_DEPS_TRACKING_0="#" | |
40447 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40448 | COND_DEPS_TRACKING_0="" | |
40449 | fi | |
40450 | ||
40451 | COND_DEPS_TRACKING_1="#" | |
40452 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40453 | COND_DEPS_TRACKING_1="" | |
40454 | fi | |
40455 | ||
40456 | COND_GCC_PCH_1="#" | |
40457 | if test "x$GCC_PCH" = "x1" ; then | |
40458 | COND_GCC_PCH_1="" | |
40459 | fi | |
40460 | ||
40461 | COND_MONOLITHIC_0="#" | |
40462 | if test "x$MONOLITHIC" = "x0" ; then | |
40463 | COND_MONOLITHIC_0="" | |
40464 | fi | |
40465 | ||
40466 | COND_MONOLITHIC_0_SHARED_0="#" | |
40467 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40468 | COND_MONOLITHIC_0_SHARED_0="" | |
40469 | fi | |
40470 | ||
40471 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40472 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40473 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40474 | fi | |
40475 | ||
40476 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40477 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40478 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40479 | fi | |
40480 | ||
40481 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40482 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40483 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40484 | fi | |
40485 | ||
40486 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40487 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40488 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40489 | fi | |
40490 | ||
40491 | COND_MONOLITHIC_0_SHARED_1="#" | |
40492 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40493 | COND_MONOLITHIC_0_SHARED_1="" | |
40494 | fi | |
40495 | ||
40496 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40497 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40498 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40499 | fi | |
40500 | ||
40501 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40502 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40503 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40504 | fi | |
40505 | ||
40506 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40507 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40508 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40509 | fi | |
40510 | ||
40511 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40512 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40513 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40514 | fi | |
40515 | ||
40516 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
40517 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40518 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40519 | fi | |
40520 | ||
40521 | COND_MONOLITHIC_1="#" | |
40522 | if test "x$MONOLITHIC" = "x1" ; then | |
40523 | COND_MONOLITHIC_1="" | |
40524 | fi | |
40525 | ||
40526 | COND_MONOLITHIC_1_SHARED_0="#" | |
40527 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40528 | COND_MONOLITHIC_1_SHARED_0="" | |
40529 | fi | |
40530 | ||
40531 | COND_MONOLITHIC_1_SHARED_1="#" | |
40532 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40533 | COND_MONOLITHIC_1_SHARED_1="" | |
40534 | fi | |
40535 | ||
40536 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40537 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40538 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40539 | fi | |
40540 | ||
40541 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40542 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40543 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40544 | fi | |
40545 | ||
40546 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40547 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40548 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40549 | fi | |
40550 | ||
40551 | COND_PLATFORM_MACOSX_1="#" | |
40552 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40553 | COND_PLATFORM_MACOSX_1="" | |
40554 | fi | |
40555 | ||
40556 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40557 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40558 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40559 | fi | |
40560 | ||
40561 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40562 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40563 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40564 | fi | |
40565 | ||
40566 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40567 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40568 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40569 | fi | |
40570 | ||
40571 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
40572 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40573 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40574 | fi | |
40575 | ||
40576 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40577 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40578 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40579 | fi | |
40580 | ||
40581 | COND_PLATFORM_MAC_1="#" | |
40582 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40583 | COND_PLATFORM_MAC_1="" | |
40584 | fi | |
40585 | ||
40586 | COND_PLATFORM_OS2_1="#" | |
40587 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40588 | COND_PLATFORM_OS2_1="" | |
40589 | fi | |
40590 | ||
40591 | COND_PLATFORM_UNIX_0="#" | |
40592 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40593 | COND_PLATFORM_UNIX_0="" | |
40594 | fi | |
40595 | ||
40596 | COND_PLATFORM_UNIX_1="#" | |
40597 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40598 | COND_PLATFORM_UNIX_1="" | |
40599 | fi | |
40600 | ||
40601 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40602 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40603 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40604 | fi | |
40605 | ||
40606 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40607 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40608 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40609 | fi | |
40610 | ||
40611 | COND_PLATFORM_WIN32_0="#" | |
40612 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40613 | COND_PLATFORM_WIN32_0="" | |
40614 | fi | |
40615 | ||
40616 | COND_PLATFORM_WIN32_1="#" | |
40617 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40618 | COND_PLATFORM_WIN32_1="" | |
40619 | fi | |
40620 | ||
40621 | COND_SHARED_0="#" | |
40622 | if test "x$SHARED" = "x0" ; then | |
40623 | COND_SHARED_0="" | |
40624 | fi | |
40625 | ||
40626 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
40627 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40628 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40629 | fi | |
40630 | ||
40631 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40632 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40633 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40634 | fi | |
40635 | ||
40636 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40637 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40638 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40639 | fi | |
40640 | ||
40641 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40642 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40643 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40644 | fi | |
40645 | ||
40646 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40647 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40648 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40649 | fi | |
40650 | ||
40651 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40652 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40653 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40654 | fi | |
40655 | ||
40656 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40657 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40658 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40659 | fi | |
40660 | ||
40661 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40662 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40663 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40664 | fi | |
40665 | ||
40666 | COND_SHARED_1="#" | |
40667 | if test "x$SHARED" = "x1" ; then | |
40668 | COND_SHARED_1="" | |
40669 | fi | |
40670 | ||
40671 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40672 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40673 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40674 | fi | |
40675 | ||
40676 | COND_TOOLKIT_COCOA="#" | |
40677 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40678 | COND_TOOLKIT_COCOA="" | |
40679 | fi | |
40680 | ||
40681 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40682 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40683 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40684 | fi | |
40685 | ||
40686 | COND_TOOLKIT_GTK="#" | |
40687 | if test "x$TOOLKIT" = "xGTK" ; then | |
40688 | COND_TOOLKIT_GTK="" | |
40689 | fi | |
40690 | ||
40691 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40692 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40693 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40694 | fi | |
40695 | ||
40696 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40697 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40698 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40699 | fi | |
40700 | ||
40701 | COND_TOOLKIT_MAC="#" | |
40702 | if test "x$TOOLKIT" = "xMAC" ; then | |
40703 | COND_TOOLKIT_MAC="" | |
40704 | fi | |
40705 | ||
40706 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40707 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40708 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40709 | fi | |
40710 | ||
40711 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40712 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40713 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40714 | fi | |
40715 | ||
40716 | COND_TOOLKIT_MGL="#" | |
40717 | if test "x$TOOLKIT" = "xMGL" ; then | |
40718 | COND_TOOLKIT_MGL="" | |
40719 | fi | |
40720 | ||
40721 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40722 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40723 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40724 | fi | |
40725 | ||
40726 | COND_TOOLKIT_MOTIF="#" | |
40727 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40728 | COND_TOOLKIT_MOTIF="" | |
40729 | fi | |
40730 | ||
40731 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40732 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40733 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40734 | fi | |
40735 | ||
40736 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40737 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40738 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40739 | fi | |
40740 | ||
40741 | COND_TOOLKIT_MSW="#" | |
40742 | if test "x$TOOLKIT" = "xMSW" ; then | |
40743 | COND_TOOLKIT_MSW="" | |
40744 | fi | |
40745 | ||
40746 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40747 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40748 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40749 | fi | |
40750 | ||
40751 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40752 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40753 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40754 | fi | |
40755 | ||
40756 | COND_TOOLKIT_PM="#" | |
40757 | if test "x$TOOLKIT" = "xPM" ; then | |
40758 | COND_TOOLKIT_PM="" | |
40759 | fi | |
40760 | ||
40761 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40762 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40763 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40764 | fi | |
40765 | ||
40766 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40767 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40768 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40769 | fi | |
40770 | ||
40771 | COND_TOOLKIT_WINCE="#" | |
40772 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40773 | COND_TOOLKIT_WINCE="" | |
40774 | fi | |
40775 | ||
40776 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40777 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40778 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40779 | fi | |
40780 | ||
40781 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40782 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40783 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40784 | fi | |
40785 | ||
40786 | COND_TOOLKIT_X11="#" | |
40787 | if test "x$TOOLKIT" = "xX11" ; then | |
40788 | COND_TOOLKIT_X11="" | |
40789 | fi | |
40790 | ||
40791 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40792 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40793 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40794 | fi | |
40795 | ||
40796 | COND_UNICODE_1="#" | |
40797 | if test "x$UNICODE" = "x1" ; then | |
40798 | COND_UNICODE_1="" | |
40799 | fi | |
40800 | ||
40801 | COND_USE_EXCEPTIONS_0="#" | |
40802 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40803 | COND_USE_EXCEPTIONS_0="" | |
40804 | fi | |
40805 | ||
40806 | COND_USE_EXCEPTIONS_1="#" | |
40807 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40808 | COND_USE_EXCEPTIONS_1="" | |
40809 | fi | |
40810 | ||
40811 | COND_USE_GUI_0="#" | |
40812 | if test "x$USE_GUI" = "x0" ; then | |
40813 | COND_USE_GUI_0="" | |
40814 | fi | |
40815 | ||
40816 | COND_USE_GUI_1="#" | |
40817 | if test "x$USE_GUI" = "x1" ; then | |
40818 | COND_USE_GUI_1="" | |
40819 | fi | |
40820 | ||
40821 | COND_USE_GUI_1_WXUNIV_0="#" | |
40822 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40823 | COND_USE_GUI_1_WXUNIV_0="" | |
40824 | fi | |
40825 | ||
40826 | COND_USE_GUI_1_WXUNIV_1="#" | |
40827 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40828 | COND_USE_GUI_1_WXUNIV_1="" | |
40829 | fi | |
40830 | ||
40831 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40832 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40833 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40834 | fi | |
40835 | ||
40836 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40837 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40838 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40839 | fi | |
40840 | ||
40841 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40842 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40843 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40844 | fi | |
40845 | ||
40846 | COND_USE_ODBC_1="#" | |
40847 | if test "x$USE_ODBC" = "x1" ; then | |
40848 | COND_USE_ODBC_1="" | |
40849 | fi | |
40850 | ||
40851 | COND_USE_PLUGINS_0="#" | |
40852 | if test "x$USE_PLUGINS" = "x0" ; then | |
40853 | COND_USE_PLUGINS_0="" | |
40854 | fi | |
40855 | ||
40856 | COND_USE_SOSYMLINKS_1="#" | |
40857 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40858 | COND_USE_SOSYMLINKS_1="" | |
40859 | fi | |
40860 | ||
40861 | COND_USE_SOVERLINUX_1="#" | |
40862 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40863 | COND_USE_SOVERLINUX_1="" | |
40864 | fi | |
40865 | ||
40866 | COND_USE_SOVERSION_0="#" | |
40867 | if test "x$USE_SOVERSION" = "x0" ; then | |
40868 | COND_USE_SOVERSION_0="" | |
40869 | fi | |
40870 | ||
40871 | COND_USE_SOVERSOLARIS_1="#" | |
40872 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40873 | COND_USE_SOVERSOLARIS_1="" | |
40874 | fi | |
40875 | ||
40876 | COND_WITH_PLUGIN_SDL_1="#" | |
40877 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40878 | COND_WITH_PLUGIN_SDL_1="" | |
40879 | fi | |
40880 | ||
40881 | COND_WXUNIV_1="#" | |
40882 | if test "x$WXUNIV" = "x1" ; then | |
40883 | COND_WXUNIV_1="" | |
40884 | fi | |
40885 | ||
40886 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40887 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40888 | COND_WXUSE_EXPAT_BUILTIN="" | |
40889 | fi | |
40890 | ||
40891 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40892 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40893 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40894 | fi | |
40895 | ||
40896 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40897 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40898 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40899 | fi | |
40900 | ||
40901 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40902 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40903 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40904 | fi | |
40905 | ||
40906 | COND_WXUSE_ODBC_BUILTIN="#" | |
40907 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40908 | COND_WXUSE_ODBC_BUILTIN="" | |
40909 | fi | |
40910 | ||
40911 | COND_WXUSE_REGEX_BUILTIN="#" | |
40912 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40913 | COND_WXUSE_REGEX_BUILTIN="" | |
40914 | fi | |
40915 | ||
40916 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40917 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40918 | COND_WXUSE_ZLIB_BUILTIN="" | |
40919 | fi | |
40920 | ||
a848cd7e SC |
40921 | |
40922 | ||
2057db16 VS |
40923 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
40924 | { { 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 | |
40925 | 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;} | |
40926 | { (exit 1); exit 1; }; } | |
40927 | fi | |
40928 | ||
a848cd7e SC |
40929 | |
40930 | ||
74b84332 | 40931 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 40932 | if test $GCC_PCH = 1 ; then |
74b84332 | 40933 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
40934 | else |
40935 | case "${host}" in | |
40936 | powerpc-*-darwin* ) | |
74b84332 | 40937 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 40938 | ;; |
bea8e651 | 40939 | *-*-mingw32* ) |
1f344abf VS |
40940 | if test "$wxUSE_STL" = "yes" -o \ |
40941 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
40942 | "$wxUSE_NO_RTTI" != "yes"; then | |
40943 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
40944 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
40945 | cat >conftest.$ac_ext <<_ACEOF |
40946 | /* confdefs.h. */ | |
40947 | _ACEOF | |
40948 | cat confdefs.h >>conftest.$ac_ext | |
40949 | cat >>conftest.$ac_ext <<_ACEOF | |
40950 | /* end confdefs.h. */ | |
40951 | ||
40952 | int | |
40953 | main () | |
40954 | { | |
1f344abf | 40955 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
40956 | #error "Not GCC 3.2 or greater" |
40957 | #endif | |
40958 | ||
40959 | ; | |
40960 | return 0; | |
40961 | } | |
40962 | _ACEOF | |
40963 | rm -f conftest.$ac_objext | |
40964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40965 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 40966 | ac_status=$? |
ac1cb8d3 VS |
40967 | grep -v '^ *+' conftest.er1 >conftest.err |
40968 | rm -f conftest.er1 | |
40969 | cat conftest.err >&5 | |
bea8e651 MB |
40970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40971 | (exit $ac_status); } && | |
ea7db9ff DE |
40972 | { ac_try='test -z "$ac_c_werror_flag" |
40973 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40975 | (eval $ac_try) 2>&5 | |
40976 | ac_status=$? | |
40977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40978 | (exit $ac_status); }; } && | |
40979 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
40980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40981 | (eval $ac_try) 2>&5 | |
40982 | ac_status=$? | |
40983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40984 | (exit $ac_status); }; }; then | |
74b84332 | 40985 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
40986 | echo "$as_me:$LINENO: result: yes" >&5 |
40987 | echo "${ECHO_T}yes" >&6 | |
40988 | else | |
40989 | echo "$as_me: failed program was:" >&5 | |
40990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40991 | ||
40992 | echo "$as_me:$LINENO: result: no" >&5 | |
40993 | echo "${ECHO_T}no" >&6 | |
40994 | fi | |
ac1cb8d3 | 40995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
40996 | fi |
40997 | ;; | |
a848cd7e SC |
40998 | esac |
40999 | fi | |
74b84332 | 41000 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
41001 | |
41002 | ||
41003 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
41004 | ||
41005 | ||
41006 | ||
41007 | ||
41008 | ||
41009 | ||
41010 | ||
41011 | ||
41012 | ||
41013 | ||
41014 | ||
41015 | ||
41016 | ||
41017 | ||
41018 | ||
41019 | ||
41020 | ||
41021 | ||
41022 | ||
41023 | ||
41024 | ||
41025 | ||
41026 | ||
41027 | ||
41028 | ||
41029 | ||
41030 | ||
41031 | ||
41032 | ||
41033 | ||
41034 | ||
41035 | ||
41036 | ||
41037 | ||
41038 | ||
41039 | ||
41040 | ||
41041 | ||
41042 | ||
41043 | ||
41044 | ||
41045 | ||
41046 | ||
41047 | ||
41048 | ||
41049 | ||
41050 | ||
41051 | ||
41052 | ||
41053 | ||
41054 | ||
41055 | ||
41056 | ||
41057 | ||
41058 | ||
41059 | ||
41060 | ||
41061 | ||
41062 | ||
41063 | ||
41064 | ||
41065 | ||
41066 | ||
41067 | ||
41068 | ||
41069 | ||
41070 | ||
41071 | ||
41072 | ||
41073 | ||
41074 | ||
41075 | ||
41076 | ||
41077 | ||
41078 | ||
41079 | ||
41080 | ||
41081 | ||
41082 | ||
41083 | ||
41084 | ||
41085 | ||
41086 | ||
41087 | ||
41088 | ||
41089 | ||
41090 | ||
41091 | ||
41092 | ||
41093 | ||
41094 | ||
41095 | ||
41096 | ||
41097 | ||
41098 | ||
41099 | ||
41100 | ||
41101 | ||
74b84332 | 41102 | |
224bf05c | 41103 | |
a848cd7e SC |
41104 | |
41105 | ||
41106 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41107 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41108 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41109 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41111 | else | |
41112 | cat >conftest.make <<\_ACEOF | |
41113 | all: | |
41114 | @echo 'ac_maketemp="$(MAKE)"' | |
41115 | _ACEOF | |
41116 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41117 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41118 | if test -n "$ac_maketemp"; then | |
41119 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41120 | else | |
41121 | eval ac_cv_prog_make_${ac_make}_set=no | |
41122 | fi | |
41123 | rm -f conftest.make | |
41124 | fi | |
41125 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41126 | echo "$as_me:$LINENO: result: yes" >&5 | |
41127 | echo "${ECHO_T}yes" >&6 | |
41128 | SET_MAKE= | |
41129 | else | |
41130 | echo "$as_me:$LINENO: result: no" >&5 | |
41131 | echo "${ECHO_T}no" >&6 | |
41132 | SET_MAKE="MAKE=${MAKE-make}" | |
41133 | fi | |
41134 | ||
41135 | ||
41136 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
41137 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
41138 | fi | |
41139 | ||
41140 | ac_config_headers="$ac_config_headers setup.h" | |
41141 | ||
41142 | ||
8708fa76 | 41143 | ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile" |
a848cd7e SC |
41144 | |
41145 | ||
41146 | ac_config_commands="$ac_config_commands default" | |
41147 | ||
41148 | ||
41149 | ||
41150 | if test "$wxUSE_GUI" = "yes"; then | |
41151 | SUBDIRS="samples demos utils contrib" | |
41152 | else SUBDIRS="samples utils" | |
41153 | fi | |
41154 | ||
41155 | ||
41156 | ||
41157 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41158 | if test "${with_cppunit_prefix+set}" = set; then | |
41159 | withval="$with_cppunit_prefix" | |
41160 | cppunit_config_prefix="$withval" | |
41161 | else | |
41162 | cppunit_config_prefix="" | |
41163 | fi; | |
41164 | ||
41165 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41166 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41167 | withval="$with_cppunit_exec_prefix" | |
41168 | cppunit_config_exec_prefix="$withval" | |
41169 | else | |
41170 | cppunit_config_exec_prefix="" | |
41171 | fi; | |
41172 | ||
41173 | if test x$cppunit_config_exec_prefix != x ; then | |
41174 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41175 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41176 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41177 | fi | |
41178 | fi | |
41179 | if test x$cppunit_config_prefix != x ; then | |
41180 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41181 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41182 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41183 | fi | |
41184 | fi | |
41185 | ||
41186 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41187 | set dummy cppunit-config; ac_word=$2 | |
41188 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41190 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41192 | else | |
41193 | case $CPPUNIT_CONFIG in | |
41194 | [\\/]* | ?:[\\/]*) | |
41195 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41196 | ;; | |
41197 | *) | |
41198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41199 | for as_dir in $PATH | |
41200 | do | |
41201 | IFS=$as_save_IFS | |
41202 | test -z "$as_dir" && as_dir=. | |
41203 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41204 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41205 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41206 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41207 | break 2 | |
41208 | fi | |
41209 | done | |
41210 | done | |
41211 | ||
41212 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41213 | ;; | |
41214 | esac | |
41215 | fi | |
41216 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41217 | ||
41218 | if test -n "$CPPUNIT_CONFIG"; then | |
41219 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41220 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41221 | else | |
41222 | echo "$as_me:$LINENO: result: no" >&5 | |
41223 | echo "${ECHO_T}no" >&6 | |
41224 | fi | |
41225 | ||
41226 | cppunit_version_min=1.8.0 | |
41227 | ||
41228 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41229 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41230 | no_cppunit="" | |
41231 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41232 | no_cppunit=yes | |
41233 | else | |
41234 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41235 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41236 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41237 | ||
41238 | cppunit_major_version=`echo $cppunit_version | \ | |
41239 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41240 | cppunit_minor_version=`echo $cppunit_version | \ | |
41241 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41242 | cppunit_micro_version=`echo $cppunit_version | \ | |
41243 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41244 | ||
41245 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41246 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41247 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41248 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41249 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41250 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41251 | ||
41252 | cppunit_version_proper=`expr \ | |
41253 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41254 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41255 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41256 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41257 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41258 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41259 | ||
41260 | if test "$cppunit_version_proper" = "1" ; then | |
41261 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41262 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41263 | else | |
41264 | echo "$as_me:$LINENO: result: no" >&5 | |
41265 | echo "${ECHO_T}no" >&6 | |
41266 | no_cppunit=yes | |
41267 | fi | |
41268 | fi | |
41269 | ||
41270 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41271 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41272 | else |
41273 | CPPUNIT_CFLAGS="" | |
41274 | CPPUNIT_LIBS="" | |
c2218763 | 41275 | : |
a848cd7e SC |
41276 | fi |
41277 | ||
41278 | ||
41279 | ||
41280 | ||
41281 | ||
41282 | for subdir in `echo $SUBDIRS`; do | |
41283 | if test -d ${srcdir}/${subdir} ; then | |
41284 | if test "$wxUSE_GUI" = "yes"; then | |
41285 | if test ${subdir} = "samples"; then | |
41286 | makefiles="samples/Makefile.in $makefiles" | |
41287 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41288 | if test -d $srcdir/samples/$sample; then | |
41289 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41290 | fi | |
41291 | done | |
41292 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41293 | fi | |
41294 | else if test ${subdir} = "samples"; then | |
41295 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41296 | elif test ${subdir} = "utils"; then | |
41297 | makefiles="utils/HelpGen/Makefile.in \ | |
41298 | utils/HelpGen/src/Makefile.in \ | |
41299 | utils/tex2rtf/Makefile.in \ | |
41300 | utils/tex2rtf/src/Makefile.in" | |
41301 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41302 | fi | |
41303 | fi | |
41304 | ||
41305 | for mkin in $makefiles ; do | |
41306 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41307 | ac_config_files="$ac_config_files $mk" | |
41308 | ||
41309 | done | |
41310 | fi | |
41311 | done | |
41312 | ||
41313 | ||
41314 | cat >confcache <<\_ACEOF | |
41315 | # This file is a shell script that caches the results of configure | |
41316 | # tests run on this system so they can be shared between configure | |
41317 | # scripts and configure runs, see configure's option --config-cache. | |
41318 | # It is not useful on other systems. If it contains results you don't | |
41319 | # want to keep, you may remove or edit it. | |
41320 | # | |
41321 | # config.status only pays attention to the cache file if you give it | |
41322 | # the --recheck option to rerun configure. | |
41323 | # | |
41324 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41325 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41326 | # following values. | |
41327 | ||
41328 | _ACEOF | |
41329 | ||
41330 | # The following way of writing the cache mishandles newlines in values, | |
41331 | # but we know of no workaround that is simple, portable, and efficient. | |
41332 | # So, don't put newlines in cache variables' values. | |
41333 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41334 | # and sets the high bit in the cache file unless we assign to the vars. | |
41335 | { | |
41336 | (set) 2>&1 | | |
41337 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41338 | *ac_space=\ *) | |
41339 | # `set' does not quote correctly, so add quotes (double-quote | |
41340 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41341 | sed -n \ | |
ac1cb8d3 VS |
41342 | "s/'/'\\\\''/g; |
41343 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41344 | ;; |
41345 | *) | |
41346 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41347 | sed -n \ | |
ac1cb8d3 | 41348 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41349 | ;; |
41350 | esac; | |
41351 | } | | |
41352 | sed ' | |
41353 | t clear | |
41354 | : clear | |
41355 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41356 | t end | |
41357 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41358 | : end' >>confcache | |
41359 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41360 | if test -w $cache_file; then | |
41361 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41362 | cat confcache >$cache_file | |
41363 | else | |
41364 | echo "not updating unwritable cache $cache_file" | |
41365 | fi | |
41366 | fi | |
41367 | rm -f confcache | |
41368 | ||
41369 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41370 | # Let make expand exec_prefix. | |
41371 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41372 | ||
41373 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41374 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41375 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41376 | # (actually we leave an empty line to preserve line numbers). | |
41377 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41378 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41379 | s/:*\$(srcdir):*/:/; |
41380 | s/:*\${srcdir}:*/:/; | |
41381 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41382 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41383 | s/:*$//; |
ac1cb8d3 | 41384 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41385 | }' |
41386 | fi | |
41387 | ||
41388 | DEFS=-DHAVE_CONFIG_H | |
41389 | ||
41390 | ac_libobjs= | |
41391 | ac_ltlibobjs= | |
41392 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41393 | # 1. Remove the extension, and $U if already installed. | |
41394 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41395 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41396 | # 2. Add them. |
41397 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41398 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41399 | done | |
41400 | LIBOBJS=$ac_libobjs | |
41401 | ||
41402 | LTLIBOBJS=$ac_ltlibobjs | |
41403 | ||
41404 | ||
41405 | ||
41406 | : ${CONFIG_STATUS=./config.status} | |
41407 | ac_clean_files_save=$ac_clean_files | |
41408 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41409 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41410 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41411 | cat >$CONFIG_STATUS <<_ACEOF | |
41412 | #! $SHELL | |
41413 | # Generated by $as_me. | |
41414 | # Run this file to recreate the current configuration. | |
41415 | # Compiler output produced by configure, useful for debugging | |
41416 | # configure, is in config.log if it exists. | |
41417 | ||
41418 | debug=false | |
41419 | ac_cs_recheck=false | |
41420 | ac_cs_silent=false | |
41421 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41422 | _ACEOF | |
41423 | ||
41424 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41425 | ## --------------------- ## | |
41426 | ## M4sh Initialization. ## | |
41427 | ## --------------------- ## | |
41428 | ||
41429 | # Be Bourne compatible | |
41430 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41431 | emulate sh | |
41432 | NULLCMD=: | |
41433 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41434 | # is contrary to our usage. Disable this feature. | |
41435 | alias -g '${1+"$@"}'='"$@"' | |
41436 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41437 | set -o posix | |
41438 | fi | |
ac1cb8d3 | 41439 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41440 | |
41441 | # Support unset when possible. | |
ac1cb8d3 | 41442 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41443 | as_unset=unset |
41444 | else | |
41445 | as_unset=false | |
41446 | fi | |
41447 | ||
41448 | ||
41449 | # Work around bugs in pre-3.0 UWIN ksh. | |
41450 | $as_unset ENV MAIL MAILPATH | |
41451 | PS1='$ ' | |
41452 | PS2='> ' | |
41453 | PS4='+ ' | |
41454 | ||
41455 | # NLS nuisances. | |
41456 | for as_var in \ | |
41457 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41458 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41459 | LC_TELEPHONE LC_TIME | |
41460 | do | |
ac1cb8d3 | 41461 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41462 | eval $as_var=C; export $as_var |
41463 | else | |
41464 | $as_unset $as_var | |
41465 | fi | |
41466 | done | |
41467 | ||
41468 | # Required to use basename. | |
41469 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41470 | as_expr=expr | |
41471 | else | |
41472 | as_expr=false | |
41473 | fi | |
41474 | ||
41475 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41476 | as_basename=basename | |
41477 | else | |
41478 | as_basename=false | |
41479 | fi | |
41480 | ||
41481 | ||
41482 | # Name of the executable. | |
41483 | as_me=`$as_basename "$0" || | |
41484 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41485 | X"$0" : 'X\(//\)$' \| \ | |
41486 | X"$0" : 'X\(/\)$' \| \ | |
41487 | . : '\(.\)' 2>/dev/null || | |
41488 | echo X/"$0" | | |
41489 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41490 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41491 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41492 | s/.*/./; q'` | |
41493 | ||
41494 | ||
41495 | # PATH needs CR, and LINENO needs CR and PATH. | |
41496 | # Avoid depending upon Character Ranges. | |
41497 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41498 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41499 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41500 | as_cr_digits='0123456789' | |
41501 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41502 | ||
41503 | # The user is always right. | |
41504 | if test "${PATH_SEPARATOR+set}" != set; then | |
41505 | echo "#! /bin/sh" >conf$$.sh | |
41506 | echo "exit 0" >>conf$$.sh | |
41507 | chmod +x conf$$.sh | |
41508 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41509 | PATH_SEPARATOR=';' | |
41510 | else | |
41511 | PATH_SEPARATOR=: | |
41512 | fi | |
41513 | rm -f conf$$.sh | |
41514 | fi | |
41515 | ||
41516 | ||
41517 | as_lineno_1=$LINENO | |
41518 | as_lineno_2=$LINENO | |
41519 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41520 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41521 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41522 | # Find who we are. Look in the path if we contain no path at all | |
41523 | # relative or not. | |
41524 | case $0 in | |
41525 | *[\\/]* ) as_myself=$0 ;; | |
41526 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41527 | for as_dir in $PATH | |
41528 | do | |
41529 | IFS=$as_save_IFS | |
41530 | test -z "$as_dir" && as_dir=. | |
41531 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41532 | done | |
41533 | ||
41534 | ;; | |
41535 | esac | |
41536 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41537 | # in which case we are not to be found in the path. | |
41538 | if test "x$as_myself" = x; then | |
41539 | as_myself=$0 | |
41540 | fi | |
41541 | if test ! -f "$as_myself"; then | |
41542 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41543 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41544 | { (exit 1); exit 1; }; } | |
41545 | fi | |
41546 | case $CONFIG_SHELL in | |
41547 | '') | |
41548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41549 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41550 | do | |
41551 | IFS=$as_save_IFS | |
41552 | test -z "$as_dir" && as_dir=. | |
41553 | for as_base in sh bash ksh sh5; do | |
41554 | case $as_dir in | |
41555 | /*) | |
41556 | if ("$as_dir/$as_base" -c ' | |
41557 | as_lineno_1=$LINENO | |
41558 | as_lineno_2=$LINENO | |
41559 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41560 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41561 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41562 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41563 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41564 | CONFIG_SHELL=$as_dir/$as_base | |
41565 | export CONFIG_SHELL | |
41566 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41567 | fi;; | |
41568 | esac | |
41569 | done | |
41570 | done | |
41571 | ;; | |
41572 | esac | |
41573 | ||
41574 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41575 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41576 | # line-number line before each line; the second 'sed' does the real | |
41577 | # work. The second script uses 'N' to pair each line-number line | |
41578 | # with the numbered line, and appends trailing '-' during | |
41579 | # substitution so that $LINENO is not a special case at line end. | |
41580 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41581 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41582 | sed '=' <$as_myself | | |
41583 | sed ' | |
41584 | N | |
41585 | s,$,-, | |
41586 | : loop | |
41587 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41588 | t loop | |
41589 | s,-$,, | |
41590 | s,^['$as_cr_digits']*\n,, | |
41591 | ' >$as_me.lineno && | |
41592 | chmod +x $as_me.lineno || | |
41593 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41594 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41595 | { (exit 1); exit 1; }; } | |
41596 | ||
41597 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41598 | # (the dirname of $[0] is not the place where we might find the | |
41599 | # original and so on. Autoconf is especially sensible to this). | |
41600 | . ./$as_me.lineno | |
41601 | # Exit status is that of the last command. | |
41602 | exit | |
41603 | } | |
41604 | ||
41605 | ||
41606 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
41607 | *c*,-n*) ECHO_N= ECHO_C=' | |
41608 | ' ECHO_T=' ' ;; | |
41609 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
41610 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
41611 | esac | |
41612 | ||
41613 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41614 | as_expr=expr | |
41615 | else | |
41616 | as_expr=false | |
41617 | fi | |
41618 | ||
41619 | rm -f conf$$ conf$$.exe conf$$.file | |
41620 | echo >conf$$.file | |
41621 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41622 | # We could just check for DJGPP; but this test a) works b) is more generic | |
41623 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
41624 | if test -f conf$$.exe; then | |
41625 | # Don't use ln at all; we don't have any links | |
41626 | as_ln_s='cp -p' | |
41627 | else | |
41628 | as_ln_s='ln -s' | |
41629 | fi | |
41630 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
41631 | as_ln_s=ln | |
41632 | else | |
41633 | as_ln_s='cp -p' | |
41634 | fi | |
41635 | rm -f conf$$ conf$$.exe conf$$.file | |
41636 | ||
41637 | if mkdir -p . 2>/dev/null; then | |
41638 | as_mkdir_p=: | |
41639 | else | |
ac1cb8d3 | 41640 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
41641 | as_mkdir_p=false |
41642 | fi | |
41643 | ||
41644 | as_executable_p="test -f" | |
41645 | ||
41646 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 41647 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41648 | |
41649 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 41650 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41651 | |
41652 | ||
41653 | # IFS | |
41654 | # We need space, tab and new line, in precisely that order. | |
41655 | as_nl=' | |
41656 | ' | |
41657 | IFS=" $as_nl" | |
41658 | ||
41659 | # CDPATH. | |
41660 | $as_unset CDPATH | |
41661 | ||
41662 | exec 6>&1 | |
41663 | ||
41664 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
41665 | # report actual input values of CONFIG_FILES etc. instead of their | |
41666 | # values after options handling. Logging --version etc. is OK. | |
41667 | exec 5>>config.log | |
41668 | { | |
41669 | echo | |
41670 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
41671 | ## Running $as_me. ## | |
41672 | _ASBOX | |
41673 | } >&5 | |
41674 | cat >&5 <<_CSEOF | |
41675 | ||
77ffb593 | 41676 | This file was extended by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 41677 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
41678 | |
41679 | CONFIG_FILES = $CONFIG_FILES | |
41680 | CONFIG_HEADERS = $CONFIG_HEADERS | |
41681 | CONFIG_LINKS = $CONFIG_LINKS | |
41682 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
41683 | $ $0 $@ | |
41684 | ||
41685 | _CSEOF | |
41686 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
41687 | echo >&5 | |
41688 | _ACEOF | |
41689 | ||
41690 | # Files that config.status was made for. | |
41691 | if test -n "$ac_config_files"; then | |
41692 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
41693 | fi | |
41694 | ||
41695 | if test -n "$ac_config_headers"; then | |
41696 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
41697 | fi | |
41698 | ||
41699 | if test -n "$ac_config_links"; then | |
41700 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
41701 | fi | |
41702 | ||
41703 | if test -n "$ac_config_commands"; then | |
41704 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
41705 | fi | |
41706 | ||
41707 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41708 | ||
41709 | ac_cs_usage="\ | |
41710 | \`$as_me' instantiates files from templates according to the | |
41711 | current configuration. | |
41712 | ||
41713 | Usage: $0 [OPTIONS] [FILE]... | |
41714 | ||
41715 | -h, --help print this help, then exit | |
41716 | -V, --version print version number, then exit | |
41717 | -q, --quiet do not print progress messages | |
41718 | -d, --debug don't remove temporary files | |
41719 | --recheck update $as_me by reconfiguring in the same conditions | |
41720 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 41721 | instantiate the configuration file FILE |
a848cd7e | 41722 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 41723 | instantiate the configuration header FILE |
a848cd7e SC |
41724 | |
41725 | Configuration files: | |
41726 | $config_files | |
41727 | ||
41728 | Configuration headers: | |
41729 | $config_headers | |
41730 | ||
41731 | Configuration commands: | |
41732 | $config_commands | |
41733 | ||
41734 | Report bugs to <bug-autoconf@gnu.org>." | |
41735 | _ACEOF | |
41736 | ||
41737 | cat >>$CONFIG_STATUS <<_ACEOF | |
41738 | ac_cs_version="\\ | |
77ffb593 | 41739 | wxWidgets config.status 2.5.2 |
ac1cb8d3 | 41740 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
41741 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
41742 | ||
ac1cb8d3 | 41743 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
41744 | This config.status script is free software; the Free Software Foundation |
41745 | gives unlimited permission to copy, distribute and modify it." | |
41746 | srcdir=$srcdir | |
41747 | INSTALL="$INSTALL" | |
41748 | _ACEOF | |
41749 | ||
41750 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41751 | # If no file are specified by the user, then we need to provide default | |
41752 | # value. By we need to know if files were specified by the user. | |
41753 | ac_need_defaults=: | |
41754 | while test $# != 0 | |
41755 | do | |
41756 | case $1 in | |
41757 | --*=*) | |
41758 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
41759 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
41760 | ac_shift=: | |
41761 | ;; | |
41762 | -*) | |
41763 | ac_option=$1 | |
41764 | ac_optarg=$2 | |
41765 | ac_shift=shift | |
41766 | ;; | |
41767 | *) # This is not an option, so the user has probably given explicit | |
41768 | # arguments. | |
41769 | ac_option=$1 | |
41770 | ac_need_defaults=false;; | |
41771 | esac | |
41772 | ||
41773 | case $ac_option in | |
41774 | # Handling of the options. | |
41775 | _ACEOF | |
41776 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41777 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
41778 | ac_cs_recheck=: ;; | |
41779 | --version | --vers* | -V ) | |
41780 | echo "$ac_cs_version"; exit 0 ;; | |
41781 | --he | --h) | |
41782 | # Conflict between --help and --header | |
41783 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
41784 | Try \`$0 --help' for more information." >&5 | |
41785 | echo "$as_me: error: ambiguous option: $1 | |
41786 | Try \`$0 --help' for more information." >&2;} | |
41787 | { (exit 1); exit 1; }; };; | |
41788 | --help | --hel | -h ) | |
41789 | echo "$ac_cs_usage"; exit 0 ;; | |
41790 | --debug | --d* | -d ) | |
41791 | debug=: ;; | |
41792 | --file | --fil | --fi | --f ) | |
41793 | $ac_shift | |
41794 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
41795 | ac_need_defaults=false;; | |
41796 | --header | --heade | --head | --hea ) | |
41797 | $ac_shift | |
41798 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
41799 | ac_need_defaults=false;; | |
41800 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
41801 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
41802 | ac_cs_silent=: ;; | |
41803 | ||
41804 | # This is an error. | |
41805 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
41806 | Try \`$0 --help' for more information." >&5 | |
41807 | echo "$as_me: error: unrecognized option: $1 | |
41808 | Try \`$0 --help' for more information." >&2;} | |
41809 | { (exit 1); exit 1; }; } ;; | |
41810 | ||
41811 | *) ac_config_targets="$ac_config_targets $1" ;; | |
41812 | ||
41813 | esac | |
41814 | shift | |
41815 | done | |
41816 | ||
41817 | ac_configure_extra_args= | |
41818 | ||
41819 | if $ac_cs_silent; then | |
41820 | exec 6>/dev/null | |
41821 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
41822 | fi | |
41823 | ||
41824 | _ACEOF | |
41825 | cat >>$CONFIG_STATUS <<_ACEOF | |
41826 | if \$ac_cs_recheck; then | |
41827 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
41828 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
41829 | fi | |
41830 | ||
41831 | _ACEOF | |
41832 | ||
41833 | cat >>$CONFIG_STATUS <<_ACEOF | |
41834 | # | |
41835 | # INIT-COMMANDS section. | |
41836 | # | |
41837 | ||
41838 | ||
41839 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
48112931 | 41840 | WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}" |
a848cd7e SC |
41841 | LN_S="${LN_S}" |
41842 | ||
41843 | ||
41844 | ||
41845 | _ACEOF | |
41846 | ||
41847 | ||
41848 | ||
41849 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41850 | for ac_config_target in $ac_config_targets | |
41851 | do | |
41852 | case "$ac_config_target" in | |
41853 | # Handling of arguments. | |
41854 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
8708fa76 | 41855 | "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;; |
a848cd7e SC |
41856 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
41857 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
41858 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
41859 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
41860 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
41861 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
41862 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
41863 | { (exit 1); exit 1; }; };; | |
41864 | esac | |
41865 | done | |
41866 | ||
41867 | # If the user did not use the arguments to specify the items to instantiate, | |
41868 | # then the envvar interface is used. Set only those that are not. | |
41869 | # We use the long form for the default assignment because of an extremely | |
41870 | # bizarre bug on SunOS 4.1.3. | |
41871 | if $ac_need_defaults; then | |
41872 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
41873 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
41874 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
41875 | fi | |
41876 | ||
41877 | # Have a temporary directory for convenience. Make it in the build tree | |
41878 | # simply because there is no reason to put it here, and in addition, | |
41879 | # creating and moving files from /tmp can sometimes cause problems. | |
41880 | # Create a temporary directory, and hook for its removal unless debugging. | |
41881 | $debug || | |
41882 | { | |
41883 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
41884 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
41885 | } | |
41886 | ||
41887 | # Create a (secure) tmp directory for tmp files. | |
41888 | ||
41889 | { | |
41890 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
41891 | test -n "$tmp" && test -d "$tmp" | |
41892 | } || | |
41893 | { | |
41894 | tmp=./confstat$$-$RANDOM | |
41895 | (umask 077 && mkdir $tmp) | |
41896 | } || | |
41897 | { | |
41898 | echo "$me: cannot create a temporary directory in ." >&2 | |
41899 | { (exit 1); exit 1; } | |
41900 | } | |
41901 | ||
41902 | _ACEOF | |
41903 | ||
41904 | cat >>$CONFIG_STATUS <<_ACEOF | |
41905 | ||
41906 | # | |
41907 | # CONFIG_FILES section. | |
41908 | # | |
41909 | ||
41910 | # No need to generate the scripts if there are no CONFIG_FILES. | |
41911 | # This happens for instance when ./config.status config.h | |
41912 | if test -n "\$CONFIG_FILES"; then | |
41913 | # Protect against being on the right side of a sed subst in config.status. | |
41914 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
41915 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
41916 | s,@SHELL@,$SHELL,;t t | |
41917 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
41918 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
41919 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
41920 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
41921 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
41922 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
41923 | s,@exec_prefix@,$exec_prefix,;t t | |
41924 | s,@prefix@,$prefix,;t t | |
41925 | s,@program_transform_name@,$program_transform_name,;t t | |
41926 | s,@bindir@,$bindir,;t t | |
41927 | s,@sbindir@,$sbindir,;t t | |
41928 | s,@libexecdir@,$libexecdir,;t t | |
41929 | s,@datadir@,$datadir,;t t | |
41930 | s,@sysconfdir@,$sysconfdir,;t t | |
41931 | s,@sharedstatedir@,$sharedstatedir,;t t | |
41932 | s,@localstatedir@,$localstatedir,;t t | |
41933 | s,@libdir@,$libdir,;t t | |
41934 | s,@includedir@,$includedir,;t t | |
41935 | s,@oldincludedir@,$oldincludedir,;t t | |
41936 | s,@infodir@,$infodir,;t t | |
41937 | s,@mandir@,$mandir,;t t | |
41938 | s,@build_alias@,$build_alias,;t t | |
41939 | s,@host_alias@,$host_alias,;t t | |
41940 | s,@target_alias@,$target_alias,;t t | |
41941 | s,@DEFS@,$DEFS,;t t | |
41942 | s,@ECHO_C@,$ECHO_C,;t t | |
41943 | s,@ECHO_N@,$ECHO_N,;t t | |
41944 | s,@ECHO_T@,$ECHO_T,;t t | |
41945 | s,@LIBS@,$LIBS,;t t | |
41946 | s,@build@,$build,;t t | |
41947 | s,@build_cpu@,$build_cpu,;t t | |
41948 | s,@build_vendor@,$build_vendor,;t t | |
41949 | s,@build_os@,$build_os,;t t | |
41950 | s,@host@,$host,;t t | |
41951 | s,@host_cpu@,$host_cpu,;t t | |
41952 | s,@host_vendor@,$host_vendor,;t t | |
41953 | s,@host_os@,$host_os,;t t | |
41954 | s,@target@,$target,;t t | |
41955 | s,@target_cpu@,$target_cpu,;t t | |
41956 | s,@target_vendor@,$target_vendor,;t t | |
41957 | s,@target_os@,$target_os,;t t | |
41958 | s,@CC@,$CC,;t t | |
41959 | s,@CFLAGS@,$CFLAGS,;t t | |
41960 | s,@LDFLAGS@,$LDFLAGS,;t t | |
41961 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
41962 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
41963 | s,@EXEEXT@,$EXEEXT,;t t | |
41964 | s,@OBJEXT@,$OBJEXT,;t t | |
41965 | s,@CPP@,$CPP,;t t | |
41966 | s,@EGREP@,$EGREP,;t t | |
41967 | s,@CXX@,$CXX,;t t | |
41968 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
41969 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
41970 | s,@RANLIB@,$RANLIB,;t t | |
41971 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
41972 | s,@AR@,$AR,;t t | |
41973 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
41974 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
41975 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
41976 | s,@STRIP@,$STRIP,;t t | |
41977 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
41978 | s,@LN_S@,$LN_S,;t t | |
41979 | s,@CXXCPP@,$CXXCPP,;t t | |
41980 | s,@subdirs@,$subdirs,;t t | |
41981 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
41982 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
41983 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
41984 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
41985 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
41986 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
41987 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
41988 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
41989 | s,@X_LIBS@,$X_LIBS,;t t | |
41990 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
41991 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
41992 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
41993 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
41994 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
41995 | s,@RESCOMP@,$RESCOMP,;t t | |
41996 | s,@DEREZ@,$DEREZ,;t t | |
41997 | s,@SETFILE@,$SETFILE,;t t | |
41998 | s,@LIBICONV@,$LIBICONV,;t t | |
41999 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
42000 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
42001 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
42002 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
42003 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
42004 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
42005 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
42006 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
42007 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
42008 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
42009 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
42010 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
42011 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
42012 | s,@VENDOR@,$VENDOR,;t t | |
42013 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
42014 | s,@WXUNIV@,$WXUNIV,;t t | |
42015 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
42016 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
42017 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
42018 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
42019 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
42020 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
42021 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
42022 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
42023 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
42024 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
42025 | s,@UNICODE@,$UNICODE,;t t | |
42026 | s,@BUILD@,$BUILD,;t t | |
42027 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
42028 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
42029 | s,@SHARED@,$SHARED,;t t | |
42030 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
42031 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
42032 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
42033 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
42034 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
42035 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
42036 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
42037 | s,@SET_MAKE@,$SET_MAKE,;t t | |
42038 | s,@MAKE_SET@,$MAKE_SET,;t t | |
42039 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42040 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
42041 | s,@NM@,$NM,;t t | |
42042 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
42043 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
42044 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
42045 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
42046 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
42047 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
42048 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
42049 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
42050 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
42051 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
42052 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
42053 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
42054 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
42055 | s,@LIBEXT@,$LIBEXT,;t t | |
42056 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
42057 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
42058 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
42059 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
42060 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
42061 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
42062 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
42063 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
42064 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
42065 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
42066 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
42067 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
42068 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
42069 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
42070 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
42071 | s,@GCC_PCH@,$GCC_PCH,;t t | |
42072 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
42073 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
42074 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
42075 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
42076 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
42077 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
42078 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
42079 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
42080 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
42081 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42082 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42083 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42084 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42085 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42086 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42087 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42088 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42089 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
42090 | 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 | |
42091 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
42092 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
42093 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t | |
42094 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
42095 | 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 | |
42096 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
42097 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
42098 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t | |
42099 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42100 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42101 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42102 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42103 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42104 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42105 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
42106 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
42107 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42108 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
42109 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t | |
42110 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
42111 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
42112 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42113 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42114 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42115 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42116 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42117 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42118 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42119 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
42120 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t | |
42121 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42122 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42123 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42124 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42125 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42126 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42127 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42128 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42129 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
42130 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
42131 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
42132 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42133 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42134 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42135 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42136 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42137 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
e835546c | 42138 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
a848cd7e SC |
42139 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t |
42140 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42141 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42142 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42143 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42144 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42145 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42146 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
e835546c | 42147 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
42148 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
42149 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42150 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
e835546c | 42151 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t |
3fd9c298 DE |
42152 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42153 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42154 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42155 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42156 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42157 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42158 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42159 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42160 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42161 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
42162 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
42163 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
42164 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42165 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42166 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42167 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t | |
42168 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t | |
42169 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
42170 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
42171 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
42172 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
42173 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t | |
42174 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t | |
42175 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t | |
42176 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
42177 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
42178 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
42179 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
42180 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
42181 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
42182 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
42183 | s,@PATH_IFS@,$PATH_IFS,;t t | |
42184 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
42185 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
42186 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
224bf05c | 42187 | s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t |
a848cd7e SC |
42188 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t |
42189 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
42190 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t | |
42191 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
42192 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
42193 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
42194 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
42195 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
42196 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
42197 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
42198 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
42199 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
42200 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
42201 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
42202 | s,@WX_ALL@,$WX_ALL,;t t | |
42203 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
42204 | s,@SHARED_LD@,$SHARED_LD,;t t | |
42205 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t | |
42206 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
42207 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
42208 | s,@USE_GUI@,$USE_GUI,;t t | |
42209 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42210 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42211 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42212 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
42213 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
42214 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
42215 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
42216 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
42217 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
42218 | s,@cross_compiling@,$cross_compiling,;t t | |
42219 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t | |
42220 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
42221 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
42222 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
42223 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
42224 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
42225 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42226 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
48112931 | 42227 | s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t |
a848cd7e | 42228 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
74b84332 | 42229 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42230 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42231 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
42232 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
42233 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
42234 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
42235 | s,@GUIDIST@,$GUIDIST,;t t | |
42236 | s,@PORT_FILES@,$PORT_FILES,;t t | |
42237 | s,@DISTDIR@,$DISTDIR,;t t | |
42238 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42239 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
42240 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
42241 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
42242 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
42243 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42244 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42245 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42246 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42247 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42248 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42249 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42250 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42251 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42252 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42253 | s,@GCC@,$GCC,;t t | |
a848cd7e SC |
42254 | s,@DLLTOOL@,$DLLTOOL,;t t |
42255 | s,@AS@,$AS,;t t | |
42256 | s,@LD@,$LD,;t t | |
42257 | s,@MAKEINFO@,$MAKEINFO,;t t | |
42258 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
42259 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t | |
42260 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42261 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42262 | CEOF | |
42263 | ||
42264 | _ACEOF | |
42265 | ||
42266 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42267 | # Split the substitutions into bite-sized pieces for seds with | |
42268 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42269 | ac_max_sed_lines=48 | |
42270 | ac_sed_frag=1 # Number of current file. | |
42271 | ac_beg=1 # First line for current file. | |
42272 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42273 | ac_more_lines=: | |
42274 | ac_sed_cmds= | |
42275 | while $ac_more_lines; do | |
42276 | if test $ac_beg -gt 1; then | |
42277 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42278 | else | |
42279 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42280 | fi | |
42281 | if test ! -s $tmp/subs.frag; then | |
42282 | ac_more_lines=false | |
42283 | else | |
42284 | # The purpose of the label and of the branching condition is to | |
42285 | # speed up the sed processing (if there are no `@' at all, there | |
42286 | # is no need to browse any of the substitutions). | |
42287 | # These are the two extra sed commands mentioned above. | |
42288 | (echo ':t | |
42289 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42290 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42291 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42292 | else |
ac1cb8d3 | 42293 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42294 | fi |
42295 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42296 | ac_beg=$ac_end | |
42297 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42298 | fi | |
42299 | done | |
42300 | if test -z "$ac_sed_cmds"; then | |
42301 | ac_sed_cmds=cat | |
42302 | fi | |
42303 | fi # test -n "$CONFIG_FILES" | |
42304 | ||
42305 | _ACEOF | |
42306 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42307 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42308 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42309 | case $ac_file in | |
42310 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42311 | cat >$tmp/stdin |
42312 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42313 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42314 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42315 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42316 | * ) ac_file_in=$ac_file.in ;; |
42317 | esac | |
42318 | ||
42319 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42320 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42321 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42322 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42323 | X"$ac_file" : 'X\(//\)$' \| \ | |
42324 | X"$ac_file" : 'X\(/\)' \| \ | |
42325 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42326 | echo X"$ac_file" | |
42327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42328 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42329 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42330 | /^X\(\/\).*/{ s//\1/; q; } | |
42331 | s/.*/./; q'` | |
42332 | { if $as_mkdir_p; then | |
42333 | mkdir -p "$ac_dir" | |
42334 | else | |
42335 | as_dir="$ac_dir" | |
42336 | as_dirs= | |
42337 | while test ! -d "$as_dir"; do | |
42338 | as_dirs="$as_dir $as_dirs" | |
42339 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42341 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42342 | X"$as_dir" : 'X\(//\)$' \| \ | |
42343 | X"$as_dir" : 'X\(/\)' \| \ | |
42344 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42345 | echo X"$as_dir" | |
42346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42347 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42348 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42349 | /^X\(\/\).*/{ s//\1/; q; } | |
42350 | s/.*/./; q'` | |
42351 | done | |
42352 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42353 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42354 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42355 | { (exit 1); exit 1; }; }; } | |
42356 | ||
42357 | ac_builddir=. | |
42358 | ||
42359 | if test "$ac_dir" != .; then | |
42360 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42361 | # A "../" for each directory in $ac_dir_suffix. | |
42362 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42363 | else | |
42364 | ac_dir_suffix= ac_top_builddir= | |
42365 | fi | |
42366 | ||
42367 | case $srcdir in | |
42368 | .) # No --srcdir option. We are building in place. | |
42369 | ac_srcdir=. | |
42370 | if test -z "$ac_top_builddir"; then | |
42371 | ac_top_srcdir=. | |
42372 | else | |
42373 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42374 | fi ;; | |
42375 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42376 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42377 | ac_top_srcdir=$srcdir ;; | |
42378 | *) # Relative path. | |
42379 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42380 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42381 | esac | |
ac1cb8d3 VS |
42382 | |
42383 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42384 | # the directories may not exist. | |
42385 | case `pwd` in | |
42386 | .) ac_abs_builddir="$ac_dir";; | |
42387 | *) | |
42388 | case "$ac_dir" in | |
42389 | .) ac_abs_builddir=`pwd`;; | |
42390 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42391 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42392 | esac;; | |
42393 | esac | |
42394 | case $ac_abs_builddir in | |
42395 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42396 | *) | |
42397 | case ${ac_top_builddir}. in | |
42398 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42399 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42400 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42401 | esac;; | |
42402 | esac | |
42403 | case $ac_abs_builddir in | |
42404 | .) ac_abs_srcdir=$ac_srcdir;; | |
42405 | *) | |
42406 | case $ac_srcdir in | |
42407 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42408 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42409 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42410 | esac;; | |
42411 | esac | |
42412 | case $ac_abs_builddir in | |
42413 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42414 | *) | |
42415 | case $ac_top_srcdir in | |
42416 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42417 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42418 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42419 | esac;; | |
42420 | esac | |
a848cd7e SC |
42421 | |
42422 | ||
42423 | case $INSTALL in | |
42424 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42425 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42426 | esac | |
42427 | ||
ea7db9ff DE |
42428 | if test x"$ac_file" != x-; then |
42429 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42430 | echo "$as_me: creating $ac_file" >&6;} | |
42431 | rm -f "$ac_file" | |
42432 | fi | |
a848cd7e SC |
42433 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42434 | # use $as_me), people would be surprised to read: | |
42435 | # /* config.h. Generated by config.status. */ | |
42436 | if test x"$ac_file" = x-; then | |
42437 | configure_input= | |
42438 | else | |
42439 | configure_input="$ac_file. " | |
42440 | fi | |
42441 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42442 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42443 | |
42444 | # First look for the input files in the build tree, otherwise in the | |
42445 | # src tree. | |
42446 | ac_file_inputs=`IFS=: | |
42447 | for f in $ac_file_in; do | |
42448 | case $f in | |
42449 | -) echo $tmp/stdin ;; | |
42450 | [\\/$]*) | |
ac1cb8d3 VS |
42451 | # Absolute (can't be DOS-style, as IFS=:) |
42452 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42453 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42454 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42455 | echo "$f";; |
a848cd7e | 42456 | *) # Relative |
ac1cb8d3 VS |
42457 | if test -f "$f"; then |
42458 | # Build tree | |
42459 | echo "$f" | |
42460 | elif test -f "$srcdir/$f"; then | |
42461 | # Source tree | |
42462 | echo "$srcdir/$f" | |
42463 | else | |
42464 | # /dev/null tree | |
42465 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42466 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42467 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42468 | fi;; |
a848cd7e SC |
42469 | esac |
42470 | done` || { (exit 1); exit 1; } | |
42471 | _ACEOF | |
42472 | cat >>$CONFIG_STATUS <<_ACEOF | |
42473 | sed "$ac_vpsub | |
42474 | $extrasub | |
42475 | _ACEOF | |
42476 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42477 | :t | |
42478 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42479 | s,@configure_input@,$configure_input,;t t | |
42480 | s,@srcdir@,$ac_srcdir,;t t | |
42481 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42482 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42483 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42484 | s,@builddir@,$ac_builddir,;t t | |
42485 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42486 | s,@top_builddir@,$ac_top_builddir,;t t | |
42487 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42488 | s,@INSTALL@,$ac_INSTALL,;t t | |
42489 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42490 | rm -f $tmp/stdin | |
42491 | if test x"$ac_file" != x-; then | |
42492 | mv $tmp/out $ac_file | |
42493 | else | |
42494 | cat $tmp/out | |
42495 | rm -f $tmp/out | |
42496 | fi | |
42497 | ||
42498 | done | |
42499 | _ACEOF | |
42500 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42501 | ||
42502 | # | |
42503 | # CONFIG_HEADER section. | |
42504 | # | |
42505 | ||
42506 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42507 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42508 | # | |
42509 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42510 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42511 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42512 | ac_dC=' ' |
42513 | ac_dD=',;t' | |
42514 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42515 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42516 | ac_uB='$,\1#\2define\3' |
42517 | ac_uC=' ' | |
42518 | ac_uD=',;t' | |
42519 | ||
42520 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42521 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42522 | case $ac_file in | |
42523 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42524 | cat >$tmp/stdin |
42525 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42526 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42527 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42528 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42529 | * ) ac_file_in=$ac_file.in ;; |
42530 | esac | |
42531 | ||
42532 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42533 | echo "$as_me: creating $ac_file" >&6;} | |
42534 | ||
42535 | # First look for the input files in the build tree, otherwise in the | |
42536 | # src tree. | |
42537 | ac_file_inputs=`IFS=: | |
42538 | for f in $ac_file_in; do | |
42539 | case $f in | |
42540 | -) echo $tmp/stdin ;; | |
42541 | [\\/$]*) | |
ac1cb8d3 VS |
42542 | # Absolute (can't be DOS-style, as IFS=:) |
42543 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42544 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42545 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42546 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42547 | echo "$f";; | |
a848cd7e | 42548 | *) # Relative |
ac1cb8d3 VS |
42549 | if test -f "$f"; then |
42550 | # Build tree | |
42551 | echo "$f" | |
42552 | elif test -f "$srcdir/$f"; then | |
42553 | # Source tree | |
42554 | echo "$srcdir/$f" | |
42555 | else | |
42556 | # /dev/null tree | |
42557 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42558 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42559 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42560 | fi;; |
a848cd7e SC |
42561 | esac |
42562 | done` || { (exit 1); exit 1; } | |
42563 | # Remove the trailing spaces. | |
ac1cb8d3 | 42564 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42565 | |
42566 | _ACEOF | |
42567 | ||
42568 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42569 | # `conftest.undefs', that substitutes the proper values into | |
42570 | # config.h.in to produce config.h. The first handles `#define' | |
42571 | # templates, and the second `#undef' templates. | |
42572 | # And first: Protect against being on the right side of a sed subst in | |
42573 | # config.status. Protect against being in an unquoted here document | |
42574 | # in config.status. | |
42575 | rm -f conftest.defines conftest.undefs | |
42576 | # Using a here document instead of a string reduces the quoting nightmare. | |
42577 | # Putting comments in sed scripts is not portable. | |
42578 | # | |
42579 | # `end' is used to avoid that the second main sed command (meant for | |
42580 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42581 | # See the Autoconf documentation for `clear'. | |
42582 | cat >confdef2sed.sed <<\_ACEOF | |
42583 | s/[\\&,]/\\&/g | |
42584 | s,[\\$`],\\&,g | |
42585 | t clear | |
42586 | : clear | |
ac1cb8d3 | 42587 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42588 | t end |
ac1cb8d3 | 42589 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42590 | : end |
42591 | _ACEOF | |
42592 | # If some macros were called several times there might be several times | |
42593 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42594 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42595 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42596 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42597 | rm -f confdef2sed.sed | |
42598 | ||
42599 | # This sed command replaces #undef with comments. This is necessary, for | |
42600 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42601 | # on some systems where configure will not decide to define it. | |
42602 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42603 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42604 | _ACEOF |
42605 | ||
42606 | # Break up conftest.defines because some shells have a limit on the size | |
42607 | # of here documents, and old seds have small limits too (100 cmds). | |
42608 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42609 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42610 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42611 | echo ' :' >>$CONFIG_STATUS | |
42612 | rm -f conftest.tail | |
42613 | while grep . conftest.defines >/dev/null | |
42614 | do | |
42615 | # Write a limited-size here document to $tmp/defines.sed. | |
42616 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
42617 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 42618 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42619 | # Work around the forget-to-reset-the-flag bug. |
42620 | echo 't clr' >>$CONFIG_STATUS | |
42621 | echo ': clr' >>$CONFIG_STATUS | |
42622 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
42623 | echo 'CEOF | |
42624 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
42625 | rm -f $tmp/in | |
42626 | mv $tmp/out $tmp/in | |
42627 | ' >>$CONFIG_STATUS | |
42628 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
42629 | rm -f conftest.defines | |
42630 | mv conftest.tail conftest.defines | |
42631 | done | |
42632 | rm -f conftest.defines | |
42633 | echo ' fi # grep' >>$CONFIG_STATUS | |
42634 | echo >>$CONFIG_STATUS | |
42635 | ||
42636 | # Break up conftest.undefs because some shells have a limit on the size | |
42637 | # of here documents, and old seds have small limits too (100 cmds). | |
42638 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
42639 | rm -f conftest.tail | |
42640 | while grep . conftest.undefs >/dev/null | |
42641 | do | |
42642 | # Write a limited-size here document to $tmp/undefs.sed. | |
42643 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
42644 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 42645 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42646 | # Work around the forget-to-reset-the-flag bug. |
42647 | echo 't clr' >>$CONFIG_STATUS | |
42648 | echo ': clr' >>$CONFIG_STATUS | |
42649 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
42650 | echo 'CEOF | |
42651 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
42652 | rm -f $tmp/in | |
42653 | mv $tmp/out $tmp/in | |
42654 | ' >>$CONFIG_STATUS | |
42655 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
42656 | rm -f conftest.undefs | |
42657 | mv conftest.tail conftest.undefs | |
42658 | done | |
42659 | rm -f conftest.undefs | |
42660 | ||
42661 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42662 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
42663 | # use $as_me), people would be surprised to read: | |
42664 | # /* config.h. Generated by config.status. */ | |
42665 | if test x"$ac_file" = x-; then | |
42666 | echo "/* Generated by configure. */" >$tmp/config.h | |
42667 | else | |
42668 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
42669 | fi | |
42670 | cat $tmp/in >>$tmp/config.h | |
42671 | rm -f $tmp/in | |
42672 | if test x"$ac_file" != x-; then | |
42673 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
42674 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
42675 | echo "$as_me: $ac_file is unchanged" >&6;} | |
42676 | else | |
42677 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42678 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42679 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42680 | X"$ac_file" : 'X\(//\)$' \| \ | |
42681 | X"$ac_file" : 'X\(/\)' \| \ | |
42682 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42683 | echo X"$ac_file" | |
42684 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42685 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42686 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42687 | /^X\(\/\).*/{ s//\1/; q; } | |
42688 | s/.*/./; q'` | |
42689 | { if $as_mkdir_p; then | |
42690 | mkdir -p "$ac_dir" | |
42691 | else | |
42692 | as_dir="$ac_dir" | |
42693 | as_dirs= | |
42694 | while test ! -d "$as_dir"; do | |
42695 | as_dirs="$as_dir $as_dirs" | |
42696 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42697 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42698 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42699 | X"$as_dir" : 'X\(//\)$' \| \ | |
42700 | X"$as_dir" : 'X\(/\)' \| \ | |
42701 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42702 | echo X"$as_dir" | |
42703 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42704 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42705 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42706 | /^X\(\/\).*/{ s//\1/; q; } | |
42707 | s/.*/./; q'` | |
42708 | done | |
42709 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42710 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42711 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42712 | { (exit 1); exit 1; }; }; } | |
42713 | ||
42714 | rm -f $ac_file | |
42715 | mv $tmp/config.h $ac_file | |
42716 | fi | |
42717 | else | |
42718 | cat $tmp/config.h | |
42719 | rm -f $tmp/config.h | |
42720 | fi | |
42721 | done | |
42722 | _ACEOF | |
42723 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42724 | ||
42725 | # | |
42726 | # CONFIG_COMMANDS section. | |
42727 | # | |
42728 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
42729 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
42730 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42731 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
42732 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42733 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
42734 | X"$ac_dest" : 'X\(//\)$' \| \ | |
42735 | X"$ac_dest" : 'X\(/\)' \| \ | |
42736 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42737 | echo X"$ac_dest" | |
42738 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42739 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42740 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42741 | /^X\(\/\).*/{ s//\1/; q; } | |
42742 | s/.*/./; q'` | |
ac1cb8d3 VS |
42743 | { if $as_mkdir_p; then |
42744 | mkdir -p "$ac_dir" | |
42745 | else | |
42746 | as_dir="$ac_dir" | |
42747 | as_dirs= | |
42748 | while test ! -d "$as_dir"; do | |
42749 | as_dirs="$as_dir $as_dirs" | |
42750 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42751 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
42752 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
42753 | X"$as_dir" : 'X\(//\)$' \| \ | |
42754 | X"$as_dir" : 'X\(/\)' \| \ | |
42755 | . : '\(.\)' 2>/dev/null || | |
42756 | echo X"$as_dir" | | |
42757 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42758 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42759 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42760 | /^X\(\/\).*/{ s//\1/; q; } | |
42761 | s/.*/./; q'` | |
42762 | done | |
42763 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42764 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42765 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42766 | { (exit 1); exit 1; }; }; } | |
42767 | ||
a848cd7e SC |
42768 | ac_builddir=. |
42769 | ||
42770 | if test "$ac_dir" != .; then | |
42771 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42772 | # A "../" for each directory in $ac_dir_suffix. | |
42773 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42774 | else | |
42775 | ac_dir_suffix= ac_top_builddir= | |
42776 | fi | |
42777 | ||
42778 | case $srcdir in | |
42779 | .) # No --srcdir option. We are building in place. | |
42780 | ac_srcdir=. | |
42781 | if test -z "$ac_top_builddir"; then | |
42782 | ac_top_srcdir=. | |
42783 | else | |
42784 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42785 | fi ;; | |
42786 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42787 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42788 | ac_top_srcdir=$srcdir ;; | |
42789 | *) # Relative path. | |
42790 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42791 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42792 | esac | |
ac1cb8d3 VS |
42793 | |
42794 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42795 | # the directories may not exist. | |
42796 | case `pwd` in | |
42797 | .) ac_abs_builddir="$ac_dir";; | |
42798 | *) | |
42799 | case "$ac_dir" in | |
42800 | .) ac_abs_builddir=`pwd`;; | |
42801 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42802 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42803 | esac;; | |
42804 | esac | |
42805 | case $ac_abs_builddir in | |
42806 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42807 | *) | |
42808 | case ${ac_top_builddir}. in | |
42809 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42810 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42811 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42812 | esac;; | |
42813 | esac | |
42814 | case $ac_abs_builddir in | |
42815 | .) ac_abs_srcdir=$ac_srcdir;; | |
42816 | *) | |
42817 | case $ac_srcdir in | |
42818 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42819 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42820 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42821 | esac;; | |
42822 | esac | |
42823 | case $ac_abs_builddir in | |
42824 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42825 | *) | |
42826 | case $ac_top_srcdir in | |
42827 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42828 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42829 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42830 | esac;; | |
42831 | esac | |
a848cd7e SC |
42832 | |
42833 | ||
42834 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
42835 | echo "$as_me: executing $ac_dest commands" >&6;} | |
42836 | case $ac_dest in | |
42837 | default ) | |
a848cd7e SC |
42838 | if test ! -d lib; then |
42839 | mkdir lib | |
42840 | fi | |
42841 | if test ! -d lib/wx; then | |
42842 | mkdir lib/wx | |
42843 | fi | |
8708fa76 VS |
42844 | if test ! -d lib/wx/config; then |
42845 | mkdir lib/wx/config | |
42846 | fi | |
a848cd7e SC |
42847 | if test ! -d lib/wx/include; then |
42848 | mkdir lib/wx/include | |
42849 | fi | |
42850 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
42851 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
42852 | fi | |
42853 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
42854 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
42855 | fi | |
42856 | if test -f setup.h; then | |
42857 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
42858 | fi | |
8708fa76 VS |
42859 | |
42860 | if test -f wx-config; then | |
42861 | chmod +x wx-config | |
48112931 | 42862 | mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE} |
a87bf378 VS |
42863 | ( cd lib/wx/config ; |
42864 | rm -f ${TOOLCHAIN_NAME} | |
42865 | ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} ) | |
8708fa76 | 42866 | fi |
8708fa76 VS |
42867 | if test -f wx-config-wrapper; then |
42868 | chmod +x wx-config-wrapper | |
42869 | mv -f wx-config-wrapper wx-config | |
b3de4970 VS |
42870 | rm -f wx${TOOLCHAIN_NAME}-config |
42871 | ${LN_S} wx-config wx${TOOLCHAIN_NAME}-config | |
8708fa76 | 42872 | fi |
a848cd7e SC |
42873 | ;; |
42874 | esac | |
42875 | done | |
42876 | _ACEOF | |
42877 | ||
42878 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42879 | ||
42880 | { (exit 0); exit 0; } | |
42881 | _ACEOF | |
42882 | chmod +x $CONFIG_STATUS | |
42883 | ac_clean_files=$ac_clean_files_save | |
42884 | ||
42885 | ||
42886 | # configure is writing to config.log, and then calls config.status. | |
42887 | # config.status does its own redirection, appending to config.log. | |
42888 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
42889 | # by configure, so config.status won't be able to write to it; its | |
42890 | # output is simply discarded. So we exec the FD to /dev/null, | |
42891 | # effectively closing config.log, so it can be properly (re)opened and | |
42892 | # appended to by config.status. When coming back to configure, we | |
42893 | # need to make the FD available again. | |
42894 | if test "$no_create" != yes; then | |
42895 | ac_cs_success=: | |
42896 | ac_config_status_args= | |
42897 | test "$silent" = yes && | |
42898 | ac_config_status_args="$ac_config_status_args --quiet" | |
42899 | exec 5>/dev/null | |
42900 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
42901 | exec 5>>config.log | |
42902 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
42903 | # would make configure fail if this is the last instruction. | |
42904 | $ac_cs_success || { (exit 1); exit 1; } | |
42905 | fi | |
42906 | ||
42907 | # | |
42908 | # CONFIG_SUBDIRS section. | |
42909 | # | |
42910 | if test "$no_recursion" != yes; then | |
42911 | ||
42912 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
42913 | ac_sub_configure_args= | |
42914 | ac_prev= | |
42915 | for ac_arg in $ac_configure_args; do | |
42916 | if test -n "$ac_prev"; then | |
42917 | ac_prev= | |
42918 | continue | |
42919 | fi | |
42920 | case $ac_arg in | |
42921 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
42922 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
42923 | ac_prev=cache_file ;; | |
42924 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
42925 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
42926 | | --c=*) | |
42927 | ;; | |
42928 | --config-cache | -C) | |
42929 | ;; | |
42930 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
42931 | ac_prev=srcdir ;; | |
42932 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42933 | ;; | |
42934 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
42935 | ac_prev=prefix ;; | |
42936 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42937 | ;; | |
42938 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
42939 | esac | |
42940 | done | |
42941 | ||
42942 | # Always prepend --prefix to ensure using the same prefix | |
42943 | # in subdir configurations. | |
42944 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
42945 | ||
42946 | ac_popdir=`pwd` | |
42947 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
42948 | ||
42949 | # Do not complain, so a configure script can configure whichever | |
42950 | # parts of a large source tree are present. | |
42951 | test -d $srcdir/$ac_dir || continue | |
42952 | ||
42953 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
42954 | echo "$as_me: configuring in $ac_dir" >&6;} | |
42955 | { if $as_mkdir_p; then | |
42956 | mkdir -p "$ac_dir" | |
42957 | else | |
42958 | as_dir="$ac_dir" | |
42959 | as_dirs= | |
42960 | while test ! -d "$as_dir"; do | |
42961 | as_dirs="$as_dir $as_dirs" | |
42962 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42963 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42964 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42965 | X"$as_dir" : 'X\(//\)$' \| \ | |
42966 | X"$as_dir" : 'X\(/\)' \| \ | |
42967 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42968 | echo X"$as_dir" | |
42969 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42970 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42971 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42972 | /^X\(\/\).*/{ s//\1/; q; } | |
42973 | s/.*/./; q'` | |
42974 | done | |
42975 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42976 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42977 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42978 | { (exit 1); exit 1; }; }; } | |
42979 | ||
42980 | ac_builddir=. | |
42981 | ||
42982 | if test "$ac_dir" != .; then | |
42983 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42984 | # A "../" for each directory in $ac_dir_suffix. | |
42985 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42986 | else | |
42987 | ac_dir_suffix= ac_top_builddir= | |
42988 | fi | |
42989 | ||
42990 | case $srcdir in | |
42991 | .) # No --srcdir option. We are building in place. | |
42992 | ac_srcdir=. | |
42993 | if test -z "$ac_top_builddir"; then | |
42994 | ac_top_srcdir=. | |
42995 | else | |
42996 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42997 | fi ;; | |
42998 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42999 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43000 | ac_top_srcdir=$srcdir ;; | |
43001 | *) # Relative path. | |
43002 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43003 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43004 | esac | |
ac1cb8d3 VS |
43005 | |
43006 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43007 | # the directories may not exist. | |
43008 | case `pwd` in | |
43009 | .) ac_abs_builddir="$ac_dir";; | |
43010 | *) | |
43011 | case "$ac_dir" in | |
43012 | .) ac_abs_builddir=`pwd`;; | |
43013 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43014 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43015 | esac;; | |
43016 | esac | |
43017 | case $ac_abs_builddir in | |
43018 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43019 | *) | |
43020 | case ${ac_top_builddir}. in | |
43021 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43022 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43023 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43024 | esac;; | |
43025 | esac | |
43026 | case $ac_abs_builddir in | |
43027 | .) ac_abs_srcdir=$ac_srcdir;; | |
43028 | *) | |
43029 | case $ac_srcdir in | |
43030 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43031 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43032 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43033 | esac;; | |
43034 | esac | |
43035 | case $ac_abs_builddir in | |
43036 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43037 | *) | |
43038 | case $ac_top_srcdir in | |
43039 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43040 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43041 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43042 | esac;; | |
43043 | esac | |
a848cd7e SC |
43044 | |
43045 | ||
43046 | cd $ac_dir | |
43047 | ||
43048 | # Check for guested configure; otherwise get Cygnus style configure. | |
43049 | if test -f $ac_srcdir/configure.gnu; then | |
43050 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
43051 | elif test -f $ac_srcdir/configure; then | |
43052 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
43053 | elif test -f $ac_srcdir/configure.in; then | |
43054 | ac_sub_configure=$ac_configure | |
43055 | else | |
43056 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
43057 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
43058 | ac_sub_configure= | |
43059 | fi | |
43060 | ||
43061 | # The recursion is here. | |
43062 | if test -n "$ac_sub_configure"; then | |
43063 | # Make the cache file name correct relative to the subdirectory. | |
43064 | case $cache_file in | |
43065 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
43066 | *) # Relative path. | |
ac1cb8d3 | 43067 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
43068 | esac |
43069 | ||
43070 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
43071 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
43072 | # The eval makes quoting arguments work. | |
43073 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
43074 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
43075 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
43076 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
43077 | { (exit 1); exit 1; }; } | |
43078 | fi | |
43079 | ||
ea7db9ff | 43080 | cd $ac_popdir |
a848cd7e SC |
43081 | done |
43082 | fi | |
43083 | ||
43084 | ||
43085 | echo | |
77ffb593 | 43086 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43087 | echo "" |
77ffb593 JS |
43088 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}" |
43089 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" | |
a848cd7e | 43090 | |
77ffb593 JS |
43091 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
43092 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
43093 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43094 | |
77ffb593 JS |
43095 | echo " What level of wxWidgets compatibility should be enabled?" |
43096 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43097 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43098 | |
77ffb593 | 43099 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43100 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43101 | echo " png ${wxUSE_LIBPNG-none}" | |
43102 | echo " regex ${wxUSE_REGEX}" | |
43103 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43104 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43105 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43106 | fi | |
43107 | echo " zlib ${wxUSE_ZLIB}" | |
43108 | echo " odbc ${wxUSE_ODBC}" | |
43109 | echo " expat ${wxUSE_EXPAT}" | |
43110 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43111 | echo " sdl ${wxUSE_LIBSDL}" | |
43112 | ||
43113 | echo "" | |
43114 |