]>
Commit | Line | Data |
---|---|---|
a848cd7e SC |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
ac1cb8d3 | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.2. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
ac1cb8d3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
ac1cb8d3 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
ac1cb8d3 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
ac1cb8d3 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
ac1cb8d3 | 224 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
225 | as_mkdir_p=false |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
258 | ac_config_libobj_dir=. | |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
77ffb593 JS |
271 | PACKAGE_NAME='wxWidgets' |
272 | PACKAGE_TARNAME='wxwidgets' | |
273 | PACKAGE_VERSION='2.5.2' | |
274 | PACKAGE_STRING='wxWidgets 2.5.2' | |
275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' | |
a848cd7e SC |
276 | |
277 | ac_unique_file="wx-config.in" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
315 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
4d4ff94c | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_SUBRELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_DATA_FILE WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
77ffb593 | 797 | \`configure' configures wxWidgets 2.5.2 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
77ffb593 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.2:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
9f45f08e | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
a848cd7e SC |
894 | --enable-rpath=DIR output the rpath flag from wx-config |
895 | --enable-intl use internationalization system | |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
907 | --enable-cmdline use wxCmdLineParser class | |
908 | --enable-datetime use wxDateTime class | |
909 | --enable-dialupman use dialup network classes | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-exceptions build exception-safe library | |
913 | --enable-ffile use wxFFile class | |
914 | --enable-file use wxFile class | |
915 | --enable-filesystem use virtual file systems classes | |
916 | --enable-fontmap use font encodings conversion classes | |
917 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
918 | --enable-fs_zip use virtual ZIP filesystems | |
919 | --enable-geometry use geometry class | |
920 | --enable-log use logging system | |
921 | --enable-longlong use wxLongLong class | |
922 | --enable-mimetype use wxMimeTypesManager | |
923 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
924 | --enable-snglinst use wxSingleInstanceChecker class | |
925 | --enable-streams use wxStream etc classes | |
926 | --enable-std_iostreams use standard C++ stream classes | |
927 | --enable-stopwatch use wxStopWatch class | |
928 | --enable-sysoptions use wxSystemOptions | |
929 | --enable-textbuf use wxTextBuffer class | |
930 | --enable-textfile use wxTextFile class | |
931 | --enable-timer use wxTimer class | |
932 | --enable-unicode compile wxString with Unicode support | |
933 | --enable-sound use wxSound class | |
77ffb593 | 934 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
a848cd7e | 935 | --enable-zipstream use wxZipInputStream |
a848cd7e SC |
936 | --enable-url use wxURL class |
937 | --enable-protocol use wxProtocol class | |
938 | --enable-protocol-http HTTP support in wxProtocol | |
939 | --enable-protocol-ftp FTP support in wxProtocol | |
940 | --enable-protocol-file FILE support in wxProtocol | |
941 | --enable-threads use threads | |
942 | --enable-docview use document view architecture | |
943 | --enable-help use help subsystem | |
944 | --enable-mshtmlhelp use MS HTML Help (win32) | |
945 | --enable-html use wxHTML sub-library | |
946 | --enable-htmlhelp use wxHTML-based help | |
947 | --enable-constraints use layout-constraints system | |
948 | --enable-printarch use printing architecture | |
949 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 950 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
951 | --enable-loggui use standard GUI logger |
952 | --enable-logwin use wxLogWindow | |
953 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 954 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
955 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
956 | --enable-prologio not available; see contrib | |
957 | --enable-resources not available; see contrib | |
958 | --enable-clipboard use wxClipboard class | |
959 | --enable-dnd use Drag'n'Drop classes | |
960 | --enable-metafile use win32 metafiles | |
961 | --enable-controls use all usual controls | |
962 | --enable-accel use accelerators | |
963 | --enable-button use wxButton class | |
964 | --enable-bmpbutton use wxBitmapButton class | |
965 | --enable-calendar use wxCalendarCtrl class | |
966 | --enable-caret use wxCaret class | |
967 | --enable-checkbox use wxCheckBox class | |
968 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
969 | --enable-choice use wxChoice class | |
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) | |
ebee3cd0 VS |
1040 | --disable-precomp-headers |
1041 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1042 | |
1043 | Optional Packages: | |
1044 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1045 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1046 | --with-gtk use GTK+ | |
1047 | --with-motif use Motif/Lesstif | |
1048 | --with-mac use Mac OS X | |
1049 | --with-cocoa use Cocoa | |
1050 | --with-wine use Wine | |
1051 | --with-msw use MS-Windows | |
1052 | --with-pm use OS/2 Presentation Manager | |
1053 | --with-mgl use SciTech MGL | |
1054 | --with-microwin use MicroWindows | |
1055 | --with-x11 use X11 | |
1056 | --with-libpng use libpng (PNG image format) | |
1057 | --with-libjpeg use libjpeg (JPEG file format) | |
1058 | --with-libtiff use libtiff (TIFF file format) | |
1059 | --with-libxpm use libxpm (XPM file format) | |
1060 | --with-libmspack use libmspack (CHM help files loading) | |
1061 | --with-sdl use SDL for audio on Unix | |
1062 | --with-opengl use OpenGL (or Mesa) | |
1063 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1064 | --with-regex enable support for wxRegEx class | |
1065 | --with-zlib use zlib for LZW compression | |
1066 | --with-odbc use the IODBC and wxODBC classes | |
1067 | --with-expat enable XML support using expat parser | |
1068 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1069 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1070 | --with-x use the X Window System | |
1071 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1072 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1073 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1074 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1075 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1076 | ||
1077 | Some influential environment variables: | |
dcc1b6ad VS |
1078 | CC C compiler command |
1079 | CFLAGS C compiler flags | |
1080 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1081 | nonstandard directory <lib dir> | |
1082 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1083 | headers in a nonstandard directory <include dir> | |
1084 | CPP C preprocessor | |
1085 | CXX C++ compiler command | |
1086 | CXXFLAGS C++ compiler flags | |
1087 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1088 | |
1089 | Use these variables to override the choices made by `configure' or to help | |
1090 | it to find libraries and programs with nonstandard names/locations. | |
1091 | ||
77ffb593 | 1092 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1093 | _ACEOF |
1094 | fi | |
1095 | ||
1096 | if test "$ac_init_help" = "recursive"; then | |
1097 | # If there are subdirs, report their specific --help. | |
1098 | ac_popdir=`pwd` | |
1099 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1100 | test -d $ac_dir || continue | |
1101 | ac_builddir=. | |
1102 | ||
1103 | if test "$ac_dir" != .; then | |
1104 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1105 | # A "../" for each directory in $ac_dir_suffix. | |
1106 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1107 | else | |
1108 | ac_dir_suffix= ac_top_builddir= | |
1109 | fi | |
1110 | ||
1111 | case $srcdir in | |
1112 | .) # No --srcdir option. We are building in place. | |
1113 | ac_srcdir=. | |
1114 | if test -z "$ac_top_builddir"; then | |
1115 | ac_top_srcdir=. | |
1116 | else | |
1117 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1118 | fi ;; | |
1119 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1120 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1121 | ac_top_srcdir=$srcdir ;; | |
1122 | *) # Relative path. | |
1123 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1124 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1125 | esac | |
ac1cb8d3 VS |
1126 | |
1127 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1128 | # the directories may not exist. | |
1129 | case `pwd` in | |
1130 | .) ac_abs_builddir="$ac_dir";; | |
1131 | *) | |
1132 | case "$ac_dir" in | |
1133 | .) ac_abs_builddir=`pwd`;; | |
1134 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1135 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1136 | esac;; | |
1137 | esac | |
1138 | case $ac_abs_builddir in | |
1139 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1140 | *) | |
1141 | case ${ac_top_builddir}. in | |
1142 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1143 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1144 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1145 | esac;; | |
1146 | esac | |
1147 | case $ac_abs_builddir in | |
1148 | .) ac_abs_srcdir=$ac_srcdir;; | |
1149 | *) | |
1150 | case $ac_srcdir in | |
1151 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1152 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1153 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1154 | esac;; | |
1155 | esac | |
1156 | case $ac_abs_builddir in | |
1157 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1158 | *) | |
1159 | case $ac_top_srcdir in | |
1160 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1161 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1162 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1163 | esac;; | |
1164 | esac | |
a848cd7e SC |
1165 | |
1166 | cd $ac_dir | |
1167 | # Check for guested configure; otherwise get Cygnus style configure. | |
1168 | if test -f $ac_srcdir/configure.gnu; then | |
1169 | echo | |
1170 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1171 | elif test -f $ac_srcdir/configure; then | |
1172 | echo | |
1173 | $SHELL $ac_srcdir/configure --help=recursive | |
1174 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1175 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1176 | echo |
1177 | $ac_configure --help | |
1178 | else | |
1179 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1180 | fi | |
4d4ff94c | 1181 | cd "$ac_popdir" |
a848cd7e SC |
1182 | done |
1183 | fi | |
1184 | ||
1185 | test -n "$ac_init_help" && exit 0 | |
1186 | if $ac_init_version; then | |
1187 | cat <<\_ACEOF | |
77ffb593 | 1188 | wxWidgets configure 2.5.2 |
ac1cb8d3 | 1189 | generated by GNU Autoconf 2.59 |
a848cd7e | 1190 | |
ac1cb8d3 | 1191 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1192 | This configure script is free software; the Free Software Foundation |
1193 | gives unlimited permission to copy, distribute and modify it. | |
1194 | _ACEOF | |
1195 | exit 0 | |
1196 | fi | |
1197 | exec 5>config.log | |
1198 | cat >&5 <<_ACEOF | |
1199 | This file contains any messages produced by compilers while | |
1200 | running configure, to aid debugging if configure makes a mistake. | |
1201 | ||
77ffb593 | 1202 | It was created by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 1203 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1204 | |
1205 | $ $0 $@ | |
1206 | ||
1207 | _ACEOF | |
1208 | { | |
1209 | cat <<_ASUNAME | |
1210 | ## --------- ## | |
1211 | ## Platform. ## | |
1212 | ## --------- ## | |
1213 | ||
1214 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1215 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1216 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1217 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1218 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1219 | ||
1220 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1221 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1222 | ||
1223 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1224 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1225 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1226 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1227 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1228 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1229 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1230 | ||
1231 | _ASUNAME | |
1232 | ||
1233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1234 | for as_dir in $PATH | |
1235 | do | |
1236 | IFS=$as_save_IFS | |
1237 | test -z "$as_dir" && as_dir=. | |
1238 | echo "PATH: $as_dir" | |
1239 | done | |
1240 | ||
1241 | } >&5 | |
1242 | ||
1243 | cat >&5 <<_ACEOF | |
1244 | ||
1245 | ||
1246 | ## ----------- ## | |
1247 | ## Core tests. ## | |
1248 | ## ----------- ## | |
1249 | ||
1250 | _ACEOF | |
1251 | ||
1252 | ||
1253 | # Keep a trace of the command line. | |
1254 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1255 | # Strip out --silent because we don't want to record it for future runs. | |
1256 | # Also quote any args containing shell meta-characters. | |
1257 | # Make two passes to allow for proper duplicate-argument suppression. | |
1258 | ac_configure_args= | |
1259 | ac_configure_args0= | |
1260 | ac_configure_args1= | |
1261 | ac_sep= | |
1262 | ac_must_keep_next=false | |
1263 | for ac_pass in 1 2 | |
1264 | do | |
1265 | for ac_arg | |
1266 | do | |
1267 | case $ac_arg in | |
1268 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1269 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1270 | | -silent | --silent | --silen | --sile | --sil) | |
1271 | continue ;; | |
1272 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1273 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1274 | esac | |
1275 | case $ac_pass in | |
1276 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1277 | 2) | |
1278 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1279 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1280 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1281 | else |
ac1cb8d3 VS |
1282 | case $ac_arg in |
1283 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1284 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1285 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1286 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1287 | case "$ac_configure_args0 " in | |
1288 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1289 | esac | |
1290 | ;; | |
1291 | -* ) ac_must_keep_next=true ;; | |
1292 | esac | |
a848cd7e SC |
1293 | fi |
1294 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1295 | # Get rid of the leading space. | |
1296 | ac_sep=" " | |
1297 | ;; | |
1298 | esac | |
1299 | done | |
1300 | done | |
1301 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1302 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1303 | ||
1304 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1305 | # config.log. We remove comments because anyway the quotes in there | |
1306 | # would cause problems or look ugly. | |
1307 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1308 | # such as our DU 5.0 friend, will then `close' the trap. | |
1309 | trap 'exit_status=$? | |
1310 | # Save into config.log some information that might help in debugging. | |
1311 | { | |
1312 | echo | |
1313 | ||
1314 | cat <<\_ASBOX | |
1315 | ## ---------------- ## | |
1316 | ## Cache variables. ## | |
1317 | ## ---------------- ## | |
1318 | _ASBOX | |
1319 | echo | |
1320 | # The following way of writing the cache mishandles newlines in values, | |
1321 | { | |
1322 | (set) 2>&1 | | |
1323 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1324 | *ac_space=\ *) | |
1325 | sed -n \ | |
ac1cb8d3 VS |
1326 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1327 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1328 | ;; |
1329 | *) | |
1330 | sed -n \ | |
ac1cb8d3 | 1331 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1332 | ;; |
1333 | esac; | |
1334 | } | |
1335 | echo | |
1336 | ||
1337 | cat <<\_ASBOX | |
1338 | ## ----------------- ## | |
1339 | ## Output variables. ## | |
1340 | ## ----------------- ## | |
1341 | _ASBOX | |
1342 | echo | |
1343 | for ac_var in $ac_subst_vars | |
1344 | do | |
1345 | eval ac_val=$`echo $ac_var` | |
1346 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1347 | done | sort | |
1348 | echo | |
1349 | ||
1350 | if test -n "$ac_subst_files"; then | |
1351 | cat <<\_ASBOX | |
1352 | ## ------------- ## | |
1353 | ## Output files. ## | |
1354 | ## ------------- ## | |
1355 | _ASBOX | |
1356 | echo | |
1357 | for ac_var in $ac_subst_files | |
1358 | do | |
1359 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1360 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1361 | done | sort |
1362 | echo | |
1363 | fi | |
1364 | ||
1365 | if test -s confdefs.h; then | |
1366 | cat <<\_ASBOX | |
1367 | ## ----------- ## | |
1368 | ## confdefs.h. ## | |
1369 | ## ----------- ## | |
1370 | _ASBOX | |
1371 | echo | |
1372 | sed "/^$/d" confdefs.h | sort | |
1373 | echo | |
1374 | fi | |
1375 | test "$ac_signal" != 0 && | |
1376 | echo "$as_me: caught signal $ac_signal" | |
1377 | echo "$as_me: exit $exit_status" | |
1378 | } >&5 | |
ac1cb8d3 | 1379 | rm -f core *.core && |
a848cd7e SC |
1380 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1381 | exit $exit_status | |
1382 | ' 0 | |
1383 | for ac_signal in 1 2 13 15; do | |
1384 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1385 | done | |
1386 | ac_signal=0 | |
1387 | ||
1388 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1389 | rm -rf conftest* confdefs.h | |
1390 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1391 | echo >confdefs.h | |
1392 | ||
1393 | # Predefined preprocessor variables. | |
1394 | ||
1395 | cat >>confdefs.h <<_ACEOF | |
1396 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1397 | _ACEOF | |
1398 | ||
1399 | ||
1400 | cat >>confdefs.h <<_ACEOF | |
1401 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1402 | _ACEOF | |
1403 | ||
1404 | ||
1405 | cat >>confdefs.h <<_ACEOF | |
1406 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1407 | _ACEOF | |
1408 | ||
1409 | ||
1410 | cat >>confdefs.h <<_ACEOF | |
1411 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1412 | _ACEOF | |
1413 | ||
1414 | ||
1415 | cat >>confdefs.h <<_ACEOF | |
1416 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1417 | _ACEOF | |
1418 | ||
1419 | ||
1420 | # Let the site file select an alternate cache file if it wants to. | |
1421 | # Prefer explicitly selected file to automatically selected ones. | |
1422 | if test -z "$CONFIG_SITE"; then | |
1423 | if test "x$prefix" != xNONE; then | |
1424 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1425 | else | |
1426 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1427 | fi | |
1428 | fi | |
1429 | for ac_site_file in $CONFIG_SITE; do | |
1430 | if test -r "$ac_site_file"; then | |
1431 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1432 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1433 | sed 's/^/| /' "$ac_site_file" >&5 | |
1434 | . "$ac_site_file" | |
1435 | fi | |
1436 | done | |
1437 | ||
1438 | if test -r "$cache_file"; then | |
1439 | # Some versions of bash will fail to source /dev/null (special | |
1440 | # files actually), so we avoid doing that. | |
1441 | if test -f "$cache_file"; then | |
1442 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1443 | echo "$as_me: loading cache $cache_file" >&6;} | |
1444 | case $cache_file in | |
1445 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1446 | *) . ./$cache_file;; | |
1447 | esac | |
1448 | fi | |
1449 | else | |
1450 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1451 | echo "$as_me: creating cache $cache_file" >&6;} | |
1452 | >$cache_file | |
1453 | fi | |
1454 | ||
1455 | # Check that the precious variables saved in the cache have kept the same | |
1456 | # value. | |
1457 | ac_cache_corrupted=false | |
1458 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1459 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1460 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1461 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1462 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1463 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1464 | case $ac_old_set,$ac_new_set in | |
1465 | set,) | |
1466 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1467 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1468 | ac_cache_corrupted=: ;; | |
1469 | ,set) | |
1470 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1471 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1472 | ac_cache_corrupted=: ;; | |
1473 | ,);; | |
1474 | *) | |
1475 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1476 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1477 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1478 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1479 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1480 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1481 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1482 | ac_cache_corrupted=: |
a848cd7e SC |
1483 | fi;; |
1484 | esac | |
1485 | # Pass precious variables to config.status. | |
1486 | if test "$ac_new_set" = set; then | |
1487 | case $ac_new_val in | |
1488 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1489 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1490 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1491 | esac | |
1492 | case " $ac_configure_args " in | |
1493 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1494 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1495 | esac | |
1496 | fi | |
1497 | done | |
1498 | if $ac_cache_corrupted; then | |
1499 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1500 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1501 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1502 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1503 | { (exit 1); exit 1; }; } | |
1504 | fi | |
1505 | ||
1506 | ac_ext=c | |
1507 | ac_cpp='$CPP $CPPFLAGS' | |
1508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
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 | ||
1541 | ac_aux_dir= | |
1542 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1543 | if test -f $ac_dir/install-sh; then | |
1544 | ac_aux_dir=$ac_dir | |
1545 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1546 | break | |
1547 | elif test -f $ac_dir/install.sh; then | |
1548 | ac_aux_dir=$ac_dir | |
1549 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1550 | break | |
1551 | elif test -f $ac_dir/shtool; then | |
1552 | ac_aux_dir=$ac_dir | |
1553 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1554 | break | |
1555 | fi | |
1556 | done | |
1557 | if test -z "$ac_aux_dir"; then | |
1558 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1559 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1560 | { (exit 1); exit 1; }; } | |
1561 | fi | |
1562 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1563 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1564 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1565 | ||
1566 | # Make sure we can run config.sub. | |
1567 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1568 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1569 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1570 | { (exit 1); exit 1; }; } | |
1571 | ||
1572 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1573 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1574 | if test "${ac_cv_build+set}" = set; then | |
1575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1576 | else | |
1577 | ac_cv_build_alias=$build_alias | |
1578 | test -z "$ac_cv_build_alias" && | |
1579 | ac_cv_build_alias=`$ac_config_guess` | |
1580 | test -z "$ac_cv_build_alias" && | |
1581 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1582 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1583 | { (exit 1); exit 1; }; } | |
1584 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1585 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1586 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1587 | { (exit 1); exit 1; }; } | |
1588 | ||
1589 | fi | |
1590 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1591 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1592 | build=$ac_cv_build | |
1593 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1594 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1595 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1596 | ||
1597 | ||
1598 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1599 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1600 | if test "${ac_cv_host+set}" = set; then | |
1601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1602 | else | |
1603 | ac_cv_host_alias=$host_alias | |
1604 | test -z "$ac_cv_host_alias" && | |
1605 | ac_cv_host_alias=$ac_cv_build_alias | |
1606 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1607 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1608 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1609 | { (exit 1); exit 1; }; } | |
1610 | ||
1611 | fi | |
1612 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1613 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1614 | host=$ac_cv_host | |
1615 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1616 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1617 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1618 | ||
1619 | ||
1620 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1621 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1622 | if test "${ac_cv_target+set}" = set; then | |
1623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1624 | else | |
1625 | ac_cv_target_alias=$target_alias | |
1626 | test "x$ac_cv_target_alias" = "x" && | |
1627 | ac_cv_target_alias=$ac_cv_host_alias | |
1628 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1629 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1630 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1631 | { (exit 1); exit 1; }; } | |
1632 | ||
1633 | fi | |
1634 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1635 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1636 | target=$ac_cv_target | |
1637 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1638 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1639 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1640 | ||
1641 | ||
1642 | # The aliases save the names the user supplied, while $host etc. | |
1643 | # will get canonicalized. | |
1644 | test -n "$target_alias" && | |
1645 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1646 | NONENONEs,x,x, && | |
1647 | program_prefix=${target_alias}- | |
1648 | ||
1649 | ||
1650 | ||
1651 | WX_MAJOR_VERSION_NUMBER=2 | |
1652 | WX_MINOR_VERSION_NUMBER=5 | |
de59c161 | 1653 | WX_RELEASE_NUMBER=2 |
224bf05c | 1654 | WX_SUBRELEASE_NUMBER=3 |
a848cd7e SC |
1655 | |
1656 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1657 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1658 | ||
1659 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1660 | ||
de59c161 | 1661 | WX_CURRENT=2 |
a848cd7e SC |
1662 | WX_REVISION=0 |
1663 | WX_AGE=0 | |
1664 | ||
1665 | ||
1666 | ||
1667 | USE_UNIX=1 | |
1668 | USE_OS2=0 | |
1669 | USE_WIN32=0 | |
1670 | USE_DOS=0 | |
1671 | USE_BEOS=0 | |
1672 | USE_MAC=0 | |
1673 | ||
1674 | USE_AIX= | |
1675 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1676 | USE_GNU= USE_HPUX= | |
1677 | USE_LINUX= | |
1678 | USE_NETBSD= | |
1679 | USE_OPENBSD= | |
1680 | USE_OSF= USE_SGI= | |
1681 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1682 | USE_ULTRIX= | |
1683 | USE_UNIXWARE= | |
1684 | ||
1685 | USE_ALPHA= | |
1686 | ||
1687 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1688 | ||
1689 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1690 | ||
1691 | DEFAULT_wxUSE_COCOA=0 | |
1692 | DEFAULT_wxUSE_GTK=0 | |
1693 | DEFAULT_wxUSE_MAC=0 | |
1694 | DEFAULT_wxUSE_MGL=0 | |
1695 | DEFAULT_wxUSE_MICROWIN=0 | |
1696 | DEFAULT_wxUSE_MOTIF=0 | |
1697 | DEFAULT_wxUSE_MSW=0 | |
1698 | DEFAULT_wxUSE_PM=0 | |
1699 | DEFAULT_wxUSE_X11=0 | |
1700 | ||
1701 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1702 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1703 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1704 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1705 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1706 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1710 | ||
1711 | PROGRAM_EXT= | |
1712 | SO_SUFFIX=so | |
1713 | SAMPLES_RPATH_FLAG= | |
1714 | SAMPLES_RPATH_POSTLINK= | |
1715 | ||
1716 | case "${host}" in | |
1717 | *-hp-hpux* ) | |
1718 | USE_HPUX=1 | |
1719 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1720 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1721 | SO_SUFFIX=sl | |
1722 | cat >>confdefs.h <<\_ACEOF | |
1723 | #define __HPUX__ 1 | |
1724 | _ACEOF | |
1725 | ||
1726 | ;; | |
1727 | *-*-linux* ) | |
1728 | USE_LINUX=1 | |
1729 | cat >>confdefs.h <<\_ACEOF | |
1730 | #define __LINUX__ 1 | |
1731 | _ACEOF | |
1732 | ||
1733 | TMP=`uname -m` | |
1734 | if test "x$TMP" = "xalpha"; then | |
1735 | USE_ALPHA=1 | |
1736 | cat >>confdefs.h <<\_ACEOF | |
1737 | #define __ALPHA__ 1 | |
1738 | _ACEOF | |
1739 | ||
1740 | fi | |
1741 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1742 | ;; | |
1743 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1744 | USE_GNU=1 | |
1745 | TMP=`uname -m` | |
1746 | if test "x$TMP" = "xalpha"; then | |
1747 | USE_ALPHA=1 | |
1748 | cat >>confdefs.h <<\_ACEOF | |
1749 | #define __ALPHA__ 1 | |
1750 | _ACEOF | |
1751 | ||
1752 | fi | |
1753 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1754 | ;; | |
1755 | *-*-irix5* | *-*-irix6* ) | |
1756 | USE_SGI=1 | |
1757 | USE_SVR4=1 | |
1758 | cat >>confdefs.h <<\_ACEOF | |
1759 | #define __SGI__ 1 | |
1760 | _ACEOF | |
1761 | ||
1762 | cat >>confdefs.h <<\_ACEOF | |
1763 | #define __SVR4__ 1 | |
1764 | _ACEOF | |
1765 | ||
1766 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1767 | ;; | |
1768 | *-*-solaris2* ) | |
1769 | USE_SUN=1 | |
1770 | USE_SOLARIS=1 | |
1771 | USE_SVR4=1 | |
1772 | cat >>confdefs.h <<\_ACEOF | |
1773 | #define __SUN__ 1 | |
1774 | _ACEOF | |
1775 | ||
1776 | cat >>confdefs.h <<\_ACEOF | |
1777 | #define __SOLARIS__ 1 | |
1778 | _ACEOF | |
1779 | ||
1780 | cat >>confdefs.h <<\_ACEOF | |
1781 | #define __SVR4__ 1 | |
1782 | _ACEOF | |
1783 | ||
1784 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1785 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1786 | ;; | |
1787 | *-*-sunos4* ) | |
1788 | USE_SUN=1 | |
1789 | USE_SUNOS=1 | |
1790 | USE_BSD=1 | |
1791 | cat >>confdefs.h <<\_ACEOF | |
1792 | #define __SUN__ 1 | |
1793 | _ACEOF | |
1794 | ||
1795 | cat >>confdefs.h <<\_ACEOF | |
1796 | #define __SUNOS__ 1 | |
1797 | _ACEOF | |
1798 | ||
1799 | cat >>confdefs.h <<\_ACEOF | |
1800 | #define __BSD__ 1 | |
1801 | _ACEOF | |
1802 | ||
1803 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1804 | ;; | |
1805 | *-*-freebsd*) | |
1806 | USE_BSD=1 | |
1807 | USE_FREEBSD=1 | |
1808 | cat >>confdefs.h <<\_ACEOF | |
1809 | #define __FREEBSD__ 1 | |
1810 | _ACEOF | |
1811 | ||
1812 | cat >>confdefs.h <<\_ACEOF | |
1813 | #define __BSD__ 1 | |
1814 | _ACEOF | |
1815 | ||
1816 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1817 | ;; | |
1818 | *-*-openbsd*) | |
1819 | USE_BSD=1 | |
1820 | USE_OPENBSD=1 | |
1821 | cat >>confdefs.h <<\_ACEOF | |
1822 | #define __OPENBSD__ 1 | |
1823 | _ACEOF | |
1824 | ||
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __BSD__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1830 | ;; | |
1831 | *-*-netbsd*) | |
1832 | USE_BSD=1 | |
1833 | USE_NETBSD=1 | |
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __NETBSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __BSD__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1843 | ;; | |
1844 | *-*-osf* ) | |
1845 | USE_ALPHA=1 | |
1846 | USE_OSF=1 | |
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __ALPHA__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | cat >>confdefs.h <<\_ACEOF | |
1852 | #define __OSF__ 1 | |
1853 | _ACEOF | |
1854 | ||
1855 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1856 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1857 | ;; | |
1858 | *-*-dgux5* ) | |
1859 | USE_ALPHA=1 | |
1860 | USE_SVR4=1 | |
1861 | cat >>confdefs.h <<\_ACEOF | |
1862 | #define __ALPHA__ 1 | |
1863 | _ACEOF | |
1864 | ||
1865 | cat >>confdefs.h <<\_ACEOF | |
1866 | #define __SVR4__ 1 | |
1867 | _ACEOF | |
1868 | ||
1869 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1870 | ;; | |
1871 | *-*-sysv5* ) | |
1872 | USE_SYSV=1 | |
1873 | USE_SVR4=1 | |
1874 | cat >>confdefs.h <<\_ACEOF | |
1875 | #define __SYSV__ 1 | |
1876 | _ACEOF | |
1877 | ||
1878 | cat >>confdefs.h <<\_ACEOF | |
1879 | #define __SVR4__ 1 | |
1880 | _ACEOF | |
1881 | ||
1882 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1883 | ;; | |
1884 | *-*-aix* ) | |
1885 | USE_AIX=1 | |
1886 | USE_SYSV=1 | |
1887 | USE_SVR4=1 | |
1888 | SO_SUFFIX=a | |
1889 | cat >>confdefs.h <<\_ACEOF | |
1890 | #define __AIX__ 1 | |
1891 | _ACEOF | |
1892 | ||
1893 | cat >>confdefs.h <<\_ACEOF | |
1894 | #define __SYSV__ 1 | |
1895 | _ACEOF | |
1896 | ||
1897 | cat >>confdefs.h <<\_ACEOF | |
1898 | #define __SVR4__ 1 | |
1899 | _ACEOF | |
1900 | ||
1901 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1902 | ;; | |
1903 | ||
1904 | *-*-*UnixWare*) | |
1905 | USE_SYSV=1 | |
1906 | USE_SVR4=1 | |
1907 | USE_UNIXWARE=1 | |
1908 | cat >>confdefs.h <<\_ACEOF | |
1909 | #define __UNIXWARE__ 1 | |
1910 | _ACEOF | |
1911 | ||
1912 | ;; | |
1913 | ||
1914 | *-*-cygwin* | *-*-mingw32* ) | |
1915 | SO_SUFFIX=dll | |
1916 | PROGRAM_EXT=".exe" | |
1917 | RESCOMP=windres | |
1918 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1919 | ;; | |
1920 | ||
1921 | *-pc-msdosdjgpp ) | |
1922 | USE_UNIX=0 | |
1923 | USE_DOS=1 | |
1924 | cat >>confdefs.h <<\_ACEOF | |
1925 | #define __DOS__ 1 | |
1926 | _ACEOF | |
1927 | ||
1928 | PROGRAM_EXT=".exe" | |
1929 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1930 | LIBS="$LIBS -lstdc++" | |
1931 | ;; | |
1932 | ||
1933 | *-pc-os2_emx | *-pc-os2-emx ) | |
1934 | cat >>confdefs.h <<\_ACEOF | |
1935 | #define __EMX__ 1 | |
1936 | _ACEOF | |
1937 | ||
1938 | USE_OS2=1 | |
1939 | cat >>confdefs.h <<\_ACEOF | |
1940 | #define __OS2__ 1 | |
1941 | _ACEOF | |
1942 | ||
1943 | PROGRAM_EXT=".exe" | |
1944 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1945 | CXX=gcc | |
1946 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1947 | ac_executable_extensions=".exe" | |
1948 | export ac_executable_extensions | |
1949 | ac_save_IFS="$IFS" | |
1950 | IFS='\\' | |
1951 | ac_TEMP_PATH= | |
1952 | for ac_dir in $PATH; do | |
1953 | IFS=$ac_save_IFS | |
1954 | if test -z "$ac_TEMP_PATH"; then | |
1955 | ac_TEMP_PATH="$ac_dir" | |
1956 | else | |
1957 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1958 | fi | |
1959 | done | |
1960 | export PATH="$ac_TEMP_PATH" | |
1961 | unset ac_TEMP_PATH | |
1962 | ;; | |
1963 | ||
1964 | powerpc-*-darwin* ) | |
1965 | USE_BSD=1 | |
1966 | USE_DARWIN=1 | |
1967 | SO_SUFFIX=dylib | |
1968 | cat >>confdefs.h <<\_ACEOF | |
1969 | #define __BSD__ 1 | |
1970 | _ACEOF | |
1971 | ||
1972 | cat >>confdefs.h <<\_ACEOF | |
1973 | #define __DARWIN__ 1 | |
1974 | _ACEOF | |
1975 | ||
1976 | cat >>confdefs.h <<\_ACEOF | |
1977 | #define __POWERPC__ 1 | |
1978 | _ACEOF | |
1979 | ||
1980 | cat >>confdefs.h <<\_ACEOF | |
1981 | #define TARGET_CARBON 1 | |
1982 | _ACEOF | |
1983 | ||
1984 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1985 | ;; | |
1986 | ||
1987 | *-*-beos* ) | |
1988 | USE_BEOS=1 | |
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define __BEOS__ 1 | |
1991 | _ACEOF | |
1992 | ||
1993 | ;; | |
1994 | ||
1995 | *) | |
1996 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
1997 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1998 | { (exit 1); exit 1; }; } | |
1999 | esac | |
2000 | ||
2001 | ||
2002 | ||
2003 | ||
2004 | wx_arg_cache_file="configarg.cache" | |
2005 | echo "loading argument cache $wx_arg_cache_file" | |
2006 | rm -f ${wx_arg_cache_file}.tmp | |
2007 | touch ${wx_arg_cache_file}.tmp | |
2008 | touch ${wx_arg_cache_file} | |
2009 | ||
2010 | ||
2011 | DEBUG_CONFIGURE=0 | |
2012 | if test $DEBUG_CONFIGURE = 1; then | |
2013 | DEFAULT_wxUSE_UNIVERSAL=no | |
2014 | DEFAULT_wxUSE_STL=no | |
2015 | ||
2016 | DEFAULT_wxUSE_NANOX=no | |
2017 | ||
2018 | DEFAULT_wxUSE_THREADS=yes | |
2019 | ||
2020 | DEFAULT_wxUSE_SHARED=yes | |
2021 | DEFAULT_wxUSE_OPTIMISE=no | |
2022 | DEFAULT_wxUSE_PROFILE=no | |
2023 | DEFAULT_wxUSE_NO_DEPS=no | |
2024 | DEFAULT_wxUSE_NO_RTTI=no | |
2025 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2026 | DEFAULT_wxUSE_PERMISSIVE=no | |
2027 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2028 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2029 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2030 | DEFAULT_wxUSE_MEM_TRACING=no | |
2031 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2032 | DEFAULT_wxUSE_DMALLOC=no | |
2033 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2034 | ||
2035 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2036 | DEFAULT_wxUSE_LOG=yes | |
2037 | DEFAULT_wxUSE_LOGWINDOW=no | |
2038 | DEFAULT_wxUSE_LOGGUI=no | |
2039 | DEFAULT_wxUSE_LOGDIALOG=no | |
2040 | ||
2041 | DEFAULT_wxUSE_GUI=yes | |
2042 | DEFAULT_wxUSE_CONTROLS=no | |
2043 | ||
2044 | DEFAULT_wxUSE_REGEX=no | |
2045 | DEFAULT_wxUSE_XML=no | |
2046 | DEFAULT_wxUSE_EXPAT=no | |
2047 | DEFAULT_wxUSE_ZLIB=no | |
2048 | DEFAULT_wxUSE_LIBPNG=no | |
2049 | DEFAULT_wxUSE_LIBJPEG=no | |
2050 | DEFAULT_wxUSE_LIBTIFF=no | |
2051 | DEFAULT_wxUSE_LIBXPM=no | |
2052 | DEFAULT_wxUSE_LIBMSPACK=no | |
2053 | DEFAULT_wxUSE_LIBSDL=no | |
2054 | DEFAULT_wxUSE_ODBC=no | |
2055 | DEFAULT_wxUSE_OPENGL=no | |
2056 | ||
2057 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2058 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2059 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2060 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2061 | DEFAULT_wxUSE_DATETIME=no | |
2062 | DEFAULT_wxUSE_TIMER=no | |
2063 | DEFAULT_wxUSE_STOPWATCH=no | |
2064 | DEFAULT_wxUSE_FILE=no | |
2065 | DEFAULT_wxUSE_FFILE=no | |
2066 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2067 | DEFAULT_wxUSE_TEXTFILE=no | |
2068 | DEFAULT_wxUSE_SOUND=no | |
2069 | DEFAULT_wxUSE_INTL=no | |
2070 | DEFAULT_wxUSE_CONFIG=no | |
2071 | DEFAULT_wxUSE_FONTMAP=no | |
2072 | DEFAULT_wxUSE_STREAMS=no | |
2073 | DEFAULT_wxUSE_SOCKETS=no | |
2074 | DEFAULT_wxUSE_OLE=no | |
2075 | DEFAULT_wxUSE_DATAOBJ=no | |
2076 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2077 | DEFAULT_wxUSE_JOYSTICK=no | |
2078 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2079 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2080 | DEFAULT_wxUSE_LONGLONG=no | |
2081 | DEFAULT_wxUSE_GEOMETRY=no | |
2082 | ||
2083 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2084 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2085 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2086 | ||
2087 | DEFAULT_wxUSE_CLIPBOARD=no | |
2088 | DEFAULT_wxUSE_TOOLTIPS=no | |
2089 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2090 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2091 | DEFAULT_wxUSE_SPLINES=no | |
2092 | ||
8a7b1113 | 2093 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2094 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2095 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2096 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2097 | ||
2098 | DEFAULT_wxUSE_RESOURCES=no | |
2099 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2100 | DEFAULT_wxUSE_IPC=no | |
2101 | DEFAULT_wxUSE_HELP=no | |
2102 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2103 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2104 | DEFAULT_wxUSE_TREELAYOUT=no | |
2105 | DEFAULT_wxUSE_METAFILE=no | |
2106 | DEFAULT_wxUSE_MIMETYPE=no | |
2107 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2108 | DEFAULT_wxUSE_PROTOCOL=no | |
2109 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2110 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2111 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2112 | DEFAULT_wxUSE_URL=no | |
2113 | ||
2114 | DEFAULT_wxUSE_COMMONDLGS=no | |
2115 | DEFAULT_wxUSE_CHOICEDLG=no | |
2116 | DEFAULT_wxUSE_COLOURDLG=no | |
2117 | DEFAULT_wxUSE_DIRDLG=no | |
2118 | DEFAULT_wxUSE_FILEDLG=no | |
2119 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2120 | DEFAULT_wxUSE_FONTDLG=no | |
2121 | DEFAULT_wxUSE_MSGDLG=no | |
2122 | DEFAULT_wxUSE_NUMBERDLG=no | |
2123 | DEFAULT_wxUSE_TEXTDLG=no | |
2124 | DEFAULT_wxUSE_SPLASH=no | |
2125 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2126 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2127 | DEFAULT_wxUSE_WIZARDDLG=no | |
2128 | ||
2129 | DEFAULT_wxUSE_MENUS=no | |
2130 | DEFAULT_wxUSE_MINIFRAME=no | |
2131 | DEFAULT_wxUSE_HTML=no | |
646b6ec1 | 2132 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2133 | DEFAULT_wxUSE_FILESYSTEM=no |
2134 | DEFAULT_wxUSE_FS_INET=no | |
2135 | DEFAULT_wxUSE_FS_ZIP=no | |
2136 | DEFAULT_wxUSE_BUSYINFO=no | |
2137 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2138 | DEFAULT_wxUSE_VALIDATORS=no |
2139 | ||
2140 | DEFAULT_wxUSE_ACCEL=no | |
2141 | DEFAULT_wxUSE_BUTTON=no | |
2142 | DEFAULT_wxUSE_BMPBUTTON=no | |
2143 | DEFAULT_wxUSE_CALCTRL=no | |
2144 | DEFAULT_wxUSE_CARET=no | |
2145 | DEFAULT_wxUSE_CHECKBOX=no | |
2146 | DEFAULT_wxUSE_CHECKLST=no | |
2147 | DEFAULT_wxUSE_CHOICE=no | |
2148 | DEFAULT_wxUSE_COMBOBOX=no | |
2149 | DEFAULT_wxUSE_DISPLAY=no | |
2150 | DEFAULT_wxUSE_GAUGE=no | |
2151 | DEFAULT_wxUSE_GRID=no | |
2152 | DEFAULT_wxUSE_IMAGLIST=no | |
2153 | DEFAULT_wxUSE_LISTBOOK=no | |
2154 | DEFAULT_wxUSE_LISTBOX=no | |
2155 | DEFAULT_wxUSE_LISTCTRL=no | |
2156 | DEFAULT_wxUSE_NOTEBOOK=no | |
2157 | DEFAULT_wxUSE_RADIOBOX=no | |
2158 | DEFAULT_wxUSE_RADIOBTN=no | |
2159 | DEFAULT_wxUSE_SASH=no | |
2160 | DEFAULT_wxUSE_SCROLLBAR=no | |
2161 | DEFAULT_wxUSE_SLIDER=no | |
2162 | DEFAULT_wxUSE_SPINBTN=no | |
2163 | DEFAULT_wxUSE_SPINCTRL=no | |
2164 | DEFAULT_wxUSE_SPLITTER=no | |
2165 | DEFAULT_wxUSE_STATBMP=no | |
2166 | DEFAULT_wxUSE_STATBOX=no | |
2167 | DEFAULT_wxUSE_STATLINE=no | |
2168 | DEFAULT_wxUSE_STATTEXT=no | |
2169 | DEFAULT_wxUSE_STATUSBAR=yes | |
2170 | DEFAULT_wxUSE_TABDIALOG=no | |
2171 | DEFAULT_wxUSE_TEXTCTRL=no | |
2172 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2173 | DEFAULT_wxUSE_TOOLBAR=no | |
2174 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2175 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2176 | DEFAULT_wxUSE_TREECTRL=no | |
2177 | DEFAULT_wxUSE_POPUPWIN=no | |
2178 | DEFAULT_wxUSE_TIPWINDOW=no | |
2179 | ||
2180 | DEFAULT_wxUSE_UNICODE=no | |
2181 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2182 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2183 | ||
2184 | DEFAULT_wxUSE_PALETTE=no | |
2185 | DEFAULT_wxUSE_IMAGE=no | |
2186 | DEFAULT_wxUSE_GIF=no | |
2187 | DEFAULT_wxUSE_PCX=no | |
2188 | DEFAULT_wxUSE_PNM=no | |
2189 | DEFAULT_wxUSE_IFF=no | |
2190 | DEFAULT_wxUSE_XPM=no | |
2191 | DEFAULT_wxUSE_ICO_CUR=no | |
2192 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2193 | ||
2194 | DEFAULT_wxUSE_MONOLITHIC=no | |
2195 | DEFAULT_wxUSE_PLUGINS=no | |
2196 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2197 | else | |
2198 | DEFAULT_wxUSE_UNIVERSAL=no | |
2199 | DEFAULT_wxUSE_STL=no | |
2200 | ||
2201 | DEFAULT_wxUSE_NANOX=no | |
2202 | ||
2203 | DEFAULT_wxUSE_THREADS=yes | |
2204 | ||
2205 | DEFAULT_wxUSE_SHARED=yes | |
2206 | DEFAULT_wxUSE_OPTIMISE=yes | |
2207 | DEFAULT_wxUSE_PROFILE=no | |
2208 | DEFAULT_wxUSE_NO_DEPS=no | |
2209 | DEFAULT_wxUSE_NO_RTTI=no | |
2210 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2211 | DEFAULT_wxUSE_PERMISSIVE=no | |
2212 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2213 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2214 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2215 | DEFAULT_wxUSE_MEM_TRACING=no | |
2216 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2217 | DEFAULT_wxUSE_DMALLOC=no | |
2218 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2219 | ||
2220 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2221 | DEFAULT_wxUSE_LOG=yes | |
2222 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2223 | DEFAULT_wxUSE_LOGGUI=yes | |
2224 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2225 | ||
2226 | DEFAULT_wxUSE_GUI=yes | |
2227 | ||
2228 | DEFAULT_wxUSE_REGEX=yes | |
2229 | DEFAULT_wxUSE_XML=yes | |
2230 | DEFAULT_wxUSE_EXPAT=yes | |
2231 | DEFAULT_wxUSE_ZLIB=yes | |
2232 | DEFAULT_wxUSE_LIBPNG=yes | |
2233 | DEFAULT_wxUSE_LIBJPEG=yes | |
2234 | DEFAULT_wxUSE_LIBTIFF=yes | |
2235 | DEFAULT_wxUSE_LIBXPM=yes | |
2236 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2237 | DEFAULT_wxUSE_LIBSDL=no | |
2238 | DEFAULT_wxUSE_ODBC=no | |
2239 | DEFAULT_wxUSE_OPENGL=no | |
2240 | ||
2241 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2242 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2243 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2244 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2245 | DEFAULT_wxUSE_DATETIME=yes | |
2246 | DEFAULT_wxUSE_TIMER=yes | |
2247 | DEFAULT_wxUSE_STOPWATCH=yes | |
2248 | DEFAULT_wxUSE_FILE=yes | |
2249 | DEFAULT_wxUSE_FFILE=yes | |
2250 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2251 | DEFAULT_wxUSE_TEXTFILE=yes | |
2252 | DEFAULT_wxUSE_SOUND=yes | |
2253 | DEFAULT_wxUSE_INTL=yes | |
2254 | DEFAULT_wxUSE_CONFIG=yes | |
2255 | DEFAULT_wxUSE_FONTMAP=yes | |
2256 | DEFAULT_wxUSE_STREAMS=yes | |
2257 | DEFAULT_wxUSE_SOCKETS=yes | |
2258 | DEFAULT_wxUSE_OLE=yes | |
2259 | DEFAULT_wxUSE_DATAOBJ=yes | |
2260 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2261 | DEFAULT_wxUSE_JOYSTICK=yes | |
2262 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2263 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2264 | DEFAULT_wxUSE_LONGLONG=yes | |
2265 | DEFAULT_wxUSE_GEOMETRY=yes | |
2266 | ||
2267 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2268 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2269 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2270 | ||
2271 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2272 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2273 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2274 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2275 | DEFAULT_wxUSE_SPLINES=yes | |
2276 | ||
8a7b1113 | 2277 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2278 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2279 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2280 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2281 | ||
2282 | DEFAULT_wxUSE_RESOURCES=no | |
2283 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2284 | DEFAULT_wxUSE_IPC=yes | |
2285 | DEFAULT_wxUSE_HELP=yes | |
2286 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2287 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2288 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2289 | DEFAULT_wxUSE_METAFILE=yes | |
2290 | DEFAULT_wxUSE_MIMETYPE=yes | |
2291 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2292 | DEFAULT_wxUSE_PROTOCOL=yes | |
2293 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2294 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2295 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2296 | DEFAULT_wxUSE_URL=yes | |
2297 | ||
2298 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2299 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2300 | DEFAULT_wxUSE_COLOURDLG=yes | |
2301 | DEFAULT_wxUSE_DIRDLG=yes | |
2302 | DEFAULT_wxUSE_FILEDLG=yes | |
2303 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2304 | DEFAULT_wxUSE_FONTDLG=yes | |
2305 | DEFAULT_wxUSE_MSGDLG=yes | |
2306 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2307 | DEFAULT_wxUSE_TEXTDLG=yes | |
2308 | DEFAULT_wxUSE_SPLASH=yes | |
2309 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2310 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2311 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2312 | ||
2313 | DEFAULT_wxUSE_MENUS=yes | |
2314 | DEFAULT_wxUSE_MINIFRAME=yes | |
2315 | DEFAULT_wxUSE_HTML=yes | |
646b6ec1 | 2316 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2317 | DEFAULT_wxUSE_FILESYSTEM=yes |
2318 | DEFAULT_wxUSE_FS_INET=yes | |
2319 | DEFAULT_wxUSE_FS_ZIP=yes | |
2320 | DEFAULT_wxUSE_BUSYINFO=yes | |
2321 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2322 | DEFAULT_wxUSE_VALIDATORS=yes |
2323 | ||
2324 | DEFAULT_wxUSE_ACCEL=yes | |
2325 | DEFAULT_wxUSE_BUTTON=yes | |
2326 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2327 | DEFAULT_wxUSE_CALCTRL=yes | |
2328 | DEFAULT_wxUSE_CARET=yes | |
2329 | DEFAULT_wxUSE_CHECKBOX=yes | |
2330 | DEFAULT_wxUSE_CHECKLST=yes | |
2331 | DEFAULT_wxUSE_CHOICE=yes | |
2332 | DEFAULT_wxUSE_COMBOBOX=yes | |
2333 | DEFAULT_wxUSE_DISPLAY=yes | |
2334 | DEFAULT_wxUSE_GAUGE=yes | |
2335 | DEFAULT_wxUSE_GRID=yes | |
2336 | DEFAULT_wxUSE_IMAGLIST=yes | |
2337 | DEFAULT_wxUSE_LISTBOOK=yes | |
2338 | DEFAULT_wxUSE_LISTBOX=yes | |
2339 | DEFAULT_wxUSE_LISTCTRL=yes | |
2340 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2341 | DEFAULT_wxUSE_RADIOBOX=yes | |
2342 | DEFAULT_wxUSE_RADIOBTN=yes | |
2343 | DEFAULT_wxUSE_SASH=yes | |
2344 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2345 | DEFAULT_wxUSE_SLIDER=yes | |
2346 | DEFAULT_wxUSE_SPINBTN=yes | |
2347 | DEFAULT_wxUSE_SPINCTRL=yes | |
2348 | DEFAULT_wxUSE_SPLITTER=yes | |
2349 | DEFAULT_wxUSE_STATBMP=yes | |
2350 | DEFAULT_wxUSE_STATBOX=yes | |
2351 | DEFAULT_wxUSE_STATLINE=yes | |
2352 | DEFAULT_wxUSE_STATTEXT=yes | |
2353 | DEFAULT_wxUSE_STATUSBAR=yes | |
2354 | DEFAULT_wxUSE_TABDIALOG=no | |
2355 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2356 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2357 | DEFAULT_wxUSE_TOOLBAR=yes | |
2358 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2359 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2360 | DEFAULT_wxUSE_TREECTRL=yes | |
2361 | DEFAULT_wxUSE_POPUPWIN=yes | |
2362 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2363 | ||
2364 | DEFAULT_wxUSE_UNICODE=no | |
2365 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2366 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2367 | ||
2368 | DEFAULT_wxUSE_PALETTE=yes | |
2369 | DEFAULT_wxUSE_IMAGE=yes | |
2370 | DEFAULT_wxUSE_GIF=yes | |
2371 | DEFAULT_wxUSE_PCX=yes | |
2372 | DEFAULT_wxUSE_IFF=no | |
2373 | DEFAULT_wxUSE_PNM=yes | |
2374 | DEFAULT_wxUSE_XPM=yes | |
2375 | DEFAULT_wxUSE_ICO_CUR=yes | |
2376 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2377 | ||
2378 | DEFAULT_wxUSE_MONOLITHIC=no | |
2379 | DEFAULT_wxUSE_PLUGINS=no | |
2380 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2381 | |
2382 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2383 | fi |
2384 | ||
2385 | ||
2386 | ||
2387 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2388 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2389 | if test "x$LINE" != "x" ; then | |
2390 | has_toolkit_in_cache=1 | |
2391 | eval "DEFAULT_$LINE" | |
2392 | eval "CACHE_$toolkit=1" | |
2393 | fi | |
2394 | done | |
2395 | ||
2396 | ||
2397 | ||
2398 | enablestring= | |
2399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2400 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2401 | no_cache=0 | |
2402 | # Check whether --enable-gui or --disable-gui was given. | |
2403 | if test "${enable_gui+set}" = set; then | |
2404 | enableval="$enable_gui" | |
2405 | ||
2406 | if test "$enableval" = yes; then | |
2407 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2408 | else | |
2409 | ac_cv_use_gui='wxUSE_GUI=no' | |
2410 | fi | |
2411 | ||
2412 | else | |
2413 | ||
2414 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2415 | if test "x$LINE" != x ; then | |
2416 | eval "DEFAULT_$LINE" | |
2417 | else | |
2418 | no_cache=1 | |
2419 | fi | |
2420 | ||
2421 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2422 | ||
2423 | fi; | |
2424 | ||
2425 | eval "$ac_cv_use_gui" | |
2426 | if test "$no_cache" != 1; then | |
2427 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2428 | fi | |
2429 | ||
2430 | if test "$wxUSE_GUI" = yes; then | |
2431 | echo "$as_me:$LINENO: result: yes" >&5 | |
2432 | echo "${ECHO_T}yes" >&6 | |
2433 | else | |
2434 | echo "$as_me:$LINENO: result: no" >&5 | |
2435 | echo "${ECHO_T}no" >&6 | |
2436 | fi | |
2437 | ||
2438 | ||
2439 | enablestring= | |
2440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2441 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2442 | no_cache=0 | |
2443 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2444 | if test "${enable_monolithic+set}" = set; then | |
2445 | enableval="$enable_monolithic" | |
2446 | ||
2447 | if test "$enableval" = yes; then | |
2448 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2449 | else | |
2450 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2451 | fi | |
2452 | ||
2453 | else | |
2454 | ||
2455 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2456 | if test "x$LINE" != x ; then | |
2457 | eval "DEFAULT_$LINE" | |
2458 | else | |
2459 | no_cache=1 | |
2460 | fi | |
2461 | ||
2462 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2463 | ||
2464 | fi; | |
2465 | ||
2466 | eval "$ac_cv_use_monolithic" | |
2467 | if test "$no_cache" != 1; then | |
2468 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2469 | fi | |
2470 | ||
2471 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2472 | echo "$as_me:$LINENO: result: yes" >&5 | |
2473 | echo "${ECHO_T}yes" >&6 | |
2474 | else | |
2475 | echo "$as_me:$LINENO: result: no" >&5 | |
2476 | echo "${ECHO_T}no" >&6 | |
2477 | fi | |
2478 | ||
2479 | ||
2480 | enablestring= | |
2481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2482 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2483 | no_cache=0 | |
2484 | # Check whether --enable-plugins or --disable-plugins was given. | |
2485 | if test "${enable_plugins+set}" = set; then | |
2486 | enableval="$enable_plugins" | |
2487 | ||
2488 | if test "$enableval" = yes; then | |
2489 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2490 | else | |
2491 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2492 | fi | |
2493 | ||
2494 | else | |
2495 | ||
2496 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2497 | if test "x$LINE" != x ; then | |
2498 | eval "DEFAULT_$LINE" | |
2499 | else | |
2500 | no_cache=1 | |
2501 | fi | |
2502 | ||
2503 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2504 | ||
2505 | fi; | |
2506 | ||
2507 | eval "$ac_cv_use_plugins" | |
2508 | if test "$no_cache" != 1; then | |
2509 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2510 | fi | |
2511 | ||
2512 | if test "$wxUSE_PLUGINS" = yes; then | |
2513 | echo "$as_me:$LINENO: result: yes" >&5 | |
2514 | echo "${ECHO_T}yes" >&6 | |
2515 | else | |
2516 | echo "$as_me:$LINENO: result: no" >&5 | |
2517 | echo "${ECHO_T}no" >&6 | |
2518 | fi | |
2519 | ||
2520 | ||
2521 | if test "$wxUSE_GUI" = "yes"; then | |
2522 | ||
2523 | ||
2524 | enablestring= | |
2525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2526 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2527 | no_cache=0 | |
2528 | # Check whether --enable-universal or --disable-universal was given. | |
2529 | if test "${enable_universal+set}" = set; then | |
2530 | enableval="$enable_universal" | |
2531 | ||
2532 | if test "$enableval" = yes; then | |
2533 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2534 | else | |
2535 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2536 | fi | |
2537 | ||
2538 | else | |
2539 | ||
2540 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2541 | if test "x$LINE" != x ; then | |
2542 | eval "DEFAULT_$LINE" | |
2543 | else | |
2544 | no_cache=1 | |
2545 | fi | |
2546 | ||
2547 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2548 | ||
2549 | fi; | |
2550 | ||
2551 | eval "$ac_cv_use_universal" | |
2552 | if test "$no_cache" != 1; then | |
2553 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2554 | fi | |
2555 | ||
2556 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2557 | echo "$as_me:$LINENO: result: yes" >&5 | |
2558 | echo "${ECHO_T}yes" >&6 | |
2559 | else | |
2560 | echo "$as_me:$LINENO: result: no" >&5 | |
2561 | echo "${ECHO_T}no" >&6 | |
2562 | fi | |
2563 | ||
2564 | ||
2565 | # Check whether --with-gtk or --without-gtk was given. | |
2566 | if test "${with_gtk+set}" = set; then | |
2567 | withval="$with_gtk" | |
2568 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2569 | fi; | |
2570 | ||
2571 | # Check whether --with-motif or --without-motif was given. | |
2572 | if test "${with_motif+set}" = set; then | |
2573 | withval="$with_motif" | |
2574 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2575 | fi; | |
2576 | ||
2577 | # Check whether --with-mac or --without-mac was given. | |
2578 | if test "${with_mac+set}" = set; then | |
2579 | withval="$with_mac" | |
2580 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
2581 | fi; | |
2582 | ||
2583 | # Check whether --with-cocoa or --without-cocoa was given. | |
2584 | if test "${with_cocoa+set}" = set; then | |
2585 | withval="$with_cocoa" | |
2586 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
2587 | fi; | |
2588 | ||
2589 | # Check whether --with-wine or --without-wine was given. | |
2590 | if test "${with_wine+set}" = set; then | |
2591 | withval="$with_wine" | |
2592 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2593 | fi; | |
2594 | ||
2595 | # Check whether --with-msw or --without-msw was given. | |
2596 | if test "${with_msw+set}" = set; then | |
2597 | withval="$with_msw" | |
2598 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2599 | fi; | |
2600 | ||
2601 | # Check whether --with-pm or --without-pm was given. | |
2602 | if test "${with_pm+set}" = set; then | |
2603 | withval="$with_pm" | |
2604 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2605 | fi; | |
2606 | ||
2607 | # Check whether --with-mgl or --without-mgl was given. | |
2608 | if test "${with_mgl+set}" = set; then | |
2609 | withval="$with_mgl" | |
2610 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2611 | fi; | |
2612 | ||
2613 | # Check whether --with-microwin or --without-microwin was given. | |
2614 | if test "${with_microwin+set}" = set; then | |
2615 | withval="$with_microwin" | |
2616 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2617 | fi; | |
2618 | ||
2619 | # Check whether --with-x11 or --without-x11 was given. | |
2620 | if test "${with_x11+set}" = set; then | |
2621 | withval="$with_x11" | |
2622 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2623 | fi; | |
2624 | ||
2625 | enablestring= | |
2626 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2627 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2628 | no_cache=0 | |
2629 | # Check whether --enable-nanox or --disable-nanox was given. | |
2630 | if test "${enable_nanox+set}" = set; then | |
2631 | enableval="$enable_nanox" | |
2632 | ||
2633 | if test "$enableval" = yes; then | |
2634 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2635 | else | |
2636 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2637 | fi | |
2638 | ||
2639 | else | |
2640 | ||
2641 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2642 | if test "x$LINE" != x ; then | |
2643 | eval "DEFAULT_$LINE" | |
2644 | else | |
2645 | no_cache=1 | |
2646 | fi | |
2647 | ||
2648 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2649 | ||
2650 | fi; | |
2651 | ||
2652 | eval "$ac_cv_use_nanox" | |
2653 | if test "$no_cache" != 1; then | |
2654 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2655 | fi | |
2656 | ||
2657 | if test "$wxUSE_NANOX" = yes; then | |
2658 | echo "$as_me:$LINENO: result: yes" >&5 | |
2659 | echo "${ECHO_T}yes" >&6 | |
2660 | else | |
2661 | echo "$as_me:$LINENO: result: no" >&5 | |
2662 | echo "${ECHO_T}no" >&6 | |
2663 | fi | |
2664 | ||
2665 | ||
2666 | ||
2667 | enablestring= | |
2668 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2669 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2670 | no_cache=0 | |
2671 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2672 | if test "${enable_gtk2+set}" = set; then | |
2673 | enableval="$enable_gtk2" | |
2674 | ||
2675 | if test "$enableval" = yes; then | |
2676 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2677 | else | |
2678 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2679 | fi | |
2680 | ||
2681 | else | |
2682 | ||
2683 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2684 | if test "x$LINE" != x ; then | |
2685 | eval "DEFAULT_$LINE" | |
2686 | else | |
2687 | no_cache=1 | |
2688 | fi | |
2689 | ||
2690 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2691 | ||
2692 | fi; | |
2693 | ||
2694 | eval "$ac_cv_use_gtk2" | |
2695 | if test "$no_cache" != 1; then | |
2696 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2697 | fi | |
2698 | ||
2699 | if test "$wxUSE_GTK2" = yes; then | |
2700 | echo "$as_me:$LINENO: result: yes" >&5 | |
2701 | echo "${ECHO_T}yes" >&6 | |
2702 | else | |
2703 | echo "$as_me:$LINENO: result: no" >&5 | |
2704 | echo "${ECHO_T}no" >&6 | |
2705 | fi | |
2706 | ||
2707 | ||
2708 | enablestring= | |
2709 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2710 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2711 | no_cache=0 | |
2712 | # Check whether --enable-gpe or --disable-gpe was given. | |
2713 | if test "${enable_gpe+set}" = set; then | |
2714 | enableval="$enable_gpe" | |
2715 | ||
2716 | if test "$enableval" = yes; then | |
2717 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2718 | else | |
2719 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2720 | fi | |
2721 | ||
2722 | else | |
2723 | ||
2724 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2725 | if test "x$LINE" != x ; then | |
2726 | eval "DEFAULT_$LINE" | |
2727 | else | |
2728 | no_cache=1 | |
2729 | fi | |
2730 | ||
2731 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2732 | ||
2733 | fi; | |
2734 | ||
2735 | eval "$ac_cv_use_gpe" | |
2736 | if test "$no_cache" != 1; then | |
2737 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2738 | fi | |
2739 | ||
2740 | if test "$wxUSE_GPE" = yes; then | |
2741 | echo "$as_me:$LINENO: result: yes" >&5 | |
2742 | echo "${ECHO_T}yes" >&6 | |
2743 | else | |
2744 | echo "$as_me:$LINENO: result: no" >&5 | |
2745 | echo "${ECHO_T}no" >&6 | |
2746 | fi | |
2747 | ||
2748 | ||
2749 | ||
2750 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2751 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2752 | no_cache=0 | |
2753 | ||
2754 | # Check whether --with-libpng or --without-libpng was given. | |
2755 | if test "${with_libpng+set}" = set; then | |
2756 | withval="$with_libpng" | |
2757 | ||
2758 | if test "$withval" = yes; then | |
2759 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2760 | elif test "$withval" = no; then | |
2761 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2762 | elif test "$withval" = sys; then | |
2763 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2764 | elif test "$withval" = builtin; then | |
2765 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2766 | else | |
2767 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2768 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2769 | { (exit 1); exit 1; }; } | |
2770 | fi | |
2771 | ||
2772 | else | |
2773 | ||
2774 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2775 | if test "x$LINE" != x ; then | |
2776 | eval "DEFAULT_$LINE" | |
2777 | else | |
2778 | no_cache=1 | |
2779 | fi | |
2780 | ||
2781 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2782 | ||
2783 | fi; | |
2784 | ||
2785 | eval "$ac_cv_use_libpng" | |
2786 | if test "$no_cache" != 1; then | |
2787 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2788 | fi | |
2789 | ||
2790 | if test "$wxUSE_LIBPNG" = yes; then | |
2791 | echo "$as_me:$LINENO: result: yes" >&5 | |
2792 | echo "${ECHO_T}yes" >&6 | |
2793 | elif test "$wxUSE_LIBPNG" = no; then | |
2794 | echo "$as_me:$LINENO: result: no" >&5 | |
2795 | echo "${ECHO_T}no" >&6 | |
2796 | elif test "$wxUSE_LIBPNG" = sys; then | |
2797 | echo "$as_me:$LINENO: result: system version" >&5 | |
2798 | echo "${ECHO_T}system version" >&6 | |
2799 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2800 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2801 | echo "${ECHO_T}builtin version" >&6 | |
2802 | else | |
2803 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2804 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2805 | { (exit 1); exit 1; }; } | |
2806 | fi | |
2807 | ||
2808 | ||
2809 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2810 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2811 | no_cache=0 | |
2812 | ||
2813 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2814 | if test "${with_libjpeg+set}" = set; then | |
2815 | withval="$with_libjpeg" | |
2816 | ||
2817 | if test "$withval" = yes; then | |
2818 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2819 | elif test "$withval" = no; then | |
2820 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2821 | elif test "$withval" = sys; then | |
2822 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2823 | elif test "$withval" = builtin; then | |
2824 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2825 | else | |
2826 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2827 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2828 | { (exit 1); exit 1; }; } | |
2829 | fi | |
2830 | ||
2831 | else | |
2832 | ||
2833 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2834 | if test "x$LINE" != x ; then | |
2835 | eval "DEFAULT_$LINE" | |
2836 | else | |
2837 | no_cache=1 | |
2838 | fi | |
2839 | ||
2840 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2841 | ||
2842 | fi; | |
2843 | ||
2844 | eval "$ac_cv_use_libjpeg" | |
2845 | if test "$no_cache" != 1; then | |
2846 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2847 | fi | |
2848 | ||
2849 | if test "$wxUSE_LIBJPEG" = yes; then | |
2850 | echo "$as_me:$LINENO: result: yes" >&5 | |
2851 | echo "${ECHO_T}yes" >&6 | |
2852 | elif test "$wxUSE_LIBJPEG" = no; then | |
2853 | echo "$as_me:$LINENO: result: no" >&5 | |
2854 | echo "${ECHO_T}no" >&6 | |
2855 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2856 | echo "$as_me:$LINENO: result: system version" >&5 | |
2857 | echo "${ECHO_T}system version" >&6 | |
2858 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2859 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2860 | echo "${ECHO_T}builtin version" >&6 | |
2861 | else | |
2862 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2863 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2864 | { (exit 1); exit 1; }; } | |
2865 | fi | |
2866 | ||
2867 | ||
2868 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2869 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2870 | no_cache=0 | |
2871 | ||
2872 | # Check whether --with-libtiff or --without-libtiff was given. | |
2873 | if test "${with_libtiff+set}" = set; then | |
2874 | withval="$with_libtiff" | |
2875 | ||
2876 | if test "$withval" = yes; then | |
2877 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2878 | elif test "$withval" = no; then | |
2879 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2880 | elif test "$withval" = sys; then | |
2881 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2882 | elif test "$withval" = builtin; then | |
2883 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2884 | else | |
2885 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2886 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2887 | { (exit 1); exit 1; }; } | |
2888 | fi | |
2889 | ||
2890 | else | |
2891 | ||
2892 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2893 | if test "x$LINE" != x ; then | |
2894 | eval "DEFAULT_$LINE" | |
2895 | else | |
2896 | no_cache=1 | |
2897 | fi | |
2898 | ||
2899 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2900 | ||
2901 | fi; | |
2902 | ||
2903 | eval "$ac_cv_use_libtiff" | |
2904 | if test "$no_cache" != 1; then | |
2905 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2906 | fi | |
2907 | ||
2908 | if test "$wxUSE_LIBTIFF" = yes; then | |
2909 | echo "$as_me:$LINENO: result: yes" >&5 | |
2910 | echo "${ECHO_T}yes" >&6 | |
2911 | elif test "$wxUSE_LIBTIFF" = no; then | |
2912 | echo "$as_me:$LINENO: result: no" >&5 | |
2913 | echo "${ECHO_T}no" >&6 | |
2914 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2915 | echo "$as_me:$LINENO: result: system version" >&5 | |
2916 | echo "${ECHO_T}system version" >&6 | |
2917 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2918 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2919 | echo "${ECHO_T}builtin version" >&6 | |
2920 | else | |
2921 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2922 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2923 | { (exit 1); exit 1; }; } | |
2924 | fi | |
2925 | ||
2926 | ||
2927 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2928 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2929 | no_cache=0 | |
2930 | ||
2931 | # Check whether --with-libxpm or --without-libxpm was given. | |
2932 | if test "${with_libxpm+set}" = set; then | |
2933 | withval="$with_libxpm" | |
2934 | ||
2935 | if test "$withval" = yes; then | |
2936 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2937 | elif test "$withval" = no; then | |
2938 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2939 | elif test "$withval" = sys; then | |
2940 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2941 | elif test "$withval" = builtin; then | |
2942 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2943 | else | |
2944 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2945 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2946 | { (exit 1); exit 1; }; } | |
2947 | fi | |
2948 | ||
2949 | else | |
2950 | ||
2951 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2952 | if test "x$LINE" != x ; then | |
2953 | eval "DEFAULT_$LINE" | |
2954 | else | |
2955 | no_cache=1 | |
2956 | fi | |
2957 | ||
2958 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2959 | ||
2960 | fi; | |
2961 | ||
2962 | eval "$ac_cv_use_libxpm" | |
2963 | if test "$no_cache" != 1; then | |
2964 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2965 | fi | |
2966 | ||
2967 | if test "$wxUSE_LIBXPM" = yes; then | |
2968 | echo "$as_me:$LINENO: result: yes" >&5 | |
2969 | echo "${ECHO_T}yes" >&6 | |
2970 | elif test "$wxUSE_LIBXPM" = no; then | |
2971 | echo "$as_me:$LINENO: result: no" >&5 | |
2972 | echo "${ECHO_T}no" >&6 | |
2973 | elif test "$wxUSE_LIBXPM" = sys; then | |
2974 | echo "$as_me:$LINENO: result: system version" >&5 | |
2975 | echo "${ECHO_T}system version" >&6 | |
2976 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2977 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2978 | echo "${ECHO_T}builtin version" >&6 | |
2979 | else | |
2980 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2981 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2982 | { (exit 1); exit 1; }; } | |
2983 | fi | |
2984 | ||
2985 | ||
2986 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2987 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2988 | no_cache=0 | |
2989 | ||
2990 | # Check whether --with-libmspack or --without-libmspack was given. | |
2991 | if test "${with_libmspack+set}" = set; then | |
2992 | withval="$with_libmspack" | |
2993 | ||
2994 | if test "$withval" = yes; then | |
2995 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2996 | else | |
2997 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2998 | fi | |
2999 | ||
3000 | else | |
3001 | ||
3002 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3003 | if test "x$LINE" != x ; then | |
3004 | eval "DEFAULT_$LINE" | |
3005 | else | |
3006 | no_cache=1 | |
3007 | fi | |
3008 | ||
3009 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3010 | ||
3011 | fi; | |
3012 | ||
3013 | eval "$ac_cv_use_libmspack" | |
3014 | if test "$no_cache" != 1; then | |
3015 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3016 | fi | |
3017 | ||
3018 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3019 | echo "$as_me:$LINENO: result: yes" >&5 | |
3020 | echo "${ECHO_T}yes" >&6 | |
3021 | else | |
3022 | echo "$as_me:$LINENO: result: no" >&5 | |
3023 | echo "${ECHO_T}no" >&6 | |
3024 | fi | |
3025 | ||
3026 | ||
3027 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3028 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3029 | no_cache=0 | |
3030 | ||
3031 | # Check whether --with-sdl or --without-sdl was given. | |
3032 | if test "${with_sdl+set}" = set; then | |
3033 | withval="$with_sdl" | |
3034 | ||
3035 | if test "$withval" = yes; then | |
3036 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3037 | else | |
3038 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3039 | fi | |
3040 | ||
3041 | else | |
3042 | ||
3043 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3044 | if test "x$LINE" != x ; then | |
3045 | eval "DEFAULT_$LINE" | |
3046 | else | |
3047 | no_cache=1 | |
3048 | fi | |
3049 | ||
3050 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3051 | ||
3052 | fi; | |
3053 | ||
3054 | eval "$ac_cv_use_sdl" | |
3055 | if test "$no_cache" != 1; then | |
3056 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3057 | fi | |
3058 | ||
3059 | if test "$wxUSE_LIBSDL" = yes; then | |
3060 | echo "$as_me:$LINENO: result: yes" >&5 | |
3061 | echo "${ECHO_T}yes" >&6 | |
3062 | else | |
3063 | echo "$as_me:$LINENO: result: no" >&5 | |
3064 | echo "${ECHO_T}no" >&6 | |
3065 | fi | |
3066 | ||
3067 | ||
3068 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
3069 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3070 | no_cache=0 | |
3071 | ||
3072 | # Check whether --with-opengl or --without-opengl was given. | |
3073 | if test "${with_opengl+set}" = set; then | |
3074 | withval="$with_opengl" | |
3075 | ||
3076 | if test "$withval" = yes; then | |
3077 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3078 | else | |
3079 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3080 | fi | |
3081 | ||
3082 | else | |
3083 | ||
3084 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3085 | if test "x$LINE" != x ; then | |
3086 | eval "DEFAULT_$LINE" | |
3087 | else | |
3088 | no_cache=1 | |
3089 | fi | |
3090 | ||
3091 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3092 | ||
3093 | fi; | |
3094 | ||
3095 | eval "$ac_cv_use_opengl" | |
3096 | if test "$no_cache" != 1; then | |
3097 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3098 | fi | |
3099 | ||
3100 | if test "$wxUSE_OPENGL" = yes; then | |
3101 | echo "$as_me:$LINENO: result: yes" >&5 | |
3102 | echo "${ECHO_T}yes" >&6 | |
3103 | else | |
3104 | echo "$as_me:$LINENO: result: no" >&5 | |
3105 | echo "${ECHO_T}no" >&6 | |
3106 | fi | |
3107 | ||
3108 | ||
3109 | fi | |
3110 | ||
3111 | ||
3112 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3113 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3114 | no_cache=0 | |
3115 | ||
3116 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3117 | if test "${with_dmalloc+set}" = set; then | |
3118 | withval="$with_dmalloc" | |
3119 | ||
3120 | if test "$withval" = yes; then | |
3121 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3122 | else | |
3123 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3124 | fi | |
3125 | ||
3126 | else | |
3127 | ||
3128 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3129 | if test "x$LINE" != x ; then | |
3130 | eval "DEFAULT_$LINE" | |
3131 | else | |
3132 | no_cache=1 | |
3133 | fi | |
3134 | ||
3135 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3136 | ||
3137 | fi; | |
3138 | ||
3139 | eval "$ac_cv_use_dmalloc" | |
3140 | if test "$no_cache" != 1; then | |
3141 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3142 | fi | |
3143 | ||
3144 | if test "$wxUSE_DMALLOC" = yes; then | |
3145 | echo "$as_me:$LINENO: result: yes" >&5 | |
3146 | echo "${ECHO_T}yes" >&6 | |
3147 | else | |
3148 | echo "$as_me:$LINENO: result: no" >&5 | |
3149 | echo "${ECHO_T}no" >&6 | |
3150 | fi | |
3151 | ||
3152 | ||
3153 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3154 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3155 | no_cache=0 | |
3156 | ||
3157 | # Check whether --with-regex or --without-regex was given. | |
3158 | if test "${with_regex+set}" = set; then | |
3159 | withval="$with_regex" | |
3160 | ||
3161 | if test "$withval" = yes; then | |
3162 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3163 | elif test "$withval" = no; then | |
3164 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3165 | elif test "$withval" = sys; then | |
3166 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3167 | elif test "$withval" = builtin; then | |
3168 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3169 | else | |
3170 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3171 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3172 | { (exit 1); exit 1; }; } | |
3173 | fi | |
3174 | ||
3175 | else | |
3176 | ||
3177 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3178 | if test "x$LINE" != x ; then | |
3179 | eval "DEFAULT_$LINE" | |
3180 | else | |
3181 | no_cache=1 | |
3182 | fi | |
3183 | ||
3184 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3185 | ||
3186 | fi; | |
3187 | ||
3188 | eval "$ac_cv_use_regex" | |
3189 | if test "$no_cache" != 1; then | |
3190 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3191 | fi | |
3192 | ||
3193 | if test "$wxUSE_REGEX" = yes; then | |
3194 | echo "$as_me:$LINENO: result: yes" >&5 | |
3195 | echo "${ECHO_T}yes" >&6 | |
3196 | elif test "$wxUSE_REGEX" = no; then | |
3197 | echo "$as_me:$LINENO: result: no" >&5 | |
3198 | echo "${ECHO_T}no" >&6 | |
3199 | elif test "$wxUSE_REGEX" = sys; then | |
3200 | echo "$as_me:$LINENO: result: system version" >&5 | |
3201 | echo "${ECHO_T}system version" >&6 | |
3202 | elif test "$wxUSE_REGEX" = builtin; then | |
3203 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3204 | echo "${ECHO_T}builtin version" >&6 | |
3205 | else | |
3206 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3207 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3208 | { (exit 1); exit 1; }; } | |
3209 | fi | |
3210 | ||
3211 | ||
3212 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3213 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3214 | no_cache=0 | |
3215 | ||
3216 | # Check whether --with-zlib or --without-zlib was given. | |
3217 | if test "${with_zlib+set}" = set; then | |
3218 | withval="$with_zlib" | |
3219 | ||
3220 | if test "$withval" = yes; then | |
3221 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3222 | elif test "$withval" = no; then | |
3223 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3224 | elif test "$withval" = sys; then | |
3225 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3226 | elif test "$withval" = builtin; then | |
3227 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3228 | else | |
3229 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3230 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3231 | { (exit 1); exit 1; }; } | |
3232 | fi | |
3233 | ||
3234 | else | |
3235 | ||
3236 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3237 | if test "x$LINE" != x ; then | |
3238 | eval "DEFAULT_$LINE" | |
3239 | else | |
3240 | no_cache=1 | |
3241 | fi | |
3242 | ||
3243 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3244 | ||
3245 | fi; | |
3246 | ||
3247 | eval "$ac_cv_use_zlib" | |
3248 | if test "$no_cache" != 1; then | |
3249 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3250 | fi | |
3251 | ||
3252 | if test "$wxUSE_ZLIB" = yes; then | |
3253 | echo "$as_me:$LINENO: result: yes" >&5 | |
3254 | echo "${ECHO_T}yes" >&6 | |
3255 | elif test "$wxUSE_ZLIB" = no; then | |
3256 | echo "$as_me:$LINENO: result: no" >&5 | |
3257 | echo "${ECHO_T}no" >&6 | |
3258 | elif test "$wxUSE_ZLIB" = sys; then | |
3259 | echo "$as_me:$LINENO: result: system version" >&5 | |
3260 | echo "${ECHO_T}system version" >&6 | |
3261 | elif test "$wxUSE_ZLIB" = builtin; then | |
3262 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3263 | echo "${ECHO_T}builtin version" >&6 | |
3264 | else | |
3265 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3266 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3267 | { (exit 1); exit 1; }; } | |
3268 | fi | |
3269 | ||
3270 | ||
3271 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3272 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3273 | no_cache=0 | |
3274 | ||
3275 | # Check whether --with-odbc or --without-odbc was given. | |
3276 | if test "${with_odbc+set}" = set; then | |
3277 | withval="$with_odbc" | |
3278 | ||
3279 | if test "$withval" = yes; then | |
3280 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3281 | elif test "$withval" = no; then | |
3282 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3283 | elif test "$withval" = sys; then | |
3284 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3285 | elif test "$withval" = builtin; then | |
3286 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3287 | else | |
3288 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3289 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3290 | { (exit 1); exit 1; }; } | |
3291 | fi | |
3292 | ||
3293 | else | |
3294 | ||
3295 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3296 | if test "x$LINE" != x ; then | |
3297 | eval "DEFAULT_$LINE" | |
3298 | else | |
3299 | no_cache=1 | |
3300 | fi | |
3301 | ||
3302 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3303 | ||
3304 | fi; | |
3305 | ||
3306 | eval "$ac_cv_use_odbc" | |
3307 | if test "$no_cache" != 1; then | |
3308 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3309 | fi | |
3310 | ||
3311 | if test "$wxUSE_ODBC" = yes; then | |
3312 | echo "$as_me:$LINENO: result: yes" >&5 | |
3313 | echo "${ECHO_T}yes" >&6 | |
3314 | elif test "$wxUSE_ODBC" = no; then | |
3315 | echo "$as_me:$LINENO: result: no" >&5 | |
3316 | echo "${ECHO_T}no" >&6 | |
3317 | elif test "$wxUSE_ODBC" = sys; then | |
3318 | echo "$as_me:$LINENO: result: system version" >&5 | |
3319 | echo "${ECHO_T}system version" >&6 | |
3320 | elif test "$wxUSE_ODBC" = builtin; then | |
3321 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3322 | echo "${ECHO_T}builtin version" >&6 | |
3323 | else | |
3324 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3325 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3326 | { (exit 1); exit 1; }; } | |
3327 | fi | |
3328 | ||
3329 | ||
3330 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3331 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3332 | no_cache=0 | |
3333 | ||
3334 | # Check whether --with-expat or --without-expat was given. | |
3335 | if test "${with_expat+set}" = set; then | |
3336 | withval="$with_expat" | |
3337 | ||
3338 | if test "$withval" = yes; then | |
3339 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3340 | elif test "$withval" = no; then | |
3341 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3342 | elif test "$withval" = sys; then | |
3343 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3344 | elif test "$withval" = builtin; then | |
3345 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3346 | else | |
3347 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3348 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3349 | { (exit 1); exit 1; }; } | |
3350 | fi | |
3351 | ||
3352 | else | |
3353 | ||
3354 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3355 | if test "x$LINE" != x ; then | |
3356 | eval "DEFAULT_$LINE" | |
3357 | else | |
3358 | no_cache=1 | |
3359 | fi | |
3360 | ||
3361 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3362 | ||
3363 | fi; | |
3364 | ||
3365 | eval "$ac_cv_use_expat" | |
3366 | if test "$no_cache" != 1; then | |
3367 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3368 | fi | |
3369 | ||
3370 | if test "$wxUSE_EXPAT" = yes; then | |
3371 | echo "$as_me:$LINENO: result: yes" >&5 | |
3372 | echo "${ECHO_T}yes" >&6 | |
3373 | elif test "$wxUSE_EXPAT" = no; then | |
3374 | echo "$as_me:$LINENO: result: no" >&5 | |
3375 | echo "${ECHO_T}no" >&6 | |
3376 | elif test "$wxUSE_EXPAT" = sys; then | |
3377 | echo "$as_me:$LINENO: result: system version" >&5 | |
3378 | echo "${ECHO_T}system version" >&6 | |
3379 | elif test "$wxUSE_EXPAT" = builtin; then | |
3380 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3381 | echo "${ECHO_T}builtin version" >&6 | |
3382 | else | |
3383 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3384 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3385 | { (exit 1); exit 1; }; } | |
3386 | fi | |
3387 | ||
3388 | ||
3389 | ||
3390 | ||
3391 | enablestring= | |
3392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3393 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3394 | no_cache=0 | |
3395 | # Check whether --enable-shared or --disable-shared was given. | |
3396 | if test "${enable_shared+set}" = set; then | |
3397 | enableval="$enable_shared" | |
3398 | ||
3399 | if test "$enableval" = yes; then | |
3400 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3401 | else | |
3402 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3403 | fi | |
3404 | ||
3405 | else | |
3406 | ||
3407 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3408 | if test "x$LINE" != x ; then | |
3409 | eval "DEFAULT_$LINE" | |
3410 | else | |
3411 | no_cache=1 | |
3412 | fi | |
3413 | ||
3414 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3415 | ||
3416 | fi; | |
3417 | ||
3418 | eval "$ac_cv_use_shared" | |
3419 | if test "$no_cache" != 1; then | |
3420 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3421 | fi | |
3422 | ||
3423 | if test "$wxUSE_SHARED" = yes; then | |
3424 | echo "$as_me:$LINENO: result: yes" >&5 | |
3425 | echo "${ECHO_T}yes" >&6 | |
3426 | else | |
3427 | echo "$as_me:$LINENO: result: no" >&5 | |
3428 | echo "${ECHO_T}no" >&6 | |
3429 | fi | |
3430 | ||
3431 | ||
3432 | enablestring= | |
3433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3434 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3435 | no_cache=0 | |
3436 | # Check whether --enable-optimise or --disable-optimise was given. | |
3437 | if test "${enable_optimise+set}" = set; then | |
3438 | enableval="$enable_optimise" | |
3439 | ||
3440 | if test "$enableval" = yes; then | |
3441 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3442 | else | |
3443 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3444 | fi | |
3445 | ||
3446 | else | |
3447 | ||
3448 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3449 | if test "x$LINE" != x ; then | |
3450 | eval "DEFAULT_$LINE" | |
3451 | else | |
3452 | no_cache=1 | |
3453 | fi | |
3454 | ||
3455 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3456 | ||
3457 | fi; | |
3458 | ||
3459 | eval "$ac_cv_use_optimise" | |
3460 | if test "$no_cache" != 1; then | |
3461 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3462 | fi | |
3463 | ||
3464 | if test "$wxUSE_OPTIMISE" = yes; then | |
3465 | echo "$as_me:$LINENO: result: yes" >&5 | |
3466 | echo "${ECHO_T}yes" >&6 | |
3467 | else | |
3468 | echo "$as_me:$LINENO: result: no" >&5 | |
3469 | echo "${ECHO_T}no" >&6 | |
3470 | fi | |
3471 | ||
3472 | ||
3473 | enablestring= | |
3474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3475 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3476 | no_cache=0 | |
3477 | # Check whether --enable-debug or --disable-debug was given. | |
3478 | if test "${enable_debug+set}" = set; then | |
3479 | enableval="$enable_debug" | |
3480 | ||
3481 | if test "$enableval" = yes; then | |
3482 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3483 | else | |
3484 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3485 | fi | |
3486 | ||
3487 | else | |
3488 | ||
3489 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3490 | if test "x$LINE" != x ; then | |
3491 | eval "DEFAULT_$LINE" | |
3492 | else | |
3493 | no_cache=1 | |
3494 | fi | |
3495 | ||
3496 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3497 | ||
3498 | fi; | |
3499 | ||
3500 | eval "$ac_cv_use_debug" | |
3501 | if test "$no_cache" != 1; then | |
3502 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3503 | fi | |
3504 | ||
3505 | if test "$wxUSE_DEBUG" = yes; then | |
3506 | echo "$as_me:$LINENO: result: yes" >&5 | |
3507 | echo "${ECHO_T}yes" >&6 | |
3508 | else | |
3509 | echo "$as_me:$LINENO: result: no" >&5 | |
3510 | echo "${ECHO_T}no" >&6 | |
3511 | fi | |
3512 | ||
3513 | ||
3514 | enablestring= | |
3515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3516 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3517 | no_cache=0 | |
3518 | # Check whether --enable-stl or --disable-stl was given. | |
3519 | if test "${enable_stl+set}" = set; then | |
3520 | enableval="$enable_stl" | |
3521 | ||
3522 | if test "$enableval" = yes; then | |
3523 | ac_cv_use_stl='wxUSE_STL=yes' | |
3524 | else | |
3525 | ac_cv_use_stl='wxUSE_STL=no' | |
3526 | fi | |
3527 | ||
3528 | else | |
3529 | ||
3530 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3531 | if test "x$LINE" != x ; then | |
3532 | eval "DEFAULT_$LINE" | |
3533 | else | |
3534 | no_cache=1 | |
3535 | fi | |
3536 | ||
3537 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3538 | ||
3539 | fi; | |
3540 | ||
3541 | eval "$ac_cv_use_stl" | |
3542 | if test "$no_cache" != 1; then | |
3543 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3544 | fi | |
3545 | ||
3546 | if test "$wxUSE_STL" = yes; then | |
3547 | echo "$as_me:$LINENO: result: yes" >&5 | |
3548 | echo "${ECHO_T}yes" >&6 | |
3549 | else | |
3550 | echo "$as_me:$LINENO: result: no" >&5 | |
3551 | echo "${ECHO_T}no" >&6 | |
3552 | fi | |
3553 | ||
3554 | if test "$USE_OS2" = "1"; then | |
3555 | ||
3556 | enablestring= | |
3557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3558 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3559 | no_cache=0 | |
3560 | # Check whether --enable-omf or --disable-omf was given. | |
3561 | if test "${enable_omf+set}" = set; then | |
3562 | enableval="$enable_omf" | |
3563 | ||
3564 | if test "$enableval" = yes; then | |
3565 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3566 | else | |
3567 | ac_cv_use_omf='wxUSE_OMF=no' | |
3568 | fi | |
3569 | ||
3570 | else | |
3571 | ||
3572 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3573 | if test "x$LINE" != x ; then | |
3574 | eval "DEFAULT_$LINE" | |
3575 | else | |
3576 | no_cache=1 | |
3577 | fi | |
3578 | ||
3579 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3580 | ||
3581 | fi; | |
3582 | ||
3583 | eval "$ac_cv_use_omf" | |
3584 | if test "$no_cache" != 1; then | |
3585 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3586 | fi | |
3587 | ||
3588 | if test "$wxUSE_OMF" = yes; then | |
3589 | echo "$as_me:$LINENO: result: yes" >&5 | |
3590 | echo "${ECHO_T}yes" >&6 | |
3591 | else | |
3592 | echo "$as_me:$LINENO: result: no" >&5 | |
3593 | echo "${ECHO_T}no" >&6 | |
3594 | fi | |
3595 | ||
3596 | fi | |
3597 | ||
3598 | if test "$wxUSE_DEBUG" = "yes"; then | |
3599 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3600 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3601 | BUILD=debug | |
3602 | elif test "$wxUSE_DEBUG" = "no"; then | |
3603 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3604 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3605 | BUILD=release | |
3606 | fi | |
3607 | ||
3608 | ||
3609 | enablestring= | |
3610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3611 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3612 | no_cache=0 | |
3613 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3614 | if test "${enable_debug_flag+set}" = set; then | |
3615 | enableval="$enable_debug_flag" | |
3616 | ||
3617 | if test "$enableval" = yes; then | |
3618 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3619 | else | |
3620 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3621 | fi | |
3622 | ||
3623 | else | |
3624 | ||
3625 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3626 | if test "x$LINE" != x ; then | |
3627 | eval "DEFAULT_$LINE" | |
3628 | else | |
3629 | no_cache=1 | |
3630 | fi | |
3631 | ||
3632 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3633 | ||
3634 | fi; | |
3635 | ||
3636 | eval "$ac_cv_use_debug_flag" | |
3637 | if test "$no_cache" != 1; then | |
3638 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3639 | fi | |
3640 | ||
3641 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3642 | echo "$as_me:$LINENO: result: yes" >&5 | |
3643 | echo "${ECHO_T}yes" >&6 | |
3644 | else | |
3645 | echo "$as_me:$LINENO: result: no" >&5 | |
3646 | echo "${ECHO_T}no" >&6 | |
3647 | fi | |
3648 | ||
3649 | ||
3650 | enablestring= | |
3651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3652 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3653 | no_cache=0 | |
3654 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3655 | if test "${enable_debug_info+set}" = set; then | |
3656 | enableval="$enable_debug_info" | |
3657 | ||
3658 | if test "$enableval" = yes; then | |
3659 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3660 | else | |
3661 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3662 | fi | |
3663 | ||
3664 | else | |
3665 | ||
3666 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3667 | if test "x$LINE" != x ; then | |
3668 | eval "DEFAULT_$LINE" | |
3669 | else | |
3670 | no_cache=1 | |
3671 | fi | |
3672 | ||
3673 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3674 | ||
3675 | fi; | |
3676 | ||
3677 | eval "$ac_cv_use_debug_info" | |
3678 | if test "$no_cache" != 1; then | |
3679 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3680 | fi | |
3681 | ||
3682 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3683 | echo "$as_me:$LINENO: result: yes" >&5 | |
3684 | echo "${ECHO_T}yes" >&6 | |
3685 | else | |
3686 | echo "$as_me:$LINENO: result: no" >&5 | |
3687 | echo "${ECHO_T}no" >&6 | |
3688 | fi | |
3689 | ||
3690 | ||
3691 | enablestring= | |
3692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3693 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3694 | no_cache=0 | |
3695 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3696 | if test "${enable_debug_gdb+set}" = set; then | |
3697 | enableval="$enable_debug_gdb" | |
3698 | ||
3699 | if test "$enableval" = yes; then | |
3700 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3701 | else | |
3702 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3703 | fi | |
3704 | ||
3705 | else | |
3706 | ||
3707 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3708 | if test "x$LINE" != x ; then | |
3709 | eval "DEFAULT_$LINE" | |
3710 | else | |
3711 | no_cache=1 | |
3712 | fi | |
3713 | ||
3714 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3715 | ||
3716 | fi; | |
3717 | ||
3718 | eval "$ac_cv_use_debug_gdb" | |
3719 | if test "$no_cache" != 1; then | |
3720 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3721 | fi | |
3722 | ||
3723 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3724 | echo "$as_me:$LINENO: result: yes" >&5 | |
3725 | echo "${ECHO_T}yes" >&6 | |
3726 | else | |
3727 | echo "$as_me:$LINENO: result: no" >&5 | |
3728 | echo "${ECHO_T}no" >&6 | |
3729 | fi | |
3730 | ||
3731 | ||
3732 | enablestring= | |
3733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3734 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3735 | no_cache=0 | |
3736 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3737 | if test "${enable_debug_cntxt+set}" = set; then | |
3738 | enableval="$enable_debug_cntxt" | |
3739 | ||
3740 | if test "$enableval" = yes; then | |
3741 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3742 | else | |
3743 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3744 | fi | |
3745 | ||
3746 | else | |
3747 | ||
3748 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3749 | if test "x$LINE" != x ; then | |
3750 | eval "DEFAULT_$LINE" | |
3751 | else | |
3752 | no_cache=1 | |
3753 | fi | |
3754 | ||
3755 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3756 | ||
3757 | fi; | |
3758 | ||
3759 | eval "$ac_cv_use_debug_cntxt" | |
3760 | if test "$no_cache" != 1; then | |
3761 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3762 | fi | |
3763 | ||
3764 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3765 | echo "$as_me:$LINENO: result: yes" >&5 | |
3766 | echo "${ECHO_T}yes" >&6 | |
3767 | else | |
3768 | echo "$as_me:$LINENO: result: no" >&5 | |
3769 | echo "${ECHO_T}no" >&6 | |
3770 | fi | |
3771 | ||
3772 | ||
3773 | enablestring= | |
3774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3775 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3776 | no_cache=0 | |
3777 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3778 | if test "${enable_mem_tracing+set}" = set; then | |
3779 | enableval="$enable_mem_tracing" | |
3780 | ||
3781 | if test "$enableval" = yes; then | |
3782 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3783 | else | |
3784 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3785 | fi | |
3786 | ||
3787 | else | |
3788 | ||
3789 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3790 | if test "x$LINE" != x ; then | |
3791 | eval "DEFAULT_$LINE" | |
3792 | else | |
3793 | no_cache=1 | |
3794 | fi | |
3795 | ||
3796 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3797 | ||
3798 | fi; | |
3799 | ||
3800 | eval "$ac_cv_use_mem_tracing" | |
3801 | if test "$no_cache" != 1; then | |
3802 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3803 | fi | |
3804 | ||
3805 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3806 | echo "$as_me:$LINENO: result: yes" >&5 | |
3807 | echo "${ECHO_T}yes" >&6 | |
3808 | else | |
3809 | echo "$as_me:$LINENO: result: no" >&5 | |
3810 | echo "${ECHO_T}no" >&6 | |
3811 | fi | |
3812 | ||
3813 | ||
3814 | enablestring= | |
3815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3816 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3817 | no_cache=0 | |
3818 | # Check whether --enable-profile or --disable-profile was given. | |
3819 | if test "${enable_profile+set}" = set; then | |
3820 | enableval="$enable_profile" | |
3821 | ||
3822 | if test "$enableval" = yes; then | |
3823 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3824 | else | |
3825 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3826 | fi | |
3827 | ||
3828 | else | |
3829 | ||
3830 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3831 | if test "x$LINE" != x ; then | |
3832 | eval "DEFAULT_$LINE" | |
3833 | else | |
3834 | no_cache=1 | |
3835 | fi | |
3836 | ||
3837 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3838 | ||
3839 | fi; | |
3840 | ||
3841 | eval "$ac_cv_use_profile" | |
3842 | if test "$no_cache" != 1; then | |
3843 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3844 | fi | |
3845 | ||
3846 | if test "$wxUSE_PROFILE" = yes; then | |
3847 | echo "$as_me:$LINENO: result: yes" >&5 | |
3848 | echo "${ECHO_T}yes" >&6 | |
3849 | else | |
3850 | echo "$as_me:$LINENO: result: no" >&5 | |
3851 | echo "${ECHO_T}no" >&6 | |
3852 | fi | |
3853 | ||
3854 | ||
3855 | enablestring= | |
3856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3857 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3858 | no_cache=0 | |
3859 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3860 | if test "${enable_no_rtti+set}" = set; then | |
3861 | enableval="$enable_no_rtti" | |
3862 | ||
3863 | if test "$enableval" = yes; then | |
3864 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3865 | else | |
3866 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3867 | fi | |
3868 | ||
3869 | else | |
3870 | ||
3871 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3872 | if test "x$LINE" != x ; then | |
3873 | eval "DEFAULT_$LINE" | |
3874 | else | |
3875 | no_cache=1 | |
3876 | fi | |
3877 | ||
3878 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3879 | ||
3880 | fi; | |
3881 | ||
3882 | eval "$ac_cv_use_no_rtti" | |
3883 | if test "$no_cache" != 1; then | |
3884 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3885 | fi | |
3886 | ||
3887 | if test "$wxUSE_NO_RTTI" = yes; then | |
3888 | echo "$as_me:$LINENO: result: yes" >&5 | |
3889 | echo "${ECHO_T}yes" >&6 | |
3890 | else | |
3891 | echo "$as_me:$LINENO: result: no" >&5 | |
3892 | echo "${ECHO_T}no" >&6 | |
3893 | fi | |
3894 | ||
3895 | ||
3896 | enablestring= | |
3897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3898 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3899 | no_cache=0 | |
3900 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3901 | if test "${enable_no_exceptions+set}" = set; then | |
3902 | enableval="$enable_no_exceptions" | |
3903 | ||
3904 | if test "$enableval" = yes; then | |
3905 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3906 | else | |
3907 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3908 | fi | |
3909 | ||
3910 | else | |
3911 | ||
3912 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3913 | if test "x$LINE" != x ; then | |
3914 | eval "DEFAULT_$LINE" | |
3915 | else | |
3916 | no_cache=1 | |
3917 | fi | |
3918 | ||
3919 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3920 | ||
3921 | fi; | |
3922 | ||
3923 | eval "$ac_cv_use_no_exceptions" | |
3924 | if test "$no_cache" != 1; then | |
3925 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3926 | fi | |
3927 | ||
3928 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3929 | echo "$as_me:$LINENO: result: yes" >&5 | |
3930 | echo "${ECHO_T}yes" >&6 | |
3931 | else | |
3932 | echo "$as_me:$LINENO: result: no" >&5 | |
3933 | echo "${ECHO_T}no" >&6 | |
3934 | fi | |
3935 | ||
3936 | ||
3937 | enablestring= | |
3938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3939 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3940 | no_cache=0 | |
3941 | # Check whether --enable-permissive or --disable-permissive was given. | |
3942 | if test "${enable_permissive+set}" = set; then | |
3943 | enableval="$enable_permissive" | |
3944 | ||
3945 | if test "$enableval" = yes; then | |
3946 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3947 | else | |
3948 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3949 | fi | |
3950 | ||
3951 | else | |
3952 | ||
3953 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3954 | if test "x$LINE" != x ; then | |
3955 | eval "DEFAULT_$LINE" | |
3956 | else | |
3957 | no_cache=1 | |
3958 | fi | |
3959 | ||
3960 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3961 | ||
3962 | fi; | |
3963 | ||
3964 | eval "$ac_cv_use_permissive" | |
3965 | if test "$no_cache" != 1; then | |
3966 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3967 | fi | |
3968 | ||
3969 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3970 | echo "$as_me:$LINENO: result: yes" >&5 | |
3971 | echo "${ECHO_T}yes" >&6 | |
3972 | else | |
3973 | echo "$as_me:$LINENO: result: no" >&5 | |
3974 | echo "${ECHO_T}no" >&6 | |
3975 | fi | |
3976 | ||
3977 | ||
3978 | enablestring= | |
3979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3980 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3981 | no_cache=0 | |
3982 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3983 | if test "${enable_no_deps+set}" = set; then | |
3984 | enableval="$enable_no_deps" | |
3985 | ||
3986 | if test "$enableval" = yes; then | |
3987 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3988 | else | |
3989 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3990 | fi | |
3991 | ||
3992 | else | |
3993 | ||
3994 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
3995 | if test "x$LINE" != x ; then | |
3996 | eval "DEFAULT_$LINE" | |
3997 | else | |
3998 | no_cache=1 | |
3999 | fi | |
4000 | ||
4001 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4002 | ||
4003 | fi; | |
4004 | ||
4005 | eval "$ac_cv_use_no_deps" | |
4006 | if test "$no_cache" != 1; then | |
4007 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4008 | fi | |
4009 | ||
4010 | if test "$wxUSE_NO_DEPS" = yes; then | |
4011 | echo "$as_me:$LINENO: result: yes" >&5 | |
4012 | echo "${ECHO_T}yes" >&6 | |
4013 | else | |
4014 | echo "$as_me:$LINENO: result: no" >&5 | |
4015 | echo "${ECHO_T}no" >&6 | |
4016 | fi | |
4017 | ||
4018 | ||
4019 | ||
4020 | enablestring= | |
4021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4022 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4023 | no_cache=0 | |
4024 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4025 | if test "${enable_compat22+set}" = set; then | |
4026 | enableval="$enable_compat22" | |
4027 | ||
4028 | if test "$enableval" = yes; then | |
4029 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4030 | else | |
4031 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4032 | fi | |
4033 | ||
4034 | else | |
4035 | ||
4036 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4037 | if test "x$LINE" != x ; then | |
4038 | eval "DEFAULT_$LINE" | |
4039 | else | |
4040 | no_cache=1 | |
4041 | fi | |
4042 | ||
4043 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4044 | ||
4045 | fi; | |
4046 | ||
4047 | eval "$ac_cv_use_compat22" | |
4048 | if test "$no_cache" != 1; then | |
4049 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4050 | fi | |
4051 | ||
4052 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4053 | echo "$as_me:$LINENO: result: yes" >&5 | |
4054 | echo "${ECHO_T}yes" >&6 | |
4055 | else | |
4056 | echo "$as_me:$LINENO: result: no" >&5 | |
4057 | echo "${ECHO_T}no" >&6 | |
4058 | fi | |
4059 | ||
4060 | ||
4061 | enablestring=disable | |
4062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4063 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4064 | no_cache=0 | |
4065 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4066 | if test "${enable_compat24+set}" = set; then | |
4067 | enableval="$enable_compat24" | |
4068 | ||
4069 | if test "$enableval" = yes; then | |
4070 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4071 | else | |
4072 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4073 | fi | |
4074 | ||
4075 | else | |
4076 | ||
4077 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4078 | if test "x$LINE" != x ; then | |
4079 | eval "DEFAULT_$LINE" | |
4080 | else | |
4081 | no_cache=1 | |
4082 | fi | |
4083 | ||
4084 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4085 | ||
4086 | fi; | |
4087 | ||
4088 | eval "$ac_cv_use_compat24" | |
4089 | if test "$no_cache" != 1; then | |
4090 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4091 | fi | |
4092 | ||
4093 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4094 | echo "$as_me:$LINENO: result: yes" >&5 | |
4095 | echo "${ECHO_T}yes" >&6 | |
4096 | else | |
4097 | echo "$as_me:$LINENO: result: no" >&5 | |
4098 | echo "${ECHO_T}no" >&6 | |
4099 | fi | |
4100 | ||
4101 | ||
4102 | # Check whether --enable-rpath or --disable-rpath was given. | |
4103 | if test "${enable_rpath+set}" = set; then | |
4104 | enableval="$enable_rpath" | |
4105 | wxRPATH_DIR="$enableval" | |
4106 | fi; | |
4107 | ||
ac1cb8d3 | 4108 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then |
a848cd7e SC |
4109 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" |
4110 | fi | |
4111 | ||
4112 | ||
4113 | ||
4114 | ||
4115 | enablestring= | |
4116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4117 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4118 | no_cache=0 | |
4119 | # Check whether --enable-intl or --disable-intl was given. | |
4120 | if test "${enable_intl+set}" = set; then | |
4121 | enableval="$enable_intl" | |
4122 | ||
4123 | if test "$enableval" = yes; then | |
4124 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4125 | else | |
4126 | ac_cv_use_intl='wxUSE_INTL=no' | |
4127 | fi | |
4128 | ||
4129 | else | |
4130 | ||
4131 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4132 | if test "x$LINE" != x ; then | |
4133 | eval "DEFAULT_$LINE" | |
4134 | else | |
4135 | no_cache=1 | |
4136 | fi | |
4137 | ||
4138 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4139 | ||
4140 | fi; | |
4141 | ||
4142 | eval "$ac_cv_use_intl" | |
4143 | if test "$no_cache" != 1; then | |
4144 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4145 | fi | |
4146 | ||
4147 | if test "$wxUSE_INTL" = yes; then | |
4148 | echo "$as_me:$LINENO: result: yes" >&5 | |
4149 | echo "${ECHO_T}yes" >&6 | |
4150 | else | |
4151 | echo "$as_me:$LINENO: result: no" >&5 | |
4152 | echo "${ECHO_T}no" >&6 | |
4153 | fi | |
4154 | ||
4155 | ||
4156 | enablestring= | |
4157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4158 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4159 | no_cache=0 | |
4160 | # Check whether --enable-config or --disable-config was given. | |
4161 | if test "${enable_config+set}" = set; then | |
4162 | enableval="$enable_config" | |
4163 | ||
4164 | if test "$enableval" = yes; then | |
4165 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4166 | else | |
4167 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4168 | fi | |
4169 | ||
4170 | else | |
4171 | ||
4172 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4173 | if test "x$LINE" != x ; then | |
4174 | eval "DEFAULT_$LINE" | |
4175 | else | |
4176 | no_cache=1 | |
4177 | fi | |
4178 | ||
4179 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4180 | ||
4181 | fi; | |
4182 | ||
4183 | eval "$ac_cv_use_config" | |
4184 | if test "$no_cache" != 1; then | |
4185 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4186 | fi | |
4187 | ||
4188 | if test "$wxUSE_CONFIG" = yes; then | |
4189 | echo "$as_me:$LINENO: result: yes" >&5 | |
4190 | echo "${ECHO_T}yes" >&6 | |
4191 | else | |
4192 | echo "$as_me:$LINENO: result: no" >&5 | |
4193 | echo "${ECHO_T}no" >&6 | |
4194 | fi | |
4195 | ||
4196 | ||
4197 | ||
4198 | enablestring= | |
4199 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4200 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4201 | no_cache=0 | |
4202 | # Check whether --enable-protocols or --disable-protocols was given. | |
4203 | if test "${enable_protocols+set}" = set; then | |
4204 | enableval="$enable_protocols" | |
4205 | ||
4206 | if test "$enableval" = yes; then | |
4207 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4208 | else | |
4209 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4210 | fi | |
4211 | ||
4212 | else | |
4213 | ||
4214 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4215 | if test "x$LINE" != x ; then | |
4216 | eval "DEFAULT_$LINE" | |
4217 | else | |
4218 | no_cache=1 | |
4219 | fi | |
4220 | ||
4221 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4222 | ||
4223 | fi; | |
4224 | ||
4225 | eval "$ac_cv_use_protocols" | |
4226 | if test "$no_cache" != 1; then | |
4227 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4228 | fi | |
4229 | ||
4230 | if test "$wxUSE_PROTOCOL" = yes; then | |
4231 | echo "$as_me:$LINENO: result: yes" >&5 | |
4232 | echo "${ECHO_T}yes" >&6 | |
4233 | else | |
4234 | echo "$as_me:$LINENO: result: no" >&5 | |
4235 | echo "${ECHO_T}no" >&6 | |
4236 | fi | |
4237 | ||
4238 | ||
4239 | enablestring= | |
4240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4241 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4242 | no_cache=0 | |
4243 | # Check whether --enable-ftp or --disable-ftp was given. | |
4244 | if test "${enable_ftp+set}" = set; then | |
4245 | enableval="$enable_ftp" | |
4246 | ||
4247 | if test "$enableval" = yes; then | |
4248 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4249 | else | |
4250 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4251 | fi | |
4252 | ||
4253 | else | |
4254 | ||
4255 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4256 | if test "x$LINE" != x ; then | |
4257 | eval "DEFAULT_$LINE" | |
4258 | else | |
4259 | no_cache=1 | |
4260 | fi | |
4261 | ||
4262 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4263 | ||
4264 | fi; | |
4265 | ||
4266 | eval "$ac_cv_use_ftp" | |
4267 | if test "$no_cache" != 1; then | |
4268 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4269 | fi | |
4270 | ||
4271 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4272 | echo "$as_me:$LINENO: result: yes" >&5 | |
4273 | echo "${ECHO_T}yes" >&6 | |
4274 | else | |
4275 | echo "$as_me:$LINENO: result: no" >&5 | |
4276 | echo "${ECHO_T}no" >&6 | |
4277 | fi | |
4278 | ||
4279 | ||
4280 | enablestring= | |
4281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4282 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4283 | no_cache=0 | |
4284 | # Check whether --enable-http or --disable-http was given. | |
4285 | if test "${enable_http+set}" = set; then | |
4286 | enableval="$enable_http" | |
4287 | ||
4288 | if test "$enableval" = yes; then | |
4289 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4290 | else | |
4291 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4292 | fi | |
4293 | ||
4294 | else | |
4295 | ||
4296 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4297 | if test "x$LINE" != x ; then | |
4298 | eval "DEFAULT_$LINE" | |
4299 | else | |
4300 | no_cache=1 | |
4301 | fi | |
4302 | ||
4303 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4304 | ||
4305 | fi; | |
4306 | ||
4307 | eval "$ac_cv_use_http" | |
4308 | if test "$no_cache" != 1; then | |
4309 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4310 | fi | |
4311 | ||
4312 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4313 | echo "$as_me:$LINENO: result: yes" >&5 | |
4314 | echo "${ECHO_T}yes" >&6 | |
4315 | else | |
4316 | echo "$as_me:$LINENO: result: no" >&5 | |
4317 | echo "${ECHO_T}no" >&6 | |
4318 | fi | |
4319 | ||
4320 | ||
4321 | enablestring= | |
4322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4323 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4324 | no_cache=0 | |
4325 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4326 | if test "${enable_fileproto+set}" = set; then | |
4327 | enableval="$enable_fileproto" | |
4328 | ||
4329 | if test "$enableval" = yes; then | |
4330 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4331 | else | |
4332 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4333 | fi | |
4334 | ||
4335 | else | |
4336 | ||
4337 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4338 | if test "x$LINE" != x ; then | |
4339 | eval "DEFAULT_$LINE" | |
4340 | else | |
4341 | no_cache=1 | |
4342 | fi | |
4343 | ||
4344 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4345 | ||
4346 | fi; | |
4347 | ||
4348 | eval "$ac_cv_use_fileproto" | |
4349 | if test "$no_cache" != 1; then | |
4350 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4351 | fi | |
4352 | ||
4353 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4354 | echo "$as_me:$LINENO: result: yes" >&5 | |
4355 | echo "${ECHO_T}yes" >&6 | |
4356 | else | |
4357 | echo "$as_me:$LINENO: result: no" >&5 | |
4358 | echo "${ECHO_T}no" >&6 | |
4359 | fi | |
4360 | ||
4361 | ||
4362 | enablestring= | |
4363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4364 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4365 | no_cache=0 | |
4366 | # Check whether --enable-sockets or --disable-sockets was given. | |
4367 | if test "${enable_sockets+set}" = set; then | |
4368 | enableval="$enable_sockets" | |
4369 | ||
4370 | if test "$enableval" = yes; then | |
4371 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4372 | else | |
4373 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4374 | fi | |
4375 | ||
4376 | else | |
4377 | ||
4378 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4379 | if test "x$LINE" != x ; then | |
4380 | eval "DEFAULT_$LINE" | |
4381 | else | |
4382 | no_cache=1 | |
4383 | fi | |
4384 | ||
4385 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4386 | ||
4387 | fi; | |
4388 | ||
4389 | eval "$ac_cv_use_sockets" | |
4390 | if test "$no_cache" != 1; then | |
4391 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4392 | fi | |
4393 | ||
4394 | if test "$wxUSE_SOCKETS" = yes; then | |
4395 | echo "$as_me:$LINENO: result: yes" >&5 | |
4396 | echo "${ECHO_T}yes" >&6 | |
4397 | else | |
4398 | echo "$as_me:$LINENO: result: no" >&5 | |
4399 | echo "${ECHO_T}no" >&6 | |
4400 | fi | |
4401 | ||
4402 | ||
4403 | enablestring= | |
4404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4405 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4406 | no_cache=0 | |
4407 | # Check whether --enable-ole or --disable-ole was given. | |
4408 | if test "${enable_ole+set}" = set; then | |
4409 | enableval="$enable_ole" | |
4410 | ||
4411 | if test "$enableval" = yes; then | |
4412 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4413 | else | |
4414 | ac_cv_use_ole='wxUSE_OLE=no' | |
4415 | fi | |
4416 | ||
4417 | else | |
4418 | ||
4419 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4420 | if test "x$LINE" != x ; then | |
4421 | eval "DEFAULT_$LINE" | |
4422 | else | |
4423 | no_cache=1 | |
4424 | fi | |
4425 | ||
4426 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4427 | ||
4428 | fi; | |
4429 | ||
4430 | eval "$ac_cv_use_ole" | |
4431 | if test "$no_cache" != 1; then | |
4432 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4433 | fi | |
4434 | ||
4435 | if test "$wxUSE_OLE" = yes; then | |
4436 | echo "$as_me:$LINENO: result: yes" >&5 | |
4437 | echo "${ECHO_T}yes" >&6 | |
4438 | else | |
4439 | echo "$as_me:$LINENO: result: no" >&5 | |
4440 | echo "${ECHO_T}no" >&6 | |
4441 | fi | |
4442 | ||
4443 | ||
4444 | enablestring= | |
4445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4446 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4447 | no_cache=0 | |
4448 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4449 | if test "${enable_dataobj+set}" = set; then | |
4450 | enableval="$enable_dataobj" | |
4451 | ||
4452 | if test "$enableval" = yes; then | |
4453 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4454 | else | |
4455 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4456 | fi | |
4457 | ||
4458 | else | |
4459 | ||
4460 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4461 | if test "x$LINE" != x ; then | |
4462 | eval "DEFAULT_$LINE" | |
4463 | else | |
4464 | no_cache=1 | |
4465 | fi | |
4466 | ||
4467 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4468 | ||
4469 | fi; | |
4470 | ||
4471 | eval "$ac_cv_use_dataobj" | |
4472 | if test "$no_cache" != 1; then | |
4473 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4474 | fi | |
4475 | ||
4476 | if test "$wxUSE_DATAOBJ" = yes; then | |
4477 | echo "$as_me:$LINENO: result: yes" >&5 | |
4478 | echo "${ECHO_T}yes" >&6 | |
4479 | else | |
4480 | echo "$as_me:$LINENO: result: no" >&5 | |
4481 | echo "${ECHO_T}no" >&6 | |
4482 | fi | |
4483 | ||
4484 | ||
4485 | ||
4486 | enablestring= | |
4487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4488 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4489 | no_cache=0 | |
4490 | # Check whether --enable-ipc or --disable-ipc was given. | |
4491 | if test "${enable_ipc+set}" = set; then | |
4492 | enableval="$enable_ipc" | |
4493 | ||
4494 | if test "$enableval" = yes; then | |
4495 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4496 | else | |
4497 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4498 | fi | |
4499 | ||
4500 | else | |
4501 | ||
4502 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4503 | if test "x$LINE" != x ; then | |
4504 | eval "DEFAULT_$LINE" | |
4505 | else | |
4506 | no_cache=1 | |
4507 | fi | |
4508 | ||
4509 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4510 | ||
4511 | fi; | |
4512 | ||
4513 | eval "$ac_cv_use_ipc" | |
4514 | if test "$no_cache" != 1; then | |
4515 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4516 | fi | |
4517 | ||
4518 | if test "$wxUSE_IPC" = yes; then | |
4519 | echo "$as_me:$LINENO: result: yes" >&5 | |
4520 | echo "${ECHO_T}yes" >&6 | |
4521 | else | |
4522 | echo "$as_me:$LINENO: result: no" >&5 | |
4523 | echo "${ECHO_T}no" >&6 | |
4524 | fi | |
4525 | ||
4526 | ||
4527 | ||
4528 | enablestring= | |
4529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4530 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4531 | no_cache=0 | |
4532 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4533 | if test "${enable_apple_ieee+set}" = set; then | |
4534 | enableval="$enable_apple_ieee" | |
4535 | ||
4536 | if test "$enableval" = yes; then | |
4537 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4538 | else | |
4539 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4540 | fi | |
4541 | ||
4542 | else | |
4543 | ||
4544 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4545 | if test "x$LINE" != x ; then | |
4546 | eval "DEFAULT_$LINE" | |
4547 | else | |
4548 | no_cache=1 | |
4549 | fi | |
4550 | ||
4551 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4552 | ||
4553 | fi; | |
4554 | ||
4555 | eval "$ac_cv_use_apple_ieee" | |
4556 | if test "$no_cache" != 1; then | |
4557 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4558 | fi | |
4559 | ||
4560 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4561 | echo "$as_me:$LINENO: result: yes" >&5 | |
4562 | echo "${ECHO_T}yes" >&6 | |
4563 | else | |
4564 | echo "$as_me:$LINENO: result: no" >&5 | |
4565 | echo "${ECHO_T}no" >&6 | |
4566 | fi | |
4567 | ||
4568 | ||
4569 | enablestring= | |
4570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4571 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4572 | no_cache=0 | |
4573 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4574 | if test "${enable_catch_segvs+set}" = set; then | |
4575 | enableval="$enable_catch_segvs" | |
4576 | ||
4577 | if test "$enableval" = yes; then | |
4578 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4579 | else | |
4580 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4581 | fi | |
4582 | ||
4583 | else | |
4584 | ||
4585 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4586 | if test "x$LINE" != x ; then | |
4587 | eval "DEFAULT_$LINE" | |
4588 | else | |
4589 | no_cache=1 | |
4590 | fi | |
4591 | ||
4592 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4593 | ||
4594 | fi; | |
4595 | ||
4596 | eval "$ac_cv_use_catch_segvs" | |
4597 | if test "$no_cache" != 1; then | |
4598 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4599 | fi | |
4600 | ||
4601 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4602 | echo "$as_me:$LINENO: result: yes" >&5 | |
4603 | echo "${ECHO_T}yes" >&6 | |
4604 | else | |
4605 | echo "$as_me:$LINENO: result: no" >&5 | |
4606 | echo "${ECHO_T}no" >&6 | |
4607 | fi | |
4608 | ||
4609 | ||
4610 | enablestring= | |
4611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4612 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4613 | no_cache=0 | |
4614 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4615 | if test "${enable_cmdline+set}" = set; then | |
4616 | enableval="$enable_cmdline" | |
4617 | ||
4618 | if test "$enableval" = yes; then | |
4619 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4620 | else | |
4621 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4622 | fi | |
4623 | ||
4624 | else | |
4625 | ||
4626 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4627 | if test "x$LINE" != x ; then | |
4628 | eval "DEFAULT_$LINE" | |
4629 | else | |
4630 | no_cache=1 | |
4631 | fi | |
4632 | ||
4633 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4634 | ||
4635 | fi; | |
4636 | ||
4637 | eval "$ac_cv_use_cmdline" | |
4638 | if test "$no_cache" != 1; then | |
4639 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4640 | fi | |
4641 | ||
4642 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4643 | echo "$as_me:$LINENO: result: yes" >&5 | |
4644 | echo "${ECHO_T}yes" >&6 | |
4645 | else | |
4646 | echo "$as_me:$LINENO: result: no" >&5 | |
4647 | echo "${ECHO_T}no" >&6 | |
4648 | fi | |
4649 | ||
4650 | ||
4651 | enablestring= | |
4652 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4653 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4654 | no_cache=0 | |
4655 | # Check whether --enable-datetime or --disable-datetime was given. | |
4656 | if test "${enable_datetime+set}" = set; then | |
4657 | enableval="$enable_datetime" | |
4658 | ||
4659 | if test "$enableval" = yes; then | |
4660 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4661 | else | |
4662 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4663 | fi | |
4664 | ||
4665 | else | |
4666 | ||
4667 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4668 | if test "x$LINE" != x ; then | |
4669 | eval "DEFAULT_$LINE" | |
4670 | else | |
4671 | no_cache=1 | |
4672 | fi | |
4673 | ||
4674 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4675 | ||
4676 | fi; | |
4677 | ||
4678 | eval "$ac_cv_use_datetime" | |
4679 | if test "$no_cache" != 1; then | |
4680 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4681 | fi | |
4682 | ||
4683 | if test "$wxUSE_DATETIME" = yes; then | |
4684 | echo "$as_me:$LINENO: result: yes" >&5 | |
4685 | echo "${ECHO_T}yes" >&6 | |
4686 | else | |
4687 | echo "$as_me:$LINENO: result: no" >&5 | |
4688 | echo "${ECHO_T}no" >&6 | |
4689 | fi | |
4690 | ||
4691 | ||
4692 | enablestring= | |
4693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4694 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4695 | no_cache=0 | |
4696 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4697 | if test "${enable_dialupman+set}" = set; then | |
4698 | enableval="$enable_dialupman" | |
4699 | ||
4700 | if test "$enableval" = yes; then | |
4701 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4702 | else | |
4703 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4704 | fi | |
4705 | ||
4706 | else | |
4707 | ||
4708 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4709 | if test "x$LINE" != x ; then | |
4710 | eval "DEFAULT_$LINE" | |
4711 | else | |
4712 | no_cache=1 | |
4713 | fi | |
4714 | ||
4715 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4716 | ||
4717 | fi; | |
4718 | ||
4719 | eval "$ac_cv_use_dialupman" | |
4720 | if test "$no_cache" != 1; then | |
4721 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4722 | fi | |
4723 | ||
4724 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4725 | echo "$as_me:$LINENO: result: yes" >&5 | |
4726 | echo "${ECHO_T}yes" >&6 | |
4727 | else | |
4728 | echo "$as_me:$LINENO: result: no" >&5 | |
4729 | echo "${ECHO_T}no" >&6 | |
4730 | fi | |
4731 | ||
4732 | ||
4733 | enablestring= | |
4734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4735 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4736 | no_cache=0 | |
4737 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4738 | if test "${enable_dynlib+set}" = set; then | |
4739 | enableval="$enable_dynlib" | |
4740 | ||
4741 | if test "$enableval" = yes; then | |
4742 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4743 | else | |
4744 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4745 | fi | |
4746 | ||
4747 | else | |
4748 | ||
4749 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4750 | if test "x$LINE" != x ; then | |
4751 | eval "DEFAULT_$LINE" | |
4752 | else | |
4753 | no_cache=1 | |
4754 | fi | |
4755 | ||
4756 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4757 | ||
4758 | fi; | |
4759 | ||
4760 | eval "$ac_cv_use_dynlib" | |
4761 | if test "$no_cache" != 1; then | |
4762 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4763 | fi | |
4764 | ||
4765 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4766 | echo "$as_me:$LINENO: result: yes" >&5 | |
4767 | echo "${ECHO_T}yes" >&6 | |
4768 | else | |
4769 | echo "$as_me:$LINENO: result: no" >&5 | |
4770 | echo "${ECHO_T}no" >&6 | |
4771 | fi | |
4772 | ||
4773 | ||
4774 | enablestring= | |
4775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4776 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4777 | no_cache=0 | |
4778 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4779 | if test "${enable_dynamicloader+set}" = set; then | |
4780 | enableval="$enable_dynamicloader" | |
4781 | ||
4782 | if test "$enableval" = yes; then | |
4783 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4784 | else | |
4785 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4786 | fi | |
4787 | ||
4788 | else | |
4789 | ||
4790 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4791 | if test "x$LINE" != x ; then | |
4792 | eval "DEFAULT_$LINE" | |
4793 | else | |
4794 | no_cache=1 | |
4795 | fi | |
4796 | ||
4797 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4798 | ||
4799 | fi; | |
4800 | ||
4801 | eval "$ac_cv_use_dynamicloader" | |
4802 | if test "$no_cache" != 1; then | |
4803 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4804 | fi | |
4805 | ||
4806 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4807 | echo "$as_me:$LINENO: result: yes" >&5 | |
4808 | echo "${ECHO_T}yes" >&6 | |
4809 | else | |
4810 | echo "$as_me:$LINENO: result: no" >&5 | |
4811 | echo "${ECHO_T}no" >&6 | |
4812 | fi | |
4813 | ||
4814 | ||
4815 | enablestring= | |
4816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4817 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4818 | no_cache=0 | |
4819 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4820 | if test "${enable_exceptions+set}" = set; then | |
4821 | enableval="$enable_exceptions" | |
4822 | ||
4823 | if test "$enableval" = yes; then | |
4824 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4825 | else | |
4826 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4827 | fi | |
4828 | ||
4829 | else | |
4830 | ||
4831 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4832 | if test "x$LINE" != x ; then | |
4833 | eval "DEFAULT_$LINE" | |
4834 | else | |
4835 | no_cache=1 | |
4836 | fi | |
4837 | ||
4838 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4839 | ||
4840 | fi; | |
4841 | ||
4842 | eval "$ac_cv_use_exceptions" | |
4843 | if test "$no_cache" != 1; then | |
4844 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4845 | fi | |
4846 | ||
4847 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4848 | echo "$as_me:$LINENO: result: yes" >&5 | |
4849 | echo "${ECHO_T}yes" >&6 | |
4850 | else | |
4851 | echo "$as_me:$LINENO: result: no" >&5 | |
4852 | echo "${ECHO_T}no" >&6 | |
4853 | fi | |
4854 | ||
4855 | ||
4856 | enablestring= | |
4857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4858 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4859 | no_cache=0 | |
4860 | # Check whether --enable-ffile or --disable-ffile was given. | |
4861 | if test "${enable_ffile+set}" = set; then | |
4862 | enableval="$enable_ffile" | |
4863 | ||
4864 | if test "$enableval" = yes; then | |
4865 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4866 | else | |
4867 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4868 | fi | |
4869 | ||
4870 | else | |
4871 | ||
4872 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4873 | if test "x$LINE" != x ; then | |
4874 | eval "DEFAULT_$LINE" | |
4875 | else | |
4876 | no_cache=1 | |
4877 | fi | |
4878 | ||
4879 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4880 | ||
4881 | fi; | |
4882 | ||
4883 | eval "$ac_cv_use_ffile" | |
4884 | if test "$no_cache" != 1; then | |
4885 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4886 | fi | |
4887 | ||
4888 | if test "$wxUSE_FFILE" = yes; then | |
4889 | echo "$as_me:$LINENO: result: yes" >&5 | |
4890 | echo "${ECHO_T}yes" >&6 | |
4891 | else | |
4892 | echo "$as_me:$LINENO: result: no" >&5 | |
4893 | echo "${ECHO_T}no" >&6 | |
4894 | fi | |
4895 | ||
4896 | ||
4897 | enablestring= | |
4898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4899 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4900 | no_cache=0 | |
4901 | # Check whether --enable-file or --disable-file was given. | |
4902 | if test "${enable_file+set}" = set; then | |
4903 | enableval="$enable_file" | |
4904 | ||
4905 | if test "$enableval" = yes; then | |
4906 | ac_cv_use_file='wxUSE_FILE=yes' | |
4907 | else | |
4908 | ac_cv_use_file='wxUSE_FILE=no' | |
4909 | fi | |
4910 | ||
4911 | else | |
4912 | ||
4913 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4914 | if test "x$LINE" != x ; then | |
4915 | eval "DEFAULT_$LINE" | |
4916 | else | |
4917 | no_cache=1 | |
4918 | fi | |
4919 | ||
4920 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4921 | ||
4922 | fi; | |
4923 | ||
4924 | eval "$ac_cv_use_file" | |
4925 | if test "$no_cache" != 1; then | |
4926 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4927 | fi | |
4928 | ||
4929 | if test "$wxUSE_FILE" = yes; then | |
4930 | echo "$as_me:$LINENO: result: yes" >&5 | |
4931 | echo "${ECHO_T}yes" >&6 | |
4932 | else | |
4933 | echo "$as_me:$LINENO: result: no" >&5 | |
4934 | echo "${ECHO_T}no" >&6 | |
4935 | fi | |
4936 | ||
4937 | ||
4938 | enablestring= | |
4939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
4940 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
4941 | no_cache=0 | |
4942 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4943 | if test "${enable_filesystem+set}" = set; then | |
4944 | enableval="$enable_filesystem" | |
4945 | ||
4946 | if test "$enableval" = yes; then | |
4947 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4948 | else | |
4949 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4950 | fi | |
4951 | ||
4952 | else | |
4953 | ||
4954 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4955 | if test "x$LINE" != x ; then | |
4956 | eval "DEFAULT_$LINE" | |
4957 | else | |
4958 | no_cache=1 | |
4959 | fi | |
4960 | ||
4961 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4962 | ||
4963 | fi; | |
4964 | ||
4965 | eval "$ac_cv_use_filesystem" | |
4966 | if test "$no_cache" != 1; then | |
4967 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4968 | fi | |
4969 | ||
4970 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4971 | echo "$as_me:$LINENO: result: yes" >&5 | |
4972 | echo "${ECHO_T}yes" >&6 | |
4973 | else | |
4974 | echo "$as_me:$LINENO: result: no" >&5 | |
4975 | echo "${ECHO_T}no" >&6 | |
4976 | fi | |
4977 | ||
4978 | ||
4979 | enablestring= | |
4980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4981 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4982 | no_cache=0 | |
4983 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4984 | if test "${enable_fontmap+set}" = set; then | |
4985 | enableval="$enable_fontmap" | |
4986 | ||
4987 | if test "$enableval" = yes; then | |
4988 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4989 | else | |
4990 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4991 | fi | |
4992 | ||
4993 | else | |
4994 | ||
4995 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4996 | if test "x$LINE" != x ; then | |
4997 | eval "DEFAULT_$LINE" | |
4998 | else | |
4999 | no_cache=1 | |
5000 | fi | |
5001 | ||
5002 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5003 | ||
5004 | fi; | |
5005 | ||
5006 | eval "$ac_cv_use_fontmap" | |
5007 | if test "$no_cache" != 1; then | |
5008 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5009 | fi | |
5010 | ||
5011 | if test "$wxUSE_FONTMAP" = yes; then | |
5012 | echo "$as_me:$LINENO: result: yes" >&5 | |
5013 | echo "${ECHO_T}yes" >&6 | |
5014 | else | |
5015 | echo "$as_me:$LINENO: result: no" >&5 | |
5016 | echo "${ECHO_T}no" >&6 | |
5017 | fi | |
5018 | ||
5019 | ||
5020 | enablestring= | |
5021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5022 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5023 | no_cache=0 | |
5024 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5025 | if test "${enable_fs_inet+set}" = set; then | |
5026 | enableval="$enable_fs_inet" | |
5027 | ||
5028 | if test "$enableval" = yes; then | |
5029 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5030 | else | |
5031 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5032 | fi | |
5033 | ||
5034 | else | |
5035 | ||
5036 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5037 | if test "x$LINE" != x ; then | |
5038 | eval "DEFAULT_$LINE" | |
5039 | else | |
5040 | no_cache=1 | |
5041 | fi | |
5042 | ||
5043 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5044 | ||
5045 | fi; | |
5046 | ||
5047 | eval "$ac_cv_use_fs_inet" | |
5048 | if test "$no_cache" != 1; then | |
5049 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5050 | fi | |
5051 | ||
5052 | if test "$wxUSE_FS_INET" = yes; then | |
5053 | echo "$as_me:$LINENO: result: yes" >&5 | |
5054 | echo "${ECHO_T}yes" >&6 | |
5055 | else | |
5056 | echo "$as_me:$LINENO: result: no" >&5 | |
5057 | echo "${ECHO_T}no" >&6 | |
5058 | fi | |
5059 | ||
5060 | ||
5061 | enablestring= | |
5062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5063 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5064 | no_cache=0 | |
5065 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5066 | if test "${enable_fs_zip+set}" = set; then | |
5067 | enableval="$enable_fs_zip" | |
5068 | ||
5069 | if test "$enableval" = yes; then | |
5070 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5071 | else | |
5072 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5073 | fi | |
5074 | ||
5075 | else | |
5076 | ||
5077 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5078 | if test "x$LINE" != x ; then | |
5079 | eval "DEFAULT_$LINE" | |
5080 | else | |
5081 | no_cache=1 | |
5082 | fi | |
5083 | ||
5084 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5085 | ||
5086 | fi; | |
5087 | ||
5088 | eval "$ac_cv_use_fs_zip" | |
5089 | if test "$no_cache" != 1; then | |
5090 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5091 | fi | |
5092 | ||
5093 | if test "$wxUSE_FS_ZIP" = yes; then | |
5094 | echo "$as_me:$LINENO: result: yes" >&5 | |
5095 | echo "${ECHO_T}yes" >&6 | |
5096 | else | |
5097 | echo "$as_me:$LINENO: result: no" >&5 | |
5098 | echo "${ECHO_T}no" >&6 | |
5099 | fi | |
5100 | ||
5101 | ||
5102 | enablestring= | |
5103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5104 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5105 | no_cache=0 | |
5106 | # Check whether --enable-geometry or --disable-geometry was given. | |
5107 | if test "${enable_geometry+set}" = set; then | |
5108 | enableval="$enable_geometry" | |
5109 | ||
5110 | if test "$enableval" = yes; then | |
5111 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5112 | else | |
5113 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5114 | fi | |
5115 | ||
5116 | else | |
5117 | ||
5118 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5119 | if test "x$LINE" != x ; then | |
5120 | eval "DEFAULT_$LINE" | |
5121 | else | |
5122 | no_cache=1 | |
5123 | fi | |
5124 | ||
5125 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5126 | ||
5127 | fi; | |
5128 | ||
5129 | eval "$ac_cv_use_geometry" | |
5130 | if test "$no_cache" != 1; then | |
5131 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5132 | fi | |
5133 | ||
5134 | if test "$wxUSE_GEOMETRY" = yes; then | |
5135 | echo "$as_me:$LINENO: result: yes" >&5 | |
5136 | echo "${ECHO_T}yes" >&6 | |
5137 | else | |
5138 | echo "$as_me:$LINENO: result: no" >&5 | |
5139 | echo "${ECHO_T}no" >&6 | |
5140 | fi | |
5141 | ||
5142 | ||
5143 | enablestring= | |
5144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5145 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5146 | no_cache=0 | |
5147 | # Check whether --enable-log or --disable-log was given. | |
5148 | if test "${enable_log+set}" = set; then | |
5149 | enableval="$enable_log" | |
5150 | ||
5151 | if test "$enableval" = yes; then | |
5152 | ac_cv_use_log='wxUSE_LOG=yes' | |
5153 | else | |
5154 | ac_cv_use_log='wxUSE_LOG=no' | |
5155 | fi | |
5156 | ||
5157 | else | |
5158 | ||
5159 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5160 | if test "x$LINE" != x ; then | |
5161 | eval "DEFAULT_$LINE" | |
5162 | else | |
5163 | no_cache=1 | |
5164 | fi | |
5165 | ||
5166 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5167 | ||
5168 | fi; | |
5169 | ||
5170 | eval "$ac_cv_use_log" | |
5171 | if test "$no_cache" != 1; then | |
5172 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5173 | fi | |
5174 | ||
5175 | if test "$wxUSE_LOG" = yes; then | |
5176 | echo "$as_me:$LINENO: result: yes" >&5 | |
5177 | echo "${ECHO_T}yes" >&6 | |
5178 | else | |
5179 | echo "$as_me:$LINENO: result: no" >&5 | |
5180 | echo "${ECHO_T}no" >&6 | |
5181 | fi | |
5182 | ||
5183 | ||
5184 | enablestring= | |
5185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5186 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5187 | no_cache=0 | |
5188 | # Check whether --enable-longlong or --disable-longlong was given. | |
5189 | if test "${enable_longlong+set}" = set; then | |
5190 | enableval="$enable_longlong" | |
5191 | ||
5192 | if test "$enableval" = yes; then | |
5193 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5194 | else | |
5195 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5196 | fi | |
5197 | ||
5198 | else | |
5199 | ||
5200 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5201 | if test "x$LINE" != x ; then | |
5202 | eval "DEFAULT_$LINE" | |
5203 | else | |
5204 | no_cache=1 | |
5205 | fi | |
5206 | ||
5207 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5208 | ||
5209 | fi; | |
5210 | ||
5211 | eval "$ac_cv_use_longlong" | |
5212 | if test "$no_cache" != 1; then | |
5213 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5214 | fi | |
5215 | ||
5216 | if test "$wxUSE_LONGLONG" = yes; then | |
5217 | echo "$as_me:$LINENO: result: yes" >&5 | |
5218 | echo "${ECHO_T}yes" >&6 | |
5219 | else | |
5220 | echo "$as_me:$LINENO: result: no" >&5 | |
5221 | echo "${ECHO_T}no" >&6 | |
5222 | fi | |
5223 | ||
5224 | ||
5225 | enablestring= | |
5226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5227 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5228 | no_cache=0 | |
5229 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5230 | if test "${enable_mimetype+set}" = set; then | |
5231 | enableval="$enable_mimetype" | |
5232 | ||
5233 | if test "$enableval" = yes; then | |
5234 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5235 | else | |
5236 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5237 | fi | |
5238 | ||
5239 | else | |
5240 | ||
5241 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5242 | if test "x$LINE" != x ; then | |
5243 | eval "DEFAULT_$LINE" | |
5244 | else | |
5245 | no_cache=1 | |
5246 | fi | |
5247 | ||
5248 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5249 | ||
5250 | fi; | |
5251 | ||
5252 | eval "$ac_cv_use_mimetype" | |
5253 | if test "$no_cache" != 1; then | |
5254 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5255 | fi | |
5256 | ||
5257 | if test "$wxUSE_MIMETYPE" = yes; then | |
5258 | echo "$as_me:$LINENO: result: yes" >&5 | |
5259 | echo "${ECHO_T}yes" >&6 | |
5260 | else | |
5261 | echo "$as_me:$LINENO: result: no" >&5 | |
5262 | echo "${ECHO_T}no" >&6 | |
5263 | fi | |
5264 | ||
5265 | ||
5266 | enablestring= | |
5267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5268 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5269 | no_cache=0 | |
5270 | # Check whether --enable-mslu or --disable-mslu was given. | |
5271 | if test "${enable_mslu+set}" = set; then | |
5272 | enableval="$enable_mslu" | |
5273 | ||
5274 | if test "$enableval" = yes; then | |
5275 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5276 | else | |
5277 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5278 | fi | |
5279 | ||
5280 | else | |
5281 | ||
5282 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5283 | if test "x$LINE" != x ; then | |
5284 | eval "DEFAULT_$LINE" | |
5285 | else | |
5286 | no_cache=1 | |
5287 | fi | |
5288 | ||
5289 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5290 | ||
5291 | fi; | |
5292 | ||
5293 | eval "$ac_cv_use_mslu" | |
5294 | if test "$no_cache" != 1; then | |
5295 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5296 | fi | |
5297 | ||
5298 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5299 | echo "$as_me:$LINENO: result: yes" >&5 | |
5300 | echo "${ECHO_T}yes" >&6 | |
5301 | else | |
5302 | echo "$as_me:$LINENO: result: no" >&5 | |
5303 | echo "${ECHO_T}no" >&6 | |
5304 | fi | |
5305 | ||
5306 | ||
5307 | enablestring= | |
5308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5309 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5310 | no_cache=0 | |
5311 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5312 | if test "${enable_snglinst+set}" = set; then | |
5313 | enableval="$enable_snglinst" | |
5314 | ||
5315 | if test "$enableval" = yes; then | |
5316 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5317 | else | |
5318 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5319 | fi | |
5320 | ||
5321 | else | |
5322 | ||
5323 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5324 | if test "x$LINE" != x ; then | |
5325 | eval "DEFAULT_$LINE" | |
5326 | else | |
5327 | no_cache=1 | |
5328 | fi | |
5329 | ||
5330 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5331 | ||
5332 | fi; | |
5333 | ||
5334 | eval "$ac_cv_use_snglinst" | |
5335 | if test "$no_cache" != 1; then | |
5336 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5337 | fi | |
5338 | ||
5339 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5340 | echo "$as_me:$LINENO: result: yes" >&5 | |
5341 | echo "${ECHO_T}yes" >&6 | |
5342 | else | |
5343 | echo "$as_me:$LINENO: result: no" >&5 | |
5344 | echo "${ECHO_T}no" >&6 | |
5345 | fi | |
5346 | ||
5347 | ||
5348 | enablestring= | |
5349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5350 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5351 | no_cache=0 | |
5352 | # Check whether --enable-streams or --disable-streams was given. | |
5353 | if test "${enable_streams+set}" = set; then | |
5354 | enableval="$enable_streams" | |
5355 | ||
5356 | if test "$enableval" = yes; then | |
5357 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5358 | else | |
5359 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5360 | fi | |
5361 | ||
5362 | else | |
5363 | ||
5364 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5365 | if test "x$LINE" != x ; then | |
5366 | eval "DEFAULT_$LINE" | |
5367 | else | |
5368 | no_cache=1 | |
5369 | fi | |
5370 | ||
5371 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5372 | ||
5373 | fi; | |
5374 | ||
5375 | eval "$ac_cv_use_streams" | |
5376 | if test "$no_cache" != 1; then | |
5377 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5378 | fi | |
5379 | ||
5380 | if test "$wxUSE_STREAMS" = yes; then | |
5381 | echo "$as_me:$LINENO: result: yes" >&5 | |
5382 | echo "${ECHO_T}yes" >&6 | |
5383 | else | |
5384 | echo "$as_me:$LINENO: result: no" >&5 | |
5385 | echo "${ECHO_T}no" >&6 | |
5386 | fi | |
5387 | ||
5388 | ||
5389 | enablestring= | |
5390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5391 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5392 | no_cache=0 | |
5393 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5394 | if test "${enable_std_iostreams+set}" = set; then | |
5395 | enableval="$enable_std_iostreams" | |
5396 | ||
5397 | if test "$enableval" = yes; then | |
5398 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5399 | else | |
5400 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5401 | fi | |
5402 | ||
5403 | else | |
5404 | ||
5405 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5406 | if test "x$LINE" != x ; then | |
5407 | eval "DEFAULT_$LINE" | |
5408 | else | |
5409 | no_cache=1 | |
5410 | fi | |
5411 | ||
5412 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5413 | ||
5414 | fi; | |
5415 | ||
5416 | eval "$ac_cv_use_std_iostreams" | |
5417 | if test "$no_cache" != 1; then | |
5418 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5419 | fi | |
5420 | ||
5421 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5422 | echo "$as_me:$LINENO: result: yes" >&5 | |
5423 | echo "${ECHO_T}yes" >&6 | |
5424 | else | |
5425 | echo "$as_me:$LINENO: result: no" >&5 | |
5426 | echo "${ECHO_T}no" >&6 | |
5427 | fi | |
5428 | ||
5429 | ||
5430 | enablestring= | |
5431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5432 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5433 | no_cache=0 | |
5434 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5435 | if test "${enable_stopwatch+set}" = set; then | |
5436 | enableval="$enable_stopwatch" | |
5437 | ||
5438 | if test "$enableval" = yes; then | |
5439 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5440 | else | |
5441 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5442 | fi | |
5443 | ||
5444 | else | |
5445 | ||
5446 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5447 | if test "x$LINE" != x ; then | |
5448 | eval "DEFAULT_$LINE" | |
5449 | else | |
5450 | no_cache=1 | |
5451 | fi | |
5452 | ||
5453 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5454 | ||
5455 | fi; | |
5456 | ||
5457 | eval "$ac_cv_use_stopwatch" | |
5458 | if test "$no_cache" != 1; then | |
5459 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5460 | fi | |
5461 | ||
5462 | if test "$wxUSE_STOPWATCH" = yes; then | |
5463 | echo "$as_me:$LINENO: result: yes" >&5 | |
5464 | echo "${ECHO_T}yes" >&6 | |
5465 | else | |
5466 | echo "$as_me:$LINENO: result: no" >&5 | |
5467 | echo "${ECHO_T}no" >&6 | |
5468 | fi | |
5469 | ||
5470 | ||
5471 | enablestring= | |
5472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5473 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5474 | no_cache=0 | |
5475 | # Check whether --enable-system_options or --disable-system_options was given. | |
5476 | if test "${enable_system_options+set}" = set; then | |
5477 | enableval="$enable_system_options" | |
5478 | ||
5479 | if test "$enableval" = yes; then | |
5480 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5481 | else | |
5482 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5483 | fi | |
5484 | ||
5485 | else | |
5486 | ||
5487 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5488 | if test "x$LINE" != x ; then | |
5489 | eval "DEFAULT_$LINE" | |
5490 | else | |
5491 | no_cache=1 | |
5492 | fi | |
5493 | ||
5494 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5495 | ||
5496 | fi; | |
5497 | ||
5498 | eval "$ac_cv_use_system_options" | |
5499 | if test "$no_cache" != 1; then | |
5500 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5501 | fi | |
5502 | ||
5503 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5504 | echo "$as_me:$LINENO: result: yes" >&5 | |
5505 | echo "${ECHO_T}yes" >&6 | |
5506 | else | |
5507 | echo "$as_me:$LINENO: result: no" >&5 | |
5508 | echo "${ECHO_T}no" >&6 | |
5509 | fi | |
5510 | ||
5511 | ||
5512 | enablestring= | |
5513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5514 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5515 | no_cache=0 | |
5516 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5517 | if test "${enable_textbuf+set}" = set; then | |
5518 | enableval="$enable_textbuf" | |
5519 | ||
5520 | if test "$enableval" = yes; then | |
5521 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5522 | else | |
5523 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5524 | fi | |
5525 | ||
5526 | else | |
5527 | ||
5528 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5529 | if test "x$LINE" != x ; then | |
5530 | eval "DEFAULT_$LINE" | |
5531 | else | |
5532 | no_cache=1 | |
5533 | fi | |
5534 | ||
5535 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5536 | ||
5537 | fi; | |
5538 | ||
5539 | eval "$ac_cv_use_textbuf" | |
5540 | if test "$no_cache" != 1; then | |
5541 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5542 | fi | |
5543 | ||
5544 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5545 | echo "$as_me:$LINENO: result: yes" >&5 | |
5546 | echo "${ECHO_T}yes" >&6 | |
5547 | else | |
5548 | echo "$as_me:$LINENO: result: no" >&5 | |
5549 | echo "${ECHO_T}no" >&6 | |
5550 | fi | |
5551 | ||
5552 | ||
5553 | enablestring= | |
5554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5555 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5556 | no_cache=0 | |
5557 | # Check whether --enable-textfile or --disable-textfile was given. | |
5558 | if test "${enable_textfile+set}" = set; then | |
5559 | enableval="$enable_textfile" | |
5560 | ||
5561 | if test "$enableval" = yes; then | |
5562 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5563 | else | |
5564 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5565 | fi | |
5566 | ||
5567 | else | |
5568 | ||
5569 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5570 | if test "x$LINE" != x ; then | |
5571 | eval "DEFAULT_$LINE" | |
5572 | else | |
5573 | no_cache=1 | |
5574 | fi | |
5575 | ||
5576 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5577 | ||
5578 | fi; | |
5579 | ||
5580 | eval "$ac_cv_use_textfile" | |
5581 | if test "$no_cache" != 1; then | |
5582 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5583 | fi | |
5584 | ||
5585 | if test "$wxUSE_TEXTFILE" = yes; then | |
5586 | echo "$as_me:$LINENO: result: yes" >&5 | |
5587 | echo "${ECHO_T}yes" >&6 | |
5588 | else | |
5589 | echo "$as_me:$LINENO: result: no" >&5 | |
5590 | echo "${ECHO_T}no" >&6 | |
5591 | fi | |
5592 | ||
5593 | ||
5594 | enablestring= | |
5595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5596 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5597 | no_cache=0 | |
5598 | # Check whether --enable-timer or --disable-timer was given. | |
5599 | if test "${enable_timer+set}" = set; then | |
5600 | enableval="$enable_timer" | |
5601 | ||
5602 | if test "$enableval" = yes; then | |
5603 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5604 | else | |
5605 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5606 | fi | |
5607 | ||
5608 | else | |
5609 | ||
5610 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5611 | if test "x$LINE" != x ; then | |
5612 | eval "DEFAULT_$LINE" | |
5613 | else | |
5614 | no_cache=1 | |
5615 | fi | |
5616 | ||
5617 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5618 | ||
5619 | fi; | |
5620 | ||
5621 | eval "$ac_cv_use_timer" | |
5622 | if test "$no_cache" != 1; then | |
5623 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5624 | fi | |
5625 | ||
5626 | if test "$wxUSE_TIMER" = yes; then | |
5627 | echo "$as_me:$LINENO: result: yes" >&5 | |
5628 | echo "${ECHO_T}yes" >&6 | |
5629 | else | |
5630 | echo "$as_me:$LINENO: result: no" >&5 | |
5631 | echo "${ECHO_T}no" >&6 | |
5632 | fi | |
5633 | ||
5634 | ||
5635 | enablestring= | |
5636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5637 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5638 | no_cache=0 | |
5639 | # Check whether --enable-unicode or --disable-unicode was given. | |
5640 | if test "${enable_unicode+set}" = set; then | |
5641 | enableval="$enable_unicode" | |
5642 | ||
5643 | if test "$enableval" = yes; then | |
5644 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5645 | else | |
5646 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5647 | fi | |
5648 | ||
5649 | else | |
5650 | ||
5651 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5652 | if test "x$LINE" != x ; then | |
5653 | eval "DEFAULT_$LINE" | |
5654 | else | |
5655 | no_cache=1 | |
5656 | fi | |
5657 | ||
5658 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5659 | ||
5660 | fi; | |
5661 | ||
5662 | eval "$ac_cv_use_unicode" | |
5663 | if test "$no_cache" != 1; then | |
5664 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5665 | fi | |
5666 | ||
5667 | if test "$wxUSE_UNICODE" = yes; then | |
5668 | echo "$as_me:$LINENO: result: yes" >&5 | |
5669 | echo "${ECHO_T}yes" >&6 | |
5670 | else | |
5671 | echo "$as_me:$LINENO: result: no" >&5 | |
5672 | echo "${ECHO_T}no" >&6 | |
5673 | fi | |
5674 | ||
5675 | ||
5676 | enablestring= | |
5677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5678 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5679 | no_cache=0 | |
5680 | # Check whether --enable-sound or --disable-sound was given. | |
5681 | if test "${enable_sound+set}" = set; then | |
5682 | enableval="$enable_sound" | |
5683 | ||
5684 | if test "$enableval" = yes; then | |
5685 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5686 | else | |
5687 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5688 | fi | |
5689 | ||
5690 | else | |
5691 | ||
5692 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5693 | if test "x$LINE" != x ; then | |
5694 | eval "DEFAULT_$LINE" | |
5695 | else | |
5696 | no_cache=1 | |
5697 | fi | |
5698 | ||
5699 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5700 | ||
5701 | fi; | |
5702 | ||
5703 | eval "$ac_cv_use_sound" | |
5704 | if test "$no_cache" != 1; then | |
5705 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5706 | fi | |
5707 | ||
5708 | if test "$wxUSE_SOUND" = yes; then | |
5709 | echo "$as_me:$LINENO: result: yes" >&5 | |
5710 | echo "${ECHO_T}yes" >&6 | |
5711 | else | |
5712 | echo "$as_me:$LINENO: result: no" >&5 | |
5713 | echo "${ECHO_T}no" >&6 | |
5714 | fi | |
5715 | ||
5716 | ||
5717 | enablestring= | |
5718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5719 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5720 | no_cache=0 | |
5721 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5722 | if test "${enable_wxprintfv+set}" = set; then | |
5723 | enableval="$enable_wxprintfv" | |
5724 | ||
5725 | if test "$enableval" = yes; then | |
5726 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5727 | else | |
5728 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5729 | fi | |
5730 | ||
5731 | else | |
5732 | ||
5733 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5734 | if test "x$LINE" != x ; then | |
5735 | eval "DEFAULT_$LINE" | |
5736 | else | |
5737 | no_cache=1 | |
5738 | fi | |
5739 | ||
5740 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5741 | ||
5742 | fi; | |
5743 | ||
5744 | eval "$ac_cv_use_wxprintfv" | |
5745 | if test "$no_cache" != 1; then | |
5746 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5747 | fi | |
5748 | ||
5749 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5750 | echo "$as_me:$LINENO: result: yes" >&5 | |
5751 | echo "${ECHO_T}yes" >&6 | |
5752 | else | |
5753 | echo "$as_me:$LINENO: result: no" >&5 | |
5754 | echo "${ECHO_T}no" >&6 | |
5755 | fi | |
5756 | ||
5757 | ||
5758 | enablestring= | |
5759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5760 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5761 | no_cache=0 | |
5762 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5763 | if test "${enable_zipstream+set}" = set; then | |
5764 | enableval="$enable_zipstream" | |
5765 | ||
5766 | if test "$enableval" = yes; then | |
5767 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5768 | else | |
5769 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5770 | fi | |
5771 | ||
5772 | else | |
5773 | ||
5774 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5775 | if test "x$LINE" != x ; then | |
5776 | eval "DEFAULT_$LINE" | |
5777 | else | |
5778 | no_cache=1 | |
5779 | fi | |
5780 | ||
5781 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5782 | ||
5783 | fi; | |
5784 | ||
5785 | eval "$ac_cv_use_zipstream" | |
5786 | if test "$no_cache" != 1; then | |
5787 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5788 | fi | |
5789 | ||
5790 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5791 | echo "$as_me:$LINENO: result: yes" >&5 | |
5792 | echo "${ECHO_T}yes" >&6 | |
5793 | else | |
5794 | echo "$as_me:$LINENO: result: no" >&5 | |
5795 | echo "${ECHO_T}no" >&6 | |
5796 | fi | |
5797 | ||
5798 | ||
a848cd7e SC |
5799 | |
5800 | enablestring= | |
5801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5802 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5803 | no_cache=0 | |
5804 | # Check whether --enable-url or --disable-url was given. | |
5805 | if test "${enable_url+set}" = set; then | |
5806 | enableval="$enable_url" | |
5807 | ||
5808 | if test "$enableval" = yes; then | |
5809 | ac_cv_use_url='wxUSE_URL=yes' | |
5810 | else | |
5811 | ac_cv_use_url='wxUSE_URL=no' | |
5812 | fi | |
5813 | ||
5814 | else | |
5815 | ||
5816 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5817 | if test "x$LINE" != x ; then | |
5818 | eval "DEFAULT_$LINE" | |
5819 | else | |
5820 | no_cache=1 | |
5821 | fi | |
5822 | ||
5823 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5824 | ||
5825 | fi; | |
5826 | ||
5827 | eval "$ac_cv_use_url" | |
5828 | if test "$no_cache" != 1; then | |
5829 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5830 | fi | |
5831 | ||
5832 | if test "$wxUSE_URL" = yes; then | |
5833 | echo "$as_me:$LINENO: result: yes" >&5 | |
5834 | echo "${ECHO_T}yes" >&6 | |
5835 | else | |
5836 | echo "$as_me:$LINENO: result: no" >&5 | |
5837 | echo "${ECHO_T}no" >&6 | |
5838 | fi | |
5839 | ||
5840 | ||
5841 | enablestring= | |
5842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5843 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5844 | no_cache=0 | |
5845 | # Check whether --enable-protocol or --disable-protocol was given. | |
5846 | if test "${enable_protocol+set}" = set; then | |
5847 | enableval="$enable_protocol" | |
5848 | ||
5849 | if test "$enableval" = yes; then | |
5850 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5851 | else | |
5852 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5853 | fi | |
5854 | ||
5855 | else | |
5856 | ||
5857 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5858 | if test "x$LINE" != x ; then | |
5859 | eval "DEFAULT_$LINE" | |
5860 | else | |
5861 | no_cache=1 | |
5862 | fi | |
5863 | ||
5864 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5865 | ||
5866 | fi; | |
5867 | ||
5868 | eval "$ac_cv_use_protocol" | |
5869 | if test "$no_cache" != 1; then | |
5870 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5871 | fi | |
5872 | ||
5873 | if test "$wxUSE_PROTOCOL" = yes; then | |
5874 | echo "$as_me:$LINENO: result: yes" >&5 | |
5875 | echo "${ECHO_T}yes" >&6 | |
5876 | else | |
5877 | echo "$as_me:$LINENO: result: no" >&5 | |
5878 | echo "${ECHO_T}no" >&6 | |
5879 | fi | |
5880 | ||
5881 | ||
5882 | enablestring= | |
5883 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5884 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5885 | no_cache=0 | |
5886 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5887 | if test "${enable_protocol_http+set}" = set; then | |
5888 | enableval="$enable_protocol_http" | |
5889 | ||
5890 | if test "$enableval" = yes; then | |
5891 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5892 | else | |
5893 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5894 | fi | |
5895 | ||
5896 | else | |
5897 | ||
5898 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5899 | if test "x$LINE" != x ; then | |
5900 | eval "DEFAULT_$LINE" | |
5901 | else | |
5902 | no_cache=1 | |
5903 | fi | |
5904 | ||
5905 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5906 | ||
5907 | fi; | |
5908 | ||
5909 | eval "$ac_cv_use_protocol_http" | |
5910 | if test "$no_cache" != 1; then | |
5911 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5912 | fi | |
5913 | ||
5914 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5915 | echo "$as_me:$LINENO: result: yes" >&5 | |
5916 | echo "${ECHO_T}yes" >&6 | |
5917 | else | |
5918 | echo "$as_me:$LINENO: result: no" >&5 | |
5919 | echo "${ECHO_T}no" >&6 | |
5920 | fi | |
5921 | ||
5922 | ||
5923 | enablestring= | |
5924 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5925 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5926 | no_cache=0 | |
5927 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5928 | if test "${enable_protocol_ftp+set}" = set; then | |
5929 | enableval="$enable_protocol_ftp" | |
5930 | ||
5931 | if test "$enableval" = yes; then | |
5932 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5933 | else | |
5934 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5935 | fi | |
5936 | ||
5937 | else | |
5938 | ||
5939 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5940 | if test "x$LINE" != x ; then | |
5941 | eval "DEFAULT_$LINE" | |
5942 | else | |
5943 | no_cache=1 | |
5944 | fi | |
5945 | ||
5946 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5947 | ||
5948 | fi; | |
5949 | ||
5950 | eval "$ac_cv_use_protocol_ftp" | |
5951 | if test "$no_cache" != 1; then | |
5952 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5953 | fi | |
5954 | ||
5955 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5956 | echo "$as_me:$LINENO: result: yes" >&5 | |
5957 | echo "${ECHO_T}yes" >&6 | |
5958 | else | |
5959 | echo "$as_me:$LINENO: result: no" >&5 | |
5960 | echo "${ECHO_T}no" >&6 | |
5961 | fi | |
5962 | ||
5963 | ||
5964 | enablestring= | |
5965 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5966 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5967 | no_cache=0 | |
5968 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5969 | if test "${enable_protocol_file+set}" = set; then | |
5970 | enableval="$enable_protocol_file" | |
5971 | ||
5972 | if test "$enableval" = yes; then | |
5973 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5974 | else | |
5975 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5976 | fi | |
5977 | ||
5978 | else | |
5979 | ||
5980 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5981 | if test "x$LINE" != x ; then | |
5982 | eval "DEFAULT_$LINE" | |
5983 | else | |
5984 | no_cache=1 | |
5985 | fi | |
5986 | ||
5987 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5988 | ||
5989 | fi; | |
5990 | ||
5991 | eval "$ac_cv_use_protocol_file" | |
5992 | if test "$no_cache" != 1; then | |
5993 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5994 | fi | |
5995 | ||
5996 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
5997 | echo "$as_me:$LINENO: result: yes" >&5 | |
5998 | echo "${ECHO_T}yes" >&6 | |
5999 | else | |
6000 | echo "$as_me:$LINENO: result: no" >&5 | |
6001 | echo "${ECHO_T}no" >&6 | |
6002 | fi | |
6003 | ||
6004 | ||
6005 | ||
6006 | ||
6007 | ||
6008 | enablestring= | |
6009 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6010 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6011 | no_cache=0 | |
6012 | # Check whether --enable-threads or --disable-threads was given. | |
6013 | if test "${enable_threads+set}" = set; then | |
6014 | enableval="$enable_threads" | |
6015 | ||
6016 | if test "$enableval" = yes; then | |
6017 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6018 | else | |
6019 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6020 | fi | |
6021 | ||
6022 | else | |
6023 | ||
6024 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6025 | if test "x$LINE" != x ; then | |
6026 | eval "DEFAULT_$LINE" | |
6027 | else | |
6028 | no_cache=1 | |
6029 | fi | |
6030 | ||
6031 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6032 | ||
6033 | fi; | |
6034 | ||
6035 | eval "$ac_cv_use_threads" | |
6036 | if test "$no_cache" != 1; then | |
6037 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6038 | fi | |
6039 | ||
6040 | if test "$wxUSE_THREADS" = yes; then | |
6041 | echo "$as_me:$LINENO: result: yes" >&5 | |
6042 | echo "${ECHO_T}yes" >&6 | |
6043 | else | |
6044 | echo "$as_me:$LINENO: result: no" >&5 | |
6045 | echo "${ECHO_T}no" >&6 | |
6046 | fi | |
6047 | ||
6048 | ||
6049 | if test "$wxUSE_GUI" = "yes"; then | |
6050 | ||
6051 | ||
6052 | ||
6053 | enablestring= | |
6054 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6055 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6056 | no_cache=0 | |
6057 | # Check whether --enable-docview or --disable-docview was given. | |
6058 | if test "${enable_docview+set}" = set; then | |
6059 | enableval="$enable_docview" | |
6060 | ||
6061 | if test "$enableval" = yes; then | |
6062 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6063 | else | |
6064 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6065 | fi | |
6066 | ||
6067 | else | |
6068 | ||
6069 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6070 | if test "x$LINE" != x ; then | |
6071 | eval "DEFAULT_$LINE" | |
6072 | else | |
6073 | no_cache=1 | |
6074 | fi | |
6075 | ||
6076 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6077 | ||
6078 | fi; | |
6079 | ||
6080 | eval "$ac_cv_use_docview" | |
6081 | if test "$no_cache" != 1; then | |
6082 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6083 | fi | |
6084 | ||
6085 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6086 | echo "$as_me:$LINENO: result: yes" >&5 | |
6087 | echo "${ECHO_T}yes" >&6 | |
6088 | else | |
6089 | echo "$as_me:$LINENO: result: no" >&5 | |
6090 | echo "${ECHO_T}no" >&6 | |
6091 | fi | |
6092 | ||
6093 | ||
6094 | enablestring= | |
6095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6096 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6097 | no_cache=0 | |
6098 | # Check whether --enable-help or --disable-help was given. | |
6099 | if test "${enable_help+set}" = set; then | |
6100 | enableval="$enable_help" | |
6101 | ||
6102 | if test "$enableval" = yes; then | |
6103 | ac_cv_use_help='wxUSE_HELP=yes' | |
6104 | else | |
6105 | ac_cv_use_help='wxUSE_HELP=no' | |
6106 | fi | |
6107 | ||
6108 | else | |
6109 | ||
6110 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6111 | if test "x$LINE" != x ; then | |
6112 | eval "DEFAULT_$LINE" | |
6113 | else | |
6114 | no_cache=1 | |
6115 | fi | |
6116 | ||
6117 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6118 | ||
6119 | fi; | |
6120 | ||
6121 | eval "$ac_cv_use_help" | |
6122 | if test "$no_cache" != 1; then | |
6123 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6124 | fi | |
6125 | ||
6126 | if test "$wxUSE_HELP" = yes; then | |
6127 | echo "$as_me:$LINENO: result: yes" >&5 | |
6128 | echo "${ECHO_T}yes" >&6 | |
6129 | else | |
6130 | echo "$as_me:$LINENO: result: no" >&5 | |
6131 | echo "${ECHO_T}no" >&6 | |
6132 | fi | |
6133 | ||
6134 | ||
6135 | enablestring= | |
6136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6137 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6138 | no_cache=0 | |
6139 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6140 | if test "${enable_mshtmlhelp+set}" = set; then | |
6141 | enableval="$enable_mshtmlhelp" | |
6142 | ||
6143 | if test "$enableval" = yes; then | |
6144 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6145 | else | |
6146 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6147 | fi | |
6148 | ||
6149 | else | |
6150 | ||
6151 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6152 | if test "x$LINE" != x ; then | |
6153 | eval "DEFAULT_$LINE" | |
6154 | else | |
6155 | no_cache=1 | |
6156 | fi | |
6157 | ||
6158 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6159 | ||
6160 | fi; | |
6161 | ||
6162 | eval "$ac_cv_use_mshtmlhelp" | |
6163 | if test "$no_cache" != 1; then | |
6164 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6165 | fi | |
6166 | ||
6167 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6168 | echo "$as_me:$LINENO: result: yes" >&5 | |
6169 | echo "${ECHO_T}yes" >&6 | |
6170 | else | |
6171 | echo "$as_me:$LINENO: result: no" >&5 | |
6172 | echo "${ECHO_T}no" >&6 | |
6173 | fi | |
6174 | ||
6175 | ||
6176 | enablestring= | |
6177 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6178 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6179 | no_cache=0 | |
6180 | # Check whether --enable-html or --disable-html was given. | |
6181 | if test "${enable_html+set}" = set; then | |
6182 | enableval="$enable_html" | |
6183 | ||
6184 | if test "$enableval" = yes; then | |
6185 | ac_cv_use_html='wxUSE_HTML=yes' | |
6186 | else | |
6187 | ac_cv_use_html='wxUSE_HTML=no' | |
6188 | fi | |
6189 | ||
6190 | else | |
6191 | ||
6192 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6193 | if test "x$LINE" != x ; then | |
6194 | eval "DEFAULT_$LINE" | |
6195 | else | |
6196 | no_cache=1 | |
6197 | fi | |
6198 | ||
6199 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6200 | ||
6201 | fi; | |
6202 | ||
6203 | eval "$ac_cv_use_html" | |
6204 | if test "$no_cache" != 1; then | |
6205 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6206 | fi | |
6207 | ||
6208 | if test "$wxUSE_HTML" = yes; then | |
6209 | echo "$as_me:$LINENO: result: yes" >&5 | |
6210 | echo "${ECHO_T}yes" >&6 | |
6211 | else | |
6212 | echo "$as_me:$LINENO: result: no" >&5 | |
6213 | echo "${ECHO_T}no" >&6 | |
6214 | fi | |
6215 | ||
6216 | ||
6217 | enablestring= | |
6218 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6219 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6220 | no_cache=0 | |
6221 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6222 | if test "${enable_htmlhelp+set}" = set; then | |
6223 | enableval="$enable_htmlhelp" | |
6224 | ||
6225 | if test "$enableval" = yes; then | |
6226 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6227 | else | |
6228 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6229 | fi | |
6230 | ||
6231 | else | |
6232 | ||
6233 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6234 | if test "x$LINE" != x ; then | |
6235 | eval "DEFAULT_$LINE" | |
6236 | else | |
6237 | no_cache=1 | |
6238 | fi | |
6239 | ||
6240 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6241 | ||
6242 | fi; | |
6243 | ||
6244 | eval "$ac_cv_use_htmlhelp" | |
6245 | if test "$no_cache" != 1; then | |
6246 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6247 | fi | |
6248 | ||
6249 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6250 | echo "$as_me:$LINENO: result: yes" >&5 | |
6251 | echo "${ECHO_T}yes" >&6 | |
6252 | else | |
6253 | echo "$as_me:$LINENO: result: no" >&5 | |
6254 | echo "${ECHO_T}no" >&6 | |
6255 | fi | |
6256 | ||
6257 | ||
6258 | enablestring= | |
6259 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6260 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6261 | no_cache=0 | |
6262 | # Check whether --enable-constraints or --disable-constraints was given. | |
6263 | if test "${enable_constraints+set}" = set; then | |
6264 | enableval="$enable_constraints" | |
6265 | ||
6266 | if test "$enableval" = yes; then | |
6267 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6268 | else | |
6269 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6270 | fi | |
6271 | ||
6272 | else | |
6273 | ||
6274 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6275 | if test "x$LINE" != x ; then | |
6276 | eval "DEFAULT_$LINE" | |
6277 | else | |
6278 | no_cache=1 | |
6279 | fi | |
6280 | ||
6281 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6282 | ||
6283 | fi; | |
6284 | ||
6285 | eval "$ac_cv_use_constraints" | |
6286 | if test "$no_cache" != 1; then | |
6287 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6288 | fi | |
6289 | ||
6290 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6291 | echo "$as_me:$LINENO: result: yes" >&5 | |
6292 | echo "${ECHO_T}yes" >&6 | |
6293 | else | |
6294 | echo "$as_me:$LINENO: result: no" >&5 | |
6295 | echo "${ECHO_T}no" >&6 | |
6296 | fi | |
6297 | ||
6298 | ||
6299 | enablestring= | |
6300 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6301 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6302 | no_cache=0 | |
6303 | # Check whether --enable-printarch or --disable-printarch was given. | |
6304 | if test "${enable_printarch+set}" = set; then | |
6305 | enableval="$enable_printarch" | |
6306 | ||
6307 | if test "$enableval" = yes; then | |
6308 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6309 | else | |
6310 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6311 | fi | |
6312 | ||
6313 | else | |
6314 | ||
6315 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6316 | if test "x$LINE" != x ; then | |
6317 | eval "DEFAULT_$LINE" | |
6318 | else | |
6319 | no_cache=1 | |
6320 | fi | |
6321 | ||
6322 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6323 | ||
6324 | fi; | |
6325 | ||
6326 | eval "$ac_cv_use_printarch" | |
6327 | if test "$no_cache" != 1; then | |
6328 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6329 | fi | |
6330 | ||
6331 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6332 | echo "$as_me:$LINENO: result: yes" >&5 | |
6333 | echo "${ECHO_T}yes" >&6 | |
6334 | else | |
6335 | echo "$as_me:$LINENO: result: no" >&5 | |
6336 | echo "${ECHO_T}no" >&6 | |
6337 | fi | |
6338 | ||
6339 | ||
6340 | enablestring= | |
6341 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6342 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6343 | no_cache=0 | |
6344 | # Check whether --enable-mdi or --disable-mdi was given. | |
6345 | if test "${enable_mdi+set}" = set; then | |
6346 | enableval="$enable_mdi" | |
6347 | ||
6348 | if test "$enableval" = yes; then | |
8a7b1113 | 6349 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6350 | else |
8a7b1113 | 6351 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6352 | fi |
6353 | ||
6354 | else | |
6355 | ||
8a7b1113 | 6356 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6357 | if test "x$LINE" != x ; then |
6358 | eval "DEFAULT_$LINE" | |
6359 | else | |
6360 | no_cache=1 | |
6361 | fi | |
6362 | ||
8a7b1113 | 6363 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6364 | |
6365 | fi; | |
6366 | ||
6367 | eval "$ac_cv_use_mdi" | |
6368 | if test "$no_cache" != 1; then | |
6369 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6370 | fi | |
6371 | ||
8a7b1113 VZ |
6372 | if test "$wxUSE_MDI" = yes; then |
6373 | echo "$as_me:$LINENO: result: yes" >&5 | |
6374 | echo "${ECHO_T}yes" >&6 | |
6375 | else | |
6376 | echo "$as_me:$LINENO: result: no" >&5 | |
6377 | echo "${ECHO_T}no" >&6 | |
6378 | fi | |
6379 | ||
6380 | ||
6381 | enablestring= | |
6382 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6383 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6384 | no_cache=0 | |
6385 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6386 | if test "${enable_mdidoc+set}" = set; then | |
6387 | enableval="$enable_mdidoc" | |
6388 | ||
6389 | if test "$enableval" = yes; then | |
6390 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6391 | else | |
6392 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6393 | fi | |
6394 | ||
6395 | else | |
6396 | ||
6397 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6398 | if test "x$LINE" != x ; then | |
6399 | eval "DEFAULT_$LINE" | |
6400 | else | |
6401 | no_cache=1 | |
6402 | fi | |
6403 | ||
6404 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6405 | ||
6406 | fi; | |
6407 | ||
6408 | eval "$ac_cv_use_mdidoc" | |
6409 | if test "$no_cache" != 1; then | |
6410 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6411 | fi | |
6412 | ||
a848cd7e SC |
6413 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6414 | echo "$as_me:$LINENO: result: yes" >&5 | |
6415 | echo "${ECHO_T}yes" >&6 | |
6416 | else | |
6417 | echo "$as_me:$LINENO: result: no" >&5 | |
6418 | echo "${ECHO_T}no" >&6 | |
6419 | fi | |
6420 | ||
6421 | ||
6422 | enablestring= | |
6423 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6424 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6425 | no_cache=0 | |
6426 | # Check whether --enable-loggui or --disable-loggui was given. | |
6427 | if test "${enable_loggui+set}" = set; then | |
6428 | enableval="$enable_loggui" | |
6429 | ||
6430 | if test "$enableval" = yes; then | |
6431 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6432 | else | |
6433 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6434 | fi | |
6435 | ||
6436 | else | |
6437 | ||
6438 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6439 | if test "x$LINE" != x ; then | |
6440 | eval "DEFAULT_$LINE" | |
6441 | else | |
6442 | no_cache=1 | |
6443 | fi | |
6444 | ||
6445 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6446 | ||
6447 | fi; | |
6448 | ||
6449 | eval "$ac_cv_use_loggui" | |
6450 | if test "$no_cache" != 1; then | |
6451 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6452 | fi | |
6453 | ||
6454 | if test "$wxUSE_LOGGUI" = yes; then | |
6455 | echo "$as_me:$LINENO: result: yes" >&5 | |
6456 | echo "${ECHO_T}yes" >&6 | |
6457 | else | |
6458 | echo "$as_me:$LINENO: result: no" >&5 | |
6459 | echo "${ECHO_T}no" >&6 | |
6460 | fi | |
6461 | ||
6462 | ||
6463 | enablestring= | |
6464 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6465 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6466 | no_cache=0 | |
6467 | # Check whether --enable-logwin or --disable-logwin was given. | |
6468 | if test "${enable_logwin+set}" = set; then | |
6469 | enableval="$enable_logwin" | |
6470 | ||
6471 | if test "$enableval" = yes; then | |
6472 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6473 | else | |
6474 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6475 | fi | |
6476 | ||
6477 | else | |
6478 | ||
6479 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6480 | if test "x$LINE" != x ; then | |
6481 | eval "DEFAULT_$LINE" | |
6482 | else | |
6483 | no_cache=1 | |
6484 | fi | |
6485 | ||
6486 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6487 | ||
6488 | fi; | |
6489 | ||
6490 | eval "$ac_cv_use_logwin" | |
6491 | if test "$no_cache" != 1; then | |
6492 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6493 | fi | |
6494 | ||
6495 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6496 | echo "$as_me:$LINENO: result: yes" >&5 | |
6497 | echo "${ECHO_T}yes" >&6 | |
6498 | else | |
6499 | echo "$as_me:$LINENO: result: no" >&5 | |
6500 | echo "${ECHO_T}no" >&6 | |
6501 | fi | |
6502 | ||
6503 | ||
6504 | enablestring= | |
6505 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6506 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6507 | no_cache=0 | |
6508 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6509 | if test "${enable_logdialog+set}" = set; then | |
6510 | enableval="$enable_logdialog" | |
6511 | ||
6512 | if test "$enableval" = yes; then | |
6513 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6514 | else | |
6515 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6516 | fi | |
6517 | ||
6518 | else | |
6519 | ||
6520 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6521 | if test "x$LINE" != x ; then | |
6522 | eval "DEFAULT_$LINE" | |
6523 | else | |
6524 | no_cache=1 | |
6525 | fi | |
6526 | ||
6527 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6528 | ||
6529 | fi; | |
6530 | ||
6531 | eval "$ac_cv_use_logdialog" | |
6532 | if test "$no_cache" != 1; then | |
6533 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6534 | fi | |
6535 | ||
6536 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6537 | echo "$as_me:$LINENO: result: yes" >&5 | |
6538 | echo "${ECHO_T}yes" >&6 | |
6539 | else | |
6540 | echo "$as_me:$LINENO: result: no" >&5 | |
6541 | echo "${ECHO_T}no" >&6 | |
6542 | fi | |
6543 | ||
6544 | ||
646b6ec1 VS |
6545 | enablestring= |
6546 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6547 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6548 | no_cache=0 | |
6549 | # Check whether --enable-webkit or --disable-webkit was given. | |
6550 | if test "${enable_webkit+set}" = set; then | |
6551 | enableval="$enable_webkit" | |
6552 | ||
6553 | if test "$enableval" = yes; then | |
6554 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6555 | else | |
6556 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6557 | fi | |
6558 | ||
6559 | else | |
6560 | ||
6561 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6562 | if test "x$LINE" != x ; then | |
6563 | eval "DEFAULT_$LINE" | |
6564 | else | |
6565 | no_cache=1 | |
6566 | fi | |
6567 | ||
6568 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6569 | ||
6570 | fi; | |
6571 | ||
6572 | eval "$ac_cv_use_webkit" | |
6573 | if test "$no_cache" != 1; then | |
6574 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6575 | fi | |
6576 | ||
6577 | if test "$wxUSE_WEBKIT" = yes; then | |
6578 | echo "$as_me:$LINENO: result: yes" >&5 | |
6579 | echo "${ECHO_T}yes" >&6 | |
6580 | else | |
6581 | echo "$as_me:$LINENO: result: no" >&5 | |
6582 | echo "${ECHO_T}no" >&6 | |
6583 | fi | |
6584 | ||
6585 | ||
a848cd7e SC |
6586 | |
6587 | enablestring= | |
6588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6589 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6590 | no_cache=0 | |
6591 | # Check whether --enable-postscript or --disable-postscript was given. | |
6592 | if test "${enable_postscript+set}" = set; then | |
6593 | enableval="$enable_postscript" | |
6594 | ||
6595 | if test "$enableval" = yes; then | |
6596 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6597 | else | |
6598 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6599 | fi | |
6600 | ||
6601 | else | |
6602 | ||
6603 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6604 | if test "x$LINE" != x ; then | |
6605 | eval "DEFAULT_$LINE" | |
6606 | else | |
6607 | no_cache=1 | |
6608 | fi | |
6609 | ||
6610 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6611 | ||
6612 | fi; | |
6613 | ||
6614 | eval "$ac_cv_use_postscript" | |
6615 | if test "$no_cache" != 1; then | |
6616 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6617 | fi | |
6618 | ||
6619 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6620 | echo "$as_me:$LINENO: result: yes" >&5 | |
6621 | echo "${ECHO_T}yes" >&6 | |
6622 | else | |
6623 | echo "$as_me:$LINENO: result: no" >&5 | |
6624 | echo "${ECHO_T}no" >&6 | |
6625 | fi | |
6626 | ||
6627 | ||
6628 | ||
6629 | ||
6630 | ||
6631 | enablestring= | |
6632 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6633 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6634 | no_cache=0 | |
6635 | # Check whether --enable-prologio or --disable-prologio was given. | |
6636 | if test "${enable_prologio+set}" = set; then | |
6637 | enableval="$enable_prologio" | |
6638 | ||
6639 | if test "$enableval" = yes; then | |
6640 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6641 | else | |
6642 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6643 | fi | |
6644 | ||
6645 | else | |
6646 | ||
6647 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6648 | if test "x$LINE" != x ; then | |
6649 | eval "DEFAULT_$LINE" | |
6650 | else | |
6651 | no_cache=1 | |
6652 | fi | |
6653 | ||
6654 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6655 | ||
6656 | fi; | |
6657 | ||
6658 | eval "$ac_cv_use_prologio" | |
6659 | if test "$no_cache" != 1; then | |
6660 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6661 | fi | |
6662 | ||
6663 | if test "$wxUSE_PROLOGIO" = yes; then | |
6664 | echo "$as_me:$LINENO: result: yes" >&5 | |
6665 | echo "${ECHO_T}yes" >&6 | |
6666 | else | |
6667 | echo "$as_me:$LINENO: result: no" >&5 | |
6668 | echo "${ECHO_T}no" >&6 | |
6669 | fi | |
6670 | ||
6671 | ||
6672 | enablestring= | |
6673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6674 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6675 | no_cache=0 | |
6676 | # Check whether --enable-resources or --disable-resources was given. | |
6677 | if test "${enable_resources+set}" = set; then | |
6678 | enableval="$enable_resources" | |
6679 | ||
6680 | if test "$enableval" = yes; then | |
6681 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6682 | else | |
6683 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6684 | fi | |
6685 | ||
6686 | else | |
6687 | ||
6688 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6689 | if test "x$LINE" != x ; then | |
6690 | eval "DEFAULT_$LINE" | |
6691 | else | |
6692 | no_cache=1 | |
6693 | fi | |
6694 | ||
6695 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6696 | ||
6697 | fi; | |
6698 | ||
6699 | eval "$ac_cv_use_resources" | |
6700 | if test "$no_cache" != 1; then | |
6701 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6702 | fi | |
6703 | ||
6704 | if test "$wxUSE_RESOURCES" = yes; then | |
6705 | echo "$as_me:$LINENO: result: yes" >&5 | |
6706 | echo "${ECHO_T}yes" >&6 | |
6707 | else | |
6708 | echo "$as_me:$LINENO: result: no" >&5 | |
6709 | echo "${ECHO_T}no" >&6 | |
6710 | fi | |
6711 | ||
6712 | ||
6713 | ||
6714 | ||
6715 | enablestring= | |
6716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6717 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6718 | no_cache=0 | |
6719 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6720 | if test "${enable_clipboard+set}" = set; then | |
6721 | enableval="$enable_clipboard" | |
6722 | ||
6723 | if test "$enableval" = yes; then | |
6724 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6725 | else | |
6726 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6727 | fi | |
6728 | ||
6729 | else | |
6730 | ||
6731 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6732 | if test "x$LINE" != x ; then | |
6733 | eval "DEFAULT_$LINE" | |
6734 | else | |
6735 | no_cache=1 | |
6736 | fi | |
6737 | ||
6738 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6739 | ||
6740 | fi; | |
6741 | ||
6742 | eval "$ac_cv_use_clipboard" | |
6743 | if test "$no_cache" != 1; then | |
6744 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6745 | fi | |
6746 | ||
6747 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6748 | echo "$as_me:$LINENO: result: yes" >&5 | |
6749 | echo "${ECHO_T}yes" >&6 | |
6750 | else | |
6751 | echo "$as_me:$LINENO: result: no" >&5 | |
6752 | echo "${ECHO_T}no" >&6 | |
6753 | fi | |
6754 | ||
6755 | ||
6756 | enablestring= | |
6757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6758 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6759 | no_cache=0 | |
6760 | # Check whether --enable-dnd or --disable-dnd was given. | |
6761 | if test "${enable_dnd+set}" = set; then | |
6762 | enableval="$enable_dnd" | |
6763 | ||
6764 | if test "$enableval" = yes; then | |
6765 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6766 | else | |
6767 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6768 | fi | |
6769 | ||
6770 | else | |
6771 | ||
6772 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6773 | if test "x$LINE" != x ; then | |
6774 | eval "DEFAULT_$LINE" | |
6775 | else | |
6776 | no_cache=1 | |
6777 | fi | |
6778 | ||
6779 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6780 | ||
6781 | fi; | |
6782 | ||
6783 | eval "$ac_cv_use_dnd" | |
6784 | if test "$no_cache" != 1; then | |
6785 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6786 | fi | |
6787 | ||
6788 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6789 | echo "$as_me:$LINENO: result: yes" >&5 | |
6790 | echo "${ECHO_T}yes" >&6 | |
6791 | else | |
6792 | echo "$as_me:$LINENO: result: no" >&5 | |
6793 | echo "${ECHO_T}no" >&6 | |
6794 | fi | |
6795 | ||
6796 | ||
6797 | enablestring= | |
6798 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6799 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6800 | no_cache=0 | |
6801 | # Check whether --enable-metafile or --disable-metafile was given. | |
6802 | if test "${enable_metafile+set}" = set; then | |
6803 | enableval="$enable_metafile" | |
6804 | ||
6805 | if test "$enableval" = yes; then | |
6806 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6807 | else | |
6808 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6809 | fi | |
6810 | ||
6811 | else | |
6812 | ||
6813 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6814 | if test "x$LINE" != x ; then | |
6815 | eval "DEFAULT_$LINE" | |
6816 | else | |
6817 | no_cache=1 | |
6818 | fi | |
6819 | ||
6820 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6821 | ||
6822 | fi; | |
6823 | ||
6824 | eval "$ac_cv_use_metafile" | |
6825 | if test "$no_cache" != 1; then | |
6826 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6827 | fi | |
6828 | ||
6829 | if test "$wxUSE_METAFILE" = yes; then | |
6830 | echo "$as_me:$LINENO: result: yes" >&5 | |
6831 | echo "${ECHO_T}yes" >&6 | |
6832 | else | |
6833 | echo "$as_me:$LINENO: result: no" >&5 | |
6834 | echo "${ECHO_T}no" >&6 | |
6835 | fi | |
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6840 | ||
6841 | enablestring= | |
6842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6843 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6844 | no_cache=0 | |
6845 | # Check whether --enable-controls or --disable-controls was given. | |
6846 | if test "${enable_controls+set}" = set; then | |
6847 | enableval="$enable_controls" | |
6848 | ||
6849 | if test "$enableval" = yes; then | |
6850 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6851 | else | |
6852 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6853 | fi | |
6854 | ||
6855 | else | |
6856 | ||
6857 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6858 | if test "x$LINE" != x ; then | |
6859 | eval "DEFAULT_$LINE" | |
6860 | else | |
6861 | no_cache=1 | |
6862 | fi | |
6863 | ||
6864 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6865 | ||
6866 | fi; | |
6867 | ||
6868 | eval "$ac_cv_use_controls" | |
6869 | if test "$no_cache" != 1; then | |
6870 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6871 | fi | |
6872 | ||
6873 | if test "$wxUSE_CONTROLS" = yes; then | |
6874 | echo "$as_me:$LINENO: result: yes" >&5 | |
6875 | echo "${ECHO_T}yes" >&6 | |
6876 | else | |
6877 | echo "$as_me:$LINENO: result: no" >&5 | |
6878 | echo "${ECHO_T}no" >&6 | |
6879 | fi | |
6880 | ||
6881 | ||
6882 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6883 | DEFAULT_wxUSE_ACCEL=yes | |
6884 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6885 | DEFAULT_wxUSE_BUTTON=yes | |
6886 | DEFAULT_wxUSE_CALCTRL=no | |
6887 | DEFAULT_wxUSE_CARET=yes | |
6888 | DEFAULT_wxUSE_COMBOBOX=yes | |
6889 | DEFAULT_wxUSE_CHECKBOX=yes | |
6890 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6891 | DEFAULT_wxUSE_CHOICE=yes | |
6892 | DEFAULT_wxUSE_GAUGE=yes | |
6893 | DEFAULT_wxUSE_GRID=yes | |
6894 | DEFAULT_wxUSE_IMAGLIST=yes | |
6895 | DEFAULT_wxUSE_LISTBOOK=yes | |
6896 | DEFAULT_wxUSE_LISTBOX=yes | |
6897 | DEFAULT_wxUSE_LISTCTRL=yes | |
6898 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6899 | DEFAULT_wxUSE_RADIOBOX=yes | |
6900 | DEFAULT_wxUSE_RADIOBTN=yes | |
6901 | DEFAULT_wxUSE_SASH=yes | |
6902 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6903 | DEFAULT_wxUSE_SLIDER=yes | |
6904 | DEFAULT_wxUSE_SPINBTN=yes | |
6905 | DEFAULT_wxUSE_SPINCTRL=yes | |
6906 | DEFAULT_wxUSE_SPLITTER=yes | |
6907 | DEFAULT_wxUSE_STATBMP=yes | |
6908 | DEFAULT_wxUSE_STATBOX=yes | |
6909 | DEFAULT_wxUSE_STATLINE=yes | |
6910 | DEFAULT_wxUSE_STATUSBAR=yes | |
6911 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6912 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6913 | DEFAULT_wxUSE_TOOLBAR=yes | |
6914 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6915 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6916 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6917 | DEFAULT_wxUSE_TREECTRL=yes | |
6918 | DEFAULT_wxUSE_POPUPWIN=yes | |
6919 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6920 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6921 | DEFAULT_wxUSE_ACCEL=no | |
6922 | DEFAULT_wxUSE_BMPBUTTON=no | |
6923 | DEFAULT_wxUSE_BUTTON=no | |
6924 | DEFAULT_wxUSE_CALCTRL=no | |
6925 | DEFAULT_wxUSE_CARET=no | |
6926 | DEFAULT_wxUSE_COMBOBOX=no | |
6927 | DEFAULT_wxUSE_CHECKBOX=no | |
6928 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6929 | DEFAULT_wxUSE_CHOICE=no | |
6930 | DEFAULT_wxUSE_GAUGE=no | |
6931 | DEFAULT_wxUSE_GRID=no | |
6932 | DEFAULT_wxUSE_IMAGLIST=no | |
6933 | DEFAULT_wxUSE_LISTBOOK=no | |
6934 | DEFAULT_wxUSE_LISTBOX=no | |
6935 | DEFAULT_wxUSE_LISTCTRL=no | |
6936 | DEFAULT_wxUSE_NOTEBOOK=no | |
6937 | DEFAULT_wxUSE_RADIOBOX=no | |
6938 | DEFAULT_wxUSE_RADIOBTN=no | |
6939 | DEFAULT_wxUSE_SASH=no | |
6940 | DEFAULT_wxUSE_SCROLLBAR=no | |
6941 | DEFAULT_wxUSE_SLIDER=no | |
6942 | DEFAULT_wxUSE_SPINBTN=no | |
6943 | DEFAULT_wxUSE_SPINCTRL=no | |
6944 | DEFAULT_wxUSE_SPLITTER=no | |
6945 | DEFAULT_wxUSE_STATBMP=no | |
6946 | DEFAULT_wxUSE_STATBOX=no | |
6947 | DEFAULT_wxUSE_STATLINE=no | |
6948 | DEFAULT_wxUSE_STATUSBAR=no | |
6949 | DEFAULT_wxUSE_TAB_DIALOG=no | |
6950 | DEFAULT_wxUSE_TOGGLEBTN=no | |
6951 | DEFAULT_wxUSE_TOOLBAR=no | |
6952 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
6953 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
6954 | DEFAULT_wxUSE_TOOLTIPS=no | |
6955 | DEFAULT_wxUSE_TREECTRL=no | |
6956 | DEFAULT_wxUSE_POPUPWIN=no | |
6957 | DEFAULT_wxUSE_TIPWINDOW=no | |
6958 | fi | |
6959 | ||
6960 | ## FIXME: This is a blatant hack | |
6961 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6962 | wxUSE_PRINTING_ARCHITECTURE=no | |
6963 | wxUSE_DRAG_AND_DROP=no | |
a848cd7e SC |
6964 | DEFAULT_wxUSE_TOOLTIPS=no |
6965 | DEFAULT_wxUSE_DRAGIMAGE=no | |
6966 | fi | |
6967 | ||
6968 | ||
6969 | enablestring= | |
6970 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
6971 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
6972 | no_cache=0 | |
6973 | # Check whether --enable-accel or --disable-accel was given. | |
6974 | if test "${enable_accel+set}" = set; then | |
6975 | enableval="$enable_accel" | |
6976 | ||
6977 | if test "$enableval" = yes; then | |
6978 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6979 | else | |
6980 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6981 | fi | |
6982 | ||
6983 | else | |
6984 | ||
6985 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
6986 | if test "x$LINE" != x ; then | |
6987 | eval "DEFAULT_$LINE" | |
6988 | else | |
6989 | no_cache=1 | |
6990 | fi | |
6991 | ||
6992 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
6993 | ||
6994 | fi; | |
6995 | ||
6996 | eval "$ac_cv_use_accel" | |
6997 | if test "$no_cache" != 1; then | |
6998 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6999 | fi | |
7000 | ||
7001 | if test "$wxUSE_ACCEL" = yes; then | |
7002 | echo "$as_me:$LINENO: result: yes" >&5 | |
7003 | echo "${ECHO_T}yes" >&6 | |
7004 | else | |
7005 | echo "$as_me:$LINENO: result: no" >&5 | |
7006 | echo "${ECHO_T}no" >&6 | |
7007 | fi | |
7008 | ||
7009 | ||
7010 | enablestring= | |
7011 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7012 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7013 | no_cache=0 | |
7014 | # Check whether --enable-button or --disable-button was given. | |
7015 | if test "${enable_button+set}" = set; then | |
7016 | enableval="$enable_button" | |
7017 | ||
7018 | if test "$enableval" = yes; then | |
7019 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7020 | else | |
7021 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7022 | fi | |
7023 | ||
7024 | else | |
7025 | ||
7026 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7027 | if test "x$LINE" != x ; then | |
7028 | eval "DEFAULT_$LINE" | |
7029 | else | |
7030 | no_cache=1 | |
7031 | fi | |
7032 | ||
7033 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7034 | ||
7035 | fi; | |
7036 | ||
7037 | eval "$ac_cv_use_button" | |
7038 | if test "$no_cache" != 1; then | |
7039 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7040 | fi | |
7041 | ||
7042 | if test "$wxUSE_BUTTON" = yes; then | |
7043 | echo "$as_me:$LINENO: result: yes" >&5 | |
7044 | echo "${ECHO_T}yes" >&6 | |
7045 | else | |
7046 | echo "$as_me:$LINENO: result: no" >&5 | |
7047 | echo "${ECHO_T}no" >&6 | |
7048 | fi | |
7049 | ||
7050 | ||
7051 | enablestring= | |
7052 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7053 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7054 | no_cache=0 | |
7055 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7056 | if test "${enable_bmpbutton+set}" = set; then | |
7057 | enableval="$enable_bmpbutton" | |
7058 | ||
7059 | if test "$enableval" = yes; then | |
7060 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7061 | else | |
7062 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7063 | fi | |
7064 | ||
7065 | else | |
7066 | ||
7067 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7068 | if test "x$LINE" != x ; then | |
7069 | eval "DEFAULT_$LINE" | |
7070 | else | |
7071 | no_cache=1 | |
7072 | fi | |
7073 | ||
7074 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7075 | ||
7076 | fi; | |
7077 | ||
7078 | eval "$ac_cv_use_bmpbutton" | |
7079 | if test "$no_cache" != 1; then | |
7080 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7081 | fi | |
7082 | ||
7083 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7084 | echo "$as_me:$LINENO: result: yes" >&5 | |
7085 | echo "${ECHO_T}yes" >&6 | |
7086 | else | |
7087 | echo "$as_me:$LINENO: result: no" >&5 | |
7088 | echo "${ECHO_T}no" >&6 | |
7089 | fi | |
7090 | ||
7091 | ||
7092 | enablestring= | |
7093 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7094 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7095 | no_cache=0 | |
7096 | # Check whether --enable-calendar or --disable-calendar was given. | |
7097 | if test "${enable_calendar+set}" = set; then | |
7098 | enableval="$enable_calendar" | |
7099 | ||
7100 | if test "$enableval" = yes; then | |
7101 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7102 | else | |
7103 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7104 | fi | |
7105 | ||
7106 | else | |
7107 | ||
7108 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7109 | if test "x$LINE" != x ; then | |
7110 | eval "DEFAULT_$LINE" | |
7111 | else | |
7112 | no_cache=1 | |
7113 | fi | |
7114 | ||
7115 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7116 | ||
7117 | fi; | |
7118 | ||
7119 | eval "$ac_cv_use_calendar" | |
7120 | if test "$no_cache" != 1; then | |
7121 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7122 | fi | |
7123 | ||
7124 | if test "$wxUSE_CALCTRL" = yes; then | |
7125 | echo "$as_me:$LINENO: result: yes" >&5 | |
7126 | echo "${ECHO_T}yes" >&6 | |
7127 | else | |
7128 | echo "$as_me:$LINENO: result: no" >&5 | |
7129 | echo "${ECHO_T}no" >&6 | |
7130 | fi | |
7131 | ||
7132 | ||
7133 | enablestring= | |
7134 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7135 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7136 | no_cache=0 | |
7137 | # Check whether --enable-caret or --disable-caret was given. | |
7138 | if test "${enable_caret+set}" = set; then | |
7139 | enableval="$enable_caret" | |
7140 | ||
7141 | if test "$enableval" = yes; then | |
7142 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7143 | else | |
7144 | ac_cv_use_caret='wxUSE_CARET=no' | |
7145 | fi | |
7146 | ||
7147 | else | |
7148 | ||
7149 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7150 | if test "x$LINE" != x ; then | |
7151 | eval "DEFAULT_$LINE" | |
7152 | else | |
7153 | no_cache=1 | |
7154 | fi | |
7155 | ||
7156 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7157 | ||
7158 | fi; | |
7159 | ||
7160 | eval "$ac_cv_use_caret" | |
7161 | if test "$no_cache" != 1; then | |
7162 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7163 | fi | |
7164 | ||
7165 | if test "$wxUSE_CARET" = yes; then | |
7166 | echo "$as_me:$LINENO: result: yes" >&5 | |
7167 | echo "${ECHO_T}yes" >&6 | |
7168 | else | |
7169 | echo "$as_me:$LINENO: result: no" >&5 | |
7170 | echo "${ECHO_T}no" >&6 | |
7171 | fi | |
7172 | ||
7173 | ||
7174 | enablestring= | |
7175 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7176 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7177 | no_cache=0 | |
7178 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7179 | if test "${enable_checkbox+set}" = set; then | |
7180 | enableval="$enable_checkbox" | |
7181 | ||
7182 | if test "$enableval" = yes; then | |
7183 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7184 | else | |
7185 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7186 | fi | |
7187 | ||
7188 | else | |
7189 | ||
7190 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7191 | if test "x$LINE" != x ; then | |
7192 | eval "DEFAULT_$LINE" | |
7193 | else | |
7194 | no_cache=1 | |
7195 | fi | |
7196 | ||
7197 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7198 | ||
7199 | fi; | |
7200 | ||
7201 | eval "$ac_cv_use_checkbox" | |
7202 | if test "$no_cache" != 1; then | |
7203 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7204 | fi | |
7205 | ||
7206 | if test "$wxUSE_CHECKBOX" = yes; then | |
7207 | echo "$as_me:$LINENO: result: yes" >&5 | |
7208 | echo "${ECHO_T}yes" >&6 | |
7209 | else | |
7210 | echo "$as_me:$LINENO: result: no" >&5 | |
7211 | echo "${ECHO_T}no" >&6 | |
7212 | fi | |
7213 | ||
7214 | ||
7215 | enablestring= | |
7216 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7217 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7218 | no_cache=0 | |
7219 | # Check whether --enable-checklst or --disable-checklst was given. | |
7220 | if test "${enable_checklst+set}" = set; then | |
7221 | enableval="$enable_checklst" | |
7222 | ||
7223 | if test "$enableval" = yes; then | |
7224 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7225 | else | |
7226 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7227 | fi | |
7228 | ||
7229 | else | |
7230 | ||
7231 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7232 | if test "x$LINE" != x ; then | |
7233 | eval "DEFAULT_$LINE" | |
7234 | else | |
7235 | no_cache=1 | |
7236 | fi | |
7237 | ||
7238 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7239 | ||
7240 | fi; | |
7241 | ||
7242 | eval "$ac_cv_use_checklst" | |
7243 | if test "$no_cache" != 1; then | |
7244 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7245 | fi | |
7246 | ||
7247 | if test "$wxUSE_CHECKLST" = yes; then | |
7248 | echo "$as_me:$LINENO: result: yes" >&5 | |
7249 | echo "${ECHO_T}yes" >&6 | |
7250 | else | |
7251 | echo "$as_me:$LINENO: result: no" >&5 | |
7252 | echo "${ECHO_T}no" >&6 | |
7253 | fi | |
7254 | ||
7255 | ||
7256 | enablestring= | |
7257 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7258 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7259 | no_cache=0 | |
7260 | # Check whether --enable-choice or --disable-choice was given. | |
7261 | if test "${enable_choice+set}" = set; then | |
7262 | enableval="$enable_choice" | |
7263 | ||
7264 | if test "$enableval" = yes; then | |
7265 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7266 | else | |
7267 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7268 | fi | |
7269 | ||
7270 | else | |
7271 | ||
7272 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7273 | if test "x$LINE" != x ; then | |
7274 | eval "DEFAULT_$LINE" | |
7275 | else | |
7276 | no_cache=1 | |
7277 | fi | |
7278 | ||
7279 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7280 | ||
7281 | fi; | |
7282 | ||
7283 | eval "$ac_cv_use_choice" | |
7284 | if test "$no_cache" != 1; then | |
7285 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7286 | fi | |
7287 | ||
7288 | if test "$wxUSE_CHOICE" = yes; then | |
7289 | echo "$as_me:$LINENO: result: yes" >&5 | |
7290 | echo "${ECHO_T}yes" >&6 | |
7291 | else | |
7292 | echo "$as_me:$LINENO: result: no" >&5 | |
7293 | echo "${ECHO_T}no" >&6 | |
7294 | fi | |
7295 | ||
7296 | ||
7297 | enablestring= | |
7298 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7299 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7300 | no_cache=0 | |
7301 | # Check whether --enable-combobox or --disable-combobox was given. | |
7302 | if test "${enable_combobox+set}" = set; then | |
7303 | enableval="$enable_combobox" | |
7304 | ||
7305 | if test "$enableval" = yes; then | |
7306 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7307 | else | |
7308 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7309 | fi | |
7310 | ||
7311 | else | |
7312 | ||
7313 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7314 | if test "x$LINE" != x ; then | |
7315 | eval "DEFAULT_$LINE" | |
7316 | else | |
7317 | no_cache=1 | |
7318 | fi | |
7319 | ||
7320 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7321 | ||
7322 | fi; | |
7323 | ||
7324 | eval "$ac_cv_use_combobox" | |
7325 | if test "$no_cache" != 1; then | |
7326 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7327 | fi | |
7328 | ||
7329 | if test "$wxUSE_COMBOBOX" = yes; then | |
7330 | echo "$as_me:$LINENO: result: yes" >&5 | |
7331 | echo "${ECHO_T}yes" >&6 | |
7332 | else | |
7333 | echo "$as_me:$LINENO: result: no" >&5 | |
7334 | echo "${ECHO_T}no" >&6 | |
7335 | fi | |
7336 | ||
7337 | ||
7338 | enablestring= | |
7339 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7340 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7341 | no_cache=0 | |
7342 | # Check whether --enable-display or --disable-display was given. | |
7343 | if test "${enable_display+set}" = set; then | |
7344 | enableval="$enable_display" | |
7345 | ||
7346 | if test "$enableval" = yes; then | |
7347 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7348 | else | |
7349 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7350 | fi | |
7351 | ||
7352 | else | |
7353 | ||
7354 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7355 | if test "x$LINE" != x ; then | |
7356 | eval "DEFAULT_$LINE" | |
7357 | else | |
7358 | no_cache=1 | |
7359 | fi | |
7360 | ||
7361 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7362 | ||
7363 | fi; | |
7364 | ||
7365 | eval "$ac_cv_use_display" | |
7366 | if test "$no_cache" != 1; then | |
7367 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7368 | fi | |
7369 | ||
7370 | if test "$wxUSE_DISPLAY" = yes; then | |
7371 | echo "$as_me:$LINENO: result: yes" >&5 | |
7372 | echo "${ECHO_T}yes" >&6 | |
7373 | else | |
7374 | echo "$as_me:$LINENO: result: no" >&5 | |
7375 | echo "${ECHO_T}no" >&6 | |
7376 | fi | |
7377 | ||
7378 | ||
7379 | enablestring= | |
7380 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7381 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7382 | no_cache=0 | |
7383 | # Check whether --enable-gauge or --disable-gauge was given. | |
7384 | if test "${enable_gauge+set}" = set; then | |
7385 | enableval="$enable_gauge" | |
7386 | ||
7387 | if test "$enableval" = yes; then | |
7388 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7389 | else | |
7390 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7391 | fi | |
7392 | ||
7393 | else | |
7394 | ||
7395 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7396 | if test "x$LINE" != x ; then | |
7397 | eval "DEFAULT_$LINE" | |
7398 | else | |
7399 | no_cache=1 | |
7400 | fi | |
7401 | ||
7402 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7403 | ||
7404 | fi; | |
7405 | ||
7406 | eval "$ac_cv_use_gauge" | |
7407 | if test "$no_cache" != 1; then | |
7408 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7409 | fi | |
7410 | ||
7411 | if test "$wxUSE_GAUGE" = yes; then | |
7412 | echo "$as_me:$LINENO: result: yes" >&5 | |
7413 | echo "${ECHO_T}yes" >&6 | |
7414 | else | |
7415 | echo "$as_me:$LINENO: result: no" >&5 | |
7416 | echo "${ECHO_T}no" >&6 | |
7417 | fi | |
7418 | ||
7419 | ||
7420 | enablestring= | |
7421 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7422 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7423 | no_cache=0 | |
7424 | # Check whether --enable-grid or --disable-grid was given. | |
7425 | if test "${enable_grid+set}" = set; then | |
7426 | enableval="$enable_grid" | |
7427 | ||
7428 | if test "$enableval" = yes; then | |
7429 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7430 | else | |
7431 | ac_cv_use_grid='wxUSE_GRID=no' | |
7432 | fi | |
7433 | ||
7434 | else | |
7435 | ||
7436 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7437 | if test "x$LINE" != x ; then | |
7438 | eval "DEFAULT_$LINE" | |
7439 | else | |
7440 | no_cache=1 | |
7441 | fi | |
7442 | ||
7443 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7444 | ||
7445 | fi; | |
7446 | ||
7447 | eval "$ac_cv_use_grid" | |
7448 | if test "$no_cache" != 1; then | |
7449 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7450 | fi | |
7451 | ||
7452 | if test "$wxUSE_GRID" = yes; then | |
7453 | echo "$as_me:$LINENO: result: yes" >&5 | |
7454 | echo "${ECHO_T}yes" >&6 | |
7455 | else | |
7456 | echo "$as_me:$LINENO: result: no" >&5 | |
7457 | echo "${ECHO_T}no" >&6 | |
7458 | fi | |
7459 | ||
7460 | ||
7461 | enablestring= | |
7462 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7463 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7464 | no_cache=0 | |
7465 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7466 | if test "${enable_imaglist+set}" = set; then | |
7467 | enableval="$enable_imaglist" | |
7468 | ||
7469 | if test "$enableval" = yes; then | |
7470 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7471 | else | |
7472 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7473 | fi | |
7474 | ||
7475 | else | |
7476 | ||
7477 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7478 | if test "x$LINE" != x ; then | |
7479 | eval "DEFAULT_$LINE" | |
7480 | else | |
7481 | no_cache=1 | |
7482 | fi | |
7483 | ||
7484 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7485 | ||
7486 | fi; | |
7487 | ||
7488 | eval "$ac_cv_use_imaglist" | |
7489 | if test "$no_cache" != 1; then | |
7490 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7491 | fi | |
7492 | ||
7493 | if test "$wxUSE_IMAGLIST" = yes; then | |
7494 | echo "$as_me:$LINENO: result: yes" >&5 | |
7495 | echo "${ECHO_T}yes" >&6 | |
7496 | else | |
7497 | echo "$as_me:$LINENO: result: no" >&5 | |
7498 | echo "${ECHO_T}no" >&6 | |
7499 | fi | |
7500 | ||
7501 | ||
7502 | enablestring= | |
7503 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7504 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7505 | no_cache=0 | |
7506 | # Check whether --enable-listbook or --disable-listbook was given. | |
7507 | if test "${enable_listbook+set}" = set; then | |
7508 | enableval="$enable_listbook" | |
7509 | ||
7510 | if test "$enableval" = yes; then | |
7511 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7512 | else | |
7513 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7514 | fi | |
7515 | ||
7516 | else | |
7517 | ||
7518 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7519 | if test "x$LINE" != x ; then | |
7520 | eval "DEFAULT_$LINE" | |
7521 | else | |
7522 | no_cache=1 | |
7523 | fi | |
7524 | ||
7525 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7526 | ||
7527 | fi; | |
7528 | ||
7529 | eval "$ac_cv_use_listbook" | |
7530 | if test "$no_cache" != 1; then | |
7531 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7532 | fi | |
7533 | ||
7534 | if test "$wxUSE_LISTBOOK" = yes; then | |
7535 | echo "$as_me:$LINENO: result: yes" >&5 | |
7536 | echo "${ECHO_T}yes" >&6 | |
7537 | else | |
7538 | echo "$as_me:$LINENO: result: no" >&5 | |
7539 | echo "${ECHO_T}no" >&6 | |
7540 | fi | |
7541 | ||
7542 | ||
7543 | enablestring= | |
7544 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7545 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7546 | no_cache=0 | |
7547 | # Check whether --enable-listbox or --disable-listbox was given. | |
7548 | if test "${enable_listbox+set}" = set; then | |
7549 | enableval="$enable_listbox" | |
7550 | ||
7551 | if test "$enableval" = yes; then | |
7552 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7553 | else | |
7554 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7555 | fi | |
7556 | ||
7557 | else | |
7558 | ||
7559 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7560 | if test "x$LINE" != x ; then | |
7561 | eval "DEFAULT_$LINE" | |
7562 | else | |
7563 | no_cache=1 | |
7564 | fi | |
7565 | ||
7566 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7567 | ||
7568 | fi; | |
7569 | ||
7570 | eval "$ac_cv_use_listbox" | |
7571 | if test "$no_cache" != 1; then | |
7572 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7573 | fi | |
7574 | ||
7575 | if test "$wxUSE_LISTBOX" = yes; then | |
7576 | echo "$as_me:$LINENO: result: yes" >&5 | |
7577 | echo "${ECHO_T}yes" >&6 | |
7578 | else | |
7579 | echo "$as_me:$LINENO: result: no" >&5 | |
7580 | echo "${ECHO_T}no" >&6 | |
7581 | fi | |
7582 | ||
7583 | ||
7584 | enablestring= | |
7585 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7586 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7587 | no_cache=0 | |
7588 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7589 | if test "${enable_listctrl+set}" = set; then | |
7590 | enableval="$enable_listctrl" | |
7591 | ||
7592 | if test "$enableval" = yes; then | |
7593 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7594 | else | |
7595 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7596 | fi | |
7597 | ||
7598 | else | |
7599 | ||
7600 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7601 | if test "x$LINE" != x ; then | |
7602 | eval "DEFAULT_$LINE" | |
7603 | else | |
7604 | no_cache=1 | |
7605 | fi | |
7606 | ||
7607 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7608 | ||
7609 | fi; | |
7610 | ||
7611 | eval "$ac_cv_use_listctrl" | |
7612 | if test "$no_cache" != 1; then | |
7613 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7614 | fi | |
7615 | ||
7616 | if test "$wxUSE_LISTCTRL" = yes; then | |
7617 | echo "$as_me:$LINENO: result: yes" >&5 | |
7618 | echo "${ECHO_T}yes" >&6 | |
7619 | else | |
7620 | echo "$as_me:$LINENO: result: no" >&5 | |
7621 | echo "${ECHO_T}no" >&6 | |
7622 | fi | |
7623 | ||
7624 | ||
7625 | enablestring= | |
7626 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7627 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7628 | no_cache=0 | |
7629 | # Check whether --enable-notebook or --disable-notebook was given. | |
7630 | if test "${enable_notebook+set}" = set; then | |
7631 | enableval="$enable_notebook" | |
7632 | ||
7633 | if test "$enableval" = yes; then | |
7634 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7635 | else | |
7636 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7637 | fi | |
7638 | ||
7639 | else | |
7640 | ||
7641 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7642 | if test "x$LINE" != x ; then | |
7643 | eval "DEFAULT_$LINE" | |
7644 | else | |
7645 | no_cache=1 | |
7646 | fi | |
7647 | ||
7648 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7649 | ||
7650 | fi; | |
7651 | ||
7652 | eval "$ac_cv_use_notebook" | |
7653 | if test "$no_cache" != 1; then | |
7654 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7655 | fi | |
7656 | ||
7657 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7658 | echo "$as_me:$LINENO: result: yes" >&5 | |
7659 | echo "${ECHO_T}yes" >&6 | |
7660 | else | |
7661 | echo "$as_me:$LINENO: result: no" >&5 | |
7662 | echo "${ECHO_T}no" >&6 | |
7663 | fi | |
7664 | ||
7665 | ||
7666 | enablestring= | |
7667 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7668 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7669 | no_cache=0 | |
7670 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7671 | if test "${enable_radiobox+set}" = set; then | |
7672 | enableval="$enable_radiobox" | |
7673 | ||
7674 | if test "$enableval" = yes; then | |
7675 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7676 | else | |
7677 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7678 | fi | |
7679 | ||
7680 | else | |
7681 | ||
7682 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7683 | if test "x$LINE" != x ; then | |
7684 | eval "DEFAULT_$LINE" | |
7685 | else | |
7686 | no_cache=1 | |
7687 | fi | |
7688 | ||
7689 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7690 | ||
7691 | fi; | |
7692 | ||
7693 | eval "$ac_cv_use_radiobox" | |
7694 | if test "$no_cache" != 1; then | |
7695 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7696 | fi | |
7697 | ||
7698 | if test "$wxUSE_RADIOBOX" = yes; then | |
7699 | echo "$as_me:$LINENO: result: yes" >&5 | |
7700 | echo "${ECHO_T}yes" >&6 | |
7701 | else | |
7702 | echo "$as_me:$LINENO: result: no" >&5 | |
7703 | echo "${ECHO_T}no" >&6 | |
7704 | fi | |
7705 | ||
7706 | ||
7707 | enablestring= | |
7708 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7709 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7710 | no_cache=0 | |
7711 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7712 | if test "${enable_radiobtn+set}" = set; then | |
7713 | enableval="$enable_radiobtn" | |
7714 | ||
7715 | if test "$enableval" = yes; then | |
7716 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7717 | else | |
7718 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7719 | fi | |
7720 | ||
7721 | else | |
7722 | ||
7723 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7724 | if test "x$LINE" != x ; then | |
7725 | eval "DEFAULT_$LINE" | |
7726 | else | |
7727 | no_cache=1 | |
7728 | fi | |
7729 | ||
7730 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7731 | ||
7732 | fi; | |
7733 | ||
7734 | eval "$ac_cv_use_radiobtn" | |
7735 | if test "$no_cache" != 1; then | |
7736 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7737 | fi | |
7738 | ||
7739 | if test "$wxUSE_RADIOBTN" = yes; then | |
7740 | echo "$as_me:$LINENO: result: yes" >&5 | |
7741 | echo "${ECHO_T}yes" >&6 | |
7742 | else | |
7743 | echo "$as_me:$LINENO: result: no" >&5 | |
7744 | echo "${ECHO_T}no" >&6 | |
7745 | fi | |
7746 | ||
7747 | ||
7748 | enablestring= | |
7749 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7750 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7751 | no_cache=0 | |
7752 | # Check whether --enable-sash or --disable-sash was given. | |
7753 | if test "${enable_sash+set}" = set; then | |
7754 | enableval="$enable_sash" | |
7755 | ||
7756 | if test "$enableval" = yes; then | |
7757 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7758 | else | |
7759 | ac_cv_use_sash='wxUSE_SASH=no' | |
7760 | fi | |
7761 | ||
7762 | else | |
7763 | ||
7764 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7765 | if test "x$LINE" != x ; then | |
7766 | eval "DEFAULT_$LINE" | |
7767 | else | |
7768 | no_cache=1 | |
7769 | fi | |
7770 | ||
7771 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7772 | ||
7773 | fi; | |
7774 | ||
7775 | eval "$ac_cv_use_sash" | |
7776 | if test "$no_cache" != 1; then | |
7777 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7778 | fi | |
7779 | ||
7780 | if test "$wxUSE_SASH" = yes; then | |
7781 | echo "$as_me:$LINENO: result: yes" >&5 | |
7782 | echo "${ECHO_T}yes" >&6 | |
7783 | else | |
7784 | echo "$as_me:$LINENO: result: no" >&5 | |
7785 | echo "${ECHO_T}no" >&6 | |
7786 | fi | |
7787 | ||
7788 | ||
7789 | enablestring= | |
7790 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7791 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7792 | no_cache=0 | |
7793 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7794 | if test "${enable_scrollbar+set}" = set; then | |
7795 | enableval="$enable_scrollbar" | |
7796 | ||
7797 | if test "$enableval" = yes; then | |
7798 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7799 | else | |
7800 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7801 | fi | |
7802 | ||
7803 | else | |
7804 | ||
7805 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7806 | if test "x$LINE" != x ; then | |
7807 | eval "DEFAULT_$LINE" | |
7808 | else | |
7809 | no_cache=1 | |
7810 | fi | |
7811 | ||
7812 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7813 | ||
7814 | fi; | |
7815 | ||
7816 | eval "$ac_cv_use_scrollbar" | |
7817 | if test "$no_cache" != 1; then | |
7818 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7819 | fi | |
7820 | ||
7821 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7822 | echo "$as_me:$LINENO: result: yes" >&5 | |
7823 | echo "${ECHO_T}yes" >&6 | |
7824 | else | |
7825 | echo "$as_me:$LINENO: result: no" >&5 | |
7826 | echo "${ECHO_T}no" >&6 | |
7827 | fi | |
7828 | ||
7829 | ||
7830 | enablestring= | |
7831 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7832 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7833 | no_cache=0 | |
7834 | # Check whether --enable-slider or --disable-slider was given. | |
7835 | if test "${enable_slider+set}" = set; then | |
7836 | enableval="$enable_slider" | |
7837 | ||
7838 | if test "$enableval" = yes; then | |
7839 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7840 | else | |
7841 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7842 | fi | |
7843 | ||
7844 | else | |
7845 | ||
7846 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
7847 | if test "x$LINE" != x ; then | |
7848 | eval "DEFAULT_$LINE" | |
7849 | else | |
7850 | no_cache=1 | |
7851 | fi | |
7852 | ||
7853 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7854 | ||
7855 | fi; | |
7856 | ||
7857 | eval "$ac_cv_use_slider" | |
7858 | if test "$no_cache" != 1; then | |
7859 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7860 | fi | |
7861 | ||
7862 | if test "$wxUSE_SLIDER" = yes; then | |
7863 | echo "$as_me:$LINENO: result: yes" >&5 | |
7864 | echo "${ECHO_T}yes" >&6 | |
7865 | else | |
7866 | echo "$as_me:$LINENO: result: no" >&5 | |
7867 | echo "${ECHO_T}no" >&6 | |
7868 | fi | |
7869 | ||
7870 | ||
7871 | enablestring= | |
7872 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
7873 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7874 | no_cache=0 | |
7875 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7876 | if test "${enable_spinbtn+set}" = set; then | |
7877 | enableval="$enable_spinbtn" | |
7878 | ||
7879 | if test "$enableval" = yes; then | |
7880 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7881 | else | |
7882 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7883 | fi | |
7884 | ||
7885 | else | |
7886 | ||
7887 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
7888 | if test "x$LINE" != x ; then | |
7889 | eval "DEFAULT_$LINE" | |
7890 | else | |
7891 | no_cache=1 | |
7892 | fi | |
7893 | ||
7894 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7895 | ||
7896 | fi; | |
7897 | ||
7898 | eval "$ac_cv_use_spinbtn" | |
7899 | if test "$no_cache" != 1; then | |
7900 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7901 | fi | |
7902 | ||
7903 | if test "$wxUSE_SPINBTN" = yes; then | |
7904 | echo "$as_me:$LINENO: result: yes" >&5 | |
7905 | echo "${ECHO_T}yes" >&6 | |
7906 | else | |
7907 | echo "$as_me:$LINENO: result: no" >&5 | |
7908 | echo "${ECHO_T}no" >&6 | |
7909 | fi | |
7910 | ||
7911 | ||
7912 | enablestring= | |
7913 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
7914 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
7915 | no_cache=0 | |
7916 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7917 | if test "${enable_spinctrl+set}" = set; then | |
7918 | enableval="$enable_spinctrl" | |
7919 | ||
7920 | if test "$enableval" = yes; then | |
7921 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7922 | else | |
7923 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7924 | fi | |
7925 | ||
7926 | else | |
7927 | ||
7928 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
7929 | if test "x$LINE" != x ; then | |
7930 | eval "DEFAULT_$LINE" | |
7931 | else | |
7932 | no_cache=1 | |
7933 | fi | |
7934 | ||
7935 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
7936 | ||
7937 | fi; | |
7938 | ||
7939 | eval "$ac_cv_use_spinctrl" | |
7940 | if test "$no_cache" != 1; then | |
7941 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7942 | fi | |
7943 | ||
7944 | if test "$wxUSE_SPINCTRL" = yes; then | |
7945 | echo "$as_me:$LINENO: result: yes" >&5 | |
7946 | echo "${ECHO_T}yes" >&6 | |
7947 | else | |
7948 | echo "$as_me:$LINENO: result: no" >&5 | |
7949 | echo "${ECHO_T}no" >&6 | |
7950 | fi | |
7951 | ||
7952 | ||
7953 | enablestring= | |
7954 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
7955 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
7956 | no_cache=0 | |
7957 | # Check whether --enable-splitter or --disable-splitter was given. | |
7958 | if test "${enable_splitter+set}" = set; then | |
7959 | enableval="$enable_splitter" | |
7960 | ||
7961 | if test "$enableval" = yes; then | |
7962 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7963 | else | |
7964 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7965 | fi | |
7966 | ||
7967 | else | |
7968 | ||
7969 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
7970 | if test "x$LINE" != x ; then | |
7971 | eval "DEFAULT_$LINE" | |
7972 | else | |
7973 | no_cache=1 | |
7974 | fi | |
7975 | ||
7976 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
7977 | ||
7978 | fi; | |
7979 | ||
7980 | eval "$ac_cv_use_splitter" | |
7981 | if test "$no_cache" != 1; then | |
7982 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7983 | fi | |
7984 | ||
7985 | if test "$wxUSE_SPLITTER" = yes; then | |
7986 | echo "$as_me:$LINENO: result: yes" >&5 | |
7987 | echo "${ECHO_T}yes" >&6 | |
7988 | else | |
7989 | echo "$as_me:$LINENO: result: no" >&5 | |
7990 | echo "${ECHO_T}no" >&6 | |
7991 | fi | |
7992 | ||
7993 | ||
7994 | enablestring= | |
7995 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
7996 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
7997 | no_cache=0 | |
7998 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7999 | if test "${enable_statbmp+set}" = set; then | |
8000 | enableval="$enable_statbmp" | |
8001 | ||
8002 | if test "$enableval" = yes; then | |
8003 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8004 | else | |
8005 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8006 | fi | |
8007 | ||
8008 | else | |
8009 | ||
8010 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8011 | if test "x$LINE" != x ; then | |
8012 | eval "DEFAULT_$LINE" | |
8013 | else | |
8014 | no_cache=1 | |
8015 | fi | |
8016 | ||
8017 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8018 | ||
8019 | fi; | |
8020 | ||
8021 | eval "$ac_cv_use_statbmp" | |
8022 | if test "$no_cache" != 1; then | |
8023 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8024 | fi | |
8025 | ||
8026 | if test "$wxUSE_STATBMP" = yes; then | |
8027 | echo "$as_me:$LINENO: result: yes" >&5 | |
8028 | echo "${ECHO_T}yes" >&6 | |
8029 | else | |
8030 | echo "$as_me:$LINENO: result: no" >&5 | |
8031 | echo "${ECHO_T}no" >&6 | |
8032 | fi | |
8033 | ||
8034 | ||
8035 | enablestring= | |
8036 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8037 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8038 | no_cache=0 | |
8039 | # Check whether --enable-statbox or --disable-statbox was given. | |
8040 | if test "${enable_statbox+set}" = set; then | |
8041 | enableval="$enable_statbox" | |
8042 | ||
8043 | if test "$enableval" = yes; then | |
8044 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8045 | else | |
8046 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8047 | fi | |
8048 | ||
8049 | else | |
8050 | ||
8051 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8052 | if test "x$LINE" != x ; then | |
8053 | eval "DEFAULT_$LINE" | |
8054 | else | |
8055 | no_cache=1 | |
8056 | fi | |
8057 | ||
8058 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8059 | ||
8060 | fi; | |
8061 | ||
8062 | eval "$ac_cv_use_statbox" | |
8063 | if test "$no_cache" != 1; then | |
8064 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8065 | fi | |
8066 | ||
8067 | if test "$wxUSE_STATBOX" = yes; then | |
8068 | echo "$as_me:$LINENO: result: yes" >&5 | |
8069 | echo "${ECHO_T}yes" >&6 | |
8070 | else | |
8071 | echo "$as_me:$LINENO: result: no" >&5 | |
8072 | echo "${ECHO_T}no" >&6 | |
8073 | fi | |
8074 | ||
8075 | ||
8076 | enablestring= | |
8077 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8078 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8079 | no_cache=0 | |
8080 | # Check whether --enable-statline or --disable-statline was given. | |
8081 | if test "${enable_statline+set}" = set; then | |
8082 | enableval="$enable_statline" | |
8083 | ||
8084 | if test "$enableval" = yes; then | |
8085 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8086 | else | |
8087 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8088 | fi | |
8089 | ||
8090 | else | |
8091 | ||
8092 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8093 | if test "x$LINE" != x ; then | |
8094 | eval "DEFAULT_$LINE" | |
8095 | else | |
8096 | no_cache=1 | |
8097 | fi | |
8098 | ||
8099 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8100 | ||
8101 | fi; | |
8102 | ||
8103 | eval "$ac_cv_use_statline" | |
8104 | if test "$no_cache" != 1; then | |
8105 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8106 | fi | |
8107 | ||
8108 | if test "$wxUSE_STATLINE" = yes; then | |
8109 | echo "$as_me:$LINENO: result: yes" >&5 | |
8110 | echo "${ECHO_T}yes" >&6 | |
8111 | else | |
8112 | echo "$as_me:$LINENO: result: no" >&5 | |
8113 | echo "${ECHO_T}no" >&6 | |
8114 | fi | |
8115 | ||
8116 | ||
8117 | enablestring= | |
8118 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8119 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8120 | no_cache=0 | |
8121 | # Check whether --enable-stattext or --disable-stattext was given. | |
8122 | if test "${enable_stattext+set}" = set; then | |
8123 | enableval="$enable_stattext" | |
8124 | ||
8125 | if test "$enableval" = yes; then | |
8126 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8127 | else | |
8128 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8129 | fi | |
8130 | ||
8131 | else | |
8132 | ||
8133 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8134 | if test "x$LINE" != x ; then | |
8135 | eval "DEFAULT_$LINE" | |
8136 | else | |
8137 | no_cache=1 | |
8138 | fi | |
8139 | ||
8140 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8141 | ||
8142 | fi; | |
8143 | ||
8144 | eval "$ac_cv_use_stattext" | |
8145 | if test "$no_cache" != 1; then | |
8146 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8147 | fi | |
8148 | ||
8149 | if test "$wxUSE_STATTEXT" = yes; then | |
8150 | echo "$as_me:$LINENO: result: yes" >&5 | |
8151 | echo "${ECHO_T}yes" >&6 | |
8152 | else | |
8153 | echo "$as_me:$LINENO: result: no" >&5 | |
8154 | echo "${ECHO_T}no" >&6 | |
8155 | fi | |
8156 | ||
8157 | ||
8158 | enablestring= | |
8159 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8160 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8161 | no_cache=0 | |
8162 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8163 | if test "${enable_statusbar+set}" = set; then | |
8164 | enableval="$enable_statusbar" | |
8165 | ||
8166 | if test "$enableval" = yes; then | |
8167 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8168 | else | |
8169 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8170 | fi | |
8171 | ||
8172 | else | |
8173 | ||
8174 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8175 | if test "x$LINE" != x ; then | |
8176 | eval "DEFAULT_$LINE" | |
8177 | else | |
8178 | no_cache=1 | |
8179 | fi | |
8180 | ||
8181 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8182 | ||
8183 | fi; | |
8184 | ||
8185 | eval "$ac_cv_use_statusbar" | |
8186 | if test "$no_cache" != 1; then | |
8187 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8188 | fi | |
8189 | ||
8190 | if test "$wxUSE_STATUSBAR" = yes; then | |
8191 | echo "$as_me:$LINENO: result: yes" >&5 | |
8192 | echo "${ECHO_T}yes" >&6 | |
8193 | else | |
8194 | echo "$as_me:$LINENO: result: no" >&5 | |
8195 | echo "${ECHO_T}no" >&6 | |
8196 | fi | |
8197 | ||
8198 | ||
8199 | enablestring= | |
8200 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8201 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8202 | no_cache=0 | |
8203 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8204 | if test "${enable_tabdialog+set}" = set; then | |
8205 | enableval="$enable_tabdialog" | |
8206 | ||
8207 | if test "$enableval" = yes; then | |
8208 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8209 | else | |
8210 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8211 | fi | |
8212 | ||
8213 | else | |
8214 | ||
8215 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8216 | if test "x$LINE" != x ; then | |
8217 | eval "DEFAULT_$LINE" | |
8218 | else | |
8219 | no_cache=1 | |
8220 | fi | |
8221 | ||
8222 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8223 | ||
8224 | fi; | |
8225 | ||
8226 | eval "$ac_cv_use_tabdialog" | |
8227 | if test "$no_cache" != 1; then | |
8228 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8229 | fi | |
8230 | ||
8231 | if test "$wxUSE_TABDIALOG" = yes; then | |
8232 | echo "$as_me:$LINENO: result: yes" >&5 | |
8233 | echo "${ECHO_T}yes" >&6 | |
8234 | else | |
8235 | echo "$as_me:$LINENO: result: no" >&5 | |
8236 | echo "${ECHO_T}no" >&6 | |
8237 | fi | |
8238 | ||
8239 | ||
8240 | enablestring= | |
8241 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8242 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8243 | no_cache=0 | |
8244 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8245 | if test "${enable_textctrl+set}" = set; then | |
8246 | enableval="$enable_textctrl" | |
8247 | ||
8248 | if test "$enableval" = yes; then | |
8249 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8250 | else | |
8251 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8252 | fi | |
8253 | ||
8254 | else | |
8255 | ||
8256 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8257 | if test "x$LINE" != x ; then | |
8258 | eval "DEFAULT_$LINE" | |
8259 | else | |
8260 | no_cache=1 | |
8261 | fi | |
8262 | ||
8263 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8264 | ||
8265 | fi; | |
8266 | ||
8267 | eval "$ac_cv_use_textctrl" | |
8268 | if test "$no_cache" != 1; then | |
8269 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8270 | fi | |
8271 | ||
8272 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8273 | echo "$as_me:$LINENO: result: yes" >&5 | |
8274 | echo "${ECHO_T}yes" >&6 | |
8275 | else | |
8276 | echo "$as_me:$LINENO: result: no" >&5 | |
8277 | echo "${ECHO_T}no" >&6 | |
8278 | fi | |
8279 | ||
8280 | ||
8281 | enablestring= | |
8282 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8283 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8284 | no_cache=0 | |
8285 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8286 | if test "${enable_togglebtn+set}" = set; then | |
8287 | enableval="$enable_togglebtn" | |
8288 | ||
8289 | if test "$enableval" = yes; then | |
8290 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8291 | else | |
8292 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8293 | fi | |
8294 | ||
8295 | else | |
8296 | ||
8297 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8298 | if test "x$LINE" != x ; then | |
8299 | eval "DEFAULT_$LINE" | |
8300 | else | |
8301 | no_cache=1 | |
8302 | fi | |
8303 | ||
8304 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8305 | ||
8306 | fi; | |
8307 | ||
8308 | eval "$ac_cv_use_togglebtn" | |
8309 | if test "$no_cache" != 1; then | |
8310 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8311 | fi | |
8312 | ||
8313 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8314 | echo "$as_me:$LINENO: result: yes" >&5 | |
8315 | echo "${ECHO_T}yes" >&6 | |
8316 | else | |
8317 | echo "$as_me:$LINENO: result: no" >&5 | |
8318 | echo "${ECHO_T}no" >&6 | |
8319 | fi | |
8320 | ||
8321 | ||
8322 | enablestring= | |
8323 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8324 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8325 | no_cache=0 | |
8326 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8327 | if test "${enable_toolbar+set}" = set; then | |
8328 | enableval="$enable_toolbar" | |
8329 | ||
8330 | if test "$enableval" = yes; then | |
8331 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8332 | else | |
8333 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8334 | fi | |
8335 | ||
8336 | else | |
8337 | ||
8338 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8339 | if test "x$LINE" != x ; then | |
8340 | eval "DEFAULT_$LINE" | |
8341 | else | |
8342 | no_cache=1 | |
8343 | fi | |
8344 | ||
8345 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8346 | ||
8347 | fi; | |
8348 | ||
8349 | eval "$ac_cv_use_toolbar" | |
8350 | if test "$no_cache" != 1; then | |
8351 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8352 | fi | |
8353 | ||
8354 | if test "$wxUSE_TOOLBAR" = yes; then | |
8355 | echo "$as_me:$LINENO: result: yes" >&5 | |
8356 | echo "${ECHO_T}yes" >&6 | |
8357 | else | |
8358 | echo "$as_me:$LINENO: result: no" >&5 | |
8359 | echo "${ECHO_T}no" >&6 | |
8360 | fi | |
8361 | ||
8362 | ||
8363 | enablestring= | |
8364 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8365 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8366 | no_cache=0 | |
8367 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8368 | if test "${enable_tbarnative+set}" = set; then | |
8369 | enableval="$enable_tbarnative" | |
8370 | ||
8371 | if test "$enableval" = yes; then | |
8372 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8373 | else | |
8374 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8375 | fi | |
8376 | ||
8377 | else | |
8378 | ||
8379 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8380 | if test "x$LINE" != x ; then | |
8381 | eval "DEFAULT_$LINE" | |
8382 | else | |
8383 | no_cache=1 | |
8384 | fi | |
8385 | ||
8386 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8387 | ||
8388 | fi; | |
8389 | ||
8390 | eval "$ac_cv_use_tbarnative" | |
8391 | if test "$no_cache" != 1; then | |
8392 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8393 | fi | |
8394 | ||
8395 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8396 | echo "$as_me:$LINENO: result: yes" >&5 | |
8397 | echo "${ECHO_T}yes" >&6 | |
8398 | else | |
8399 | echo "$as_me:$LINENO: result: no" >&5 | |
8400 | echo "${ECHO_T}no" >&6 | |
8401 | fi | |
8402 | ||
8403 | ||
8404 | enablestring= | |
8405 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8406 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8407 | no_cache=0 | |
8408 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8409 | if test "${enable_tbarsmpl+set}" = set; then | |
8410 | enableval="$enable_tbarsmpl" | |
8411 | ||
8412 | if test "$enableval" = yes; then | |
8413 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8414 | else | |
8415 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8416 | fi | |
8417 | ||
8418 | else | |
8419 | ||
8420 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8421 | if test "x$LINE" != x ; then | |
8422 | eval "DEFAULT_$LINE" | |
8423 | else | |
8424 | no_cache=1 | |
8425 | fi | |
8426 | ||
8427 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8428 | ||
8429 | fi; | |
8430 | ||
8431 | eval "$ac_cv_use_tbarsmpl" | |
8432 | if test "$no_cache" != 1; then | |
8433 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8434 | fi | |
8435 | ||
8436 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8437 | echo "$as_me:$LINENO: result: yes" >&5 | |
8438 | echo "${ECHO_T}yes" >&6 | |
8439 | else | |
8440 | echo "$as_me:$LINENO: result: no" >&5 | |
8441 | echo "${ECHO_T}no" >&6 | |
8442 | fi | |
8443 | ||
8444 | ||
8445 | enablestring= | |
8446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8447 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8448 | no_cache=0 | |
8449 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8450 | if test "${enable_treectrl+set}" = set; then | |
8451 | enableval="$enable_treectrl" | |
8452 | ||
8453 | if test "$enableval" = yes; then | |
8454 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8455 | else | |
8456 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8457 | fi | |
8458 | ||
8459 | else | |
8460 | ||
8461 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8462 | if test "x$LINE" != x ; then | |
8463 | eval "DEFAULT_$LINE" | |
8464 | else | |
8465 | no_cache=1 | |
8466 | fi | |
8467 | ||
8468 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8469 | ||
8470 | fi; | |
8471 | ||
8472 | eval "$ac_cv_use_treectrl" | |
8473 | if test "$no_cache" != 1; then | |
8474 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8475 | fi | |
8476 | ||
8477 | if test "$wxUSE_TREECTRL" = yes; then | |
8478 | echo "$as_me:$LINENO: result: yes" >&5 | |
8479 | echo "${ECHO_T}yes" >&6 | |
8480 | else | |
8481 | echo "$as_me:$LINENO: result: no" >&5 | |
8482 | echo "${ECHO_T}no" >&6 | |
8483 | fi | |
8484 | ||
8485 | ||
8486 | enablestring= | |
8487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8488 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8489 | no_cache=0 | |
8490 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8491 | if test "${enable_tipwindow+set}" = set; then | |
8492 | enableval="$enable_tipwindow" | |
8493 | ||
8494 | if test "$enableval" = yes; then | |
8495 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8496 | else | |
8497 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8498 | fi | |
8499 | ||
8500 | else | |
8501 | ||
8502 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8503 | if test "x$LINE" != x ; then | |
8504 | eval "DEFAULT_$LINE" | |
8505 | else | |
8506 | no_cache=1 | |
8507 | fi | |
8508 | ||
8509 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8510 | ||
8511 | fi; | |
8512 | ||
8513 | eval "$ac_cv_use_tipwindow" | |
8514 | if test "$no_cache" != 1; then | |
8515 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8516 | fi | |
8517 | ||
8518 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8519 | echo "$as_me:$LINENO: result: yes" >&5 | |
8520 | echo "${ECHO_T}yes" >&6 | |
8521 | else | |
8522 | echo "$as_me:$LINENO: result: no" >&5 | |
8523 | echo "${ECHO_T}no" >&6 | |
8524 | fi | |
8525 | ||
8526 | ||
8527 | enablestring= | |
8528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8529 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8530 | no_cache=0 | |
8531 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8532 | if test "${enable_popupwin+set}" = set; then | |
8533 | enableval="$enable_popupwin" | |
8534 | ||
8535 | if test "$enableval" = yes; then | |
8536 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8537 | else | |
8538 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8539 | fi | |
8540 | ||
8541 | else | |
8542 | ||
8543 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8544 | if test "x$LINE" != x ; then | |
8545 | eval "DEFAULT_$LINE" | |
8546 | else | |
8547 | no_cache=1 | |
8548 | fi | |
8549 | ||
8550 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8551 | ||
8552 | fi; | |
8553 | ||
8554 | eval "$ac_cv_use_popupwin" | |
8555 | if test "$no_cache" != 1; then | |
8556 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8557 | fi | |
8558 | ||
8559 | if test "$wxUSE_POPUPWIN" = yes; then | |
8560 | echo "$as_me:$LINENO: result: yes" >&5 | |
8561 | echo "${ECHO_T}yes" >&6 | |
8562 | else | |
8563 | echo "$as_me:$LINENO: result: no" >&5 | |
8564 | echo "${ECHO_T}no" >&6 | |
8565 | fi | |
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | enablestring= | |
8571 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8572 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8573 | no_cache=0 | |
8574 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8575 | if test "${enable_commondlg+set}" = set; then | |
8576 | enableval="$enable_commondlg" | |
8577 | ||
8578 | if test "$enableval" = yes; then | |
8579 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8580 | else | |
8581 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8582 | fi | |
8583 | ||
8584 | else | |
8585 | ||
8586 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8587 | if test "x$LINE" != x ; then | |
8588 | eval "DEFAULT_$LINE" | |
8589 | else | |
8590 | no_cache=1 | |
8591 | fi | |
8592 | ||
8593 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8594 | ||
8595 | fi; | |
8596 | ||
8597 | eval "$ac_cv_use_commondlg" | |
8598 | if test "$no_cache" != 1; then | |
8599 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8600 | fi | |
8601 | ||
8602 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8603 | echo "$as_me:$LINENO: result: yes" >&5 | |
8604 | echo "${ECHO_T}yes" >&6 | |
8605 | else | |
8606 | echo "$as_me:$LINENO: result: no" >&5 | |
8607 | echo "${ECHO_T}no" >&6 | |
8608 | fi | |
8609 | ||
8610 | ||
8611 | enablestring= | |
8612 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8613 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8614 | no_cache=0 | |
8615 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8616 | if test "${enable_choicedlg+set}" = set; then | |
8617 | enableval="$enable_choicedlg" | |
8618 | ||
8619 | if test "$enableval" = yes; then | |
8620 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8621 | else | |
8622 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8623 | fi | |
8624 | ||
8625 | else | |
8626 | ||
8627 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8628 | if test "x$LINE" != x ; then | |
8629 | eval "DEFAULT_$LINE" | |
8630 | else | |
8631 | no_cache=1 | |
8632 | fi | |
8633 | ||
8634 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8635 | ||
8636 | fi; | |
8637 | ||
8638 | eval "$ac_cv_use_choicedlg" | |
8639 | if test "$no_cache" != 1; then | |
8640 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8641 | fi | |
8642 | ||
8643 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8644 | echo "$as_me:$LINENO: result: yes" >&5 | |
8645 | echo "${ECHO_T}yes" >&6 | |
8646 | else | |
8647 | echo "$as_me:$LINENO: result: no" >&5 | |
8648 | echo "${ECHO_T}no" >&6 | |
8649 | fi | |
8650 | ||
8651 | ||
8652 | enablestring= | |
8653 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8654 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8655 | no_cache=0 | |
8656 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8657 | if test "${enable_coldlg+set}" = set; then | |
8658 | enableval="$enable_coldlg" | |
8659 | ||
8660 | if test "$enableval" = yes; then | |
8661 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8662 | else | |
8663 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8664 | fi | |
8665 | ||
8666 | else | |
8667 | ||
8668 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8669 | if test "x$LINE" != x ; then | |
8670 | eval "DEFAULT_$LINE" | |
8671 | else | |
8672 | no_cache=1 | |
8673 | fi | |
8674 | ||
8675 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8676 | ||
8677 | fi; | |
8678 | ||
8679 | eval "$ac_cv_use_coldlg" | |
8680 | if test "$no_cache" != 1; then | |
8681 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8682 | fi | |
8683 | ||
8684 | if test "$wxUSE_COLOURDLG" = yes; then | |
8685 | echo "$as_me:$LINENO: result: yes" >&5 | |
8686 | echo "${ECHO_T}yes" >&6 | |
8687 | else | |
8688 | echo "$as_me:$LINENO: result: no" >&5 | |
8689 | echo "${ECHO_T}no" >&6 | |
8690 | fi | |
8691 | ||
8692 | ||
8693 | enablestring= | |
8694 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8695 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8696 | no_cache=0 | |
8697 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8698 | if test "${enable_filedlg+set}" = set; then | |
8699 | enableval="$enable_filedlg" | |
8700 | ||
8701 | if test "$enableval" = yes; then | |
8702 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8703 | else | |
8704 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8705 | fi | |
8706 | ||
8707 | else | |
8708 | ||
8709 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8710 | if test "x$LINE" != x ; then | |
8711 | eval "DEFAULT_$LINE" | |
8712 | else | |
8713 | no_cache=1 | |
8714 | fi | |
8715 | ||
8716 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8717 | ||
8718 | fi; | |
8719 | ||
8720 | eval "$ac_cv_use_filedlg" | |
8721 | if test "$no_cache" != 1; then | |
8722 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8723 | fi | |
8724 | ||
8725 | if test "$wxUSE_FILEDLG" = yes; then | |
8726 | echo "$as_me:$LINENO: result: yes" >&5 | |
8727 | echo "${ECHO_T}yes" >&6 | |
8728 | else | |
8729 | echo "$as_me:$LINENO: result: no" >&5 | |
8730 | echo "${ECHO_T}no" >&6 | |
8731 | fi | |
8732 | ||
8733 | ||
8734 | enablestring= | |
8735 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8736 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8737 | no_cache=0 | |
8738 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8739 | if test "${enable_finddlg+set}" = set; then | |
8740 | enableval="$enable_finddlg" | |
8741 | ||
8742 | if test "$enableval" = yes; then | |
8743 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8744 | else | |
8745 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8746 | fi | |
8747 | ||
8748 | else | |
8749 | ||
8750 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8751 | if test "x$LINE" != x ; then | |
8752 | eval "DEFAULT_$LINE" | |
8753 | else | |
8754 | no_cache=1 | |
8755 | fi | |
8756 | ||
8757 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8758 | ||
8759 | fi; | |
8760 | ||
8761 | eval "$ac_cv_use_finddlg" | |
8762 | if test "$no_cache" != 1; then | |
8763 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8764 | fi | |
8765 | ||
8766 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8767 | echo "$as_me:$LINENO: result: yes" >&5 | |
8768 | echo "${ECHO_T}yes" >&6 | |
8769 | else | |
8770 | echo "$as_me:$LINENO: result: no" >&5 | |
8771 | echo "${ECHO_T}no" >&6 | |
8772 | fi | |
8773 | ||
8774 | ||
8775 | enablestring= | |
8776 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8777 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8778 | no_cache=0 | |
8779 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8780 | if test "${enable_fontdlg+set}" = set; then | |
8781 | enableval="$enable_fontdlg" | |
8782 | ||
8783 | if test "$enableval" = yes; then | |
8784 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8785 | else | |
8786 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8787 | fi | |
8788 | ||
8789 | else | |
8790 | ||
8791 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8792 | if test "x$LINE" != x ; then | |
8793 | eval "DEFAULT_$LINE" | |
8794 | else | |
8795 | no_cache=1 | |
8796 | fi | |
8797 | ||
8798 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8799 | ||
8800 | fi; | |
8801 | ||
8802 | eval "$ac_cv_use_fontdlg" | |
8803 | if test "$no_cache" != 1; then | |
8804 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8805 | fi | |
8806 | ||
8807 | if test "$wxUSE_FONTDLG" = yes; then | |
8808 | echo "$as_me:$LINENO: result: yes" >&5 | |
8809 | echo "${ECHO_T}yes" >&6 | |
8810 | else | |
8811 | echo "$as_me:$LINENO: result: no" >&5 | |
8812 | echo "${ECHO_T}no" >&6 | |
8813 | fi | |
8814 | ||
8815 | ||
8816 | enablestring= | |
8817 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8818 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8819 | no_cache=0 | |
8820 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8821 | if test "${enable_dirdlg+set}" = set; then | |
8822 | enableval="$enable_dirdlg" | |
8823 | ||
8824 | if test "$enableval" = yes; then | |
8825 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8826 | else | |
8827 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8828 | fi | |
8829 | ||
8830 | else | |
8831 | ||
8832 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8833 | if test "x$LINE" != x ; then | |
8834 | eval "DEFAULT_$LINE" | |
8835 | else | |
8836 | no_cache=1 | |
8837 | fi | |
8838 | ||
8839 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8840 | ||
8841 | fi; | |
8842 | ||
8843 | eval "$ac_cv_use_dirdlg" | |
8844 | if test "$no_cache" != 1; then | |
8845 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8846 | fi | |
8847 | ||
8848 | if test "$wxUSE_DIRDLG" = yes; then | |
8849 | echo "$as_me:$LINENO: result: yes" >&5 | |
8850 | echo "${ECHO_T}yes" >&6 | |
8851 | else | |
8852 | echo "$as_me:$LINENO: result: no" >&5 | |
8853 | echo "${ECHO_T}no" >&6 | |
8854 | fi | |
8855 | ||
8856 | ||
8857 | enablestring= | |
8858 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
8859 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8860 | no_cache=0 | |
8861 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8862 | if test "${enable_msgdlg+set}" = set; then | |
8863 | enableval="$enable_msgdlg" | |
8864 | ||
8865 | if test "$enableval" = yes; then | |
8866 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8867 | else | |
8868 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8869 | fi | |
8870 | ||
8871 | else | |
8872 | ||
8873 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
8874 | if test "x$LINE" != x ; then | |
8875 | eval "DEFAULT_$LINE" | |
8876 | else | |
8877 | no_cache=1 | |
8878 | fi | |
8879 | ||
8880 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8881 | ||
8882 | fi; | |
8883 | ||
8884 | eval "$ac_cv_use_msgdlg" | |
8885 | if test "$no_cache" != 1; then | |
8886 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8887 | fi | |
8888 | ||
8889 | if test "$wxUSE_MSGDLG" = yes; then | |
8890 | echo "$as_me:$LINENO: result: yes" >&5 | |
8891 | echo "${ECHO_T}yes" >&6 | |
8892 | else | |
8893 | echo "$as_me:$LINENO: result: no" >&5 | |
8894 | echo "${ECHO_T}no" >&6 | |
8895 | fi | |
8896 | ||
8897 | ||
8898 | enablestring= | |
8899 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
8900 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8901 | no_cache=0 | |
8902 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8903 | if test "${enable_numberdlg+set}" = set; then | |
8904 | enableval="$enable_numberdlg" | |
8905 | ||
8906 | if test "$enableval" = yes; then | |
8907 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
8908 | else | |
8909 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
8910 | fi | |
8911 | ||
8912 | else | |
8913 | ||
8914 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
8915 | if test "x$LINE" != x ; then | |
8916 | eval "DEFAULT_$LINE" | |
8917 | else | |
8918 | no_cache=1 | |
8919 | fi | |
8920 | ||
8921 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
8922 | ||
8923 | fi; | |
8924 | ||
8925 | eval "$ac_cv_use_numberdlg" | |
8926 | if test "$no_cache" != 1; then | |
8927 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
8928 | fi | |
8929 | ||
8930 | if test "$wxUSE_NUMBERDLG" = yes; then | |
8931 | echo "$as_me:$LINENO: result: yes" >&5 | |
8932 | echo "${ECHO_T}yes" >&6 | |
8933 | else | |
8934 | echo "$as_me:$LINENO: result: no" >&5 | |
8935 | echo "${ECHO_T}no" >&6 | |
8936 | fi | |
8937 | ||
8938 | ||
8939 | enablestring= | |
8940 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
8941 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
8942 | no_cache=0 | |
8943 | # Check whether --enable-splash or --disable-splash was given. | |
8944 | if test "${enable_splash+set}" = set; then | |
8945 | enableval="$enable_splash" | |
8946 | ||
8947 | if test "$enableval" = yes; then | |
8948 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8949 | else | |
8950 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8951 | fi | |
8952 | ||
8953 | else | |
8954 | ||
8955 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
8956 | if test "x$LINE" != x ; then | |
8957 | eval "DEFAULT_$LINE" | |
8958 | else | |
8959 | no_cache=1 | |
8960 | fi | |
8961 | ||
8962 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
8963 | ||
8964 | fi; | |
8965 | ||
8966 | eval "$ac_cv_use_splash" | |
8967 | if test "$no_cache" != 1; then | |
8968 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8969 | fi | |
8970 | ||
8971 | if test "$wxUSE_SPLASH" = yes; then | |
8972 | echo "$as_me:$LINENO: result: yes" >&5 | |
8973 | echo "${ECHO_T}yes" >&6 | |
8974 | else | |
8975 | echo "$as_me:$LINENO: result: no" >&5 | |
8976 | echo "${ECHO_T}no" >&6 | |
8977 | fi | |
8978 | ||
8979 | ||
8980 | enablestring= | |
8981 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
8982 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
8983 | no_cache=0 | |
8984 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8985 | if test "${enable_textdlg+set}" = set; then | |
8986 | enableval="$enable_textdlg" | |
8987 | ||
8988 | if test "$enableval" = yes; then | |
8989 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8990 | else | |
8991 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8992 | fi | |
8993 | ||
8994 | else | |
8995 | ||
8996 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
8997 | if test "x$LINE" != x ; then | |
8998 | eval "DEFAULT_$LINE" | |
8999 | else | |
9000 | no_cache=1 | |
9001 | fi | |
9002 | ||
9003 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9004 | ||
9005 | fi; | |
9006 | ||
9007 | eval "$ac_cv_use_textdlg" | |
9008 | if test "$no_cache" != 1; then | |
9009 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9010 | fi | |
9011 | ||
9012 | if test "$wxUSE_TEXTDLG" = yes; then | |
9013 | echo "$as_me:$LINENO: result: yes" >&5 | |
9014 | echo "${ECHO_T}yes" >&6 | |
9015 | else | |
9016 | echo "$as_me:$LINENO: result: no" >&5 | |
9017 | echo "${ECHO_T}no" >&6 | |
9018 | fi | |
9019 | ||
9020 | ||
9021 | enablestring= | |
9022 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9023 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9024 | no_cache=0 | |
9025 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9026 | if test "${enable_tipdlg+set}" = set; then | |
9027 | enableval="$enable_tipdlg" | |
9028 | ||
9029 | if test "$enableval" = yes; then | |
9030 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9031 | else | |
9032 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9033 | fi | |
9034 | ||
9035 | else | |
9036 | ||
9037 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9038 | if test "x$LINE" != x ; then | |
9039 | eval "DEFAULT_$LINE" | |
9040 | else | |
9041 | no_cache=1 | |
9042 | fi | |
9043 | ||
9044 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9045 | ||
9046 | fi; | |
9047 | ||
9048 | eval "$ac_cv_use_tipdlg" | |
9049 | if test "$no_cache" != 1; then | |
9050 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9051 | fi | |
9052 | ||
9053 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9054 | echo "$as_me:$LINENO: result: yes" >&5 | |
9055 | echo "${ECHO_T}yes" >&6 | |
9056 | else | |
9057 | echo "$as_me:$LINENO: result: no" >&5 | |
9058 | echo "${ECHO_T}no" >&6 | |
9059 | fi | |
9060 | ||
9061 | ||
9062 | enablestring= | |
9063 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9064 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9065 | no_cache=0 | |
9066 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9067 | if test "${enable_progressdlg+set}" = set; then | |
9068 | enableval="$enable_progressdlg" | |
9069 | ||
9070 | if test "$enableval" = yes; then | |
9071 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9072 | else | |
9073 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9074 | fi | |
9075 | ||
9076 | else | |
9077 | ||
9078 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9079 | if test "x$LINE" != x ; then | |
9080 | eval "DEFAULT_$LINE" | |
9081 | else | |
9082 | no_cache=1 | |
9083 | fi | |
9084 | ||
9085 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9086 | ||
9087 | fi; | |
9088 | ||
9089 | eval "$ac_cv_use_progressdlg" | |
9090 | if test "$no_cache" != 1; then | |
9091 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9092 | fi | |
9093 | ||
9094 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9095 | echo "$as_me:$LINENO: result: yes" >&5 | |
9096 | echo "${ECHO_T}yes" >&6 | |
9097 | else | |
9098 | echo "$as_me:$LINENO: result: no" >&5 | |
9099 | echo "${ECHO_T}no" >&6 | |
9100 | fi | |
9101 | ||
9102 | ||
9103 | enablestring= | |
9104 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9105 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9106 | no_cache=0 | |
9107 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9108 | if test "${enable_wizarddlg+set}" = set; then | |
9109 | enableval="$enable_wizarddlg" | |
9110 | ||
9111 | if test "$enableval" = yes; then | |
9112 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9113 | else | |
9114 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9115 | fi | |
9116 | ||
9117 | else | |
9118 | ||
9119 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9120 | if test "x$LINE" != x ; then | |
9121 | eval "DEFAULT_$LINE" | |
9122 | else | |
9123 | no_cache=1 | |
9124 | fi | |
9125 | ||
9126 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9127 | ||
9128 | fi; | |
9129 | ||
9130 | eval "$ac_cv_use_wizarddlg" | |
9131 | if test "$no_cache" != 1; then | |
9132 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9133 | fi | |
9134 | ||
9135 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9136 | echo "$as_me:$LINENO: result: yes" >&5 | |
9137 | echo "${ECHO_T}yes" >&6 | |
9138 | else | |
9139 | echo "$as_me:$LINENO: result: no" >&5 | |
9140 | echo "${ECHO_T}no" >&6 | |
9141 | fi | |
9142 | ||
9143 | ||
9144 | ||
9145 | ||
9146 | enablestring= | |
9147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9148 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9149 | no_cache=0 | |
9150 | # Check whether --enable-menus or --disable-menus was given. | |
9151 | if test "${enable_menus+set}" = set; then | |
9152 | enableval="$enable_menus" | |
9153 | ||
9154 | if test "$enableval" = yes; then | |
9155 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9156 | else | |
9157 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9158 | fi | |
9159 | ||
9160 | else | |
9161 | ||
9162 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9163 | if test "x$LINE" != x ; then | |
9164 | eval "DEFAULT_$LINE" | |
9165 | else | |
9166 | no_cache=1 | |
9167 | fi | |
9168 | ||
9169 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9170 | ||
9171 | fi; | |
9172 | ||
9173 | eval "$ac_cv_use_menus" | |
9174 | if test "$no_cache" != 1; then | |
9175 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9176 | fi | |
9177 | ||
9178 | if test "$wxUSE_MENUS" = yes; then | |
9179 | echo "$as_me:$LINENO: result: yes" >&5 | |
9180 | echo "${ECHO_T}yes" >&6 | |
9181 | else | |
9182 | echo "$as_me:$LINENO: result: no" >&5 | |
9183 | echo "${ECHO_T}no" >&6 | |
9184 | fi | |
9185 | ||
9186 | ||
9187 | enablestring= | |
9188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9189 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9190 | no_cache=0 | |
9191 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9192 | if test "${enable_miniframe+set}" = set; then | |
9193 | enableval="$enable_miniframe" | |
9194 | ||
9195 | if test "$enableval" = yes; then | |
9196 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9197 | else | |
9198 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9199 | fi | |
9200 | ||
9201 | else | |
9202 | ||
9203 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9204 | if test "x$LINE" != x ; then | |
9205 | eval "DEFAULT_$LINE" | |
9206 | else | |
9207 | no_cache=1 | |
9208 | fi | |
9209 | ||
9210 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9211 | ||
9212 | fi; | |
9213 | ||
9214 | eval "$ac_cv_use_miniframe" | |
9215 | if test "$no_cache" != 1; then | |
9216 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9217 | fi | |
9218 | ||
9219 | if test "$wxUSE_MINIFRAME" = yes; then | |
9220 | echo "$as_me:$LINENO: result: yes" >&5 | |
9221 | echo "${ECHO_T}yes" >&6 | |
9222 | else | |
9223 | echo "$as_me:$LINENO: result: no" >&5 | |
9224 | echo "${ECHO_T}no" >&6 | |
9225 | fi | |
9226 | ||
9227 | ||
9228 | enablestring= | |
9229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9230 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9231 | no_cache=0 | |
9232 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9233 | if test "${enable_tooltips+set}" = set; then | |
9234 | enableval="$enable_tooltips" | |
9235 | ||
9236 | if test "$enableval" = yes; then | |
9237 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9238 | else | |
9239 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9240 | fi | |
9241 | ||
9242 | else | |
9243 | ||
9244 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9245 | if test "x$LINE" != x ; then | |
9246 | eval "DEFAULT_$LINE" | |
9247 | else | |
9248 | no_cache=1 | |
9249 | fi | |
9250 | ||
9251 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9252 | ||
9253 | fi; | |
9254 | ||
9255 | eval "$ac_cv_use_tooltips" | |
9256 | if test "$no_cache" != 1; then | |
9257 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9258 | fi | |
9259 | ||
9260 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9261 | echo "$as_me:$LINENO: result: yes" >&5 | |
9262 | echo "${ECHO_T}yes" >&6 | |
9263 | else | |
9264 | echo "$as_me:$LINENO: result: no" >&5 | |
9265 | echo "${ECHO_T}no" >&6 | |
9266 | fi | |
9267 | ||
9268 | ||
9269 | enablestring= | |
9270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9271 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9272 | no_cache=0 | |
9273 | # Check whether --enable-splines or --disable-splines was given. | |
9274 | if test "${enable_splines+set}" = set; then | |
9275 | enableval="$enable_splines" | |
9276 | ||
9277 | if test "$enableval" = yes; then | |
9278 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9279 | else | |
9280 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9281 | fi | |
9282 | ||
9283 | else | |
9284 | ||
9285 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9286 | if test "x$LINE" != x ; then | |
9287 | eval "DEFAULT_$LINE" | |
9288 | else | |
9289 | no_cache=1 | |
9290 | fi | |
9291 | ||
9292 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9293 | ||
9294 | fi; | |
9295 | ||
9296 | eval "$ac_cv_use_splines" | |
9297 | if test "$no_cache" != 1; then | |
9298 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9299 | fi | |
9300 | ||
9301 | if test "$wxUSE_SPLINES" = yes; then | |
9302 | echo "$as_me:$LINENO: result: yes" >&5 | |
9303 | echo "${ECHO_T}yes" >&6 | |
9304 | else | |
9305 | echo "$as_me:$LINENO: result: no" >&5 | |
9306 | echo "${ECHO_T}no" >&6 | |
9307 | fi | |
9308 | ||
9309 | ||
9310 | enablestring= | |
9311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9312 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9313 | no_cache=0 | |
9314 | # Check whether --enable-validators or --disable-validators was given. | |
9315 | if test "${enable_validators+set}" = set; then | |
9316 | enableval="$enable_validators" | |
9317 | ||
9318 | if test "$enableval" = yes; then | |
9319 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9320 | else | |
9321 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9322 | fi | |
9323 | ||
9324 | else | |
9325 | ||
9326 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9327 | if test "x$LINE" != x ; then | |
9328 | eval "DEFAULT_$LINE" | |
9329 | else | |
9330 | no_cache=1 | |
9331 | fi | |
9332 | ||
9333 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9334 | ||
9335 | fi; | |
9336 | ||
9337 | eval "$ac_cv_use_validators" | |
9338 | if test "$no_cache" != 1; then | |
9339 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9340 | fi | |
9341 | ||
9342 | if test "$wxUSE_VALIDATORS" = yes; then | |
9343 | echo "$as_me:$LINENO: result: yes" >&5 | |
9344 | echo "${ECHO_T}yes" >&6 | |
9345 | else | |
9346 | echo "$as_me:$LINENO: result: no" >&5 | |
9347 | echo "${ECHO_T}no" >&6 | |
9348 | fi | |
9349 | ||
9350 | ||
9351 | enablestring= | |
9352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9353 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9354 | no_cache=0 | |
9355 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9356 | if test "${enable_busyinfo+set}" = set; then | |
9357 | enableval="$enable_busyinfo" | |
9358 | ||
9359 | if test "$enableval" = yes; then | |
9360 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9361 | else | |
9362 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9363 | fi | |
9364 | ||
9365 | else | |
9366 | ||
9367 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9368 | if test "x$LINE" != x ; then | |
9369 | eval "DEFAULT_$LINE" | |
9370 | else | |
9371 | no_cache=1 | |
9372 | fi | |
9373 | ||
9374 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9375 | ||
9376 | fi; | |
9377 | ||
9378 | eval "$ac_cv_use_busyinfo" | |
9379 | if test "$no_cache" != 1; then | |
9380 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9381 | fi | |
9382 | ||
9383 | if test "$wxUSE_BUSYINFO" = yes; then | |
9384 | echo "$as_me:$LINENO: result: yes" >&5 | |
9385 | echo "${ECHO_T}yes" >&6 | |
9386 | else | |
9387 | echo "$as_me:$LINENO: result: no" >&5 | |
9388 | echo "${ECHO_T}no" >&6 | |
9389 | fi | |
9390 | ||
9391 | ||
9392 | enablestring= | |
9393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9394 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9395 | no_cache=0 | |
9396 | # Check whether --enable-joystick or --disable-joystick was given. | |
9397 | if test "${enable_joystick+set}" = set; then | |
9398 | enableval="$enable_joystick" | |
9399 | ||
9400 | if test "$enableval" = yes; then | |
9401 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9402 | else | |
9403 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9404 | fi | |
9405 | ||
9406 | else | |
9407 | ||
9408 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9409 | if test "x$LINE" != x ; then | |
9410 | eval "DEFAULT_$LINE" | |
9411 | else | |
9412 | no_cache=1 | |
9413 | fi | |
9414 | ||
9415 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9416 | ||
9417 | fi; | |
9418 | ||
9419 | eval "$ac_cv_use_joystick" | |
9420 | if test "$no_cache" != 1; then | |
9421 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9422 | fi | |
9423 | ||
9424 | if test "$wxUSE_JOYSTICK" = yes; then | |
9425 | echo "$as_me:$LINENO: result: yes" >&5 | |
9426 | echo "${ECHO_T}yes" >&6 | |
9427 | else | |
9428 | echo "$as_me:$LINENO: result: no" >&5 | |
9429 | echo "${ECHO_T}no" >&6 | |
9430 | fi | |
9431 | ||
9432 | ||
9433 | enablestring= | |
9434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9435 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9436 | no_cache=0 | |
9437 | # Check whether --enable-metafile or --disable-metafile was given. | |
9438 | if test "${enable_metafile+set}" = set; then | |
9439 | enableval="$enable_metafile" | |
9440 | ||
9441 | if test "$enableval" = yes; then | |
9442 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9443 | else | |
9444 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9445 | fi | |
9446 | ||
9447 | else | |
9448 | ||
9449 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9450 | if test "x$LINE" != x ; then | |
9451 | eval "DEFAULT_$LINE" | |
9452 | else | |
9453 | no_cache=1 | |
9454 | fi | |
9455 | ||
9456 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9457 | ||
9458 | fi; | |
9459 | ||
9460 | eval "$ac_cv_use_metafile" | |
9461 | if test "$no_cache" != 1; then | |
9462 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9463 | fi | |
9464 | ||
9465 | if test "$wxUSE_METAFILE" = yes; then | |
9466 | echo "$as_me:$LINENO: result: yes" >&5 | |
9467 | echo "${ECHO_T}yes" >&6 | |
9468 | else | |
9469 | echo "$as_me:$LINENO: result: no" >&5 | |
9470 | echo "${ECHO_T}no" >&6 | |
9471 | fi | |
9472 | ||
9473 | ||
9474 | enablestring= | |
9475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9476 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9477 | no_cache=0 | |
9478 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9479 | if test "${enable_dragimage+set}" = set; then | |
9480 | enableval="$enable_dragimage" | |
9481 | ||
9482 | if test "$enableval" = yes; then | |
9483 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9484 | else | |
9485 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9486 | fi | |
9487 | ||
9488 | else | |
9489 | ||
9490 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9491 | if test "x$LINE" != x ; then | |
9492 | eval "DEFAULT_$LINE" | |
9493 | else | |
9494 | no_cache=1 | |
9495 | fi | |
9496 | ||
9497 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9498 | ||
9499 | fi; | |
9500 | ||
9501 | eval "$ac_cv_use_dragimage" | |
9502 | if test "$no_cache" != 1; then | |
9503 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9504 | fi | |
9505 | ||
9506 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9507 | echo "$as_me:$LINENO: result: yes" >&5 | |
9508 | echo "${ECHO_T}yes" >&6 | |
9509 | else | |
9510 | echo "$as_me:$LINENO: result: no" >&5 | |
9511 | echo "${ECHO_T}no" >&6 | |
9512 | fi | |
9513 | ||
9514 | ||
9515 | enablestring= | |
9516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9517 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9518 | no_cache=0 | |
9519 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9520 | if test "${enable_accessibility+set}" = set; then | |
9521 | enableval="$enable_accessibility" | |
9522 | ||
9523 | if test "$enableval" = yes; then | |
9524 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9525 | else | |
9526 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9527 | fi | |
9528 | ||
9529 | else | |
9530 | ||
9531 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9532 | if test "x$LINE" != x ; then | |
9533 | eval "DEFAULT_$LINE" | |
9534 | else | |
9535 | no_cache=1 | |
9536 | fi | |
9537 | ||
9538 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9539 | ||
9540 | fi; | |
9541 | ||
9542 | eval "$ac_cv_use_accessibility" | |
9543 | if test "$no_cache" != 1; then | |
9544 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9545 | fi | |
9546 | ||
9547 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9548 | echo "$as_me:$LINENO: result: yes" >&5 | |
9549 | echo "${ECHO_T}yes" >&6 | |
9550 | else | |
9551 | echo "$as_me:$LINENO: result: no" >&5 | |
9552 | echo "${ECHO_T}no" >&6 | |
9553 | fi | |
9554 | ||
9555 | ||
9556 | ||
9557 | ||
9558 | enablestring= | |
9559 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9560 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9561 | no_cache=0 | |
9562 | # Check whether --enable-palette or --disable-palette was given. | |
9563 | if test "${enable_palette+set}" = set; then | |
9564 | enableval="$enable_palette" | |
9565 | ||
9566 | if test "$enableval" = yes; then | |
9567 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9568 | else | |
9569 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9570 | fi | |
9571 | ||
9572 | else | |
9573 | ||
9574 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9575 | if test "x$LINE" != x ; then | |
9576 | eval "DEFAULT_$LINE" | |
9577 | else | |
9578 | no_cache=1 | |
9579 | fi | |
9580 | ||
9581 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9582 | ||
9583 | fi; | |
9584 | ||
9585 | eval "$ac_cv_use_palette" | |
9586 | if test "$no_cache" != 1; then | |
9587 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9588 | fi | |
9589 | ||
9590 | if test "$wxUSE_PALETTE" = yes; then | |
9591 | echo "$as_me:$LINENO: result: yes" >&5 | |
9592 | echo "${ECHO_T}yes" >&6 | |
9593 | else | |
9594 | echo "$as_me:$LINENO: result: no" >&5 | |
9595 | echo "${ECHO_T}no" >&6 | |
9596 | fi | |
9597 | ||
9598 | ||
9599 | enablestring= | |
9600 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9601 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9602 | no_cache=0 | |
9603 | # Check whether --enable-image or --disable-image was given. | |
9604 | if test "${enable_image+set}" = set; then | |
9605 | enableval="$enable_image" | |
9606 | ||
9607 | if test "$enableval" = yes; then | |
9608 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9609 | else | |
9610 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9611 | fi | |
9612 | ||
9613 | else | |
9614 | ||
9615 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9616 | if test "x$LINE" != x ; then | |
9617 | eval "DEFAULT_$LINE" | |
9618 | else | |
9619 | no_cache=1 | |
9620 | fi | |
9621 | ||
9622 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9623 | ||
9624 | fi; | |
9625 | ||
9626 | eval "$ac_cv_use_image" | |
9627 | if test "$no_cache" != 1; then | |
9628 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9629 | fi | |
9630 | ||
9631 | if test "$wxUSE_IMAGE" = yes; then | |
9632 | echo "$as_me:$LINENO: result: yes" >&5 | |
9633 | echo "${ECHO_T}yes" >&6 | |
9634 | else | |
9635 | echo "$as_me:$LINENO: result: no" >&5 | |
9636 | echo "${ECHO_T}no" >&6 | |
9637 | fi | |
9638 | ||
9639 | ||
9640 | enablestring= | |
9641 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9642 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9643 | no_cache=0 | |
9644 | # Check whether --enable-gif or --disable-gif was given. | |
9645 | if test "${enable_gif+set}" = set; then | |
9646 | enableval="$enable_gif" | |
9647 | ||
9648 | if test "$enableval" = yes; then | |
9649 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9650 | else | |
9651 | ac_cv_use_gif='wxUSE_GIF=no' | |
9652 | fi | |
9653 | ||
9654 | else | |
9655 | ||
9656 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9657 | if test "x$LINE" != x ; then | |
9658 | eval "DEFAULT_$LINE" | |
9659 | else | |
9660 | no_cache=1 | |
9661 | fi | |
9662 | ||
9663 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9664 | ||
9665 | fi; | |
9666 | ||
9667 | eval "$ac_cv_use_gif" | |
9668 | if test "$no_cache" != 1; then | |
9669 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9670 | fi | |
9671 | ||
9672 | if test "$wxUSE_GIF" = yes; then | |
9673 | echo "$as_me:$LINENO: result: yes" >&5 | |
9674 | echo "${ECHO_T}yes" >&6 | |
9675 | else | |
9676 | echo "$as_me:$LINENO: result: no" >&5 | |
9677 | echo "${ECHO_T}no" >&6 | |
9678 | fi | |
9679 | ||
9680 | ||
9681 | enablestring= | |
9682 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9683 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9684 | no_cache=0 | |
9685 | # Check whether --enable-pcx or --disable-pcx was given. | |
9686 | if test "${enable_pcx+set}" = set; then | |
9687 | enableval="$enable_pcx" | |
9688 | ||
9689 | if test "$enableval" = yes; then | |
9690 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9691 | else | |
9692 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9693 | fi | |
9694 | ||
9695 | else | |
9696 | ||
9697 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9698 | if test "x$LINE" != x ; then | |
9699 | eval "DEFAULT_$LINE" | |
9700 | else | |
9701 | no_cache=1 | |
9702 | fi | |
9703 | ||
9704 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9705 | ||
9706 | fi; | |
9707 | ||
9708 | eval "$ac_cv_use_pcx" | |
9709 | if test "$no_cache" != 1; then | |
9710 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9711 | fi | |
9712 | ||
9713 | if test "$wxUSE_PCX" = yes; then | |
9714 | echo "$as_me:$LINENO: result: yes" >&5 | |
9715 | echo "${ECHO_T}yes" >&6 | |
9716 | else | |
9717 | echo "$as_me:$LINENO: result: no" >&5 | |
9718 | echo "${ECHO_T}no" >&6 | |
9719 | fi | |
9720 | ||
9721 | ||
9722 | enablestring= | |
9723 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9724 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9725 | no_cache=0 | |
9726 | # Check whether --enable-iff or --disable-iff was given. | |
9727 | if test "${enable_iff+set}" = set; then | |
9728 | enableval="$enable_iff" | |
9729 | ||
9730 | if test "$enableval" = yes; then | |
9731 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9732 | else | |
9733 | ac_cv_use_iff='wxUSE_IFF=no' | |
9734 | fi | |
9735 | ||
9736 | else | |
9737 | ||
9738 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9739 | if test "x$LINE" != x ; then | |
9740 | eval "DEFAULT_$LINE" | |
9741 | else | |
9742 | no_cache=1 | |
9743 | fi | |
9744 | ||
9745 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9746 | ||
9747 | fi; | |
9748 | ||
9749 | eval "$ac_cv_use_iff" | |
9750 | if test "$no_cache" != 1; then | |
9751 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9752 | fi | |
9753 | ||
9754 | if test "$wxUSE_IFF" = yes; then | |
9755 | echo "$as_me:$LINENO: result: yes" >&5 | |
9756 | echo "${ECHO_T}yes" >&6 | |
9757 | else | |
9758 | echo "$as_me:$LINENO: result: no" >&5 | |
9759 | echo "${ECHO_T}no" >&6 | |
9760 | fi | |
9761 | ||
9762 | ||
9763 | enablestring= | |
9764 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9765 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9766 | no_cache=0 | |
9767 | # Check whether --enable-pnm or --disable-pnm was given. | |
9768 | if test "${enable_pnm+set}" = set; then | |
9769 | enableval="$enable_pnm" | |
9770 | ||
9771 | if test "$enableval" = yes; then | |
9772 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9773 | else | |
9774 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9775 | fi | |
9776 | ||
9777 | else | |
9778 | ||
9779 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9780 | if test "x$LINE" != x ; then | |
9781 | eval "DEFAULT_$LINE" | |
9782 | else | |
9783 | no_cache=1 | |
9784 | fi | |
9785 | ||
9786 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9787 | ||
9788 | fi; | |
9789 | ||
9790 | eval "$ac_cv_use_pnm" | |
9791 | if test "$no_cache" != 1; then | |
9792 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9793 | fi | |
9794 | ||
9795 | if test "$wxUSE_PNM" = yes; then | |
9796 | echo "$as_me:$LINENO: result: yes" >&5 | |
9797 | echo "${ECHO_T}yes" >&6 | |
9798 | else | |
9799 | echo "$as_me:$LINENO: result: no" >&5 | |
9800 | echo "${ECHO_T}no" >&6 | |
9801 | fi | |
9802 | ||
9803 | ||
9804 | enablestring= | |
9805 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9806 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9807 | no_cache=0 | |
9808 | # Check whether --enable-xpm or --disable-xpm was given. | |
9809 | if test "${enable_xpm+set}" = set; then | |
9810 | enableval="$enable_xpm" | |
9811 | ||
9812 | if test "$enableval" = yes; then | |
9813 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9814 | else | |
9815 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9816 | fi | |
9817 | ||
9818 | else | |
9819 | ||
9820 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9821 | if test "x$LINE" != x ; then | |
9822 | eval "DEFAULT_$LINE" | |
9823 | else | |
9824 | no_cache=1 | |
9825 | fi | |
9826 | ||
9827 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9828 | ||
9829 | fi; | |
9830 | ||
9831 | eval "$ac_cv_use_xpm" | |
9832 | if test "$no_cache" != 1; then | |
9833 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9834 | fi | |
9835 | ||
9836 | if test "$wxUSE_XPM" = yes; then | |
9837 | echo "$as_me:$LINENO: result: yes" >&5 | |
9838 | echo "${ECHO_T}yes" >&6 | |
9839 | else | |
9840 | echo "$as_me:$LINENO: result: no" >&5 | |
9841 | echo "${ECHO_T}no" >&6 | |
9842 | fi | |
9843 | ||
9844 | ||
9845 | enablestring= | |
9846 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
9847 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9848 | no_cache=0 | |
9849 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9850 | if test "${enable_ico_cur+set}" = set; then | |
9851 | enableval="$enable_ico_cur" | |
9852 | ||
9853 | if test "$enableval" = yes; then | |
9854 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9855 | else | |
9856 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9857 | fi | |
9858 | ||
9859 | else | |
9860 | ||
9861 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
9862 | if test "x$LINE" != x ; then | |
9863 | eval "DEFAULT_$LINE" | |
9864 | else | |
9865 | no_cache=1 | |
9866 | fi | |
9867 | ||
9868 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9869 | ||
9870 | fi; | |
9871 | ||
9872 | eval "$ac_cv_use_ico_cur" | |
9873 | if test "$no_cache" != 1; then | |
9874 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9875 | fi | |
9876 | ||
9877 | if test "$wxUSE_ICO_CUR" = yes; then | |
9878 | echo "$as_me:$LINENO: result: yes" >&5 | |
9879 | echo "${ECHO_T}yes" >&6 | |
9880 | else | |
9881 | echo "$as_me:$LINENO: result: no" >&5 | |
9882 | echo "${ECHO_T}no" >&6 | |
9883 | fi | |
9884 | ||
9885 | ||
9886 | fi | |
9887 | ||
9888 | ||
9889 | ||
9890 | enablestring= | |
9891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9892 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9893 | no_cache=0 | |
9894 | # Check whether --enable-official_build or --disable-official_build was given. | |
9895 | if test "${enable_official_build+set}" = set; then | |
9896 | enableval="$enable_official_build" | |
9897 | ||
9898 | if test "$enableval" = yes; then | |
9899 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9900 | else | |
9901 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9902 | fi | |
9903 | ||
9904 | else | |
9905 | ||
9906 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9907 | if test "x$LINE" != x ; then | |
9908 | eval "DEFAULT_$LINE" | |
9909 | else | |
9910 | no_cache=1 | |
9911 | fi | |
9912 | ||
9913 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9914 | ||
9915 | fi; | |
9916 | ||
9917 | eval "$ac_cv_use_official_build" | |
9918 | if test "$no_cache" != 1; then | |
9919 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9920 | fi | |
9921 | ||
9922 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9923 | echo "$as_me:$LINENO: result: yes" >&5 | |
9924 | echo "${ECHO_T}yes" >&6 | |
9925 | else | |
9926 | echo "$as_me:$LINENO: result: no" >&5 | |
9927 | echo "${ECHO_T}no" >&6 | |
9928 | fi | |
9929 | ||
9930 | # Check whether --enable-vendor or --disable-vendor was given. | |
9931 | if test "${enable_vendor+set}" = set; then | |
9932 | enableval="$enable_vendor" | |
9933 | VENDOR="$enableval" | |
9934 | fi; | |
9935 | if test "x$VENDOR" = "x"; then | |
9936 | VENDOR="custom" | |
9937 | fi | |
9938 | ||
9939 | case "${host}" in | |
9940 | *-pc-os2_emx | *-pc-os2-emx ) | |
9941 | PATH_IFS=';' | |
a848cd7e SC |
9942 | ;; |
9943 | *) | |
9944 | PATH_IFS=':' | |
9945 | ;; | |
9946 | esac | |
9947 | ||
9948 | ||
9949 | ||
9950 | echo "saving argument cache $wx_arg_cache_file" | |
9951 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
9952 | ||
9953 | ||
9954 | ||
9955 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9956 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
9957 | ||
9958 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9959 | if test "$wxUSE_WINE" = "yes"; then | |
9960 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9961 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9962 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9963 | wxUSE_SHARED=no | |
9964 | fi | |
9965 | ||
9966 | if test "$wxUSE_GUI" = "yes"; then | |
9967 | ||
9968 | if test "$USE_BEOS" = 1; then | |
9969 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
9970 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9971 | { (exit 1); exit 1; }; } | |
9972 | fi | |
9973 | ||
9974 | if test "$TOOLKIT_GIVEN" = 1; then | |
9975 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9976 | var=wxUSE_$toolkit | |
9977 | eval "value=\$${var}" | |
9978 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9979 | done | |
9980 | else | |
9981 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9982 | if test "$has_toolkit_in_cache" != 1; then | |
9983 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9984 | else | |
9985 | var=DEFAULT_wxUSE_$toolkit | |
9986 | fi | |
9987 | eval "wxUSE_$toolkit=\$${var}" | |
9988 | done | |
9989 | fi | |
9990 | ||
9991 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
9992 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9993 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
9994 | ||
9995 | case "${host}" in | |
9996 | *-pc-os2_emx | *-pc-os2-emx ) | |
9997 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
9998 | esac | |
9999 | ||
10000 | case "$NUM_TOOLKITS" in | |
10001 | 1) | |
10002 | ;; | |
10003 | 0) | |
10004 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10005 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10006 | { (exit 1); exit 1; }; } | |
10007 | ;; | |
10008 | *) | |
10009 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10010 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10011 | { (exit 1); exit 1; }; } | |
10012 | esac | |
10013 | ||
10014 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10015 | var=wxUSE_$toolkit | |
10016 | eval "value=\$${var}" | |
10017 | if test "x$value" != x; then | |
10018 | cache_var=CACHE_$toolkit | |
10019 | eval "cache=\$${cache_var}" | |
10020 | if test "$cache" = 1; then | |
10021 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10022 | fi | |
10023 | if test "$value" = 1; then | |
10024 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10025 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10026 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10027 | fi | |
10028 | fi | |
10029 | done | |
10030 | else | |
10031 | if test "x$host_alias" != "x"; then | |
10032 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10033 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10034 | else | |
10035 | echo "$as_me:$LINENO: result: base only" >&5 | |
10036 | echo "${ECHO_T}base only" >&6 | |
10037 | fi | |
10038 | fi | |
10039 | ||
10040 | wants_win32=0 | |
10041 | doesnt_want_win32=0 | |
10042 | case "${host}" in | |
10043 | *-*-cygwin*) | |
10044 | if test "$wxUSE_MSW" = 1 ; then | |
10045 | wants_win32=1 | |
10046 | else | |
10047 | doesnt_want_win32=1 | |
10048 | fi | |
10049 | ;; | |
10050 | *-*-mingw*) | |
10051 | wants_win32=1 | |
10052 | ;; | |
10053 | esac | |
10054 | ||
10055 | if test "$wxUSE_WINE" = "yes"; then | |
10056 | wants_win32=1 | |
10057 | CC=winegcc | |
10058 | CXX=wineg++ | |
10059 | RESCOMP=wrc | |
10060 | LDFLAGS_GUI="-mwindows" | |
10061 | fi | |
10062 | ||
10063 | if test "$wants_win32" = 1 ; then | |
10064 | USE_UNIX=0 | |
10065 | USE_WIN32=1 | |
10066 | cat >>confdefs.h <<\_ACEOF | |
10067 | #define __WIN32__ 1 | |
10068 | _ACEOF | |
10069 | ||
10070 | cat >>confdefs.h <<\_ACEOF | |
10071 | #define __WIN95__ 1 | |
10072 | _ACEOF | |
10073 | ||
10074 | cat >>confdefs.h <<\_ACEOF | |
10075 | #define __WINDOWS__ 1 | |
10076 | _ACEOF | |
10077 | ||
10078 | cat >>confdefs.h <<\_ACEOF | |
10079 | #define __GNUWIN32__ 1 | |
10080 | _ACEOF | |
10081 | ||
10082 | cat >>confdefs.h <<\_ACEOF | |
10083 | #define STRICT 1 | |
10084 | _ACEOF | |
10085 | ||
10086 | cat >>confdefs.h <<\_ACEOF | |
10087 | #define WINVER 0x0400 | |
10088 | _ACEOF | |
10089 | ||
10090 | fi | |
10091 | if test "$doesnt_want_win32" = 1 ; then | |
10092 | USE_UNIX=1 | |
10093 | USE_WIN32=0 | |
10094 | fi | |
10095 | ||
10096 | if test "$USE_UNIX" = 1 ; then | |
10097 | wxUSE_UNIX=yes | |
10098 | cat >>confdefs.h <<\_ACEOF | |
10099 | #define __UNIX__ 1 | |
10100 | _ACEOF | |
10101 | ||
10102 | fi | |
10103 | ||
10104 | ||
10105 | cat >confcache <<\_ACEOF | |
10106 | # This file is a shell script that caches the results of configure | |
10107 | # tests run on this system so they can be shared between configure | |
10108 | # scripts and configure runs, see configure's option --config-cache. | |
10109 | # It is not useful on other systems. If it contains results you don't | |
10110 | # want to keep, you may remove or edit it. | |
10111 | # | |
10112 | # config.status only pays attention to the cache file if you give it | |
10113 | # the --recheck option to rerun configure. | |
10114 | # | |
10115 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10116 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10117 | # following values. | |
10118 | ||
10119 | _ACEOF | |
10120 | ||
10121 | # The following way of writing the cache mishandles newlines in values, | |
10122 | # but we know of no workaround that is simple, portable, and efficient. | |
10123 | # So, don't put newlines in cache variables' values. | |
10124 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10125 | # and sets the high bit in the cache file unless we assign to the vars. | |
10126 | { | |
10127 | (set) 2>&1 | | |
10128 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10129 | *ac_space=\ *) | |
10130 | # `set' does not quote correctly, so add quotes (double-quote | |
10131 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10132 | sed -n \ | |
ac1cb8d3 VS |
10133 | "s/'/'\\\\''/g; |
10134 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10135 | ;; |
10136 | *) | |
10137 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10138 | sed -n \ | |
ac1cb8d3 | 10139 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10140 | ;; |
10141 | esac; | |
10142 | } | | |
10143 | sed ' | |
10144 | t clear | |
10145 | : clear | |
10146 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10147 | t end | |
10148 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10149 | : end' >>confcache | |
10150 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10151 | if test -w $cache_file; then | |
10152 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10153 | cat confcache >$cache_file | |
10154 | else | |
10155 | echo "not updating unwritable cache $cache_file" | |
10156 | fi | |
10157 | fi | |
10158 | rm -f confcache | |
10159 | ||
10160 | if test "$build" != "$host" ; then | |
10161 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10162 | CC=$host_alias-gcc | |
10163 | CXX=$host_alias-c++ | |
10164 | AR=$host_alias-ar | |
10165 | RANLIB=$host_alias-ranlib | |
10166 | DLLTOOL=$host_alias-dlltool | |
10167 | RESCOMP=$host_alias-windres | |
10168 | LD=$host_alias-ld | |
10169 | NM=$host_alias-nm | |
10170 | STRIP=$host_alias-strip | |
10171 | else | |
10172 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10173 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10174 | { (exit 1); exit 1; }; } | |
10175 | fi | |
10176 | fi | |
10177 | ||
10178 | CFLAGS=${CFLAGS:=} | |
10179 | ac_ext=c | |
10180 | ac_cpp='$CPP $CPPFLAGS' | |
10181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10184 | if test -n "$ac_tool_prefix"; then | |
10185 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10186 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10189 | if test "${ac_cv_prog_CC+set}" = set; then | |
10190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10191 | else | |
10192 | if test -n "$CC"; then | |
10193 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10194 | else | |
10195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10196 | for as_dir in $PATH | |
10197 | do | |
10198 | IFS=$as_save_IFS | |
10199 | test -z "$as_dir" && as_dir=. | |
10200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10202 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10204 | break 2 | |
10205 | fi | |
10206 | done | |
10207 | done | |
10208 | ||
10209 | fi | |
10210 | fi | |
10211 | CC=$ac_cv_prog_CC | |
10212 | if test -n "$CC"; then | |
10213 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10214 | echo "${ECHO_T}$CC" >&6 | |
10215 | else | |
10216 | echo "$as_me:$LINENO: result: no" >&5 | |
10217 | echo "${ECHO_T}no" >&6 | |
10218 | fi | |
10219 | ||
10220 | fi | |
10221 | if test -z "$ac_cv_prog_CC"; then | |
10222 | ac_ct_CC=$CC | |
10223 | # Extract the first word of "gcc", so it can be a program name with args. | |
10224 | set dummy gcc; ac_word=$2 | |
10225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10227 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10229 | else | |
10230 | if test -n "$ac_ct_CC"; then | |
10231 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10232 | else | |
10233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10234 | for as_dir in $PATH | |
10235 | do | |
10236 | IFS=$as_save_IFS | |
10237 | test -z "$as_dir" && as_dir=. | |
10238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10240 | ac_cv_prog_ac_ct_CC="gcc" | |
10241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10242 | break 2 | |
10243 | fi | |
10244 | done | |
10245 | done | |
10246 | ||
10247 | fi | |
10248 | fi | |
10249 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10250 | if test -n "$ac_ct_CC"; then | |
10251 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10252 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10253 | else | |
10254 | echo "$as_me:$LINENO: result: no" >&5 | |
10255 | echo "${ECHO_T}no" >&6 | |
10256 | fi | |
10257 | ||
10258 | CC=$ac_ct_CC | |
10259 | else | |
10260 | CC="$ac_cv_prog_CC" | |
10261 | fi | |
10262 | ||
10263 | if test -z "$CC"; then | |
10264 | if test -n "$ac_tool_prefix"; then | |
10265 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10266 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10267 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10269 | if test "${ac_cv_prog_CC+set}" = set; then | |
10270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10271 | else | |
10272 | if test -n "$CC"; then | |
10273 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10274 | else | |
10275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10276 | for as_dir in $PATH | |
10277 | do | |
10278 | IFS=$as_save_IFS | |
10279 | test -z "$as_dir" && as_dir=. | |
10280 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10282 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10284 | break 2 | |
10285 | fi | |
10286 | done | |
10287 | done | |
10288 | ||
10289 | fi | |
10290 | fi | |
10291 | CC=$ac_cv_prog_CC | |
10292 | if test -n "$CC"; then | |
10293 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10294 | echo "${ECHO_T}$CC" >&6 | |
10295 | else | |
10296 | echo "$as_me:$LINENO: result: no" >&5 | |
10297 | echo "${ECHO_T}no" >&6 | |
10298 | fi | |
10299 | ||
10300 | fi | |
10301 | if test -z "$ac_cv_prog_CC"; then | |
10302 | ac_ct_CC=$CC | |
10303 | # Extract the first word of "cc", so it can be a program name with args. | |
10304 | set dummy cc; ac_word=$2 | |
10305 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10307 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10309 | else | |
10310 | if test -n "$ac_ct_CC"; then | |
10311 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10312 | else | |
10313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10314 | for as_dir in $PATH | |
10315 | do | |
10316 | IFS=$as_save_IFS | |
10317 | test -z "$as_dir" && as_dir=. | |
10318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10320 | ac_cv_prog_ac_ct_CC="cc" | |
10321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10322 | break 2 | |
10323 | fi | |
10324 | done | |
10325 | done | |
10326 | ||
10327 | fi | |
10328 | fi | |
10329 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10330 | if test -n "$ac_ct_CC"; then | |
10331 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10332 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10333 | else | |
10334 | echo "$as_me:$LINENO: result: no" >&5 | |
10335 | echo "${ECHO_T}no" >&6 | |
10336 | fi | |
10337 | ||
10338 | CC=$ac_ct_CC | |
10339 | else | |
10340 | CC="$ac_cv_prog_CC" | |
10341 | fi | |
10342 | ||
10343 | fi | |
10344 | if test -z "$CC"; then | |
10345 | # Extract the first word of "cc", so it can be a program name with args. | |
10346 | set dummy cc; ac_word=$2 | |
10347 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10349 | if test "${ac_cv_prog_CC+set}" = set; then | |
10350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10351 | else | |
10352 | if test -n "$CC"; then | |
10353 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10354 | else | |
10355 | ac_prog_rejected=no | |
10356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10357 | for as_dir in $PATH | |
10358 | do | |
10359 | IFS=$as_save_IFS | |
10360 | test -z "$as_dir" && as_dir=. | |
10361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10363 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10364 | ac_prog_rejected=yes | |
10365 | continue | |
10366 | fi | |
10367 | ac_cv_prog_CC="cc" | |
10368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10369 | break 2 | |
10370 | fi | |
10371 | done | |
10372 | done | |
10373 | ||
10374 | if test $ac_prog_rejected = yes; then | |
10375 | # We found a bogon in the path, so make sure we never use it. | |
10376 | set dummy $ac_cv_prog_CC | |
10377 | shift | |
10378 | if test $# != 0; then | |
10379 | # We chose a different compiler from the bogus one. | |
10380 | # However, it has the same basename, so the bogon will be chosen | |
10381 | # first if we set CC to just the basename; use the full file name. | |
10382 | shift | |
10383 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10384 | fi | |
10385 | fi | |
10386 | fi | |
10387 | fi | |
10388 | CC=$ac_cv_prog_CC | |
10389 | if test -n "$CC"; then | |
10390 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10391 | echo "${ECHO_T}$CC" >&6 | |
10392 | else | |
10393 | echo "$as_me:$LINENO: result: no" >&5 | |
10394 | echo "${ECHO_T}no" >&6 | |
10395 | fi | |
10396 | ||
10397 | fi | |
10398 | if test -z "$CC"; then | |
10399 | if test -n "$ac_tool_prefix"; then | |
10400 | for ac_prog in cl | |
10401 | do | |
10402 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10403 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10404 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10406 | if test "${ac_cv_prog_CC+set}" = set; then | |
10407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10408 | else | |
10409 | if test -n "$CC"; then | |
10410 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10411 | else | |
10412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10413 | for as_dir in $PATH | |
10414 | do | |
10415 | IFS=$as_save_IFS | |
10416 | test -z "$as_dir" && as_dir=. | |
10417 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10418 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10419 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10421 | break 2 | |
10422 | fi | |
10423 | done | |
10424 | done | |
10425 | ||
10426 | fi | |
10427 | fi | |
10428 | CC=$ac_cv_prog_CC | |
10429 | if test -n "$CC"; then | |
10430 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10431 | echo "${ECHO_T}$CC" >&6 | |
10432 | else | |
10433 | echo "$as_me:$LINENO: result: no" >&5 | |
10434 | echo "${ECHO_T}no" >&6 | |
10435 | fi | |
10436 | ||
10437 | test -n "$CC" && break | |
10438 | done | |
10439 | fi | |
10440 | if test -z "$CC"; then | |
10441 | ac_ct_CC=$CC | |
10442 | for ac_prog in cl | |
10443 | do | |
10444 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10445 | set dummy $ac_prog; ac_word=$2 | |
10446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10448 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10450 | else | |
10451 | if test -n "$ac_ct_CC"; then | |
10452 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10453 | else | |
10454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10455 | for as_dir in $PATH | |
10456 | do | |
10457 | IFS=$as_save_IFS | |
10458 | test -z "$as_dir" && as_dir=. | |
10459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10460 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10461 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10462 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10463 | break 2 | |
10464 | fi | |
10465 | done | |
10466 | done | |
10467 | ||
10468 | fi | |
10469 | fi | |
10470 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10471 | if test -n "$ac_ct_CC"; then | |
10472 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10473 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10474 | else | |
10475 | echo "$as_me:$LINENO: result: no" >&5 | |
10476 | echo "${ECHO_T}no" >&6 | |
10477 | fi | |
10478 | ||
10479 | test -n "$ac_ct_CC" && break | |
10480 | done | |
10481 | ||
10482 | CC=$ac_ct_CC | |
10483 | fi | |
10484 | ||
10485 | fi | |
10486 | ||
10487 | ||
10488 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10489 | See \`config.log' for more details." >&5 | |
10490 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10491 | See \`config.log' for more details." >&2;} | |
10492 | { (exit 1); exit 1; }; } | |
10493 | ||
10494 | # Provide some information about the compiler. | |
10495 | echo "$as_me:$LINENO:" \ | |
10496 | "checking for C compiler version" >&5 | |
10497 | ac_compiler=`set X $ac_compile; echo $2` | |
10498 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10499 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10500 | ac_status=$? | |
10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10502 | (exit $ac_status); } | |
10503 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10504 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10505 | ac_status=$? | |
10506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10507 | (exit $ac_status); } | |
10508 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10509 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10510 | ac_status=$? | |
10511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10512 | (exit $ac_status); } | |
10513 | ||
10514 | cat >conftest.$ac_ext <<_ACEOF | |
10515 | /* confdefs.h. */ | |
10516 | _ACEOF | |
10517 | cat confdefs.h >>conftest.$ac_ext | |
10518 | cat >>conftest.$ac_ext <<_ACEOF | |
10519 | /* end confdefs.h. */ | |
10520 | ||
10521 | int | |
10522 | main () | |
10523 | { | |
10524 | ||
10525 | ; | |
10526 | return 0; | |
10527 | } | |
10528 | _ACEOF | |
10529 | ac_clean_files_save=$ac_clean_files | |
10530 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10531 | # Try to create an executable without -o first, disregard a.out. | |
10532 | # It will help us diagnose broken compilers, and finding out an intuition | |
10533 | # of exeext. | |
ac1cb8d3 VS |
10534 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10535 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10536 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10537 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10538 | (eval $ac_link_default) 2>&5 | |
10539 | ac_status=$? | |
10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10541 | (exit $ac_status); }; then | |
10542 | # Find the output, starting from the most likely. This scheme is | |
10543 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10544 | # resort. | |
10545 | ||
10546 | # Be careful to initialize this variable, since it used to be cached. | |
10547 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10548 | ac_cv_exeext= | |
10549 | # b.out is created by i960 compilers. | |
10550 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10551 | do | |
10552 | test -f "$ac_file" || continue | |
10553 | case $ac_file in | |
10554 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10555 | ;; |
a848cd7e | 10556 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10557 | # This is the source file. |
10558 | ;; | |
a848cd7e | 10559 | [ab].out ) |
ac1cb8d3 VS |
10560 | # We found the default executable, but exeext='' is most |
10561 | # certainly right. | |
10562 | break;; | |
a848cd7e | 10563 | *.* ) |
ac1cb8d3 VS |
10564 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10565 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10566 | # but it would be cool to find out if it's true. Does anybody | |
10567 | # maintain Libtool? --akim. | |
10568 | export ac_cv_exeext | |
10569 | break;; | |
a848cd7e | 10570 | * ) |
ac1cb8d3 | 10571 | break;; |
a848cd7e SC |
10572 | esac |
10573 | done | |
10574 | else | |
10575 | echo "$as_me: failed program was:" >&5 | |
10576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10577 | ||
10578 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10579 | See \`config.log' for more details." >&5 | |
10580 | echo "$as_me: error: C compiler cannot create executables | |
10581 | See \`config.log' for more details." >&2;} | |
10582 | { (exit 77); exit 77; }; } | |
10583 | fi | |
10584 | ||
10585 | ac_exeext=$ac_cv_exeext | |
10586 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10587 | echo "${ECHO_T}$ac_file" >&6 | |
10588 | ||
10589 | # Check the compiler produces executables we can run. If not, either | |
10590 | # the compiler is broken, or we cross compile. | |
10591 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10592 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10593 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10594 | # If not cross compiling, check that we can run a simple program. | |
10595 | if test "$cross_compiling" != yes; then | |
10596 | if { ac_try='./$ac_file' | |
10597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10598 | (eval $ac_try) 2>&5 | |
10599 | ac_status=$? | |
10600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10601 | (exit $ac_status); }; }; then | |
10602 | cross_compiling=no | |
10603 | else | |
10604 | if test "$cross_compiling" = maybe; then | |
10605 | cross_compiling=yes | |
10606 | else | |
10607 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10608 | If you meant to cross compile, use \`--host'. | |
10609 | See \`config.log' for more details." >&5 | |
10610 | echo "$as_me: error: cannot run C compiled programs. | |
10611 | If you meant to cross compile, use \`--host'. | |
10612 | See \`config.log' for more details." >&2;} | |
10613 | { (exit 1); exit 1; }; } | |
10614 | fi | |
10615 | fi | |
10616 | fi | |
10617 | echo "$as_me:$LINENO: result: yes" >&5 | |
10618 | echo "${ECHO_T}yes" >&6 | |
10619 | ||
10620 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10621 | ac_clean_files=$ac_clean_files_save | |
10622 | # Check the compiler produces executables we can run. If not, either | |
10623 | # the compiler is broken, or we cross compile. | |
10624 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10625 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10626 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10627 | echo "${ECHO_T}$cross_compiling" >&6 | |
10628 | ||
10629 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10630 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10632 | (eval $ac_link) 2>&5 | |
10633 | ac_status=$? | |
10634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10635 | (exit $ac_status); }; then | |
10636 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10637 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10638 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10639 | # `rm'. | |
10640 | for ac_file in conftest.exe conftest conftest.*; do | |
10641 | test -f "$ac_file" || continue | |
10642 | case $ac_file in | |
10643 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10644 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10645 | export ac_cv_exeext |
10646 | break;; | |
a848cd7e SC |
10647 | * ) break;; |
10648 | esac | |
10649 | done | |
10650 | else | |
10651 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10652 | See \`config.log' for more details." >&5 | |
10653 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10654 | See \`config.log' for more details." >&2;} | |
10655 | { (exit 1); exit 1; }; } | |
10656 | fi | |
10657 | ||
10658 | rm -f conftest$ac_cv_exeext | |
10659 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10660 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10661 | ||
10662 | rm -f conftest.$ac_ext | |
10663 | EXEEXT=$ac_cv_exeext | |
10664 | ac_exeext=$EXEEXT | |
10665 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10666 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10667 | if test "${ac_cv_objext+set}" = set; then | |
10668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10669 | else | |
10670 | cat >conftest.$ac_ext <<_ACEOF | |
10671 | /* confdefs.h. */ | |
10672 | _ACEOF | |
10673 | cat confdefs.h >>conftest.$ac_ext | |
10674 | cat >>conftest.$ac_ext <<_ACEOF | |
10675 | /* end confdefs.h. */ | |
10676 | ||
10677 | int | |
10678 | main () | |
10679 | { | |
10680 | ||
10681 | ; | |
10682 | return 0; | |
10683 | } | |
10684 | _ACEOF | |
10685 | rm -f conftest.o conftest.obj | |
10686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10687 | (eval $ac_compile) 2>&5 | |
10688 | ac_status=$? | |
10689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10690 | (exit $ac_status); }; then | |
10691 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10692 | case $ac_file in | |
10693 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10694 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10695 | break;; | |
10696 | esac | |
10697 | done | |
10698 | else | |
10699 | echo "$as_me: failed program was:" >&5 | |
10700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10701 | ||
10702 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10703 | See \`config.log' for more details." >&5 | |
10704 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10705 | See \`config.log' for more details." >&2;} | |
10706 | { (exit 1); exit 1; }; } | |
10707 | fi | |
10708 | ||
10709 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10710 | fi | |
10711 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10712 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10713 | OBJEXT=$ac_cv_objext | |
10714 | ac_objext=$OBJEXT | |
10715 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10716 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10717 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10719 | else | |
10720 | cat >conftest.$ac_ext <<_ACEOF | |
10721 | /* confdefs.h. */ | |
10722 | _ACEOF | |
10723 | cat confdefs.h >>conftest.$ac_ext | |
10724 | cat >>conftest.$ac_ext <<_ACEOF | |
10725 | /* end confdefs.h. */ | |
10726 | ||
10727 | int | |
10728 | main () | |
10729 | { | |
10730 | #ifndef __GNUC__ | |
10731 | choke me | |
10732 | #endif | |
10733 | ||
10734 | ; | |
10735 | return 0; | |
10736 | } | |
10737 | _ACEOF | |
10738 | rm -f conftest.$ac_objext | |
10739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10740 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10741 | ac_status=$? |
ac1cb8d3 VS |
10742 | grep -v '^ *+' conftest.er1 >conftest.err |
10743 | rm -f conftest.er1 | |
10744 | cat conftest.err >&5 | |
a848cd7e SC |
10745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10746 | (exit $ac_status); } && | |
4d4ff94c | 10747 | { ac_try='test -z "$ac_c_werror_flag" || 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); } && | |
4d4ff94c | 10805 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10807 | (eval $ac_try) 2>&5 | |
10808 | ac_status=$? | |
10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10810 | (exit $ac_status); }; } && | |
10811 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10813 | (eval $ac_try) 2>&5 | |
10814 | ac_status=$? | |
10815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10816 | (exit $ac_status); }; }; then | |
10817 | ac_cv_prog_cc_g=yes | |
10818 | else | |
10819 | echo "$as_me: failed program was:" >&5 | |
10820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10821 | ||
10822 | ac_cv_prog_cc_g=no | |
10823 | fi | |
ac1cb8d3 | 10824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10825 | fi |
10826 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10827 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10828 | if test "$ac_test_CFLAGS" = set; then | |
10829 | CFLAGS=$ac_save_CFLAGS | |
10830 | elif test $ac_cv_prog_cc_g = yes; then | |
10831 | if test "$GCC" = yes; then | |
10832 | CFLAGS="-g -O2" | |
10833 | else | |
10834 | CFLAGS="-g" | |
10835 | fi | |
10836 | else | |
10837 | if test "$GCC" = yes; then | |
10838 | CFLAGS="-O2" | |
10839 | else | |
10840 | CFLAGS= | |
10841 | fi | |
10842 | fi | |
10843 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10844 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10845 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10847 | else | |
10848 | ac_cv_prog_cc_stdc=no | |
10849 | ac_save_CC=$CC | |
10850 | cat >conftest.$ac_ext <<_ACEOF | |
10851 | /* confdefs.h. */ | |
10852 | _ACEOF | |
10853 | cat confdefs.h >>conftest.$ac_ext | |
10854 | cat >>conftest.$ac_ext <<_ACEOF | |
10855 | /* end confdefs.h. */ | |
10856 | #include <stdarg.h> | |
10857 | #include <stdio.h> | |
10858 | #include <sys/types.h> | |
10859 | #include <sys/stat.h> | |
10860 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10861 | struct buf { int x; }; | |
10862 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10863 | static char *e (p, i) | |
10864 | char **p; | |
10865 | int i; | |
10866 | { | |
10867 | return p[i]; | |
10868 | } | |
10869 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10870 | { | |
10871 | char *s; | |
10872 | va_list v; | |
10873 | va_start (v,p); | |
10874 | s = g (p, va_arg (v,int)); | |
10875 | va_end (v); | |
10876 | return s; | |
10877 | } | |
ac1cb8d3 VS |
10878 | |
10879 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10880 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10881 | These don't provoke an error unfortunately, instead are silently treated | |
10882 | as 'x'. The following induces an error, until -std1 is added to get | |
10883 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10884 | array size at least. It's necessary to write '\x00'==0 to get something | |
10885 | that's true only with -std1. */ | |
10886 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10887 | ||
a848cd7e SC |
10888 | int test (int i, double x); |
10889 | struct s1 {int (*f) (int a);}; | |
10890 | struct s2 {int (*f) (double a);}; | |
10891 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10892 | int argc; | |
10893 | char **argv; | |
10894 | int | |
10895 | main () | |
10896 | { | |
10897 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10898 | ; | |
10899 | return 0; | |
10900 | } | |
10901 | _ACEOF | |
10902 | # Don't try gcc -ansi; that turns off useful extensions and | |
10903 | # breaks some systems' header files. | |
10904 | # AIX -qlanglvl=ansi | |
10905 | # Ultrix and OSF/1 -std1 | |
10906 | # HP-UX 10.20 and later -Ae | |
10907 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10908 | # SVR4 -Xc -D__EXTENSIONS__ | |
10909 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10910 | do | |
10911 | CC="$ac_save_CC $ac_arg" | |
10912 | rm -f conftest.$ac_objext | |
10913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10914 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10915 | ac_status=$? |
ac1cb8d3 VS |
10916 | grep -v '^ *+' conftest.er1 >conftest.err |
10917 | rm -f conftest.er1 | |
10918 | cat conftest.err >&5 | |
a848cd7e SC |
10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10920 | (exit $ac_status); } && | |
4d4ff94c | 10921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10923 | (eval $ac_try) 2>&5 | |
10924 | ac_status=$? | |
10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10926 | (exit $ac_status); }; } && | |
10927 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10929 | (eval $ac_try) 2>&5 | |
10930 | ac_status=$? | |
10931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10932 | (exit $ac_status); }; }; then | |
10933 | ac_cv_prog_cc_stdc=$ac_arg | |
10934 | break | |
10935 | else | |
10936 | echo "$as_me: failed program was:" >&5 | |
10937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10938 | ||
10939 | fi | |
ac1cb8d3 | 10940 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
10941 | done |
10942 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10943 | CC=$ac_save_CC | |
10944 | ||
10945 | fi | |
10946 | ||
10947 | case "x$ac_cv_prog_cc_stdc" in | |
10948 | x|xno) | |
10949 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10950 | echo "${ECHO_T}none needed" >&6 ;; | |
10951 | *) | |
10952 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10953 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10954 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10955 | esac | |
10956 | ||
10957 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10958 | # in C++ we need to declare it. In case someone uses the same compiler | |
10959 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10960 | # the declaration of exit, since it's the most demanding environment. | |
10961 | cat >conftest.$ac_ext <<_ACEOF | |
10962 | #ifndef __cplusplus | |
10963 | choke me | |
10964 | #endif | |
10965 | _ACEOF | |
10966 | rm -f conftest.$ac_objext | |
10967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10968 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10969 | ac_status=$? |
ac1cb8d3 VS |
10970 | grep -v '^ *+' conftest.er1 >conftest.err |
10971 | rm -f conftest.er1 | |
10972 | cat conftest.err >&5 | |
a848cd7e SC |
10973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10974 | (exit $ac_status); } && | |
4d4ff94c | 10975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10977 | (eval $ac_try) 2>&5 | |
10978 | ac_status=$? | |
10979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10980 | (exit $ac_status); }; } && | |
10981 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10983 | (eval $ac_try) 2>&5 | |
10984 | ac_status=$? | |
10985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10986 | (exit $ac_status); }; }; then | |
10987 | for ac_declaration in \ | |
ac1cb8d3 | 10988 | '' \ |
a848cd7e SC |
10989 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10990 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10991 | 'extern "C" void exit (int) throw ();' \ | |
10992 | 'extern "C" void exit (int);' \ | |
10993 | 'void exit (int);' | |
10994 | do | |
10995 | cat >conftest.$ac_ext <<_ACEOF | |
10996 | /* confdefs.h. */ | |
10997 | _ACEOF | |
10998 | cat confdefs.h >>conftest.$ac_ext | |
10999 | cat >>conftest.$ac_ext <<_ACEOF | |
11000 | /* end confdefs.h. */ | |
de59c161 | 11001 | $ac_declaration |
ac1cb8d3 | 11002 | #include <stdlib.h> |
a848cd7e SC |
11003 | int |
11004 | main () | |
11005 | { | |
11006 | exit (42); | |
11007 | ; | |
11008 | return 0; | |
11009 | } | |
11010 | _ACEOF | |
11011 | rm -f conftest.$ac_objext | |
11012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11013 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11014 | ac_status=$? |
ac1cb8d3 VS |
11015 | grep -v '^ *+' conftest.er1 >conftest.err |
11016 | rm -f conftest.er1 | |
11017 | cat conftest.err >&5 | |
a848cd7e SC |
11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11019 | (exit $ac_status); } && | |
4d4ff94c | 11020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11022 | (eval $ac_try) 2>&5 | |
11023 | ac_status=$? | |
11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11025 | (exit $ac_status); }; } && | |
11026 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11028 | (eval $ac_try) 2>&5 | |
11029 | ac_status=$? | |
11030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11031 | (exit $ac_status); }; }; then | |
11032 | : | |
11033 | else | |
11034 | echo "$as_me: failed program was:" >&5 | |
11035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11036 | ||
11037 | continue | |
11038 | fi | |
ac1cb8d3 | 11039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11040 | cat >conftest.$ac_ext <<_ACEOF |
11041 | /* confdefs.h. */ | |
11042 | _ACEOF | |
11043 | cat confdefs.h >>conftest.$ac_ext | |
11044 | cat >>conftest.$ac_ext <<_ACEOF | |
11045 | /* end confdefs.h. */ | |
11046 | $ac_declaration | |
11047 | int | |
11048 | main () | |
11049 | { | |
11050 | exit (42); | |
11051 | ; | |
11052 | return 0; | |
11053 | } | |
11054 | _ACEOF | |
11055 | rm -f conftest.$ac_objext | |
11056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11057 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11058 | ac_status=$? |
ac1cb8d3 VS |
11059 | grep -v '^ *+' conftest.er1 >conftest.err |
11060 | rm -f conftest.er1 | |
11061 | cat conftest.err >&5 | |
a848cd7e SC |
11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11063 | (exit $ac_status); } && | |
4d4ff94c | 11064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11066 | (eval $ac_try) 2>&5 | |
11067 | ac_status=$? | |
11068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11069 | (exit $ac_status); }; } && | |
11070 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11072 | (eval $ac_try) 2>&5 | |
11073 | ac_status=$? | |
11074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11075 | (exit $ac_status); }; }; then | |
11076 | break | |
11077 | else | |
11078 | echo "$as_me: failed program was:" >&5 | |
11079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11080 | ||
11081 | fi | |
ac1cb8d3 | 11082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11083 | done |
11084 | rm -f conftest* | |
11085 | if test -n "$ac_declaration"; then | |
11086 | echo '#ifdef __cplusplus' >>confdefs.h | |
11087 | echo $ac_declaration >>confdefs.h | |
11088 | echo '#endif' >>confdefs.h | |
11089 | fi | |
11090 | ||
11091 | else | |
11092 | echo "$as_me: failed program was:" >&5 | |
11093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11094 | ||
11095 | fi | |
ac1cb8d3 | 11096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11097 | ac_ext=c |
11098 | ac_cpp='$CPP $CPPFLAGS' | |
11099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11102 | ||
11103 | ||
11104 | ||
11105 | ac_ext=c | |
11106 | ac_cpp='$CPP $CPPFLAGS' | |
11107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11110 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11111 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11112 | # On Suns, sometimes $CPP names a directory. | |
11113 | if test -n "$CPP" && test -d "$CPP"; then | |
11114 | CPP= | |
11115 | fi | |
11116 | if test -z "$CPP"; then | |
11117 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11119 | else | |
11120 | # Double quotes because CPP needs to be expanded | |
11121 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11122 | do | |
11123 | ac_preproc_ok=false | |
11124 | for ac_c_preproc_warn_flag in '' yes | |
11125 | do | |
11126 | # Use a header file that comes with gcc, so configuring glibc | |
11127 | # with a fresh cross-compiler works. | |
11128 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11129 | # <limits.h> exists even on freestanding compilers. | |
11130 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11131 | # not just through cpp. "Syntax error" is here to catch this case. | |
11132 | cat >conftest.$ac_ext <<_ACEOF | |
11133 | /* confdefs.h. */ | |
11134 | _ACEOF | |
11135 | cat confdefs.h >>conftest.$ac_ext | |
11136 | cat >>conftest.$ac_ext <<_ACEOF | |
11137 | /* end confdefs.h. */ | |
11138 | #ifdef __STDC__ | |
11139 | # include <limits.h> | |
11140 | #else | |
11141 | # include <assert.h> | |
11142 | #endif | |
ac1cb8d3 | 11143 | Syntax error |
a848cd7e SC |
11144 | _ACEOF |
11145 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11146 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11147 | ac_status=$? | |
11148 | grep -v '^ *+' conftest.er1 >conftest.err | |
11149 | rm -f conftest.er1 | |
11150 | cat conftest.err >&5 | |
11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11152 | (exit $ac_status); } >/dev/null; then | |
11153 | if test -s conftest.err; then | |
11154 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11155 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11156 | else |
11157 | ac_cpp_err= | |
11158 | fi | |
11159 | else | |
11160 | ac_cpp_err=yes | |
11161 | fi | |
11162 | if test -z "$ac_cpp_err"; then | |
11163 | : | |
11164 | else | |
11165 | echo "$as_me: failed program was:" >&5 | |
11166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11167 | ||
11168 | # Broken: fails on valid input. | |
11169 | continue | |
11170 | fi | |
11171 | rm -f conftest.err conftest.$ac_ext | |
11172 | ||
11173 | # OK, works on sane cases. Now check whether non-existent headers | |
11174 | # can be detected and how. | |
11175 | cat >conftest.$ac_ext <<_ACEOF | |
11176 | /* confdefs.h. */ | |
11177 | _ACEOF | |
11178 | cat confdefs.h >>conftest.$ac_ext | |
11179 | cat >>conftest.$ac_ext <<_ACEOF | |
11180 | /* end confdefs.h. */ | |
11181 | #include <ac_nonexistent.h> | |
11182 | _ACEOF | |
11183 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11184 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11185 | ac_status=$? | |
11186 | grep -v '^ *+' conftest.er1 >conftest.err | |
11187 | rm -f conftest.er1 | |
11188 | cat conftest.err >&5 | |
11189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11190 | (exit $ac_status); } >/dev/null; then | |
11191 | if test -s conftest.err; then | |
11192 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11193 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11194 | else |
11195 | ac_cpp_err= | |
11196 | fi | |
11197 | else | |
11198 | ac_cpp_err=yes | |
11199 | fi | |
11200 | if test -z "$ac_cpp_err"; then | |
11201 | # Broken: success on invalid input. | |
11202 | continue | |
11203 | else | |
11204 | echo "$as_me: failed program was:" >&5 | |
11205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11206 | ||
11207 | # Passes both tests. | |
11208 | ac_preproc_ok=: | |
11209 | break | |
11210 | fi | |
11211 | rm -f conftest.err conftest.$ac_ext | |
11212 | ||
11213 | done | |
11214 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11215 | rm -f conftest.err conftest.$ac_ext | |
11216 | if $ac_preproc_ok; then | |
11217 | break | |
11218 | fi | |
11219 | ||
11220 | done | |
11221 | ac_cv_prog_CPP=$CPP | |
11222 | ||
11223 | fi | |
11224 | CPP=$ac_cv_prog_CPP | |
11225 | else | |
11226 | ac_cv_prog_CPP=$CPP | |
11227 | fi | |
11228 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11229 | echo "${ECHO_T}$CPP" >&6 | |
11230 | ac_preproc_ok=false | |
11231 | for ac_c_preproc_warn_flag in '' yes | |
11232 | do | |
11233 | # Use a header file that comes with gcc, so configuring glibc | |
11234 | # with a fresh cross-compiler works. | |
11235 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11236 | # <limits.h> exists even on freestanding compilers. | |
11237 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11238 | # not just through cpp. "Syntax error" is here to catch this case. | |
11239 | cat >conftest.$ac_ext <<_ACEOF | |
11240 | /* confdefs.h. */ | |
11241 | _ACEOF | |
11242 | cat confdefs.h >>conftest.$ac_ext | |
11243 | cat >>conftest.$ac_ext <<_ACEOF | |
11244 | /* end confdefs.h. */ | |
11245 | #ifdef __STDC__ | |
11246 | # include <limits.h> | |
11247 | #else | |
11248 | # include <assert.h> | |
11249 | #endif | |
ac1cb8d3 | 11250 | Syntax error |
a848cd7e SC |
11251 | _ACEOF |
11252 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11253 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11254 | ac_status=$? | |
11255 | grep -v '^ *+' conftest.er1 >conftest.err | |
11256 | rm -f conftest.er1 | |
11257 | cat conftest.err >&5 | |
11258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11259 | (exit $ac_status); } >/dev/null; then | |
11260 | if test -s conftest.err; then | |
11261 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11262 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11263 | else |
11264 | ac_cpp_err= | |
11265 | fi | |
11266 | else | |
11267 | ac_cpp_err=yes | |
11268 | fi | |
11269 | if test -z "$ac_cpp_err"; then | |
11270 | : | |
11271 | else | |
11272 | echo "$as_me: failed program was:" >&5 | |
11273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11274 | ||
11275 | # Broken: fails on valid input. | |
11276 | continue | |
11277 | fi | |
11278 | rm -f conftest.err conftest.$ac_ext | |
11279 | ||
11280 | # OK, works on sane cases. Now check whether non-existent headers | |
11281 | # can be detected and how. | |
11282 | cat >conftest.$ac_ext <<_ACEOF | |
11283 | /* confdefs.h. */ | |
11284 | _ACEOF | |
11285 | cat confdefs.h >>conftest.$ac_ext | |
11286 | cat >>conftest.$ac_ext <<_ACEOF | |
11287 | /* end confdefs.h. */ | |
11288 | #include <ac_nonexistent.h> | |
11289 | _ACEOF | |
11290 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11291 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11292 | ac_status=$? | |
11293 | grep -v '^ *+' conftest.er1 >conftest.err | |
11294 | rm -f conftest.er1 | |
11295 | cat conftest.err >&5 | |
11296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11297 | (exit $ac_status); } >/dev/null; then | |
11298 | if test -s conftest.err; then | |
11299 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11300 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11301 | else |
11302 | ac_cpp_err= | |
11303 | fi | |
11304 | else | |
11305 | ac_cpp_err=yes | |
11306 | fi | |
11307 | if test -z "$ac_cpp_err"; then | |
11308 | # Broken: success on invalid input. | |
11309 | continue | |
11310 | else | |
11311 | echo "$as_me: failed program was:" >&5 | |
11312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11313 | ||
11314 | # Passes both tests. | |
11315 | ac_preproc_ok=: | |
11316 | break | |
11317 | fi | |
11318 | rm -f conftest.err conftest.$ac_ext | |
11319 | ||
11320 | done | |
11321 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11322 | rm -f conftest.err conftest.$ac_ext | |
11323 | if $ac_preproc_ok; then | |
11324 | : | |
11325 | else | |
11326 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11327 | See \`config.log' for more details." >&5 | |
11328 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11329 | See \`config.log' for more details." >&2;} | |
11330 | { (exit 1); exit 1; }; } | |
11331 | fi | |
11332 | ||
11333 | ac_ext=c | |
11334 | ac_cpp='$CPP $CPPFLAGS' | |
11335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11338 | ||
11339 | ||
11340 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11341 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11342 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11344 | else | |
11345 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11346 | then ac_cv_prog_egrep='grep -E' | |
11347 | else ac_cv_prog_egrep='egrep' | |
11348 | fi | |
11349 | fi | |
11350 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11351 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11352 | EGREP=$ac_cv_prog_egrep | |
11353 | ||
11354 | ||
11355 | if test $ac_cv_c_compiler_gnu = yes; then | |
11356 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11357 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11358 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11360 | else | |
11361 | ac_pattern="Autoconf.*'x'" | |
11362 | cat >conftest.$ac_ext <<_ACEOF | |
11363 | /* confdefs.h. */ | |
11364 | _ACEOF | |
11365 | cat confdefs.h >>conftest.$ac_ext | |
11366 | cat >>conftest.$ac_ext <<_ACEOF | |
11367 | /* end confdefs.h. */ | |
11368 | #include <sgtty.h> | |
11369 | Autoconf TIOCGETP | |
11370 | _ACEOF | |
11371 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11372 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11373 | ac_cv_prog_gcc_traditional=yes | |
11374 | else | |
11375 | ac_cv_prog_gcc_traditional=no | |
11376 | fi | |
11377 | rm -f conftest* | |
11378 | ||
11379 | ||
11380 | if test $ac_cv_prog_gcc_traditional = no; then | |
11381 | cat >conftest.$ac_ext <<_ACEOF | |
11382 | /* confdefs.h. */ | |
11383 | _ACEOF | |
11384 | cat confdefs.h >>conftest.$ac_ext | |
11385 | cat >>conftest.$ac_ext <<_ACEOF | |
11386 | /* end confdefs.h. */ | |
11387 | #include <termio.h> | |
11388 | Autoconf TCGETA | |
11389 | _ACEOF | |
11390 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11391 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11392 | ac_cv_prog_gcc_traditional=yes | |
11393 | fi | |
11394 | rm -f conftest* | |
11395 | ||
11396 | fi | |
11397 | fi | |
11398 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11399 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11400 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11401 | CC="$CC -traditional" | |
11402 | fi | |
11403 | fi | |
11404 | ||
11405 | ||
11406 | ||
11407 | ||
11408 | ac_ext=cc | |
11409 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11410 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11411 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11412 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11413 | ||
11414 | ||
11415 | CXXFLAGS=${CXXFLAGS:=} | |
11416 | ac_ext=cc | |
11417 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11418 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11419 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11420 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11421 | if test -n "$ac_tool_prefix"; then | |
11422 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11423 | do | |
11424 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11425 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11426 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11428 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11430 | else | |
11431 | if test -n "$CXX"; then | |
11432 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11433 | else | |
11434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11435 | for as_dir in $PATH | |
11436 | do | |
11437 | IFS=$as_save_IFS | |
11438 | test -z "$as_dir" && as_dir=. | |
11439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11440 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11441 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11443 | break 2 | |
11444 | fi | |
11445 | done | |
11446 | done | |
11447 | ||
11448 | fi | |
11449 | fi | |
11450 | CXX=$ac_cv_prog_CXX | |
11451 | if test -n "$CXX"; then | |
11452 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11453 | echo "${ECHO_T}$CXX" >&6 | |
11454 | else | |
11455 | echo "$as_me:$LINENO: result: no" >&5 | |
11456 | echo "${ECHO_T}no" >&6 | |
11457 | fi | |
11458 | ||
11459 | test -n "$CXX" && break | |
11460 | done | |
11461 | fi | |
11462 | if test -z "$CXX"; then | |
11463 | ac_ct_CXX=$CXX | |
11464 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11465 | do | |
11466 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11467 | set dummy $ac_prog; ac_word=$2 | |
11468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11470 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11472 | else | |
11473 | if test -n "$ac_ct_CXX"; then | |
11474 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11475 | else | |
11476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11477 | for as_dir in $PATH | |
11478 | do | |
11479 | IFS=$as_save_IFS | |
11480 | test -z "$as_dir" && as_dir=. | |
11481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11483 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11485 | break 2 | |
11486 | fi | |
11487 | done | |
11488 | done | |
11489 | ||
11490 | fi | |
11491 | fi | |
11492 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11493 | if test -n "$ac_ct_CXX"; then | |
11494 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11495 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11496 | else | |
11497 | echo "$as_me:$LINENO: result: no" >&5 | |
11498 | echo "${ECHO_T}no" >&6 | |
11499 | fi | |
11500 | ||
11501 | test -n "$ac_ct_CXX" && break | |
11502 | done | |
11503 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11504 | ||
11505 | CXX=$ac_ct_CXX | |
11506 | fi | |
11507 | ||
11508 | ||
11509 | # Provide some information about the compiler. | |
11510 | echo "$as_me:$LINENO:" \ | |
11511 | "checking for C++ compiler version" >&5 | |
11512 | ac_compiler=`set X $ac_compile; echo $2` | |
11513 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11514 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11515 | ac_status=$? | |
11516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11517 | (exit $ac_status); } | |
11518 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11519 | (eval $ac_compiler -v </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 | ||
11529 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11530 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11531 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11533 | else | |
11534 | cat >conftest.$ac_ext <<_ACEOF | |
11535 | /* confdefs.h. */ | |
11536 | _ACEOF | |
11537 | cat confdefs.h >>conftest.$ac_ext | |
11538 | cat >>conftest.$ac_ext <<_ACEOF | |
11539 | /* end confdefs.h. */ | |
11540 | ||
11541 | int | |
11542 | main () | |
11543 | { | |
11544 | #ifndef __GNUC__ | |
11545 | choke me | |
11546 | #endif | |
11547 | ||
11548 | ; | |
11549 | return 0; | |
11550 | } | |
11551 | _ACEOF | |
11552 | rm -f conftest.$ac_objext | |
11553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11554 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11555 | ac_status=$? |
ac1cb8d3 VS |
11556 | grep -v '^ *+' conftest.er1 >conftest.err |
11557 | rm -f conftest.er1 | |
11558 | cat conftest.err >&5 | |
a848cd7e SC |
11559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11560 | (exit $ac_status); } && | |
4d4ff94c | 11561 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11563 | (eval $ac_try) 2>&5 | |
11564 | ac_status=$? | |
11565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11566 | (exit $ac_status); }; } && | |
11567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
11573 | ac_compiler_gnu=yes | |
11574 | else | |
11575 | echo "$as_me: failed program was:" >&5 | |
11576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11577 | ||
11578 | ac_compiler_gnu=no | |
11579 | fi | |
ac1cb8d3 | 11580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11581 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11582 | ||
11583 | fi | |
11584 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11585 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11586 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11587 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11588 | ac_save_CXXFLAGS=$CXXFLAGS | |
11589 | CXXFLAGS="-g" | |
11590 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11591 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11592 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11594 | else | |
11595 | cat >conftest.$ac_ext <<_ACEOF | |
11596 | /* confdefs.h. */ | |
11597 | _ACEOF | |
11598 | cat confdefs.h >>conftest.$ac_ext | |
11599 | cat >>conftest.$ac_ext <<_ACEOF | |
11600 | /* end confdefs.h. */ | |
11601 | ||
11602 | int | |
11603 | main () | |
11604 | { | |
11605 | ||
11606 | ; | |
11607 | return 0; | |
11608 | } | |
11609 | _ACEOF | |
11610 | rm -f conftest.$ac_objext | |
11611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11613 | ac_status=$? |
ac1cb8d3 VS |
11614 | grep -v '^ *+' conftest.er1 >conftest.err |
11615 | rm -f conftest.er1 | |
11616 | cat conftest.err >&5 | |
a848cd7e SC |
11617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11618 | (exit $ac_status); } && | |
4d4ff94c | 11619 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11621 | (eval $ac_try) 2>&5 | |
11622 | ac_status=$? | |
11623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11624 | (exit $ac_status); }; } && | |
11625 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11627 | (eval $ac_try) 2>&5 | |
11628 | ac_status=$? | |
11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11630 | (exit $ac_status); }; }; then | |
11631 | ac_cv_prog_cxx_g=yes | |
11632 | else | |
11633 | echo "$as_me: failed program was:" >&5 | |
11634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11635 | ||
11636 | ac_cv_prog_cxx_g=no | |
11637 | fi | |
ac1cb8d3 | 11638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11639 | fi |
11640 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11641 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11642 | if test "$ac_test_CXXFLAGS" = set; then | |
11643 | CXXFLAGS=$ac_save_CXXFLAGS | |
11644 | elif test $ac_cv_prog_cxx_g = yes; then | |
11645 | if test "$GXX" = yes; then | |
11646 | CXXFLAGS="-g -O2" | |
11647 | else | |
11648 | CXXFLAGS="-g" | |
11649 | fi | |
11650 | else | |
11651 | if test "$GXX" = yes; then | |
11652 | CXXFLAGS="-O2" | |
11653 | else | |
11654 | CXXFLAGS= | |
11655 | fi | |
11656 | fi | |
11657 | for ac_declaration in \ | |
ac1cb8d3 | 11658 | '' \ |
a848cd7e SC |
11659 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11660 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11661 | 'extern "C" void exit (int) throw ();' \ | |
11662 | 'extern "C" void exit (int);' \ | |
11663 | 'void exit (int);' | |
11664 | do | |
11665 | cat >conftest.$ac_ext <<_ACEOF | |
11666 | /* confdefs.h. */ | |
11667 | _ACEOF | |
11668 | cat confdefs.h >>conftest.$ac_ext | |
11669 | cat >>conftest.$ac_ext <<_ACEOF | |
11670 | /* end confdefs.h. */ | |
de59c161 | 11671 | $ac_declaration |
ac1cb8d3 | 11672 | #include <stdlib.h> |
a848cd7e SC |
11673 | int |
11674 | main () | |
11675 | { | |
11676 | exit (42); | |
11677 | ; | |
11678 | return 0; | |
11679 | } | |
11680 | _ACEOF | |
11681 | rm -f conftest.$ac_objext | |
11682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11683 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11684 | ac_status=$? |
ac1cb8d3 VS |
11685 | grep -v '^ *+' conftest.er1 >conftest.err |
11686 | rm -f conftest.er1 | |
11687 | cat conftest.err >&5 | |
a848cd7e SC |
11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11689 | (exit $ac_status); } && | |
4d4ff94c | 11690 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11692 | (eval $ac_try) 2>&5 | |
11693 | ac_status=$? | |
11694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11695 | (exit $ac_status); }; } && | |
11696 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11698 | (eval $ac_try) 2>&5 | |
11699 | ac_status=$? | |
11700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11701 | (exit $ac_status); }; }; then | |
11702 | : | |
11703 | else | |
11704 | echo "$as_me: failed program was:" >&5 | |
11705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11706 | ||
11707 | continue | |
11708 | fi | |
ac1cb8d3 | 11709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11710 | cat >conftest.$ac_ext <<_ACEOF |
11711 | /* confdefs.h. */ | |
11712 | _ACEOF | |
11713 | cat confdefs.h >>conftest.$ac_ext | |
11714 | cat >>conftest.$ac_ext <<_ACEOF | |
11715 | /* end confdefs.h. */ | |
11716 | $ac_declaration | |
11717 | int | |
11718 | main () | |
11719 | { | |
11720 | exit (42); | |
11721 | ; | |
11722 | return 0; | |
11723 | } | |
11724 | _ACEOF | |
11725 | rm -f conftest.$ac_objext | |
11726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11727 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11728 | ac_status=$? |
ac1cb8d3 VS |
11729 | grep -v '^ *+' conftest.er1 >conftest.err |
11730 | rm -f conftest.er1 | |
11731 | cat conftest.err >&5 | |
a848cd7e SC |
11732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11733 | (exit $ac_status); } && | |
4d4ff94c | 11734 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11736 | (eval $ac_try) 2>&5 | |
11737 | ac_status=$? | |
11738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11739 | (exit $ac_status); }; } && | |
11740 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11742 | (eval $ac_try) 2>&5 | |
11743 | ac_status=$? | |
11744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11745 | (exit $ac_status); }; }; then | |
11746 | break | |
11747 | else | |
11748 | echo "$as_me: failed program was:" >&5 | |
11749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11750 | ||
11751 | fi | |
ac1cb8d3 | 11752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11753 | done |
11754 | rm -f conftest* | |
11755 | if test -n "$ac_declaration"; then | |
11756 | echo '#ifdef __cplusplus' >>confdefs.h | |
11757 | echo $ac_declaration >>confdefs.h | |
11758 | echo '#endif' >>confdefs.h | |
11759 | fi | |
11760 | ||
11761 | ac_ext=cc | |
11762 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11763 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11764 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11765 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11766 | ||
11767 | ||
11768 | ac_ext=c | |
11769 | ac_cpp='$CPP $CPPFLAGS' | |
11770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11773 | ||
11774 | ||
a848cd7e SC |
11775 | if test -n "$ac_tool_prefix"; then |
11776 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11777 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11780 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11782 | else | |
11783 | if test -n "$RANLIB"; then | |
11784 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11785 | else | |
11786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11787 | for as_dir in $PATH | |
11788 | do | |
11789 | IFS=$as_save_IFS | |
11790 | test -z "$as_dir" && as_dir=. | |
11791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11793 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11795 | break 2 | |
11796 | fi | |
11797 | done | |
11798 | done | |
11799 | ||
11800 | fi | |
11801 | fi | |
11802 | RANLIB=$ac_cv_prog_RANLIB | |
11803 | if test -n "$RANLIB"; then | |
11804 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11805 | echo "${ECHO_T}$RANLIB" >&6 | |
11806 | else | |
11807 | echo "$as_me:$LINENO: result: no" >&5 | |
11808 | echo "${ECHO_T}no" >&6 | |
11809 | fi | |
11810 | ||
11811 | fi | |
11812 | if test -z "$ac_cv_prog_RANLIB"; then | |
11813 | ac_ct_RANLIB=$RANLIB | |
11814 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11815 | set dummy ranlib; ac_word=$2 | |
11816 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11818 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11820 | else | |
11821 | if test -n "$ac_ct_RANLIB"; then | |
11822 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11823 | else | |
11824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11825 | for as_dir in $PATH | |
11826 | do | |
11827 | IFS=$as_save_IFS | |
11828 | test -z "$as_dir" && as_dir=. | |
11829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11830 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11831 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11833 | break 2 | |
11834 | fi | |
11835 | done | |
11836 | done | |
11837 | ||
11838 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11839 | fi | |
11840 | fi | |
11841 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11842 | if test -n "$ac_ct_RANLIB"; then | |
11843 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11844 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11845 | else | |
11846 | echo "$as_me:$LINENO: result: no" >&5 | |
11847 | echo "${ECHO_T}no" >&6 | |
11848 | fi | |
11849 | ||
11850 | RANLIB=$ac_ct_RANLIB | |
11851 | else | |
11852 | RANLIB="$ac_cv_prog_RANLIB" | |
11853 | fi | |
11854 | ||
11855 | ||
11856 | # Extract the first word of "ar", so it can be a program name with args. | |
11857 | set dummy ar; ac_word=$2 | |
11858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11860 | if test "${ac_cv_prog_AR+set}" = set; then | |
11861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11862 | else | |
11863 | if test -n "$AR"; then | |
11864 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11865 | else | |
11866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11867 | for as_dir in $PATH | |
11868 | do | |
11869 | IFS=$as_save_IFS | |
11870 | test -z "$as_dir" && as_dir=. | |
11871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11873 | ac_cv_prog_AR="ar" | |
11874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11875 | break 2 | |
11876 | fi | |
11877 | done | |
11878 | done | |
11879 | ||
11880 | fi | |
11881 | fi | |
11882 | AR=$ac_cv_prog_AR | |
11883 | if test -n "$AR"; then | |
11884 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11885 | echo "${ECHO_T}$AR" >&6 | |
11886 | else | |
11887 | echo "$as_me:$LINENO: result: no" >&5 | |
11888 | echo "${ECHO_T}no" >&6 | |
11889 | fi | |
11890 | ||
11891 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
11892 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
11893 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
11894 | { (exit 1); exit 1; }; } |
11895 | fi | |
11896 | ||
11897 | # Find a good install program. We prefer a C program (faster), | |
11898 | # so one script is as good as another. But avoid the broken or | |
11899 | # incompatible versions: | |
11900 | # SysV /etc/install, /usr/sbin/install | |
11901 | # SunOS /usr/etc/install | |
11902 | # IRIX /sbin/install | |
11903 | # AIX /bin/install | |
11904 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11905 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11906 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11907 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 11908 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
11909 | # ./install, which can be erroneously created by make from ./install.sh. |
11910 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
11911 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
11912 | if test -z "$INSTALL"; then | |
11913 | if test "${ac_cv_path_install+set}" = set; then | |
11914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11915 | else | |
11916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11917 | for as_dir in $PATH | |
11918 | do | |
11919 | IFS=$as_save_IFS | |
11920 | test -z "$as_dir" && as_dir=. | |
11921 | # Account for people who put trailing slashes in PATH elements. | |
11922 | case $as_dir/ in | |
11923 | ./ | .// | /cC/* | \ | |
11924 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 11925 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
11926 | /usr/ucb/* ) ;; |
11927 | *) | |
11928 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11929 | # Don't use installbsd from OSF since it installs stuff as root | |
11930 | # by default. | |
11931 | for ac_prog in ginstall scoinst install; do | |
11932 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
11933 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11934 | if test $ac_prog = install && | |
11935 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11936 | # AIX install. It has an incompatible calling convention. | |
11937 | : | |
11938 | elif test $ac_prog = install && | |
11939 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11940 | # program-specific install script used by HP pwplus--don't use. | |
11941 | : | |
11942 | else | |
11943 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11944 | break 3 | |
11945 | fi | |
11946 | fi | |
a848cd7e SC |
11947 | done |
11948 | done | |
11949 | ;; | |
11950 | esac | |
11951 | done | |
11952 | ||
11953 | ||
11954 | fi | |
11955 | if test "${ac_cv_path_install+set}" = set; then | |
11956 | INSTALL=$ac_cv_path_install | |
11957 | else | |
11958 | # As a last resort, use the slow shell script. We don't cache a | |
11959 | # path for INSTALL within a source directory, because that will | |
11960 | # break other packages using the cache if that directory is | |
11961 | # removed, or if the path is relative. | |
11962 | INSTALL=$ac_install_sh | |
11963 | fi | |
11964 | fi | |
11965 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
11966 | echo "${ECHO_T}$INSTALL" >&6 | |
11967 | ||
11968 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11969 | # It thinks the first close brace ends the variable substitution. | |
11970 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11971 | ||
11972 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
11973 | ||
11974 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
11975 | ||
11976 | ||
11977 | case ${INSTALL} in | |
11978 | /* ) # Absolute | |
11979 | ;; | |
11980 | ?:* ) # Drive letter, considered as absolute. | |
11981 | ;; | |
11982 | *) | |
11983 | INSTALL=`pwd`/${INSTALL} ;; | |
11984 | esac | |
11985 | ||
a848cd7e SC |
11986 | |
11987 | case "${host}" in | |
11988 | ||
11989 | powerpc-*-darwin* ) | |
11990 | INSTALL_PROGRAM="cp -fp" | |
11991 | INSTALL_DATA="cp -fp" | |
11992 | ;; | |
11993 | *) | |
11994 | ;; | |
11995 | esac | |
11996 | ||
11997 | # Extract the first word of "strip", so it can be a program name with args. | |
11998 | set dummy strip; ac_word=$2 | |
11999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12001 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12003 | else | |
12004 | if test -n "$STRIP"; then | |
12005 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12006 | else | |
12007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12008 | for as_dir in $PATH | |
12009 | do | |
12010 | IFS=$as_save_IFS | |
12011 | test -z "$as_dir" && as_dir=. | |
12012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12014 | ac_cv_prog_STRIP="strip" | |
12015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12016 | break 2 | |
12017 | fi | |
12018 | done | |
12019 | done | |
12020 | ||
12021 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12022 | fi | |
12023 | fi | |
12024 | STRIP=$ac_cv_prog_STRIP | |
12025 | if test -n "$STRIP"; then | |
12026 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12027 | echo "${ECHO_T}$STRIP" >&6 | |
12028 | else | |
12029 | echo "$as_me:$LINENO: result: no" >&5 | |
12030 | echo "${ECHO_T}no" >&6 | |
12031 | fi | |
12032 | ||
12033 | ||
12034 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12035 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12036 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12038 | else | |
12039 | ||
12040 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12041 | egrep -s GNU > /dev/null); then | |
12042 | wx_cv_prog_makeisgnu="yes" | |
12043 | else | |
12044 | wx_cv_prog_makeisgnu="no" | |
12045 | fi | |
12046 | ||
12047 | fi | |
12048 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12049 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12050 | ||
12051 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12052 | IF_GNU_MAKE="" | |
12053 | else | |
12054 | IF_GNU_MAKE="#" | |
12055 | fi | |
12056 | ||
12057 | ||
12058 | ||
12059 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12060 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12061 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12062 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12064 | else | |
12065 | ||
12066 | cat - << EOF > confMake | |
12067 | check : file | |
12068 | cp \$? \$@ | |
12069 | cp \$? final_file | |
12070 | EOF | |
12071 | ||
12072 | if test ! -d sub ; then | |
12073 | mkdir sub | |
12074 | fi | |
12075 | echo dummy > sub/file | |
12076 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12077 | RESULT=$? | |
12078 | rm -f sub/file check final_file confMake | |
12079 | rmdir sub | |
12080 | if test "$RESULT" = 0; then | |
12081 | wx_cv_prog_makevpath="yes" | |
12082 | else | |
12083 | wx_cv_prog_makevpath="no" | |
12084 | fi | |
12085 | ||
12086 | fi | |
12087 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12088 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12089 | ||
12090 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12091 | { { echo "$as_me:$LINENO: error: | |
12092 | You need a make-utility that is able to use the variable | |
12093 | VPATH correctly. | |
12094 | If your version of make does not support VPATH correctly, | |
12095 | please install GNU-make (possibly as gmake), and start | |
12096 | configure with the following command: | |
12097 | export MAKE=gmake; ./configure for sh-type shells | |
12098 | setenv MAKE gmake; ./configure for csh-type shells | |
12099 | Also please do remember to use gmake in this case every time | |
12100 | you are trying to compile. | |
12101 | " >&5 | |
12102 | echo "$as_me: error: | |
12103 | You need a make-utility that is able to use the variable | |
12104 | VPATH correctly. | |
12105 | If your version of make does not support VPATH correctly, | |
12106 | please install GNU-make (possibly as gmake), and start | |
12107 | configure with the following command: | |
12108 | export MAKE=gmake; ./configure for sh-type shells | |
12109 | setenv MAKE gmake; ./configure for csh-type shells | |
12110 | Also please do remember to use gmake in this case every time | |
12111 | you are trying to compile. | |
12112 | " >&2;} | |
12113 | { (exit 1); exit 1; }; } | |
12114 | fi fi | |
12115 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12116 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12117 | LN_S=$as_ln_s | |
12118 | if test "$LN_S" = "ln -s"; then | |
12119 | echo "$as_me:$LINENO: result: yes" >&5 | |
12120 | echo "${ECHO_T}yes" >&6 | |
12121 | else | |
12122 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12123 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12124 | fi | |
12125 | ||
12126 | ||
12127 | ||
12128 | case "${host}" in | |
12129 | *-pc-os2_emx | *-pc-os2-emx ) | |
12130 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12131 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12132 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12133 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12135 | else | |
12136 | ac_check_lib_save_LIBS=$LIBS | |
12137 | LIBS="-lcExt $LIBS" | |
12138 | cat >conftest.$ac_ext <<_ACEOF | |
12139 | /* confdefs.h. */ | |
12140 | _ACEOF | |
12141 | cat confdefs.h >>conftest.$ac_ext | |
12142 | cat >>conftest.$ac_ext <<_ACEOF | |
12143 | /* end confdefs.h. */ | |
12144 | ||
12145 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12146 | #ifdef __cplusplus | |
12147 | extern "C" | |
12148 | #endif | |
12149 | /* We use char because int might match the return type of a gcc2 | |
12150 | builtin and then its argument prototype would still apply. */ | |
12151 | char drand48 (); | |
12152 | int | |
12153 | main () | |
12154 | { | |
12155 | drand48 (); | |
12156 | ; | |
12157 | return 0; | |
12158 | } | |
12159 | _ACEOF | |
12160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12162 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12163 | ac_status=$? |
ac1cb8d3 VS |
12164 | grep -v '^ *+' conftest.er1 >conftest.err |
12165 | rm -f conftest.er1 | |
12166 | cat conftest.err >&5 | |
a848cd7e SC |
12167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12168 | (exit $ac_status); } && | |
4d4ff94c | 12169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12171 | (eval $ac_try) 2>&5 | |
12172 | ac_status=$? | |
12173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12174 | (exit $ac_status); }; } && | |
12175 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12177 | (eval $ac_try) 2>&5 | |
12178 | ac_status=$? | |
12179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12180 | (exit $ac_status); }; }; then | |
12181 | ac_cv_lib_cExt_drand48=yes | |
12182 | else | |
12183 | echo "$as_me: failed program was:" >&5 | |
12184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12185 | ||
12186 | ac_cv_lib_cExt_drand48=no | |
12187 | fi | |
ac1cb8d3 VS |
12188 | rm -f conftest.err conftest.$ac_objext \ |
12189 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12190 | LIBS=$ac_check_lib_save_LIBS |
12191 | fi | |
12192 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12193 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12194 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12195 | LIBS="$LIBS -lcExt" | |
12196 | fi | |
12197 | ||
12198 | else | |
12199 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12200 | fi | |
12201 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12202 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12203 | if test "${wx_cv_gccversion+set}" = set; then | |
12204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12205 | else | |
12206 | ||
12207 | cat >conftest.$ac_ext <<_ACEOF | |
12208 | /* confdefs.h. */ | |
12209 | _ACEOF | |
12210 | cat confdefs.h >>conftest.$ac_ext | |
12211 | cat >>conftest.$ac_ext <<_ACEOF | |
12212 | /* end confdefs.h. */ | |
12213 | ||
12214 | int | |
12215 | main () | |
12216 | { | |
12217 | ||
12218 | #if (__GNUC__ < 3) | |
12219 | #error old gcc | |
12220 | #endif | |
12221 | ||
12222 | ; | |
12223 | return 0; | |
12224 | } | |
12225 | _ACEOF | |
12226 | rm -f conftest.$ac_objext | |
12227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12228 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12229 | ac_status=$? |
ac1cb8d3 VS |
12230 | grep -v '^ *+' conftest.er1 >conftest.err |
12231 | rm -f conftest.er1 | |
12232 | cat conftest.err >&5 | |
a848cd7e SC |
12233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12234 | (exit $ac_status); } && | |
4d4ff94c | 12235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12237 | (eval $ac_try) 2>&5 | |
12238 | ac_status=$? | |
12239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12240 | (exit $ac_status); }; } && | |
12241 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12243 | (eval $ac_try) 2>&5 | |
12244 | ac_status=$? | |
12245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12246 | (exit $ac_status); }; }; then | |
12247 | ||
12248 | cat >conftest.$ac_ext <<_ACEOF | |
12249 | /* confdefs.h. */ | |
12250 | _ACEOF | |
12251 | cat confdefs.h >>conftest.$ac_ext | |
12252 | cat >>conftest.$ac_ext <<_ACEOF | |
12253 | /* end confdefs.h. */ | |
12254 | ||
12255 | int | |
12256 | main () | |
12257 | { | |
12258 | ||
12259 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12260 | #error intermediate gcc | |
12261 | #endif | |
12262 | ||
12263 | ; | |
12264 | return 0; | |
12265 | } | |
12266 | _ACEOF | |
12267 | rm -f conftest.$ac_objext | |
12268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12269 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12270 | ac_status=$? |
ac1cb8d3 VS |
12271 | grep -v '^ *+' conftest.er1 >conftest.err |
12272 | rm -f conftest.er1 | |
12273 | cat conftest.err >&5 | |
a848cd7e SC |
12274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12275 | (exit $ac_status); } && | |
4d4ff94c | 12276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12278 | (eval $ac_try) 2>&5 | |
12279 | ac_status=$? | |
12280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12281 | (exit $ac_status); }; } && | |
12282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12284 | (eval $ac_try) 2>&5 | |
12285 | ac_status=$? | |
12286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12287 | (exit $ac_status); }; }; then | |
12288 | ||
12289 | wx_cv_gccversion=Innotek | |
12290 | ||
12291 | else | |
12292 | echo "$as_me: failed program was:" >&5 | |
12293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12294 | ||
12295 | ||
12296 | wx_cv_gccversion=3 | |
12297 | ||
12298 | ||
12299 | fi | |
ac1cb8d3 | 12300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12301 | |
12302 | else | |
12303 | echo "$as_me: failed program was:" >&5 | |
12304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12305 | ||
12306 | ||
12307 | wx_cv_gccversion=2 | |
12308 | ||
12309 | ||
12310 | fi | |
ac1cb8d3 | 12311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12312 | |
12313 | fi | |
12314 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12315 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12316 | if test "$wx_cv_gccversion" = "2"; then | |
12317 | LIBS="$LIBS -lstdcpp" | |
12318 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12319 | else | |
12320 | if test "$wx_cv_gccversion" = "3"; then | |
12321 | LIBS="$LIBS -lstdcxx" | |
12322 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12323 | else | |
12324 | LIBS="$LIBS -lstdc++" | |
12325 | fi | |
12326 | fi | |
12327 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12328 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12329 | fi |
12330 | ;; | |
12331 | *) | |
12332 | ||
12333 | ||
12334 | ||
12335 | ac_ext=cc | |
12336 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12337 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12338 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12339 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12340 | ||
12341 | ||
12342 | ||
12343 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12344 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12345 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12347 | else | |
12348 | ||
12349 | cat >conftest.$ac_ext <<_ACEOF | |
12350 | /* confdefs.h. */ | |
12351 | _ACEOF | |
12352 | cat confdefs.h >>conftest.$ac_ext | |
12353 | cat >>conftest.$ac_ext <<_ACEOF | |
12354 | /* end confdefs.h. */ | |
12355 | ||
12356 | #include <string.h> | |
12357 | ||
12358 | int | |
12359 | main () | |
12360 | { | |
12361 | ||
12362 | strcasecmp("foo", "bar"); | |
12363 | ||
12364 | ; | |
12365 | return 0; | |
12366 | } | |
12367 | _ACEOF | |
12368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12370 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12371 | ac_status=$? |
ac1cb8d3 VS |
12372 | grep -v '^ *+' conftest.er1 >conftest.err |
12373 | rm -f conftest.er1 | |
12374 | cat conftest.err >&5 | |
a848cd7e SC |
12375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12376 | (exit $ac_status); } && | |
4d4ff94c | 12377 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12379 | (eval $ac_try) 2>&5 | |
12380 | ac_status=$? | |
12381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12382 | (exit $ac_status); }; } && | |
12383 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12385 | (eval $ac_try) 2>&5 | |
12386 | ac_status=$? | |
12387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12388 | (exit $ac_status); }; }; then | |
12389 | ac_cv_string_strcasecmp=yes | |
12390 | else | |
12391 | echo "$as_me: failed program was:" >&5 | |
12392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12393 | ||
12394 | ac_cv_string_strcasecmp=no | |
12395 | ||
12396 | fi | |
ac1cb8d3 VS |
12397 | rm -f conftest.err conftest.$ac_objext \ |
12398 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12399 | |
12400 | fi | |
12401 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12402 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12403 | ||
12404 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12405 | cat >>confdefs.h <<\_ACEOF | |
12406 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12407 | _ACEOF | |
12408 | ||
12409 | else | |
12410 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12411 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12412 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12414 | else | |
12415 | ||
12416 | cat >conftest.$ac_ext <<_ACEOF | |
12417 | /* confdefs.h. */ | |
12418 | _ACEOF | |
12419 | cat confdefs.h >>conftest.$ac_ext | |
12420 | cat >>conftest.$ac_ext <<_ACEOF | |
12421 | /* end confdefs.h. */ | |
12422 | ||
12423 | #include <strings.h> | |
12424 | ||
12425 | int | |
12426 | main () | |
12427 | { | |
12428 | ||
12429 | strcasecmp("foo", "bar"); | |
12430 | ||
12431 | ; | |
12432 | return 0; | |
12433 | } | |
12434 | _ACEOF | |
12435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12437 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12438 | ac_status=$? |
ac1cb8d3 VS |
12439 | grep -v '^ *+' conftest.er1 >conftest.err |
12440 | rm -f conftest.er1 | |
12441 | cat conftest.err >&5 | |
a848cd7e SC |
12442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12443 | (exit $ac_status); } && | |
4d4ff94c | 12444 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12446 | (eval $ac_try) 2>&5 | |
12447 | ac_status=$? | |
12448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12449 | (exit $ac_status); }; } && | |
12450 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12452 | (eval $ac_try) 2>&5 | |
12453 | ac_status=$? | |
12454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12455 | (exit $ac_status); }; }; then | |
12456 | ac_cv_strings_strcasecmp=yes | |
12457 | else | |
12458 | echo "$as_me: failed program was:" >&5 | |
12459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12460 | ||
12461 | ac_cv_strings_strcasecmp=no | |
12462 | ||
12463 | fi | |
ac1cb8d3 VS |
12464 | rm -f conftest.err conftest.$ac_objext \ |
12465 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12466 | |
12467 | fi | |
12468 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12469 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12470 | ||
0c3c69fc | 12471 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12472 | cat >>confdefs.h <<\_ACEOF |
12473 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12474 | _ACEOF | |
12475 | ||
12476 | else | |
12477 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12478 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12479 | { (exit 1); exit 1; }; } | |
12480 | fi | |
12481 | fi | |
12482 | ||
12483 | ac_ext=c | |
12484 | ac_cpp='$CPP $CPPFLAGS' | |
12485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12488 | ||
12489 | ;; | |
12490 | esac | |
12491 | ||
12492 | ||
12493 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12494 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12495 | if test "${ac_cv_header_stdc+set}" = set; then | |
12496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12497 | else | |
12498 | cat >conftest.$ac_ext <<_ACEOF | |
12499 | /* confdefs.h. */ | |
12500 | _ACEOF | |
12501 | cat confdefs.h >>conftest.$ac_ext | |
12502 | cat >>conftest.$ac_ext <<_ACEOF | |
12503 | /* end confdefs.h. */ | |
12504 | #include <stdlib.h> | |
12505 | #include <stdarg.h> | |
12506 | #include <string.h> | |
12507 | #include <float.h> | |
12508 | ||
12509 | int | |
12510 | main () | |
12511 | { | |
12512 | ||
12513 | ; | |
12514 | return 0; | |
12515 | } | |
12516 | _ACEOF | |
12517 | rm -f conftest.$ac_objext | |
12518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12519 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12520 | ac_status=$? |
ac1cb8d3 VS |
12521 | grep -v '^ *+' conftest.er1 >conftest.err |
12522 | rm -f conftest.er1 | |
12523 | cat conftest.err >&5 | |
a848cd7e SC |
12524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12525 | (exit $ac_status); } && | |
4d4ff94c | 12526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12528 | (eval $ac_try) 2>&5 | |
12529 | ac_status=$? | |
12530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12531 | (exit $ac_status); }; } && | |
12532 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12534 | (eval $ac_try) 2>&5 | |
12535 | ac_status=$? | |
12536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12537 | (exit $ac_status); }; }; then | |
12538 | ac_cv_header_stdc=yes | |
12539 | else | |
12540 | echo "$as_me: failed program was:" >&5 | |
12541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12542 | ||
12543 | ac_cv_header_stdc=no | |
12544 | fi | |
ac1cb8d3 | 12545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12546 | |
12547 | if test $ac_cv_header_stdc = yes; then | |
12548 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12549 | cat >conftest.$ac_ext <<_ACEOF | |
12550 | /* confdefs.h. */ | |
12551 | _ACEOF | |
12552 | cat confdefs.h >>conftest.$ac_ext | |
12553 | cat >>conftest.$ac_ext <<_ACEOF | |
12554 | /* end confdefs.h. */ | |
12555 | #include <string.h> | |
12556 | ||
12557 | _ACEOF | |
12558 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12559 | $EGREP "memchr" >/dev/null 2>&1; then | |
12560 | : | |
12561 | else | |
12562 | ac_cv_header_stdc=no | |
12563 | fi | |
12564 | rm -f conftest* | |
12565 | ||
12566 | fi | |
12567 | ||
12568 | if test $ac_cv_header_stdc = yes; then | |
12569 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12570 | cat >conftest.$ac_ext <<_ACEOF | |
12571 | /* confdefs.h. */ | |
12572 | _ACEOF | |
12573 | cat confdefs.h >>conftest.$ac_ext | |
12574 | cat >>conftest.$ac_ext <<_ACEOF | |
12575 | /* end confdefs.h. */ | |
12576 | #include <stdlib.h> | |
12577 | ||
12578 | _ACEOF | |
12579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12580 | $EGREP "free" >/dev/null 2>&1; then | |
12581 | : | |
12582 | else | |
12583 | ac_cv_header_stdc=no | |
12584 | fi | |
12585 | rm -f conftest* | |
12586 | ||
12587 | fi | |
12588 | ||
12589 | if test $ac_cv_header_stdc = yes; then | |
12590 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12591 | if test "$cross_compiling" = yes; then | |
12592 | : | |
12593 | else | |
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 <ctype.h> | |
12601 | #if ((' ' & 0x0FF) == 0x020) | |
12602 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12603 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12604 | #else | |
12605 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12606 | (('a' <= (c) && (c) <= 'i') \ |
12607 | || ('j' <= (c) && (c) <= 'r') \ | |
12608 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12609 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12610 | #endif | |
12611 | ||
12612 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12613 | int | |
12614 | main () | |
12615 | { | |
12616 | int i; | |
12617 | for (i = 0; i < 256; i++) | |
12618 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12619 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12620 | exit(2); |
12621 | exit (0); | |
12622 | } | |
12623 | _ACEOF | |
12624 | rm -f conftest$ac_exeext | |
12625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12626 | (eval $ac_link) 2>&5 | |
12627 | ac_status=$? | |
12628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12629 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12631 | (eval $ac_try) 2>&5 | |
12632 | ac_status=$? | |
12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12634 | (exit $ac_status); }; }; then | |
12635 | : | |
12636 | else | |
12637 | echo "$as_me: program exited with status $ac_status" >&5 | |
12638 | echo "$as_me: failed program was:" >&5 | |
12639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12640 | ||
12641 | ( exit $ac_status ) | |
12642 | ac_cv_header_stdc=no | |
12643 | fi | |
ac1cb8d3 | 12644 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12645 | fi |
12646 | fi | |
12647 | fi | |
12648 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12649 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12650 | if test $ac_cv_header_stdc = yes; then | |
12651 | ||
12652 | cat >>confdefs.h <<\_ACEOF | |
12653 | #define STDC_HEADERS 1 | |
12654 | _ACEOF | |
12655 | ||
12656 | fi | |
12657 | ||
12658 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12659 | ||
12660 | ||
12661 | ||
12662 | ||
12663 | ||
12664 | ||
12665 | ||
12666 | ||
12667 | ||
12668 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12669 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12670 | do |
12671 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12672 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12676 | else | |
12677 | cat >conftest.$ac_ext <<_ACEOF | |
12678 | /* confdefs.h. */ | |
12679 | _ACEOF | |
12680 | cat confdefs.h >>conftest.$ac_ext | |
12681 | cat >>conftest.$ac_ext <<_ACEOF | |
12682 | /* end confdefs.h. */ | |
12683 | $ac_includes_default | |
12684 | ||
12685 | #include <$ac_header> | |
12686 | _ACEOF | |
12687 | rm -f conftest.$ac_objext | |
12688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12689 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12690 | ac_status=$? |
ac1cb8d3 VS |
12691 | grep -v '^ *+' conftest.er1 >conftest.err |
12692 | rm -f conftest.er1 | |
12693 | cat conftest.err >&5 | |
a848cd7e SC |
12694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12695 | (exit $ac_status); } && | |
4d4ff94c | 12696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12698 | (eval $ac_try) 2>&5 | |
12699 | ac_status=$? | |
12700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12701 | (exit $ac_status); }; } && | |
12702 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12704 | (eval $ac_try) 2>&5 | |
12705 | ac_status=$? | |
12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12707 | (exit $ac_status); }; }; then | |
12708 | eval "$as_ac_Header=yes" | |
12709 | else | |
12710 | echo "$as_me: failed program was:" >&5 | |
12711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12712 | ||
12713 | eval "$as_ac_Header=no" | |
12714 | fi | |
ac1cb8d3 | 12715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12716 | fi |
12717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12718 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12719 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12720 | cat >>confdefs.h <<_ACEOF | |
12721 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12722 | _ACEOF | |
12723 | ||
12724 | fi | |
12725 | ||
12726 | done | |
12727 | ||
12728 | ||
12729 | ||
12730 | for ac_header in stdlib.h | |
12731 | do | |
12732 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12733 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12734 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12738 | fi | |
12739 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12740 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12741 | else | |
12742 | # Is the header compilable? | |
12743 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12744 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12745 | cat >conftest.$ac_ext <<_ACEOF | |
12746 | /* confdefs.h. */ | |
12747 | _ACEOF | |
12748 | cat confdefs.h >>conftest.$ac_ext | |
12749 | cat >>conftest.$ac_ext <<_ACEOF | |
12750 | /* end confdefs.h. */ | |
12751 | $ac_includes_default | |
12752 | #include <$ac_header> | |
12753 | _ACEOF | |
12754 | rm -f conftest.$ac_objext | |
12755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12756 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12757 | ac_status=$? |
ac1cb8d3 VS |
12758 | grep -v '^ *+' conftest.er1 >conftest.err |
12759 | rm -f conftest.er1 | |
12760 | cat conftest.err >&5 | |
a848cd7e SC |
12761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12762 | (exit $ac_status); } && | |
4d4ff94c | 12763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12765 | (eval $ac_try) 2>&5 | |
12766 | ac_status=$? | |
12767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12768 | (exit $ac_status); }; } && | |
12769 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12771 | (eval $ac_try) 2>&5 | |
12772 | ac_status=$? | |
12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12774 | (exit $ac_status); }; }; then | |
12775 | ac_header_compiler=yes | |
12776 | else | |
12777 | echo "$as_me: failed program was:" >&5 | |
12778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12779 | ||
12780 | ac_header_compiler=no | |
12781 | fi | |
ac1cb8d3 | 12782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12783 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12784 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12785 | ||
12786 | # Is the header present? | |
12787 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12788 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12789 | cat >conftest.$ac_ext <<_ACEOF | |
12790 | /* confdefs.h. */ | |
12791 | _ACEOF | |
12792 | cat confdefs.h >>conftest.$ac_ext | |
12793 | cat >>conftest.$ac_ext <<_ACEOF | |
12794 | /* end confdefs.h. */ | |
12795 | #include <$ac_header> | |
12796 | _ACEOF | |
12797 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12798 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12799 | ac_status=$? | |
12800 | grep -v '^ *+' conftest.er1 >conftest.err | |
12801 | rm -f conftest.er1 | |
12802 | cat conftest.err >&5 | |
12803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12804 | (exit $ac_status); } >/dev/null; then | |
12805 | if test -s conftest.err; then | |
12806 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12807 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12808 | else |
12809 | ac_cpp_err= | |
12810 | fi | |
12811 | else | |
12812 | ac_cpp_err=yes | |
12813 | fi | |
12814 | if test -z "$ac_cpp_err"; then | |
12815 | ac_header_preproc=yes | |
12816 | else | |
12817 | echo "$as_me: failed program was:" >&5 | |
12818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12819 | ||
12820 | ac_header_preproc=no | |
12821 | fi | |
12822 | rm -f conftest.err conftest.$ac_ext | |
12823 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12824 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12825 | ||
12826 | # So? What about this header? | |
ac1cb8d3 VS |
12827 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12828 | yes:no: ) | |
a848cd7e SC |
12829 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12830 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12832 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12833 | ac_header_preproc=yes | |
a848cd7e | 12834 | ;; |
ac1cb8d3 | 12835 | no:yes:* ) |
a848cd7e SC |
12836 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12837 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12838 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12839 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12840 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12841 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12842 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12843 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
12844 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12845 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
12846 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12847 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
12848 | ( |
12849 | cat <<\_ASBOX | |
ac1cb8d3 VS |
12850 | ## ----------------------------------------- ## |
12851 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
12852 | ## ----------------------------------------- ## | |
a848cd7e SC |
12853 | _ASBOX |
12854 | ) | | |
12855 | sed "s/^/$as_me: WARNING: /" >&2 | |
12856 | ;; | |
12857 | esac | |
12858 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12860 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12862 | else | |
ac1cb8d3 | 12863 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
12864 | fi |
12865 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12866 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12867 | ||
12868 | fi | |
12869 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12870 | cat >>confdefs.h <<_ACEOF | |
12871 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12872 | _ACEOF | |
12873 | ||
12874 | fi | |
12875 | ||
12876 | done | |
12877 | ||
12878 | ||
12879 | for ac_header in malloc.h | |
12880 | do | |
12881 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12882 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12883 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12884 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12885 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12887 | fi | |
12888 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12889 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12890 | else | |
12891 | # Is the header compilable? | |
12892 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12893 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12894 | cat >conftest.$ac_ext <<_ACEOF | |
12895 | /* confdefs.h. */ | |
12896 | _ACEOF | |
12897 | cat confdefs.h >>conftest.$ac_ext | |
12898 | cat >>conftest.$ac_ext <<_ACEOF | |
12899 | /* end confdefs.h. */ | |
12900 | $ac_includes_default | |
12901 | #include <$ac_header> | |
12902 | _ACEOF | |
12903 | rm -f conftest.$ac_objext | |
12904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12905 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12906 | ac_status=$? |
ac1cb8d3 VS |
12907 | grep -v '^ *+' conftest.er1 >conftest.err |
12908 | rm -f conftest.er1 | |
12909 | cat conftest.err >&5 | |
a848cd7e SC |
12910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12911 | (exit $ac_status); } && | |
4d4ff94c | 12912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12914 | (eval $ac_try) 2>&5 | |
12915 | ac_status=$? | |
12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12917 | (exit $ac_status); }; } && | |
12918 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12920 | (eval $ac_try) 2>&5 | |
12921 | ac_status=$? | |
12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12923 | (exit $ac_status); }; }; then | |
12924 | ac_header_compiler=yes | |
12925 | else | |
12926 | echo "$as_me: failed program was:" >&5 | |
12927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12928 | ||
12929 | ac_header_compiler=no | |
12930 | fi | |
ac1cb8d3 | 12931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12932 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12933 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12934 | ||
12935 | # Is the header present? | |
12936 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12937 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12938 | cat >conftest.$ac_ext <<_ACEOF | |
12939 | /* confdefs.h. */ | |
12940 | _ACEOF | |
12941 | cat confdefs.h >>conftest.$ac_ext | |
12942 | cat >>conftest.$ac_ext <<_ACEOF | |
12943 | /* end confdefs.h. */ | |
12944 | #include <$ac_header> | |
12945 | _ACEOF | |
12946 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12947 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12948 | ac_status=$? | |
12949 | grep -v '^ *+' conftest.er1 >conftest.err | |
12950 | rm -f conftest.er1 | |
12951 | cat conftest.err >&5 | |
12952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12953 | (exit $ac_status); } >/dev/null; then | |
12954 | if test -s conftest.err; then | |
12955 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12956 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12957 | else |
12958 | ac_cpp_err= | |
12959 | fi | |
12960 | else | |
12961 | ac_cpp_err=yes | |
12962 | fi | |
12963 | if test -z "$ac_cpp_err"; then | |
12964 | ac_header_preproc=yes | |
12965 | else | |
12966 | echo "$as_me: failed program was:" >&5 | |
12967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12968 | ||
12969 | ac_header_preproc=no | |
12970 | fi | |
12971 | rm -f conftest.err conftest.$ac_ext | |
12972 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12973 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12974 | ||
12975 | # So? What about this header? | |
ac1cb8d3 VS |
12976 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12977 | yes:no: ) | |
a848cd7e SC |
12978 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12979 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12981 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12982 | ac_header_preproc=yes | |
a848cd7e | 12983 | ;; |
ac1cb8d3 | 12984 | no:yes:* ) |
a848cd7e SC |
12985 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12986 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12987 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12988 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12989 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12990 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12991 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12992 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
12993 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12994 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
12995 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12996 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
12997 | ( |
12998 | cat <<\_ASBOX | |
ac1cb8d3 VS |
12999 | ## ----------------------------------------- ## |
13000 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13001 | ## ----------------------------------------- ## | |
a848cd7e SC |
13002 | _ASBOX |
13003 | ) | | |
13004 | sed "s/^/$as_me: WARNING: /" >&2 | |
13005 | ;; | |
13006 | esac | |
13007 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13008 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13009 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13011 | else | |
ac1cb8d3 | 13012 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13013 | fi |
13014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13015 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13016 | ||
13017 | fi | |
13018 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13019 | cat >>confdefs.h <<_ACEOF | |
13020 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13021 | _ACEOF | |
13022 | ||
13023 | fi | |
13024 | ||
13025 | done | |
13026 | ||
13027 | ||
13028 | for ac_header in unistd.h | |
13029 | do | |
13030 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13032 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13033 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13036 | fi | |
13037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13038 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13039 | else | |
13040 | # Is the header compilable? | |
13041 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13042 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13043 | cat >conftest.$ac_ext <<_ACEOF | |
13044 | /* confdefs.h. */ | |
13045 | _ACEOF | |
13046 | cat confdefs.h >>conftest.$ac_ext | |
13047 | cat >>conftest.$ac_ext <<_ACEOF | |
13048 | /* end confdefs.h. */ | |
13049 | $ac_includes_default | |
13050 | #include <$ac_header> | |
13051 | _ACEOF | |
13052 | rm -f conftest.$ac_objext | |
13053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13054 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13055 | ac_status=$? |
ac1cb8d3 VS |
13056 | grep -v '^ *+' conftest.er1 >conftest.err |
13057 | rm -f conftest.er1 | |
13058 | cat conftest.err >&5 | |
a848cd7e SC |
13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13060 | (exit $ac_status); } && | |
4d4ff94c | 13061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13063 | (eval $ac_try) 2>&5 | |
13064 | ac_status=$? | |
13065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13066 | (exit $ac_status); }; } && | |
13067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13069 | (eval $ac_try) 2>&5 | |
13070 | ac_status=$? | |
13071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13072 | (exit $ac_status); }; }; then | |
13073 | ac_header_compiler=yes | |
13074 | else | |
13075 | echo "$as_me: failed program was:" >&5 | |
13076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13077 | ||
13078 | ac_header_compiler=no | |
13079 | fi | |
ac1cb8d3 | 13080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13081 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13082 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13083 | ||
13084 | # Is the header present? | |
13085 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13086 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13087 | cat >conftest.$ac_ext <<_ACEOF | |
13088 | /* confdefs.h. */ | |
13089 | _ACEOF | |
13090 | cat confdefs.h >>conftest.$ac_ext | |
13091 | cat >>conftest.$ac_ext <<_ACEOF | |
13092 | /* end confdefs.h. */ | |
13093 | #include <$ac_header> | |
13094 | _ACEOF | |
13095 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13096 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13097 | ac_status=$? | |
13098 | grep -v '^ *+' conftest.er1 >conftest.err | |
13099 | rm -f conftest.er1 | |
13100 | cat conftest.err >&5 | |
13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13102 | (exit $ac_status); } >/dev/null; then | |
13103 | if test -s conftest.err; then | |
13104 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13105 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13106 | else |
13107 | ac_cpp_err= | |
13108 | fi | |
13109 | else | |
13110 | ac_cpp_err=yes | |
13111 | fi | |
13112 | if test -z "$ac_cpp_err"; then | |
13113 | ac_header_preproc=yes | |
13114 | else | |
13115 | echo "$as_me: failed program was:" >&5 | |
13116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13117 | ||
13118 | ac_header_preproc=no | |
13119 | fi | |
13120 | rm -f conftest.err conftest.$ac_ext | |
13121 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13122 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13123 | ||
13124 | # So? What about this header? | |
ac1cb8d3 VS |
13125 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13126 | yes:no: ) | |
a848cd7e SC |
13127 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13128 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13129 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13130 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13131 | ac_header_preproc=yes | |
a848cd7e | 13132 | ;; |
ac1cb8d3 | 13133 | no:yes:* ) |
a848cd7e SC |
13134 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13135 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13136 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13137 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13138 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13139 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13140 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13141 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13142 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13143 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13144 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13145 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13146 | ( |
13147 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13148 | ## ----------------------------------------- ## |
13149 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13150 | ## ----------------------------------------- ## | |
a848cd7e SC |
13151 | _ASBOX |
13152 | ) | | |
13153 | sed "s/^/$as_me: WARNING: /" >&2 | |
13154 | ;; | |
13155 | esac | |
13156 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13157 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13160 | else | |
ac1cb8d3 | 13161 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13162 | fi |
13163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13164 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13165 | ||
13166 | fi | |
13167 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13168 | cat >>confdefs.h <<_ACEOF | |
13169 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13170 | _ACEOF | |
13171 | ||
13172 | fi | |
13173 | ||
13174 | done | |
13175 | ||
13176 | ||
13177 | for ac_header in wchar.h | |
13178 | do | |
13179 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13181 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13182 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13185 | fi | |
13186 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13187 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13188 | else | |
13189 | # Is the header compilable? | |
13190 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13191 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13192 | cat >conftest.$ac_ext <<_ACEOF | |
13193 | /* confdefs.h. */ | |
13194 | _ACEOF | |
13195 | cat confdefs.h >>conftest.$ac_ext | |
13196 | cat >>conftest.$ac_ext <<_ACEOF | |
13197 | /* end confdefs.h. */ | |
13198 | $ac_includes_default | |
13199 | #include <$ac_header> | |
13200 | _ACEOF | |
13201 | rm -f conftest.$ac_objext | |
13202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13203 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13204 | ac_status=$? |
ac1cb8d3 VS |
13205 | grep -v '^ *+' conftest.er1 >conftest.err |
13206 | rm -f conftest.er1 | |
13207 | cat conftest.err >&5 | |
a848cd7e SC |
13208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13209 | (exit $ac_status); } && | |
4d4ff94c | 13210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13212 | (eval $ac_try) 2>&5 | |
13213 | ac_status=$? | |
13214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13215 | (exit $ac_status); }; } && | |
13216 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13218 | (eval $ac_try) 2>&5 | |
13219 | ac_status=$? | |
13220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13221 | (exit $ac_status); }; }; then | |
13222 | ac_header_compiler=yes | |
13223 | else | |
13224 | echo "$as_me: failed program was:" >&5 | |
13225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13226 | ||
13227 | ac_header_compiler=no | |
13228 | fi | |
ac1cb8d3 | 13229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13230 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13231 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13232 | ||
13233 | # Is the header present? | |
13234 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13235 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13236 | cat >conftest.$ac_ext <<_ACEOF | |
13237 | /* confdefs.h. */ | |
13238 | _ACEOF | |
13239 | cat confdefs.h >>conftest.$ac_ext | |
13240 | cat >>conftest.$ac_ext <<_ACEOF | |
13241 | /* end confdefs.h. */ | |
13242 | #include <$ac_header> | |
13243 | _ACEOF | |
13244 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13245 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13246 | ac_status=$? | |
13247 | grep -v '^ *+' conftest.er1 >conftest.err | |
13248 | rm -f conftest.er1 | |
13249 | cat conftest.err >&5 | |
13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13251 | (exit $ac_status); } >/dev/null; then | |
13252 | if test -s conftest.err; then | |
13253 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13254 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13255 | else |
13256 | ac_cpp_err= | |
13257 | fi | |
13258 | else | |
13259 | ac_cpp_err=yes | |
13260 | fi | |
13261 | if test -z "$ac_cpp_err"; then | |
13262 | ac_header_preproc=yes | |
13263 | else | |
13264 | echo "$as_me: failed program was:" >&5 | |
13265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13266 | ||
13267 | ac_header_preproc=no | |
13268 | fi | |
13269 | rm -f conftest.err conftest.$ac_ext | |
13270 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13271 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13272 | ||
13273 | # So? What about this header? | |
ac1cb8d3 VS |
13274 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13275 | yes:no: ) | |
a848cd7e SC |
13276 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13277 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13278 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13279 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13280 | ac_header_preproc=yes | |
a848cd7e | 13281 | ;; |
ac1cb8d3 | 13282 | no:yes:* ) |
a848cd7e SC |
13283 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13284 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13285 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13286 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13287 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13288 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13289 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13290 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13291 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13292 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13293 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13294 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13295 | ( |
13296 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13297 | ## ----------------------------------------- ## |
13298 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13299 | ## ----------------------------------------- ## | |
a848cd7e SC |
13300 | _ASBOX |
13301 | ) | | |
13302 | sed "s/^/$as_me: WARNING: /" >&2 | |
13303 | ;; | |
13304 | esac | |
13305 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13309 | else | |
ac1cb8d3 | 13310 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13311 | fi |
13312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13313 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13314 | ||
13315 | fi | |
13316 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13317 | cat >>confdefs.h <<_ACEOF | |
13318 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13319 | _ACEOF | |
13320 | ||
13321 | fi | |
13322 | ||
13323 | done | |
13324 | ||
13325 | ||
13326 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13327 | ||
13328 | for ac_header in wcstr.h | |
13329 | do | |
13330 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13332 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13333 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13334 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13336 | fi | |
13337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13339 | else | |
13340 | # Is the header compilable? | |
13341 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13342 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13343 | cat >conftest.$ac_ext <<_ACEOF | |
13344 | /* confdefs.h. */ | |
13345 | _ACEOF | |
13346 | cat confdefs.h >>conftest.$ac_ext | |
13347 | cat >>conftest.$ac_ext <<_ACEOF | |
13348 | /* end confdefs.h. */ | |
13349 | $ac_includes_default | |
13350 | #include <$ac_header> | |
13351 | _ACEOF | |
13352 | rm -f conftest.$ac_objext | |
13353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13354 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13355 | ac_status=$? |
ac1cb8d3 VS |
13356 | grep -v '^ *+' conftest.er1 >conftest.err |
13357 | rm -f conftest.er1 | |
13358 | cat conftest.err >&5 | |
a848cd7e SC |
13359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13360 | (exit $ac_status); } && | |
4d4ff94c | 13361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13363 | (eval $ac_try) 2>&5 | |
13364 | ac_status=$? | |
13365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13366 | (exit $ac_status); }; } && | |
13367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13369 | (eval $ac_try) 2>&5 | |
13370 | ac_status=$? | |
13371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13372 | (exit $ac_status); }; }; then | |
13373 | ac_header_compiler=yes | |
13374 | else | |
13375 | echo "$as_me: failed program was:" >&5 | |
13376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13377 | ||
13378 | ac_header_compiler=no | |
13379 | fi | |
ac1cb8d3 | 13380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13381 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13382 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13383 | ||
13384 | # Is the header present? | |
13385 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13386 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13387 | cat >conftest.$ac_ext <<_ACEOF | |
13388 | /* confdefs.h. */ | |
13389 | _ACEOF | |
13390 | cat confdefs.h >>conftest.$ac_ext | |
13391 | cat >>conftest.$ac_ext <<_ACEOF | |
13392 | /* end confdefs.h. */ | |
13393 | #include <$ac_header> | |
13394 | _ACEOF | |
13395 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13396 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13397 | ac_status=$? | |
13398 | grep -v '^ *+' conftest.er1 >conftest.err | |
13399 | rm -f conftest.er1 | |
13400 | cat conftest.err >&5 | |
13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13402 | (exit $ac_status); } >/dev/null; then | |
13403 | if test -s conftest.err; then | |
13404 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13405 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13406 | else |
13407 | ac_cpp_err= | |
13408 | fi | |
13409 | else | |
13410 | ac_cpp_err=yes | |
13411 | fi | |
13412 | if test -z "$ac_cpp_err"; then | |
13413 | ac_header_preproc=yes | |
13414 | else | |
13415 | echo "$as_me: failed program was:" >&5 | |
13416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13417 | ||
13418 | ac_header_preproc=no | |
13419 | fi | |
13420 | rm -f conftest.err conftest.$ac_ext | |
13421 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13422 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13423 | ||
13424 | # So? What about this header? | |
ac1cb8d3 VS |
13425 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13426 | yes:no: ) | |
a848cd7e SC |
13427 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13428 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13429 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13430 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13431 | ac_header_preproc=yes | |
a848cd7e | 13432 | ;; |
ac1cb8d3 | 13433 | no:yes:* ) |
a848cd7e SC |
13434 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13435 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13436 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13437 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13438 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13439 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13440 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13441 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13442 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13443 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13444 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13445 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13446 | ( |
13447 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13448 | ## ----------------------------------------- ## |
13449 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13450 | ## ----------------------------------------- ## | |
a848cd7e SC |
13451 | _ASBOX |
13452 | ) | | |
13453 | sed "s/^/$as_me: WARNING: /" >&2 | |
13454 | ;; | |
13455 | esac | |
13456 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13460 | else | |
ac1cb8d3 | 13461 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13462 | fi |
13463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13465 | ||
13466 | fi | |
13467 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13468 | cat >>confdefs.h <<_ACEOF | |
13469 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13470 | _ACEOF | |
13471 | ||
13472 | fi | |
13473 | ||
13474 | done | |
13475 | ||
13476 | fi | |
13477 | ||
13478 | ||
13479 | for ac_header in fnmatch.h | |
13480 | do | |
13481 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13482 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13483 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13487 | fi | |
13488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13490 | else | |
13491 | # Is the header compilable? | |
13492 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13493 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13494 | cat >conftest.$ac_ext <<_ACEOF | |
13495 | /* confdefs.h. */ | |
13496 | _ACEOF | |
13497 | cat confdefs.h >>conftest.$ac_ext | |
13498 | cat >>conftest.$ac_ext <<_ACEOF | |
13499 | /* end confdefs.h. */ | |
13500 | $ac_includes_default | |
13501 | #include <$ac_header> | |
13502 | _ACEOF | |
13503 | rm -f conftest.$ac_objext | |
13504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13505 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13506 | ac_status=$? |
ac1cb8d3 VS |
13507 | grep -v '^ *+' conftest.er1 >conftest.err |
13508 | rm -f conftest.er1 | |
13509 | cat conftest.err >&5 | |
a848cd7e SC |
13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13511 | (exit $ac_status); } && | |
4d4ff94c | 13512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13514 | (eval $ac_try) 2>&5 | |
13515 | ac_status=$? | |
13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13517 | (exit $ac_status); }; } && | |
13518 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13520 | (eval $ac_try) 2>&5 | |
13521 | ac_status=$? | |
13522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13523 | (exit $ac_status); }; }; then | |
13524 | ac_header_compiler=yes | |
13525 | else | |
13526 | echo "$as_me: failed program was:" >&5 | |
13527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13528 | ||
13529 | ac_header_compiler=no | |
13530 | fi | |
ac1cb8d3 | 13531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13532 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13533 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13534 | ||
13535 | # Is the header present? | |
13536 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13537 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13538 | cat >conftest.$ac_ext <<_ACEOF | |
13539 | /* confdefs.h. */ | |
13540 | _ACEOF | |
13541 | cat confdefs.h >>conftest.$ac_ext | |
13542 | cat >>conftest.$ac_ext <<_ACEOF | |
13543 | /* end confdefs.h. */ | |
13544 | #include <$ac_header> | |
13545 | _ACEOF | |
13546 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13547 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13548 | ac_status=$? | |
13549 | grep -v '^ *+' conftest.er1 >conftest.err | |
13550 | rm -f conftest.er1 | |
13551 | cat conftest.err >&5 | |
13552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13553 | (exit $ac_status); } >/dev/null; then | |
13554 | if test -s conftest.err; then | |
13555 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13556 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13557 | else |
13558 | ac_cpp_err= | |
13559 | fi | |
13560 | else | |
13561 | ac_cpp_err=yes | |
13562 | fi | |
13563 | if test -z "$ac_cpp_err"; then | |
13564 | ac_header_preproc=yes | |
13565 | else | |
13566 | echo "$as_me: failed program was:" >&5 | |
13567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13568 | ||
13569 | ac_header_preproc=no | |
13570 | fi | |
13571 | rm -f conftest.err conftest.$ac_ext | |
13572 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13573 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13574 | ||
13575 | # So? What about this header? | |
ac1cb8d3 VS |
13576 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13577 | yes:no: ) | |
a848cd7e SC |
13578 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13579 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13581 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13582 | ac_header_preproc=yes | |
a848cd7e | 13583 | ;; |
ac1cb8d3 | 13584 | no:yes:* ) |
a848cd7e SC |
13585 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13586 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13587 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13588 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13589 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13590 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13591 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13592 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13594 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13595 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13596 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13597 | ( |
13598 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13599 | ## ----------------------------------------- ## |
13600 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13601 | ## ----------------------------------------- ## | |
a848cd7e SC |
13602 | _ASBOX |
13603 | ) | | |
13604 | sed "s/^/$as_me: WARNING: /" >&2 | |
13605 | ;; | |
13606 | esac | |
13607 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13608 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13609 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13611 | else | |
ac1cb8d3 | 13612 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13613 | fi |
13614 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13615 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13616 | ||
13617 | fi | |
13618 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13619 | cat >>confdefs.h <<_ACEOF | |
13620 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13621 | _ACEOF | |
13622 | ||
13623 | fi | |
13624 | ||
13625 | done | |
13626 | ||
13627 | ||
13628 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13629 | ||
13630 | for ac_func in fnmatch | |
13631 | do | |
13632 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13633 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13634 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13635 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13637 | else | |
13638 | cat >conftest.$ac_ext <<_ACEOF | |
13639 | /* confdefs.h. */ | |
13640 | _ACEOF | |
13641 | cat confdefs.h >>conftest.$ac_ext | |
13642 | cat >>conftest.$ac_ext <<_ACEOF | |
13643 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13644 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13646 | #define $ac_func innocuous_$ac_func | |
13647 | ||
a848cd7e SC |
13648 | /* System header to define __stub macros and hopefully few prototypes, |
13649 | which can conflict with char $ac_func (); below. | |
13650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13651 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13652 | |
a848cd7e SC |
13653 | #ifdef __STDC__ |
13654 | # include <limits.h> | |
13655 | #else | |
13656 | # include <assert.h> | |
13657 | #endif | |
ac1cb8d3 VS |
13658 | |
13659 | #undef $ac_func | |
13660 | ||
a848cd7e SC |
13661 | /* Override any gcc2 internal prototype to avoid an error. */ |
13662 | #ifdef __cplusplus | |
13663 | extern "C" | |
13664 | { | |
13665 | #endif | |
13666 | /* We use char because int might match the return type of a gcc2 | |
13667 | builtin and then its argument prototype would still apply. */ | |
13668 | char $ac_func (); | |
13669 | /* The GNU C library defines this for functions which it implements | |
13670 | to always fail with ENOSYS. Some functions are actually named | |
13671 | something starting with __ and the normal name is an alias. */ | |
13672 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13673 | choke me | |
13674 | #else | |
13675 | char (*f) () = $ac_func; | |
13676 | #endif | |
13677 | #ifdef __cplusplus | |
13678 | } | |
13679 | #endif | |
13680 | ||
13681 | int | |
13682 | main () | |
13683 | { | |
13684 | return f != $ac_func; | |
13685 | ; | |
13686 | return 0; | |
13687 | } | |
13688 | _ACEOF | |
13689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13691 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13692 | ac_status=$? |
ac1cb8d3 VS |
13693 | grep -v '^ *+' conftest.er1 >conftest.err |
13694 | rm -f conftest.er1 | |
13695 | cat conftest.err >&5 | |
a848cd7e SC |
13696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13697 | (exit $ac_status); } && | |
4d4ff94c | 13698 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13700 | (eval $ac_try) 2>&5 | |
13701 | ac_status=$? | |
13702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13703 | (exit $ac_status); }; } && | |
13704 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13706 | (eval $ac_try) 2>&5 | |
13707 | ac_status=$? | |
13708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13709 | (exit $ac_status); }; }; then | |
13710 | eval "$as_ac_var=yes" | |
13711 | else | |
13712 | echo "$as_me: failed program was:" >&5 | |
13713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13714 | ||
13715 | eval "$as_ac_var=no" | |
13716 | fi | |
ac1cb8d3 VS |
13717 | rm -f conftest.err conftest.$ac_objext \ |
13718 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13719 | fi |
13720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13721 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13722 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13723 | cat >>confdefs.h <<_ACEOF | |
13724 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13725 | _ACEOF | |
13726 | ||
13727 | fi | |
13728 | done | |
13729 | ||
13730 | fi | |
13731 | ||
13732 | ||
13733 | for ac_header in langinfo.h | |
13734 | do | |
13735 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13737 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13738 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13741 | fi | |
13742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13744 | else | |
13745 | # Is the header compilable? | |
13746 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13747 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13748 | cat >conftest.$ac_ext <<_ACEOF | |
13749 | /* confdefs.h. */ | |
13750 | _ACEOF | |
13751 | cat confdefs.h >>conftest.$ac_ext | |
13752 | cat >>conftest.$ac_ext <<_ACEOF | |
13753 | /* end confdefs.h. */ | |
13754 | $ac_includes_default | |
13755 | #include <$ac_header> | |
13756 | _ACEOF | |
13757 | rm -f conftest.$ac_objext | |
13758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13759 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13760 | ac_status=$? |
ac1cb8d3 VS |
13761 | grep -v '^ *+' conftest.er1 >conftest.err |
13762 | rm -f conftest.er1 | |
13763 | cat conftest.err >&5 | |
a848cd7e SC |
13764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13765 | (exit $ac_status); } && | |
4d4ff94c | 13766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13768 | (eval $ac_try) 2>&5 | |
13769 | ac_status=$? | |
13770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13771 | (exit $ac_status); }; } && | |
13772 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13774 | (eval $ac_try) 2>&5 | |
13775 | ac_status=$? | |
13776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13777 | (exit $ac_status); }; }; then | |
13778 | ac_header_compiler=yes | |
13779 | else | |
13780 | echo "$as_me: failed program was:" >&5 | |
13781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13782 | ||
13783 | ac_header_compiler=no | |
13784 | fi | |
ac1cb8d3 | 13785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13786 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13787 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13788 | ||
13789 | # Is the header present? | |
13790 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13791 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13792 | cat >conftest.$ac_ext <<_ACEOF | |
13793 | /* confdefs.h. */ | |
13794 | _ACEOF | |
13795 | cat confdefs.h >>conftest.$ac_ext | |
13796 | cat >>conftest.$ac_ext <<_ACEOF | |
13797 | /* end confdefs.h. */ | |
13798 | #include <$ac_header> | |
13799 | _ACEOF | |
13800 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13801 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13802 | ac_status=$? | |
13803 | grep -v '^ *+' conftest.er1 >conftest.err | |
13804 | rm -f conftest.er1 | |
13805 | cat conftest.err >&5 | |
13806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13807 | (exit $ac_status); } >/dev/null; then | |
13808 | if test -s conftest.err; then | |
13809 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13810 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13811 | else |
13812 | ac_cpp_err= | |
13813 | fi | |
13814 | else | |
13815 | ac_cpp_err=yes | |
13816 | fi | |
13817 | if test -z "$ac_cpp_err"; then | |
13818 | ac_header_preproc=yes | |
13819 | else | |
13820 | echo "$as_me: failed program was:" >&5 | |
13821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13822 | ||
13823 | ac_header_preproc=no | |
13824 | fi | |
13825 | rm -f conftest.err conftest.$ac_ext | |
13826 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13827 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13828 | ||
13829 | # So? What about this header? | |
ac1cb8d3 VS |
13830 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13831 | yes:no: ) | |
a848cd7e SC |
13832 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13833 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13835 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13836 | ac_header_preproc=yes | |
a848cd7e | 13837 | ;; |
ac1cb8d3 | 13838 | no:yes:* ) |
a848cd7e SC |
13839 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13840 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13841 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13842 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13843 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13844 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13845 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13846 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13848 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13849 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13850 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13851 | ( |
13852 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13853 | ## ----------------------------------------- ## |
13854 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13855 | ## ----------------------------------------- ## | |
a848cd7e SC |
13856 | _ASBOX |
13857 | ) | | |
13858 | sed "s/^/$as_me: WARNING: /" >&2 | |
13859 | ;; | |
13860 | esac | |
13861 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13862 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13863 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13865 | else | |
ac1cb8d3 | 13866 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13867 | fi |
13868 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13869 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13870 | ||
13871 | fi | |
13872 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13873 | cat >>confdefs.h <<_ACEOF | |
13874 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13875 | _ACEOF | |
13876 | ||
13877 | fi | |
13878 | ||
13879 | done | |
13880 | ||
13881 | ||
13882 | case "${host}" in | |
13883 | *-pc-os2_emx | *-pc-os2-emx ) | |
13884 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13885 | LIBS="$LIBS -lintl" | |
13886 | fi | |
13887 | ;; | |
13888 | esac | |
13889 | ||
13890 | if test "$wxUSE_GUI" = "yes"; then | |
13891 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
13892 | ||
13893 | for ac_header in X11/Xlib.h | |
13894 | do | |
13895 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13896 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13897 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13898 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13899 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13901 | fi | |
13902 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13903 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13904 | else | |
13905 | # Is the header compilable? | |
13906 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13907 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13908 | cat >conftest.$ac_ext <<_ACEOF | |
13909 | /* confdefs.h. */ | |
13910 | _ACEOF | |
13911 | cat confdefs.h >>conftest.$ac_ext | |
13912 | cat >>conftest.$ac_ext <<_ACEOF | |
13913 | /* end confdefs.h. */ | |
13914 | $ac_includes_default | |
13915 | #include <$ac_header> | |
13916 | _ACEOF | |
13917 | rm -f conftest.$ac_objext | |
13918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13919 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13920 | ac_status=$? |
ac1cb8d3 VS |
13921 | grep -v '^ *+' conftest.er1 >conftest.err |
13922 | rm -f conftest.er1 | |
13923 | cat conftest.err >&5 | |
a848cd7e SC |
13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13925 | (exit $ac_status); } && | |
4d4ff94c | 13926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13928 | (eval $ac_try) 2>&5 | |
13929 | ac_status=$? | |
13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13931 | (exit $ac_status); }; } && | |
13932 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13934 | (eval $ac_try) 2>&5 | |
13935 | ac_status=$? | |
13936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13937 | (exit $ac_status); }; }; then | |
13938 | ac_header_compiler=yes | |
13939 | else | |
13940 | echo "$as_me: failed program was:" >&5 | |
13941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13942 | ||
13943 | ac_header_compiler=no | |
13944 | fi | |
ac1cb8d3 | 13945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13946 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13947 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13948 | ||
13949 | # Is the header present? | |
13950 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13951 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13952 | cat >conftest.$ac_ext <<_ACEOF | |
13953 | /* confdefs.h. */ | |
13954 | _ACEOF | |
13955 | cat confdefs.h >>conftest.$ac_ext | |
13956 | cat >>conftest.$ac_ext <<_ACEOF | |
13957 | /* end confdefs.h. */ | |
13958 | #include <$ac_header> | |
13959 | _ACEOF | |
13960 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13961 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13962 | ac_status=$? | |
13963 | grep -v '^ *+' conftest.er1 >conftest.err | |
13964 | rm -f conftest.er1 | |
13965 | cat conftest.err >&5 | |
13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13967 | (exit $ac_status); } >/dev/null; then | |
13968 | if test -s conftest.err; then | |
13969 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13970 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13971 | else |
13972 | ac_cpp_err= | |
13973 | fi | |
13974 | else | |
13975 | ac_cpp_err=yes | |
13976 | fi | |
13977 | if test -z "$ac_cpp_err"; then | |
13978 | ac_header_preproc=yes | |
13979 | else | |
13980 | echo "$as_me: failed program was:" >&5 | |
13981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13982 | ||
13983 | ac_header_preproc=no | |
13984 | fi | |
13985 | rm -f conftest.err conftest.$ac_ext | |
13986 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13987 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13988 | ||
13989 | # So? What about this header? | |
ac1cb8d3 VS |
13990 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13991 | yes:no: ) | |
a848cd7e SC |
13992 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13993 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13994 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13995 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13996 | ac_header_preproc=yes | |
a848cd7e | 13997 | ;; |
ac1cb8d3 | 13998 | no:yes:* ) |
a848cd7e SC |
13999 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14000 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14001 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14002 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14003 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14004 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14005 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14006 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14007 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14008 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14009 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14010 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14011 | ( |
14012 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14013 | ## ----------------------------------------- ## |
14014 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14015 | ## ----------------------------------------- ## | |
a848cd7e SC |
14016 | _ASBOX |
14017 | ) | | |
14018 | sed "s/^/$as_me: WARNING: /" >&2 | |
14019 | ;; | |
14020 | esac | |
14021 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14025 | else | |
ac1cb8d3 | 14026 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14027 | fi |
14028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14030 | ||
14031 | fi | |
14032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14033 | cat >>confdefs.h <<_ACEOF | |
14034 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14035 | _ACEOF | |
14036 | ||
14037 | fi | |
14038 | ||
14039 | done | |
14040 | ||
14041 | ||
14042 | for ac_header in X11/XKBlib.h | |
14043 | do | |
14044 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14045 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14047 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14049 | else | |
14050 | cat >conftest.$ac_ext <<_ACEOF | |
14051 | /* confdefs.h. */ | |
14052 | _ACEOF | |
14053 | cat confdefs.h >>conftest.$ac_ext | |
14054 | cat >>conftest.$ac_ext <<_ACEOF | |
14055 | /* end confdefs.h. */ | |
14056 | ||
14057 | #if HAVE_X11_XLIB_H | |
14058 | #include <X11/Xlib.h> | |
14059 | #endif | |
14060 | ||
14061 | ||
14062 | #include <$ac_header> | |
14063 | _ACEOF | |
14064 | rm -f conftest.$ac_objext | |
14065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14066 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14067 | ac_status=$? |
ac1cb8d3 VS |
14068 | grep -v '^ *+' conftest.er1 >conftest.err |
14069 | rm -f conftest.er1 | |
14070 | cat conftest.err >&5 | |
a848cd7e SC |
14071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14072 | (exit $ac_status); } && | |
4d4ff94c | 14073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14075 | (eval $ac_try) 2>&5 | |
14076 | ac_status=$? | |
14077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14078 | (exit $ac_status); }; } && | |
14079 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14081 | (eval $ac_try) 2>&5 | |
14082 | ac_status=$? | |
14083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14084 | (exit $ac_status); }; }; then | |
14085 | eval "$as_ac_Header=yes" | |
14086 | else | |
14087 | echo "$as_me: failed program was:" >&5 | |
14088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14089 | ||
14090 | eval "$as_ac_Header=no" | |
14091 | fi | |
ac1cb8d3 | 14092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14093 | fi |
14094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14097 | cat >>confdefs.h <<_ACEOF | |
14098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14099 | _ACEOF | |
14100 | ||
14101 | fi | |
14102 | ||
14103 | done | |
14104 | ||
14105 | fi | |
14106 | fi | |
14107 | ||
14108 | ||
14109 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14110 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14111 | if test "${ac_cv_c_const+set}" = set; then | |
14112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14113 | else | |
14114 | cat >conftest.$ac_ext <<_ACEOF | |
14115 | /* confdefs.h. */ | |
14116 | _ACEOF | |
14117 | cat confdefs.h >>conftest.$ac_ext | |
14118 | cat >>conftest.$ac_ext <<_ACEOF | |
14119 | /* end confdefs.h. */ | |
14120 | ||
14121 | int | |
14122 | main () | |
14123 | { | |
14124 | /* FIXME: Include the comments suggested by Paul. */ | |
14125 | #ifndef __cplusplus | |
14126 | /* Ultrix mips cc rejects this. */ | |
14127 | typedef int charset[2]; | |
14128 | const charset x; | |
14129 | /* SunOS 4.1.1 cc rejects this. */ | |
14130 | char const *const *ccp; | |
14131 | char **p; | |
14132 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14133 | struct point {int x, y;}; | |
14134 | static struct point const zero = {0,0}; | |
14135 | /* AIX XL C 1.02.0.0 rejects this. | |
14136 | It does not let you subtract one const X* pointer from another in | |
14137 | an arm of an if-expression whose if-part is not a constant | |
14138 | expression */ | |
14139 | const char *g = "string"; | |
14140 | ccp = &g + (g ? g-g : 0); | |
14141 | /* HPUX 7.0 cc rejects these. */ | |
14142 | ++ccp; | |
14143 | p = (char**) ccp; | |
14144 | ccp = (char const *const *) p; | |
14145 | { /* SCO 3.2v4 cc rejects this. */ | |
14146 | char *t; | |
14147 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14148 | ||
14149 | *t++ = 0; | |
14150 | } | |
14151 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14152 | int x[] = {25, 17}; | |
14153 | const int *foo = &x[0]; | |
14154 | ++foo; | |
14155 | } | |
14156 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14157 | typedef const int *iptr; | |
14158 | iptr p = 0; | |
14159 | ++p; | |
14160 | } | |
14161 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14162 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14163 | struct s { int j; const int *ap[3]; }; | |
14164 | struct s *b; b->j = 5; | |
14165 | } | |
14166 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14167 | const int foo = 10; | |
14168 | } | |
14169 | #endif | |
14170 | ||
14171 | ; | |
14172 | return 0; | |
14173 | } | |
14174 | _ACEOF | |
14175 | rm -f conftest.$ac_objext | |
14176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14177 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14178 | ac_status=$? |
ac1cb8d3 VS |
14179 | grep -v '^ *+' conftest.er1 >conftest.err |
14180 | rm -f conftest.er1 | |
14181 | cat conftest.err >&5 | |
a848cd7e SC |
14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14183 | (exit $ac_status); } && | |
4d4ff94c | 14184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14186 | (eval $ac_try) 2>&5 | |
14187 | ac_status=$? | |
14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14189 | (exit $ac_status); }; } && | |
14190 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14192 | (eval $ac_try) 2>&5 | |
14193 | ac_status=$? | |
14194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14195 | (exit $ac_status); }; }; then | |
14196 | ac_cv_c_const=yes | |
14197 | else | |
14198 | echo "$as_me: failed program was:" >&5 | |
14199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14200 | ||
14201 | ac_cv_c_const=no | |
14202 | fi | |
ac1cb8d3 | 14203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14204 | fi |
14205 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14206 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14207 | if test $ac_cv_c_const = no; then | |
14208 | ||
14209 | cat >>confdefs.h <<\_ACEOF | |
14210 | #define const | |
14211 | _ACEOF | |
14212 | ||
14213 | fi | |
14214 | ||
14215 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14216 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14217 | if test "${ac_cv_c_inline+set}" = set; then | |
14218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14219 | else | |
14220 | ac_cv_c_inline=no | |
14221 | for ac_kw in inline __inline__ __inline; do | |
14222 | cat >conftest.$ac_ext <<_ACEOF | |
14223 | /* confdefs.h. */ | |
14224 | _ACEOF | |
14225 | cat confdefs.h >>conftest.$ac_ext | |
14226 | cat >>conftest.$ac_ext <<_ACEOF | |
14227 | /* end confdefs.h. */ | |
14228 | #ifndef __cplusplus | |
14229 | typedef int foo_t; | |
14230 | static $ac_kw foo_t static_foo () {return 0; } | |
14231 | $ac_kw foo_t foo () {return 0; } | |
14232 | #endif | |
14233 | ||
14234 | _ACEOF | |
14235 | rm -f conftest.$ac_objext | |
14236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14237 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14238 | ac_status=$? |
ac1cb8d3 VS |
14239 | grep -v '^ *+' conftest.er1 >conftest.err |
14240 | rm -f conftest.er1 | |
14241 | cat conftest.err >&5 | |
a848cd7e SC |
14242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14243 | (exit $ac_status); } && | |
4d4ff94c | 14244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14246 | (eval $ac_try) 2>&5 | |
14247 | ac_status=$? | |
14248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14249 | (exit $ac_status); }; } && | |
14250 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14252 | (eval $ac_try) 2>&5 | |
14253 | ac_status=$? | |
14254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14255 | (exit $ac_status); }; }; then | |
14256 | ac_cv_c_inline=$ac_kw; break | |
14257 | else | |
14258 | echo "$as_me: failed program was:" >&5 | |
14259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14260 | ||
14261 | fi | |
ac1cb8d3 | 14262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14263 | done |
14264 | ||
14265 | fi | |
14266 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14267 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14268 | |
14269 | ||
a848cd7e SC |
14270 | case $ac_cv_c_inline in |
14271 | inline | yes) ;; | |
ac1cb8d3 VS |
14272 | *) |
14273 | case $ac_cv_c_inline in | |
14274 | no) ac_val=;; | |
14275 | *) ac_val=$ac_cv_c_inline;; | |
14276 | esac | |
14277 | cat >>confdefs.h <<_ACEOF | |
14278 | #ifndef __cplusplus | |
14279 | #define inline $ac_val | |
14280 | #endif | |
de59c161 | 14281 | _ACEOF |
ac1cb8d3 | 14282 | ;; |
a848cd7e SC |
14283 | esac |
14284 | ||
14285 | ||
14286 | echo "$as_me:$LINENO: checking for char" >&5 | |
14287 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14288 | if test "${ac_cv_type_char+set}" = set; then | |
14289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14290 | else | |
14291 | cat >conftest.$ac_ext <<_ACEOF | |
14292 | /* confdefs.h. */ | |
14293 | _ACEOF | |
14294 | cat confdefs.h >>conftest.$ac_ext | |
14295 | cat >>conftest.$ac_ext <<_ACEOF | |
14296 | /* end confdefs.h. */ | |
14297 | $ac_includes_default | |
14298 | int | |
14299 | main () | |
14300 | { | |
14301 | if ((char *) 0) | |
14302 | return 0; | |
14303 | if (sizeof (char)) | |
14304 | return 0; | |
14305 | ; | |
14306 | return 0; | |
14307 | } | |
14308 | _ACEOF | |
14309 | rm -f conftest.$ac_objext | |
14310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14311 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14312 | ac_status=$? |
ac1cb8d3 VS |
14313 | grep -v '^ *+' conftest.er1 >conftest.err |
14314 | rm -f conftest.er1 | |
14315 | cat conftest.err >&5 | |
a848cd7e SC |
14316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14317 | (exit $ac_status); } && | |
4d4ff94c | 14318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14320 | (eval $ac_try) 2>&5 | |
14321 | ac_status=$? | |
14322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14323 | (exit $ac_status); }; } && | |
14324 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14326 | (eval $ac_try) 2>&5 | |
14327 | ac_status=$? | |
14328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14329 | (exit $ac_status); }; }; then | |
14330 | ac_cv_type_char=yes | |
14331 | else | |
14332 | echo "$as_me: failed program was:" >&5 | |
14333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14334 | ||
14335 | ac_cv_type_char=no | |
14336 | fi | |
ac1cb8d3 | 14337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14338 | fi |
14339 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14340 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14341 | ||
14342 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14343 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14344 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14346 | else | |
14347 | if test "$ac_cv_type_char" = yes; then | |
14348 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14349 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14350 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14351 | # This bug is HP SR number 8606223364. | |
14352 | if test "$cross_compiling" = yes; then | |
14353 | # Depending upon the size, compute the lo and hi bounds. | |
14354 | cat >conftest.$ac_ext <<_ACEOF | |
14355 | /* confdefs.h. */ | |
14356 | _ACEOF | |
14357 | cat confdefs.h >>conftest.$ac_ext | |
14358 | cat >>conftest.$ac_ext <<_ACEOF | |
14359 | /* end confdefs.h. */ | |
14360 | $ac_includes_default | |
14361 | int | |
14362 | main () | |
14363 | { | |
14364 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14365 | test_array [0] = 0 | |
14366 | ||
14367 | ; | |
14368 | return 0; | |
14369 | } | |
14370 | _ACEOF | |
14371 | rm -f conftest.$ac_objext | |
14372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14373 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14374 | ac_status=$? |
ac1cb8d3 VS |
14375 | grep -v '^ *+' conftest.er1 >conftest.err |
14376 | rm -f conftest.er1 | |
14377 | cat conftest.err >&5 | |
a848cd7e SC |
14378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14379 | (exit $ac_status); } && | |
4d4ff94c | 14380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14382 | (eval $ac_try) 2>&5 | |
14383 | ac_status=$? | |
14384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14385 | (exit $ac_status); }; } && | |
14386 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14388 | (eval $ac_try) 2>&5 | |
14389 | ac_status=$? | |
14390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14391 | (exit $ac_status); }; }; then | |
14392 | ac_lo=0 ac_mid=0 | |
14393 | while :; do | |
14394 | cat >conftest.$ac_ext <<_ACEOF | |
14395 | /* confdefs.h. */ | |
14396 | _ACEOF | |
14397 | cat confdefs.h >>conftest.$ac_ext | |
14398 | cat >>conftest.$ac_ext <<_ACEOF | |
14399 | /* end confdefs.h. */ | |
14400 | $ac_includes_default | |
14401 | int | |
14402 | main () | |
14403 | { | |
14404 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14405 | test_array [0] = 0 | |
14406 | ||
14407 | ; | |
14408 | return 0; | |
14409 | } | |
14410 | _ACEOF | |
14411 | rm -f conftest.$ac_objext | |
14412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14413 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14414 | ac_status=$? |
ac1cb8d3 VS |
14415 | grep -v '^ *+' conftest.er1 >conftest.err |
14416 | rm -f conftest.er1 | |
14417 | cat conftest.err >&5 | |
a848cd7e SC |
14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14419 | (exit $ac_status); } && | |
4d4ff94c | 14420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14422 | (eval $ac_try) 2>&5 | |
14423 | ac_status=$? | |
14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14425 | (exit $ac_status); }; } && | |
14426 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14428 | (eval $ac_try) 2>&5 | |
14429 | ac_status=$? | |
14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14431 | (exit $ac_status); }; }; then | |
14432 | ac_hi=$ac_mid; break | |
14433 | else | |
14434 | echo "$as_me: failed program was:" >&5 | |
14435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14436 | ||
14437 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14438 | if test $ac_lo -le $ac_mid; then |
14439 | ac_lo= ac_hi= | |
14440 | break | |
14441 | fi | |
14442 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14443 | fi |
ac1cb8d3 | 14444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14445 | done |
14446 | else | |
14447 | echo "$as_me: failed program was:" >&5 | |
14448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14449 | ||
14450 | cat >conftest.$ac_ext <<_ACEOF | |
14451 | /* confdefs.h. */ | |
14452 | _ACEOF | |
14453 | cat confdefs.h >>conftest.$ac_ext | |
14454 | cat >>conftest.$ac_ext <<_ACEOF | |
14455 | /* end confdefs.h. */ | |
14456 | $ac_includes_default | |
14457 | int | |
14458 | main () | |
14459 | { | |
14460 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14461 | test_array [0] = 0 | |
14462 | ||
14463 | ; | |
14464 | return 0; | |
14465 | } | |
14466 | _ACEOF | |
14467 | rm -f conftest.$ac_objext | |
14468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14469 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14470 | ac_status=$? |
ac1cb8d3 VS |
14471 | grep -v '^ *+' conftest.er1 >conftest.err |
14472 | rm -f conftest.er1 | |
14473 | cat conftest.err >&5 | |
a848cd7e SC |
14474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14475 | (exit $ac_status); } && | |
4d4ff94c | 14476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14478 | (eval $ac_try) 2>&5 | |
14479 | ac_status=$? | |
14480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14481 | (exit $ac_status); }; } && | |
14482 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14484 | (eval $ac_try) 2>&5 | |
14485 | ac_status=$? | |
14486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14487 | (exit $ac_status); }; }; then | |
14488 | ac_hi=-1 ac_mid=-1 | |
14489 | while :; do | |
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))) >= $ac_mid)]; | |
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); } && | |
4d4ff94c | 14516 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14518 | (eval $ac_try) 2>&5 | |
14519 | ac_status=$? | |
14520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14521 | (exit $ac_status); }; } && | |
14522 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14524 | (eval $ac_try) 2>&5 | |
14525 | ac_status=$? | |
14526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14527 | (exit $ac_status); }; }; then | |
14528 | ac_lo=$ac_mid; break | |
14529 | else | |
14530 | echo "$as_me: failed program was:" >&5 | |
14531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14532 | ||
14533 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14534 | if test $ac_mid -le $ac_hi; then |
14535 | ac_lo= ac_hi= | |
14536 | break | |
14537 | fi | |
14538 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14539 | fi |
ac1cb8d3 | 14540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14541 | done |
14542 | else | |
14543 | echo "$as_me: failed program was:" >&5 | |
14544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14545 | ||
14546 | ac_lo= ac_hi= | |
14547 | fi | |
ac1cb8d3 | 14548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14549 | fi |
ac1cb8d3 | 14550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14551 | # Binary search between lo and hi bounds. |
14552 | while test "x$ac_lo" != "x$ac_hi"; do | |
14553 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14554 | cat >conftest.$ac_ext <<_ACEOF | |
14555 | /* confdefs.h. */ | |
14556 | _ACEOF | |
14557 | cat confdefs.h >>conftest.$ac_ext | |
14558 | cat >>conftest.$ac_ext <<_ACEOF | |
14559 | /* end confdefs.h. */ | |
14560 | $ac_includes_default | |
14561 | int | |
14562 | main () | |
14563 | { | |
14564 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14565 | test_array [0] = 0 | |
14566 | ||
14567 | ; | |
14568 | return 0; | |
14569 | } | |
14570 | _ACEOF | |
14571 | rm -f conftest.$ac_objext | |
14572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14573 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14574 | ac_status=$? |
ac1cb8d3 VS |
14575 | grep -v '^ *+' conftest.er1 >conftest.err |
14576 | rm -f conftest.er1 | |
14577 | cat conftest.err >&5 | |
a848cd7e SC |
14578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14579 | (exit $ac_status); } && | |
4d4ff94c | 14580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14582 | (eval $ac_try) 2>&5 | |
14583 | ac_status=$? | |
14584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14585 | (exit $ac_status); }; } && | |
14586 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14588 | (eval $ac_try) 2>&5 | |
14589 | ac_status=$? | |
14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14591 | (exit $ac_status); }; }; then | |
14592 | ac_hi=$ac_mid | |
14593 | else | |
14594 | echo "$as_me: failed program was:" >&5 | |
14595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14596 | ||
14597 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14598 | fi | |
ac1cb8d3 | 14599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14600 | done |
14601 | case $ac_lo in | |
14602 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14603 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14604 | See \`config.log' for more details." >&5 | |
14605 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14606 | See \`config.log' for more details." >&2;} | |
14607 | { (exit 1); exit 1; }; } ;; | |
14608 | esac | |
14609 | else | |
14610 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
14611 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14612 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
14613 | { (exit 1); exit 1; }; } |
14614 | else | |
14615 | cat >conftest.$ac_ext <<_ACEOF | |
14616 | /* confdefs.h. */ | |
14617 | _ACEOF | |
14618 | cat confdefs.h >>conftest.$ac_ext | |
14619 | cat >>conftest.$ac_ext <<_ACEOF | |
14620 | /* end confdefs.h. */ | |
14621 | $ac_includes_default | |
14622 | long longval () { return (long) (sizeof (char)); } | |
14623 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14624 | #include <stdio.h> | |
14625 | #include <stdlib.h> | |
14626 | int | |
14627 | main () | |
14628 | { | |
14629 | ||
14630 | FILE *f = fopen ("conftest.val", "w"); | |
14631 | if (! f) | |
14632 | exit (1); | |
14633 | if (((long) (sizeof (char))) < 0) | |
14634 | { | |
14635 | long i = longval (); | |
14636 | if (i != ((long) (sizeof (char)))) | |
14637 | exit (1); | |
14638 | fprintf (f, "%ld\n", i); | |
14639 | } | |
14640 | else | |
14641 | { | |
14642 | unsigned long i = ulongval (); | |
14643 | if (i != ((long) (sizeof (char)))) | |
14644 | exit (1); | |
14645 | fprintf (f, "%lu\n", i); | |
14646 | } | |
14647 | exit (ferror (f) || fclose (f) != 0); | |
14648 | ||
14649 | ; | |
14650 | return 0; | |
14651 | } | |
14652 | _ACEOF | |
14653 | rm -f conftest$ac_exeext | |
14654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14655 | (eval $ac_link) 2>&5 | |
14656 | ac_status=$? | |
14657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14658 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14660 | (eval $ac_try) 2>&5 | |
14661 | ac_status=$? | |
14662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14663 | (exit $ac_status); }; }; then | |
14664 | ac_cv_sizeof_char=`cat conftest.val` | |
14665 | else | |
14666 | echo "$as_me: program exited with status $ac_status" >&5 | |
14667 | echo "$as_me: failed program was:" >&5 | |
14668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14669 | ||
14670 | ( exit $ac_status ) | |
14671 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14672 | See \`config.log' for more details." >&5 | |
14673 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14674 | See \`config.log' for more details." >&2;} | |
14675 | { (exit 1); exit 1; }; } | |
14676 | fi | |
ac1cb8d3 | 14677 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14678 | fi |
14679 | fi | |
14680 | rm -f conftest.val | |
14681 | else | |
14682 | ac_cv_sizeof_char=0 | |
14683 | fi | |
14684 | fi | |
14685 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14686 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14687 | cat >>confdefs.h <<_ACEOF | |
14688 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14689 | _ACEOF | |
14690 | ||
14691 | ||
14692 | echo "$as_me:$LINENO: checking for short" >&5 | |
14693 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14694 | if test "${ac_cv_type_short+set}" = set; then | |
14695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14696 | else | |
14697 | cat >conftest.$ac_ext <<_ACEOF | |
14698 | /* confdefs.h. */ | |
14699 | _ACEOF | |
14700 | cat confdefs.h >>conftest.$ac_ext | |
14701 | cat >>conftest.$ac_ext <<_ACEOF | |
14702 | /* end confdefs.h. */ | |
14703 | $ac_includes_default | |
14704 | int | |
14705 | main () | |
14706 | { | |
14707 | if ((short *) 0) | |
14708 | return 0; | |
14709 | if (sizeof (short)) | |
14710 | return 0; | |
14711 | ; | |
14712 | return 0; | |
14713 | } | |
14714 | _ACEOF | |
14715 | rm -f conftest.$ac_objext | |
14716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14717 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14718 | ac_status=$? |
ac1cb8d3 VS |
14719 | grep -v '^ *+' conftest.er1 >conftest.err |
14720 | rm -f conftest.er1 | |
14721 | cat conftest.err >&5 | |
a848cd7e SC |
14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14723 | (exit $ac_status); } && | |
4d4ff94c | 14724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14726 | (eval $ac_try) 2>&5 | |
14727 | ac_status=$? | |
14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14729 | (exit $ac_status); }; } && | |
14730 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14732 | (eval $ac_try) 2>&5 | |
14733 | ac_status=$? | |
14734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14735 | (exit $ac_status); }; }; then | |
14736 | ac_cv_type_short=yes | |
14737 | else | |
14738 | echo "$as_me: failed program was:" >&5 | |
14739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14740 | ||
14741 | ac_cv_type_short=no | |
14742 | fi | |
ac1cb8d3 | 14743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14744 | fi |
14745 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14746 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14747 | ||
14748 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14749 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14750 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14752 | else | |
14753 | if test "$ac_cv_type_short" = yes; then | |
14754 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14755 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14756 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14757 | # This bug is HP SR number 8606223364. | |
14758 | if test "$cross_compiling" = yes; then | |
14759 | # Depending upon the size, compute the lo and hi bounds. | |
14760 | cat >conftest.$ac_ext <<_ACEOF | |
14761 | /* confdefs.h. */ | |
14762 | _ACEOF | |
14763 | cat confdefs.h >>conftest.$ac_ext | |
14764 | cat >>conftest.$ac_ext <<_ACEOF | |
14765 | /* end confdefs.h. */ | |
14766 | $ac_includes_default | |
14767 | int | |
14768 | main () | |
14769 | { | |
14770 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14771 | test_array [0] = 0 | |
14772 | ||
14773 | ; | |
14774 | return 0; | |
14775 | } | |
14776 | _ACEOF | |
14777 | rm -f conftest.$ac_objext | |
14778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14779 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14780 | ac_status=$? |
ac1cb8d3 VS |
14781 | grep -v '^ *+' conftest.er1 >conftest.err |
14782 | rm -f conftest.er1 | |
14783 | cat conftest.err >&5 | |
a848cd7e SC |
14784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14785 | (exit $ac_status); } && | |
4d4ff94c | 14786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14788 | (eval $ac_try) 2>&5 | |
14789 | ac_status=$? | |
14790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14791 | (exit $ac_status); }; } && | |
14792 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14794 | (eval $ac_try) 2>&5 | |
14795 | ac_status=$? | |
14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14797 | (exit $ac_status); }; }; then | |
14798 | ac_lo=0 ac_mid=0 | |
14799 | while :; do | |
14800 | cat >conftest.$ac_ext <<_ACEOF | |
14801 | /* confdefs.h. */ | |
14802 | _ACEOF | |
14803 | cat confdefs.h >>conftest.$ac_ext | |
14804 | cat >>conftest.$ac_ext <<_ACEOF | |
14805 | /* end confdefs.h. */ | |
14806 | $ac_includes_default | |
14807 | int | |
14808 | main () | |
14809 | { | |
14810 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14811 | test_array [0] = 0 | |
14812 | ||
14813 | ; | |
14814 | return 0; | |
14815 | } | |
14816 | _ACEOF | |
14817 | rm -f conftest.$ac_objext | |
14818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14819 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14820 | ac_status=$? |
ac1cb8d3 VS |
14821 | grep -v '^ *+' conftest.er1 >conftest.err |
14822 | rm -f conftest.er1 | |
14823 | cat conftest.err >&5 | |
a848cd7e SC |
14824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14825 | (exit $ac_status); } && | |
4d4ff94c | 14826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14828 | (eval $ac_try) 2>&5 | |
14829 | ac_status=$? | |
14830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14831 | (exit $ac_status); }; } && | |
14832 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14834 | (eval $ac_try) 2>&5 | |
14835 | ac_status=$? | |
14836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14837 | (exit $ac_status); }; }; then | |
14838 | ac_hi=$ac_mid; break | |
14839 | else | |
14840 | echo "$as_me: failed program was:" >&5 | |
14841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14842 | ||
14843 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14844 | if test $ac_lo -le $ac_mid; then |
14845 | ac_lo= ac_hi= | |
14846 | break | |
14847 | fi | |
14848 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14849 | fi |
ac1cb8d3 | 14850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14851 | done |
14852 | else | |
14853 | echo "$as_me: failed program was:" >&5 | |
14854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14855 | ||
14856 | cat >conftest.$ac_ext <<_ACEOF | |
14857 | /* confdefs.h. */ | |
14858 | _ACEOF | |
14859 | cat confdefs.h >>conftest.$ac_ext | |
14860 | cat >>conftest.$ac_ext <<_ACEOF | |
14861 | /* end confdefs.h. */ | |
14862 | $ac_includes_default | |
14863 | int | |
14864 | main () | |
14865 | { | |
14866 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14867 | test_array [0] = 0 | |
14868 | ||
14869 | ; | |
14870 | return 0; | |
14871 | } | |
14872 | _ACEOF | |
14873 | rm -f conftest.$ac_objext | |
14874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14876 | ac_status=$? |
ac1cb8d3 VS |
14877 | grep -v '^ *+' conftest.er1 >conftest.err |
14878 | rm -f conftest.er1 | |
14879 | cat conftest.err >&5 | |
a848cd7e SC |
14880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14881 | (exit $ac_status); } && | |
4d4ff94c | 14882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14884 | (eval $ac_try) 2>&5 | |
14885 | ac_status=$? | |
14886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14887 | (exit $ac_status); }; } && | |
14888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14890 | (eval $ac_try) 2>&5 | |
14891 | ac_status=$? | |
14892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14893 | (exit $ac_status); }; }; then | |
14894 | ac_hi=-1 ac_mid=-1 | |
14895 | while :; do | |
14896 | cat >conftest.$ac_ext <<_ACEOF | |
14897 | /* confdefs.h. */ | |
14898 | _ACEOF | |
14899 | cat confdefs.h >>conftest.$ac_ext | |
14900 | cat >>conftest.$ac_ext <<_ACEOF | |
14901 | /* end confdefs.h. */ | |
14902 | $ac_includes_default | |
14903 | int | |
14904 | main () | |
14905 | { | |
14906 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14907 | test_array [0] = 0 | |
14908 | ||
14909 | ; | |
14910 | return 0; | |
14911 | } | |
14912 | _ACEOF | |
14913 | rm -f conftest.$ac_objext | |
14914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14915 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14916 | ac_status=$? |
ac1cb8d3 VS |
14917 | grep -v '^ *+' conftest.er1 >conftest.err |
14918 | rm -f conftest.er1 | |
14919 | cat conftest.err >&5 | |
a848cd7e SC |
14920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14921 | (exit $ac_status); } && | |
4d4ff94c | 14922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14924 | (eval $ac_try) 2>&5 | |
14925 | ac_status=$? | |
14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14927 | (exit $ac_status); }; } && | |
14928 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14930 | (eval $ac_try) 2>&5 | |
14931 | ac_status=$? | |
14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14933 | (exit $ac_status); }; }; then | |
14934 | ac_lo=$ac_mid; break | |
14935 | else | |
14936 | echo "$as_me: failed program was:" >&5 | |
14937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14938 | ||
14939 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14940 | if test $ac_mid -le $ac_hi; then |
14941 | ac_lo= ac_hi= | |
14942 | break | |
14943 | fi | |
14944 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14945 | fi |
ac1cb8d3 | 14946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14947 | done |
14948 | else | |
14949 | echo "$as_me: failed program was:" >&5 | |
14950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14951 | ||
14952 | ac_lo= ac_hi= | |
14953 | fi | |
ac1cb8d3 | 14954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14955 | fi |
ac1cb8d3 | 14956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14957 | # Binary search between lo and hi bounds. |
14958 | while test "x$ac_lo" != "x$ac_hi"; do | |
14959 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14960 | cat >conftest.$ac_ext <<_ACEOF | |
14961 | /* confdefs.h. */ | |
14962 | _ACEOF | |
14963 | cat confdefs.h >>conftest.$ac_ext | |
14964 | cat >>conftest.$ac_ext <<_ACEOF | |
14965 | /* end confdefs.h. */ | |
14966 | $ac_includes_default | |
14967 | int | |
14968 | main () | |
14969 | { | |
14970 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14971 | test_array [0] = 0 | |
14972 | ||
14973 | ; | |
14974 | return 0; | |
14975 | } | |
14976 | _ACEOF | |
14977 | rm -f conftest.$ac_objext | |
14978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14979 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14980 | ac_status=$? |
ac1cb8d3 VS |
14981 | grep -v '^ *+' conftest.er1 >conftest.err |
14982 | rm -f conftest.er1 | |
14983 | cat conftest.err >&5 | |
a848cd7e SC |
14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14985 | (exit $ac_status); } && | |
4d4ff94c | 14986 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14988 | (eval $ac_try) 2>&5 | |
14989 | ac_status=$? | |
14990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14991 | (exit $ac_status); }; } && | |
14992 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14994 | (eval $ac_try) 2>&5 | |
14995 | ac_status=$? | |
14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14997 | (exit $ac_status); }; }; then | |
14998 | ac_hi=$ac_mid | |
14999 | else | |
15000 | echo "$as_me: failed program was:" >&5 | |
15001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15002 | ||
15003 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15004 | fi | |
ac1cb8d3 | 15005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15006 | done |
15007 | case $ac_lo in | |
15008 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15009 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15010 | See \`config.log' for more details." >&5 | |
15011 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15012 | See \`config.log' for more details." >&2;} | |
15013 | { (exit 1); exit 1; }; } ;; | |
15014 | esac | |
15015 | else | |
15016 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
15017 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15018 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15019 | { (exit 1); exit 1; }; } |
15020 | else | |
15021 | cat >conftest.$ac_ext <<_ACEOF | |
15022 | /* confdefs.h. */ | |
15023 | _ACEOF | |
15024 | cat confdefs.h >>conftest.$ac_ext | |
15025 | cat >>conftest.$ac_ext <<_ACEOF | |
15026 | /* end confdefs.h. */ | |
15027 | $ac_includes_default | |
15028 | long longval () { return (long) (sizeof (short)); } | |
15029 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15030 | #include <stdio.h> | |
15031 | #include <stdlib.h> | |
15032 | int | |
15033 | main () | |
15034 | { | |
15035 | ||
15036 | FILE *f = fopen ("conftest.val", "w"); | |
15037 | if (! f) | |
15038 | exit (1); | |
15039 | if (((long) (sizeof (short))) < 0) | |
15040 | { | |
15041 | long i = longval (); | |
15042 | if (i != ((long) (sizeof (short)))) | |
15043 | exit (1); | |
15044 | fprintf (f, "%ld\n", i); | |
15045 | } | |
15046 | else | |
15047 | { | |
15048 | unsigned long i = ulongval (); | |
15049 | if (i != ((long) (sizeof (short)))) | |
15050 | exit (1); | |
15051 | fprintf (f, "%lu\n", i); | |
15052 | } | |
15053 | exit (ferror (f) || fclose (f) != 0); | |
15054 | ||
15055 | ; | |
15056 | return 0; | |
15057 | } | |
15058 | _ACEOF | |
15059 | rm -f conftest$ac_exeext | |
15060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15061 | (eval $ac_link) 2>&5 | |
15062 | ac_status=$? | |
15063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15064 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15066 | (eval $ac_try) 2>&5 | |
15067 | ac_status=$? | |
15068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15069 | (exit $ac_status); }; }; then | |
15070 | ac_cv_sizeof_short=`cat conftest.val` | |
15071 | else | |
15072 | echo "$as_me: program exited with status $ac_status" >&5 | |
15073 | echo "$as_me: failed program was:" >&5 | |
15074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15075 | ||
15076 | ( exit $ac_status ) | |
15077 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15078 | See \`config.log' for more details." >&5 | |
15079 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15080 | See \`config.log' for more details." >&2;} | |
15081 | { (exit 1); exit 1; }; } | |
15082 | fi | |
ac1cb8d3 | 15083 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15084 | fi |
15085 | fi | |
15086 | rm -f conftest.val | |
15087 | else | |
15088 | ac_cv_sizeof_short=0 | |
15089 | fi | |
15090 | fi | |
15091 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15092 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15093 | cat >>confdefs.h <<_ACEOF | |
15094 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15095 | _ACEOF | |
15096 | ||
15097 | ||
15098 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15099 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15100 | if test "${ac_cv_type_void_p+set}" = set; then | |
15101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15102 | else | |
15103 | cat >conftest.$ac_ext <<_ACEOF | |
15104 | /* confdefs.h. */ | |
15105 | _ACEOF | |
15106 | cat confdefs.h >>conftest.$ac_ext | |
15107 | cat >>conftest.$ac_ext <<_ACEOF | |
15108 | /* end confdefs.h. */ | |
15109 | $ac_includes_default | |
15110 | int | |
15111 | main () | |
15112 | { | |
15113 | if ((void * *) 0) | |
15114 | return 0; | |
15115 | if (sizeof (void *)) | |
15116 | return 0; | |
15117 | ; | |
15118 | return 0; | |
15119 | } | |
15120 | _ACEOF | |
15121 | rm -f conftest.$ac_objext | |
15122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15123 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15124 | ac_status=$? |
ac1cb8d3 VS |
15125 | grep -v '^ *+' conftest.er1 >conftest.err |
15126 | rm -f conftest.er1 | |
15127 | cat conftest.err >&5 | |
a848cd7e SC |
15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15129 | (exit $ac_status); } && | |
4d4ff94c | 15130 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15132 | (eval $ac_try) 2>&5 | |
15133 | ac_status=$? | |
15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15135 | (exit $ac_status); }; } && | |
15136 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15138 | (eval $ac_try) 2>&5 | |
15139 | ac_status=$? | |
15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15141 | (exit $ac_status); }; }; then | |
15142 | ac_cv_type_void_p=yes | |
15143 | else | |
15144 | echo "$as_me: failed program was:" >&5 | |
15145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15146 | ||
15147 | ac_cv_type_void_p=no | |
15148 | fi | |
ac1cb8d3 | 15149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15150 | fi |
15151 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15152 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15153 | ||
15154 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15155 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15156 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15158 | else | |
15159 | if test "$ac_cv_type_void_p" = yes; then | |
15160 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15161 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15162 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15163 | # This bug is HP SR number 8606223364. | |
15164 | if test "$cross_compiling" = yes; then | |
15165 | # Depending upon the size, compute the lo and hi bounds. | |
15166 | cat >conftest.$ac_ext <<_ACEOF | |
15167 | /* confdefs.h. */ | |
15168 | _ACEOF | |
15169 | cat confdefs.h >>conftest.$ac_ext | |
15170 | cat >>conftest.$ac_ext <<_ACEOF | |
15171 | /* end confdefs.h. */ | |
15172 | $ac_includes_default | |
15173 | int | |
15174 | main () | |
15175 | { | |
15176 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15177 | test_array [0] = 0 | |
15178 | ||
15179 | ; | |
15180 | return 0; | |
15181 | } | |
15182 | _ACEOF | |
15183 | rm -f conftest.$ac_objext | |
15184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15186 | ac_status=$? |
ac1cb8d3 VS |
15187 | grep -v '^ *+' conftest.er1 >conftest.err |
15188 | rm -f conftest.er1 | |
15189 | cat conftest.err >&5 | |
a848cd7e SC |
15190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15191 | (exit $ac_status); } && | |
4d4ff94c | 15192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15194 | (eval $ac_try) 2>&5 | |
15195 | ac_status=$? | |
15196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15197 | (exit $ac_status); }; } && | |
15198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15200 | (eval $ac_try) 2>&5 | |
15201 | ac_status=$? | |
15202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15203 | (exit $ac_status); }; }; then | |
15204 | ac_lo=0 ac_mid=0 | |
15205 | while :; do | |
15206 | cat >conftest.$ac_ext <<_ACEOF | |
15207 | /* confdefs.h. */ | |
15208 | _ACEOF | |
15209 | cat confdefs.h >>conftest.$ac_ext | |
15210 | cat >>conftest.$ac_ext <<_ACEOF | |
15211 | /* end confdefs.h. */ | |
15212 | $ac_includes_default | |
15213 | int | |
15214 | main () | |
15215 | { | |
15216 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15217 | test_array [0] = 0 | |
15218 | ||
15219 | ; | |
15220 | return 0; | |
15221 | } | |
15222 | _ACEOF | |
15223 | rm -f conftest.$ac_objext | |
15224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15225 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15226 | ac_status=$? |
ac1cb8d3 VS |
15227 | grep -v '^ *+' conftest.er1 >conftest.err |
15228 | rm -f conftest.er1 | |
15229 | cat conftest.err >&5 | |
a848cd7e SC |
15230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15231 | (exit $ac_status); } && | |
4d4ff94c | 15232 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15234 | (eval $ac_try) 2>&5 | |
15235 | ac_status=$? | |
15236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15237 | (exit $ac_status); }; } && | |
15238 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15240 | (eval $ac_try) 2>&5 | |
15241 | ac_status=$? | |
15242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15243 | (exit $ac_status); }; }; then | |
15244 | ac_hi=$ac_mid; break | |
15245 | else | |
15246 | echo "$as_me: failed program was:" >&5 | |
15247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15248 | ||
15249 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15250 | if test $ac_lo -le $ac_mid; then |
15251 | ac_lo= ac_hi= | |
15252 | break | |
15253 | fi | |
15254 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15255 | fi |
ac1cb8d3 | 15256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15257 | done |
15258 | else | |
15259 | echo "$as_me: failed program was:" >&5 | |
15260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15261 | ||
15262 | cat >conftest.$ac_ext <<_ACEOF | |
15263 | /* confdefs.h. */ | |
15264 | _ACEOF | |
15265 | cat confdefs.h >>conftest.$ac_ext | |
15266 | cat >>conftest.$ac_ext <<_ACEOF | |
15267 | /* end confdefs.h. */ | |
15268 | $ac_includes_default | |
15269 | int | |
15270 | main () | |
15271 | { | |
15272 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15273 | test_array [0] = 0 | |
15274 | ||
15275 | ; | |
15276 | return 0; | |
15277 | } | |
15278 | _ACEOF | |
15279 | rm -f conftest.$ac_objext | |
15280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15281 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15282 | ac_status=$? |
ac1cb8d3 VS |
15283 | grep -v '^ *+' conftest.er1 >conftest.err |
15284 | rm -f conftest.er1 | |
15285 | cat conftest.err >&5 | |
a848cd7e SC |
15286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15287 | (exit $ac_status); } && | |
4d4ff94c | 15288 | { ac_try='test -z "$ac_c_werror_flag" || 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=-1 ac_mid=-1 | |
15301 | while :; do | |
15302 | cat >conftest.$ac_ext <<_ACEOF | |
15303 | /* confdefs.h. */ | |
15304 | _ACEOF | |
15305 | cat confdefs.h >>conftest.$ac_ext | |
15306 | cat >>conftest.$ac_ext <<_ACEOF | |
15307 | /* end confdefs.h. */ | |
15308 | $ac_includes_default | |
15309 | int | |
15310 | main () | |
15311 | { | |
15312 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15313 | test_array [0] = 0 | |
15314 | ||
15315 | ; | |
15316 | return 0; | |
15317 | } | |
15318 | _ACEOF | |
15319 | rm -f conftest.$ac_objext | |
15320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15321 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15322 | ac_status=$? |
ac1cb8d3 VS |
15323 | grep -v '^ *+' conftest.er1 >conftest.err |
15324 | rm -f conftest.er1 | |
15325 | cat conftest.err >&5 | |
a848cd7e SC |
15326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15327 | (exit $ac_status); } && | |
4d4ff94c | 15328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15330 | (eval $ac_try) 2>&5 | |
15331 | ac_status=$? | |
15332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15333 | (exit $ac_status); }; } && | |
15334 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15336 | (eval $ac_try) 2>&5 | |
15337 | ac_status=$? | |
15338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15339 | (exit $ac_status); }; }; then | |
15340 | ac_lo=$ac_mid; break | |
15341 | else | |
15342 | echo "$as_me: failed program was:" >&5 | |
15343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15344 | ||
15345 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15346 | if test $ac_mid -le $ac_hi; then |
15347 | ac_lo= ac_hi= | |
15348 | break | |
15349 | fi | |
15350 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15351 | fi |
ac1cb8d3 | 15352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15353 | done |
15354 | else | |
15355 | echo "$as_me: failed program was:" >&5 | |
15356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15357 | ||
15358 | ac_lo= ac_hi= | |
15359 | fi | |
ac1cb8d3 | 15360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15361 | fi |
ac1cb8d3 | 15362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15363 | # Binary search between lo and hi bounds. |
15364 | while test "x$ac_lo" != "x$ac_hi"; do | |
15365 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15366 | cat >conftest.$ac_ext <<_ACEOF | |
15367 | /* confdefs.h. */ | |
15368 | _ACEOF | |
15369 | cat confdefs.h >>conftest.$ac_ext | |
15370 | cat >>conftest.$ac_ext <<_ACEOF | |
15371 | /* end confdefs.h. */ | |
15372 | $ac_includes_default | |
15373 | int | |
15374 | main () | |
15375 | { | |
15376 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15377 | test_array [0] = 0 | |
15378 | ||
15379 | ; | |
15380 | return 0; | |
15381 | } | |
15382 | _ACEOF | |
15383 | rm -f conftest.$ac_objext | |
15384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15385 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15386 | ac_status=$? |
ac1cb8d3 VS |
15387 | grep -v '^ *+' conftest.er1 >conftest.err |
15388 | rm -f conftest.er1 | |
15389 | cat conftest.err >&5 | |
a848cd7e SC |
15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15391 | (exit $ac_status); } && | |
4d4ff94c | 15392 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
15398 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15400 | (eval $ac_try) 2>&5 | |
15401 | ac_status=$? | |
15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15403 | (exit $ac_status); }; }; then | |
15404 | ac_hi=$ac_mid | |
15405 | else | |
15406 | echo "$as_me: failed program was:" >&5 | |
15407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15408 | ||
15409 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15410 | fi | |
ac1cb8d3 | 15411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15412 | done |
15413 | case $ac_lo in | |
15414 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15415 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15416 | See \`config.log' for more details." >&5 | |
15417 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15418 | See \`config.log' for more details." >&2;} | |
15419 | { (exit 1); exit 1; }; } ;; | |
15420 | esac | |
15421 | else | |
15422 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
15423 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15424 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15425 | { (exit 1); exit 1; }; } |
15426 | else | |
15427 | cat >conftest.$ac_ext <<_ACEOF | |
15428 | /* confdefs.h. */ | |
15429 | _ACEOF | |
15430 | cat confdefs.h >>conftest.$ac_ext | |
15431 | cat >>conftest.$ac_ext <<_ACEOF | |
15432 | /* end confdefs.h. */ | |
15433 | $ac_includes_default | |
15434 | long longval () { return (long) (sizeof (void *)); } | |
15435 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15436 | #include <stdio.h> | |
15437 | #include <stdlib.h> | |
15438 | int | |
15439 | main () | |
15440 | { | |
15441 | ||
15442 | FILE *f = fopen ("conftest.val", "w"); | |
15443 | if (! f) | |
15444 | exit (1); | |
15445 | if (((long) (sizeof (void *))) < 0) | |
15446 | { | |
15447 | long i = longval (); | |
15448 | if (i != ((long) (sizeof (void *)))) | |
15449 | exit (1); | |
15450 | fprintf (f, "%ld\n", i); | |
15451 | } | |
15452 | else | |
15453 | { | |
15454 | unsigned long i = ulongval (); | |
15455 | if (i != ((long) (sizeof (void *)))) | |
15456 | exit (1); | |
15457 | fprintf (f, "%lu\n", i); | |
15458 | } | |
15459 | exit (ferror (f) || fclose (f) != 0); | |
15460 | ||
15461 | ; | |
15462 | return 0; | |
15463 | } | |
15464 | _ACEOF | |
15465 | rm -f conftest$ac_exeext | |
15466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15467 | (eval $ac_link) 2>&5 | |
15468 | ac_status=$? | |
15469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15470 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15472 | (eval $ac_try) 2>&5 | |
15473 | ac_status=$? | |
15474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15475 | (exit $ac_status); }; }; then | |
15476 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15477 | else | |
15478 | echo "$as_me: program exited with status $ac_status" >&5 | |
15479 | echo "$as_me: failed program was:" >&5 | |
15480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15481 | ||
15482 | ( exit $ac_status ) | |
15483 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15484 | See \`config.log' for more details." >&5 | |
15485 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15486 | See \`config.log' for more details." >&2;} | |
15487 | { (exit 1); exit 1; }; } | |
15488 | fi | |
ac1cb8d3 | 15489 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15490 | fi |
15491 | fi | |
15492 | rm -f conftest.val | |
15493 | else | |
15494 | ac_cv_sizeof_void_p=0 | |
15495 | fi | |
15496 | fi | |
15497 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15498 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15499 | cat >>confdefs.h <<_ACEOF | |
15500 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15501 | _ACEOF | |
15502 | ||
15503 | ||
15504 | echo "$as_me:$LINENO: checking for int" >&5 | |
15505 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15506 | if test "${ac_cv_type_int+set}" = set; then | |
15507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15508 | else | |
15509 | cat >conftest.$ac_ext <<_ACEOF | |
15510 | /* confdefs.h. */ | |
15511 | _ACEOF | |
15512 | cat confdefs.h >>conftest.$ac_ext | |
15513 | cat >>conftest.$ac_ext <<_ACEOF | |
15514 | /* end confdefs.h. */ | |
15515 | $ac_includes_default | |
15516 | int | |
15517 | main () | |
15518 | { | |
15519 | if ((int *) 0) | |
15520 | return 0; | |
15521 | if (sizeof (int)) | |
15522 | return 0; | |
15523 | ; | |
15524 | return 0; | |
15525 | } | |
15526 | _ACEOF | |
15527 | rm -f conftest.$ac_objext | |
15528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15529 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15530 | ac_status=$? |
ac1cb8d3 VS |
15531 | grep -v '^ *+' conftest.er1 >conftest.err |
15532 | rm -f conftest.er1 | |
15533 | cat conftest.err >&5 | |
a848cd7e SC |
15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15535 | (exit $ac_status); } && | |
4d4ff94c | 15536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15538 | (eval $ac_try) 2>&5 | |
15539 | ac_status=$? | |
15540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15541 | (exit $ac_status); }; } && | |
15542 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15544 | (eval $ac_try) 2>&5 | |
15545 | ac_status=$? | |
15546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15547 | (exit $ac_status); }; }; then | |
15548 | ac_cv_type_int=yes | |
15549 | else | |
15550 | echo "$as_me: failed program was:" >&5 | |
15551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15552 | ||
15553 | ac_cv_type_int=no | |
15554 | fi | |
ac1cb8d3 | 15555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15556 | fi |
15557 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15558 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15559 | ||
15560 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15561 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15562 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15564 | else | |
15565 | if test "$ac_cv_type_int" = yes; then | |
15566 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15567 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15568 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15569 | # This bug is HP SR number 8606223364. | |
15570 | if test "$cross_compiling" = yes; then | |
15571 | # Depending upon the size, compute the lo and hi bounds. | |
15572 | cat >conftest.$ac_ext <<_ACEOF | |
15573 | /* confdefs.h. */ | |
15574 | _ACEOF | |
15575 | cat confdefs.h >>conftest.$ac_ext | |
15576 | cat >>conftest.$ac_ext <<_ACEOF | |
15577 | /* end confdefs.h. */ | |
15578 | $ac_includes_default | |
15579 | int | |
15580 | main () | |
15581 | { | |
15582 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15583 | test_array [0] = 0 | |
15584 | ||
15585 | ; | |
15586 | return 0; | |
15587 | } | |
15588 | _ACEOF | |
15589 | rm -f conftest.$ac_objext | |
15590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15591 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15592 | ac_status=$? |
ac1cb8d3 VS |
15593 | grep -v '^ *+' conftest.er1 >conftest.err |
15594 | rm -f conftest.er1 | |
15595 | cat conftest.err >&5 | |
a848cd7e SC |
15596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15597 | (exit $ac_status); } && | |
4d4ff94c | 15598 | { ac_try='test -z "$ac_c_werror_flag" || 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_lo=0 ac_mid=0 | |
15611 | while :; do | |
15612 | cat >conftest.$ac_ext <<_ACEOF | |
15613 | /* confdefs.h. */ | |
15614 | _ACEOF | |
15615 | cat confdefs.h >>conftest.$ac_ext | |
15616 | cat >>conftest.$ac_ext <<_ACEOF | |
15617 | /* end confdefs.h. */ | |
15618 | $ac_includes_default | |
15619 | int | |
15620 | main () | |
15621 | { | |
15622 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15623 | test_array [0] = 0 | |
15624 | ||
15625 | ; | |
15626 | return 0; | |
15627 | } | |
15628 | _ACEOF | |
15629 | rm -f conftest.$ac_objext | |
15630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15631 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15632 | ac_status=$? |
ac1cb8d3 VS |
15633 | grep -v '^ *+' conftest.er1 >conftest.err |
15634 | rm -f conftest.er1 | |
15635 | cat conftest.err >&5 | |
a848cd7e SC |
15636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15637 | (exit $ac_status); } && | |
4d4ff94c | 15638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15640 | (eval $ac_try) 2>&5 | |
15641 | ac_status=$? | |
15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15643 | (exit $ac_status); }; } && | |
15644 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15646 | (eval $ac_try) 2>&5 | |
15647 | ac_status=$? | |
15648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15649 | (exit $ac_status); }; }; then | |
15650 | ac_hi=$ac_mid; break | |
15651 | else | |
15652 | echo "$as_me: failed program was:" >&5 | |
15653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15654 | ||
15655 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15656 | if test $ac_lo -le $ac_mid; then |
15657 | ac_lo= ac_hi= | |
15658 | break | |
15659 | fi | |
15660 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15661 | fi |
ac1cb8d3 | 15662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15663 | done |
15664 | else | |
15665 | echo "$as_me: failed program was:" >&5 | |
15666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15667 | ||
15668 | cat >conftest.$ac_ext <<_ACEOF | |
15669 | /* confdefs.h. */ | |
15670 | _ACEOF | |
15671 | cat confdefs.h >>conftest.$ac_ext | |
15672 | cat >>conftest.$ac_ext <<_ACEOF | |
15673 | /* end confdefs.h. */ | |
15674 | $ac_includes_default | |
15675 | int | |
15676 | main () | |
15677 | { | |
15678 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15679 | test_array [0] = 0 | |
15680 | ||
15681 | ; | |
15682 | return 0; | |
15683 | } | |
15684 | _ACEOF | |
15685 | rm -f conftest.$ac_objext | |
15686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15687 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15688 | ac_status=$? |
ac1cb8d3 VS |
15689 | grep -v '^ *+' conftest.er1 >conftest.err |
15690 | rm -f conftest.er1 | |
15691 | cat conftest.err >&5 | |
a848cd7e SC |
15692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15693 | (exit $ac_status); } && | |
4d4ff94c | 15694 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15696 | (eval $ac_try) 2>&5 | |
15697 | ac_status=$? | |
15698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15699 | (exit $ac_status); }; } && | |
15700 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15702 | (eval $ac_try) 2>&5 | |
15703 | ac_status=$? | |
15704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15705 | (exit $ac_status); }; }; then | |
15706 | ac_hi=-1 ac_mid=-1 | |
15707 | while :; do | |
15708 | cat >conftest.$ac_ext <<_ACEOF | |
15709 | /* confdefs.h. */ | |
15710 | _ACEOF | |
15711 | cat confdefs.h >>conftest.$ac_ext | |
15712 | cat >>conftest.$ac_ext <<_ACEOF | |
15713 | /* end confdefs.h. */ | |
15714 | $ac_includes_default | |
15715 | int | |
15716 | main () | |
15717 | { | |
15718 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15719 | test_array [0] = 0 | |
15720 | ||
15721 | ; | |
15722 | return 0; | |
15723 | } | |
15724 | _ACEOF | |
15725 | rm -f conftest.$ac_objext | |
15726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15727 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15728 | ac_status=$? |
ac1cb8d3 VS |
15729 | grep -v '^ *+' conftest.er1 >conftest.err |
15730 | rm -f conftest.er1 | |
15731 | cat conftest.err >&5 | |
a848cd7e SC |
15732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15733 | (exit $ac_status); } && | |
4d4ff94c | 15734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15736 | (eval $ac_try) 2>&5 | |
15737 | ac_status=$? | |
15738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15739 | (exit $ac_status); }; } && | |
15740 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15742 | (eval $ac_try) 2>&5 | |
15743 | ac_status=$? | |
15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15745 | (exit $ac_status); }; }; then | |
15746 | ac_lo=$ac_mid; break | |
15747 | else | |
15748 | echo "$as_me: failed program was:" >&5 | |
15749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15750 | ||
15751 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15752 | if test $ac_mid -le $ac_hi; then |
15753 | ac_lo= ac_hi= | |
15754 | break | |
15755 | fi | |
15756 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15757 | fi |
ac1cb8d3 | 15758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15759 | done |
15760 | else | |
15761 | echo "$as_me: failed program was:" >&5 | |
15762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15763 | ||
15764 | ac_lo= ac_hi= | |
15765 | fi | |
ac1cb8d3 | 15766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15767 | fi |
ac1cb8d3 | 15768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15769 | # Binary search between lo and hi bounds. |
15770 | while test "x$ac_lo" != "x$ac_hi"; do | |
15771 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15772 | cat >conftest.$ac_ext <<_ACEOF | |
15773 | /* confdefs.h. */ | |
15774 | _ACEOF | |
15775 | cat confdefs.h >>conftest.$ac_ext | |
15776 | cat >>conftest.$ac_ext <<_ACEOF | |
15777 | /* end confdefs.h. */ | |
15778 | $ac_includes_default | |
15779 | int | |
15780 | main () | |
15781 | { | |
15782 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15783 | test_array [0] = 0 | |
15784 | ||
15785 | ; | |
15786 | return 0; | |
15787 | } | |
15788 | _ACEOF | |
15789 | rm -f conftest.$ac_objext | |
15790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15791 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15792 | ac_status=$? |
ac1cb8d3 VS |
15793 | grep -v '^ *+' conftest.er1 >conftest.err |
15794 | rm -f conftest.er1 | |
15795 | cat conftest.err >&5 | |
a848cd7e SC |
15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15797 | (exit $ac_status); } && | |
4d4ff94c | 15798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15800 | (eval $ac_try) 2>&5 | |
15801 | ac_status=$? | |
15802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15803 | (exit $ac_status); }; } && | |
15804 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15806 | (eval $ac_try) 2>&5 | |
15807 | ac_status=$? | |
15808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15809 | (exit $ac_status); }; }; then | |
15810 | ac_hi=$ac_mid | |
15811 | else | |
15812 | echo "$as_me: failed program was:" >&5 | |
15813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15814 | ||
15815 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15816 | fi | |
ac1cb8d3 | 15817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15818 | done |
15819 | case $ac_lo in | |
15820 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15821 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15822 | See \`config.log' for more details." >&5 | |
15823 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15824 | See \`config.log' for more details." >&2;} | |
15825 | { (exit 1); exit 1; }; } ;; | |
15826 | esac | |
15827 | else | |
15828 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
15829 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15830 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15831 | { (exit 1); exit 1; }; } |
15832 | else | |
15833 | cat >conftest.$ac_ext <<_ACEOF | |
15834 | /* confdefs.h. */ | |
15835 | _ACEOF | |
15836 | cat confdefs.h >>conftest.$ac_ext | |
15837 | cat >>conftest.$ac_ext <<_ACEOF | |
15838 | /* end confdefs.h. */ | |
15839 | $ac_includes_default | |
15840 | long longval () { return (long) (sizeof (int)); } | |
15841 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15842 | #include <stdio.h> | |
15843 | #include <stdlib.h> | |
15844 | int | |
15845 | main () | |
15846 | { | |
15847 | ||
15848 | FILE *f = fopen ("conftest.val", "w"); | |
15849 | if (! f) | |
15850 | exit (1); | |
15851 | if (((long) (sizeof (int))) < 0) | |
15852 | { | |
15853 | long i = longval (); | |
15854 | if (i != ((long) (sizeof (int)))) | |
15855 | exit (1); | |
15856 | fprintf (f, "%ld\n", i); | |
15857 | } | |
15858 | else | |
15859 | { | |
15860 | unsigned long i = ulongval (); | |
15861 | if (i != ((long) (sizeof (int)))) | |
15862 | exit (1); | |
15863 | fprintf (f, "%lu\n", i); | |
15864 | } | |
15865 | exit (ferror (f) || fclose (f) != 0); | |
15866 | ||
15867 | ; | |
15868 | return 0; | |
15869 | } | |
15870 | _ACEOF | |
15871 | rm -f conftest$ac_exeext | |
15872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15873 | (eval $ac_link) 2>&5 | |
15874 | ac_status=$? | |
15875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15876 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15878 | (eval $ac_try) 2>&5 | |
15879 | ac_status=$? | |
15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15881 | (exit $ac_status); }; }; then | |
15882 | ac_cv_sizeof_int=`cat conftest.val` | |
15883 | else | |
15884 | echo "$as_me: program exited with status $ac_status" >&5 | |
15885 | echo "$as_me: failed program was:" >&5 | |
15886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15887 | ||
15888 | ( exit $ac_status ) | |
15889 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15890 | See \`config.log' for more details." >&5 | |
15891 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15892 | See \`config.log' for more details." >&2;} | |
15893 | { (exit 1); exit 1; }; } | |
15894 | fi | |
ac1cb8d3 | 15895 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15896 | fi |
15897 | fi | |
15898 | rm -f conftest.val | |
15899 | else | |
15900 | ac_cv_sizeof_int=0 | |
15901 | fi | |
15902 | fi | |
15903 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
15904 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15905 | cat >>confdefs.h <<_ACEOF | |
15906 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15907 | _ACEOF | |
15908 | ||
15909 | ||
15910 | echo "$as_me:$LINENO: checking for long" >&5 | |
15911 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15912 | if test "${ac_cv_type_long+set}" = set; then | |
15913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15914 | else | |
15915 | cat >conftest.$ac_ext <<_ACEOF | |
15916 | /* confdefs.h. */ | |
15917 | _ACEOF | |
15918 | cat confdefs.h >>conftest.$ac_ext | |
15919 | cat >>conftest.$ac_ext <<_ACEOF | |
15920 | /* end confdefs.h. */ | |
15921 | $ac_includes_default | |
15922 | int | |
15923 | main () | |
15924 | { | |
15925 | if ((long *) 0) | |
15926 | return 0; | |
15927 | if (sizeof (long)) | |
15928 | return 0; | |
15929 | ; | |
15930 | return 0; | |
15931 | } | |
15932 | _ACEOF | |
15933 | rm -f conftest.$ac_objext | |
15934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15935 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15936 | ac_status=$? |
ac1cb8d3 VS |
15937 | grep -v '^ *+' conftest.er1 >conftest.err |
15938 | rm -f conftest.er1 | |
15939 | cat conftest.err >&5 | |
a848cd7e SC |
15940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15941 | (exit $ac_status); } && | |
4d4ff94c | 15942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15944 | (eval $ac_try) 2>&5 | |
15945 | ac_status=$? | |
15946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15947 | (exit $ac_status); }; } && | |
15948 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15950 | (eval $ac_try) 2>&5 | |
15951 | ac_status=$? | |
15952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15953 | (exit $ac_status); }; }; then | |
15954 | ac_cv_type_long=yes | |
15955 | else | |
15956 | echo "$as_me: failed program was:" >&5 | |
15957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15958 | ||
15959 | ac_cv_type_long=no | |
15960 | fi | |
ac1cb8d3 | 15961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15962 | fi |
15963 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15964 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15965 | ||
15966 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15967 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15968 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15970 | else | |
15971 | if test "$ac_cv_type_long" = yes; then | |
15972 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15973 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15974 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15975 | # This bug is HP SR number 8606223364. | |
15976 | if test "$cross_compiling" = yes; then | |
15977 | # Depending upon the size, compute the lo and hi bounds. | |
15978 | cat >conftest.$ac_ext <<_ACEOF | |
15979 | /* confdefs.h. */ | |
15980 | _ACEOF | |
15981 | cat confdefs.h >>conftest.$ac_ext | |
15982 | cat >>conftest.$ac_ext <<_ACEOF | |
15983 | /* end confdefs.h. */ | |
15984 | $ac_includes_default | |
15985 | int | |
15986 | main () | |
15987 | { | |
15988 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15989 | test_array [0] = 0 | |
15990 | ||
15991 | ; | |
15992 | return 0; | |
15993 | } | |
15994 | _ACEOF | |
15995 | rm -f conftest.$ac_objext | |
15996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15998 | ac_status=$? |
ac1cb8d3 VS |
15999 | grep -v '^ *+' conftest.er1 >conftest.err |
16000 | rm -f conftest.er1 | |
16001 | cat conftest.err >&5 | |
a848cd7e SC |
16002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16003 | (exit $ac_status); } && | |
4d4ff94c | 16004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16006 | (eval $ac_try) 2>&5 | |
16007 | ac_status=$? | |
16008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16009 | (exit $ac_status); }; } && | |
16010 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16012 | (eval $ac_try) 2>&5 | |
16013 | ac_status=$? | |
16014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16015 | (exit $ac_status); }; }; then | |
16016 | ac_lo=0 ac_mid=0 | |
16017 | while :; do | |
16018 | cat >conftest.$ac_ext <<_ACEOF | |
16019 | /* confdefs.h. */ | |
16020 | _ACEOF | |
16021 | cat confdefs.h >>conftest.$ac_ext | |
16022 | cat >>conftest.$ac_ext <<_ACEOF | |
16023 | /* end confdefs.h. */ | |
16024 | $ac_includes_default | |
16025 | int | |
16026 | main () | |
16027 | { | |
16028 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16029 | test_array [0] = 0 | |
16030 | ||
16031 | ; | |
16032 | return 0; | |
16033 | } | |
16034 | _ACEOF | |
16035 | rm -f conftest.$ac_objext | |
16036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16037 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16038 | ac_status=$? |
ac1cb8d3 VS |
16039 | grep -v '^ *+' conftest.er1 >conftest.err |
16040 | rm -f conftest.er1 | |
16041 | cat conftest.err >&5 | |
a848cd7e SC |
16042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16043 | (exit $ac_status); } && | |
4d4ff94c | 16044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16046 | (eval $ac_try) 2>&5 | |
16047 | ac_status=$? | |
16048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16049 | (exit $ac_status); }; } && | |
16050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16052 | (eval $ac_try) 2>&5 | |
16053 | ac_status=$? | |
16054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16055 | (exit $ac_status); }; }; then | |
16056 | ac_hi=$ac_mid; break | |
16057 | else | |
16058 | echo "$as_me: failed program was:" >&5 | |
16059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16060 | ||
16061 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16062 | if test $ac_lo -le $ac_mid; then |
16063 | ac_lo= ac_hi= | |
16064 | break | |
16065 | fi | |
16066 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16067 | fi |
ac1cb8d3 | 16068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16069 | done |
16070 | else | |
16071 | echo "$as_me: failed program was:" >&5 | |
16072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16073 | ||
16074 | cat >conftest.$ac_ext <<_ACEOF | |
16075 | /* confdefs.h. */ | |
16076 | _ACEOF | |
16077 | cat confdefs.h >>conftest.$ac_ext | |
16078 | cat >>conftest.$ac_ext <<_ACEOF | |
16079 | /* end confdefs.h. */ | |
16080 | $ac_includes_default | |
16081 | int | |
16082 | main () | |
16083 | { | |
16084 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16085 | test_array [0] = 0 | |
16086 | ||
16087 | ; | |
16088 | return 0; | |
16089 | } | |
16090 | _ACEOF | |
16091 | rm -f conftest.$ac_objext | |
16092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16093 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16094 | ac_status=$? |
ac1cb8d3 VS |
16095 | grep -v '^ *+' conftest.er1 >conftest.err |
16096 | rm -f conftest.er1 | |
16097 | cat conftest.err >&5 | |
a848cd7e SC |
16098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16099 | (exit $ac_status); } && | |
4d4ff94c | 16100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16102 | (eval $ac_try) 2>&5 | |
16103 | ac_status=$? | |
16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16105 | (exit $ac_status); }; } && | |
16106 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16108 | (eval $ac_try) 2>&5 | |
16109 | ac_status=$? | |
16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16111 | (exit $ac_status); }; }; then | |
16112 | ac_hi=-1 ac_mid=-1 | |
16113 | while :; do | |
16114 | cat >conftest.$ac_ext <<_ACEOF | |
16115 | /* confdefs.h. */ | |
16116 | _ACEOF | |
16117 | cat confdefs.h >>conftest.$ac_ext | |
16118 | cat >>conftest.$ac_ext <<_ACEOF | |
16119 | /* end confdefs.h. */ | |
16120 | $ac_includes_default | |
16121 | int | |
16122 | main () | |
16123 | { | |
16124 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16125 | test_array [0] = 0 | |
16126 | ||
16127 | ; | |
16128 | return 0; | |
16129 | } | |
16130 | _ACEOF | |
16131 | rm -f conftest.$ac_objext | |
16132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16133 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16134 | ac_status=$? |
ac1cb8d3 VS |
16135 | grep -v '^ *+' conftest.er1 >conftest.err |
16136 | rm -f conftest.er1 | |
16137 | cat conftest.err >&5 | |
a848cd7e SC |
16138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16139 | (exit $ac_status); } && | |
4d4ff94c | 16140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16142 | (eval $ac_try) 2>&5 | |
16143 | ac_status=$? | |
16144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16145 | (exit $ac_status); }; } && | |
16146 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16148 | (eval $ac_try) 2>&5 | |
16149 | ac_status=$? | |
16150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16151 | (exit $ac_status); }; }; then | |
16152 | ac_lo=$ac_mid; break | |
16153 | else | |
16154 | echo "$as_me: failed program was:" >&5 | |
16155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16156 | ||
16157 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16158 | if test $ac_mid -le $ac_hi; then |
16159 | ac_lo= ac_hi= | |
16160 | break | |
16161 | fi | |
16162 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16163 | fi |
ac1cb8d3 | 16164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16165 | done |
16166 | else | |
16167 | echo "$as_me: failed program was:" >&5 | |
16168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16169 | ||
16170 | ac_lo= ac_hi= | |
16171 | fi | |
ac1cb8d3 | 16172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16173 | fi |
ac1cb8d3 | 16174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16175 | # Binary search between lo and hi bounds. |
16176 | while test "x$ac_lo" != "x$ac_hi"; do | |
16177 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16178 | cat >conftest.$ac_ext <<_ACEOF | |
16179 | /* confdefs.h. */ | |
16180 | _ACEOF | |
16181 | cat confdefs.h >>conftest.$ac_ext | |
16182 | cat >>conftest.$ac_ext <<_ACEOF | |
16183 | /* end confdefs.h. */ | |
16184 | $ac_includes_default | |
16185 | int | |
16186 | main () | |
16187 | { | |
16188 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16189 | test_array [0] = 0 | |
16190 | ||
16191 | ; | |
16192 | return 0; | |
16193 | } | |
16194 | _ACEOF | |
16195 | rm -f conftest.$ac_objext | |
16196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16197 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16198 | ac_status=$? |
ac1cb8d3 VS |
16199 | grep -v '^ *+' conftest.er1 >conftest.err |
16200 | rm -f conftest.er1 | |
16201 | cat conftest.err >&5 | |
a848cd7e SC |
16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16203 | (exit $ac_status); } && | |
4d4ff94c | 16204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16206 | (eval $ac_try) 2>&5 | |
16207 | ac_status=$? | |
16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16209 | (exit $ac_status); }; } && | |
16210 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16212 | (eval $ac_try) 2>&5 | |
16213 | ac_status=$? | |
16214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16215 | (exit $ac_status); }; }; then | |
16216 | ac_hi=$ac_mid | |
16217 | else | |
16218 | echo "$as_me: failed program was:" >&5 | |
16219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16220 | ||
16221 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16222 | fi | |
ac1cb8d3 | 16223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16224 | done |
16225 | case $ac_lo in | |
16226 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16227 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16228 | See \`config.log' for more details." >&5 | |
16229 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16230 | See \`config.log' for more details." >&2;} | |
16231 | { (exit 1); exit 1; }; } ;; | |
16232 | esac | |
16233 | else | |
16234 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
16235 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16236 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16237 | { (exit 1); exit 1; }; } |
16238 | else | |
16239 | cat >conftest.$ac_ext <<_ACEOF | |
16240 | /* confdefs.h. */ | |
16241 | _ACEOF | |
16242 | cat confdefs.h >>conftest.$ac_ext | |
16243 | cat >>conftest.$ac_ext <<_ACEOF | |
16244 | /* end confdefs.h. */ | |
16245 | $ac_includes_default | |
16246 | long longval () { return (long) (sizeof (long)); } | |
16247 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16248 | #include <stdio.h> | |
16249 | #include <stdlib.h> | |
16250 | int | |
16251 | main () | |
16252 | { | |
16253 | ||
16254 | FILE *f = fopen ("conftest.val", "w"); | |
16255 | if (! f) | |
16256 | exit (1); | |
16257 | if (((long) (sizeof (long))) < 0) | |
16258 | { | |
16259 | long i = longval (); | |
16260 | if (i != ((long) (sizeof (long)))) | |
16261 | exit (1); | |
16262 | fprintf (f, "%ld\n", i); | |
16263 | } | |
16264 | else | |
16265 | { | |
16266 | unsigned long i = ulongval (); | |
16267 | if (i != ((long) (sizeof (long)))) | |
16268 | exit (1); | |
16269 | fprintf (f, "%lu\n", i); | |
16270 | } | |
16271 | exit (ferror (f) || fclose (f) != 0); | |
16272 | ||
16273 | ; | |
16274 | return 0; | |
16275 | } | |
16276 | _ACEOF | |
16277 | rm -f conftest$ac_exeext | |
16278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16279 | (eval $ac_link) 2>&5 | |
16280 | ac_status=$? | |
16281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16282 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16284 | (eval $ac_try) 2>&5 | |
16285 | ac_status=$? | |
16286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16287 | (exit $ac_status); }; }; then | |
16288 | ac_cv_sizeof_long=`cat conftest.val` | |
16289 | else | |
16290 | echo "$as_me: program exited with status $ac_status" >&5 | |
16291 | echo "$as_me: failed program was:" >&5 | |
16292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16293 | ||
16294 | ( exit $ac_status ) | |
16295 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16296 | See \`config.log' for more details." >&5 | |
16297 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16298 | See \`config.log' for more details." >&2;} | |
16299 | { (exit 1); exit 1; }; } | |
16300 | fi | |
ac1cb8d3 | 16301 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16302 | fi |
16303 | fi | |
16304 | rm -f conftest.val | |
16305 | else | |
16306 | ac_cv_sizeof_long=0 | |
16307 | fi | |
16308 | fi | |
16309 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16310 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16311 | cat >>confdefs.h <<_ACEOF | |
16312 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16313 | _ACEOF | |
16314 | ||
16315 | ||
16316 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16317 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16318 | if test "${ac_cv_type_size_t+set}" = set; then | |
16319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16320 | else | |
16321 | cat >conftest.$ac_ext <<_ACEOF | |
16322 | /* confdefs.h. */ | |
16323 | _ACEOF | |
16324 | cat confdefs.h >>conftest.$ac_ext | |
16325 | cat >>conftest.$ac_ext <<_ACEOF | |
16326 | /* end confdefs.h. */ | |
16327 | $ac_includes_default | |
16328 | int | |
16329 | main () | |
16330 | { | |
16331 | if ((size_t *) 0) | |
16332 | return 0; | |
16333 | if (sizeof (size_t)) | |
16334 | return 0; | |
16335 | ; | |
16336 | return 0; | |
16337 | } | |
16338 | _ACEOF | |
16339 | rm -f conftest.$ac_objext | |
16340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16341 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16342 | ac_status=$? |
ac1cb8d3 VS |
16343 | grep -v '^ *+' conftest.er1 >conftest.err |
16344 | rm -f conftest.er1 | |
16345 | cat conftest.err >&5 | |
a848cd7e SC |
16346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16347 | (exit $ac_status); } && | |
4d4ff94c | 16348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16350 | (eval $ac_try) 2>&5 | |
16351 | ac_status=$? | |
16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16353 | (exit $ac_status); }; } && | |
16354 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16356 | (eval $ac_try) 2>&5 | |
16357 | ac_status=$? | |
16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16359 | (exit $ac_status); }; }; then | |
16360 | ac_cv_type_size_t=yes | |
16361 | else | |
16362 | echo "$as_me: failed program was:" >&5 | |
16363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16364 | ||
16365 | ac_cv_type_size_t=no | |
16366 | fi | |
ac1cb8d3 | 16367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16368 | fi |
16369 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16370 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16371 | ||
16372 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16373 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16374 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16376 | else | |
16377 | if test "$ac_cv_type_size_t" = yes; then | |
16378 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16379 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16380 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16381 | # This bug is HP SR number 8606223364. | |
16382 | if test "$cross_compiling" = yes; then | |
16383 | # Depending upon the size, compute the lo and hi bounds. | |
16384 | cat >conftest.$ac_ext <<_ACEOF | |
16385 | /* confdefs.h. */ | |
16386 | _ACEOF | |
16387 | cat confdefs.h >>conftest.$ac_ext | |
16388 | cat >>conftest.$ac_ext <<_ACEOF | |
16389 | /* end confdefs.h. */ | |
16390 | $ac_includes_default | |
16391 | int | |
16392 | main () | |
16393 | { | |
16394 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16395 | test_array [0] = 0 | |
16396 | ||
16397 | ; | |
16398 | return 0; | |
16399 | } | |
16400 | _ACEOF | |
16401 | rm -f conftest.$ac_objext | |
16402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16403 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16404 | ac_status=$? |
ac1cb8d3 VS |
16405 | grep -v '^ *+' conftest.er1 >conftest.err |
16406 | rm -f conftest.er1 | |
16407 | cat conftest.err >&5 | |
a848cd7e SC |
16408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16409 | (exit $ac_status); } && | |
4d4ff94c | 16410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16412 | (eval $ac_try) 2>&5 | |
16413 | ac_status=$? | |
16414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16415 | (exit $ac_status); }; } && | |
16416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16418 | (eval $ac_try) 2>&5 | |
16419 | ac_status=$? | |
16420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16421 | (exit $ac_status); }; }; then | |
16422 | ac_lo=0 ac_mid=0 | |
16423 | while :; do | |
16424 | cat >conftest.$ac_ext <<_ACEOF | |
16425 | /* confdefs.h. */ | |
16426 | _ACEOF | |
16427 | cat confdefs.h >>conftest.$ac_ext | |
16428 | cat >>conftest.$ac_ext <<_ACEOF | |
16429 | /* end confdefs.h. */ | |
16430 | $ac_includes_default | |
16431 | int | |
16432 | main () | |
16433 | { | |
16434 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16435 | test_array [0] = 0 | |
16436 | ||
16437 | ; | |
16438 | return 0; | |
16439 | } | |
16440 | _ACEOF | |
16441 | rm -f conftest.$ac_objext | |
16442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16443 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16444 | ac_status=$? |
ac1cb8d3 VS |
16445 | grep -v '^ *+' conftest.er1 >conftest.err |
16446 | rm -f conftest.er1 | |
16447 | cat conftest.err >&5 | |
a848cd7e SC |
16448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16449 | (exit $ac_status); } && | |
4d4ff94c | 16450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16452 | (eval $ac_try) 2>&5 | |
16453 | ac_status=$? | |
16454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16455 | (exit $ac_status); }; } && | |
16456 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16458 | (eval $ac_try) 2>&5 | |
16459 | ac_status=$? | |
16460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16461 | (exit $ac_status); }; }; then | |
16462 | ac_hi=$ac_mid; break | |
16463 | else | |
16464 | echo "$as_me: failed program was:" >&5 | |
16465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16466 | ||
16467 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16468 | if test $ac_lo -le $ac_mid; then |
16469 | ac_lo= ac_hi= | |
16470 | break | |
16471 | fi | |
16472 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16473 | fi |
ac1cb8d3 | 16474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16475 | done |
16476 | else | |
16477 | echo "$as_me: failed program was:" >&5 | |
16478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16479 | ||
16480 | cat >conftest.$ac_ext <<_ACEOF | |
16481 | /* confdefs.h. */ | |
16482 | _ACEOF | |
16483 | cat confdefs.h >>conftest.$ac_ext | |
16484 | cat >>conftest.$ac_ext <<_ACEOF | |
16485 | /* end confdefs.h. */ | |
16486 | $ac_includes_default | |
16487 | int | |
16488 | main () | |
16489 | { | |
16490 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16491 | test_array [0] = 0 | |
16492 | ||
16493 | ; | |
16494 | return 0; | |
16495 | } | |
16496 | _ACEOF | |
16497 | rm -f conftest.$ac_objext | |
16498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16499 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16500 | ac_status=$? |
ac1cb8d3 VS |
16501 | grep -v '^ *+' conftest.er1 >conftest.err |
16502 | rm -f conftest.er1 | |
16503 | cat conftest.err >&5 | |
a848cd7e SC |
16504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16505 | (exit $ac_status); } && | |
4d4ff94c | 16506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16508 | (eval $ac_try) 2>&5 | |
16509 | ac_status=$? | |
16510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16511 | (exit $ac_status); }; } && | |
16512 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16514 | (eval $ac_try) 2>&5 | |
16515 | ac_status=$? | |
16516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16517 | (exit $ac_status); }; }; then | |
16518 | ac_hi=-1 ac_mid=-1 | |
16519 | while :; do | |
16520 | cat >conftest.$ac_ext <<_ACEOF | |
16521 | /* confdefs.h. */ | |
16522 | _ACEOF | |
16523 | cat confdefs.h >>conftest.$ac_ext | |
16524 | cat >>conftest.$ac_ext <<_ACEOF | |
16525 | /* end confdefs.h. */ | |
16526 | $ac_includes_default | |
16527 | int | |
16528 | main () | |
16529 | { | |
16530 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16531 | test_array [0] = 0 | |
16532 | ||
16533 | ; | |
16534 | return 0; | |
16535 | } | |
16536 | _ACEOF | |
16537 | rm -f conftest.$ac_objext | |
16538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16539 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16540 | ac_status=$? |
ac1cb8d3 VS |
16541 | grep -v '^ *+' conftest.er1 >conftest.err |
16542 | rm -f conftest.er1 | |
16543 | cat conftest.err >&5 | |
a848cd7e SC |
16544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16545 | (exit $ac_status); } && | |
4d4ff94c | 16546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16548 | (eval $ac_try) 2>&5 | |
16549 | ac_status=$? | |
16550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16551 | (exit $ac_status); }; } && | |
16552 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16554 | (eval $ac_try) 2>&5 | |
16555 | ac_status=$? | |
16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16557 | (exit $ac_status); }; }; then | |
16558 | ac_lo=$ac_mid; break | |
16559 | else | |
16560 | echo "$as_me: failed program was:" >&5 | |
16561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16562 | ||
16563 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16564 | if test $ac_mid -le $ac_hi; then |
16565 | ac_lo= ac_hi= | |
16566 | break | |
16567 | fi | |
16568 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16569 | fi |
ac1cb8d3 | 16570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16571 | done |
16572 | else | |
16573 | echo "$as_me: failed program was:" >&5 | |
16574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16575 | ||
16576 | ac_lo= ac_hi= | |
16577 | fi | |
ac1cb8d3 | 16578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16579 | fi |
ac1cb8d3 | 16580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16581 | # Binary search between lo and hi bounds. |
16582 | while test "x$ac_lo" != "x$ac_hi"; do | |
16583 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16584 | cat >conftest.$ac_ext <<_ACEOF | |
16585 | /* confdefs.h. */ | |
16586 | _ACEOF | |
16587 | cat confdefs.h >>conftest.$ac_ext | |
16588 | cat >>conftest.$ac_ext <<_ACEOF | |
16589 | /* end confdefs.h. */ | |
16590 | $ac_includes_default | |
16591 | int | |
16592 | main () | |
16593 | { | |
16594 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16595 | test_array [0] = 0 | |
16596 | ||
16597 | ; | |
16598 | return 0; | |
16599 | } | |
16600 | _ACEOF | |
16601 | rm -f conftest.$ac_objext | |
16602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16603 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16604 | ac_status=$? |
ac1cb8d3 VS |
16605 | grep -v '^ *+' conftest.er1 >conftest.err |
16606 | rm -f conftest.er1 | |
16607 | cat conftest.err >&5 | |
a848cd7e SC |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16609 | (exit $ac_status); } && | |
4d4ff94c | 16610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16612 | (eval $ac_try) 2>&5 | |
16613 | ac_status=$? | |
16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16615 | (exit $ac_status); }; } && | |
16616 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16618 | (eval $ac_try) 2>&5 | |
16619 | ac_status=$? | |
16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16621 | (exit $ac_status); }; }; then | |
16622 | ac_hi=$ac_mid | |
16623 | else | |
16624 | echo "$as_me: failed program was:" >&5 | |
16625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16626 | ||
16627 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16628 | fi | |
ac1cb8d3 | 16629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16630 | done |
16631 | case $ac_lo in | |
16632 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16633 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16634 | See \`config.log' for more details." >&5 | |
16635 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16636 | See \`config.log' for more details." >&2;} | |
16637 | { (exit 1); exit 1; }; } ;; | |
16638 | esac | |
16639 | else | |
16640 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
16641 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16642 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16643 | { (exit 1); exit 1; }; } |
16644 | else | |
16645 | cat >conftest.$ac_ext <<_ACEOF | |
16646 | /* confdefs.h. */ | |
16647 | _ACEOF | |
16648 | cat confdefs.h >>conftest.$ac_ext | |
16649 | cat >>conftest.$ac_ext <<_ACEOF | |
16650 | /* end confdefs.h. */ | |
16651 | $ac_includes_default | |
16652 | long longval () { return (long) (sizeof (size_t)); } | |
16653 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16654 | #include <stdio.h> | |
16655 | #include <stdlib.h> | |
16656 | int | |
16657 | main () | |
16658 | { | |
16659 | ||
16660 | FILE *f = fopen ("conftest.val", "w"); | |
16661 | if (! f) | |
16662 | exit (1); | |
16663 | if (((long) (sizeof (size_t))) < 0) | |
16664 | { | |
16665 | long i = longval (); | |
16666 | if (i != ((long) (sizeof (size_t)))) | |
16667 | exit (1); | |
16668 | fprintf (f, "%ld\n", i); | |
16669 | } | |
16670 | else | |
16671 | { | |
16672 | unsigned long i = ulongval (); | |
16673 | if (i != ((long) (sizeof (size_t)))) | |
16674 | exit (1); | |
16675 | fprintf (f, "%lu\n", i); | |
16676 | } | |
16677 | exit (ferror (f) || fclose (f) != 0); | |
16678 | ||
16679 | ; | |
16680 | return 0; | |
16681 | } | |
16682 | _ACEOF | |
16683 | rm -f conftest$ac_exeext | |
16684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16685 | (eval $ac_link) 2>&5 | |
16686 | ac_status=$? | |
16687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16688 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16690 | (eval $ac_try) 2>&5 | |
16691 | ac_status=$? | |
16692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16693 | (exit $ac_status); }; }; then | |
16694 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16695 | else | |
16696 | echo "$as_me: program exited with status $ac_status" >&5 | |
16697 | echo "$as_me: failed program was:" >&5 | |
16698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16699 | ||
16700 | ( exit $ac_status ) | |
16701 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16702 | See \`config.log' for more details." >&5 | |
16703 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16704 | See \`config.log' for more details." >&2;} | |
16705 | { (exit 1); exit 1; }; } | |
16706 | fi | |
ac1cb8d3 | 16707 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16708 | fi |
16709 | fi | |
16710 | rm -f conftest.val | |
16711 | else | |
16712 | ac_cv_sizeof_size_t=0 | |
16713 | fi | |
16714 | fi | |
16715 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16716 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16717 | cat >>confdefs.h <<_ACEOF | |
16718 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16719 | _ACEOF | |
16720 | ||
16721 | ||
16722 | ||
16723 | case "${host}" in | |
16724 | arm-*-linux* ) | |
16725 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16726 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16727 | if test "${ac_cv_type_long_long+set}" = set; then | |
16728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
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 | int | |
16738 | main () | |
16739 | { | |
16740 | if ((long long *) 0) | |
16741 | return 0; | |
16742 | if (sizeof (long long)) | |
16743 | return 0; | |
16744 | ; | |
16745 | return 0; | |
16746 | } | |
16747 | _ACEOF | |
16748 | rm -f conftest.$ac_objext | |
16749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16750 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16751 | ac_status=$? |
ac1cb8d3 VS |
16752 | grep -v '^ *+' conftest.er1 >conftest.err |
16753 | rm -f conftest.er1 | |
16754 | cat conftest.err >&5 | |
a848cd7e SC |
16755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16756 | (exit $ac_status); } && | |
4d4ff94c | 16757 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16759 | (eval $ac_try) 2>&5 | |
16760 | ac_status=$? | |
16761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16762 | (exit $ac_status); }; } && | |
16763 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16765 | (eval $ac_try) 2>&5 | |
16766 | ac_status=$? | |
16767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16768 | (exit $ac_status); }; }; then | |
16769 | ac_cv_type_long_long=yes | |
16770 | else | |
16771 | echo "$as_me: failed program was:" >&5 | |
16772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16773 | ||
16774 | ac_cv_type_long_long=no | |
16775 | fi | |
ac1cb8d3 | 16776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16777 | fi |
16778 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16779 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16780 | ||
16781 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16782 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16783 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16785 | else | |
16786 | if test "$ac_cv_type_long_long" = yes; then | |
16787 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16788 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16789 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16790 | # This bug is HP SR number 8606223364. | |
16791 | if test "$cross_compiling" = yes; then | |
16792 | # Depending upon the size, compute the lo and hi bounds. | |
16793 | cat >conftest.$ac_ext <<_ACEOF | |
16794 | /* confdefs.h. */ | |
16795 | _ACEOF | |
16796 | cat confdefs.h >>conftest.$ac_ext | |
16797 | cat >>conftest.$ac_ext <<_ACEOF | |
16798 | /* end confdefs.h. */ | |
16799 | $ac_includes_default | |
16800 | int | |
16801 | main () | |
16802 | { | |
16803 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16804 | test_array [0] = 0 | |
16805 | ||
16806 | ; | |
16807 | return 0; | |
16808 | } | |
16809 | _ACEOF | |
16810 | rm -f conftest.$ac_objext | |
16811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16812 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16813 | ac_status=$? |
ac1cb8d3 VS |
16814 | grep -v '^ *+' conftest.er1 >conftest.err |
16815 | rm -f conftest.er1 | |
16816 | cat conftest.err >&5 | |
a848cd7e SC |
16817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16818 | (exit $ac_status); } && | |
4d4ff94c | 16819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16821 | (eval $ac_try) 2>&5 | |
16822 | ac_status=$? | |
16823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16824 | (exit $ac_status); }; } && | |
16825 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16827 | (eval $ac_try) 2>&5 | |
16828 | ac_status=$? | |
16829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16830 | (exit $ac_status); }; }; then | |
16831 | ac_lo=0 ac_mid=0 | |
16832 | while :; do | |
16833 | cat >conftest.$ac_ext <<_ACEOF | |
16834 | /* confdefs.h. */ | |
16835 | _ACEOF | |
16836 | cat confdefs.h >>conftest.$ac_ext | |
16837 | cat >>conftest.$ac_ext <<_ACEOF | |
16838 | /* end confdefs.h. */ | |
16839 | $ac_includes_default | |
16840 | int | |
16841 | main () | |
16842 | { | |
16843 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16844 | test_array [0] = 0 | |
16845 | ||
16846 | ; | |
16847 | return 0; | |
16848 | } | |
16849 | _ACEOF | |
16850 | rm -f conftest.$ac_objext | |
16851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16852 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16853 | ac_status=$? |
ac1cb8d3 VS |
16854 | grep -v '^ *+' conftest.er1 >conftest.err |
16855 | rm -f conftest.er1 | |
16856 | cat conftest.err >&5 | |
a848cd7e SC |
16857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16858 | (exit $ac_status); } && | |
4d4ff94c | 16859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16861 | (eval $ac_try) 2>&5 | |
16862 | ac_status=$? | |
16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16864 | (exit $ac_status); }; } && | |
16865 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16867 | (eval $ac_try) 2>&5 | |
16868 | ac_status=$? | |
16869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16870 | (exit $ac_status); }; }; then | |
16871 | ac_hi=$ac_mid; break | |
16872 | else | |
16873 | echo "$as_me: failed program was:" >&5 | |
16874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16875 | ||
16876 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16877 | if test $ac_lo -le $ac_mid; then |
16878 | ac_lo= ac_hi= | |
16879 | break | |
16880 | fi | |
16881 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16882 | fi |
ac1cb8d3 | 16883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16884 | done |
16885 | else | |
16886 | echo "$as_me: failed program was:" >&5 | |
16887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16888 | ||
16889 | cat >conftest.$ac_ext <<_ACEOF | |
16890 | /* confdefs.h. */ | |
16891 | _ACEOF | |
16892 | cat confdefs.h >>conftest.$ac_ext | |
16893 | cat >>conftest.$ac_ext <<_ACEOF | |
16894 | /* end confdefs.h. */ | |
16895 | $ac_includes_default | |
16896 | int | |
16897 | main () | |
16898 | { | |
16899 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16900 | test_array [0] = 0 | |
16901 | ||
16902 | ; | |
16903 | return 0; | |
16904 | } | |
16905 | _ACEOF | |
16906 | rm -f conftest.$ac_objext | |
16907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16908 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16909 | ac_status=$? |
ac1cb8d3 VS |
16910 | grep -v '^ *+' conftest.er1 >conftest.err |
16911 | rm -f conftest.er1 | |
16912 | cat conftest.err >&5 | |
a848cd7e SC |
16913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16914 | (exit $ac_status); } && | |
4d4ff94c | 16915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16917 | (eval $ac_try) 2>&5 | |
16918 | ac_status=$? | |
16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16920 | (exit $ac_status); }; } && | |
16921 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16923 | (eval $ac_try) 2>&5 | |
16924 | ac_status=$? | |
16925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16926 | (exit $ac_status); }; }; then | |
16927 | ac_hi=-1 ac_mid=-1 | |
16928 | while :; do | |
16929 | cat >conftest.$ac_ext <<_ACEOF | |
16930 | /* confdefs.h. */ | |
16931 | _ACEOF | |
16932 | cat confdefs.h >>conftest.$ac_ext | |
16933 | cat >>conftest.$ac_ext <<_ACEOF | |
16934 | /* end confdefs.h. */ | |
16935 | $ac_includes_default | |
16936 | int | |
16937 | main () | |
16938 | { | |
16939 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16940 | test_array [0] = 0 | |
16941 | ||
16942 | ; | |
16943 | return 0; | |
16944 | } | |
16945 | _ACEOF | |
16946 | rm -f conftest.$ac_objext | |
16947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16948 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16949 | ac_status=$? |
ac1cb8d3 VS |
16950 | grep -v '^ *+' conftest.er1 >conftest.err |
16951 | rm -f conftest.er1 | |
16952 | cat conftest.err >&5 | |
a848cd7e SC |
16953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16954 | (exit $ac_status); } && | |
4d4ff94c | 16955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16957 | (eval $ac_try) 2>&5 | |
16958 | ac_status=$? | |
16959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16960 | (exit $ac_status); }; } && | |
16961 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16963 | (eval $ac_try) 2>&5 | |
16964 | ac_status=$? | |
16965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16966 | (exit $ac_status); }; }; then | |
16967 | ac_lo=$ac_mid; break | |
16968 | else | |
16969 | echo "$as_me: failed program was:" >&5 | |
16970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16971 | ||
16972 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16973 | if test $ac_mid -le $ac_hi; then |
16974 | ac_lo= ac_hi= | |
16975 | break | |
16976 | fi | |
16977 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16978 | fi |
ac1cb8d3 | 16979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16980 | done |
16981 | else | |
16982 | echo "$as_me: failed program was:" >&5 | |
16983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16984 | ||
16985 | ac_lo= ac_hi= | |
16986 | fi | |
ac1cb8d3 | 16987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16988 | fi |
ac1cb8d3 | 16989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16990 | # Binary search between lo and hi bounds. |
16991 | while test "x$ac_lo" != "x$ac_hi"; do | |
16992 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16993 | cat >conftest.$ac_ext <<_ACEOF | |
16994 | /* confdefs.h. */ | |
16995 | _ACEOF | |
16996 | cat confdefs.h >>conftest.$ac_ext | |
16997 | cat >>conftest.$ac_ext <<_ACEOF | |
16998 | /* end confdefs.h. */ | |
16999 | $ac_includes_default | |
17000 | int | |
17001 | main () | |
17002 | { | |
17003 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17004 | test_array [0] = 0 | |
17005 | ||
17006 | ; | |
17007 | return 0; | |
17008 | } | |
17009 | _ACEOF | |
17010 | rm -f conftest.$ac_objext | |
17011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17012 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17013 | ac_status=$? |
ac1cb8d3 VS |
17014 | grep -v '^ *+' conftest.er1 >conftest.err |
17015 | rm -f conftest.er1 | |
17016 | cat conftest.err >&5 | |
a848cd7e SC |
17017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17018 | (exit $ac_status); } && | |
4d4ff94c | 17019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17021 | (eval $ac_try) 2>&5 | |
17022 | ac_status=$? | |
17023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17024 | (exit $ac_status); }; } && | |
17025 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17027 | (eval $ac_try) 2>&5 | |
17028 | ac_status=$? | |
17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17030 | (exit $ac_status); }; }; then | |
17031 | ac_hi=$ac_mid | |
17032 | else | |
17033 | echo "$as_me: failed program was:" >&5 | |
17034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17035 | ||
17036 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17037 | fi | |
ac1cb8d3 | 17038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17039 | done |
17040 | case $ac_lo in | |
17041 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17042 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17043 | See \`config.log' for more details." >&5 | |
17044 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17045 | See \`config.log' for more details." >&2;} | |
17046 | { (exit 1); exit 1; }; } ;; | |
17047 | esac | |
17048 | else | |
17049 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
17050 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17051 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17052 | { (exit 1); exit 1; }; } |
17053 | else | |
17054 | cat >conftest.$ac_ext <<_ACEOF | |
17055 | /* confdefs.h. */ | |
17056 | _ACEOF | |
17057 | cat confdefs.h >>conftest.$ac_ext | |
17058 | cat >>conftest.$ac_ext <<_ACEOF | |
17059 | /* end confdefs.h. */ | |
17060 | $ac_includes_default | |
17061 | long longval () { return (long) (sizeof (long long)); } | |
17062 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17063 | #include <stdio.h> | |
17064 | #include <stdlib.h> | |
17065 | int | |
17066 | main () | |
17067 | { | |
17068 | ||
17069 | FILE *f = fopen ("conftest.val", "w"); | |
17070 | if (! f) | |
17071 | exit (1); | |
17072 | if (((long) (sizeof (long long))) < 0) | |
17073 | { | |
17074 | long i = longval (); | |
17075 | if (i != ((long) (sizeof (long long)))) | |
17076 | exit (1); | |
17077 | fprintf (f, "%ld\n", i); | |
17078 | } | |
17079 | else | |
17080 | { | |
17081 | unsigned long i = ulongval (); | |
17082 | if (i != ((long) (sizeof (long long)))) | |
17083 | exit (1); | |
17084 | fprintf (f, "%lu\n", i); | |
17085 | } | |
17086 | exit (ferror (f) || fclose (f) != 0); | |
17087 | ||
17088 | ; | |
17089 | return 0; | |
17090 | } | |
17091 | _ACEOF | |
17092 | rm -f conftest$ac_exeext | |
17093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17094 | (eval $ac_link) 2>&5 | |
17095 | ac_status=$? | |
17096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17097 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17099 | (eval $ac_try) 2>&5 | |
17100 | ac_status=$? | |
17101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17102 | (exit $ac_status); }; }; then | |
17103 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17104 | else | |
17105 | echo "$as_me: program exited with status $ac_status" >&5 | |
17106 | echo "$as_me: failed program was:" >&5 | |
17107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17108 | ||
17109 | ( exit $ac_status ) | |
17110 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17111 | See \`config.log' for more details." >&5 | |
17112 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17113 | See \`config.log' for more details." >&2;} | |
17114 | { (exit 1); exit 1; }; } | |
17115 | fi | |
ac1cb8d3 | 17116 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17117 | fi |
17118 | fi | |
17119 | rm -f conftest.val | |
17120 | else | |
17121 | ac_cv_sizeof_long_long=0 | |
17122 | fi | |
17123 | fi | |
17124 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17125 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17126 | cat >>confdefs.h <<_ACEOF | |
17127 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17128 | _ACEOF | |
17129 | ||
17130 | ||
17131 | ;; | |
17132 | *-hp-hpux* ) | |
17133 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17134 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17135 | if test "${ac_cv_type_long_long+set}" = set; then | |
17136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17137 | else | |
17138 | cat >conftest.$ac_ext <<_ACEOF | |
17139 | /* confdefs.h. */ | |
17140 | _ACEOF | |
17141 | cat confdefs.h >>conftest.$ac_ext | |
17142 | cat >>conftest.$ac_ext <<_ACEOF | |
17143 | /* end confdefs.h. */ | |
17144 | $ac_includes_default | |
17145 | int | |
17146 | main () | |
17147 | { | |
17148 | if ((long long *) 0) | |
17149 | return 0; | |
17150 | if (sizeof (long long)) | |
17151 | return 0; | |
17152 | ; | |
17153 | return 0; | |
17154 | } | |
17155 | _ACEOF | |
17156 | rm -f conftest.$ac_objext | |
17157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17158 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17159 | ac_status=$? |
ac1cb8d3 VS |
17160 | grep -v '^ *+' conftest.er1 >conftest.err |
17161 | rm -f conftest.er1 | |
17162 | cat conftest.err >&5 | |
a848cd7e SC |
17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17164 | (exit $ac_status); } && | |
4d4ff94c | 17165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17167 | (eval $ac_try) 2>&5 | |
17168 | ac_status=$? | |
17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17170 | (exit $ac_status); }; } && | |
17171 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17173 | (eval $ac_try) 2>&5 | |
17174 | ac_status=$? | |
17175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17176 | (exit $ac_status); }; }; then | |
17177 | ac_cv_type_long_long=yes | |
17178 | else | |
17179 | echo "$as_me: failed program was:" >&5 | |
17180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17181 | ||
17182 | ac_cv_type_long_long=no | |
17183 | fi | |
ac1cb8d3 | 17184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17185 | fi |
17186 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17187 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17188 | ||
17189 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17190 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17191 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17193 | else | |
17194 | if test "$ac_cv_type_long_long" = yes; then | |
17195 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17196 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17197 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17198 | # This bug is HP SR number 8606223364. | |
17199 | if test "$cross_compiling" = yes; then | |
17200 | # Depending upon the size, compute the lo and hi bounds. | |
17201 | cat >conftest.$ac_ext <<_ACEOF | |
17202 | /* confdefs.h. */ | |
17203 | _ACEOF | |
17204 | cat confdefs.h >>conftest.$ac_ext | |
17205 | cat >>conftest.$ac_ext <<_ACEOF | |
17206 | /* end confdefs.h. */ | |
17207 | $ac_includes_default | |
17208 | int | |
17209 | main () | |
17210 | { | |
17211 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17212 | test_array [0] = 0 | |
17213 | ||
17214 | ; | |
17215 | return 0; | |
17216 | } | |
17217 | _ACEOF | |
17218 | rm -f conftest.$ac_objext | |
17219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17220 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17221 | ac_status=$? |
ac1cb8d3 VS |
17222 | grep -v '^ *+' conftest.er1 >conftest.err |
17223 | rm -f conftest.er1 | |
17224 | cat conftest.err >&5 | |
a848cd7e SC |
17225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17226 | (exit $ac_status); } && | |
4d4ff94c | 17227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17229 | (eval $ac_try) 2>&5 | |
17230 | ac_status=$? | |
17231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17232 | (exit $ac_status); }; } && | |
17233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17235 | (eval $ac_try) 2>&5 | |
17236 | ac_status=$? | |
17237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17238 | (exit $ac_status); }; }; then | |
17239 | ac_lo=0 ac_mid=0 | |
17240 | while :; do | |
17241 | cat >conftest.$ac_ext <<_ACEOF | |
17242 | /* confdefs.h. */ | |
17243 | _ACEOF | |
17244 | cat confdefs.h >>conftest.$ac_ext | |
17245 | cat >>conftest.$ac_ext <<_ACEOF | |
17246 | /* end confdefs.h. */ | |
17247 | $ac_includes_default | |
17248 | int | |
17249 | main () | |
17250 | { | |
17251 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17252 | test_array [0] = 0 | |
17253 | ||
17254 | ; | |
17255 | return 0; | |
17256 | } | |
17257 | _ACEOF | |
17258 | rm -f conftest.$ac_objext | |
17259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17261 | ac_status=$? |
ac1cb8d3 VS |
17262 | grep -v '^ *+' conftest.er1 >conftest.err |
17263 | rm -f conftest.er1 | |
17264 | cat conftest.err >&5 | |
a848cd7e SC |
17265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17266 | (exit $ac_status); } && | |
4d4ff94c | 17267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17269 | (eval $ac_try) 2>&5 | |
17270 | ac_status=$? | |
17271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17272 | (exit $ac_status); }; } && | |
17273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17275 | (eval $ac_try) 2>&5 | |
17276 | ac_status=$? | |
17277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17278 | (exit $ac_status); }; }; then | |
17279 | ac_hi=$ac_mid; break | |
17280 | else | |
17281 | echo "$as_me: failed program was:" >&5 | |
17282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17283 | ||
17284 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17285 | if test $ac_lo -le $ac_mid; then |
17286 | ac_lo= ac_hi= | |
17287 | break | |
17288 | fi | |
17289 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17290 | fi |
ac1cb8d3 | 17291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17292 | done |
17293 | else | |
17294 | echo "$as_me: failed program was:" >&5 | |
17295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17296 | ||
17297 | cat >conftest.$ac_ext <<_ACEOF | |
17298 | /* confdefs.h. */ | |
17299 | _ACEOF | |
17300 | cat confdefs.h >>conftest.$ac_ext | |
17301 | cat >>conftest.$ac_ext <<_ACEOF | |
17302 | /* end confdefs.h. */ | |
17303 | $ac_includes_default | |
17304 | int | |
17305 | main () | |
17306 | { | |
17307 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17308 | test_array [0] = 0 | |
17309 | ||
17310 | ; | |
17311 | return 0; | |
17312 | } | |
17313 | _ACEOF | |
17314 | rm -f conftest.$ac_objext | |
17315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17317 | ac_status=$? |
ac1cb8d3 VS |
17318 | grep -v '^ *+' conftest.er1 >conftest.err |
17319 | rm -f conftest.er1 | |
17320 | cat conftest.err >&5 | |
a848cd7e SC |
17321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17322 | (exit $ac_status); } && | |
4d4ff94c | 17323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17325 | (eval $ac_try) 2>&5 | |
17326 | ac_status=$? | |
17327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17328 | (exit $ac_status); }; } && | |
17329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17331 | (eval $ac_try) 2>&5 | |
17332 | ac_status=$? | |
17333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17334 | (exit $ac_status); }; }; then | |
17335 | ac_hi=-1 ac_mid=-1 | |
17336 | while :; do | |
17337 | cat >conftest.$ac_ext <<_ACEOF | |
17338 | /* confdefs.h. */ | |
17339 | _ACEOF | |
17340 | cat confdefs.h >>conftest.$ac_ext | |
17341 | cat >>conftest.$ac_ext <<_ACEOF | |
17342 | /* end confdefs.h. */ | |
17343 | $ac_includes_default | |
17344 | int | |
17345 | main () | |
17346 | { | |
17347 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17348 | test_array [0] = 0 | |
17349 | ||
17350 | ; | |
17351 | return 0; | |
17352 | } | |
17353 | _ACEOF | |
17354 | rm -f conftest.$ac_objext | |
17355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17356 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17357 | ac_status=$? |
ac1cb8d3 VS |
17358 | grep -v '^ *+' conftest.er1 >conftest.err |
17359 | rm -f conftest.er1 | |
17360 | cat conftest.err >&5 | |
a848cd7e SC |
17361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17362 | (exit $ac_status); } && | |
4d4ff94c | 17363 | { ac_try='test -z "$ac_c_werror_flag" || 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_lo=$ac_mid; break | |
17376 | else | |
17377 | echo "$as_me: failed program was:" >&5 | |
17378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17379 | ||
17380 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17381 | if test $ac_mid -le $ac_hi; then |
17382 | ac_lo= ac_hi= | |
17383 | break | |
17384 | fi | |
17385 | ac_mid=`expr 2 '*' $ac_mid` | |
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 | ac_lo= ac_hi= | |
17394 | fi | |
ac1cb8d3 | 17395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17396 | fi |
ac1cb8d3 | 17397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17398 | # Binary search between lo and hi bounds. |
17399 | while test "x$ac_lo" != "x$ac_hi"; do | |
17400 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17401 | cat >conftest.$ac_ext <<_ACEOF | |
17402 | /* confdefs.h. */ | |
17403 | _ACEOF | |
17404 | cat confdefs.h >>conftest.$ac_ext | |
17405 | cat >>conftest.$ac_ext <<_ACEOF | |
17406 | /* end confdefs.h. */ | |
17407 | $ac_includes_default | |
17408 | int | |
17409 | main () | |
17410 | { | |
17411 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17412 | test_array [0] = 0 | |
17413 | ||
17414 | ; | |
17415 | return 0; | |
17416 | } | |
17417 | _ACEOF | |
17418 | rm -f conftest.$ac_objext | |
17419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17421 | ac_status=$? |
ac1cb8d3 VS |
17422 | grep -v '^ *+' conftest.er1 >conftest.err |
17423 | rm -f conftest.er1 | |
17424 | cat conftest.err >&5 | |
a848cd7e SC |
17425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17426 | (exit $ac_status); } && | |
4d4ff94c | 17427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17429 | (eval $ac_try) 2>&5 | |
17430 | ac_status=$? | |
17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17432 | (exit $ac_status); }; } && | |
17433 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17435 | (eval $ac_try) 2>&5 | |
17436 | ac_status=$? | |
17437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17438 | (exit $ac_status); }; }; then | |
17439 | ac_hi=$ac_mid | |
17440 | else | |
17441 | echo "$as_me: failed program was:" >&5 | |
17442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17443 | ||
17444 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17445 | fi | |
ac1cb8d3 | 17446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17447 | done |
17448 | case $ac_lo in | |
17449 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17450 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17451 | See \`config.log' for more details." >&5 | |
17452 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17453 | See \`config.log' for more details." >&2;} | |
17454 | { (exit 1); exit 1; }; } ;; | |
17455 | esac | |
17456 | else | |
17457 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
17458 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17459 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17460 | { (exit 1); exit 1; }; } |
17461 | else | |
17462 | cat >conftest.$ac_ext <<_ACEOF | |
17463 | /* confdefs.h. */ | |
17464 | _ACEOF | |
17465 | cat confdefs.h >>conftest.$ac_ext | |
17466 | cat >>conftest.$ac_ext <<_ACEOF | |
17467 | /* end confdefs.h. */ | |
17468 | $ac_includes_default | |
17469 | long longval () { return (long) (sizeof (long long)); } | |
17470 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17471 | #include <stdio.h> | |
17472 | #include <stdlib.h> | |
17473 | int | |
17474 | main () | |
17475 | { | |
17476 | ||
17477 | FILE *f = fopen ("conftest.val", "w"); | |
17478 | if (! f) | |
17479 | exit (1); | |
17480 | if (((long) (sizeof (long long))) < 0) | |
17481 | { | |
17482 | long i = longval (); | |
17483 | if (i != ((long) (sizeof (long long)))) | |
17484 | exit (1); | |
17485 | fprintf (f, "%ld\n", i); | |
17486 | } | |
17487 | else | |
17488 | { | |
17489 | unsigned long i = ulongval (); | |
17490 | if (i != ((long) (sizeof (long long)))) | |
17491 | exit (1); | |
17492 | fprintf (f, "%lu\n", i); | |
17493 | } | |
17494 | exit (ferror (f) || fclose (f) != 0); | |
17495 | ||
17496 | ; | |
17497 | return 0; | |
17498 | } | |
17499 | _ACEOF | |
17500 | rm -f conftest$ac_exeext | |
17501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17502 | (eval $ac_link) 2>&5 | |
17503 | ac_status=$? | |
17504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17505 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17507 | (eval $ac_try) 2>&5 | |
17508 | ac_status=$? | |
17509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17510 | (exit $ac_status); }; }; then | |
17511 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17512 | else | |
17513 | echo "$as_me: program exited with status $ac_status" >&5 | |
17514 | echo "$as_me: failed program was:" >&5 | |
17515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17516 | ||
17517 | ( exit $ac_status ) | |
17518 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17519 | See \`config.log' for more details." >&5 | |
17520 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17521 | See \`config.log' for more details." >&2;} | |
17522 | { (exit 1); exit 1; }; } | |
17523 | fi | |
ac1cb8d3 | 17524 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17525 | fi |
17526 | fi | |
17527 | rm -f conftest.val | |
17528 | else | |
17529 | ac_cv_sizeof_long_long=0 | |
17530 | fi | |
17531 | fi | |
17532 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17533 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17534 | cat >>confdefs.h <<_ACEOF | |
17535 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17536 | _ACEOF | |
17537 | ||
17538 | ||
17539 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17540 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17541 | fi | |
17542 | ;; | |
17543 | * ) | |
17544 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17545 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17546 | if test "${ac_cv_type_long_long+set}" = set; then | |
17547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17548 | else | |
17549 | cat >conftest.$ac_ext <<_ACEOF | |
17550 | /* confdefs.h. */ | |
17551 | _ACEOF | |
17552 | cat confdefs.h >>conftest.$ac_ext | |
17553 | cat >>conftest.$ac_ext <<_ACEOF | |
17554 | /* end confdefs.h. */ | |
17555 | $ac_includes_default | |
17556 | int | |
17557 | main () | |
17558 | { | |
17559 | if ((long long *) 0) | |
17560 | return 0; | |
17561 | if (sizeof (long long)) | |
17562 | return 0; | |
17563 | ; | |
17564 | return 0; | |
17565 | } | |
17566 | _ACEOF | |
17567 | rm -f conftest.$ac_objext | |
17568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17569 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17570 | ac_status=$? |
ac1cb8d3 VS |
17571 | grep -v '^ *+' conftest.er1 >conftest.err |
17572 | rm -f conftest.er1 | |
17573 | cat conftest.err >&5 | |
a848cd7e SC |
17574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17575 | (exit $ac_status); } && | |
4d4ff94c | 17576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17578 | (eval $ac_try) 2>&5 | |
17579 | ac_status=$? | |
17580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17581 | (exit $ac_status); }; } && | |
17582 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17584 | (eval $ac_try) 2>&5 | |
17585 | ac_status=$? | |
17586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17587 | (exit $ac_status); }; }; then | |
17588 | ac_cv_type_long_long=yes | |
17589 | else | |
17590 | echo "$as_me: failed program was:" >&5 | |
17591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17592 | ||
17593 | ac_cv_type_long_long=no | |
17594 | fi | |
ac1cb8d3 | 17595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17596 | fi |
17597 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17598 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17599 | ||
17600 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17601 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17602 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17604 | else | |
17605 | if test "$ac_cv_type_long_long" = yes; then | |
17606 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17607 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17608 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17609 | # This bug is HP SR number 8606223364. | |
17610 | if test "$cross_compiling" = yes; then | |
17611 | # Depending upon the size, compute the lo and hi bounds. | |
17612 | cat >conftest.$ac_ext <<_ACEOF | |
17613 | /* confdefs.h. */ | |
17614 | _ACEOF | |
17615 | cat confdefs.h >>conftest.$ac_ext | |
17616 | cat >>conftest.$ac_ext <<_ACEOF | |
17617 | /* end confdefs.h. */ | |
17618 | $ac_includes_default | |
17619 | int | |
17620 | main () | |
17621 | { | |
17622 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17623 | test_array [0] = 0 | |
17624 | ||
17625 | ; | |
17626 | return 0; | |
17627 | } | |
17628 | _ACEOF | |
17629 | rm -f conftest.$ac_objext | |
17630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17631 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17632 | ac_status=$? |
ac1cb8d3 VS |
17633 | grep -v '^ *+' conftest.er1 >conftest.err |
17634 | rm -f conftest.er1 | |
17635 | cat conftest.err >&5 | |
a848cd7e SC |
17636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17637 | (exit $ac_status); } && | |
4d4ff94c | 17638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17640 | (eval $ac_try) 2>&5 | |
17641 | ac_status=$? | |
17642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17643 | (exit $ac_status); }; } && | |
17644 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17646 | (eval $ac_try) 2>&5 | |
17647 | ac_status=$? | |
17648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17649 | (exit $ac_status); }; }; then | |
17650 | ac_lo=0 ac_mid=0 | |
17651 | while :; do | |
17652 | cat >conftest.$ac_ext <<_ACEOF | |
17653 | /* confdefs.h. */ | |
17654 | _ACEOF | |
17655 | cat confdefs.h >>conftest.$ac_ext | |
17656 | cat >>conftest.$ac_ext <<_ACEOF | |
17657 | /* end confdefs.h. */ | |
17658 | $ac_includes_default | |
17659 | int | |
17660 | main () | |
17661 | { | |
17662 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17663 | test_array [0] = 0 | |
17664 | ||
17665 | ; | |
17666 | return 0; | |
17667 | } | |
17668 | _ACEOF | |
17669 | rm -f conftest.$ac_objext | |
17670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17671 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17672 | ac_status=$? |
ac1cb8d3 VS |
17673 | grep -v '^ *+' conftest.er1 >conftest.err |
17674 | rm -f conftest.er1 | |
17675 | cat conftest.err >&5 | |
a848cd7e SC |
17676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17677 | (exit $ac_status); } && | |
4d4ff94c | 17678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17680 | (eval $ac_try) 2>&5 | |
17681 | ac_status=$? | |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17683 | (exit $ac_status); }; } && | |
17684 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17686 | (eval $ac_try) 2>&5 | |
17687 | ac_status=$? | |
17688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17689 | (exit $ac_status); }; }; then | |
17690 | ac_hi=$ac_mid; break | |
17691 | else | |
17692 | echo "$as_me: failed program was:" >&5 | |
17693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17694 | ||
17695 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17696 | if test $ac_lo -le $ac_mid; then |
17697 | ac_lo= ac_hi= | |
17698 | break | |
17699 | fi | |
17700 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17701 | fi |
ac1cb8d3 | 17702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17703 | done |
17704 | else | |
17705 | echo "$as_me: failed program was:" >&5 | |
17706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17707 | ||
17708 | cat >conftest.$ac_ext <<_ACEOF | |
17709 | /* confdefs.h. */ | |
17710 | _ACEOF | |
17711 | cat confdefs.h >>conftest.$ac_ext | |
17712 | cat >>conftest.$ac_ext <<_ACEOF | |
17713 | /* end confdefs.h. */ | |
17714 | $ac_includes_default | |
17715 | int | |
17716 | main () | |
17717 | { | |
17718 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17719 | test_array [0] = 0 | |
17720 | ||
17721 | ; | |
17722 | return 0; | |
17723 | } | |
17724 | _ACEOF | |
17725 | rm -f conftest.$ac_objext | |
17726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17727 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17728 | ac_status=$? |
ac1cb8d3 VS |
17729 | grep -v '^ *+' conftest.er1 >conftest.err |
17730 | rm -f conftest.er1 | |
17731 | cat conftest.err >&5 | |
a848cd7e SC |
17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17733 | (exit $ac_status); } && | |
4d4ff94c | 17734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17736 | (eval $ac_try) 2>&5 | |
17737 | ac_status=$? | |
17738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17739 | (exit $ac_status); }; } && | |
17740 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17742 | (eval $ac_try) 2>&5 | |
17743 | ac_status=$? | |
17744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17745 | (exit $ac_status); }; }; then | |
17746 | ac_hi=-1 ac_mid=-1 | |
17747 | while :; do | |
17748 | cat >conftest.$ac_ext <<_ACEOF | |
17749 | /* confdefs.h. */ | |
17750 | _ACEOF | |
17751 | cat confdefs.h >>conftest.$ac_ext | |
17752 | cat >>conftest.$ac_ext <<_ACEOF | |
17753 | /* end confdefs.h. */ | |
17754 | $ac_includes_default | |
17755 | int | |
17756 | main () | |
17757 | { | |
17758 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17759 | test_array [0] = 0 | |
17760 | ||
17761 | ; | |
17762 | return 0; | |
17763 | } | |
17764 | _ACEOF | |
17765 | rm -f conftest.$ac_objext | |
17766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17767 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17768 | ac_status=$? |
ac1cb8d3 VS |
17769 | grep -v '^ *+' conftest.er1 >conftest.err |
17770 | rm -f conftest.er1 | |
17771 | cat conftest.err >&5 | |
a848cd7e SC |
17772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17773 | (exit $ac_status); } && | |
4d4ff94c | 17774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17776 | (eval $ac_try) 2>&5 | |
17777 | ac_status=$? | |
17778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17779 | (exit $ac_status); }; } && | |
17780 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17782 | (eval $ac_try) 2>&5 | |
17783 | ac_status=$? | |
17784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17785 | (exit $ac_status); }; }; then | |
17786 | ac_lo=$ac_mid; break | |
17787 | else | |
17788 | echo "$as_me: failed program was:" >&5 | |
17789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17790 | ||
17791 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17792 | if test $ac_mid -le $ac_hi; then |
17793 | ac_lo= ac_hi= | |
17794 | break | |
17795 | fi | |
17796 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17797 | fi |
ac1cb8d3 | 17798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17799 | done |
17800 | else | |
17801 | echo "$as_me: failed program was:" >&5 | |
17802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17803 | ||
17804 | ac_lo= ac_hi= | |
17805 | fi | |
ac1cb8d3 | 17806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17807 | fi |
ac1cb8d3 | 17808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17809 | # Binary search between lo and hi bounds. |
17810 | while test "x$ac_lo" != "x$ac_hi"; do | |
17811 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
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))) <= $ac_mid)]; | |
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); } && | |
4d4ff94c | 17838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17840 | (eval $ac_try) 2>&5 | |
17841 | ac_status=$? | |
17842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17843 | (exit $ac_status); }; } && | |
17844 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17846 | (eval $ac_try) 2>&5 | |
17847 | ac_status=$? | |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); }; }; then | |
17850 | ac_hi=$ac_mid | |
17851 | else | |
17852 | echo "$as_me: failed program was:" >&5 | |
17853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17854 | ||
17855 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17856 | fi | |
ac1cb8d3 | 17857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17858 | done |
17859 | case $ac_lo in | |
17860 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17861 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17862 | See \`config.log' for more details." >&5 | |
17863 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17864 | See \`config.log' for more details." >&2;} | |
17865 | { (exit 1); exit 1; }; } ;; | |
17866 | esac | |
17867 | else | |
17868 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
17869 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17870 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17871 | { (exit 1); exit 1; }; } |
17872 | else | |
17873 | cat >conftest.$ac_ext <<_ACEOF | |
17874 | /* confdefs.h. */ | |
17875 | _ACEOF | |
17876 | cat confdefs.h >>conftest.$ac_ext | |
17877 | cat >>conftest.$ac_ext <<_ACEOF | |
17878 | /* end confdefs.h. */ | |
17879 | $ac_includes_default | |
17880 | long longval () { return (long) (sizeof (long long)); } | |
17881 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17882 | #include <stdio.h> | |
17883 | #include <stdlib.h> | |
17884 | int | |
17885 | main () | |
17886 | { | |
17887 | ||
17888 | FILE *f = fopen ("conftest.val", "w"); | |
17889 | if (! f) | |
17890 | exit (1); | |
17891 | if (((long) (sizeof (long long))) < 0) | |
17892 | { | |
17893 | long i = longval (); | |
17894 | if (i != ((long) (sizeof (long long)))) | |
17895 | exit (1); | |
17896 | fprintf (f, "%ld\n", i); | |
17897 | } | |
17898 | else | |
17899 | { | |
17900 | unsigned long i = ulongval (); | |
17901 | if (i != ((long) (sizeof (long long)))) | |
17902 | exit (1); | |
17903 | fprintf (f, "%lu\n", i); | |
17904 | } | |
17905 | exit (ferror (f) || fclose (f) != 0); | |
17906 | ||
17907 | ; | |
17908 | return 0; | |
17909 | } | |
17910 | _ACEOF | |
17911 | rm -f conftest$ac_exeext | |
17912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17913 | (eval $ac_link) 2>&5 | |
17914 | ac_status=$? | |
17915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17916 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17918 | (eval $ac_try) 2>&5 | |
17919 | ac_status=$? | |
17920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17921 | (exit $ac_status); }; }; then | |
17922 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17923 | else | |
17924 | echo "$as_me: program exited with status $ac_status" >&5 | |
17925 | echo "$as_me: failed program was:" >&5 | |
17926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17927 | ||
17928 | ( exit $ac_status ) | |
17929 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17930 | See \`config.log' for more details." >&5 | |
17931 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17932 | See \`config.log' for more details." >&2;} | |
17933 | { (exit 1); exit 1; }; } | |
17934 | fi | |
ac1cb8d3 | 17935 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17936 | fi |
17937 | fi | |
17938 | rm -f conftest.val | |
17939 | else | |
17940 | ac_cv_sizeof_long_long=0 | |
17941 | fi | |
17942 | fi | |
17943 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17944 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17945 | cat >>confdefs.h <<_ACEOF | |
17946 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17947 | _ACEOF | |
17948 | ||
17949 | ||
17950 | esac | |
17951 | ||
17952 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
17953 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
17954 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
17955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17956 | else | |
17957 | ||
17958 | if test "$cross_compiling" = yes; then | |
17959 | ||
17960 | case "${host}" in | |
17961 | *-pc-msdosdjgpp ) | |
17962 | wx_cv_sizeof_wchar_t=0 | |
17963 | ;; | |
17964 | * ) | |
17965 | wx_cv_sizeof_wchar_t=4 | |
17966 | ;; | |
17967 | esac | |
17968 | ||
17969 | ||
17970 | else | |
17971 | cat >conftest.$ac_ext <<_ACEOF | |
17972 | /* confdefs.h. */ | |
17973 | _ACEOF | |
17974 | cat confdefs.h >>conftest.$ac_ext | |
17975 | cat >>conftest.$ac_ext <<_ACEOF | |
17976 | /* end confdefs.h. */ | |
17977 | ||
17978 | /* DJGPP only has fake wchar_t: */ | |
17979 | #ifdef __DJGPP__ | |
17980 | # error "fake wchar_t" | |
17981 | #endif | |
17982 | #ifdef HAVE_WCHAR_H | |
17983 | # ifdef __CYGWIN__ | |
17984 | # include <stddef.h> | |
17985 | # endif | |
17986 | # include <wchar.h> | |
17987 | #endif | |
17988 | #ifdef HAVE_STDLIB_H | |
17989 | # include <stdlib.h> | |
17990 | #endif | |
17991 | #include <stdio.h> | |
17992 | int main() | |
17993 | { | |
17994 | FILE *f=fopen("conftestval", "w"); | |
17995 | if (!f) exit(1); | |
17996 | fprintf(f, "%i", sizeof(wchar_t)); | |
17997 | exit(0); | |
17998 | } | |
17999 | ||
18000 | _ACEOF | |
18001 | rm -f conftest$ac_exeext | |
18002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18003 | (eval $ac_link) 2>&5 | |
18004 | ac_status=$? | |
18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18006 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18008 | (eval $ac_try) 2>&5 | |
18009 | ac_status=$? | |
18010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18011 | (exit $ac_status); }; }; then | |
18012 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18013 | else | |
18014 | echo "$as_me: program exited with status $ac_status" >&5 | |
18015 | echo "$as_me: failed program was:" >&5 | |
18016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18017 | ||
18018 | ( exit $ac_status ) | |
18019 | wx_cv_sizeof_wchar_t=0 | |
18020 | fi | |
ac1cb8d3 | 18021 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18022 | fi |
18023 | ||
18024 | fi | |
18025 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18026 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18027 | ||
18028 | cat >>confdefs.h <<_ACEOF | |
18029 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18030 | _ACEOF | |
18031 | ||
18032 | ||
18033 | # Check whether --enable-largefile or --disable-largefile was given. | |
18034 | if test "${enable_largefile+set}" = set; then | |
18035 | enableval="$enable_largefile" | |
18036 | ||
18037 | fi; | |
18038 | if test "$enable_largefile" != no; then | |
18039 | wx_largefile=no | |
18040 | ||
18041 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18042 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18043 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18045 | else | |
18046 | ||
18047 | cat >conftest.$ac_ext <<_ACEOF | |
18048 | /* confdefs.h. */ | |
18049 | _ACEOF | |
18050 | cat confdefs.h >>conftest.$ac_ext | |
18051 | cat >>conftest.$ac_ext <<_ACEOF | |
18052 | /* end confdefs.h. */ | |
18053 | #define _FILE_OFFSET_BITS 64 | |
18054 | #include <sys/types.h> | |
18055 | int | |
18056 | main () | |
18057 | { | |
18058 | typedef struct { | |
18059 | unsigned int field: sizeof(off_t) == 8; | |
18060 | } wxlf; | |
18061 | ||
18062 | ; | |
18063 | return 0; | |
18064 | } | |
18065 | _ACEOF | |
18066 | rm -f conftest.$ac_objext | |
18067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18068 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18069 | ac_status=$? |
ac1cb8d3 VS |
18070 | grep -v '^ *+' conftest.er1 >conftest.err |
18071 | rm -f conftest.er1 | |
18072 | cat conftest.err >&5 | |
a848cd7e SC |
18073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18074 | (exit $ac_status); } && | |
4d4ff94c | 18075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18077 | (eval $ac_try) 2>&5 | |
18078 | ac_status=$? | |
18079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18080 | (exit $ac_status); }; } && | |
18081 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18083 | (eval $ac_try) 2>&5 | |
18084 | ac_status=$? | |
18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18086 | (exit $ac_status); }; }; then | |
18087 | ac_cv_sys_file_offset_bits=64 | |
18088 | else | |
18089 | echo "$as_me: failed program was:" >&5 | |
18090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18091 | ||
18092 | ac_cv_sys_file_offset_bits=no | |
18093 | fi | |
ac1cb8d3 | 18094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18095 | |
18096 | ||
18097 | fi | |
18098 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18099 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18100 | ||
18101 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18102 | wx_largefile=yes | |
18103 | cat >>confdefs.h <<_ACEOF | |
18104 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18105 | _ACEOF | |
18106 | ||
18107 | fi | |
18108 | ||
18109 | if test "x$wx_largefile" != "xyes"; then | |
18110 | ||
18111 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18112 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18113 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18115 | else | |
18116 | ||
18117 | cat >conftest.$ac_ext <<_ACEOF | |
18118 | /* confdefs.h. */ | |
18119 | _ACEOF | |
18120 | cat confdefs.h >>conftest.$ac_ext | |
18121 | cat >>conftest.$ac_ext <<_ACEOF | |
18122 | /* end confdefs.h. */ | |
18123 | #define _LARGE_FILES 1 | |
18124 | #include <sys/types.h> | |
18125 | int | |
18126 | main () | |
18127 | { | |
18128 | typedef struct { | |
18129 | unsigned int field: sizeof(off_t) == 8; | |
18130 | } wxlf; | |
18131 | ||
18132 | ; | |
18133 | return 0; | |
18134 | } | |
18135 | _ACEOF | |
18136 | rm -f conftest.$ac_objext | |
18137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18138 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18139 | ac_status=$? |
ac1cb8d3 VS |
18140 | grep -v '^ *+' conftest.er1 >conftest.err |
18141 | rm -f conftest.er1 | |
18142 | cat conftest.err >&5 | |
a848cd7e SC |
18143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18144 | (exit $ac_status); } && | |
4d4ff94c | 18145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18147 | (eval $ac_try) 2>&5 | |
18148 | ac_status=$? | |
18149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18150 | (exit $ac_status); }; } && | |
18151 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18153 | (eval $ac_try) 2>&5 | |
18154 | ac_status=$? | |
18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18156 | (exit $ac_status); }; }; then | |
18157 | ac_cv_sys_large_files=1 | |
18158 | else | |
18159 | echo "$as_me: failed program was:" >&5 | |
18160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18161 | ||
18162 | ac_cv_sys_large_files=no | |
18163 | fi | |
ac1cb8d3 | 18164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18165 | |
18166 | ||
18167 | fi | |
18168 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18169 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18170 | ||
18171 | if test "$ac_cv_sys_large_files" != no; then | |
18172 | wx_largefile=yes | |
18173 | cat >>confdefs.h <<_ACEOF | |
18174 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18175 | _ACEOF | |
18176 | ||
18177 | fi | |
18178 | ||
18179 | fi | |
18180 | ||
18181 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18182 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18183 | if test "x$wx_largefile" = "xyes"; then | |
18184 | cat >>confdefs.h <<\_ACEOF | |
18185 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18186 | _ACEOF | |
18187 | ||
18188 | fi | |
18189 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18190 | echo "${ECHO_T}$wx_largefile" >&6 | |
18191 | fi | |
18192 | ||
18193 | ||
18194 | if test "x$wx_largefile" = "xyes"; then | |
18195 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18196 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18197 | else | |
18198 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18199 | fi | |
18200 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18201 | fi | |
18202 | ||
18203 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18204 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18205 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18207 | else | |
18208 | ac_cv_c_bigendian=unknown | |
18209 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18210 | cat >conftest.$ac_ext <<_ACEOF | |
18211 | /* confdefs.h. */ | |
18212 | _ACEOF | |
18213 | cat confdefs.h >>conftest.$ac_ext | |
18214 | cat >>conftest.$ac_ext <<_ACEOF | |
18215 | /* end confdefs.h. */ | |
18216 | #include <sys/types.h> | |
18217 | #include <sys/param.h> | |
18218 | int | |
18219 | main () | |
18220 | { | |
18221 | ||
18222 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18223 | bogus endian macros | |
18224 | #endif | |
18225 | ; | |
18226 | return 0; | |
18227 | } | |
18228 | _ACEOF | |
18229 | rm -f conftest.$ac_objext | |
18230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18231 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18232 | ac_status=$? |
ac1cb8d3 VS |
18233 | grep -v '^ *+' conftest.er1 >conftest.err |
18234 | rm -f conftest.er1 | |
18235 | cat conftest.err >&5 | |
a848cd7e SC |
18236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18237 | (exit $ac_status); } && | |
4d4ff94c | 18238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18240 | (eval $ac_try) 2>&5 | |
18241 | ac_status=$? | |
18242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18243 | (exit $ac_status); }; } && | |
18244 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18246 | (eval $ac_try) 2>&5 | |
18247 | ac_status=$? | |
18248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18249 | (exit $ac_status); }; }; then | |
18250 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18251 | cat >conftest.$ac_ext <<_ACEOF | |
18252 | /* confdefs.h. */ | |
18253 | _ACEOF | |
18254 | cat confdefs.h >>conftest.$ac_ext | |
18255 | cat >>conftest.$ac_ext <<_ACEOF | |
18256 | /* end confdefs.h. */ | |
18257 | #include <sys/types.h> | |
18258 | #include <sys/param.h> | |
18259 | int | |
18260 | main () | |
18261 | { | |
18262 | ||
18263 | #if BYTE_ORDER != BIG_ENDIAN | |
18264 | not big endian | |
18265 | #endif | |
18266 | ; | |
18267 | return 0; | |
18268 | } | |
18269 | _ACEOF | |
18270 | rm -f conftest.$ac_objext | |
18271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18272 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18273 | ac_status=$? |
ac1cb8d3 VS |
18274 | grep -v '^ *+' conftest.er1 >conftest.err |
18275 | rm -f conftest.er1 | |
18276 | cat conftest.err >&5 | |
a848cd7e SC |
18277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18278 | (exit $ac_status); } && | |
4d4ff94c | 18279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18281 | (eval $ac_try) 2>&5 | |
18282 | ac_status=$? | |
18283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18284 | (exit $ac_status); }; } && | |
18285 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18287 | (eval $ac_try) 2>&5 | |
18288 | ac_status=$? | |
18289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18290 | (exit $ac_status); }; }; then | |
18291 | ac_cv_c_bigendian=yes | |
18292 | else | |
18293 | echo "$as_me: failed program was:" >&5 | |
18294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18295 | ||
18296 | ac_cv_c_bigendian=no | |
18297 | fi | |
ac1cb8d3 | 18298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18299 | else |
18300 | echo "$as_me: failed program was:" >&5 | |
18301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18302 | ||
18303 | fi | |
ac1cb8d3 | 18304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18305 | if test $ac_cv_c_bigendian = unknown; then |
18306 | if test "$cross_compiling" = yes; then | |
18307 | ac_cv_c_bigendian=unknown | |
18308 | else | |
18309 | cat >conftest.$ac_ext <<_ACEOF | |
18310 | /* confdefs.h. */ | |
18311 | _ACEOF | |
18312 | cat confdefs.h >>conftest.$ac_ext | |
18313 | cat >>conftest.$ac_ext <<_ACEOF | |
18314 | /* end confdefs.h. */ | |
18315 | main () { | |
18316 | /* Are we little or big endian? From Harbison&Steele. */ | |
18317 | union | |
18318 | { | |
18319 | long l; | |
18320 | char c[sizeof (long)]; | |
18321 | } u; | |
18322 | u.l = 1; | |
18323 | exit (u.c[sizeof (long) - 1] == 1); | |
18324 | } | |
18325 | _ACEOF | |
18326 | rm -f conftest$ac_exeext | |
18327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18328 | (eval $ac_link) 2>&5 | |
18329 | ac_status=$? | |
18330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18331 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18333 | (eval $ac_try) 2>&5 | |
18334 | ac_status=$? | |
18335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18336 | (exit $ac_status); }; }; then | |
18337 | ac_cv_c_bigendian=no | |
18338 | else | |
18339 | echo "$as_me: program exited with status $ac_status" >&5 | |
18340 | echo "$as_me: failed program was:" >&5 | |
18341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18342 | ||
18343 | ( exit $ac_status ) | |
18344 | ac_cv_c_bigendian=yes | |
18345 | fi | |
ac1cb8d3 | 18346 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18347 | fi |
18348 | fi | |
18349 | fi | |
18350 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18351 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18352 | if test $ac_cv_c_bigendian = unknown; then | |
18353 | { 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 | |
18354 | 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;} | |
18355 | fi | |
18356 | if test $ac_cv_c_bigendian = yes; then | |
18357 | cat >>confdefs.h <<\_ACEOF | |
18358 | #define WORDS_BIGENDIAN 1 | |
18359 | _ACEOF | |
18360 | ||
18361 | fi | |
18362 | ||
18363 | ||
18364 | ac_ext=cc | |
18365 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18366 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18367 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18368 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18369 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18370 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18371 | if test -z "$CXXCPP"; then | |
18372 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18374 | else | |
18375 | # Double quotes because CXXCPP needs to be expanded | |
18376 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18377 | do | |
18378 | ac_preproc_ok=false | |
18379 | for ac_cxx_preproc_warn_flag in '' yes | |
18380 | do | |
18381 | # Use a header file that comes with gcc, so configuring glibc | |
18382 | # with a fresh cross-compiler works. | |
18383 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18384 | # <limits.h> exists even on freestanding compilers. | |
18385 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18386 | # not just through cpp. "Syntax error" is here to catch this case. | |
18387 | cat >conftest.$ac_ext <<_ACEOF | |
18388 | /* confdefs.h. */ | |
18389 | _ACEOF | |
18390 | cat confdefs.h >>conftest.$ac_ext | |
18391 | cat >>conftest.$ac_ext <<_ACEOF | |
18392 | /* end confdefs.h. */ | |
18393 | #ifdef __STDC__ | |
18394 | # include <limits.h> | |
18395 | #else | |
18396 | # include <assert.h> | |
18397 | #endif | |
ac1cb8d3 | 18398 | Syntax error |
a848cd7e SC |
18399 | _ACEOF |
18400 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18401 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18402 | ac_status=$? | |
18403 | grep -v '^ *+' conftest.er1 >conftest.err | |
18404 | rm -f conftest.er1 | |
18405 | cat conftest.err >&5 | |
18406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18407 | (exit $ac_status); } >/dev/null; then | |
18408 | if test -s conftest.err; then | |
18409 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18410 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18411 | else |
18412 | ac_cpp_err= | |
18413 | fi | |
18414 | else | |
18415 | ac_cpp_err=yes | |
18416 | fi | |
18417 | if test -z "$ac_cpp_err"; then | |
18418 | : | |
18419 | else | |
18420 | echo "$as_me: failed program was:" >&5 | |
18421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18422 | ||
18423 | # Broken: fails on valid input. | |
18424 | continue | |
18425 | fi | |
18426 | rm -f conftest.err conftest.$ac_ext | |
18427 | ||
18428 | # OK, works on sane cases. Now check whether non-existent headers | |
18429 | # can be detected and how. | |
18430 | cat >conftest.$ac_ext <<_ACEOF | |
18431 | /* confdefs.h. */ | |
18432 | _ACEOF | |
18433 | cat confdefs.h >>conftest.$ac_ext | |
18434 | cat >>conftest.$ac_ext <<_ACEOF | |
18435 | /* end confdefs.h. */ | |
18436 | #include <ac_nonexistent.h> | |
18437 | _ACEOF | |
18438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18440 | ac_status=$? | |
18441 | grep -v '^ *+' conftest.er1 >conftest.err | |
18442 | rm -f conftest.er1 | |
18443 | cat conftest.err >&5 | |
18444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18445 | (exit $ac_status); } >/dev/null; then | |
18446 | if test -s conftest.err; then | |
18447 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18448 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18449 | else |
18450 | ac_cpp_err= | |
18451 | fi | |
18452 | else | |
18453 | ac_cpp_err=yes | |
18454 | fi | |
18455 | if test -z "$ac_cpp_err"; then | |
18456 | # Broken: success on invalid input. | |
18457 | continue | |
18458 | else | |
18459 | echo "$as_me: failed program was:" >&5 | |
18460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18461 | ||
18462 | # Passes both tests. | |
18463 | ac_preproc_ok=: | |
18464 | break | |
18465 | fi | |
18466 | rm -f conftest.err conftest.$ac_ext | |
18467 | ||
18468 | done | |
18469 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18470 | rm -f conftest.err conftest.$ac_ext | |
18471 | if $ac_preproc_ok; then | |
18472 | break | |
18473 | fi | |
18474 | ||
18475 | done | |
18476 | ac_cv_prog_CXXCPP=$CXXCPP | |
18477 | ||
18478 | fi | |
18479 | CXXCPP=$ac_cv_prog_CXXCPP | |
18480 | else | |
18481 | ac_cv_prog_CXXCPP=$CXXCPP | |
18482 | fi | |
18483 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18484 | echo "${ECHO_T}$CXXCPP" >&6 | |
18485 | ac_preproc_ok=false | |
18486 | for ac_cxx_preproc_warn_flag in '' yes | |
18487 | do | |
18488 | # Use a header file that comes with gcc, so configuring glibc | |
18489 | # with a fresh cross-compiler works. | |
18490 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18491 | # <limits.h> exists even on freestanding compilers. | |
18492 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18493 | # not just through cpp. "Syntax error" is here to catch this case. | |
18494 | cat >conftest.$ac_ext <<_ACEOF | |
18495 | /* confdefs.h. */ | |
18496 | _ACEOF | |
18497 | cat confdefs.h >>conftest.$ac_ext | |
18498 | cat >>conftest.$ac_ext <<_ACEOF | |
18499 | /* end confdefs.h. */ | |
18500 | #ifdef __STDC__ | |
18501 | # include <limits.h> | |
18502 | #else | |
18503 | # include <assert.h> | |
18504 | #endif | |
ac1cb8d3 | 18505 | Syntax error |
a848cd7e SC |
18506 | _ACEOF |
18507 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18508 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18509 | ac_status=$? | |
18510 | grep -v '^ *+' conftest.er1 >conftest.err | |
18511 | rm -f conftest.er1 | |
18512 | cat conftest.err >&5 | |
18513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18514 | (exit $ac_status); } >/dev/null; then | |
18515 | if test -s conftest.err; then | |
18516 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18517 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18518 | else |
18519 | ac_cpp_err= | |
18520 | fi | |
18521 | else | |
18522 | ac_cpp_err=yes | |
18523 | fi | |
18524 | if test -z "$ac_cpp_err"; then | |
18525 | : | |
18526 | else | |
18527 | echo "$as_me: failed program was:" >&5 | |
18528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18529 | ||
18530 | # Broken: fails on valid input. | |
18531 | continue | |
18532 | fi | |
18533 | rm -f conftest.err conftest.$ac_ext | |
18534 | ||
18535 | # OK, works on sane cases. Now check whether non-existent headers | |
18536 | # can be detected and how. | |
18537 | cat >conftest.$ac_ext <<_ACEOF | |
18538 | /* confdefs.h. */ | |
18539 | _ACEOF | |
18540 | cat confdefs.h >>conftest.$ac_ext | |
18541 | cat >>conftest.$ac_ext <<_ACEOF | |
18542 | /* end confdefs.h. */ | |
18543 | #include <ac_nonexistent.h> | |
18544 | _ACEOF | |
18545 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18546 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18547 | ac_status=$? | |
18548 | grep -v '^ *+' conftest.er1 >conftest.err | |
18549 | rm -f conftest.er1 | |
18550 | cat conftest.err >&5 | |
18551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18552 | (exit $ac_status); } >/dev/null; then | |
18553 | if test -s conftest.err; then | |
18554 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18555 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18556 | else |
18557 | ac_cpp_err= | |
18558 | fi | |
18559 | else | |
18560 | ac_cpp_err=yes | |
18561 | fi | |
18562 | if test -z "$ac_cpp_err"; then | |
18563 | # Broken: success on invalid input. | |
18564 | continue | |
18565 | else | |
18566 | echo "$as_me: failed program was:" >&5 | |
18567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18568 | ||
18569 | # Passes both tests. | |
18570 | ac_preproc_ok=: | |
18571 | break | |
18572 | fi | |
18573 | rm -f conftest.err conftest.$ac_ext | |
18574 | ||
18575 | done | |
18576 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18577 | rm -f conftest.err conftest.$ac_ext | |
18578 | if $ac_preproc_ok; then | |
18579 | : | |
18580 | else | |
18581 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18582 | See \`config.log' for more details." >&5 | |
18583 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18584 | See \`config.log' for more details." >&2;} | |
18585 | { (exit 1); exit 1; }; } | |
18586 | fi | |
18587 | ||
18588 | ac_ext=cc | |
18589 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18590 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18591 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18592 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18593 | ||
18594 | ||
18595 | ||
18596 | ||
18597 | ||
18598 | ac_ext=cc | |
18599 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18600 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18601 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18602 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18603 | ||
18604 | ||
18605 | ||
18606 | for ac_header in iostream | |
18607 | do | |
18608 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18609 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18614 | fi | |
18615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18616 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18617 | else | |
18618 | # Is the header compilable? | |
18619 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18620 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18621 | cat >conftest.$ac_ext <<_ACEOF | |
18622 | /* confdefs.h. */ | |
18623 | _ACEOF | |
18624 | cat confdefs.h >>conftest.$ac_ext | |
18625 | cat >>conftest.$ac_ext <<_ACEOF | |
18626 | /* end confdefs.h. */ | |
18627 | $ac_includes_default | |
18628 | #include <$ac_header> | |
18629 | _ACEOF | |
18630 | rm -f conftest.$ac_objext | |
18631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18632 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18633 | ac_status=$? |
ac1cb8d3 VS |
18634 | grep -v '^ *+' conftest.er1 >conftest.err |
18635 | rm -f conftest.er1 | |
18636 | cat conftest.err >&5 | |
a848cd7e SC |
18637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18638 | (exit $ac_status); } && | |
4d4ff94c | 18639 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18641 | (eval $ac_try) 2>&5 | |
18642 | ac_status=$? | |
18643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18644 | (exit $ac_status); }; } && | |
18645 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18647 | (eval $ac_try) 2>&5 | |
18648 | ac_status=$? | |
18649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18650 | (exit $ac_status); }; }; then | |
18651 | ac_header_compiler=yes | |
18652 | else | |
18653 | echo "$as_me: failed program was:" >&5 | |
18654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18655 | ||
18656 | ac_header_compiler=no | |
18657 | fi | |
ac1cb8d3 | 18658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18659 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18660 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18661 | ||
18662 | # Is the header present? | |
18663 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18664 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18665 | cat >conftest.$ac_ext <<_ACEOF | |
18666 | /* confdefs.h. */ | |
18667 | _ACEOF | |
18668 | cat confdefs.h >>conftest.$ac_ext | |
18669 | cat >>conftest.$ac_ext <<_ACEOF | |
18670 | /* end confdefs.h. */ | |
18671 | #include <$ac_header> | |
18672 | _ACEOF | |
18673 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18675 | ac_status=$? | |
18676 | grep -v '^ *+' conftest.er1 >conftest.err | |
18677 | rm -f conftest.er1 | |
18678 | cat conftest.err >&5 | |
18679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18680 | (exit $ac_status); } >/dev/null; then | |
18681 | if test -s conftest.err; then | |
18682 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18683 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18684 | else |
18685 | ac_cpp_err= | |
18686 | fi | |
18687 | else | |
18688 | ac_cpp_err=yes | |
18689 | fi | |
18690 | if test -z "$ac_cpp_err"; then | |
18691 | ac_header_preproc=yes | |
18692 | else | |
18693 | echo "$as_me: failed program was:" >&5 | |
18694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18695 | ||
18696 | ac_header_preproc=no | |
18697 | fi | |
18698 | rm -f conftest.err conftest.$ac_ext | |
18699 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18700 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18701 | ||
18702 | # So? What about this header? | |
ac1cb8d3 VS |
18703 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18704 | yes:no: ) | |
a848cd7e SC |
18705 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18706 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
18707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18708 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18709 | ac_header_preproc=yes | |
a848cd7e | 18710 | ;; |
ac1cb8d3 | 18711 | no:yes:* ) |
a848cd7e SC |
18712 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18713 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
18714 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18715 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18716 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18717 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18718 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18719 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
18720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18721 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
18722 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18723 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
18724 | ( |
18725 | cat <<\_ASBOX | |
ac1cb8d3 VS |
18726 | ## ----------------------------------------- ## |
18727 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
18728 | ## ----------------------------------------- ## | |
a848cd7e SC |
18729 | _ASBOX |
18730 | ) | | |
18731 | sed "s/^/$as_me: WARNING: /" >&2 | |
18732 | ;; | |
18733 | esac | |
18734 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18738 | else | |
ac1cb8d3 | 18739 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
18740 | fi |
18741 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18742 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18743 | ||
18744 | fi | |
18745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18746 | cat >>confdefs.h <<_ACEOF | |
18747 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18748 | _ACEOF | |
18749 | ||
18750 | fi | |
18751 | ||
18752 | done | |
18753 | ||
18754 | ||
18755 | if test "$ac_cv_header_iostream" = "yes" ; then | |
18756 | : | |
18757 | else | |
18758 | cat >>confdefs.h <<\_ACEOF | |
18759 | #define wxUSE_IOSTREAMH 1 | |
18760 | _ACEOF | |
18761 | ||
18762 | fi | |
18763 | ||
18764 | ac_ext=c | |
18765 | ac_cpp='$CPP $CPPFLAGS' | |
18766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18769 | ||
18770 | ||
18771 | ||
18772 | ||
18773 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
18774 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18775 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18777 | else | |
18778 | ||
18779 | ||
18780 | ||
18781 | ac_ext=cc | |
18782 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18783 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18784 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18785 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18786 | ||
18787 | ||
18788 | cat >conftest.$ac_ext <<_ACEOF | |
18789 | /* confdefs.h. */ | |
18790 | _ACEOF | |
18791 | cat confdefs.h >>conftest.$ac_ext | |
18792 | cat >>conftest.$ac_ext <<_ACEOF | |
18793 | /* end confdefs.h. */ | |
18794 | ||
18795 | ||
18796 | int | |
18797 | main () | |
18798 | { | |
18799 | ||
18800 | bool b = true; | |
18801 | ||
18802 | return 0; | |
18803 | ||
18804 | ; | |
18805 | return 0; | |
18806 | } | |
18807 | _ACEOF | |
18808 | rm -f conftest.$ac_objext | |
18809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18810 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18811 | ac_status=$? |
ac1cb8d3 VS |
18812 | grep -v '^ *+' conftest.er1 >conftest.err |
18813 | rm -f conftest.er1 | |
18814 | cat conftest.err >&5 | |
a848cd7e SC |
18815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18816 | (exit $ac_status); } && | |
4d4ff94c | 18817 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18819 | (eval $ac_try) 2>&5 | |
18820 | ac_status=$? | |
18821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18822 | (exit $ac_status); }; } && | |
18823 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18825 | (eval $ac_try) 2>&5 | |
18826 | ac_status=$? | |
18827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18828 | (exit $ac_status); }; }; then | |
18829 | ||
18830 | wx_cv_cpp_bool=yes | |
18831 | ||
18832 | else | |
18833 | echo "$as_me: failed program was:" >&5 | |
18834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18835 | ||
18836 | ||
18837 | wx_cv_cpp_bool=no | |
18838 | ||
18839 | ||
18840 | fi | |
ac1cb8d3 | 18841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18842 | |
18843 | ac_ext=c | |
18844 | ac_cpp='$CPP $CPPFLAGS' | |
18845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18848 | ||
18849 | ||
18850 | fi | |
18851 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18852 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
18853 | ||
18854 | if test "$wx_cv_cpp_bool" = "yes"; then | |
18855 | cat >>confdefs.h <<\_ACEOF | |
18856 | #define HAVE_BOOL 1 | |
18857 | _ACEOF | |
18858 | ||
18859 | fi | |
18860 | ||
18861 | ||
18862 | ||
18863 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
18864 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18865 | if test "${wx_cv_explicit+set}" = set; then | |
18866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18867 | else | |
18868 | ||
18869 | ||
18870 | ||
18871 | ac_ext=cc | |
18872 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18873 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18874 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18875 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18876 | ||
18877 | ||
18878 | cat >conftest.$ac_ext <<_ACEOF | |
18879 | /* confdefs.h. */ | |
18880 | _ACEOF | |
18881 | cat confdefs.h >>conftest.$ac_ext | |
18882 | cat >>conftest.$ac_ext <<_ACEOF | |
18883 | /* end confdefs.h. */ | |
18884 | ||
18885 | class Foo { public: explicit Foo(int) {} }; | |
18886 | ||
18887 | int | |
18888 | main () | |
18889 | { | |
18890 | ||
18891 | return 0; | |
18892 | ||
18893 | ; | |
18894 | return 0; | |
18895 | } | |
18896 | _ACEOF | |
18897 | rm -f conftest.$ac_objext | |
18898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18899 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18900 | ac_status=$? |
ac1cb8d3 VS |
18901 | grep -v '^ *+' conftest.er1 >conftest.err |
18902 | rm -f conftest.er1 | |
18903 | cat conftest.err >&5 | |
a848cd7e SC |
18904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18905 | (exit $ac_status); } && | |
4d4ff94c | 18906 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18908 | (eval $ac_try) 2>&5 | |
18909 | ac_status=$? | |
18910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18911 | (exit $ac_status); }; } && | |
18912 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18914 | (eval $ac_try) 2>&5 | |
18915 | ac_status=$? | |
18916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18917 | (exit $ac_status); }; }; then | |
18918 | ||
18919 | cat >conftest.$ac_ext <<_ACEOF | |
18920 | /* confdefs.h. */ | |
18921 | _ACEOF | |
18922 | cat confdefs.h >>conftest.$ac_ext | |
18923 | cat >>conftest.$ac_ext <<_ACEOF | |
18924 | /* end confdefs.h. */ | |
18925 | ||
18926 | class Foo { public: explicit Foo(int) {} }; | |
18927 | static void TakeFoo(const Foo& foo) { } | |
18928 | ||
18929 | int | |
18930 | main () | |
18931 | { | |
18932 | ||
18933 | TakeFoo(17); | |
18934 | return 0; | |
18935 | ||
18936 | ; | |
18937 | return 0; | |
18938 | } | |
18939 | _ACEOF | |
18940 | rm -f conftest.$ac_objext | |
18941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18942 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18943 | ac_status=$? |
ac1cb8d3 VS |
18944 | grep -v '^ *+' conftest.er1 >conftest.err |
18945 | rm -f conftest.er1 | |
18946 | cat conftest.err >&5 | |
a848cd7e SC |
18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18948 | (exit $ac_status); } && | |
4d4ff94c | 18949 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18951 | (eval $ac_try) 2>&5 | |
18952 | ac_status=$? | |
18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18954 | (exit $ac_status); }; } && | |
18955 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18957 | (eval $ac_try) 2>&5 | |
18958 | ac_status=$? | |
18959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18960 | (exit $ac_status); }; }; then | |
18961 | wx_cv_explicit=no | |
18962 | else | |
18963 | echo "$as_me: failed program was:" >&5 | |
18964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18965 | ||
18966 | wx_cv_explicit=yes | |
18967 | ||
18968 | fi | |
ac1cb8d3 | 18969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18970 | |
18971 | else | |
18972 | echo "$as_me: failed program was:" >&5 | |
18973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18974 | ||
18975 | wx_cv_explicit=no | |
18976 | ||
18977 | fi | |
ac1cb8d3 | 18978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18979 | |
18980 | ac_ext=c | |
18981 | ac_cpp='$CPP $CPPFLAGS' | |
18982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18985 | ||
18986 | ||
18987 | fi | |
18988 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
18989 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
18990 | ||
18991 | if test "$wx_cv_explicit" = "yes"; then | |
18992 | cat >>confdefs.h <<\_ACEOF | |
18993 | #define HAVE_EXPLICIT 1 | |
18994 | _ACEOF | |
18995 | ||
18996 | fi | |
18997 | ||
18998 | ||
18999 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19000 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19001 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19003 | else | |
19004 | ||
19005 | ||
19006 | ac_ext=cc | |
19007 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19008 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19009 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19010 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19011 | ||
19012 | cat >conftest.$ac_ext <<_ACEOF | |
19013 | /* confdefs.h. */ | |
19014 | _ACEOF | |
19015 | cat confdefs.h >>conftest.$ac_ext | |
19016 | cat >>conftest.$ac_ext <<_ACEOF | |
19017 | /* end confdefs.h. */ | |
19018 | ||
19019 | int | |
19020 | main () | |
19021 | { | |
19022 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19023 | ; | |
19024 | return 0; | |
19025 | } | |
19026 | _ACEOF | |
19027 | rm -f conftest.$ac_objext | |
19028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19029 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19030 | ac_status=$? |
ac1cb8d3 VS |
19031 | grep -v '^ *+' conftest.er1 >conftest.err |
19032 | rm -f conftest.er1 | |
19033 | cat conftest.err >&5 | |
a848cd7e SC |
19034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19035 | (exit $ac_status); } && | |
4d4ff94c | 19036 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19038 | (eval $ac_try) 2>&5 | |
19039 | ac_status=$? | |
19040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19041 | (exit $ac_status); }; } && | |
19042 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19044 | (eval $ac_try) 2>&5 | |
19045 | ac_status=$? | |
19046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19047 | (exit $ac_status); }; }; then | |
19048 | ac_cv_cxx_const_cast=yes | |
19049 | else | |
19050 | echo "$as_me: failed program was:" >&5 | |
19051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19052 | ||
19053 | ac_cv_cxx_const_cast=no | |
19054 | fi | |
ac1cb8d3 | 19055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19056 | ac_ext=c |
19057 | ac_cpp='$CPP $CPPFLAGS' | |
19058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19061 | ||
19062 | ||
19063 | fi | |
19064 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19065 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19066 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19067 | ||
19068 | cat >>confdefs.h <<\_ACEOF | |
19069 | #define HAVE_CONST_CAST | |
19070 | _ACEOF | |
19071 | ||
19072 | fi | |
19073 | ||
19074 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 | |
19075 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19076 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19078 | else | |
19079 | ||
19080 | ||
19081 | ac_ext=cc | |
19082 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19083 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19084 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19085 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19086 | ||
19087 | cat >conftest.$ac_ext <<_ACEOF | |
19088 | /* confdefs.h. */ | |
19089 | _ACEOF | |
19090 | cat confdefs.h >>conftest.$ac_ext | |
19091 | cat >>conftest.$ac_ext <<_ACEOF | |
19092 | /* end confdefs.h. */ | |
19093 | #include <typeinfo> | |
19094 | class Base { public : Base () {} virtual void f () = 0; }; | |
19095 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19096 | int g (Derived&) { return 0; } | |
19097 | int | |
19098 | main () | |
19099 | { | |
19100 | ||
19101 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19102 | ; | |
19103 | return 0; | |
19104 | } | |
19105 | _ACEOF | |
19106 | rm -f conftest.$ac_objext | |
19107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19108 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19109 | ac_status=$? |
ac1cb8d3 VS |
19110 | grep -v '^ *+' conftest.er1 >conftest.err |
19111 | rm -f conftest.er1 | |
19112 | cat conftest.err >&5 | |
a848cd7e SC |
19113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19114 | (exit $ac_status); } && | |
4d4ff94c | 19115 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19117 | (eval $ac_try) 2>&5 | |
19118 | ac_status=$? | |
19119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19120 | (exit $ac_status); }; } && | |
19121 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19123 | (eval $ac_try) 2>&5 | |
19124 | ac_status=$? | |
19125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19126 | (exit $ac_status); }; }; then | |
19127 | ac_cv_cxx_static_cast=yes | |
19128 | else | |
19129 | echo "$as_me: failed program was:" >&5 | |
19130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19131 | ||
19132 | ac_cv_cxx_static_cast=no | |
19133 | fi | |
ac1cb8d3 | 19134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19135 | ac_ext=c |
19136 | ac_cpp='$CPP $CPPFLAGS' | |
19137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19140 | ||
19141 | ||
19142 | fi | |
19143 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19144 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19145 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19146 | ||
19147 | cat >>confdefs.h <<\_ACEOF | |
19148 | #define HAVE_STATIC_CAST | |
19149 | _ACEOF | |
19150 | ||
19151 | fi | |
19152 | ||
19153 | ||
19154 | if test "$wxUSE_STL" = "yes"; then | |
19155 | ac_ext=cc | |
19156 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19157 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19158 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19159 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19160 | ||
19161 | ||
19162 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19163 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19164 | cat >conftest.$ac_ext <<_ACEOF | |
19165 | /* confdefs.h. */ | |
19166 | _ACEOF | |
19167 | cat confdefs.h >>conftest.$ac_ext | |
19168 | cat >>conftest.$ac_ext <<_ACEOF | |
19169 | /* end confdefs.h. */ | |
19170 | #include <string> | |
19171 | #include <functional> | |
19172 | #include <algorithm> | |
19173 | #include <vector> | |
19174 | #include <list> | |
19175 | int | |
19176 | main () | |
19177 | { | |
19178 | std::vector<int> moo; | |
19179 | std::list<int> foo; | |
19180 | std::vector<int>::iterator it = | |
19181 | std::find_if(moo.begin(), moo.end(), | |
19182 | std::bind2nd(std::less<int>(), 3)); | |
19183 | ; | |
19184 | return 0; | |
19185 | } | |
19186 | _ACEOF | |
19187 | rm -f conftest.$ac_objext | |
19188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19190 | ac_status=$? |
ac1cb8d3 VS |
19191 | grep -v '^ *+' conftest.er1 >conftest.err |
19192 | rm -f conftest.er1 | |
19193 | cat conftest.err >&5 | |
a848cd7e SC |
19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19195 | (exit $ac_status); } && | |
4d4ff94c | 19196 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19198 | (eval $ac_try) 2>&5 | |
19199 | ac_status=$? | |
19200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19201 | (exit $ac_status); }; } && | |
19202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19204 | (eval $ac_try) 2>&5 | |
19205 | ac_status=$? | |
19206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19207 | (exit $ac_status); }; }; then | |
19208 | echo "$as_me:$LINENO: result: yes" >&5 | |
19209 | echo "${ECHO_T}yes" >&6 | |
19210 | else | |
19211 | echo "$as_me: failed program was:" >&5 | |
19212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19213 | ||
19214 | echo "$as_me:$LINENO: result: no" >&5 | |
19215 | echo "${ECHO_T}no" >&6 | |
19216 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19217 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19218 | { (exit 1); exit 1; }; } | |
19219 | fi | |
ac1cb8d3 | 19220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19221 | |
19222 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19223 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19224 | cat >conftest.$ac_ext <<_ACEOF | |
19225 | /* confdefs.h. */ | |
19226 | _ACEOF | |
19227 | cat confdefs.h >>conftest.$ac_ext | |
19228 | cat >>conftest.$ac_ext <<_ACEOF | |
19229 | /* end confdefs.h. */ | |
19230 | #include <string> | |
19231 | int | |
19232 | main () | |
19233 | { | |
19234 | std::wstring foo; | |
19235 | ; | |
19236 | return 0; | |
19237 | } | |
19238 | _ACEOF | |
19239 | rm -f conftest.$ac_objext | |
19240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19241 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19242 | ac_status=$? |
ac1cb8d3 VS |
19243 | grep -v '^ *+' conftest.er1 >conftest.err |
19244 | rm -f conftest.er1 | |
19245 | cat conftest.err >&5 | |
a848cd7e SC |
19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19247 | (exit $ac_status); } && | |
4d4ff94c | 19248 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19250 | (eval $ac_try) 2>&5 | |
19251 | ac_status=$? | |
19252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19253 | (exit $ac_status); }; } && | |
19254 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19256 | (eval $ac_try) 2>&5 | |
19257 | ac_status=$? | |
19258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19259 | (exit $ac_status); }; }; then | |
19260 | echo "$as_me:$LINENO: result: yes" >&5 | |
19261 | echo "${ECHO_T}yes" >&6 | |
19262 | cat >>confdefs.h <<\_ACEOF | |
19263 | #define HAVE_STD_WSTRING 1 | |
19264 | _ACEOF | |
19265 | ||
19266 | else | |
19267 | echo "$as_me: failed program was:" >&5 | |
19268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19269 | ||
19270 | echo "$as_me:$LINENO: result: no" >&5 | |
19271 | echo "${ECHO_T}no" >&6 | |
19272 | fi | |
ac1cb8d3 | 19273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19274 | |
19275 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19276 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19277 | cat >conftest.$ac_ext <<_ACEOF | |
19278 | /* confdefs.h. */ | |
19279 | _ACEOF | |
19280 | cat confdefs.h >>conftest.$ac_ext | |
19281 | cat >>conftest.$ac_ext <<_ACEOF | |
19282 | /* end confdefs.h. */ | |
19283 | #include <string> | |
19284 | int | |
19285 | main () | |
19286 | { | |
19287 | std::string foo, bar; | |
19288 | foo.compare(bar); | |
19289 | foo.compare(1, 1, bar); | |
19290 | foo.compare(1, 1, bar, 1, 1); | |
19291 | foo.compare(""); | |
19292 | foo.compare(1, 1, ""); | |
19293 | foo.compare(1, 1, "", 2); | |
19294 | ; | |
19295 | return 0; | |
19296 | } | |
19297 | _ACEOF | |
19298 | rm -f conftest.$ac_objext | |
19299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19300 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19301 | ac_status=$? |
ac1cb8d3 VS |
19302 | grep -v '^ *+' conftest.er1 >conftest.err |
19303 | rm -f conftest.er1 | |
19304 | cat conftest.err >&5 | |
a848cd7e SC |
19305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19306 | (exit $ac_status); } && | |
4d4ff94c | 19307 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19309 | (eval $ac_try) 2>&5 | |
19310 | ac_status=$? | |
19311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19312 | (exit $ac_status); }; } && | |
19313 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19315 | (eval $ac_try) 2>&5 | |
19316 | ac_status=$? | |
19317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19318 | (exit $ac_status); }; }; then | |
19319 | echo "$as_me:$LINENO: result: yes" >&5 | |
19320 | echo "${ECHO_T}yes" >&6 | |
19321 | cat >>confdefs.h <<\_ACEOF | |
19322 | #define HAVE_STD_STRING_COMPARE 1 | |
19323 | _ACEOF | |
19324 | ||
19325 | else | |
19326 | echo "$as_me: failed program was:" >&5 | |
19327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19328 | ||
19329 | echo "$as_me:$LINENO: result: no" >&5 | |
19330 | echo "${ECHO_T}no" >&6 | |
19331 | fi | |
ac1cb8d3 | 19332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19333 | |
19334 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19335 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19336 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19337 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19339 | fi | |
19340 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19341 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19342 | else | |
19343 | # Is the header compilable? | |
19344 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19345 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19346 | cat >conftest.$ac_ext <<_ACEOF | |
19347 | /* confdefs.h. */ | |
19348 | _ACEOF | |
19349 | cat confdefs.h >>conftest.$ac_ext | |
19350 | cat >>conftest.$ac_ext <<_ACEOF | |
19351 | /* end confdefs.h. */ | |
19352 | $ac_includes_default | |
19353 | #include <hash_map> | |
19354 | _ACEOF | |
19355 | rm -f conftest.$ac_objext | |
19356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19357 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19358 | ac_status=$? |
ac1cb8d3 VS |
19359 | grep -v '^ *+' conftest.er1 >conftest.err |
19360 | rm -f conftest.er1 | |
19361 | cat conftest.err >&5 | |
bdcade0a MB |
19362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19363 | (exit $ac_status); } && | |
4d4ff94c | 19364 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19366 | (eval $ac_try) 2>&5 | |
19367 | ac_status=$? | |
19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19369 | (exit $ac_status); }; } && | |
19370 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19372 | (eval $ac_try) 2>&5 | |
19373 | ac_status=$? | |
19374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19375 | (exit $ac_status); }; }; then | |
19376 | ac_header_compiler=yes | |
19377 | else | |
19378 | echo "$as_me: failed program was:" >&5 | |
19379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19380 | ||
19381 | ac_header_compiler=no | |
19382 | fi | |
ac1cb8d3 | 19383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19384 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19385 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19386 | ||
19387 | # Is the header present? | |
19388 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19389 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19390 | cat >conftest.$ac_ext <<_ACEOF | |
19391 | /* confdefs.h. */ | |
19392 | _ACEOF | |
19393 | cat confdefs.h >>conftest.$ac_ext | |
19394 | cat >>conftest.$ac_ext <<_ACEOF | |
19395 | /* end confdefs.h. */ | |
19396 | #include <hash_map> | |
19397 | _ACEOF | |
19398 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19399 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19400 | ac_status=$? | |
19401 | grep -v '^ *+' conftest.er1 >conftest.err | |
19402 | rm -f conftest.er1 | |
19403 | cat conftest.err >&5 | |
19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19405 | (exit $ac_status); } >/dev/null; then | |
19406 | if test -s conftest.err; then | |
19407 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19408 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19409 | else |
19410 | ac_cpp_err= | |
19411 | fi | |
19412 | else | |
19413 | ac_cpp_err=yes | |
19414 | fi | |
19415 | if test -z "$ac_cpp_err"; then | |
19416 | ac_header_preproc=yes | |
19417 | else | |
19418 | echo "$as_me: failed program was:" >&5 | |
19419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19420 | ||
19421 | ac_header_preproc=no | |
19422 | fi | |
19423 | rm -f conftest.err conftest.$ac_ext | |
19424 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19425 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19426 | ||
19427 | # So? What about this header? | |
ac1cb8d3 VS |
19428 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19429 | yes:no: ) | |
bdcade0a MB |
19430 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19431 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19432 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19433 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19434 | ac_header_preproc=yes | |
bdcade0a | 19435 | ;; |
ac1cb8d3 | 19436 | no:yes:* ) |
bdcade0a MB |
19437 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19438 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19439 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19440 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19441 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19442 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19443 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19444 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19445 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19446 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19447 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19448 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19449 | ( |
19450 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19451 | ## ----------------------------------------- ## |
19452 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19453 | ## ----------------------------------------- ## | |
bdcade0a MB |
19454 | _ASBOX |
19455 | ) | | |
19456 | sed "s/^/$as_me: WARNING: /" >&2 | |
19457 | ;; | |
19458 | esac | |
19459 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19460 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19461 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19463 | else | |
19464 | ac_cv_header_hash_map=$ac_header_preproc | |
19465 | fi | |
19466 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19467 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19468 | ||
19469 | fi | |
19470 | if test $ac_cv_header_hash_map = yes; then | |
19471 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19472 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19473 | cat >conftest.$ac_ext <<_ACEOF | |
19474 | /* confdefs.h. */ | |
19475 | _ACEOF | |
19476 | cat confdefs.h >>conftest.$ac_ext | |
19477 | cat >>conftest.$ac_ext <<_ACEOF | |
19478 | /* end confdefs.h. */ | |
19479 | #include <hash_map> | |
19480 | #include <hash_set> | |
19481 | int | |
19482 | main () | |
19483 | { | |
19484 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19485 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19486 | ; | |
19487 | return 0; | |
19488 | } | |
19489 | _ACEOF | |
19490 | rm -f conftest.$ac_objext | |
19491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19492 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19493 | ac_status=$? |
ac1cb8d3 VS |
19494 | grep -v '^ *+' conftest.er1 >conftest.err |
19495 | rm -f conftest.er1 | |
19496 | cat conftest.err >&5 | |
bdcade0a MB |
19497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19498 | (exit $ac_status); } && | |
4d4ff94c | 19499 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19501 | (eval $ac_try) 2>&5 | |
19502 | ac_status=$? | |
19503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19504 | (exit $ac_status); }; } && | |
19505 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19507 | (eval $ac_try) 2>&5 | |
19508 | ac_status=$? | |
19509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19510 | (exit $ac_status); }; }; then | |
19511 | echo "$as_me:$LINENO: result: yes" >&5 | |
19512 | echo "${ECHO_T}yes" >&6 | |
19513 | cat >>confdefs.h <<\_ACEOF | |
19514 | #define HAVE_HASH_MAP 1 | |
19515 | _ACEOF | |
19516 | ||
19517 | cat >>confdefs.h <<\_ACEOF | |
19518 | #define HAVE_STD_HASH_MAP 1 | |
19519 | _ACEOF | |
19520 | ||
19521 | else | |
19522 | echo "$as_me: failed program was:" >&5 | |
19523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19524 | ||
19525 | echo "$as_me:$LINENO: result: no" >&5 | |
19526 | echo "${ECHO_T}no" >&6 | |
19527 | fi | |
ac1cb8d3 | 19528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19529 | |
19530 | fi | |
19531 | ||
19532 | ||
19533 | ||
19534 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19535 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19536 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19537 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19539 | fi | |
19540 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19541 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19542 | else | |
19543 | # Is the header compilable? | |
19544 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19545 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19546 | cat >conftest.$ac_ext <<_ACEOF | |
19547 | /* confdefs.h. */ | |
19548 | _ACEOF | |
19549 | cat confdefs.h >>conftest.$ac_ext | |
19550 | cat >>conftest.$ac_ext <<_ACEOF | |
19551 | /* end confdefs.h. */ | |
19552 | $ac_includes_default | |
19553 | #include <ext/hash_map> | |
19554 | _ACEOF | |
19555 | rm -f conftest.$ac_objext | |
19556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19557 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19558 | ac_status=$? |
ac1cb8d3 VS |
19559 | grep -v '^ *+' conftest.er1 >conftest.err |
19560 | rm -f conftest.er1 | |
19561 | cat conftest.err >&5 | |
bdcade0a MB |
19562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19563 | (exit $ac_status); } && | |
4d4ff94c | 19564 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19566 | (eval $ac_try) 2>&5 | |
19567 | ac_status=$? | |
19568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19569 | (exit $ac_status); }; } && | |
19570 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19572 | (eval $ac_try) 2>&5 | |
19573 | ac_status=$? | |
19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19575 | (exit $ac_status); }; }; then | |
19576 | ac_header_compiler=yes | |
19577 | else | |
19578 | echo "$as_me: failed program was:" >&5 | |
19579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19580 | ||
19581 | ac_header_compiler=no | |
19582 | fi | |
ac1cb8d3 | 19583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19584 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19585 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19586 | ||
19587 | # Is the header present? | |
19588 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
19589 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
19590 | cat >conftest.$ac_ext <<_ACEOF | |
19591 | /* confdefs.h. */ | |
19592 | _ACEOF | |
19593 | cat confdefs.h >>conftest.$ac_ext | |
19594 | cat >>conftest.$ac_ext <<_ACEOF | |
19595 | /* end confdefs.h. */ | |
19596 | #include <ext/hash_map> | |
19597 | _ACEOF | |
19598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19600 | ac_status=$? | |
19601 | grep -v '^ *+' conftest.er1 >conftest.err | |
19602 | rm -f conftest.er1 | |
19603 | cat conftest.err >&5 | |
19604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19605 | (exit $ac_status); } >/dev/null; then | |
19606 | if test -s conftest.err; then | |
19607 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19608 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19609 | else |
19610 | ac_cpp_err= | |
19611 | fi | |
19612 | else | |
19613 | ac_cpp_err=yes | |
19614 | fi | |
19615 | if test -z "$ac_cpp_err"; then | |
19616 | ac_header_preproc=yes | |
19617 | else | |
19618 | echo "$as_me: failed program was:" >&5 | |
19619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19620 | ||
19621 | ac_header_preproc=no | |
19622 | fi | |
19623 | rm -f conftest.err conftest.$ac_ext | |
19624 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19625 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19626 | ||
19627 | # So? What about this header? | |
ac1cb8d3 VS |
19628 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19629 | yes:no: ) | |
bdcade0a MB |
19630 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19631 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19632 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
19633 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
19634 | ac_header_preproc=yes | |
bdcade0a | 19635 | ;; |
ac1cb8d3 | 19636 | no:yes:* ) |
bdcade0a MB |
19637 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
19638 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19639 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
19640 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
19641 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
19642 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
19643 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19644 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19645 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
19646 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19647 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
19648 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19649 | ( |
19650 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19651 | ## ----------------------------------------- ## |
19652 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19653 | ## ----------------------------------------- ## | |
bdcade0a MB |
19654 | _ASBOX |
19655 | ) | | |
19656 | sed "s/^/$as_me: WARNING: /" >&2 | |
19657 | ;; | |
19658 | esac | |
19659 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19660 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19661 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19663 | else | |
19664 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
19665 | fi | |
19666 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19667 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19668 | ||
19669 | fi | |
19670 | if test $ac_cv_header_ext_hash_map = yes; then | |
19671 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19672 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19673 | cat >conftest.$ac_ext <<_ACEOF | |
19674 | /* confdefs.h. */ | |
19675 | _ACEOF | |
19676 | cat confdefs.h >>conftest.$ac_ext | |
19677 | cat >>conftest.$ac_ext <<_ACEOF | |
19678 | /* end confdefs.h. */ | |
19679 | #include <ext/hash_map> | |
19680 | #include <ext/hash_set> | |
19681 | int | |
19682 | main () | |
19683 | { | |
19684 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
19685 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
19686 | ; | |
19687 | return 0; | |
19688 | } | |
19689 | _ACEOF | |
19690 | rm -f conftest.$ac_objext | |
19691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19692 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19693 | ac_status=$? |
ac1cb8d3 VS |
19694 | grep -v '^ *+' conftest.er1 >conftest.err |
19695 | rm -f conftest.er1 | |
19696 | cat conftest.err >&5 | |
bdcade0a MB |
19697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19698 | (exit $ac_status); } && | |
4d4ff94c | 19699 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19701 | (eval $ac_try) 2>&5 | |
19702 | ac_status=$? | |
19703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19704 | (exit $ac_status); }; } && | |
19705 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19707 | (eval $ac_try) 2>&5 | |
19708 | ac_status=$? | |
19709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19710 | (exit $ac_status); }; }; then | |
19711 | echo "$as_me:$LINENO: result: yes" >&5 | |
19712 | echo "${ECHO_T}yes" >&6 | |
19713 | cat >>confdefs.h <<\_ACEOF | |
19714 | #define HAVE_EXT_HASH_MAP 1 | |
19715 | _ACEOF | |
19716 | ||
19717 | cat >>confdefs.h <<\_ACEOF | |
19718 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
19719 | _ACEOF | |
19720 | ||
19721 | else | |
19722 | echo "$as_me: failed program was:" >&5 | |
19723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19724 | ||
19725 | echo "$as_me:$LINENO: result: no" >&5 | |
19726 | echo "${ECHO_T}no" >&6 | |
19727 | fi | |
ac1cb8d3 | 19728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19729 | |
19730 | fi | |
19731 | ||
19732 | ||
a848cd7e SC |
19733 | |
19734 | ac_ext=c | |
19735 | ac_cpp='$CPP $CPPFLAGS' | |
19736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19739 | ||
19740 | fi | |
19741 | ||
19742 | ||
19743 | SEARCH_INCLUDE="\ | |
19744 | /usr/local/include \ | |
19745 | \ | |
19746 | /usr/Motif-2.1/include \ | |
19747 | /usr/Motif-1.2/include \ | |
19748 | /usr/include/Motif1.2 \ | |
19749 | /opt/xpm/include/X11 \ | |
19750 | /opt/GBxpm/include/ \ | |
19751 | /opt/GBxpm/X11/include/ \ | |
19752 | \ | |
19753 | /usr/dt/include \ | |
19754 | /usr/openwin/include \ | |
19755 | \ | |
19756 | /usr/include/Xm \ | |
19757 | \ | |
19758 | /usr/X11R6/include \ | |
19759 | /usr/X11R6.4/include \ | |
19760 | /usr/X11R5/include \ | |
19761 | /usr/X11R4/include \ | |
19762 | \ | |
19763 | /usr/include/X11R6 \ | |
19764 | /usr/include/X11R5 \ | |
19765 | /usr/include/X11R4 \ | |
19766 | \ | |
19767 | /usr/local/X11R6/include \ | |
19768 | /usr/local/X11R5/include \ | |
19769 | /usr/local/X11R4/include \ | |
19770 | \ | |
19771 | /usr/local/include/X11R6 \ | |
19772 | /usr/local/include/X11R5 \ | |
19773 | /usr/local/include/X11R4 \ | |
19774 | \ | |
19775 | /usr/X11/include \ | |
19776 | /usr/include/X11 \ | |
19777 | /usr/local/X11/include \ | |
19778 | /usr/local/include/X11 \ | |
19779 | \ | |
19780 | /usr/X386/include \ | |
19781 | /usr/x386/include \ | |
19782 | /usr/XFree86/include/X11 \ | |
19783 | \ | |
19784 | X:/XFree86/include \ | |
19785 | X:/XFree86/include/X11 \ | |
19786 | \ | |
19787 | /usr/include/gtk \ | |
19788 | /usr/local/include/gtk \ | |
19789 | /usr/include/glib \ | |
19790 | /usr/local/include/glib \ | |
19791 | \ | |
19792 | /usr/include/qt \ | |
19793 | /usr/local/include/qt \ | |
19794 | \ | |
19795 | /usr/local/arm/3.3.2/include \ | |
19796 | \ | |
19797 | /usr/include/windows \ | |
19798 | /usr/include/wine \ | |
19799 | /usr/local/include/wine \ | |
19800 | \ | |
19801 | /usr/unsupported/include \ | |
19802 | /usr/athena/include \ | |
19803 | /usr/local/x11r5/include \ | |
19804 | /usr/lpp/Xamples/include \ | |
19805 | \ | |
19806 | /usr/openwin/share/include" | |
19807 | ||
19808 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
19809 | ||
19810 | ||
19811 | cat >confcache <<\_ACEOF | |
19812 | # This file is a shell script that caches the results of configure | |
19813 | # tests run on this system so they can be shared between configure | |
19814 | # scripts and configure runs, see configure's option --config-cache. | |
19815 | # It is not useful on other systems. If it contains results you don't | |
19816 | # want to keep, you may remove or edit it. | |
19817 | # | |
19818 | # config.status only pays attention to the cache file if you give it | |
19819 | # the --recheck option to rerun configure. | |
19820 | # | |
19821 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19822 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19823 | # following values. | |
19824 | ||
19825 | _ACEOF | |
19826 | ||
19827 | # The following way of writing the cache mishandles newlines in values, | |
19828 | # but we know of no workaround that is simple, portable, and efficient. | |
19829 | # So, don't put newlines in cache variables' values. | |
19830 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19831 | # and sets the high bit in the cache file unless we assign to the vars. | |
19832 | { | |
19833 | (set) 2>&1 | | |
19834 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19835 | *ac_space=\ *) | |
19836 | # `set' does not quote correctly, so add quotes (double-quote | |
19837 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19838 | sed -n \ | |
ac1cb8d3 VS |
19839 | "s/'/'\\\\''/g; |
19840 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
19841 | ;; |
19842 | *) | |
19843 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19844 | sed -n \ | |
ac1cb8d3 | 19845 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
19846 | ;; |
19847 | esac; | |
19848 | } | | |
19849 | sed ' | |
19850 | t clear | |
19851 | : clear | |
19852 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19853 | t end | |
19854 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19855 | : end' >>confcache | |
19856 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
19857 | if test -w $cache_file; then | |
19858 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
19859 | cat confcache >$cache_file | |
19860 | else | |
19861 | echo "not updating unwritable cache $cache_file" | |
19862 | fi | |
19863 | fi | |
19864 | rm -f confcache | |
19865 | ||
19866 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
19867 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
19868 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
19869 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
19870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19871 | else | |
19872 | ||
19873 | cat >conftest.$ac_ext <<_ACEOF | |
19874 | /* confdefs.h. */ | |
19875 | _ACEOF | |
19876 | cat confdefs.h >>conftest.$ac_ext | |
19877 | cat >>conftest.$ac_ext <<_ACEOF | |
19878 | /* end confdefs.h. */ | |
19879 | #include <features.h> | |
19880 | int | |
19881 | main () | |
19882 | { | |
19883 | ||
19884 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
19885 | #error not glibc2.1 | |
19886 | #endif | |
19887 | ||
19888 | ; | |
19889 | return 0; | |
19890 | } | |
19891 | _ACEOF | |
19892 | rm -f conftest.$ac_objext | |
19893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19894 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19895 | ac_status=$? |
ac1cb8d3 VS |
19896 | grep -v '^ *+' conftest.er1 >conftest.err |
19897 | rm -f conftest.er1 | |
19898 | cat conftest.err >&5 | |
a848cd7e SC |
19899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19900 | (exit $ac_status); } && | |
4d4ff94c | 19901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19903 | (eval $ac_try) 2>&5 | |
19904 | ac_status=$? | |
19905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19906 | (exit $ac_status); }; } && | |
19907 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19909 | (eval $ac_try) 2>&5 | |
19910 | ac_status=$? | |
19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19912 | (exit $ac_status); }; }; then | |
19913 | ||
19914 | wx_cv_lib_glibc21=yes | |
19915 | ||
19916 | else | |
19917 | echo "$as_me: failed program was:" >&5 | |
19918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19919 | ||
19920 | ||
19921 | wx_cv_lib_glibc21=no | |
19922 | ||
19923 | ||
19924 | fi | |
ac1cb8d3 | 19925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19926 | |
19927 | fi | |
19928 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
19929 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
19930 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
19931 | cat >>confdefs.h <<\_ACEOF | |
19932 | #define wxHAVE_GLIBC2 1 | |
19933 | _ACEOF | |
19934 | ||
19935 | fi | |
19936 | fi | |
19937 | ||
19938 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
19939 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
19940 | cat >>confdefs.h <<\_ACEOF | |
19941 | #define _GNU_SOURCE 1 | |
19942 | _ACEOF | |
19943 | ||
19944 | fi | |
19945 | fi | |
19946 | ||
19947 | ||
19948 | ||
19949 | if test "$wxUSE_REGEX" != "no"; then | |
19950 | cat >>confdefs.h <<\_ACEOF | |
19951 | #define wxUSE_REGEX 1 | |
19952 | _ACEOF | |
19953 | ||
19954 | ||
19955 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
19956 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
19957 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
19958 | wxUSE_REGEX=builtin | |
19959 | fi | |
19960 | ||
19961 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
19962 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19963 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
19964 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
19965 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19967 | fi | |
19968 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
19969 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
19970 | else | |
19971 | # Is the header compilable? | |
19972 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
19973 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
19974 | cat >conftest.$ac_ext <<_ACEOF | |
19975 | /* confdefs.h. */ | |
19976 | _ACEOF | |
19977 | cat confdefs.h >>conftest.$ac_ext | |
19978 | cat >>conftest.$ac_ext <<_ACEOF | |
19979 | /* end confdefs.h. */ | |
19980 | $ac_includes_default | |
19981 | #include <regex.h> | |
19982 | _ACEOF | |
19983 | rm -f conftest.$ac_objext | |
19984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19985 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19986 | ac_status=$? |
ac1cb8d3 VS |
19987 | grep -v '^ *+' conftest.er1 >conftest.err |
19988 | rm -f conftest.er1 | |
19989 | cat conftest.err >&5 | |
a848cd7e SC |
19990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19991 | (exit $ac_status); } && | |
4d4ff94c | 19992 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19994 | (eval $ac_try) 2>&5 | |
19995 | ac_status=$? | |
19996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19997 | (exit $ac_status); }; } && | |
19998 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20000 | (eval $ac_try) 2>&5 | |
20001 | ac_status=$? | |
20002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20003 | (exit $ac_status); }; }; then | |
20004 | ac_header_compiler=yes | |
20005 | else | |
20006 | echo "$as_me: failed program was:" >&5 | |
20007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20008 | ||
20009 | ac_header_compiler=no | |
20010 | fi | |
ac1cb8d3 | 20011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20012 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20013 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20014 | ||
20015 | # Is the header present? | |
20016 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20017 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20018 | cat >conftest.$ac_ext <<_ACEOF | |
20019 | /* confdefs.h. */ | |
20020 | _ACEOF | |
20021 | cat confdefs.h >>conftest.$ac_ext | |
20022 | cat >>conftest.$ac_ext <<_ACEOF | |
20023 | /* end confdefs.h. */ | |
20024 | #include <regex.h> | |
20025 | _ACEOF | |
20026 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20027 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20028 | ac_status=$? | |
20029 | grep -v '^ *+' conftest.er1 >conftest.err | |
20030 | rm -f conftest.er1 | |
20031 | cat conftest.err >&5 | |
20032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20033 | (exit $ac_status); } >/dev/null; then | |
20034 | if test -s conftest.err; then | |
20035 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20036 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20037 | else |
20038 | ac_cpp_err= | |
20039 | fi | |
20040 | else | |
20041 | ac_cpp_err=yes | |
20042 | fi | |
20043 | if test -z "$ac_cpp_err"; then | |
20044 | ac_header_preproc=yes | |
20045 | else | |
20046 | echo "$as_me: failed program was:" >&5 | |
20047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20048 | ||
20049 | ac_header_preproc=no | |
20050 | fi | |
20051 | rm -f conftest.err conftest.$ac_ext | |
20052 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20053 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20054 | ||
20055 | # So? What about this header? | |
ac1cb8d3 VS |
20056 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20057 | yes:no: ) | |
a848cd7e SC |
20058 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20059 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20060 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20061 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20062 | ac_header_preproc=yes | |
a848cd7e | 20063 | ;; |
ac1cb8d3 | 20064 | no:yes:* ) |
a848cd7e SC |
20065 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20066 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20067 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20068 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20069 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20070 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20071 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20072 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20073 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20074 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20075 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20076 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20077 | ( |
20078 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20079 | ## ----------------------------------------- ## |
20080 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20081 | ## ----------------------------------------- ## | |
a848cd7e SC |
20082 | _ASBOX |
20083 | ) | | |
20084 | sed "s/^/$as_me: WARNING: /" >&2 | |
20085 | ;; | |
20086 | esac | |
20087 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20088 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20089 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20091 | else | |
20092 | ac_cv_header_regex_h=$ac_header_preproc | |
20093 | fi | |
20094 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20095 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20096 | ||
20097 | fi | |
20098 | if test $ac_cv_header_regex_h = yes; then | |
20099 | ||
20100 | for ac_func in regcomp | |
20101 | do | |
20102 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20103 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20104 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20105 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20107 | else | |
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. */ | |
ac1cb8d3 VS |
20114 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20115 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20116 | #define $ac_func innocuous_$ac_func | |
20117 | ||
a848cd7e SC |
20118 | /* System header to define __stub macros and hopefully few prototypes, |
20119 | which can conflict with char $ac_func (); below. | |
20120 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20121 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20122 | |
a848cd7e SC |
20123 | #ifdef __STDC__ |
20124 | # include <limits.h> | |
20125 | #else | |
20126 | # include <assert.h> | |
20127 | #endif | |
ac1cb8d3 VS |
20128 | |
20129 | #undef $ac_func | |
20130 | ||
a848cd7e SC |
20131 | /* Override any gcc2 internal prototype to avoid an error. */ |
20132 | #ifdef __cplusplus | |
20133 | extern "C" | |
20134 | { | |
20135 | #endif | |
20136 | /* We use char because int might match the return type of a gcc2 | |
20137 | builtin and then its argument prototype would still apply. */ | |
20138 | char $ac_func (); | |
20139 | /* The GNU C library defines this for functions which it implements | |
20140 | to always fail with ENOSYS. Some functions are actually named | |
20141 | something starting with __ and the normal name is an alias. */ | |
20142 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20143 | choke me | |
20144 | #else | |
20145 | char (*f) () = $ac_func; | |
20146 | #endif | |
20147 | #ifdef __cplusplus | |
20148 | } | |
20149 | #endif | |
20150 | ||
20151 | int | |
20152 | main () | |
20153 | { | |
20154 | return f != $ac_func; | |
20155 | ; | |
20156 | return 0; | |
20157 | } | |
20158 | _ACEOF | |
20159 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20161 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20162 | ac_status=$? |
ac1cb8d3 VS |
20163 | grep -v '^ *+' conftest.er1 >conftest.err |
20164 | rm -f conftest.er1 | |
20165 | cat conftest.err >&5 | |
a848cd7e SC |
20166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20167 | (exit $ac_status); } && | |
4d4ff94c | 20168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20170 | (eval $ac_try) 2>&5 | |
20171 | ac_status=$? | |
20172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20173 | (exit $ac_status); }; } && | |
20174 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20176 | (eval $ac_try) 2>&5 | |
20177 | ac_status=$? | |
20178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20179 | (exit $ac_status); }; }; then | |
20180 | eval "$as_ac_var=yes" | |
20181 | else | |
20182 | echo "$as_me: failed program was:" >&5 | |
20183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20184 | ||
20185 | eval "$as_ac_var=no" | |
20186 | fi | |
ac1cb8d3 VS |
20187 | rm -f conftest.err conftest.$ac_objext \ |
20188 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20189 | fi |
20190 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20191 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20192 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20193 | cat >>confdefs.h <<_ACEOF | |
20194 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20195 | _ACEOF | |
20196 | ||
20197 | fi | |
20198 | done | |
20199 | ||
20200 | fi | |
20201 | ||
20202 | ||
20203 | ||
20204 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20205 | if test "$wxUSE_REGEX" = "sys" ; then | |
20206 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20207 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20208 | { (exit 1); exit 1; }; } | |
20209 | else | |
20210 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20211 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20212 | wxUSE_REGEX=builtin | |
20213 | fi | |
20214 | else | |
20215 | wxUSE_REGEX=sys | |
20216 | cat >>confdefs.h <<\_ACEOF | |
20217 | #define WX_NO_REGEX_ADVANCED 1 | |
20218 | _ACEOF | |
20219 | ||
20220 | fi | |
20221 | fi | |
20222 | fi | |
20223 | ||
20224 | ||
20225 | ZLIB_LINK= | |
20226 | if test "$wxUSE_ZLIB" != "no" ; then | |
20227 | cat >>confdefs.h <<\_ACEOF | |
20228 | #define wxUSE_ZLIB 1 | |
20229 | _ACEOF | |
20230 | ||
20231 | ||
20232 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20233 | if test "$USE_DARWIN" = 1; then | |
20234 | system_zlib_h_ok="yes" | |
20235 | else | |
20236 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20237 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20238 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20240 | else | |
20241 | if test "$cross_compiling" = yes; then | |
20242 | unset ac_cv_header_zlib_h | |
20243 | ||
20244 | else | |
20245 | cat >conftest.$ac_ext <<_ACEOF | |
20246 | /* confdefs.h. */ | |
20247 | _ACEOF | |
20248 | cat confdefs.h >>conftest.$ac_ext | |
20249 | cat >>conftest.$ac_ext <<_ACEOF | |
20250 | /* end confdefs.h. */ | |
20251 | ||
20252 | #include <zlib.h> | |
20253 | #include <stdio.h> | |
20254 | ||
20255 | int main() | |
20256 | { | |
20257 | FILE *f=fopen("conftestval", "w"); | |
20258 | if (!f) exit(1); | |
20259 | fprintf(f, "%s", | |
20260 | ZLIB_VERSION[0] == '1' && | |
20261 | (ZLIB_VERSION[2] > '1' || | |
20262 | (ZLIB_VERSION[2] == '1' && | |
20263 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20264 | exit(0); | |
20265 | } | |
20266 | ||
20267 | _ACEOF | |
20268 | rm -f conftest$ac_exeext | |
20269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20270 | (eval $ac_link) 2>&5 | |
20271 | ac_status=$? | |
20272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20273 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20275 | (eval $ac_try) 2>&5 | |
20276 | ac_status=$? | |
20277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20278 | (exit $ac_status); }; }; then | |
20279 | ac_cv_header_zlib_h=`cat conftestval` | |
20280 | else | |
20281 | echo "$as_me: program exited with status $ac_status" >&5 | |
20282 | echo "$as_me: failed program was:" >&5 | |
20283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20284 | ||
20285 | ( exit $ac_status ) | |
20286 | ac_cv_header_zlib_h=no | |
20287 | fi | |
ac1cb8d3 | 20288 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20289 | fi |
20290 | ||
20291 | fi | |
20292 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20293 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20294 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20295 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20296 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20297 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20299 | fi | |
20300 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20301 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20302 | else | |
20303 | # Is the header compilable? | |
20304 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20305 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20306 | cat >conftest.$ac_ext <<_ACEOF | |
20307 | /* confdefs.h. */ | |
20308 | _ACEOF | |
20309 | cat confdefs.h >>conftest.$ac_ext | |
20310 | cat >>conftest.$ac_ext <<_ACEOF | |
20311 | /* end confdefs.h. */ | |
20312 | $ac_includes_default | |
20313 | #include <zlib.h> | |
20314 | _ACEOF | |
20315 | rm -f conftest.$ac_objext | |
20316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20317 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20318 | ac_status=$? |
ac1cb8d3 VS |
20319 | grep -v '^ *+' conftest.er1 >conftest.err |
20320 | rm -f conftest.er1 | |
20321 | cat conftest.err >&5 | |
a848cd7e SC |
20322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20323 | (exit $ac_status); } && | |
4d4ff94c | 20324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20326 | (eval $ac_try) 2>&5 | |
20327 | ac_status=$? | |
20328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20329 | (exit $ac_status); }; } && | |
20330 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20332 | (eval $ac_try) 2>&5 | |
20333 | ac_status=$? | |
20334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20335 | (exit $ac_status); }; }; then | |
20336 | ac_header_compiler=yes | |
20337 | else | |
20338 | echo "$as_me: failed program was:" >&5 | |
20339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20340 | ||
20341 | ac_header_compiler=no | |
20342 | fi | |
ac1cb8d3 | 20343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20344 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20345 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20346 | ||
20347 | # Is the header present? | |
20348 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20349 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20350 | cat >conftest.$ac_ext <<_ACEOF | |
20351 | /* confdefs.h. */ | |
20352 | _ACEOF | |
20353 | cat confdefs.h >>conftest.$ac_ext | |
20354 | cat >>conftest.$ac_ext <<_ACEOF | |
20355 | /* end confdefs.h. */ | |
20356 | #include <zlib.h> | |
20357 | _ACEOF | |
20358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20360 | ac_status=$? | |
20361 | grep -v '^ *+' conftest.er1 >conftest.err | |
20362 | rm -f conftest.er1 | |
20363 | cat conftest.err >&5 | |
20364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20365 | (exit $ac_status); } >/dev/null; then | |
20366 | if test -s conftest.err; then | |
20367 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20368 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20369 | else |
20370 | ac_cpp_err= | |
20371 | fi | |
20372 | else | |
20373 | ac_cpp_err=yes | |
20374 | fi | |
20375 | if test -z "$ac_cpp_err"; then | |
20376 | ac_header_preproc=yes | |
20377 | else | |
20378 | echo "$as_me: failed program was:" >&5 | |
20379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20380 | ||
20381 | ac_header_preproc=no | |
20382 | fi | |
20383 | rm -f conftest.err conftest.$ac_ext | |
20384 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20385 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20386 | ||
20387 | # So? What about this header? | |
ac1cb8d3 VS |
20388 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20389 | yes:no: ) | |
a848cd7e SC |
20390 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20391 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20392 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20393 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20394 | ac_header_preproc=yes | |
a848cd7e | 20395 | ;; |
ac1cb8d3 | 20396 | no:yes:* ) |
a848cd7e SC |
20397 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20398 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20399 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20400 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20401 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20402 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20403 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20404 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20405 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20406 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20407 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20408 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20409 | ( |
20410 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20411 | ## ----------------------------------------- ## |
20412 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20413 | ## ----------------------------------------- ## | |
a848cd7e SC |
20414 | _ASBOX |
20415 | ) | | |
20416 | sed "s/^/$as_me: WARNING: /" >&2 | |
20417 | ;; | |
20418 | esac | |
20419 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20420 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20421 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20423 | else | |
20424 | ac_cv_header_zlib_h=$ac_header_preproc | |
20425 | fi | |
20426 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20427 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20428 | ||
20429 | fi | |
20430 | ||
20431 | ||
20432 | ||
20433 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20434 | fi | |
20435 | ||
20436 | if test "$system_zlib_h_ok" = "yes"; then | |
20437 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20438 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20439 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20441 | else | |
20442 | ac_check_lib_save_LIBS=$LIBS | |
20443 | LIBS="-lz $LIBS" | |
20444 | cat >conftest.$ac_ext <<_ACEOF | |
20445 | /* confdefs.h. */ | |
20446 | _ACEOF | |
20447 | cat confdefs.h >>conftest.$ac_ext | |
20448 | cat >>conftest.$ac_ext <<_ACEOF | |
20449 | /* end confdefs.h. */ | |
20450 | ||
20451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20452 | #ifdef __cplusplus | |
20453 | extern "C" | |
20454 | #endif | |
20455 | /* We use char because int might match the return type of a gcc2 | |
20456 | builtin and then its argument prototype would still apply. */ | |
20457 | char deflate (); | |
20458 | int | |
20459 | main () | |
20460 | { | |
20461 | deflate (); | |
20462 | ; | |
20463 | return 0; | |
20464 | } | |
20465 | _ACEOF | |
20466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20468 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20469 | ac_status=$? |
ac1cb8d3 VS |
20470 | grep -v '^ *+' conftest.er1 >conftest.err |
20471 | rm -f conftest.er1 | |
20472 | cat conftest.err >&5 | |
a848cd7e SC |
20473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20474 | (exit $ac_status); } && | |
4d4ff94c | 20475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20477 | (eval $ac_try) 2>&5 | |
20478 | ac_status=$? | |
20479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20480 | (exit $ac_status); }; } && | |
20481 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20483 | (eval $ac_try) 2>&5 | |
20484 | ac_status=$? | |
20485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20486 | (exit $ac_status); }; }; then | |
20487 | ac_cv_lib_z_deflate=yes | |
20488 | else | |
20489 | echo "$as_me: failed program was:" >&5 | |
20490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20491 | ||
20492 | ac_cv_lib_z_deflate=no | |
20493 | fi | |
ac1cb8d3 VS |
20494 | rm -f conftest.err conftest.$ac_objext \ |
20495 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20496 | LIBS=$ac_check_lib_save_LIBS |
20497 | fi | |
20498 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20499 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20500 | if test $ac_cv_lib_z_deflate = yes; then | |
20501 | ZLIB_LINK=" -lz" | |
20502 | fi | |
20503 | ||
20504 | fi | |
20505 | ||
20506 | if test "x$ZLIB_LINK" = "x" ; then | |
20507 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20508 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20509 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20510 | { (exit 1); exit 1; }; } | |
20511 | else | |
20512 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20513 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20514 | wxUSE_ZLIB=builtin | |
20515 | fi | |
20516 | else | |
20517 | wxUSE_ZLIB=sys | |
20518 | fi | |
20519 | fi | |
20520 | fi | |
20521 | ||
20522 | ||
20523 | PNG_LINK= | |
20524 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20525 | cat >>confdefs.h <<\_ACEOF | |
20526 | #define wxUSE_LIBPNG 1 | |
20527 | _ACEOF | |
20528 | ||
20529 | ||
20530 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20531 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20532 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20533 | wxUSE_LIBPNG=sys | |
20534 | fi | |
20535 | ||
20536 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20537 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20538 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20539 | wxUSE_LIBPNG=builtin | |
20540 | fi | |
20541 | ||
20542 | if test "$wxUSE_MGL" != 1 ; then | |
20543 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20544 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20545 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20546 | if test "${ac_cv_header_png_h+set}" = set; then | |
20547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20548 | else | |
20549 | if test "$cross_compiling" = yes; then | |
20550 | unset ac_cv_header_png_h | |
20551 | ||
20552 | else | |
20553 | cat >conftest.$ac_ext <<_ACEOF | |
20554 | /* confdefs.h. */ | |
20555 | _ACEOF | |
20556 | cat confdefs.h >>conftest.$ac_ext | |
20557 | cat >>conftest.$ac_ext <<_ACEOF | |
20558 | /* end confdefs.h. */ | |
20559 | ||
20560 | #include <png.h> | |
20561 | #include <stdio.h> | |
20562 | ||
20563 | int main() | |
20564 | { | |
20565 | FILE *f=fopen("conftestval", "w"); | |
20566 | if (!f) exit(1); | |
20567 | fprintf(f, "%s", | |
20568 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20569 | exit(0); | |
20570 | } | |
20571 | ||
20572 | _ACEOF | |
20573 | rm -f conftest$ac_exeext | |
20574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20575 | (eval $ac_link) 2>&5 | |
20576 | ac_status=$? | |
20577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20578 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20580 | (eval $ac_try) 2>&5 | |
20581 | ac_status=$? | |
20582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20583 | (exit $ac_status); }; }; then | |
20584 | ac_cv_header_png_h=`cat conftestval` | |
20585 | else | |
20586 | echo "$as_me: program exited with status $ac_status" >&5 | |
20587 | echo "$as_me: failed program was:" >&5 | |
20588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20589 | ||
20590 | ( exit $ac_status ) | |
20591 | ac_cv_header_png_h=no | |
20592 | fi | |
ac1cb8d3 | 20593 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20594 | fi |
20595 | ||
20596 | fi | |
20597 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20598 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20599 | if test "${ac_cv_header_png_h+set}" = set; then | |
20600 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20601 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20602 | if test "${ac_cv_header_png_h+set}" = set; then | |
20603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20604 | fi | |
20605 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20606 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20607 | else | |
20608 | # Is the header compilable? | |
20609 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20610 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20611 | cat >conftest.$ac_ext <<_ACEOF | |
20612 | /* confdefs.h. */ | |
20613 | _ACEOF | |
20614 | cat confdefs.h >>conftest.$ac_ext | |
20615 | cat >>conftest.$ac_ext <<_ACEOF | |
20616 | /* end confdefs.h. */ | |
20617 | $ac_includes_default | |
20618 | #include <png.h> | |
20619 | _ACEOF | |
20620 | rm -f conftest.$ac_objext | |
20621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20623 | ac_status=$? |
ac1cb8d3 VS |
20624 | grep -v '^ *+' conftest.er1 >conftest.err |
20625 | rm -f conftest.er1 | |
20626 | cat conftest.err >&5 | |
a848cd7e SC |
20627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20628 | (exit $ac_status); } && | |
4d4ff94c | 20629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20631 | (eval $ac_try) 2>&5 | |
20632 | ac_status=$? | |
20633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20634 | (exit $ac_status); }; } && | |
20635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20637 | (eval $ac_try) 2>&5 | |
20638 | ac_status=$? | |
20639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20640 | (exit $ac_status); }; }; then | |
20641 | ac_header_compiler=yes | |
20642 | else | |
20643 | echo "$as_me: failed program was:" >&5 | |
20644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20645 | ||
20646 | ac_header_compiler=no | |
20647 | fi | |
ac1cb8d3 | 20648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20649 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20650 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20651 | ||
20652 | # Is the header present? | |
20653 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20654 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20655 | cat >conftest.$ac_ext <<_ACEOF | |
20656 | /* confdefs.h. */ | |
20657 | _ACEOF | |
20658 | cat confdefs.h >>conftest.$ac_ext | |
20659 | cat >>conftest.$ac_ext <<_ACEOF | |
20660 | /* end confdefs.h. */ | |
20661 | #include <png.h> | |
20662 | _ACEOF | |
20663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20665 | ac_status=$? | |
20666 | grep -v '^ *+' conftest.er1 >conftest.err | |
20667 | rm -f conftest.er1 | |
20668 | cat conftest.err >&5 | |
20669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20670 | (exit $ac_status); } >/dev/null; then | |
20671 | if test -s conftest.err; then | |
20672 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20673 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20674 | else |
20675 | ac_cpp_err= | |
20676 | fi | |
20677 | else | |
20678 | ac_cpp_err=yes | |
20679 | fi | |
20680 | if test -z "$ac_cpp_err"; then | |
20681 | ac_header_preproc=yes | |
20682 | else | |
20683 | echo "$as_me: failed program was:" >&5 | |
20684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20685 | ||
20686 | ac_header_preproc=no | |
20687 | fi | |
20688 | rm -f conftest.err conftest.$ac_ext | |
20689 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20690 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20691 | ||
20692 | # So? What about this header? | |
ac1cb8d3 VS |
20693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20694 | yes:no: ) | |
a848cd7e SC |
20695 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20696 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20697 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20698 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20699 | ac_header_preproc=yes | |
a848cd7e | 20700 | ;; |
ac1cb8d3 | 20701 | no:yes:* ) |
a848cd7e SC |
20702 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20703 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20704 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
20705 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
20706 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
20707 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
20708 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20709 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20710 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
20711 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20712 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
20713 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20714 | ( |
20715 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20716 | ## ----------------------------------------- ## |
20717 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20718 | ## ----------------------------------------- ## | |
a848cd7e SC |
20719 | _ASBOX |
20720 | ) | | |
20721 | sed "s/^/$as_me: WARNING: /" >&2 | |
20722 | ;; | |
20723 | esac | |
20724 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20725 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20726 | if test "${ac_cv_header_png_h+set}" = set; then | |
20727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20728 | else | |
20729 | ac_cv_header_png_h=$ac_header_preproc | |
20730 | fi | |
20731 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20732 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20733 | ||
20734 | fi | |
20735 | ||
20736 | ||
20737 | ||
20738 | if test "$ac_cv_header_png_h" = "yes"; then | |
20739 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
20740 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
20741 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
20742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20743 | else | |
20744 | ac_check_lib_save_LIBS=$LIBS | |
20745 | LIBS="-lpng -lz -lm $LIBS" | |
20746 | cat >conftest.$ac_ext <<_ACEOF | |
20747 | /* confdefs.h. */ | |
20748 | _ACEOF | |
20749 | cat confdefs.h >>conftest.$ac_ext | |
20750 | cat >>conftest.$ac_ext <<_ACEOF | |
20751 | /* end confdefs.h. */ | |
20752 | ||
20753 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20754 | #ifdef __cplusplus | |
20755 | extern "C" | |
20756 | #endif | |
20757 | /* We use char because int might match the return type of a gcc2 | |
20758 | builtin and then its argument prototype would still apply. */ | |
20759 | char png_check_sig (); | |
20760 | int | |
20761 | main () | |
20762 | { | |
20763 | png_check_sig (); | |
20764 | ; | |
20765 | return 0; | |
20766 | } | |
20767 | _ACEOF | |
20768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20770 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20771 | ac_status=$? |
ac1cb8d3 VS |
20772 | grep -v '^ *+' conftest.er1 >conftest.err |
20773 | rm -f conftest.er1 | |
20774 | cat conftest.err >&5 | |
a848cd7e SC |
20775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20776 | (exit $ac_status); } && | |
4d4ff94c | 20777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20779 | (eval $ac_try) 2>&5 | |
20780 | ac_status=$? | |
20781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20782 | (exit $ac_status); }; } && | |
20783 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20785 | (eval $ac_try) 2>&5 | |
20786 | ac_status=$? | |
20787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20788 | (exit $ac_status); }; }; then | |
20789 | ac_cv_lib_png_png_check_sig=yes | |
20790 | else | |
20791 | echo "$as_me: failed program was:" >&5 | |
20792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20793 | ||
20794 | ac_cv_lib_png_png_check_sig=no | |
20795 | fi | |
ac1cb8d3 VS |
20796 | rm -f conftest.err conftest.$ac_objext \ |
20797 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20798 | LIBS=$ac_check_lib_save_LIBS |
20799 | fi | |
20800 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
20801 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
20802 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
20803 | PNG_LINK=" -lpng -lz" | |
20804 | fi | |
20805 | ||
20806 | fi | |
20807 | ||
20808 | if test "x$PNG_LINK" = "x" ; then | |
20809 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
20810 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
20811 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
20812 | { (exit 1); exit 1; }; } | |
20813 | else | |
20814 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
20815 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
20816 | wxUSE_LIBPNG=builtin | |
20817 | fi | |
20818 | else | |
20819 | wxUSE_LIBPNG=sys | |
20820 | fi | |
20821 | fi | |
20822 | fi | |
20823 | ||
20824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
20825 | fi | |
20826 | ||
20827 | ||
20828 | JPEG_LINK= | |
20829 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
20830 | cat >>confdefs.h <<\_ACEOF | |
20831 | #define wxUSE_LIBJPEG 1 | |
20832 | _ACEOF | |
20833 | ||
20834 | ||
20835 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
20836 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
20837 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
20838 | wxUSE_LIBJPEG=sys | |
20839 | fi | |
20840 | ||
20841 | if test "$wxUSE_MGL" != 1 ; then | |
20842 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
20843 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
20844 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
20845 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
20846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20847 | else | |
20848 | cat >conftest.$ac_ext <<_ACEOF | |
20849 | /* confdefs.h. */ | |
20850 | _ACEOF | |
20851 | cat confdefs.h >>conftest.$ac_ext | |
20852 | cat >>conftest.$ac_ext <<_ACEOF | |
20853 | /* end confdefs.h. */ | |
20854 | ||
20855 | #undef HAVE_STDLIB_H | |
20856 | #include <stdio.h> | |
20857 | #include <jpeglib.h> | |
20858 | ||
20859 | int | |
20860 | main () | |
20861 | { | |
20862 | ||
20863 | ||
20864 | ; | |
20865 | return 0; | |
20866 | } | |
20867 | _ACEOF | |
20868 | rm -f conftest.$ac_objext | |
20869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20870 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20871 | ac_status=$? |
ac1cb8d3 VS |
20872 | grep -v '^ *+' conftest.er1 >conftest.err |
20873 | rm -f conftest.er1 | |
20874 | cat conftest.err >&5 | |
a848cd7e SC |
20875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20876 | (exit $ac_status); } && | |
4d4ff94c | 20877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20879 | (eval $ac_try) 2>&5 | |
20880 | ac_status=$? | |
20881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20882 | (exit $ac_status); }; } && | |
20883 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20885 | (eval $ac_try) 2>&5 | |
20886 | ac_status=$? | |
20887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20888 | (exit $ac_status); }; }; then | |
20889 | ac_cv_header_jpeglib_h=yes | |
20890 | else | |
20891 | echo "$as_me: failed program was:" >&5 | |
20892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20893 | ||
20894 | ac_cv_header_jpeglib_h=no | |
20895 | ||
20896 | fi | |
ac1cb8d3 | 20897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20898 | |
20899 | fi | |
20900 | ||
20901 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
20902 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
20903 | ||
20904 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
20905 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
20906 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
20907 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
20908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20909 | else | |
20910 | ac_check_lib_save_LIBS=$LIBS | |
20911 | LIBS="-ljpeg $LIBS" | |
20912 | cat >conftest.$ac_ext <<_ACEOF | |
20913 | /* confdefs.h. */ | |
20914 | _ACEOF | |
20915 | cat confdefs.h >>conftest.$ac_ext | |
20916 | cat >>conftest.$ac_ext <<_ACEOF | |
20917 | /* end confdefs.h. */ | |
20918 | ||
20919 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20920 | #ifdef __cplusplus | |
20921 | extern "C" | |
20922 | #endif | |
20923 | /* We use char because int might match the return type of a gcc2 | |
20924 | builtin and then its argument prototype would still apply. */ | |
20925 | char jpeg_read_header (); | |
20926 | int | |
20927 | main () | |
20928 | { | |
20929 | jpeg_read_header (); | |
20930 | ; | |
20931 | return 0; | |
20932 | } | |
20933 | _ACEOF | |
20934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20936 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20937 | ac_status=$? |
ac1cb8d3 VS |
20938 | grep -v '^ *+' conftest.er1 >conftest.err |
20939 | rm -f conftest.er1 | |
20940 | cat conftest.err >&5 | |
a848cd7e SC |
20941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20942 | (exit $ac_status); } && | |
4d4ff94c | 20943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20945 | (eval $ac_try) 2>&5 | |
20946 | ac_status=$? | |
20947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20948 | (exit $ac_status); }; } && | |
20949 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20951 | (eval $ac_try) 2>&5 | |
20952 | ac_status=$? | |
20953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20954 | (exit $ac_status); }; }; then | |
20955 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
20956 | else | |
20957 | echo "$as_me: failed program was:" >&5 | |
20958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20959 | ||
20960 | ac_cv_lib_jpeg_jpeg_read_header=no | |
20961 | fi | |
ac1cb8d3 VS |
20962 | rm -f conftest.err conftest.$ac_objext \ |
20963 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20964 | LIBS=$ac_check_lib_save_LIBS |
20965 | fi | |
20966 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
20967 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
20968 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
20969 | JPEG_LINK=" -ljpeg" | |
20970 | fi | |
20971 | ||
20972 | fi | |
20973 | ||
20974 | if test "x$JPEG_LINK" = "x" ; then | |
20975 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
20976 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
20977 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
20978 | { (exit 1); exit 1; }; } | |
20979 | else | |
20980 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
20981 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
20982 | wxUSE_LIBJPEG=builtin | |
20983 | fi | |
20984 | else | |
20985 | wxUSE_LIBJPEG=sys | |
20986 | fi | |
20987 | fi | |
20988 | fi | |
20989 | fi | |
20990 | ||
20991 | ||
20992 | TIFF_LINK= | |
20993 | TIFF_PREREQ_LINKS=-lm | |
20994 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
20995 | cat >>confdefs.h <<\_ACEOF | |
20996 | #define wxUSE_LIBTIFF 1 | |
20997 | _ACEOF | |
20998 | ||
20999 | ||
21000 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21001 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21002 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21003 | fi | |
21004 | if test "$wxUSE_ZLIB" = "sys"; then | |
21005 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21006 | fi | |
21007 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21008 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21009 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21010 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21012 | fi | |
21013 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21014 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21015 | else | |
21016 | # Is the header compilable? | |
21017 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21018 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21019 | cat >conftest.$ac_ext <<_ACEOF | |
21020 | /* confdefs.h. */ | |
21021 | _ACEOF | |
21022 | cat confdefs.h >>conftest.$ac_ext | |
21023 | cat >>conftest.$ac_ext <<_ACEOF | |
21024 | /* end confdefs.h. */ | |
21025 | $ac_includes_default | |
21026 | #include <tiffio.h> | |
21027 | _ACEOF | |
21028 | rm -f conftest.$ac_objext | |
21029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21030 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21031 | ac_status=$? |
ac1cb8d3 VS |
21032 | grep -v '^ *+' conftest.er1 >conftest.err |
21033 | rm -f conftest.er1 | |
21034 | cat conftest.err >&5 | |
a848cd7e SC |
21035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21036 | (exit $ac_status); } && | |
4d4ff94c | 21037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21039 | (eval $ac_try) 2>&5 | |
21040 | ac_status=$? | |
21041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21042 | (exit $ac_status); }; } && | |
21043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21045 | (eval $ac_try) 2>&5 | |
21046 | ac_status=$? | |
21047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21048 | (exit $ac_status); }; }; then | |
21049 | ac_header_compiler=yes | |
21050 | else | |
21051 | echo "$as_me: failed program was:" >&5 | |
21052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21053 | ||
21054 | ac_header_compiler=no | |
21055 | fi | |
ac1cb8d3 | 21056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21057 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21058 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21059 | ||
21060 | # Is the header present? | |
21061 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21062 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21063 | cat >conftest.$ac_ext <<_ACEOF | |
21064 | /* confdefs.h. */ | |
21065 | _ACEOF | |
21066 | cat confdefs.h >>conftest.$ac_ext | |
21067 | cat >>conftest.$ac_ext <<_ACEOF | |
21068 | /* end confdefs.h. */ | |
21069 | #include <tiffio.h> | |
21070 | _ACEOF | |
21071 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21072 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21073 | ac_status=$? | |
21074 | grep -v '^ *+' conftest.er1 >conftest.err | |
21075 | rm -f conftest.er1 | |
21076 | cat conftest.err >&5 | |
21077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21078 | (exit $ac_status); } >/dev/null; then | |
21079 | if test -s conftest.err; then | |
21080 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21081 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21082 | else |
21083 | ac_cpp_err= | |
21084 | fi | |
21085 | else | |
21086 | ac_cpp_err=yes | |
21087 | fi | |
21088 | if test -z "$ac_cpp_err"; then | |
21089 | ac_header_preproc=yes | |
21090 | else | |
21091 | echo "$as_me: failed program was:" >&5 | |
21092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21093 | ||
21094 | ac_header_preproc=no | |
21095 | fi | |
21096 | rm -f conftest.err conftest.$ac_ext | |
21097 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21098 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21099 | ||
21100 | # So? What about this header? | |
ac1cb8d3 VS |
21101 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21102 | yes:no: ) | |
a848cd7e SC |
21103 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21104 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21105 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21106 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21107 | ac_header_preproc=yes | |
a848cd7e | 21108 | ;; |
ac1cb8d3 | 21109 | no:yes:* ) |
a848cd7e SC |
21110 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21111 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21112 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21113 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21114 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21115 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21116 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21117 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21118 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21119 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21120 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21121 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21122 | ( |
21123 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21124 | ## ----------------------------------------- ## |
21125 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21126 | ## ----------------------------------------- ## | |
a848cd7e SC |
21127 | _ASBOX |
21128 | ) | | |
21129 | sed "s/^/$as_me: WARNING: /" >&2 | |
21130 | ;; | |
21131 | esac | |
21132 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21133 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21134 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21136 | else | |
21137 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21138 | fi | |
21139 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21140 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21141 | ||
21142 | fi | |
21143 | if test $ac_cv_header_tiffio_h = yes; then | |
21144 | ||
21145 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21146 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21147 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21149 | else | |
21150 | ac_check_lib_save_LIBS=$LIBS | |
21151 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21152 | cat >conftest.$ac_ext <<_ACEOF | |
21153 | /* confdefs.h. */ | |
21154 | _ACEOF | |
21155 | cat confdefs.h >>conftest.$ac_ext | |
21156 | cat >>conftest.$ac_ext <<_ACEOF | |
21157 | /* end confdefs.h. */ | |
21158 | ||
21159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21160 | #ifdef __cplusplus | |
21161 | extern "C" | |
21162 | #endif | |
21163 | /* We use char because int might match the return type of a gcc2 | |
21164 | builtin and then its argument prototype would still apply. */ | |
21165 | char TIFFError (); | |
21166 | int | |
21167 | main () | |
21168 | { | |
21169 | TIFFError (); | |
21170 | ; | |
21171 | return 0; | |
21172 | } | |
21173 | _ACEOF | |
21174 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21176 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21177 | ac_status=$? |
ac1cb8d3 VS |
21178 | grep -v '^ *+' conftest.er1 >conftest.err |
21179 | rm -f conftest.er1 | |
21180 | cat conftest.err >&5 | |
a848cd7e SC |
21181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21182 | (exit $ac_status); } && | |
4d4ff94c | 21183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21185 | (eval $ac_try) 2>&5 | |
21186 | ac_status=$? | |
21187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21188 | (exit $ac_status); }; } && | |
21189 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21191 | (eval $ac_try) 2>&5 | |
21192 | ac_status=$? | |
21193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21194 | (exit $ac_status); }; }; then | |
21195 | ac_cv_lib_tiff_TIFFError=yes | |
21196 | else | |
21197 | echo "$as_me: failed program was:" >&5 | |
21198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21199 | ||
21200 | ac_cv_lib_tiff_TIFFError=no | |
21201 | fi | |
ac1cb8d3 VS |
21202 | rm -f conftest.err conftest.$ac_objext \ |
21203 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21204 | LIBS=$ac_check_lib_save_LIBS |
21205 | fi | |
21206 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21207 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21208 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21209 | TIFF_LINK=" -ltiff" | |
21210 | fi | |
21211 | ||
21212 | ||
21213 | ||
21214 | fi | |
21215 | ||
21216 | ||
21217 | ||
21218 | if test "x$TIFF_LINK" = "x" ; then | |
21219 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21220 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21221 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21222 | { (exit 1); exit 1; }; } | |
21223 | else | |
21224 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21225 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21226 | wxUSE_LIBTIFF=builtin | |
21227 | fi | |
21228 | else | |
21229 | wxUSE_LIBTIFF=sys | |
21230 | fi | |
21231 | fi | |
21232 | fi | |
21233 | ||
21234 | ||
21235 | if test "$wxUSE_EXPAT" != "no"; then | |
21236 | wxUSE_XML=yes | |
21237 | cat >>confdefs.h <<\_ACEOF | |
21238 | #define wxUSE_EXPAT 1 | |
21239 | _ACEOF | |
21240 | ||
21241 | cat >>confdefs.h <<\_ACEOF | |
21242 | #define wxUSE_XML 1 | |
21243 | _ACEOF | |
21244 | ||
21245 | ||
21246 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21247 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21248 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21249 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21250 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21252 | fi | |
21253 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21254 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21255 | else | |
21256 | # Is the header compilable? | |
21257 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21258 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21259 | cat >conftest.$ac_ext <<_ACEOF | |
21260 | /* confdefs.h. */ | |
21261 | _ACEOF | |
21262 | cat confdefs.h >>conftest.$ac_ext | |
21263 | cat >>conftest.$ac_ext <<_ACEOF | |
21264 | /* end confdefs.h. */ | |
21265 | $ac_includes_default | |
21266 | #include <expat.h> | |
21267 | _ACEOF | |
21268 | rm -f conftest.$ac_objext | |
21269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21271 | ac_status=$? |
ac1cb8d3 VS |
21272 | grep -v '^ *+' conftest.er1 >conftest.err |
21273 | rm -f conftest.er1 | |
21274 | cat conftest.err >&5 | |
a848cd7e SC |
21275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21276 | (exit $ac_status); } && | |
4d4ff94c | 21277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21279 | (eval $ac_try) 2>&5 | |
21280 | ac_status=$? | |
21281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21282 | (exit $ac_status); }; } && | |
21283 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21285 | (eval $ac_try) 2>&5 | |
21286 | ac_status=$? | |
21287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21288 | (exit $ac_status); }; }; then | |
21289 | ac_header_compiler=yes | |
21290 | else | |
21291 | echo "$as_me: failed program was:" >&5 | |
21292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21293 | ||
21294 | ac_header_compiler=no | |
21295 | fi | |
ac1cb8d3 | 21296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21297 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21298 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21299 | ||
21300 | # Is the header present? | |
21301 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21302 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21303 | cat >conftest.$ac_ext <<_ACEOF | |
21304 | /* confdefs.h. */ | |
21305 | _ACEOF | |
21306 | cat confdefs.h >>conftest.$ac_ext | |
21307 | cat >>conftest.$ac_ext <<_ACEOF | |
21308 | /* end confdefs.h. */ | |
21309 | #include <expat.h> | |
21310 | _ACEOF | |
21311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21313 | ac_status=$? | |
21314 | grep -v '^ *+' conftest.er1 >conftest.err | |
21315 | rm -f conftest.er1 | |
21316 | cat conftest.err >&5 | |
21317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21318 | (exit $ac_status); } >/dev/null; then | |
21319 | if test -s conftest.err; then | |
21320 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21321 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21322 | else |
21323 | ac_cpp_err= | |
21324 | fi | |
21325 | else | |
21326 | ac_cpp_err=yes | |
21327 | fi | |
21328 | if test -z "$ac_cpp_err"; then | |
21329 | ac_header_preproc=yes | |
21330 | else | |
21331 | echo "$as_me: failed program was:" >&5 | |
21332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21333 | ||
21334 | ac_header_preproc=no | |
21335 | fi | |
21336 | rm -f conftest.err conftest.$ac_ext | |
21337 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21338 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21339 | ||
21340 | # So? What about this header? | |
ac1cb8d3 VS |
21341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21342 | yes:no: ) | |
a848cd7e SC |
21343 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21344 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21345 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21346 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21347 | ac_header_preproc=yes | |
a848cd7e | 21348 | ;; |
ac1cb8d3 | 21349 | no:yes:* ) |
a848cd7e SC |
21350 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21351 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21352 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21353 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21354 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21355 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21356 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21357 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21358 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21359 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21360 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21361 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21362 | ( |
21363 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21364 | ## ----------------------------------------- ## |
21365 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21366 | ## ----------------------------------------- ## | |
a848cd7e SC |
21367 | _ASBOX |
21368 | ) | | |
21369 | sed "s/^/$as_me: WARNING: /" >&2 | |
21370 | ;; | |
21371 | esac | |
21372 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21373 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21374 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21376 | else | |
21377 | ac_cv_header_expat_h=$ac_header_preproc | |
21378 | fi | |
21379 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21380 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21381 | ||
21382 | fi | |
21383 | if test $ac_cv_header_expat_h = yes; then | |
21384 | found_expat_h=1 | |
21385 | fi | |
21386 | ||
21387 | ||
21388 | if test "x$found_expat_h" = "x1"; then | |
21389 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21390 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21391 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21393 | else | |
21394 | ||
21395 | ||
21396 | ||
21397 | ac_ext=cc | |
21398 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21402 | ||
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 | #include <expat.h> | |
21410 | int | |
21411 | main () | |
21412 | { | |
21413 | ||
21414 | ; | |
21415 | return 0; | |
21416 | } | |
21417 | _ACEOF | |
21418 | rm -f conftest.$ac_objext | |
21419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21421 | ac_status=$? |
ac1cb8d3 VS |
21422 | grep -v '^ *+' conftest.er1 >conftest.err |
21423 | rm -f conftest.er1 | |
21424 | cat conftest.err >&5 | |
a848cd7e SC |
21425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21426 | (exit $ac_status); } && | |
4d4ff94c | 21427 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21429 | (eval $ac_try) 2>&5 | |
21430 | ac_status=$? | |
21431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21432 | (exit $ac_status); }; } && | |
21433 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21435 | (eval $ac_try) 2>&5 | |
21436 | ac_status=$? | |
21437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21438 | (exit $ac_status); }; }; then | |
21439 | wx_cv_expat_is_not_broken=yes | |
21440 | else | |
21441 | echo "$as_me: failed program was:" >&5 | |
21442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21443 | ||
21444 | wx_cv_expat_is_not_broken=no | |
21445 | ||
21446 | fi | |
ac1cb8d3 | 21447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21448 | ac_ext=c |
21449 | ac_cpp='$CPP $CPPFLAGS' | |
21450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21453 | ||
21454 | ||
21455 | ||
21456 | fi | |
21457 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21458 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21459 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21460 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21461 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21462 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21464 | else | |
21465 | ac_check_lib_save_LIBS=$LIBS | |
21466 | LIBS="-lexpat $LIBS" | |
21467 | cat >conftest.$ac_ext <<_ACEOF | |
21468 | /* confdefs.h. */ | |
21469 | _ACEOF | |
21470 | cat confdefs.h >>conftest.$ac_ext | |
21471 | cat >>conftest.$ac_ext <<_ACEOF | |
21472 | /* end confdefs.h. */ | |
21473 | ||
21474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21475 | #ifdef __cplusplus | |
21476 | extern "C" | |
21477 | #endif | |
21478 | /* We use char because int might match the return type of a gcc2 | |
21479 | builtin and then its argument prototype would still apply. */ | |
21480 | char XML_ParserCreate (); | |
21481 | int | |
21482 | main () | |
21483 | { | |
21484 | XML_ParserCreate (); | |
21485 | ; | |
21486 | return 0; | |
21487 | } | |
21488 | _ACEOF | |
21489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21491 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21492 | ac_status=$? |
ac1cb8d3 VS |
21493 | grep -v '^ *+' conftest.er1 >conftest.err |
21494 | rm -f conftest.er1 | |
21495 | cat conftest.err >&5 | |
a848cd7e SC |
21496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21497 | (exit $ac_status); } && | |
4d4ff94c | 21498 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21500 | (eval $ac_try) 2>&5 | |
21501 | ac_status=$? | |
21502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21503 | (exit $ac_status); }; } && | |
21504 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21506 | (eval $ac_try) 2>&5 | |
21507 | ac_status=$? | |
21508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21509 | (exit $ac_status); }; }; then | |
21510 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21511 | else | |
21512 | echo "$as_me: failed program was:" >&5 | |
21513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21514 | ||
21515 | ac_cv_lib_expat_XML_ParserCreate=no | |
21516 | fi | |
ac1cb8d3 VS |
21517 | rm -f conftest.err conftest.$ac_objext \ |
21518 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21519 | LIBS=$ac_check_lib_save_LIBS |
21520 | fi | |
21521 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21522 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21523 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21524 | EXPAT_LINK=" -lexpat" | |
21525 | fi | |
21526 | ||
21527 | fi | |
21528 | fi | |
21529 | if test "x$EXPAT_LINK" = "x" ; then | |
21530 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21531 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21532 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21533 | { (exit 1); exit 1; }; } | |
21534 | else | |
21535 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21536 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21537 | wxUSE_EXPAT=builtin | |
21538 | fi | |
21539 | else | |
21540 | wxUSE_EXPAT=sys | |
21541 | fi | |
21542 | fi | |
21543 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21544 | ||
21545 | ||
21546 | subdirs="$subdirs src/expat" | |
21547 | ||
21548 | fi | |
21549 | fi | |
21550 | ||
21551 | ||
21552 | ||
21553 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21554 | ||
21555 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21556 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21557 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21558 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21560 | fi | |
21561 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21562 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21563 | else | |
21564 | # Is the header compilable? | |
21565 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21566 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21567 | cat >conftest.$ac_ext <<_ACEOF | |
21568 | /* confdefs.h. */ | |
21569 | _ACEOF | |
21570 | cat confdefs.h >>conftest.$ac_ext | |
21571 | cat >>conftest.$ac_ext <<_ACEOF | |
21572 | /* end confdefs.h. */ | |
21573 | $ac_includes_default | |
21574 | #include <mspack.h> | |
21575 | _ACEOF | |
21576 | rm -f conftest.$ac_objext | |
21577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21578 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21579 | ac_status=$? |
ac1cb8d3 VS |
21580 | grep -v '^ *+' conftest.er1 >conftest.err |
21581 | rm -f conftest.er1 | |
21582 | cat conftest.err >&5 | |
a848cd7e SC |
21583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21584 | (exit $ac_status); } && | |
4d4ff94c | 21585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21587 | (eval $ac_try) 2>&5 | |
21588 | ac_status=$? | |
21589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21590 | (exit $ac_status); }; } && | |
21591 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21593 | (eval $ac_try) 2>&5 | |
21594 | ac_status=$? | |
21595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21596 | (exit $ac_status); }; }; then | |
21597 | ac_header_compiler=yes | |
21598 | else | |
21599 | echo "$as_me: failed program was:" >&5 | |
21600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21601 | ||
21602 | ac_header_compiler=no | |
21603 | fi | |
ac1cb8d3 | 21604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21605 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21606 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21607 | ||
21608 | # Is the header present? | |
21609 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21610 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21611 | cat >conftest.$ac_ext <<_ACEOF | |
21612 | /* confdefs.h. */ | |
21613 | _ACEOF | |
21614 | cat confdefs.h >>conftest.$ac_ext | |
21615 | cat >>conftest.$ac_ext <<_ACEOF | |
21616 | /* end confdefs.h. */ | |
21617 | #include <mspack.h> | |
21618 | _ACEOF | |
21619 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21620 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21621 | ac_status=$? | |
21622 | grep -v '^ *+' conftest.er1 >conftest.err | |
21623 | rm -f conftest.er1 | |
21624 | cat conftest.err >&5 | |
21625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21626 | (exit $ac_status); } >/dev/null; then | |
21627 | if test -s conftest.err; then | |
21628 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21629 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21630 | else |
21631 | ac_cpp_err= | |
21632 | fi | |
21633 | else | |
21634 | ac_cpp_err=yes | |
21635 | fi | |
21636 | if test -z "$ac_cpp_err"; then | |
21637 | ac_header_preproc=yes | |
21638 | else | |
21639 | echo "$as_me: failed program was:" >&5 | |
21640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21641 | ||
21642 | ac_header_preproc=no | |
21643 | fi | |
21644 | rm -f conftest.err conftest.$ac_ext | |
21645 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21646 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21647 | ||
21648 | # So? What about this header? | |
ac1cb8d3 VS |
21649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21650 | yes:no: ) | |
a848cd7e SC |
21651 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21652 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21653 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21654 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21655 | ac_header_preproc=yes | |
a848cd7e | 21656 | ;; |
ac1cb8d3 | 21657 | no:yes:* ) |
a848cd7e SC |
21658 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21659 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21660 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21661 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21662 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21663 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21664 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21665 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21666 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21667 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21668 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21669 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21670 | ( |
21671 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21672 | ## ----------------------------------------- ## |
21673 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21674 | ## ----------------------------------------- ## | |
a848cd7e SC |
21675 | _ASBOX |
21676 | ) | | |
21677 | sed "s/^/$as_me: WARNING: /" >&2 | |
21678 | ;; | |
21679 | esac | |
21680 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21681 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21682 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21684 | else | |
21685 | ac_cv_header_mspack_h=$ac_header_preproc | |
21686 | fi | |
21687 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21688 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21689 | ||
21690 | fi | |
21691 | if test $ac_cv_header_mspack_h = yes; then | |
21692 | found_mspack_h=1 | |
21693 | fi | |
21694 | ||
21695 | ||
21696 | if test "x$found_mspack_h" = "x1"; then | |
21697 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21698 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21699 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21701 | else | |
21702 | ac_check_lib_save_LIBS=$LIBS | |
21703 | LIBS="-lmspack $LIBS" | |
21704 | cat >conftest.$ac_ext <<_ACEOF | |
21705 | /* confdefs.h. */ | |
21706 | _ACEOF | |
21707 | cat confdefs.h >>conftest.$ac_ext | |
21708 | cat >>conftest.$ac_ext <<_ACEOF | |
21709 | /* end confdefs.h. */ | |
21710 | ||
21711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21712 | #ifdef __cplusplus | |
21713 | extern "C" | |
21714 | #endif | |
21715 | /* We use char because int might match the return type of a gcc2 | |
21716 | builtin and then its argument prototype would still apply. */ | |
21717 | char mspack_create_chm_decompressor (); | |
21718 | int | |
21719 | main () | |
21720 | { | |
21721 | mspack_create_chm_decompressor (); | |
21722 | ; | |
21723 | return 0; | |
21724 | } | |
21725 | _ACEOF | |
21726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21728 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21729 | ac_status=$? |
ac1cb8d3 VS |
21730 | grep -v '^ *+' conftest.er1 >conftest.err |
21731 | rm -f conftest.er1 | |
21732 | cat conftest.err >&5 | |
a848cd7e SC |
21733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21734 | (exit $ac_status); } && | |
4d4ff94c | 21735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21737 | (eval $ac_try) 2>&5 | |
21738 | ac_status=$? | |
21739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21740 | (exit $ac_status); }; } && | |
21741 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21743 | (eval $ac_try) 2>&5 | |
21744 | ac_status=$? | |
21745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21746 | (exit $ac_status); }; }; then | |
21747 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
21748 | else | |
21749 | echo "$as_me: failed program was:" >&5 | |
21750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21751 | ||
21752 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
21753 | fi | |
ac1cb8d3 VS |
21754 | rm -f conftest.err conftest.$ac_objext \ |
21755 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21756 | LIBS=$ac_check_lib_save_LIBS |
21757 | fi | |
21758 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
21759 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
21760 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
21761 | MSPACK_LINK=" -lmspack" | |
21762 | fi | |
21763 | ||
21764 | fi | |
21765 | if test "x$MSPACK_LINK" = "x" ; then | |
21766 | wxUSE_LIBMSPACK=no | |
21767 | else | |
21768 | cat >>confdefs.h <<\_ACEOF | |
21769 | #define wxUSE_LIBMSPACK 1 | |
21770 | _ACEOF | |
21771 | ||
21772 | fi | |
21773 | fi | |
21774 | ||
21775 | ||
21776 | ||
21777 | AFMINSTALL= | |
21778 | WIN32INSTALL= | |
21779 | ||
21780 | TOOLKIT= | |
21781 | TOOLKIT_INCLUDE= | |
21782 | WIDGET_SET= | |
21783 | ||
21784 | if test "$USE_WIN32" = 1 ; then | |
21785 | ||
21786 | for ac_header in w32api.h | |
21787 | do | |
21788 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21789 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21790 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21792 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21794 | fi | |
21795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21796 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21797 | else | |
21798 | # Is the header compilable? | |
21799 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21800 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21801 | cat >conftest.$ac_ext <<_ACEOF | |
21802 | /* confdefs.h. */ | |
21803 | _ACEOF | |
21804 | cat confdefs.h >>conftest.$ac_ext | |
21805 | cat >>conftest.$ac_ext <<_ACEOF | |
21806 | /* end confdefs.h. */ | |
21807 | $ac_includes_default | |
21808 | #include <$ac_header> | |
21809 | _ACEOF | |
21810 | rm -f conftest.$ac_objext | |
21811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21812 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21813 | ac_status=$? |
ac1cb8d3 VS |
21814 | grep -v '^ *+' conftest.er1 >conftest.err |
21815 | rm -f conftest.er1 | |
21816 | cat conftest.err >&5 | |
a848cd7e SC |
21817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21818 | (exit $ac_status); } && | |
4d4ff94c | 21819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21821 | (eval $ac_try) 2>&5 | |
21822 | ac_status=$? | |
21823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21824 | (exit $ac_status); }; } && | |
21825 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21827 | (eval $ac_try) 2>&5 | |
21828 | ac_status=$? | |
21829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21830 | (exit $ac_status); }; }; then | |
21831 | ac_header_compiler=yes | |
21832 | else | |
21833 | echo "$as_me: failed program was:" >&5 | |
21834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21835 | ||
21836 | ac_header_compiler=no | |
21837 | fi | |
ac1cb8d3 | 21838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21839 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21840 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21841 | ||
21842 | # Is the header present? | |
21843 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21844 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21845 | cat >conftest.$ac_ext <<_ACEOF | |
21846 | /* confdefs.h. */ | |
21847 | _ACEOF | |
21848 | cat confdefs.h >>conftest.$ac_ext | |
21849 | cat >>conftest.$ac_ext <<_ACEOF | |
21850 | /* end confdefs.h. */ | |
21851 | #include <$ac_header> | |
21852 | _ACEOF | |
21853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21855 | ac_status=$? | |
21856 | grep -v '^ *+' conftest.er1 >conftest.err | |
21857 | rm -f conftest.er1 | |
21858 | cat conftest.err >&5 | |
21859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21860 | (exit $ac_status); } >/dev/null; then | |
21861 | if test -s conftest.err; then | |
21862 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21863 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21864 | else |
21865 | ac_cpp_err= | |
21866 | fi | |
21867 | else | |
21868 | ac_cpp_err=yes | |
21869 | fi | |
21870 | if test -z "$ac_cpp_err"; then | |
21871 | ac_header_preproc=yes | |
21872 | else | |
21873 | echo "$as_me: failed program was:" >&5 | |
21874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21875 | ||
21876 | ac_header_preproc=no | |
21877 | fi | |
21878 | rm -f conftest.err conftest.$ac_ext | |
21879 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21880 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21881 | ||
21882 | # So? What about this header? | |
ac1cb8d3 VS |
21883 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21884 | yes:no: ) | |
a848cd7e SC |
21885 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21886 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21887 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21888 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21889 | ac_header_preproc=yes | |
a848cd7e | 21890 | ;; |
ac1cb8d3 | 21891 | no:yes:* ) |
a848cd7e SC |
21892 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21893 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21894 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21895 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21896 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21897 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21898 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21899 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21900 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21901 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21902 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21903 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21904 | ( |
21905 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21906 | ## ----------------------------------------- ## |
21907 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21908 | ## ----------------------------------------- ## | |
a848cd7e SC |
21909 | _ASBOX |
21910 | ) | | |
21911 | sed "s/^/$as_me: WARNING: /" >&2 | |
21912 | ;; | |
21913 | esac | |
21914 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21915 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21916 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21918 | else | |
ac1cb8d3 | 21919 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
21920 | fi |
21921 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21922 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21923 | ||
21924 | fi | |
21925 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21926 | cat >>confdefs.h <<_ACEOF | |
21927 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21928 | _ACEOF | |
21929 | ||
21930 | fi | |
21931 | ||
21932 | done | |
21933 | ||
21934 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21935 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21936 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21937 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21939 | fi | |
21940 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
21941 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21942 | else | |
21943 | # Is the header compilable? | |
21944 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
21945 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
21946 | cat >conftest.$ac_ext <<_ACEOF | |
21947 | /* confdefs.h. */ | |
21948 | _ACEOF | |
21949 | cat confdefs.h >>conftest.$ac_ext | |
21950 | cat >>conftest.$ac_ext <<_ACEOF | |
21951 | /* end confdefs.h. */ | |
21952 | $ac_includes_default | |
21953 | #include <windows.h> | |
21954 | _ACEOF | |
21955 | rm -f conftest.$ac_objext | |
21956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21957 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21958 | ac_status=$? |
ac1cb8d3 VS |
21959 | grep -v '^ *+' conftest.er1 >conftest.err |
21960 | rm -f conftest.er1 | |
21961 | cat conftest.err >&5 | |
a848cd7e SC |
21962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21963 | (exit $ac_status); } && | |
4d4ff94c | 21964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21966 | (eval $ac_try) 2>&5 | |
21967 | ac_status=$? | |
21968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21969 | (exit $ac_status); }; } && | |
21970 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21972 | (eval $ac_try) 2>&5 | |
21973 | ac_status=$? | |
21974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21975 | (exit $ac_status); }; }; then | |
21976 | ac_header_compiler=yes | |
21977 | else | |
21978 | echo "$as_me: failed program was:" >&5 | |
21979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21980 | ||
21981 | ac_header_compiler=no | |
21982 | fi | |
ac1cb8d3 | 21983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21984 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21985 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21986 | ||
21987 | # Is the header present? | |
21988 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
21989 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
21990 | cat >conftest.$ac_ext <<_ACEOF | |
21991 | /* confdefs.h. */ | |
21992 | _ACEOF | |
21993 | cat confdefs.h >>conftest.$ac_ext | |
21994 | cat >>conftest.$ac_ext <<_ACEOF | |
21995 | /* end confdefs.h. */ | |
21996 | #include <windows.h> | |
21997 | _ACEOF | |
21998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22000 | ac_status=$? | |
22001 | grep -v '^ *+' conftest.er1 >conftest.err | |
22002 | rm -f conftest.er1 | |
22003 | cat conftest.err >&5 | |
22004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22005 | (exit $ac_status); } >/dev/null; then | |
22006 | if test -s conftest.err; then | |
22007 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22008 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22009 | else |
22010 | ac_cpp_err= | |
22011 | fi | |
22012 | else | |
22013 | ac_cpp_err=yes | |
22014 | fi | |
22015 | if test -z "$ac_cpp_err"; then | |
22016 | ac_header_preproc=yes | |
22017 | else | |
22018 | echo "$as_me: failed program was:" >&5 | |
22019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22020 | ||
22021 | ac_header_preproc=no | |
22022 | fi | |
22023 | rm -f conftest.err conftest.$ac_ext | |
22024 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22025 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22026 | ||
22027 | # So? What about this header? | |
ac1cb8d3 VS |
22028 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22029 | yes:no: ) | |
a848cd7e SC |
22030 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22031 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22032 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22033 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22034 | ac_header_preproc=yes | |
a848cd7e | 22035 | ;; |
ac1cb8d3 | 22036 | no:yes:* ) |
a848cd7e SC |
22037 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22038 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22039 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22040 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22041 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22042 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22043 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22044 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22045 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22046 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22047 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22048 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22049 | ( |
22050 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22051 | ## ----------------------------------------- ## |
22052 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22053 | ## ----------------------------------------- ## | |
a848cd7e SC |
22054 | _ASBOX |
22055 | ) | | |
22056 | sed "s/^/$as_me: WARNING: /" >&2 | |
22057 | ;; | |
22058 | esac | |
22059 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22060 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22061 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22063 | else | |
22064 | ac_cv_header_windows_h=$ac_header_preproc | |
22065 | fi | |
22066 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22067 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22068 | ||
22069 | fi | |
22070 | if test $ac_cv_header_windows_h = yes; then | |
22071 | : | |
22072 | else | |
22073 | ||
22074 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22075 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22076 | { (exit 1); exit 1; }; } | |
22077 | ||
22078 | fi | |
22079 | ||
22080 | ||
22081 | ||
22082 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22083 | ||
22084 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22085 | LIBS="$LIBS -loleacc" | |
22086 | fi | |
22087 | ||
22088 | case "${host}" in | |
22089 | *-*-cygwin* ) | |
22090 | LIBS="$LIBS -lkernel32 -luser32" | |
22091 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22092 | esac | |
22093 | ||
22094 | if test "$wxUSE_ODBC" = "sys" ; then | |
22095 | wxUSE_ODBC = "yes" | |
22096 | fi | |
22097 | if test "$wxUSE_ODBC" = "yes" ; then | |
22098 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22099 | cat >>confdefs.h <<\_ACEOF | |
22100 | #define wxUSE_ODBC 1 | |
22101 | _ACEOF | |
22102 | ||
22103 | fi | |
22104 | ||
22105 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22106 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22107 | ||
22108 | WIN32INSTALL=win32install | |
22109 | fi | |
22110 | ||
22111 | if test "$wxUSE_GUI" = "yes"; then | |
22112 | USE_GUI=1 | |
22113 | ||
22114 | GUI_TK_LIBRARY= | |
22115 | ||
22116 | WXGTK12= | |
22117 | WXGTK127= | |
22118 | WXGTK20= | |
22119 | WXGPE= | |
22120 | ||
22121 | if test "$wxUSE_MSW" = 1 ; then | |
22122 | TOOLKIT=MSW | |
22123 | GUIDIST=MSW_DIST | |
22124 | ||
22125 | case "${host}" in | |
22126 | *-*-mingw32* ) | |
22127 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22128 | esac | |
22129 | fi | |
22130 | ||
22131 | if test "$wxUSE_GTK" = 1; then | |
22132 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22133 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22134 | ||
22135 | gtk_version_cached=1 | |
22136 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22138 | else | |
22139 | ||
22140 | gtk_version_cached=0 | |
22141 | echo "$as_me:$LINENO: result: " >&5 | |
22142 | echo "${ECHO_T}" >&6 | |
22143 | ||
22144 | GTK_MODULES= | |
22145 | if test "$wxUSE_THREADS" = "yes"; then | |
22146 | GTK_MODULES=gthread | |
22147 | fi | |
22148 | ||
22149 | wx_cv_lib_gtk= | |
22150 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22151 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22152 | if test "${enable_gtktest+set}" = set; then | |
22153 | enableval="$enable_gtktest" | |
22154 | ||
22155 | else | |
22156 | enable_gtktest=yes | |
22157 | fi; | |
22158 | ||
22159 | pkg_config_args=gtk+-2.0 | |
22160 | for module in . $GTK_MODULES | |
22161 | do | |
22162 | case "$module" in | |
22163 | gthread) | |
22164 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22165 | ;; | |
22166 | esac | |
22167 | done | |
22168 | ||
22169 | no_gtk="" | |
22170 | ||
22171 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22172 | set dummy pkg-config; ac_word=$2 | |
22173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22175 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22177 | else | |
22178 | case $PKG_CONFIG in | |
22179 | [\\/]* | ?:[\\/]*) | |
22180 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22181 | ;; | |
22182 | *) | |
22183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22184 | for as_dir in $PATH | |
22185 | do | |
22186 | IFS=$as_save_IFS | |
22187 | test -z "$as_dir" && as_dir=. | |
22188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22190 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22192 | break 2 | |
22193 | fi | |
22194 | done | |
22195 | done | |
22196 | ||
22197 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22198 | ;; | |
22199 | esac | |
22200 | fi | |
22201 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22202 | ||
22203 | if test -n "$PKG_CONFIG"; then | |
22204 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22205 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22206 | else | |
22207 | echo "$as_me:$LINENO: result: no" >&5 | |
22208 | echo "${ECHO_T}no" >&6 | |
22209 | fi | |
22210 | ||
22211 | ||
22212 | if test x$PKG_CONFIG != xno ; then | |
22213 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22214 | : | |
22215 | else | |
c2218763 | 22216 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22217 | no_gtk=yes |
22218 | PKG_CONFIG=no | |
22219 | fi | |
22220 | else | |
22221 | no_gtk=yes | |
22222 | fi | |
22223 | ||
22224 | min_gtk_version=2.0.0 | |
22225 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22226 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22227 | ||
22228 | if test x$PKG_CONFIG != xno ; then | |
22229 | ## don't try to run the test against uninstalled libtool libs | |
22230 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22231 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22232 | enable_gtktest=no | |
22233 | fi | |
22234 | ||
22235 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22236 | : | |
22237 | else | |
22238 | no_gtk=yes | |
22239 | fi | |
22240 | fi | |
22241 | ||
22242 | if test x"$no_gtk" = x ; then | |
22243 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22244 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22245 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22246 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22247 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22248 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22249 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22250 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22251 | if test "x$enable_gtktest" = "xyes" ; then | |
22252 | ac_save_CFLAGS="$CFLAGS" | |
22253 | ac_save_LIBS="$LIBS" | |
22254 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22255 | LIBS="$GTK_LIBS $LIBS" | |
22256 | rm -f conf.gtktest | |
22257 | if test "$cross_compiling" = yes; then | |
22258 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22259 | else | |
22260 | cat >conftest.$ac_ext <<_ACEOF | |
22261 | /* confdefs.h. */ | |
22262 | _ACEOF | |
22263 | cat confdefs.h >>conftest.$ac_ext | |
22264 | cat >>conftest.$ac_ext <<_ACEOF | |
22265 | /* end confdefs.h. */ | |
22266 | ||
22267 | #include <gtk/gtk.h> | |
22268 | #include <stdio.h> | |
22269 | #include <stdlib.h> | |
22270 | ||
22271 | int | |
22272 | main () | |
22273 | { | |
22274 | int major, minor, micro; | |
22275 | char *tmp_version; | |
22276 | ||
22277 | system ("touch conf.gtktest"); | |
22278 | ||
22279 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22280 | tmp_version = g_strdup("$min_gtk_version"); | |
22281 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22282 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22283 | exit(1); | |
22284 | } | |
22285 | ||
22286 | if ((gtk_major_version != $gtk_config_major_version) || | |
22287 | (gtk_minor_version != $gtk_config_minor_version) || | |
22288 | (gtk_micro_version != $gtk_config_micro_version)) | |
22289 | { | |
22290 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22291 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22292 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22293 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22294 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22295 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22296 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22297 | printf("*** required on your system.\n"); | |
22298 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22299 | printf("*** to point to the correct configuration files\n"); | |
22300 | } | |
22301 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22302 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22303 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22304 | { | |
22305 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22306 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22307 | printf("*** library (version %d.%d.%d)\n", | |
22308 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22309 | } | |
22310 | else | |
22311 | { | |
22312 | if ((gtk_major_version > major) || | |
22313 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22314 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22315 | { | |
22316 | return 0; | |
22317 | } | |
22318 | else | |
22319 | { | |
22320 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22321 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22322 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22323 | major, minor, micro); | |
22324 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22325 | printf("***\n"); | |
22326 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22327 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22328 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22329 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22330 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22331 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22332 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22333 | } | |
22334 | } | |
22335 | return 1; | |
22336 | } | |
22337 | ||
22338 | _ACEOF | |
22339 | rm -f conftest$ac_exeext | |
22340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22341 | (eval $ac_link) 2>&5 | |
22342 | ac_status=$? | |
22343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22344 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22346 | (eval $ac_try) 2>&5 | |
22347 | ac_status=$? | |
22348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22349 | (exit $ac_status); }; }; then | |
22350 | : | |
22351 | else | |
22352 | echo "$as_me: program exited with status $ac_status" >&5 | |
22353 | echo "$as_me: failed program was:" >&5 | |
22354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22355 | ||
22356 | ( exit $ac_status ) | |
22357 | no_gtk=yes | |
22358 | fi | |
ac1cb8d3 | 22359 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22360 | fi |
22361 | CFLAGS="$ac_save_CFLAGS" | |
22362 | LIBS="$ac_save_LIBS" | |
22363 | fi | |
22364 | fi | |
22365 | if test "x$no_gtk" = x ; then | |
22366 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22367 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22368 | wx_cv_lib_gtk=2.0 | |
22369 | else | |
22370 | echo "$as_me:$LINENO: result: no" >&5 | |
22371 | echo "${ECHO_T}no" >&6 | |
22372 | if test "$PKG_CONFIG" = "no" ; then | |
22373 | echo "*** A new enough version of pkg-config was not found." | |
22374 | echo "*** See http://pkgconfig.sourceforge.net" | |
22375 | else | |
22376 | if test -f conf.gtktest ; then | |
22377 | : | |
22378 | else | |
22379 | echo "*** Could not run GTK+ test program, checking why..." | |
22380 | ac_save_CFLAGS="$CFLAGS" | |
22381 | ac_save_LIBS="$LIBS" | |
22382 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22383 | LIBS="$LIBS $GTK_LIBS" | |
22384 | cat >conftest.$ac_ext <<_ACEOF | |
22385 | /* confdefs.h. */ | |
22386 | _ACEOF | |
22387 | cat confdefs.h >>conftest.$ac_ext | |
22388 | cat >>conftest.$ac_ext <<_ACEOF | |
22389 | /* end confdefs.h. */ | |
22390 | ||
22391 | #include <gtk/gtk.h> | |
22392 | #include <stdio.h> | |
22393 | ||
22394 | int | |
22395 | main () | |
22396 | { | |
22397 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22398 | ; | |
22399 | return 0; | |
22400 | } | |
22401 | _ACEOF | |
22402 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22404 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22405 | ac_status=$? |
ac1cb8d3 VS |
22406 | grep -v '^ *+' conftest.er1 >conftest.err |
22407 | rm -f conftest.er1 | |
22408 | cat conftest.err >&5 | |
a848cd7e SC |
22409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22410 | (exit $ac_status); } && | |
4d4ff94c | 22411 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22413 | (eval $ac_try) 2>&5 | |
22414 | ac_status=$? | |
22415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22416 | (exit $ac_status); }; } && | |
22417 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22419 | (eval $ac_try) 2>&5 | |
22420 | ac_status=$? | |
22421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22422 | (exit $ac_status); }; }; then | |
22423 | echo "*** The test program compiled, but did not run. This usually means" | |
22424 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22425 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22426 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22427 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22428 | echo "*** is required on your system" | |
22429 | echo "***" | |
22430 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22431 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22432 | else | |
22433 | echo "$as_me: failed program was:" >&5 | |
22434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22435 | ||
22436 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22437 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22438 | fi | |
ac1cb8d3 VS |
22439 | rm -f conftest.err conftest.$ac_objext \ |
22440 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22441 | CFLAGS="$ac_save_CFLAGS" |
22442 | LIBS="$ac_save_LIBS" | |
22443 | fi | |
22444 | fi | |
22445 | GTK_CFLAGS="" | |
22446 | GTK_LIBS="" | |
22447 | : | |
22448 | fi | |
22449 | ||
22450 | ||
22451 | rm -f conf.gtktest | |
22452 | ||
22453 | else | |
22454 | ||
22455 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22456 | if test "${with_gtk_prefix+set}" = set; then | |
22457 | withval="$with_gtk_prefix" | |
22458 | gtk_config_prefix="$withval" | |
22459 | else | |
22460 | gtk_config_prefix="" | |
22461 | fi; | |
22462 | ||
22463 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22464 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22465 | withval="$with_gtk_exec_prefix" | |
22466 | gtk_config_exec_prefix="$withval" | |
22467 | else | |
22468 | gtk_config_exec_prefix="" | |
22469 | fi; | |
22470 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22471 | if test "${enable_gtktest+set}" = set; then | |
22472 | enableval="$enable_gtktest" | |
22473 | ||
22474 | else | |
22475 | enable_gtktest=yes | |
22476 | fi; | |
22477 | ||
22478 | for module in . $GTK_MODULES | |
22479 | do | |
22480 | case "$module" in | |
22481 | gthread) | |
22482 | gtk_config_args="$gtk_config_args gthread" | |
22483 | ;; | |
22484 | esac | |
22485 | done | |
22486 | ||
22487 | if test x$gtk_config_exec_prefix != x ; then | |
22488 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22489 | if test x${GTK_CONFIG+set} != xset ; then | |
22490 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22491 | fi | |
22492 | fi | |
22493 | if test x$gtk_config_prefix != x ; then | |
22494 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22495 | if test x${GTK_CONFIG+set} != xset ; then | |
22496 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22497 | fi | |
22498 | fi | |
22499 | ||
22500 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22501 | set dummy gtk-config; ac_word=$2 | |
22502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22504 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22506 | else | |
22507 | case $GTK_CONFIG in | |
22508 | [\\/]* | ?:[\\/]*) | |
22509 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22510 | ;; | |
22511 | *) | |
22512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22513 | for as_dir in $PATH | |
22514 | do | |
22515 | IFS=$as_save_IFS | |
22516 | test -z "$as_dir" && as_dir=. | |
22517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22519 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22521 | break 2 | |
22522 | fi | |
22523 | done | |
22524 | done | |
22525 | ||
22526 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22527 | ;; | |
22528 | esac | |
22529 | fi | |
22530 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22531 | ||
22532 | if test -n "$GTK_CONFIG"; then | |
22533 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22534 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22535 | else | |
22536 | echo "$as_me:$LINENO: result: no" >&5 | |
22537 | echo "${ECHO_T}no" >&6 | |
22538 | fi | |
22539 | ||
22540 | min_gtk_version=1.2.7 | |
22541 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22542 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22543 | no_gtk="" | |
22544 | if test "$GTK_CONFIG" = "no" ; then | |
22545 | no_gtk=yes | |
22546 | else | |
22547 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22548 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22549 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22550 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22551 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22552 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22553 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22554 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22555 | if test "x$enable_gtktest" = "xyes" ; then | |
22556 | ac_save_CFLAGS="$CFLAGS" | |
22557 | ac_save_LIBS="$LIBS" | |
22558 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22559 | LIBS="$GTK_LIBS $LIBS" | |
22560 | rm -f conf.gtktest | |
22561 | if test "$cross_compiling" = yes; then | |
22562 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22563 | else | |
22564 | cat >conftest.$ac_ext <<_ACEOF | |
22565 | /* confdefs.h. */ | |
22566 | _ACEOF | |
22567 | cat confdefs.h >>conftest.$ac_ext | |
22568 | cat >>conftest.$ac_ext <<_ACEOF | |
22569 | /* end confdefs.h. */ | |
22570 | ||
22571 | #include <gtk/gtk.h> | |
22572 | #include <stdio.h> | |
22573 | #include <stdlib.h> | |
22574 | ||
22575 | int | |
22576 | main () | |
22577 | { | |
22578 | int major, minor, micro; | |
22579 | char *tmp_version; | |
22580 | ||
22581 | system ("touch conf.gtktest"); | |
22582 | ||
22583 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22584 | tmp_version = g_strdup("$min_gtk_version"); | |
22585 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22586 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22587 | exit(1); | |
22588 | } | |
22589 | ||
22590 | if ((gtk_major_version != $gtk_config_major_version) || | |
22591 | (gtk_minor_version != $gtk_config_minor_version) || | |
22592 | (gtk_micro_version != $gtk_config_micro_version)) | |
22593 | { | |
22594 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22595 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22596 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22597 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22598 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22599 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22600 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22601 | printf("*** required on your system.\n"); | |
22602 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22603 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22604 | printf("*** before re-running configure\n"); | |
22605 | } | |
22606 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22607 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22608 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22609 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22610 | { | |
22611 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22612 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22613 | printf("*** library (version %d.%d.%d)\n", | |
22614 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22615 | } | |
22616 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22617 | else | |
22618 | { | |
22619 | if ((gtk_major_version > major) || | |
22620 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22621 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22622 | { | |
22623 | return 0; | |
22624 | } | |
22625 | else | |
22626 | { | |
22627 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22628 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22629 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22630 | major, minor, micro); | |
22631 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22632 | printf("***\n"); | |
22633 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22634 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22635 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22636 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22637 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22638 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22639 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22640 | } | |
22641 | } | |
22642 | return 1; | |
22643 | } | |
22644 | ||
22645 | _ACEOF | |
22646 | rm -f conftest$ac_exeext | |
22647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22648 | (eval $ac_link) 2>&5 | |
22649 | ac_status=$? | |
22650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22651 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22653 | (eval $ac_try) 2>&5 | |
22654 | ac_status=$? | |
22655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22656 | (exit $ac_status); }; }; then | |
22657 | : | |
22658 | else | |
22659 | echo "$as_me: program exited with status $ac_status" >&5 | |
22660 | echo "$as_me: failed program was:" >&5 | |
22661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22662 | ||
22663 | ( exit $ac_status ) | |
22664 | no_gtk=yes | |
22665 | fi | |
ac1cb8d3 | 22666 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22667 | fi |
22668 | CFLAGS="$ac_save_CFLAGS" | |
22669 | LIBS="$ac_save_LIBS" | |
22670 | fi | |
22671 | fi | |
22672 | if test "x$no_gtk" = x ; then | |
22673 | echo "$as_me:$LINENO: result: yes" >&5 | |
22674 | echo "${ECHO_T}yes" >&6 | |
22675 | wx_cv_lib_gtk=1.2.7 | |
22676 | else | |
22677 | echo "$as_me:$LINENO: result: no" >&5 | |
22678 | echo "${ECHO_T}no" >&6 | |
22679 | if test "$GTK_CONFIG" = "no" ; then | |
22680 | echo "*** The gtk-config script installed by GTK could not be found" | |
22681 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22682 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22683 | echo "*** full path to gtk-config." | |
22684 | else | |
22685 | if test -f conf.gtktest ; then | |
22686 | : | |
22687 | else | |
22688 | echo "*** Could not run GTK test program, checking why..." | |
22689 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22690 | LIBS="$LIBS $GTK_LIBS" | |
22691 | cat >conftest.$ac_ext <<_ACEOF | |
22692 | /* confdefs.h. */ | |
22693 | _ACEOF | |
22694 | cat confdefs.h >>conftest.$ac_ext | |
22695 | cat >>conftest.$ac_ext <<_ACEOF | |
22696 | /* end confdefs.h. */ | |
22697 | ||
22698 | #include <gtk/gtk.h> | |
22699 | #include <stdio.h> | |
22700 | ||
22701 | int | |
22702 | main () | |
22703 | { | |
22704 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22705 | ; | |
22706 | return 0; | |
22707 | } | |
22708 | _ACEOF | |
22709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22711 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22712 | ac_status=$? |
ac1cb8d3 VS |
22713 | grep -v '^ *+' conftest.er1 >conftest.err |
22714 | rm -f conftest.er1 | |
22715 | cat conftest.err >&5 | |
a848cd7e SC |
22716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22717 | (exit $ac_status); } && | |
4d4ff94c | 22718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22720 | (eval $ac_try) 2>&5 | |
22721 | ac_status=$? | |
22722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22723 | (exit $ac_status); }; } && | |
22724 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22726 | (eval $ac_try) 2>&5 | |
22727 | ac_status=$? | |
22728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22729 | (exit $ac_status); }; }; then | |
22730 | echo "*** The test program compiled, but did not run. This usually means" | |
22731 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22732 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22733 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22734 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22735 | echo "*** is required on your system" | |
22736 | echo "***" | |
22737 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22738 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22739 | echo "***" | |
22740 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22741 | echo "*** came with the system with the command" | |
22742 | echo "***" | |
22743 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
22744 | else | |
22745 | echo "$as_me: failed program was:" >&5 | |
22746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22747 | ||
22748 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22749 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
22750 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
22751 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
22752 | fi | |
ac1cb8d3 VS |
22753 | rm -f conftest.err conftest.$ac_objext \ |
22754 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22755 | CFLAGS="$ac_save_CFLAGS" |
22756 | LIBS="$ac_save_LIBS" | |
22757 | fi | |
22758 | fi | |
22759 | GTK_CFLAGS="" | |
22760 | GTK_LIBS="" | |
22761 | : | |
22762 | fi | |
22763 | ||
22764 | ||
22765 | rm -f conf.gtktest | |
22766 | ||
22767 | ||
22768 | if test -z "$wx_cv_lib_gtk"; then | |
22769 | ||
22770 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22771 | if test "${with_gtk_prefix+set}" = set; then | |
22772 | withval="$with_gtk_prefix" | |
22773 | gtk_config_prefix="$withval" | |
22774 | else | |
22775 | gtk_config_prefix="" | |
22776 | fi; | |
22777 | ||
22778 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22779 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22780 | withval="$with_gtk_exec_prefix" | |
22781 | gtk_config_exec_prefix="$withval" | |
22782 | else | |
22783 | gtk_config_exec_prefix="" | |
22784 | fi; | |
22785 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22786 | if test "${enable_gtktest+set}" = set; then | |
22787 | enableval="$enable_gtktest" | |
22788 | ||
22789 | else | |
22790 | enable_gtktest=yes | |
22791 | fi; | |
22792 | ||
22793 | for module in . $GTK_MODULES | |
22794 | do | |
22795 | case "$module" in | |
22796 | gthread) | |
22797 | gtk_config_args="$gtk_config_args gthread" | |
22798 | ;; | |
22799 | esac | |
22800 | done | |
22801 | ||
22802 | if test x$gtk_config_exec_prefix != x ; then | |
22803 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22804 | if test x${GTK_CONFIG+set} != xset ; then | |
22805 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22806 | fi | |
22807 | fi | |
22808 | if test x$gtk_config_prefix != x ; then | |
22809 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22810 | if test x${GTK_CONFIG+set} != xset ; then | |
22811 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22812 | fi | |
22813 | fi | |
22814 | ||
22815 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22816 | set dummy gtk-config; ac_word=$2 | |
22817 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22819 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22821 | else | |
22822 | case $GTK_CONFIG in | |
22823 | [\\/]* | ?:[\\/]*) | |
22824 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22825 | ;; | |
22826 | *) | |
22827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22828 | for as_dir in $PATH | |
22829 | do | |
22830 | IFS=$as_save_IFS | |
22831 | test -z "$as_dir" && as_dir=. | |
22832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22833 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22834 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22836 | break 2 | |
22837 | fi | |
22838 | done | |
22839 | done | |
22840 | ||
22841 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22842 | ;; | |
22843 | esac | |
22844 | fi | |
22845 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22846 | ||
22847 | if test -n "$GTK_CONFIG"; then | |
22848 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22849 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22850 | else | |
22851 | echo "$as_me:$LINENO: result: no" >&5 | |
22852 | echo "${ECHO_T}no" >&6 | |
22853 | fi | |
22854 | ||
22855 | min_gtk_version=1.2.3 | |
22856 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22857 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22858 | no_gtk="" | |
22859 | if test "$GTK_CONFIG" = "no" ; then | |
22860 | no_gtk=yes | |
22861 | else | |
22862 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22863 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22864 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22865 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22866 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22867 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22868 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22869 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22870 | if test "x$enable_gtktest" = "xyes" ; then | |
22871 | ac_save_CFLAGS="$CFLAGS" | |
22872 | ac_save_LIBS="$LIBS" | |
22873 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22874 | LIBS="$GTK_LIBS $LIBS" | |
22875 | rm -f conf.gtktest | |
22876 | if test "$cross_compiling" = yes; then | |
22877 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22878 | else | |
22879 | cat >conftest.$ac_ext <<_ACEOF | |
22880 | /* confdefs.h. */ | |
22881 | _ACEOF | |
22882 | cat confdefs.h >>conftest.$ac_ext | |
22883 | cat >>conftest.$ac_ext <<_ACEOF | |
22884 | /* end confdefs.h. */ | |
22885 | ||
22886 | #include <gtk/gtk.h> | |
22887 | #include <stdio.h> | |
22888 | #include <stdlib.h> | |
22889 | ||
22890 | int | |
22891 | main () | |
22892 | { | |
22893 | int major, minor, micro; | |
22894 | char *tmp_version; | |
22895 | ||
22896 | system ("touch conf.gtktest"); | |
22897 | ||
22898 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22899 | tmp_version = g_strdup("$min_gtk_version"); | |
22900 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22901 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22902 | exit(1); | |
22903 | } | |
22904 | ||
22905 | if ((gtk_major_version != $gtk_config_major_version) || | |
22906 | (gtk_minor_version != $gtk_config_minor_version) || | |
22907 | (gtk_micro_version != $gtk_config_micro_version)) | |
22908 | { | |
22909 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22910 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22911 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22912 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22913 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22914 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22915 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22916 | printf("*** required on your system.\n"); | |
22917 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22918 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22919 | printf("*** before re-running configure\n"); | |
22920 | } | |
22921 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22922 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22923 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22924 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22925 | { | |
22926 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22927 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22928 | printf("*** library (version %d.%d.%d)\n", | |
22929 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22930 | } | |
22931 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22932 | else | |
22933 | { | |
22934 | if ((gtk_major_version > major) || | |
22935 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22936 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22937 | { | |
22938 | return 0; | |
22939 | } | |
22940 | else | |
22941 | { | |
22942 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22943 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22944 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22945 | major, minor, micro); | |
22946 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22947 | printf("***\n"); | |
22948 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22949 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22950 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22951 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22952 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22953 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22954 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22955 | } | |
22956 | } | |
22957 | return 1; | |
22958 | } | |
22959 | ||
22960 | _ACEOF | |
22961 | rm -f conftest$ac_exeext | |
22962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22963 | (eval $ac_link) 2>&5 | |
22964 | ac_status=$? | |
22965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22966 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22968 | (eval $ac_try) 2>&5 | |
22969 | ac_status=$? | |
22970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22971 | (exit $ac_status); }; }; then | |
22972 | : | |
22973 | else | |
22974 | echo "$as_me: program exited with status $ac_status" >&5 | |
22975 | echo "$as_me: failed program was:" >&5 | |
22976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22977 | ||
22978 | ( exit $ac_status ) | |
22979 | no_gtk=yes | |
22980 | fi | |
ac1cb8d3 | 22981 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22982 | fi |
22983 | CFLAGS="$ac_save_CFLAGS" | |
22984 | LIBS="$ac_save_LIBS" | |
22985 | fi | |
22986 | fi | |
22987 | if test "x$no_gtk" = x ; then | |
22988 | echo "$as_me:$LINENO: result: yes" >&5 | |
22989 | echo "${ECHO_T}yes" >&6 | |
22990 | wx_cv_lib_gtk=1.2.3 | |
22991 | else | |
22992 | echo "$as_me:$LINENO: result: no" >&5 | |
22993 | echo "${ECHO_T}no" >&6 | |
22994 | if test "$GTK_CONFIG" = "no" ; then | |
22995 | echo "*** The gtk-config script installed by GTK could not be found" | |
22996 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22997 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22998 | echo "*** full path to gtk-config." | |
22999 | else | |
23000 | if test -f conf.gtktest ; then | |
23001 | : | |
23002 | else | |
23003 | echo "*** Could not run GTK test program, checking why..." | |
23004 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23005 | LIBS="$LIBS $GTK_LIBS" | |
23006 | cat >conftest.$ac_ext <<_ACEOF | |
23007 | /* confdefs.h. */ | |
23008 | _ACEOF | |
23009 | cat confdefs.h >>conftest.$ac_ext | |
23010 | cat >>conftest.$ac_ext <<_ACEOF | |
23011 | /* end confdefs.h. */ | |
23012 | ||
23013 | #include <gtk/gtk.h> | |
23014 | #include <stdio.h> | |
23015 | ||
23016 | int | |
23017 | main () | |
23018 | { | |
23019 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23020 | ; | |
23021 | return 0; | |
23022 | } | |
23023 | _ACEOF | |
23024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23026 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23027 | ac_status=$? |
ac1cb8d3 VS |
23028 | grep -v '^ *+' conftest.er1 >conftest.err |
23029 | rm -f conftest.er1 | |
23030 | cat conftest.err >&5 | |
a848cd7e SC |
23031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23032 | (exit $ac_status); } && | |
4d4ff94c | 23033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23035 | (eval $ac_try) 2>&5 | |
23036 | ac_status=$? | |
23037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23038 | (exit $ac_status); }; } && | |
23039 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23041 | (eval $ac_try) 2>&5 | |
23042 | ac_status=$? | |
23043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23044 | (exit $ac_status); }; }; then | |
23045 | echo "*** The test program compiled, but did not run. This usually means" | |
23046 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23047 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23048 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23049 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23050 | echo "*** is required on your system" | |
23051 | echo "***" | |
23052 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23053 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23054 | echo "***" | |
23055 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23056 | echo "*** came with the system with the command" | |
23057 | echo "***" | |
23058 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23059 | else | |
23060 | echo "$as_me: failed program was:" >&5 | |
23061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23062 | ||
23063 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23064 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23065 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23066 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23067 | fi | |
ac1cb8d3 VS |
23068 | rm -f conftest.err conftest.$ac_objext \ |
23069 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23070 | CFLAGS="$ac_save_CFLAGS" |
23071 | LIBS="$ac_save_LIBS" | |
23072 | fi | |
23073 | fi | |
23074 | GTK_CFLAGS="" | |
23075 | GTK_LIBS="" | |
23076 | : | |
23077 | fi | |
23078 | ||
23079 | ||
23080 | rm -f conf.gtktest | |
23081 | ||
23082 | fi | |
23083 | fi | |
23084 | ||
23085 | if test -z "$wx_cv_lib_gtk"; then | |
23086 | wx_cv_lib_gtk=none | |
23087 | else | |
23088 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23089 | wx_cv_libs_gtk=$GTK_LIBS | |
23090 | fi | |
23091 | ||
23092 | ||
23093 | fi | |
23094 | ||
23095 | ||
23096 | if test "$gtk_version_cached" = 1; then | |
23097 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23098 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23099 | fi | |
23100 | ||
23101 | case "$wx_cv_lib_gtk" in | |
23102 | 2.0) WXGTK20=1 | |
23103 | TOOLKIT_VERSION=2 | |
23104 | ;; | |
23105 | 1.2.7) WXGTK127=1 | |
23106 | WXGTK12=1 | |
23107 | ;; | |
23108 | 1.2.3) WXGTK12=1 | |
23109 | ;; | |
23110 | *) { { echo "$as_me:$LINENO: error: | |
23111 | Please check that gtk-config is in path, the directory | |
23112 | where GTK+ libraries are installed (returned by | |
23113 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23114 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23115 | " >&5 | |
23116 | echo "$as_me: error: | |
23117 | Please check that gtk-config is in path, the directory | |
23118 | where GTK+ libraries are installed (returned by | |
23119 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23120 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23121 | " >&2;} | |
23122 | { (exit 1); exit 1; }; } | |
23123 | ;; | |
23124 | esac | |
23125 | ||
23126 | if test "$WXGTK20" = 1; then | |
23127 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
23128 | ||
23129 | succeeded=no | |
23130 | ||
23131 | if test -z "$PKG_CONFIG"; then | |
23132 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23133 | set dummy pkg-config; ac_word=$2 | |
23134 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23136 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23138 | else | |
23139 | case $PKG_CONFIG in | |
23140 | [\\/]* | ?:[\\/]*) | |
23141 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23142 | ;; | |
23143 | *) | |
23144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23145 | for as_dir in $PATH | |
23146 | do | |
23147 | IFS=$as_save_IFS | |
23148 | test -z "$as_dir" && as_dir=. | |
23149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23150 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23151 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23153 | break 2 | |
23154 | fi | |
23155 | done | |
23156 | done | |
23157 | ||
23158 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23159 | ;; | |
23160 | esac | |
23161 | fi | |
23162 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23163 | ||
23164 | if test -n "$PKG_CONFIG"; then | |
23165 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23166 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23167 | else | |
23168 | echo "$as_me:$LINENO: result: no" >&5 | |
23169 | echo "${ECHO_T}no" >&6 | |
23170 | fi | |
23171 | ||
23172 | fi | |
23173 | ||
23174 | if test "$PKG_CONFIG" = "no" ; then | |
23175 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23176 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23177 | echo "*** to the full path to pkg-config." | |
23178 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23179 | else | |
23180 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23181 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23182 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
23183 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
23184 | ||
23185 | if $PKG_CONFIG --exists "pangoft2" ; then | |
23186 | echo "$as_me:$LINENO: result: yes" >&5 | |
23187 | echo "${ECHO_T}yes" >&6 | |
23188 | succeeded=yes | |
23189 | ||
23190 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
23191 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
23192 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
23193 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
23194 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
23195 | ||
23196 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
23197 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
23198 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
23199 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
23200 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
23201 | else | |
23202 | PANGOFT2_CFLAGS="" | |
23203 | PANGOFT2_LIBS="" | |
23204 | ## If we have a custom action on failure, don't print errors, but | |
23205 | ## do set a variable so people can do so. | |
23206 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
23207 | ||
23208 | fi | |
23209 | ||
23210 | ||
23211 | ||
23212 | else | |
23213 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23214 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23215 | fi | |
23216 | fi | |
23217 | ||
23218 | if test $succeeded = yes; then | |
23219 | ||
23220 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
23221 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
23222 | ||
23223 | else | |
23224 | ||
23225 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23226 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
23227 | wxUSE_PRINTING_ARCHITECTURE="no" | |
23228 | ||
23229 | ||
23230 | fi | |
23231 | ||
23232 | fi | |
304205f1 VS |
23233 | |
23234 | save_CFLAGS="$CFLAGS" | |
23235 | save_LIBS="$LIBS" | |
23236 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23237 | LIBS="$LIBS $GTK_LIBS" | |
23238 | ||
23239 | for ac_func in pango_font_family_is_monospace | |
23240 | do | |
23241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23242 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23244 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23246 | else | |
23247 | cat >conftest.$ac_ext <<_ACEOF | |
23248 | /* confdefs.h. */ | |
23249 | _ACEOF | |
23250 | cat confdefs.h >>conftest.$ac_ext | |
23251 | cat >>conftest.$ac_ext <<_ACEOF | |
23252 | /* end confdefs.h. */ | |
23253 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23255 | #define $ac_func innocuous_$ac_func | |
23256 | ||
23257 | /* System header to define __stub macros and hopefully few prototypes, | |
23258 | which can conflict with char $ac_func (); below. | |
23259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23260 | <limits.h> exists even on freestanding compilers. */ | |
23261 | ||
23262 | #ifdef __STDC__ | |
23263 | # include <limits.h> | |
23264 | #else | |
23265 | # include <assert.h> | |
23266 | #endif | |
23267 | ||
23268 | #undef $ac_func | |
23269 | ||
23270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23271 | #ifdef __cplusplus | |
23272 | extern "C" | |
23273 | { | |
23274 | #endif | |
23275 | /* We use char because int might match the return type of a gcc2 | |
23276 | builtin and then its argument prototype would still apply. */ | |
23277 | char $ac_func (); | |
23278 | /* The GNU C library defines this for functions which it implements | |
23279 | to always fail with ENOSYS. Some functions are actually named | |
23280 | something starting with __ and the normal name is an alias. */ | |
23281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23282 | choke me | |
23283 | #else | |
23284 | char (*f) () = $ac_func; | |
23285 | #endif | |
23286 | #ifdef __cplusplus | |
23287 | } | |
23288 | #endif | |
23289 | ||
23290 | int | |
23291 | main () | |
23292 | { | |
23293 | return f != $ac_func; | |
23294 | ; | |
23295 | return 0; | |
23296 | } | |
23297 | _ACEOF | |
23298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23300 | (eval $ac_link) 2>conftest.er1 | |
23301 | ac_status=$? | |
23302 | grep -v '^ *+' conftest.er1 >conftest.err | |
23303 | rm -f conftest.er1 | |
23304 | cat conftest.err >&5 | |
23305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23306 | (exit $ac_status); } && | |
4d4ff94c | 23307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
23308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23309 | (eval $ac_try) 2>&5 | |
23310 | ac_status=$? | |
23311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23312 | (exit $ac_status); }; } && | |
23313 | { ac_try='test -s conftest$ac_exeext' | |
23314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23315 | (eval $ac_try) 2>&5 | |
23316 | ac_status=$? | |
23317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23318 | (exit $ac_status); }; }; then | |
23319 | eval "$as_ac_var=yes" | |
23320 | else | |
23321 | echo "$as_me: failed program was:" >&5 | |
23322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23323 | ||
23324 | eval "$as_ac_var=no" | |
23325 | fi | |
23326 | rm -f conftest.err conftest.$ac_objext \ | |
23327 | conftest$ac_exeext conftest.$ac_ext | |
23328 | fi | |
23329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23330 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23331 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23332 | cat >>confdefs.h <<_ACEOF | |
23333 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23334 | _ACEOF | |
23335 | ||
23336 | fi | |
23337 | done | |
23338 | ||
23339 | CFLAGS="$save_CFLAGS" | |
23340 | LIBS="$save_LIBS" | |
a848cd7e SC |
23341 | else |
23342 | if test "$wxUSE_UNICODE" = "yes"; then | |
23343 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23344 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23345 | wxUSE_UNICODE=no | |
23346 | fi | |
23347 | fi | |
23348 | ||
23349 | if test "$USE_DARWIN" != 1; then | |
23350 | ||
23351 | for ac_func in poll | |
23352 | do | |
23353 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23354 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23355 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23356 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23358 | else | |
23359 | cat >conftest.$ac_ext <<_ACEOF | |
23360 | /* confdefs.h. */ | |
23361 | _ACEOF | |
23362 | cat confdefs.h >>conftest.$ac_ext | |
23363 | cat >>conftest.$ac_ext <<_ACEOF | |
23364 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23365 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23366 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23367 | #define $ac_func innocuous_$ac_func | |
23368 | ||
a848cd7e SC |
23369 | /* System header to define __stub macros and hopefully few prototypes, |
23370 | which can conflict with char $ac_func (); below. | |
23371 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23372 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23373 | |
a848cd7e SC |
23374 | #ifdef __STDC__ |
23375 | # include <limits.h> | |
23376 | #else | |
23377 | # include <assert.h> | |
23378 | #endif | |
ac1cb8d3 VS |
23379 | |
23380 | #undef $ac_func | |
23381 | ||
a848cd7e SC |
23382 | /* Override any gcc2 internal prototype to avoid an error. */ |
23383 | #ifdef __cplusplus | |
23384 | extern "C" | |
23385 | { | |
23386 | #endif | |
23387 | /* We use char because int might match the return type of a gcc2 | |
23388 | builtin and then its argument prototype would still apply. */ | |
23389 | char $ac_func (); | |
23390 | /* The GNU C library defines this for functions which it implements | |
23391 | to always fail with ENOSYS. Some functions are actually named | |
23392 | something starting with __ and the normal name is an alias. */ | |
23393 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23394 | choke me | |
23395 | #else | |
23396 | char (*f) () = $ac_func; | |
23397 | #endif | |
23398 | #ifdef __cplusplus | |
23399 | } | |
23400 | #endif | |
23401 | ||
23402 | int | |
23403 | main () | |
23404 | { | |
23405 | return f != $ac_func; | |
23406 | ; | |
23407 | return 0; | |
23408 | } | |
23409 | _ACEOF | |
23410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23412 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23413 | ac_status=$? |
ac1cb8d3 VS |
23414 | grep -v '^ *+' conftest.er1 >conftest.err |
23415 | rm -f conftest.er1 | |
23416 | cat conftest.err >&5 | |
a848cd7e SC |
23417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23418 | (exit $ac_status); } && | |
4d4ff94c | 23419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23421 | (eval $ac_try) 2>&5 | |
23422 | ac_status=$? | |
23423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23424 | (exit $ac_status); }; } && | |
23425 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23427 | (eval $ac_try) 2>&5 | |
23428 | ac_status=$? | |
23429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23430 | (exit $ac_status); }; }; then | |
23431 | eval "$as_ac_var=yes" | |
23432 | else | |
23433 | echo "$as_me: failed program was:" >&5 | |
23434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23435 | ||
23436 | eval "$as_ac_var=no" | |
23437 | fi | |
ac1cb8d3 VS |
23438 | rm -f conftest.err conftest.$ac_objext \ |
23439 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23440 | fi |
23441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23442 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23443 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23444 | cat >>confdefs.h <<_ACEOF | |
23445 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23446 | _ACEOF | |
23447 | ||
23448 | fi | |
23449 | done | |
23450 | ||
23451 | fi | |
23452 | ||
23453 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23454 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23455 | ||
23456 | AFMINSTALL=afminstall | |
23457 | TOOLKIT=GTK | |
23458 | GUIDIST=GTK_DIST | |
23459 | ||
23460 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23461 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23462 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23464 | else | |
23465 | ac_check_lib_save_LIBS=$LIBS | |
23466 | LIBS="-lgdk $LIBS" | |
23467 | cat >conftest.$ac_ext <<_ACEOF | |
23468 | /* confdefs.h. */ | |
23469 | _ACEOF | |
23470 | cat confdefs.h >>conftest.$ac_ext | |
23471 | cat >>conftest.$ac_ext <<_ACEOF | |
23472 | /* end confdefs.h. */ | |
23473 | ||
23474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23475 | #ifdef __cplusplus | |
23476 | extern "C" | |
23477 | #endif | |
23478 | /* We use char because int might match the return type of a gcc2 | |
23479 | builtin and then its argument prototype would still apply. */ | |
23480 | char gdk_im_open (); | |
23481 | int | |
23482 | main () | |
23483 | { | |
23484 | gdk_im_open (); | |
23485 | ; | |
23486 | return 0; | |
23487 | } | |
23488 | _ACEOF | |
23489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23491 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23492 | ac_status=$? |
ac1cb8d3 VS |
23493 | grep -v '^ *+' conftest.er1 >conftest.err |
23494 | rm -f conftest.er1 | |
23495 | cat conftest.err >&5 | |
a848cd7e SC |
23496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23497 | (exit $ac_status); } && | |
4d4ff94c | 23498 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23500 | (eval $ac_try) 2>&5 | |
23501 | ac_status=$? | |
23502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23503 | (exit $ac_status); }; } && | |
23504 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23506 | (eval $ac_try) 2>&5 | |
23507 | ac_status=$? | |
23508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23509 | (exit $ac_status); }; }; then | |
23510 | ac_cv_lib_gdk_gdk_im_open=yes | |
23511 | else | |
23512 | echo "$as_me: failed program was:" >&5 | |
23513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23514 | ||
23515 | ac_cv_lib_gdk_gdk_im_open=no | |
23516 | fi | |
ac1cb8d3 VS |
23517 | rm -f conftest.err conftest.$ac_objext \ |
23518 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23519 | LIBS=$ac_check_lib_save_LIBS |
23520 | fi | |
23521 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23522 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23523 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23524 | cat >>confdefs.h <<\_ACEOF | |
23525 | #define HAVE_XIM 1 | |
23526 | _ACEOF | |
23527 | ||
23528 | fi | |
23529 | ||
23530 | ||
23531 | ||
23532 | if test "$wxUSE_GPE" = "yes"; then | |
23533 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23534 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23535 | ||
23536 | ac_find_libraries= | |
23537 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23538 | do | |
23539 | for ac_extension in a so sl dylib; do | |
23540 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23541 | ac_find_libraries=$ac_dir | |
23542 | break 2 | |
23543 | fi | |
23544 | done | |
23545 | done | |
23546 | ||
23547 | if test "$ac_find_libraries" != "" ; then | |
23548 | ||
23549 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23550 | result=$? | |
23551 | if test $result = 0; then | |
23552 | ac_path_to_link="" | |
23553 | else | |
23554 | ac_path_to_link=" -L$ac_find_libraries" | |
23555 | fi | |
23556 | ||
23557 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23558 | WXGPE=1 | |
23559 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23560 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23561 | else | |
23562 | echo "$as_me:$LINENO: result: not found" >&5 | |
23563 | echo "${ECHO_T}not found" >&6 | |
23564 | fi | |
23565 | ||
23566 | fi | |
23567 | fi | |
23568 | ||
23569 | if test "$wxUSE_MGL" = 1; then | |
23570 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23571 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23572 | if test "x$MGL_ROOT" = x ; then | |
23573 | echo "$as_me:$LINENO: result: not found" >&5 | |
23574 | echo "${ECHO_T}not found" >&6 | |
23575 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23576 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23577 | { (exit 1); exit 1; }; } | |
23578 | else | |
23579 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
23580 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
23581 | fi | |
23582 | ||
23583 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
23584 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
23585 | case "${host}" in | |
23586 | *-*-linux* ) | |
23587 | if test "x$wxUSE_SHARED" = xyes ; then | |
23588 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
23589 | else | |
23590 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
23591 | fi | |
23592 | ;; | |
23593 | *-pc-msdosdjgpp ) | |
23594 | mgl_os_candidates="dos32/dj2" | |
23595 | ;; | |
23596 | *) | |
23597 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
23598 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23599 | { (exit 1); exit 1; }; } | |
23600 | esac | |
23601 | ||
23602 | mgl_lib_type="" | |
23603 | mgl_os="" | |
23604 | ||
23605 | for mgl_os_i in $mgl_os_candidates ; do | |
23606 | if test "x$mgl_os" = x ; then | |
23607 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23608 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23609 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23610 | mgl_lib_type=debug | |
23611 | mgl_os=$mgl_os_i | |
23612 | fi | |
23613 | fi | |
23614 | if test "x$mgl_lib_type" = x ; then | |
23615 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23616 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23617 | mgl_lib_type=release | |
23618 | mgl_os=$mgl_os_i | |
23619 | fi | |
23620 | fi | |
23621 | fi | |
23622 | done | |
23623 | ||
23624 | if test "x$mgl_os" = x ; then | |
23625 | echo "$as_me:$LINENO: result: not found" >&5 | |
23626 | echo "${ECHO_T}not found" >&6 | |
23627 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23628 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23629 | { (exit 1); exit 1; }; } | |
23630 | fi | |
23631 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
23632 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
23633 | ||
23634 | wxUSE_UNIVERSAL="yes" | |
23635 | ||
23636 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
23637 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23638 | ||
23639 | AFMINSTALL=afminstall | |
23640 | TOOLKIT=MGL | |
23641 | GUIDIST=MGL_DIST | |
23642 | fi | |
23643 | ||
23644 | if test "$wxUSE_MICROWIN" = 1; then | |
23645 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
23646 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
23647 | if test "x$MICROWINDOWS" = x ; then | |
23648 | echo "$as_me:$LINENO: result: not found" >&5 | |
23649 | echo "${ECHO_T}not found" >&6 | |
23650 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23651 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23652 | { (exit 1); exit 1; }; } | |
23653 | else | |
23654 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
23655 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
23656 | fi | |
23657 | ||
23658 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
23659 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
23660 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
23661 | else | |
23662 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
23663 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23664 | { (exit 1); exit 1; }; } | |
23665 | fi | |
23666 | ||
23667 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
23668 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23669 | ||
23670 | wxUSE_UNIVERSAL="yes" | |
23671 | ||
23672 | AFMINSTALL=afminstall | |
23673 | TOOLKIT=MICROWIN | |
23674 | GUIDIST=MICROWIN_DIST | |
23675 | ||
23676 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
23677 | fi | |
23678 | ||
74b84332 | 23679 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
4d4ff94c VZ |
23680 | |
23681 | if test "x$ac_path_x_has_been_run" != xyes; then | |
23682 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
23683 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
23684 | ||
4d4ff94c | 23685 | ac_path_x_has_been_run=yes |
a848cd7e SC |
23686 | |
23687 | # Check whether --with-x or --without-x was given. | |
23688 | if test "${with_x+set}" = set; then | |
23689 | withval="$with_x" | |
23690 | ||
23691 | fi; | |
23692 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
23693 | if test "x$with_x" = xno; then | |
23694 | # The user explicitly disabled X. | |
23695 | have_x=disabled | |
23696 | else | |
23697 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23698 | # Both variables are already set. | |
23699 | have_x=yes | |
23700 | else | |
23701 | if test "${ac_cv_have_x+set}" = set; then | |
23702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23703 | else | |
23704 | # One or both of the vars are not set, and there is no cached value. | |
23705 | ac_x_includes=no ac_x_libraries=no | |
23706 | rm -fr conftest.dir | |
23707 | if mkdir conftest.dir; then | |
23708 | cd conftest.dir | |
23709 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
23710 | cat >Imakefile <<'_ACEOF' | |
23711 | acfindx: | |
23712 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
23713 | _ACEOF | |
23714 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
23715 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23716 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23717 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23718 | for ac_extension in a so sl; do | |
23719 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
23720 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23721 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
23722 | fi |
23723 | done | |
23724 | # Screen out bogus values from the imake configuration. They are | |
23725 | # bogus both because they are the default anyway, and because | |
23726 | # using them would break gcc on systems where it needs fixed includes. | |
23727 | case $ac_im_incroot in | |
23728 | /usr/include) ;; | |
23729 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
23730 | esac | |
23731 | case $ac_im_usrlibdir in | |
23732 | /usr/lib | /lib) ;; | |
23733 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
23734 | esac | |
23735 | fi | |
23736 | cd .. | |
23737 | rm -fr conftest.dir | |
23738 | fi | |
23739 | ||
23740 | # Standard set of common directories for X headers. | |
23741 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23742 | ac_x_header_dirs=' | |
23743 | /usr/X11/include | |
23744 | /usr/X11R6/include | |
23745 | /usr/X11R5/include | |
23746 | /usr/X11R4/include | |
23747 | ||
23748 | /usr/include/X11 | |
23749 | /usr/include/X11R6 | |
23750 | /usr/include/X11R5 | |
23751 | /usr/include/X11R4 | |
23752 | ||
23753 | /usr/local/X11/include | |
23754 | /usr/local/X11R6/include | |
23755 | /usr/local/X11R5/include | |
23756 | /usr/local/X11R4/include | |
23757 | ||
23758 | /usr/local/include/X11 | |
23759 | /usr/local/include/X11R6 | |
23760 | /usr/local/include/X11R5 | |
23761 | /usr/local/include/X11R4 | |
23762 | ||
23763 | /usr/X386/include | |
23764 | /usr/x386/include | |
23765 | /usr/XFree86/include/X11 | |
23766 | ||
23767 | /usr/include | |
23768 | /usr/local/include | |
23769 | /usr/unsupported/include | |
23770 | /usr/athena/include | |
23771 | /usr/local/x11r5/include | |
23772 | /usr/lpp/Xamples/include | |
23773 | ||
23774 | /usr/openwin/include | |
23775 | /usr/openwin/share/include' | |
23776 | ||
23777 | if test "$ac_x_includes" = no; then | |
4d4ff94c | 23778 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
23779 | # First, try using that file with no special directory specified. |
23780 | cat >conftest.$ac_ext <<_ACEOF | |
23781 | /* confdefs.h. */ | |
23782 | _ACEOF | |
23783 | cat confdefs.h >>conftest.$ac_ext | |
23784 | cat >>conftest.$ac_ext <<_ACEOF | |
23785 | /* end confdefs.h. */ | |
23786 | #include <X11/Intrinsic.h> | |
23787 | _ACEOF | |
23788 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23789 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23790 | ac_status=$? | |
23791 | grep -v '^ *+' conftest.er1 >conftest.err | |
23792 | rm -f conftest.er1 | |
23793 | cat conftest.err >&5 | |
23794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23795 | (exit $ac_status); } >/dev/null; then | |
23796 | if test -s conftest.err; then | |
23797 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23798 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23799 | else |
23800 | ac_cpp_err= | |
23801 | fi | |
23802 | else | |
23803 | ac_cpp_err=yes | |
23804 | fi | |
23805 | if test -z "$ac_cpp_err"; then | |
23806 | # We can compile using X headers with no special include directory. | |
23807 | ac_x_includes= | |
23808 | else | |
23809 | echo "$as_me: failed program was:" >&5 | |
23810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23811 | ||
23812 | for ac_dir in $ac_x_header_dirs; do | |
23813 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
23814 | ac_x_includes=$ac_dir | |
23815 | break | |
23816 | fi | |
23817 | done | |
23818 | fi | |
23819 | rm -f conftest.err conftest.$ac_ext | |
23820 | fi # $ac_x_includes = no | |
23821 | ||
23822 | if test "$ac_x_libraries" = no; then | |
23823 | # Check for the libraries. | |
23824 | # See if we find them without any special options. | |
23825 | # Don't add to $LIBS permanently. | |
23826 | ac_save_LIBS=$LIBS | |
23827 | LIBS="-lXt $LIBS" | |
23828 | cat >conftest.$ac_ext <<_ACEOF | |
23829 | /* confdefs.h. */ | |
23830 | _ACEOF | |
23831 | cat confdefs.h >>conftest.$ac_ext | |
23832 | cat >>conftest.$ac_ext <<_ACEOF | |
23833 | /* end confdefs.h. */ | |
23834 | #include <X11/Intrinsic.h> | |
23835 | int | |
23836 | main () | |
23837 | { | |
23838 | XtMalloc (0) | |
23839 | ; | |
23840 | return 0; | |
23841 | } | |
23842 | _ACEOF | |
23843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23845 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23846 | ac_status=$? |
ac1cb8d3 VS |
23847 | grep -v '^ *+' conftest.er1 >conftest.err |
23848 | rm -f conftest.er1 | |
23849 | cat conftest.err >&5 | |
a848cd7e SC |
23850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23851 | (exit $ac_status); } && | |
4d4ff94c | 23852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23854 | (eval $ac_try) 2>&5 | |
23855 | ac_status=$? | |
23856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23857 | (exit $ac_status); }; } && | |
23858 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23860 | (eval $ac_try) 2>&5 | |
23861 | ac_status=$? | |
23862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23863 | (exit $ac_status); }; }; then | |
23864 | LIBS=$ac_save_LIBS | |
23865 | # We can link X programs with no special library path. | |
23866 | ac_x_libraries= | |
23867 | else | |
23868 | echo "$as_me: failed program was:" >&5 | |
23869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23870 | ||
23871 | LIBS=$ac_save_LIBS | |
23872 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
23873 | do | |
23874 | # Don't even attempt the hair of trying to link an X program! | |
23875 | for ac_extension in a so sl; do | |
23876 | if test -r $ac_dir/libXt.$ac_extension; then | |
23877 | ac_x_libraries=$ac_dir | |
23878 | break 2 | |
23879 | fi | |
23880 | done | |
23881 | done | |
23882 | fi | |
ac1cb8d3 VS |
23883 | rm -f conftest.err conftest.$ac_objext \ |
23884 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23885 | fi # $ac_x_libraries = no |
23886 | ||
23887 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
23888 | # Didn't find X anywhere. Cache the known absence of X. | |
23889 | ac_cv_have_x="have_x=no" | |
23890 | else | |
23891 | # Record where we found X for the cache. | |
23892 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 23893 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
23894 | fi |
23895 | fi | |
23896 | ||
23897 | fi | |
23898 | eval "$ac_cv_have_x" | |
23899 | fi # $with_x != no | |
23900 | ||
23901 | if test "$have_x" != yes; then | |
23902 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
23903 | echo "${ECHO_T}$have_x" >&6 | |
23904 | no_x=yes | |
23905 | else | |
23906 | # If each of the values was on the command line, it overrides each guess. | |
23907 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
23908 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
23909 | # Update the cache value to reflect the command line values. | |
23910 | ac_cv_have_x="have_x=yes \ | |
23911 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
4d4ff94c VZ |
23912 | # It might be that x_includes is empty (headers are found in the |
23913 | # standard search path. Then output the corresponding message | |
23914 | ac_out_x_includes=$x_includes | |
23915 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
23916 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
23917 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
23918 | fi |
23919 | ||
4d4ff94c | 23920 | fi |
a848cd7e SC |
23921 | if test "$no_x" = yes; then |
23922 | # Not all programs may use this symbol, but it does not hurt to define it. | |
23923 | ||
23924 | cat >>confdefs.h <<\_ACEOF | |
23925 | #define X_DISPLAY_MISSING 1 | |
23926 | _ACEOF | |
23927 | ||
23928 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
23929 | else | |
23930 | if test -n "$x_includes"; then | |
23931 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
23932 | fi | |
23933 | ||
23934 | # It would also be nice to do this for all -L options, not just this one. | |
23935 | if test -n "$x_libraries"; then | |
23936 | X_LIBS="$X_LIBS -L$x_libraries" | |
23937 | # For Solaris; some versions of Sun CC require a space after -R and | |
23938 | # others require no space. Words are not sufficient . . . . | |
23939 | case `(uname -sr) 2>/dev/null` in | |
23940 | "SunOS 5"*) | |
23941 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
23942 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23943 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23944 | cat >conftest.$ac_ext <<_ACEOF | |
23945 | /* confdefs.h. */ | |
23946 | _ACEOF | |
23947 | cat confdefs.h >>conftest.$ac_ext | |
23948 | cat >>conftest.$ac_ext <<_ACEOF | |
23949 | /* end confdefs.h. */ | |
23950 | ||
23951 | int | |
23952 | main () | |
23953 | { | |
23954 | ||
23955 | ; | |
23956 | return 0; | |
23957 | } | |
23958 | _ACEOF | |
23959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23961 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23962 | ac_status=$? |
ac1cb8d3 VS |
23963 | grep -v '^ *+' conftest.er1 >conftest.err |
23964 | rm -f conftest.er1 | |
23965 | cat conftest.err >&5 | |
a848cd7e SC |
23966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23967 | (exit $ac_status); } && | |
4d4ff94c | 23968 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23970 | (eval $ac_try) 2>&5 | |
23971 | ac_status=$? | |
23972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23973 | (exit $ac_status); }; } && | |
23974 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23976 | (eval $ac_try) 2>&5 | |
23977 | ac_status=$? | |
23978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23979 | (exit $ac_status); }; }; then | |
23980 | ac_R_nospace=yes | |
23981 | else | |
23982 | echo "$as_me: failed program was:" >&5 | |
23983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23984 | ||
23985 | ac_R_nospace=no | |
23986 | fi | |
ac1cb8d3 VS |
23987 | rm -f conftest.err conftest.$ac_objext \ |
23988 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23989 | if test $ac_R_nospace = yes; then |
23990 | echo "$as_me:$LINENO: result: no" >&5 | |
23991 | echo "${ECHO_T}no" >&6 | |
23992 | X_LIBS="$X_LIBS -R$x_libraries" | |
23993 | else | |
23994 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
23995 | cat >conftest.$ac_ext <<_ACEOF | |
23996 | /* confdefs.h. */ | |
23997 | _ACEOF | |
23998 | cat confdefs.h >>conftest.$ac_ext | |
23999 | cat >>conftest.$ac_ext <<_ACEOF | |
24000 | /* end confdefs.h. */ | |
24001 | ||
24002 | int | |
24003 | main () | |
24004 | { | |
24005 | ||
24006 | ; | |
24007 | return 0; | |
24008 | } | |
24009 | _ACEOF | |
24010 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24012 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24013 | ac_status=$? |
ac1cb8d3 VS |
24014 | grep -v '^ *+' conftest.er1 >conftest.err |
24015 | rm -f conftest.er1 | |
24016 | cat conftest.err >&5 | |
a848cd7e SC |
24017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24018 | (exit $ac_status); } && | |
4d4ff94c | 24019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24021 | (eval $ac_try) 2>&5 | |
24022 | ac_status=$? | |
24023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24024 | (exit $ac_status); }; } && | |
24025 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24027 | (eval $ac_try) 2>&5 | |
24028 | ac_status=$? | |
24029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24030 | (exit $ac_status); }; }; then | |
24031 | ac_R_space=yes | |
24032 | else | |
24033 | echo "$as_me: failed program was:" >&5 | |
24034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24035 | ||
24036 | ac_R_space=no | |
24037 | fi | |
ac1cb8d3 VS |
24038 | rm -f conftest.err conftest.$ac_objext \ |
24039 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24040 | if test $ac_R_space = yes; then |
24041 | echo "$as_me:$LINENO: result: yes" >&5 | |
24042 | echo "${ECHO_T}yes" >&6 | |
24043 | X_LIBS="$X_LIBS -R $x_libraries" | |
24044 | else | |
24045 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24046 | echo "${ECHO_T}neither works" >&6 | |
24047 | fi | |
24048 | fi | |
24049 | LIBS=$ac_xsave_LIBS | |
24050 | esac | |
24051 | fi | |
24052 | ||
24053 | # Check for system-dependent libraries X programs must link with. | |
24054 | # Do this before checking for the system-independent R6 libraries | |
24055 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24056 | ||
24057 | if test "$ISC" = yes; then | |
24058 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24059 | else | |
24060 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24061 | # libraries were built with DECnet support. And Karl Berry says | |
24062 | # the Alpha needs dnet_stub (dnet does not exist). | |
24063 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24064 | cat >conftest.$ac_ext <<_ACEOF | |
24065 | /* confdefs.h. */ | |
24066 | _ACEOF | |
24067 | cat confdefs.h >>conftest.$ac_ext | |
24068 | cat >>conftest.$ac_ext <<_ACEOF | |
24069 | /* end confdefs.h. */ | |
24070 | ||
24071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24072 | #ifdef __cplusplus | |
24073 | extern "C" | |
24074 | #endif | |
24075 | /* We use char because int might match the return type of a gcc2 | |
24076 | builtin and then its argument prototype would still apply. */ | |
24077 | char XOpenDisplay (); | |
24078 | int | |
24079 | main () | |
24080 | { | |
24081 | XOpenDisplay (); | |
24082 | ; | |
24083 | return 0; | |
24084 | } | |
24085 | _ACEOF | |
24086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24088 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24089 | ac_status=$? |
ac1cb8d3 VS |
24090 | grep -v '^ *+' conftest.er1 >conftest.err |
24091 | rm -f conftest.er1 | |
24092 | cat conftest.err >&5 | |
a848cd7e SC |
24093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24094 | (exit $ac_status); } && | |
4d4ff94c | 24095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24097 | (eval $ac_try) 2>&5 | |
24098 | ac_status=$? | |
24099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24100 | (exit $ac_status); }; } && | |
24101 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24103 | (eval $ac_try) 2>&5 | |
24104 | ac_status=$? | |
24105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24106 | (exit $ac_status); }; }; then | |
24107 | : | |
24108 | else | |
24109 | echo "$as_me: failed program was:" >&5 | |
24110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24111 | ||
24112 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24113 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24114 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24116 | else | |
24117 | ac_check_lib_save_LIBS=$LIBS | |
24118 | LIBS="-ldnet $LIBS" | |
24119 | cat >conftest.$ac_ext <<_ACEOF | |
24120 | /* confdefs.h. */ | |
24121 | _ACEOF | |
24122 | cat confdefs.h >>conftest.$ac_ext | |
24123 | cat >>conftest.$ac_ext <<_ACEOF | |
24124 | /* end confdefs.h. */ | |
24125 | ||
24126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24127 | #ifdef __cplusplus | |
24128 | extern "C" | |
24129 | #endif | |
24130 | /* We use char because int might match the return type of a gcc2 | |
24131 | builtin and then its argument prototype would still apply. */ | |
24132 | char dnet_ntoa (); | |
24133 | int | |
24134 | main () | |
24135 | { | |
24136 | dnet_ntoa (); | |
24137 | ; | |
24138 | return 0; | |
24139 | } | |
24140 | _ACEOF | |
24141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24143 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24144 | ac_status=$? |
ac1cb8d3 VS |
24145 | grep -v '^ *+' conftest.er1 >conftest.err |
24146 | rm -f conftest.er1 | |
24147 | cat conftest.err >&5 | |
a848cd7e SC |
24148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24149 | (exit $ac_status); } && | |
4d4ff94c | 24150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24152 | (eval $ac_try) 2>&5 | |
24153 | ac_status=$? | |
24154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24155 | (exit $ac_status); }; } && | |
24156 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24158 | (eval $ac_try) 2>&5 | |
24159 | ac_status=$? | |
24160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24161 | (exit $ac_status); }; }; then | |
24162 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24163 | else | |
24164 | echo "$as_me: failed program was:" >&5 | |
24165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24166 | ||
24167 | ac_cv_lib_dnet_dnet_ntoa=no | |
24168 | fi | |
ac1cb8d3 VS |
24169 | rm -f conftest.err conftest.$ac_objext \ |
24170 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24171 | LIBS=$ac_check_lib_save_LIBS |
24172 | fi | |
24173 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24174 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24175 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24176 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24177 | fi | |
24178 | ||
24179 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24180 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24181 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24182 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24184 | else | |
24185 | ac_check_lib_save_LIBS=$LIBS | |
24186 | LIBS="-ldnet_stub $LIBS" | |
24187 | cat >conftest.$ac_ext <<_ACEOF | |
24188 | /* confdefs.h. */ | |
24189 | _ACEOF | |
24190 | cat confdefs.h >>conftest.$ac_ext | |
24191 | cat >>conftest.$ac_ext <<_ACEOF | |
24192 | /* end confdefs.h. */ | |
24193 | ||
24194 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24195 | #ifdef __cplusplus | |
24196 | extern "C" | |
24197 | #endif | |
24198 | /* We use char because int might match the return type of a gcc2 | |
24199 | builtin and then its argument prototype would still apply. */ | |
24200 | char dnet_ntoa (); | |
24201 | int | |
24202 | main () | |
24203 | { | |
24204 | dnet_ntoa (); | |
24205 | ; | |
24206 | return 0; | |
24207 | } | |
24208 | _ACEOF | |
24209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24211 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24212 | ac_status=$? |
ac1cb8d3 VS |
24213 | grep -v '^ *+' conftest.er1 >conftest.err |
24214 | rm -f conftest.er1 | |
24215 | cat conftest.err >&5 | |
a848cd7e SC |
24216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24217 | (exit $ac_status); } && | |
4d4ff94c | 24218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24220 | (eval $ac_try) 2>&5 | |
24221 | ac_status=$? | |
24222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24223 | (exit $ac_status); }; } && | |
24224 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24226 | (eval $ac_try) 2>&5 | |
24227 | ac_status=$? | |
24228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24229 | (exit $ac_status); }; }; then | |
24230 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24231 | else | |
24232 | echo "$as_me: failed program was:" >&5 | |
24233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24234 | ||
24235 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24236 | fi | |
ac1cb8d3 VS |
24237 | rm -f conftest.err conftest.$ac_objext \ |
24238 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24239 | LIBS=$ac_check_lib_save_LIBS |
24240 | fi | |
24241 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24242 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24243 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24244 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24245 | fi | |
24246 | ||
24247 | fi | |
24248 | fi | |
ac1cb8d3 VS |
24249 | rm -f conftest.err conftest.$ac_objext \ |
24250 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24251 | LIBS="$ac_xsave_LIBS" |
24252 | ||
24253 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24254 | # to get the SysV transport functions. | |
24255 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24256 | # needs -lnsl. | |
24257 | # The nsl library prevents programs from opening the X display | |
24258 | # on Irix 5.2, according to T.E. Dickey. | |
24259 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24260 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24261 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24262 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24263 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24265 | else | |
24266 | cat >conftest.$ac_ext <<_ACEOF | |
24267 | /* confdefs.h. */ | |
24268 | _ACEOF | |
24269 | cat confdefs.h >>conftest.$ac_ext | |
24270 | cat >>conftest.$ac_ext <<_ACEOF | |
24271 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24272 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24273 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24274 | #define gethostbyname innocuous_gethostbyname | |
24275 | ||
a848cd7e SC |
24276 | /* System header to define __stub macros and hopefully few prototypes, |
24277 | which can conflict with char gethostbyname (); below. | |
24278 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24279 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24280 | |
a848cd7e SC |
24281 | #ifdef __STDC__ |
24282 | # include <limits.h> | |
24283 | #else | |
24284 | # include <assert.h> | |
24285 | #endif | |
ac1cb8d3 VS |
24286 | |
24287 | #undef gethostbyname | |
24288 | ||
a848cd7e SC |
24289 | /* Override any gcc2 internal prototype to avoid an error. */ |
24290 | #ifdef __cplusplus | |
24291 | extern "C" | |
24292 | { | |
24293 | #endif | |
24294 | /* We use char because int might match the return type of a gcc2 | |
24295 | builtin and then its argument prototype would still apply. */ | |
24296 | char gethostbyname (); | |
24297 | /* The GNU C library defines this for functions which it implements | |
24298 | to always fail with ENOSYS. Some functions are actually named | |
24299 | something starting with __ and the normal name is an alias. */ | |
24300 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24301 | choke me | |
24302 | #else | |
24303 | char (*f) () = gethostbyname; | |
24304 | #endif | |
24305 | #ifdef __cplusplus | |
24306 | } | |
24307 | #endif | |
24308 | ||
24309 | int | |
24310 | main () | |
24311 | { | |
24312 | return f != gethostbyname; | |
24313 | ; | |
24314 | return 0; | |
24315 | } | |
24316 | _ACEOF | |
24317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24319 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24320 | ac_status=$? |
ac1cb8d3 VS |
24321 | grep -v '^ *+' conftest.er1 >conftest.err |
24322 | rm -f conftest.er1 | |
24323 | cat conftest.err >&5 | |
a848cd7e SC |
24324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24325 | (exit $ac_status); } && | |
4d4ff94c | 24326 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24328 | (eval $ac_try) 2>&5 | |
24329 | ac_status=$? | |
24330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24331 | (exit $ac_status); }; } && | |
24332 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24334 | (eval $ac_try) 2>&5 | |
24335 | ac_status=$? | |
24336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24337 | (exit $ac_status); }; }; then | |
24338 | ac_cv_func_gethostbyname=yes | |
24339 | else | |
24340 | echo "$as_me: failed program was:" >&5 | |
24341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24342 | ||
24343 | ac_cv_func_gethostbyname=no | |
24344 | fi | |
ac1cb8d3 VS |
24345 | rm -f conftest.err conftest.$ac_objext \ |
24346 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24347 | fi |
24348 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24349 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24350 | ||
24351 | if test $ac_cv_func_gethostbyname = no; then | |
24352 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24353 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24354 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24356 | else | |
24357 | ac_check_lib_save_LIBS=$LIBS | |
24358 | LIBS="-lnsl $LIBS" | |
24359 | cat >conftest.$ac_ext <<_ACEOF | |
24360 | /* confdefs.h. */ | |
24361 | _ACEOF | |
24362 | cat confdefs.h >>conftest.$ac_ext | |
24363 | cat >>conftest.$ac_ext <<_ACEOF | |
24364 | /* end confdefs.h. */ | |
24365 | ||
24366 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24367 | #ifdef __cplusplus | |
24368 | extern "C" | |
24369 | #endif | |
24370 | /* We use char because int might match the return type of a gcc2 | |
24371 | builtin and then its argument prototype would still apply. */ | |
24372 | char gethostbyname (); | |
24373 | int | |
24374 | main () | |
24375 | { | |
24376 | gethostbyname (); | |
24377 | ; | |
24378 | return 0; | |
24379 | } | |
24380 | _ACEOF | |
24381 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24383 | (eval $ac_link) 2>conftest.er1 |
24384 | ac_status=$? | |
24385 | grep -v '^ *+' conftest.er1 >conftest.err | |
24386 | rm -f conftest.er1 | |
24387 | cat conftest.err >&5 | |
24388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24389 | (exit $ac_status); } && | |
4d4ff94c | 24390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24392 | (eval $ac_try) 2>&5 | |
24393 | ac_status=$? | |
24394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24395 | (exit $ac_status); }; } && | |
24396 | { ac_try='test -s conftest$ac_exeext' | |
24397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24398 | (eval $ac_try) 2>&5 | |
24399 | ac_status=$? | |
24400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24401 | (exit $ac_status); }; }; then | |
24402 | ac_cv_lib_nsl_gethostbyname=yes | |
24403 | else | |
24404 | echo "$as_me: failed program was:" >&5 | |
24405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24406 | ||
24407 | ac_cv_lib_nsl_gethostbyname=no | |
24408 | fi | |
24409 | rm -f conftest.err conftest.$ac_objext \ | |
24410 | conftest$ac_exeext conftest.$ac_ext | |
24411 | LIBS=$ac_check_lib_save_LIBS | |
24412 | fi | |
24413 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24414 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24415 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24416 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24417 | fi | |
24418 | ||
24419 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24420 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24421 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24422 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24424 | else | |
24425 | ac_check_lib_save_LIBS=$LIBS | |
24426 | LIBS="-lbsd $LIBS" | |
24427 | cat >conftest.$ac_ext <<_ACEOF | |
24428 | /* confdefs.h. */ | |
24429 | _ACEOF | |
24430 | cat confdefs.h >>conftest.$ac_ext | |
24431 | cat >>conftest.$ac_ext <<_ACEOF | |
24432 | /* end confdefs.h. */ | |
24433 | ||
24434 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24435 | #ifdef __cplusplus | |
24436 | extern "C" | |
24437 | #endif | |
24438 | /* We use char because int might match the return type of a gcc2 | |
24439 | builtin and then its argument prototype would still apply. */ | |
24440 | char gethostbyname (); | |
24441 | int | |
24442 | main () | |
24443 | { | |
24444 | gethostbyname (); | |
24445 | ; | |
24446 | return 0; | |
24447 | } | |
24448 | _ACEOF | |
24449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24451 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24452 | ac_status=$? |
ac1cb8d3 VS |
24453 | grep -v '^ *+' conftest.er1 >conftest.err |
24454 | rm -f conftest.er1 | |
24455 | cat conftest.err >&5 | |
a848cd7e SC |
24456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24457 | (exit $ac_status); } && | |
4d4ff94c | 24458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
24459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24460 | (eval $ac_try) 2>&5 | |
24461 | ac_status=$? | |
24462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24463 | (exit $ac_status); }; } && |
24464 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24466 | (eval $ac_try) 2>&5 | |
24467 | ac_status=$? | |
24468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24469 | (exit $ac_status); }; }; then | |
24470 | ac_cv_lib_bsd_gethostbyname=yes | |
24471 | else | |
24472 | echo "$as_me: failed program was:" >&5 | |
24473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24474 | ||
24475 | ac_cv_lib_bsd_gethostbyname=no | |
24476 | fi | |
ac1cb8d3 VS |
24477 | rm -f conftest.err conftest.$ac_objext \ |
24478 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24479 | LIBS=$ac_check_lib_save_LIBS |
24480 | fi | |
24481 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24482 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24483 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24484 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24485 | fi | |
24486 | ||
24487 | fi | |
24488 | fi | |
24489 | ||
24490 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24491 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24492 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24493 | # on later versions), says Simon Leinen: it contains gethostby* | |
24494 | # variants that don't use the name server (or something). -lsocket | |
24495 | # must be given before -lnsl if both are needed. We assume that | |
24496 | # if connect needs -lnsl, so does gethostbyname. | |
24497 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24498 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24499 | if test "${ac_cv_func_connect+set}" = set; then | |
24500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24501 | else | |
24502 | cat >conftest.$ac_ext <<_ACEOF | |
24503 | /* confdefs.h. */ | |
24504 | _ACEOF | |
24505 | cat confdefs.h >>conftest.$ac_ext | |
24506 | cat >>conftest.$ac_ext <<_ACEOF | |
24507 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24508 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24509 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24510 | #define connect innocuous_connect | |
24511 | ||
a848cd7e SC |
24512 | /* System header to define __stub macros and hopefully few prototypes, |
24513 | which can conflict with char connect (); below. | |
24514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24515 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24516 | |
a848cd7e SC |
24517 | #ifdef __STDC__ |
24518 | # include <limits.h> | |
24519 | #else | |
24520 | # include <assert.h> | |
24521 | #endif | |
ac1cb8d3 VS |
24522 | |
24523 | #undef connect | |
24524 | ||
a848cd7e SC |
24525 | /* Override any gcc2 internal prototype to avoid an error. */ |
24526 | #ifdef __cplusplus | |
24527 | extern "C" | |
24528 | { | |
24529 | #endif | |
24530 | /* We use char because int might match the return type of a gcc2 | |
24531 | builtin and then its argument prototype would still apply. */ | |
24532 | char connect (); | |
24533 | /* The GNU C library defines this for functions which it implements | |
24534 | to always fail with ENOSYS. Some functions are actually named | |
24535 | something starting with __ and the normal name is an alias. */ | |
24536 | #if defined (__stub_connect) || defined (__stub___connect) | |
24537 | choke me | |
24538 | #else | |
24539 | char (*f) () = connect; | |
24540 | #endif | |
24541 | #ifdef __cplusplus | |
24542 | } | |
24543 | #endif | |
24544 | ||
24545 | int | |
24546 | main () | |
24547 | { | |
24548 | return f != connect; | |
24549 | ; | |
24550 | return 0; | |
24551 | } | |
24552 | _ACEOF | |
24553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24555 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24556 | ac_status=$? |
ac1cb8d3 VS |
24557 | grep -v '^ *+' conftest.er1 >conftest.err |
24558 | rm -f conftest.er1 | |
24559 | cat conftest.err >&5 | |
a848cd7e SC |
24560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24561 | (exit $ac_status); } && | |
4d4ff94c | 24562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24564 | (eval $ac_try) 2>&5 | |
24565 | ac_status=$? | |
24566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24567 | (exit $ac_status); }; } && | |
24568 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24570 | (eval $ac_try) 2>&5 | |
24571 | ac_status=$? | |
24572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24573 | (exit $ac_status); }; }; then | |
24574 | ac_cv_func_connect=yes | |
24575 | else | |
24576 | echo "$as_me: failed program was:" >&5 | |
24577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24578 | ||
24579 | ac_cv_func_connect=no | |
24580 | fi | |
ac1cb8d3 VS |
24581 | rm -f conftest.err conftest.$ac_objext \ |
24582 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24583 | fi |
24584 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24585 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24586 | ||
24587 | if test $ac_cv_func_connect = no; then | |
24588 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24589 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24590 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24592 | else | |
24593 | ac_check_lib_save_LIBS=$LIBS | |
24594 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
24595 | cat >conftest.$ac_ext <<_ACEOF | |
24596 | /* confdefs.h. */ | |
24597 | _ACEOF | |
24598 | cat confdefs.h >>conftest.$ac_ext | |
24599 | cat >>conftest.$ac_ext <<_ACEOF | |
24600 | /* end confdefs.h. */ | |
24601 | ||
24602 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24603 | #ifdef __cplusplus | |
24604 | extern "C" | |
24605 | #endif | |
24606 | /* We use char because int might match the return type of a gcc2 | |
24607 | builtin and then its argument prototype would still apply. */ | |
24608 | char connect (); | |
24609 | int | |
24610 | main () | |
24611 | { | |
24612 | connect (); | |
24613 | ; | |
24614 | return 0; | |
24615 | } | |
24616 | _ACEOF | |
24617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24619 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24620 | ac_status=$? |
ac1cb8d3 VS |
24621 | grep -v '^ *+' conftest.er1 >conftest.err |
24622 | rm -f conftest.er1 | |
24623 | cat conftest.err >&5 | |
a848cd7e SC |
24624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24625 | (exit $ac_status); } && | |
4d4ff94c | 24626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24628 | (eval $ac_try) 2>&5 | |
24629 | ac_status=$? | |
24630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24631 | (exit $ac_status); }; } && | |
24632 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24634 | (eval $ac_try) 2>&5 | |
24635 | ac_status=$? | |
24636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24637 | (exit $ac_status); }; }; then | |
24638 | ac_cv_lib_socket_connect=yes | |
24639 | else | |
24640 | echo "$as_me: failed program was:" >&5 | |
24641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24642 | ||
24643 | ac_cv_lib_socket_connect=no | |
24644 | fi | |
ac1cb8d3 VS |
24645 | rm -f conftest.err conftest.$ac_objext \ |
24646 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24647 | LIBS=$ac_check_lib_save_LIBS |
24648 | fi | |
24649 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24650 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24651 | if test $ac_cv_lib_socket_connect = yes; then | |
24652 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24653 | fi | |
24654 | ||
24655 | fi | |
24656 | ||
24657 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24658 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24659 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24660 | if test "${ac_cv_func_remove+set}" = set; then | |
24661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24662 | else | |
24663 | cat >conftest.$ac_ext <<_ACEOF | |
24664 | /* confdefs.h. */ | |
24665 | _ACEOF | |
24666 | cat confdefs.h >>conftest.$ac_ext | |
24667 | cat >>conftest.$ac_ext <<_ACEOF | |
24668 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24669 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24670 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24671 | #define remove innocuous_remove | |
24672 | ||
a848cd7e SC |
24673 | /* System header to define __stub macros and hopefully few prototypes, |
24674 | which can conflict with char remove (); below. | |
24675 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24676 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24677 | |
a848cd7e SC |
24678 | #ifdef __STDC__ |
24679 | # include <limits.h> | |
24680 | #else | |
24681 | # include <assert.h> | |
24682 | #endif | |
ac1cb8d3 VS |
24683 | |
24684 | #undef remove | |
24685 | ||
a848cd7e SC |
24686 | /* Override any gcc2 internal prototype to avoid an error. */ |
24687 | #ifdef __cplusplus | |
24688 | extern "C" | |
24689 | { | |
24690 | #endif | |
24691 | /* We use char because int might match the return type of a gcc2 | |
24692 | builtin and then its argument prototype would still apply. */ | |
24693 | char remove (); | |
24694 | /* The GNU C library defines this for functions which it implements | |
24695 | to always fail with ENOSYS. Some functions are actually named | |
24696 | something starting with __ and the normal name is an alias. */ | |
24697 | #if defined (__stub_remove) || defined (__stub___remove) | |
24698 | choke me | |
24699 | #else | |
24700 | char (*f) () = remove; | |
24701 | #endif | |
24702 | #ifdef __cplusplus | |
24703 | } | |
24704 | #endif | |
24705 | ||
24706 | int | |
24707 | main () | |
24708 | { | |
24709 | return f != remove; | |
24710 | ; | |
24711 | return 0; | |
24712 | } | |
24713 | _ACEOF | |
24714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24716 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24717 | ac_status=$? |
ac1cb8d3 VS |
24718 | grep -v '^ *+' conftest.er1 >conftest.err |
24719 | rm -f conftest.er1 | |
24720 | cat conftest.err >&5 | |
a848cd7e SC |
24721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24722 | (exit $ac_status); } && | |
4d4ff94c | 24723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24725 | (eval $ac_try) 2>&5 | |
24726 | ac_status=$? | |
24727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24728 | (exit $ac_status); }; } && | |
24729 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24731 | (eval $ac_try) 2>&5 | |
24732 | ac_status=$? | |
24733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24734 | (exit $ac_status); }; }; then | |
24735 | ac_cv_func_remove=yes | |
24736 | else | |
24737 | echo "$as_me: failed program was:" >&5 | |
24738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24739 | ||
24740 | ac_cv_func_remove=no | |
24741 | fi | |
ac1cb8d3 VS |
24742 | rm -f conftest.err conftest.$ac_objext \ |
24743 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24744 | fi |
24745 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24746 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
24747 | ||
24748 | if test $ac_cv_func_remove = no; then | |
24749 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
24750 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24751 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24753 | else | |
24754 | ac_check_lib_save_LIBS=$LIBS | |
24755 | LIBS="-lposix $LIBS" | |
24756 | cat >conftest.$ac_ext <<_ACEOF | |
24757 | /* confdefs.h. */ | |
24758 | _ACEOF | |
24759 | cat confdefs.h >>conftest.$ac_ext | |
24760 | cat >>conftest.$ac_ext <<_ACEOF | |
24761 | /* end confdefs.h. */ | |
24762 | ||
24763 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24764 | #ifdef __cplusplus | |
24765 | extern "C" | |
24766 | #endif | |
24767 | /* We use char because int might match the return type of a gcc2 | |
24768 | builtin and then its argument prototype would still apply. */ | |
24769 | char remove (); | |
24770 | int | |
24771 | main () | |
24772 | { | |
24773 | remove (); | |
24774 | ; | |
24775 | return 0; | |
24776 | } | |
24777 | _ACEOF | |
24778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24780 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24781 | ac_status=$? |
ac1cb8d3 VS |
24782 | grep -v '^ *+' conftest.er1 >conftest.err |
24783 | rm -f conftest.er1 | |
24784 | cat conftest.err >&5 | |
a848cd7e SC |
24785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24786 | (exit $ac_status); } && | |
4d4ff94c | 24787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24789 | (eval $ac_try) 2>&5 | |
24790 | ac_status=$? | |
24791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24792 | (exit $ac_status); }; } && | |
24793 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24795 | (eval $ac_try) 2>&5 | |
24796 | ac_status=$? | |
24797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24798 | (exit $ac_status); }; }; then | |
24799 | ac_cv_lib_posix_remove=yes | |
24800 | else | |
24801 | echo "$as_me: failed program was:" >&5 | |
24802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24803 | ||
24804 | ac_cv_lib_posix_remove=no | |
24805 | fi | |
ac1cb8d3 VS |
24806 | rm -f conftest.err conftest.$ac_objext \ |
24807 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24808 | LIBS=$ac_check_lib_save_LIBS |
24809 | fi | |
24810 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24811 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24812 | if test $ac_cv_lib_posix_remove = yes; then | |
24813 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
24814 | fi | |
24815 | ||
24816 | fi | |
24817 | ||
24818 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
24819 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
24820 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24821 | if test "${ac_cv_func_shmat+set}" = set; then | |
24822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24823 | else | |
24824 | cat >conftest.$ac_ext <<_ACEOF | |
24825 | /* confdefs.h. */ | |
24826 | _ACEOF | |
24827 | cat confdefs.h >>conftest.$ac_ext | |
24828 | cat >>conftest.$ac_ext <<_ACEOF | |
24829 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24830 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
24831 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24832 | #define shmat innocuous_shmat | |
24833 | ||
a848cd7e SC |
24834 | /* System header to define __stub macros and hopefully few prototypes, |
24835 | which can conflict with char shmat (); below. | |
24836 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24837 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24838 | |
a848cd7e SC |
24839 | #ifdef __STDC__ |
24840 | # include <limits.h> | |
24841 | #else | |
24842 | # include <assert.h> | |
24843 | #endif | |
ac1cb8d3 VS |
24844 | |
24845 | #undef shmat | |
24846 | ||
a848cd7e SC |
24847 | /* Override any gcc2 internal prototype to avoid an error. */ |
24848 | #ifdef __cplusplus | |
24849 | extern "C" | |
24850 | { | |
24851 | #endif | |
24852 | /* We use char because int might match the return type of a gcc2 | |
24853 | builtin and then its argument prototype would still apply. */ | |
24854 | char shmat (); | |
24855 | /* The GNU C library defines this for functions which it implements | |
24856 | to always fail with ENOSYS. Some functions are actually named | |
24857 | something starting with __ and the normal name is an alias. */ | |
24858 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
24859 | choke me | |
24860 | #else | |
24861 | char (*f) () = shmat; | |
24862 | #endif | |
24863 | #ifdef __cplusplus | |
24864 | } | |
24865 | #endif | |
24866 | ||
24867 | int | |
24868 | main () | |
24869 | { | |
24870 | return f != shmat; | |
24871 | ; | |
24872 | return 0; | |
24873 | } | |
24874 | _ACEOF | |
24875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24877 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24878 | ac_status=$? |
ac1cb8d3 VS |
24879 | grep -v '^ *+' conftest.er1 >conftest.err |
24880 | rm -f conftest.er1 | |
24881 | cat conftest.err >&5 | |
a848cd7e SC |
24882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24883 | (exit $ac_status); } && | |
4d4ff94c | 24884 | { ac_try='test -z "$ac_c_werror_flag" || 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_shmat=yes | |
24897 | else | |
24898 | echo "$as_me: failed program was:" >&5 | |
24899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24900 | ||
24901 | ac_cv_func_shmat=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_shmat" >&5 | |
24907 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
24908 | ||
24909 | if test $ac_cv_func_shmat = no; then | |
24910 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
24911 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
24912 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
24913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24914 | else | |
24915 | ac_check_lib_save_LIBS=$LIBS | |
24916 | LIBS="-lipc $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 shmat (); | |
24931 | int | |
24932 | main () | |
24933 | { | |
24934 | shmat (); | |
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); } && | |
4d4ff94c | 24948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24950 | (eval $ac_try) 2>&5 | |
24951 | ac_status=$? | |
24952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24953 | (exit $ac_status); }; } && | |
24954 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24956 | (eval $ac_try) 2>&5 | |
24957 | ac_status=$? | |
24958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24959 | (exit $ac_status); }; }; then | |
24960 | ac_cv_lib_ipc_shmat=yes | |
24961 | else | |
24962 | echo "$as_me: failed program was:" >&5 | |
24963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24964 | ||
24965 | ac_cv_lib_ipc_shmat=no | |
24966 | fi | |
ac1cb8d3 VS |
24967 | rm -f conftest.err conftest.$ac_objext \ |
24968 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24969 | LIBS=$ac_check_lib_save_LIBS |
24970 | fi | |
24971 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
24972 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
24973 | if test $ac_cv_lib_ipc_shmat = yes; then | |
24974 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
24975 | fi | |
24976 | ||
24977 | fi | |
24978 | fi | |
24979 | ||
24980 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
24981 | ac_save_LDFLAGS=$LDFLAGS | |
24982 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
24983 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
24984 | # check for ICE first), but we must link in the order -lSM -lICE or | |
24985 | # we get undefined symbols. So assume we have SM if we have ICE. | |
24986 | # These have to be linked with before -lX11, unlike the other | |
24987 | # libraries we check for below, so use a different variable. | |
24988 | # John Interrante, Karl Berry | |
24989 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
24990 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
24991 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
24992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24993 | else | |
24994 | ac_check_lib_save_LIBS=$LIBS | |
24995 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
24996 | cat >conftest.$ac_ext <<_ACEOF | |
24997 | /* confdefs.h. */ | |
24998 | _ACEOF | |
24999 | cat confdefs.h >>conftest.$ac_ext | |
25000 | cat >>conftest.$ac_ext <<_ACEOF | |
25001 | /* end confdefs.h. */ | |
25002 | ||
25003 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25004 | #ifdef __cplusplus | |
25005 | extern "C" | |
25006 | #endif | |
25007 | /* We use char because int might match the return type of a gcc2 | |
25008 | builtin and then its argument prototype would still apply. */ | |
25009 | char IceConnectionNumber (); | |
25010 | int | |
25011 | main () | |
25012 | { | |
25013 | IceConnectionNumber (); | |
25014 | ; | |
25015 | return 0; | |
25016 | } | |
25017 | _ACEOF | |
25018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25020 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25021 | ac_status=$? |
ac1cb8d3 VS |
25022 | grep -v '^ *+' conftest.er1 >conftest.err |
25023 | rm -f conftest.er1 | |
25024 | cat conftest.err >&5 | |
a848cd7e SC |
25025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25026 | (exit $ac_status); } && | |
4d4ff94c | 25027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25029 | (eval $ac_try) 2>&5 | |
25030 | ac_status=$? | |
25031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25032 | (exit $ac_status); }; } && | |
25033 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25035 | (eval $ac_try) 2>&5 | |
25036 | ac_status=$? | |
25037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25038 | (exit $ac_status); }; }; then | |
25039 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25040 | else | |
25041 | echo "$as_me: failed program was:" >&5 | |
25042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25043 | ||
25044 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25045 | fi | |
ac1cb8d3 VS |
25046 | rm -f conftest.err conftest.$ac_objext \ |
25047 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25048 | LIBS=$ac_check_lib_save_LIBS |
25049 | fi | |
25050 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25051 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25052 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25053 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25054 | fi | |
25055 | ||
25056 | LDFLAGS=$ac_save_LDFLAGS | |
25057 | ||
25058 | fi | |
25059 | ||
25060 | ||
25061 | if test "$no_x" = "yes"; then | |
25062 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25063 | echo "$as_me: error: X11 not found" >&2;} | |
25064 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25065 | fi | |
25066 | ||
74b84332 VS |
25067 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25068 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25069 | AFMINSTALL=afminstall |
25070 | COMPILED_X_PROGRAM=0 | |
25071 | ||
74b84332 VS |
25072 | fi |
25073 | ||
25074 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25075 | if test "$wxUSE_NANOX" = "yes"; then |
25076 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25077 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25078 | if test "x$MICROWIN" = x ; then | |
25079 | echo "$as_me:$LINENO: result: not found" >&5 | |
25080 | echo "${ECHO_T}not found" >&6 | |
25081 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25082 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25083 | { (exit 1); exit 1; }; } | |
25084 | else | |
25085 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25086 | echo "${ECHO_T}$MICROWIN" >&6 | |
25087 | cat >>confdefs.h <<\_ACEOF | |
25088 | #define wxUSE_NANOX 1 | |
25089 | _ACEOF | |
25090 | ||
25091 | fi | |
25092 | fi | |
25093 | ||
25094 | if test "$wxUSE_UNICODE" = "yes"; then | |
25095 | ||
25096 | succeeded=no | |
25097 | ||
25098 | if test -z "$PKG_CONFIG"; then | |
25099 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25100 | set dummy pkg-config; ac_word=$2 | |
25101 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25103 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25105 | else | |
25106 | case $PKG_CONFIG in | |
25107 | [\\/]* | ?:[\\/]*) | |
25108 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25109 | ;; | |
25110 | *) | |
25111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25112 | for as_dir in $PATH | |
25113 | do | |
25114 | IFS=$as_save_IFS | |
25115 | test -z "$as_dir" && as_dir=. | |
25116 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25117 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25118 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25120 | break 2 | |
25121 | fi | |
25122 | done | |
25123 | done | |
25124 | ||
25125 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25126 | ;; | |
25127 | esac | |
25128 | fi | |
25129 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25130 | ||
25131 | if test -n "$PKG_CONFIG"; then | |
25132 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25133 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25134 | else | |
25135 | echo "$as_me:$LINENO: result: no" >&5 | |
25136 | echo "${ECHO_T}no" >&6 | |
25137 | fi | |
25138 | ||
25139 | fi | |
25140 | ||
25141 | if test "$PKG_CONFIG" = "no" ; then | |
25142 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25143 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25144 | echo "*** to the full path to pkg-config." | |
25145 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25146 | else | |
25147 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25148 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25149 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25150 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25151 | ||
25152 | if $PKG_CONFIG --exists "pangox" ; then | |
25153 | echo "$as_me:$LINENO: result: yes" >&5 | |
25154 | echo "${ECHO_T}yes" >&6 | |
25155 | succeeded=yes | |
25156 | ||
25157 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25158 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25159 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25160 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25161 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25162 | ||
25163 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25164 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25165 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25166 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25167 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25168 | else | |
25169 | PANGOX_CFLAGS="" | |
25170 | PANGOX_LIBS="" | |
25171 | ## If we have a custom action on failure, don't print errors, but | |
25172 | ## do set a variable so people can do so. | |
25173 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25174 | ||
25175 | fi | |
25176 | ||
25177 | ||
25178 | ||
25179 | else | |
25180 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25181 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25182 | fi | |
25183 | fi | |
25184 | ||
25185 | if test $succeeded = yes; then | |
25186 | ||
25187 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25188 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25189 | ||
25190 | else | |
25191 | ||
25192 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25193 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25194 | { (exit 1); exit 1; }; } | |
25195 | ||
25196 | ||
25197 | fi | |
25198 | ||
25199 | ||
25200 | succeeded=no | |
25201 | ||
25202 | if test -z "$PKG_CONFIG"; then | |
25203 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25204 | set dummy pkg-config; ac_word=$2 | |
25205 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25207 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25209 | else | |
25210 | case $PKG_CONFIG in | |
25211 | [\\/]* | ?:[\\/]*) | |
25212 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25213 | ;; | |
25214 | *) | |
25215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25216 | for as_dir in $PATH | |
25217 | do | |
25218 | IFS=$as_save_IFS | |
25219 | test -z "$as_dir" && as_dir=. | |
25220 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25221 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25222 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25223 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25224 | break 2 | |
25225 | fi | |
25226 | done | |
25227 | done | |
25228 | ||
25229 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25230 | ;; | |
25231 | esac | |
25232 | fi | |
25233 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25234 | ||
25235 | if test -n "$PKG_CONFIG"; then | |
25236 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25237 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25238 | else | |
25239 | echo "$as_me:$LINENO: result: no" >&5 | |
25240 | echo "${ECHO_T}no" >&6 | |
25241 | fi | |
25242 | ||
25243 | fi | |
25244 | ||
25245 | if test "$PKG_CONFIG" = "no" ; then | |
25246 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25247 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25248 | echo "*** to the full path to pkg-config." | |
25249 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25250 | else | |
25251 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25252 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25253 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25254 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25255 | ||
25256 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25257 | echo "$as_me:$LINENO: result: yes" >&5 | |
25258 | echo "${ECHO_T}yes" >&6 | |
25259 | succeeded=yes | |
25260 | ||
25261 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25262 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25263 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25264 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25265 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25266 | ||
25267 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25268 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25269 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25270 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25271 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25272 | else | |
25273 | PANGOFT2_CFLAGS="" | |
25274 | PANGOFT2_LIBS="" | |
25275 | ## If we have a custom action on failure, don't print errors, but | |
25276 | ## do set a variable so people can do so. | |
25277 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25278 | ||
25279 | fi | |
25280 | ||
25281 | ||
25282 | ||
25283 | else | |
25284 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25285 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25286 | fi | |
25287 | fi | |
25288 | ||
25289 | if test $succeeded = yes; then | |
25290 | ||
25291 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25292 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25293 | ||
25294 | else | |
25295 | ||
25296 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25297 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25298 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25299 | ||
25300 | ||
25301 | fi | |
25302 | ||
25303 | ||
25304 | succeeded=no | |
25305 | ||
25306 | if test -z "$PKG_CONFIG"; then | |
25307 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25308 | set dummy pkg-config; ac_word=$2 | |
25309 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25311 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25313 | else | |
25314 | case $PKG_CONFIG in | |
25315 | [\\/]* | ?:[\\/]*) | |
25316 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25317 | ;; | |
25318 | *) | |
25319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25320 | for as_dir in $PATH | |
25321 | do | |
25322 | IFS=$as_save_IFS | |
25323 | test -z "$as_dir" && as_dir=. | |
25324 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25325 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25326 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25327 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25328 | break 2 | |
25329 | fi | |
25330 | done | |
25331 | done | |
25332 | ||
25333 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25334 | ;; | |
25335 | esac | |
25336 | fi | |
25337 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25338 | ||
25339 | if test -n "$PKG_CONFIG"; then | |
25340 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25341 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25342 | else | |
25343 | echo "$as_me:$LINENO: result: no" >&5 | |
25344 | echo "${ECHO_T}no" >&6 | |
25345 | fi | |
25346 | ||
25347 | fi | |
25348 | ||
25349 | if test "$PKG_CONFIG" = "no" ; then | |
25350 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25351 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25352 | echo "*** to the full path to pkg-config." | |
25353 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25354 | else | |
25355 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25356 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25357 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25358 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25359 | ||
25360 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25361 | echo "$as_me:$LINENO: result: yes" >&5 | |
25362 | echo "${ECHO_T}yes" >&6 | |
25363 | succeeded=yes | |
25364 | ||
25365 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25366 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25367 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25368 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25369 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25370 | ||
25371 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25372 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25373 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25374 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25375 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25376 | else | |
25377 | PANGOXFT_CFLAGS="" | |
25378 | PANGOXFT_LIBS="" | |
25379 | ## If we have a custom action on failure, don't print errors, but | |
25380 | ## do set a variable so people can do so. | |
25381 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25382 | ||
25383 | fi | |
25384 | ||
25385 | ||
25386 | ||
25387 | else | |
25388 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25389 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25390 | fi | |
25391 | fi | |
25392 | ||
25393 | if test $succeeded = yes; then | |
25394 | ||
25395 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25396 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25397 | ||
25398 | else | |
25399 | ||
25400 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25401 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25402 | ||
25403 | ||
25404 | fi | |
25405 | ||
304205f1 VS |
25406 | save_CFLAGS="$CFLAGS" |
25407 | save_LIBS="$LIBS" | |
25408 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25409 | LIBS="$LIBS $PANGOX_LIBS" | |
25410 | ||
25411 | for ac_func in pango_font_family_is_monospace | |
25412 | do | |
25413 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25414 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25415 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25416 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25418 | else | |
25419 | cat >conftest.$ac_ext <<_ACEOF | |
25420 | /* confdefs.h. */ | |
25421 | _ACEOF | |
25422 | cat confdefs.h >>conftest.$ac_ext | |
25423 | cat >>conftest.$ac_ext <<_ACEOF | |
25424 | /* end confdefs.h. */ | |
25425 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25426 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25427 | #define $ac_func innocuous_$ac_func | |
25428 | ||
25429 | /* System header to define __stub macros and hopefully few prototypes, | |
25430 | which can conflict with char $ac_func (); below. | |
25431 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25432 | <limits.h> exists even on freestanding compilers. */ | |
25433 | ||
25434 | #ifdef __STDC__ | |
25435 | # include <limits.h> | |
25436 | #else | |
25437 | # include <assert.h> | |
25438 | #endif | |
25439 | ||
25440 | #undef $ac_func | |
25441 | ||
25442 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25443 | #ifdef __cplusplus | |
25444 | extern "C" | |
25445 | { | |
25446 | #endif | |
25447 | /* We use char because int might match the return type of a gcc2 | |
25448 | builtin and then its argument prototype would still apply. */ | |
25449 | char $ac_func (); | |
25450 | /* The GNU C library defines this for functions which it implements | |
25451 | to always fail with ENOSYS. Some functions are actually named | |
25452 | something starting with __ and the normal name is an alias. */ | |
25453 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25454 | choke me | |
25455 | #else | |
25456 | char (*f) () = $ac_func; | |
25457 | #endif | |
25458 | #ifdef __cplusplus | |
25459 | } | |
25460 | #endif | |
25461 | ||
25462 | int | |
25463 | main () | |
25464 | { | |
25465 | return f != $ac_func; | |
25466 | ; | |
25467 | return 0; | |
25468 | } | |
25469 | _ACEOF | |
25470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25472 | (eval $ac_link) 2>conftest.er1 | |
25473 | ac_status=$? | |
25474 | grep -v '^ *+' conftest.er1 >conftest.err | |
25475 | rm -f conftest.er1 | |
25476 | cat conftest.err >&5 | |
25477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25478 | (exit $ac_status); } && | |
4d4ff94c | 25479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
25480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25481 | (eval $ac_try) 2>&5 | |
25482 | ac_status=$? | |
25483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25484 | (exit $ac_status); }; } && | |
25485 | { ac_try='test -s conftest$ac_exeext' | |
25486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25487 | (eval $ac_try) 2>&5 | |
25488 | ac_status=$? | |
25489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25490 | (exit $ac_status); }; }; then | |
25491 | eval "$as_ac_var=yes" | |
25492 | else | |
25493 | echo "$as_me: failed program was:" >&5 | |
25494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25495 | ||
25496 | eval "$as_ac_var=no" | |
25497 | fi | |
25498 | rm -f conftest.err conftest.$ac_objext \ | |
25499 | conftest$ac_exeext conftest.$ac_ext | |
25500 | fi | |
25501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25502 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25503 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25504 | cat >>confdefs.h <<_ACEOF | |
25505 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25506 | _ACEOF | |
25507 | ||
25508 | fi | |
25509 | done | |
25510 | ||
25511 | CFLAGS="$save_CFLAGS" | |
25512 | LIBS="$save_LIBS" | |
a848cd7e SC |
25513 | fi |
25514 | ||
25515 | wxUSE_UNIVERSAL="yes" | |
25516 | ||
25517 | if test "$wxUSE_NANOX" = "yes"; then | |
25518 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25519 | 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" | |
25520 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25521 | else | |
25522 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25523 | fi | |
25524 | ||
25525 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
25526 | TOOLKIT=X11 | |
25527 | GUIDIST=X11_DIST | |
25528 | fi | |
25529 | ||
25530 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25531 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25532 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25533 | |
74b84332 VS |
25534 | ac_find_includes= |
25535 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25536 | do | |
25537 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25538 | ac_find_includes=$ac_dir | |
25539 | break | |
25540 | fi | |
25541 | done | |
a848cd7e | 25542 | |
74b84332 VS |
25543 | if test "$ac_find_includes" != "" ; then |
25544 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25545 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25546 | ||
25547 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25548 | ac_path_to_include="" | |
25549 | else | |
25550 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25551 | result=$? | |
25552 | if test $result = 0; then | |
25553 | ac_path_to_include="" | |
25554 | else | |
25555 | ac_path_to_include=" -I$ac_find_includes" | |
25556 | fi | |
a848cd7e SC |
25557 | fi |
25558 | ||
74b84332 VS |
25559 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25560 | else | |
25561 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25562 | /* confdefs.h. */ |
25563 | _ACEOF | |
25564 | cat confdefs.h >>conftest.$ac_ext | |
25565 | cat >>conftest.$ac_ext <<_ACEOF | |
25566 | /* end confdefs.h. */ | |
25567 | ||
74b84332 VS |
25568 | #include <Xm/Xm.h> |
25569 | ||
a848cd7e SC |
25570 | int |
25571 | main () | |
25572 | { | |
25573 | ||
74b84332 VS |
25574 | int version; |
25575 | version = xmUseVersion; | |
25576 | ||
a848cd7e SC |
25577 | ; |
25578 | return 0; | |
25579 | } | |
25580 | _ACEOF | |
74b84332 VS |
25581 | rm -f conftest.$ac_objext |
25582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25583 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25584 | ac_status=$? |
ac1cb8d3 VS |
25585 | grep -v '^ *+' conftest.er1 >conftest.err |
25586 | rm -f conftest.er1 | |
25587 | cat conftest.err >&5 | |
a848cd7e SC |
25588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25589 | (exit $ac_status); } && | |
4d4ff94c | 25590 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25592 | (eval $ac_try) 2>&5 | |
25593 | ac_status=$? | |
25594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25595 | (exit $ac_status); }; } && | |
74b84332 | 25596 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25598 | (eval $ac_try) 2>&5 | |
25599 | ac_status=$? | |
25600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25601 | (exit $ac_status); }; }; then | |
74b84332 VS |
25602 | |
25603 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25604 | echo "${ECHO_T}found in default search path" >&6 | |
25605 | COMPILED_X_PROGRAM=1 | |
25606 | ||
a848cd7e SC |
25607 | else |
25608 | echo "$as_me: failed program was:" >&5 | |
25609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25610 | ||
a848cd7e | 25611 | |
74b84332 VS |
25612 | echo "$as_me:$LINENO: result: no" >&5 |
25613 | echo "${ECHO_T}no" >&6 | |
25614 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25615 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25616 | { (exit 1); exit 1; }; } | |
a848cd7e | 25617 | |
a848cd7e | 25618 | |
a848cd7e | 25619 | fi |
74b84332 VS |
25620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25621 | fi | |
25622 | ||
25623 | if test "$COMPILED_X_PROGRAM" = 0; then | |
25624 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
25625 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25626 | ||
25627 | ac_find_libraries= | |
25628 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25629 | do | |
25630 | for ac_extension in a so sl dylib; do | |
25631 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25632 | ac_find_libraries=$ac_dir | |
25633 | break 2 | |
a848cd7e | 25634 | fi |
74b84332 VS |
25635 | done |
25636 | done | |
a848cd7e | 25637 | |
74b84332 VS |
25638 | if test "$ac_find_libraries" != "" ; then |
25639 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25640 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 25641 | |
74b84332 VS |
25642 | |
25643 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25644 | result=$? | |
25645 | if test $result = 0; then | |
25646 | ac_path_to_link="" | |
a848cd7e | 25647 | else |
74b84332 VS |
25648 | ac_path_to_link=" -L$ac_find_libraries" |
25649 | fi | |
25650 | ||
25651 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25652 | else | |
25653 | save_CFLAGS=$CFLAGS | |
25654 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25655 | ||
25656 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25657 | /* confdefs.h. */ |
25658 | _ACEOF | |
25659 | cat confdefs.h >>conftest.$ac_ext | |
25660 | cat >>conftest.$ac_ext <<_ACEOF | |
25661 | /* end confdefs.h. */ | |
25662 | ||
74b84332 VS |
25663 | #include <Xm/Xm.h> |
25664 | ||
a848cd7e SC |
25665 | int |
25666 | main () | |
25667 | { | |
74b84332 VS |
25668 | |
25669 | int version; | |
25670 | version = xmUseVersion; | |
25671 | ||
a848cd7e SC |
25672 | ; |
25673 | return 0; | |
25674 | } | |
25675 | _ACEOF | |
74b84332 VS |
25676 | rm -f conftest.$ac_objext |
25677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25678 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25679 | ac_status=$? |
ac1cb8d3 VS |
25680 | grep -v '^ *+' conftest.er1 >conftest.err |
25681 | rm -f conftest.er1 | |
25682 | cat conftest.err >&5 | |
a848cd7e SC |
25683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25684 | (exit $ac_status); } && | |
4d4ff94c | 25685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25687 | (eval $ac_try) 2>&5 | |
25688 | ac_status=$? | |
25689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25690 | (exit $ac_status); }; } && | |
74b84332 | 25691 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25693 | (eval $ac_try) 2>&5 | |
25694 | ac_status=$? | |
25695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25696 | (exit $ac_status); }; }; then | |
74b84332 VS |
25697 | |
25698 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25699 | echo "${ECHO_T}found in default search path" >&6 | |
25700 | COMPILED_X_PROGRAM=1 | |
25701 | ||
a848cd7e SC |
25702 | else |
25703 | echo "$as_me: failed program was:" >&5 | |
25704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25705 | ||
74b84332 VS |
25706 | |
25707 | echo "$as_me:$LINENO: result: no" >&5 | |
25708 | echo "${ECHO_T}no" >&6 | |
25709 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
25710 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
25711 | { (exit 1); exit 1; }; } | |
25712 | ||
25713 | ||
25714 | fi | |
25715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25716 | ||
25717 | CFLAGS=$save_CFLAGS | |
25718 | fi | |
25719 | fi | |
25720 | ||
25721 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
25722 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
25723 | libp_link="" | |
25724 | libsm_ice_link="" | |
25725 | libs_found=0 | |
25726 | for libp in "" " -lXp"; do | |
25727 | if test "$libs_found" = "0"; then | |
25728 | for libsm_ice in "" " -lSM -lICE"; do | |
25729 | if test "$libs_found" = "0"; then | |
25730 | save_LIBS="$LIBS" | |
25731 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
25732 | save_CFLAGS=$CFLAGS | |
25733 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25734 | ||
25735 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25736 | /* confdefs.h. */ |
25737 | _ACEOF | |
25738 | cat confdefs.h >>conftest.$ac_ext | |
25739 | cat >>conftest.$ac_ext <<_ACEOF | |
25740 | /* end confdefs.h. */ | |
25741 | ||
74b84332 VS |
25742 | #include <Xm/Xm.h> |
25743 | #include <Xm/List.h> | |
25744 | ||
a848cd7e SC |
25745 | int |
25746 | main () | |
25747 | { | |
74b84332 VS |
25748 | |
25749 | XmString string = NULL; | |
25750 | Widget w = NULL; | |
25751 | int position = 0; | |
25752 | XmListAddItem(w, string, position); | |
25753 | ||
a848cd7e SC |
25754 | ; |
25755 | return 0; | |
25756 | } | |
25757 | _ACEOF | |
25758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25760 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25761 | ac_status=$? |
ac1cb8d3 VS |
25762 | grep -v '^ *+' conftest.er1 >conftest.err |
25763 | rm -f conftest.er1 | |
25764 | cat conftest.err >&5 | |
a848cd7e SC |
25765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25766 | (exit $ac_status); } && | |
4d4ff94c | 25767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25769 | (eval $ac_try) 2>&5 | |
25770 | ac_status=$? | |
25771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25772 | (exit $ac_status); }; } && | |
25773 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25775 | (eval $ac_try) 2>&5 | |
25776 | ac_status=$? | |
25777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25778 | (exit $ac_status); }; }; then | |
25779 | ||
25780 | libp_link="$libp" | |
25781 | libsm_ice_link="$libsm_ice" | |
25782 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
25783 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
25784 | libs_found=1 | |
25785 | ||
25786 | else | |
25787 | echo "$as_me: failed program was:" >&5 | |
25788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25789 | ||
25790 | ||
25791 | ||
25792 | fi | |
ac1cb8d3 VS |
25793 | rm -f conftest.err conftest.$ac_objext \ |
25794 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25795 | |
25796 | LIBS="$save_LIBS" | |
25797 | CFLAGS=$save_CFLAGS | |
25798 | fi | |
25799 | done | |
25800 | fi | |
25801 | done | |
25802 | ||
25803 | if test "$libs_found" = "0"; then | |
25804 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
25805 | echo "${ECHO_T}can't find the right libraries" >&6 | |
25806 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
25807 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
25808 | { (exit 1); exit 1; }; } | |
25809 | fi | |
25810 | ||
25811 | save_CFLAGS=$CFLAGS | |
25812 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25813 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
25814 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
25815 | cat >conftest.$ac_ext <<_ACEOF | |
25816 | /* confdefs.h. */ | |
25817 | _ACEOF | |
25818 | cat confdefs.h >>conftest.$ac_ext | |
25819 | cat >>conftest.$ac_ext <<_ACEOF | |
25820 | /* end confdefs.h. */ | |
25821 | ||
25822 | #include <Xm/Xm.h> | |
25823 | ||
25824 | int | |
25825 | main () | |
25826 | { | |
25827 | ||
25828 | #if XmVersion < 2000 | |
25829 | #error "Not Motif 2" | |
25830 | #endif | |
25831 | ||
25832 | ; | |
25833 | return 0; | |
25834 | } | |
25835 | _ACEOF | |
25836 | rm -f conftest.$ac_objext | |
25837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25838 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25839 | ac_status=$? |
ac1cb8d3 VS |
25840 | grep -v '^ *+' conftest.er1 >conftest.err |
25841 | rm -f conftest.er1 | |
25842 | cat conftest.err >&5 | |
a848cd7e SC |
25843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25844 | (exit $ac_status); } && | |
4d4ff94c | 25845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25847 | (eval $ac_try) 2>&5 | |
25848 | ac_status=$? | |
25849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25850 | (exit $ac_status); }; } && | |
25851 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25853 | (eval $ac_try) 2>&5 | |
25854 | ac_status=$? | |
25855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25856 | (exit $ac_status); }; }; then | |
25857 | ||
25858 | cat >>confdefs.h <<\_ACEOF | |
25859 | #define __WXMOTIF20__ 1 | |
25860 | _ACEOF | |
25861 | ||
25862 | echo "$as_me:$LINENO: result: found" >&5 | |
25863 | echo "${ECHO_T}found" >&6 | |
25864 | ||
25865 | else | |
25866 | echo "$as_me: failed program was:" >&5 | |
25867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25868 | ||
25869 | ||
25870 | cat >>confdefs.h <<\_ACEOF | |
25871 | #define __WXMOTIF20__ 0 | |
25872 | _ACEOF | |
25873 | ||
25874 | echo "$as_me:$LINENO: result: not found" >&5 | |
25875 | echo "${ECHO_T}not found" >&6 | |
25876 | ||
25877 | fi | |
ac1cb8d3 | 25878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25879 | CFLAGS=$save_CFLAGS |
25880 | ||
25881 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
25882 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" | |
25883 | TOOLKIT=MOTIF | |
25884 | GUIDIST=MOTIF_DIST | |
25885 | fi | |
25886 | ||
74b84332 | 25887 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
25888 | if test "$wxUSE_LIBXPM" = "sys"; then |
25889 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
25890 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
25891 | ||
25892 | ac_find_libraries= | |
25893 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25894 | do | |
25895 | for ac_extension in a so sl dylib; do | |
25896 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
25897 | ac_find_libraries=$ac_dir | |
25898 | break 2 | |
25899 | fi | |
25900 | done | |
25901 | done | |
25902 | ||
25903 | if test "$ac_find_libraries" != "" ; then | |
25904 | ||
25905 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25906 | result=$? | |
25907 | if test $result = 0; then | |
25908 | ac_path_to_link="" | |
25909 | else | |
25910 | ac_path_to_link=" -L$ac_find_libraries" | |
25911 | fi | |
25912 | ||
25913 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25914 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25915 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25916 | ||
25917 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
25918 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
25919 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
25920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25921 | else | |
25922 | ||
25923 | save_CFLAGS=$CFLAGS | |
25924 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25925 | ||
25926 | cat >conftest.$ac_ext <<_ACEOF | |
25927 | /* confdefs.h. */ | |
25928 | _ACEOF | |
25929 | cat confdefs.h >>conftest.$ac_ext | |
25930 | cat >>conftest.$ac_ext <<_ACEOF | |
25931 | /* end confdefs.h. */ | |
25932 | ||
25933 | #include <X11/xpm.h> | |
25934 | ||
25935 | int | |
25936 | main () | |
25937 | { | |
25938 | ||
25939 | int version; | |
25940 | version = XpmLibraryVersion(); | |
25941 | ||
25942 | ; | |
25943 | return 0; | |
25944 | } | |
25945 | _ACEOF | |
25946 | rm -f conftest.$ac_objext | |
25947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25948 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25949 | ac_status=$? |
ac1cb8d3 VS |
25950 | grep -v '^ *+' conftest.er1 >conftest.err |
25951 | rm -f conftest.er1 | |
25952 | cat conftest.err >&5 | |
a848cd7e SC |
25953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25954 | (exit $ac_status); } && | |
4d4ff94c | 25955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25957 | (eval $ac_try) 2>&5 | |
25958 | ac_status=$? | |
25959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25960 | (exit $ac_status); }; } && | |
25961 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25963 | (eval $ac_try) 2>&5 | |
25964 | ac_status=$? | |
25965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25966 | (exit $ac_status); }; }; then | |
25967 | wx_cv_x11_xpm_h=yes | |
25968 | else | |
25969 | echo "$as_me: failed program was:" >&5 | |
25970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25971 | ||
25972 | wx_cv_x11_xpm_h=no | |
25973 | ||
25974 | fi | |
ac1cb8d3 | 25975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25976 | |
25977 | CFLAGS=$save_CFLAGS | |
25978 | ||
25979 | ||
25980 | fi | |
25981 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
25982 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
25983 | ||
25984 | if test $wx_cv_x11_xpm_h = "yes"; then | |
25985 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
25986 | cat >>confdefs.h <<\_ACEOF | |
25987 | #define wxHAVE_LIB_XPM 1 | |
25988 | _ACEOF | |
25989 | ||
25990 | else | |
25991 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
25992 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
25993 | fi | |
25994 | fi | |
25995 | ||
25996 | fi | |
25997 | ||
25998 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
25999 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26000 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26002 | else | |
26003 | ac_check_lib_save_LIBS=$LIBS | |
26004 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26005 | cat >conftest.$ac_ext <<_ACEOF | |
26006 | /* confdefs.h. */ | |
26007 | _ACEOF | |
26008 | cat confdefs.h >>conftest.$ac_ext | |
26009 | cat >>conftest.$ac_ext <<_ACEOF | |
26010 | /* end confdefs.h. */ | |
26011 | ||
26012 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26013 | #ifdef __cplusplus | |
26014 | extern "C" | |
26015 | #endif | |
26016 | /* We use char because int might match the return type of a gcc2 | |
26017 | builtin and then its argument prototype would still apply. */ | |
26018 | char XShapeQueryExtension (); | |
26019 | int | |
26020 | main () | |
26021 | { | |
26022 | XShapeQueryExtension (); | |
26023 | ; | |
26024 | return 0; | |
26025 | } | |
26026 | _ACEOF | |
26027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26029 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26030 | ac_status=$? |
ac1cb8d3 VS |
26031 | grep -v '^ *+' conftest.er1 >conftest.err |
26032 | rm -f conftest.er1 | |
26033 | cat conftest.err >&5 | |
a848cd7e SC |
26034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26035 | (exit $ac_status); } && | |
4d4ff94c | 26036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26038 | (eval $ac_try) 2>&5 | |
26039 | ac_status=$? | |
26040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26041 | (exit $ac_status); }; } && | |
26042 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26044 | (eval $ac_try) 2>&5 | |
26045 | ac_status=$? | |
26046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26047 | (exit $ac_status); }; }; then | |
26048 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26049 | else | |
26050 | echo "$as_me: failed program was:" >&5 | |
26051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26052 | ||
26053 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26054 | fi | |
ac1cb8d3 VS |
26055 | rm -f conftest.err conftest.$ac_objext \ |
26056 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26057 | LIBS=$ac_check_lib_save_LIBS |
26058 | fi | |
26059 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26060 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26061 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26062 | ||
26063 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26064 | wxHAVE_XEXT_LIB=1 | |
26065 | ||
26066 | fi | |
26067 | ||
26068 | ||
26069 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26070 | save_CFLAGS="$CFLAGS" | |
26071 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26072 | ||
26073 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26074 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26075 | cat >conftest.$ac_ext <<_ACEOF | |
26076 | /* confdefs.h. */ | |
26077 | _ACEOF | |
26078 | cat confdefs.h >>conftest.$ac_ext | |
26079 | cat >>conftest.$ac_ext <<_ACEOF | |
26080 | /* end confdefs.h. */ | |
26081 | ||
26082 | #include <X11/Xlib.h> | |
26083 | #include <X11/extensions/shape.h> | |
26084 | ||
26085 | int | |
26086 | main () | |
26087 | { | |
26088 | ||
26089 | int dummy1, dummy2; | |
26090 | XShapeQueryExtension((Display*)NULL, | |
26091 | (int*)NULL, (int*)NULL); | |
26092 | ||
26093 | ; | |
26094 | return 0; | |
26095 | } | |
26096 | _ACEOF | |
26097 | rm -f conftest.$ac_objext | |
26098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26099 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26100 | ac_status=$? |
ac1cb8d3 VS |
26101 | grep -v '^ *+' conftest.er1 >conftest.err |
26102 | rm -f conftest.er1 | |
26103 | cat conftest.err >&5 | |
a848cd7e SC |
26104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26105 | (exit $ac_status); } && | |
4d4ff94c | 26106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26108 | (eval $ac_try) 2>&5 | |
26109 | ac_status=$? | |
26110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26111 | (exit $ac_status); }; } && | |
26112 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26114 | (eval $ac_try) 2>&5 | |
26115 | ac_status=$? | |
26116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26117 | (exit $ac_status); }; }; then | |
26118 | ||
26119 | cat >>confdefs.h <<\_ACEOF | |
26120 | #define HAVE_XSHAPE 1 | |
26121 | _ACEOF | |
26122 | ||
26123 | echo "$as_me:$LINENO: result: found" >&5 | |
26124 | echo "${ECHO_T}found" >&6 | |
26125 | ||
26126 | else | |
26127 | echo "$as_me: failed program was:" >&5 | |
26128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26129 | ||
26130 | ||
26131 | echo "$as_me:$LINENO: result: not found" >&5 | |
26132 | echo "${ECHO_T}not found" >&6 | |
26133 | ||
26134 | fi | |
ac1cb8d3 | 26135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26136 | CFLAGS="$save_CFLAGS" |
26137 | ||
26138 | fi | |
26139 | fi | |
26140 | ||
26141 | if test "$wxUSE_MAC" = 1; then | |
26142 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26143 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26144 | if test "$GCC" = yes; then | |
26145 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26146 | echo "${ECHO_T}gcc" >&6 | |
26147 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26148 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26149 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26150 | echo "${ECHO_T}xlc" >&6 | |
26151 | CPPFLAGS_PASCAL="-qmacpstr" | |
26152 | else | |
26153 | echo "$as_me:$LINENO: result: none" >&5 | |
26154 | echo "${ECHO_T}none" >&6 | |
26155 | fi | |
26156 | ||
26157 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26158 | ||
26159 | TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex" | |
26160 | TOOLKIT=MAC | |
26161 | GUIDIST=MACX_DIST | |
26162 | WXBASEPORT="_carbon" | |
26163 | fi | |
26164 | ||
26165 | if test "$wxUSE_COCOA" = 1; then | |
26166 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
26167 | TOOLKIT=COCOA | |
26168 | GUIDIST=COCOA_DIST | |
26169 | fi | |
26170 | ||
26171 | if test "$wxUSE_PM" = 1; then | |
26172 | TOOLKIT=PM | |
de59c161 RD |
26173 | GUIDIST=PM_DIST |
26174 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26175 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26176 | if test "${wx_cv_spbcdata+set}" = set; then | |
26177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26178 | else | |
26179 | ||
26180 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26181 | /* confdefs.h. */ |
26182 | _ACEOF | |
26183 | cat confdefs.h >>conftest.$ac_ext | |
26184 | cat >>conftest.$ac_ext <<_ACEOF | |
26185 | /* end confdefs.h. */ | |
26186 | ||
26187 | #define INCL_PM | |
26188 | #include <os2.h> | |
26189 | ||
26190 | int | |
26191 | main () | |
26192 | { | |
26193 | ||
26194 | SPBCDATA test; | |
26195 | ||
26196 | ; | |
26197 | return 0; | |
26198 | } | |
26199 | _ACEOF | |
26200 | rm -f conftest.$ac_objext | |
26201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26202 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26203 | ac_status=$? |
ac1cb8d3 VS |
26204 | grep -v '^ *+' conftest.er1 >conftest.err |
26205 | rm -f conftest.er1 | |
26206 | cat conftest.err >&5 | |
de59c161 RD |
26207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26208 | (exit $ac_status); } && | |
4d4ff94c | 26209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26211 | (eval $ac_try) 2>&5 | |
26212 | ac_status=$? | |
26213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26214 | (exit $ac_status); }; } && | |
26215 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26217 | (eval $ac_try) 2>&5 | |
26218 | ac_status=$? | |
26219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26220 | (exit $ac_status); }; }; then | |
26221 | wx_cv_spbcdata=yes | |
26222 | else | |
26223 | echo "$as_me: failed program was:" >&5 | |
26224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26225 | ||
26226 | wx_cv_spbcdata=no | |
26227 | ||
26228 | fi | |
ac1cb8d3 | 26229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26230 | |
26231 | ||
26232 | fi | |
26233 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26234 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26235 | ||
26236 | if test $wx_cv_spbcdata = "yes"; then | |
26237 | cat >>confdefs.h <<\_ACEOF | |
26238 | #define HAVE_SPBCDATA 1 | |
26239 | _ACEOF | |
26240 | ||
26241 | fi | |
a848cd7e SC |
26242 | fi |
26243 | ||
26244 | if test "$TOOLKIT" = "PM" ; then | |
26245 | TOOLKIT_DIR="os2" | |
26246 | else | |
26247 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26248 | fi | |
26249 | ||
26250 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
26251 | ||
26252 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
26253 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
26254 | ||
26255 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
26256 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
26257 | ||
26258 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
26259 | if test "$wxUSE_X11" = 1; then | |
26260 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
26261 | else | |
26262 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26263 | fi | |
26264 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
26265 | WIDGET_SET=univ | |
26266 | else | |
26267 | ALL_OBJECTS="\$(GUIOBJS)" | |
26268 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26269 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26270 | fi | |
26271 | ||
26272 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
26273 | ||
26274 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
26275 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
26276 | fi | |
26277 | ||
26278 | if test "$wxUSE_HTML" = "yes"; then | |
26279 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
26280 | fi | |
26281 | ||
26282 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
26283 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
26284 | fi | |
26285 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
26286 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
26287 | fi | |
26288 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
26289 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
26290 | fi | |
26291 | ||
26292 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26293 | DISTDIR="wx\$(TOOLKIT)" | |
26294 | else | |
26295 | USE_GUI=0 | |
26296 | ||
26297 | TOOLKIT_DIR="base" | |
26298 | ||
26299 | if test "$USE_WIN32" = 1 ; then | |
26300 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
26301 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
26302 | ||
26303 | TOOLKIT="MSW" | |
26304 | else | |
26305 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
26306 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
26307 | fi | |
26308 | ||
26309 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26310 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26311 | ||
26312 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
26313 | ||
26314 | GUIDIST="BASE_DIST" | |
26315 | DISTDIR="wxBase" | |
26316 | fi | |
26317 | ||
26318 | ||
26319 | ||
26320 | ||
26321 | IODBC_C_SRC="" | |
26322 | ||
26323 | ||
26324 | if test "$TOOLKIT" != "MSW" ; then | |
26325 | ||
26326 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26327 | ||
26328 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26329 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26330 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26331 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26333 | fi | |
26334 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26335 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26336 | else | |
26337 | # Is the header compilable? | |
26338 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26339 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26340 | cat >conftest.$ac_ext <<_ACEOF | |
26341 | /* confdefs.h. */ | |
26342 | _ACEOF | |
26343 | cat confdefs.h >>conftest.$ac_ext | |
26344 | cat >>conftest.$ac_ext <<_ACEOF | |
26345 | /* end confdefs.h. */ | |
26346 | $ac_includes_default | |
26347 | #include <sql.h> | |
26348 | _ACEOF | |
26349 | rm -f conftest.$ac_objext | |
26350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26351 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26352 | ac_status=$? |
ac1cb8d3 VS |
26353 | grep -v '^ *+' conftest.er1 >conftest.err |
26354 | rm -f conftest.er1 | |
26355 | cat conftest.err >&5 | |
a848cd7e SC |
26356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26357 | (exit $ac_status); } && | |
4d4ff94c | 26358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26360 | (eval $ac_try) 2>&5 | |
26361 | ac_status=$? | |
26362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26363 | (exit $ac_status); }; } && | |
26364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26366 | (eval $ac_try) 2>&5 | |
26367 | ac_status=$? | |
26368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26369 | (exit $ac_status); }; }; then | |
26370 | ac_header_compiler=yes | |
26371 | else | |
26372 | echo "$as_me: failed program was:" >&5 | |
26373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26374 | ||
26375 | ac_header_compiler=no | |
26376 | fi | |
ac1cb8d3 | 26377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26379 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26380 | ||
26381 | # Is the header present? | |
26382 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26383 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26384 | cat >conftest.$ac_ext <<_ACEOF | |
26385 | /* confdefs.h. */ | |
26386 | _ACEOF | |
26387 | cat confdefs.h >>conftest.$ac_ext | |
26388 | cat >>conftest.$ac_ext <<_ACEOF | |
26389 | /* end confdefs.h. */ | |
26390 | #include <sql.h> | |
26391 | _ACEOF | |
26392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26394 | ac_status=$? | |
26395 | grep -v '^ *+' conftest.er1 >conftest.err | |
26396 | rm -f conftest.er1 | |
26397 | cat conftest.err >&5 | |
26398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26399 | (exit $ac_status); } >/dev/null; then | |
26400 | if test -s conftest.err; then | |
26401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26403 | else |
26404 | ac_cpp_err= | |
26405 | fi | |
26406 | else | |
26407 | ac_cpp_err=yes | |
26408 | fi | |
26409 | if test -z "$ac_cpp_err"; then | |
26410 | ac_header_preproc=yes | |
26411 | else | |
26412 | echo "$as_me: failed program was:" >&5 | |
26413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26414 | ||
26415 | ac_header_preproc=no | |
26416 | fi | |
26417 | rm -f conftest.err conftest.$ac_ext | |
26418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26419 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26420 | ||
26421 | # So? What about this header? | |
ac1cb8d3 VS |
26422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26423 | yes:no: ) | |
a848cd7e SC |
26424 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26425 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26426 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26427 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26428 | ac_header_preproc=yes | |
a848cd7e | 26429 | ;; |
ac1cb8d3 | 26430 | no:yes:* ) |
a848cd7e SC |
26431 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26432 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26433 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26434 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26435 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26436 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26437 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26438 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26439 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26440 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26441 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26442 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26443 | ( |
26444 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26445 | ## ----------------------------------------- ## |
26446 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26447 | ## ----------------------------------------- ## | |
a848cd7e SC |
26448 | _ASBOX |
26449 | ) | | |
26450 | sed "s/^/$as_me: WARNING: /" >&2 | |
26451 | ;; | |
26452 | esac | |
26453 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26454 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26455 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26457 | else | |
26458 | ac_cv_header_sql_h=$ac_header_preproc | |
26459 | fi | |
26460 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26461 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26462 | ||
26463 | fi | |
26464 | if test $ac_cv_header_sql_h = yes; then | |
26465 | found_sql_h=1 | |
26466 | fi | |
26467 | ||
26468 | ||
26469 | if test "x$found_sql_h" = "x1" ; then | |
26470 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26471 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26472 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26474 | else | |
26475 | ac_check_lib_save_LIBS=$LIBS | |
26476 | LIBS="-liodbc $LIBS" | |
26477 | cat >conftest.$ac_ext <<_ACEOF | |
26478 | /* confdefs.h. */ | |
26479 | _ACEOF | |
26480 | cat confdefs.h >>conftest.$ac_ext | |
26481 | cat >>conftest.$ac_ext <<_ACEOF | |
26482 | /* end confdefs.h. */ | |
26483 | ||
26484 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26485 | #ifdef __cplusplus | |
26486 | extern "C" | |
26487 | #endif | |
26488 | /* We use char because int might match the return type of a gcc2 | |
26489 | builtin and then its argument prototype would still apply. */ | |
26490 | char SQLAllocEnv (); | |
26491 | int | |
26492 | main () | |
26493 | { | |
26494 | SQLAllocEnv (); | |
26495 | ; | |
26496 | return 0; | |
26497 | } | |
26498 | _ACEOF | |
26499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26501 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26502 | ac_status=$? |
ac1cb8d3 VS |
26503 | grep -v '^ *+' conftest.er1 >conftest.err |
26504 | rm -f conftest.er1 | |
26505 | cat conftest.err >&5 | |
a848cd7e SC |
26506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26507 | (exit $ac_status); } && | |
4d4ff94c | 26508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26510 | (eval $ac_try) 2>&5 | |
26511 | ac_status=$? | |
26512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26513 | (exit $ac_status); }; } && | |
26514 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26516 | (eval $ac_try) 2>&5 | |
26517 | ac_status=$? | |
26518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26519 | (exit $ac_status); }; }; then | |
26520 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26521 | else | |
26522 | echo "$as_me: failed program was:" >&5 | |
26523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26524 | ||
26525 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26526 | fi | |
ac1cb8d3 VS |
26527 | rm -f conftest.err conftest.$ac_objext \ |
26528 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26529 | LIBS=$ac_check_lib_save_LIBS |
26530 | fi | |
26531 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26532 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26533 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26534 | ODBC_LINK=" -liodbc" | |
26535 | else | |
26536 | ||
26537 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26538 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26539 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26541 | else | |
26542 | ac_check_lib_save_LIBS=$LIBS | |
26543 | LIBS="-lunixodbc $LIBS" | |
26544 | cat >conftest.$ac_ext <<_ACEOF | |
26545 | /* confdefs.h. */ | |
26546 | _ACEOF | |
26547 | cat confdefs.h >>conftest.$ac_ext | |
26548 | cat >>conftest.$ac_ext <<_ACEOF | |
26549 | /* end confdefs.h. */ | |
26550 | ||
26551 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26552 | #ifdef __cplusplus | |
26553 | extern "C" | |
26554 | #endif | |
26555 | /* We use char because int might match the return type of a gcc2 | |
26556 | builtin and then its argument prototype would still apply. */ | |
26557 | char SQLAllocEnv (); | |
26558 | int | |
26559 | main () | |
26560 | { | |
26561 | SQLAllocEnv (); | |
26562 | ; | |
26563 | return 0; | |
26564 | } | |
26565 | _ACEOF | |
26566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26568 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26569 | ac_status=$? |
ac1cb8d3 VS |
26570 | grep -v '^ *+' conftest.er1 >conftest.err |
26571 | rm -f conftest.er1 | |
26572 | cat conftest.err >&5 | |
a848cd7e SC |
26573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26574 | (exit $ac_status); } && | |
4d4ff94c | 26575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26577 | (eval $ac_try) 2>&5 | |
26578 | ac_status=$? | |
26579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26580 | (exit $ac_status); }; } && | |
26581 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26583 | (eval $ac_try) 2>&5 | |
26584 | ac_status=$? | |
26585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26586 | (exit $ac_status); }; }; then | |
26587 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
26588 | else | |
26589 | echo "$as_me: failed program was:" >&5 | |
26590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26591 | ||
26592 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
26593 | fi | |
ac1cb8d3 VS |
26594 | rm -f conftest.err conftest.$ac_objext \ |
26595 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26596 | LIBS=$ac_check_lib_save_LIBS |
26597 | fi | |
26598 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
26599 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26600 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
26601 | ODBC_LINK=" -lunixodbc" | |
26602 | else | |
26603 | ||
26604 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
26605 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26606 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
26607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26608 | else | |
26609 | ac_check_lib_save_LIBS=$LIBS | |
26610 | LIBS="-lodbc $LIBS" | |
26611 | cat >conftest.$ac_ext <<_ACEOF | |
26612 | /* confdefs.h. */ | |
26613 | _ACEOF | |
26614 | cat confdefs.h >>conftest.$ac_ext | |
26615 | cat >>conftest.$ac_ext <<_ACEOF | |
26616 | /* end confdefs.h. */ | |
26617 | ||
26618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26619 | #ifdef __cplusplus | |
26620 | extern "C" | |
26621 | #endif | |
26622 | /* We use char because int might match the return type of a gcc2 | |
26623 | builtin and then its argument prototype would still apply. */ | |
26624 | char SQLAllocEnv (); | |
26625 | int | |
26626 | main () | |
26627 | { | |
26628 | SQLAllocEnv (); | |
26629 | ; | |
26630 | return 0; | |
26631 | } | |
26632 | _ACEOF | |
26633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26635 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26636 | ac_status=$? |
ac1cb8d3 VS |
26637 | grep -v '^ *+' conftest.er1 >conftest.err |
26638 | rm -f conftest.er1 | |
26639 | cat conftest.err >&5 | |
a848cd7e SC |
26640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26641 | (exit $ac_status); } && | |
4d4ff94c | 26642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26644 | (eval $ac_try) 2>&5 | |
26645 | ac_status=$? | |
26646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26647 | (exit $ac_status); }; } && | |
26648 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26650 | (eval $ac_try) 2>&5 | |
26651 | ac_status=$? | |
26652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26653 | (exit $ac_status); }; }; then | |
26654 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
26655 | else | |
26656 | echo "$as_me: failed program was:" >&5 | |
26657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26658 | ||
26659 | ac_cv_lib_odbc_SQLAllocEnv=no | |
26660 | fi | |
ac1cb8d3 VS |
26661 | rm -f conftest.err conftest.$ac_objext \ |
26662 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26663 | LIBS=$ac_check_lib_save_LIBS |
26664 | fi | |
26665 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
26666 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26667 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
26668 | ODBC_LINK=" -lodbc" | |
26669 | fi | |
26670 | ||
26671 | ||
26672 | fi | |
26673 | ||
26674 | ||
26675 | fi | |
26676 | ||
26677 | fi | |
26678 | if test "x$ODBC_LINK" = "x" ; then | |
26679 | if test "$wxUSE_ODBC" = "sys" ; then | |
26680 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26681 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26682 | { (exit 1); exit 1; }; } | |
26683 | else | |
26684 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26685 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26686 | wxUSE_ODBC=builtin | |
26687 | fi | |
26688 | else | |
26689 | wxUSE_ODBC=sys | |
26690 | fi | |
26691 | fi | |
26692 | if test "$wxUSE_ODBC" != "no" ; then | |
26693 | cat >>confdefs.h <<\_ACEOF | |
26694 | #define wxUSE_ODBC 1 | |
26695 | _ACEOF | |
26696 | ||
26697 | if test "$wxUSE_ODBC" = "builtin" ; then | |
26698 | cat >>confdefs.h <<\_ACEOF | |
26699 | #define wxUSE_BUILTIN_IODBC 1 | |
26700 | _ACEOF | |
26701 | ||
26702 | fi | |
26703 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
26704 | ||
26705 | WXODBCFLAG="-D_IODBC_" | |
26706 | fi | |
26707 | fi | |
26708 | ||
26709 | if test "$wxUSE_REGEX" = "builtin" ; then | |
26710 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
26711 | fi | |
26712 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
26713 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
26714 | fi | |
26715 | ||
01cb68df | 26716 | |
a848cd7e | 26717 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 26718 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
26719 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
26720 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
26721 | ||
26722 | ac_find_libraries= | |
26723 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26724 | do | |
26725 | for ac_extension in a so sl dylib; do | |
26726 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26727 | ac_find_libraries=$ac_dir | |
26728 | break 2 | |
26729 | fi | |
26730 | done | |
26731 | done | |
26732 | ||
26733 | if test "$ac_find_libraries" != "" ; then | |
26734 | ||
26735 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26736 | result=$? | |
26737 | if test $result = 0; then | |
26738 | ac_path_to_link="" | |
26739 | else | |
26740 | ac_path_to_link=" -L$ac_find_libraries" | |
26741 | fi | |
26742 | ||
26743 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26744 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
26745 | fi | |
26746 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
26747 | echo "$as_me:$LINENO: result: yes" >&5 | |
26748 | echo "${ECHO_T}yes" >&6 | |
26749 | ||
26750 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
26751 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
26752 | ||
26753 | ac_find_libraries= | |
26754 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26755 | do | |
26756 | for ac_extension in a so sl dylib; do | |
26757 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
26758 | ac_find_libraries=$ac_dir | |
26759 | break 2 | |
26760 | fi | |
26761 | done | |
26762 | done | |
26763 | ||
26764 | if test "$ac_find_libraries" != "" ; then | |
26765 | echo "$as_me:$LINENO: result: yes" >&5 | |
26766 | echo "${ECHO_T}yes" >&6 | |
26767 | ||
26768 | for ac_header in X11/extensions/xf86vmode.h | |
26769 | do | |
26770 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26771 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26775 | else | |
26776 | cat >conftest.$ac_ext <<_ACEOF | |
26777 | /* confdefs.h. */ | |
26778 | _ACEOF | |
26779 | cat confdefs.h >>conftest.$ac_ext | |
26780 | cat >>conftest.$ac_ext <<_ACEOF | |
26781 | /* end confdefs.h. */ | |
26782 | ||
26783 | #if HAVE_X11_XLIB_H | |
26784 | #include <X11/Xlib.h> | |
26785 | #endif | |
26786 | ||
26787 | ||
26788 | #include <$ac_header> | |
26789 | _ACEOF | |
26790 | rm -f conftest.$ac_objext | |
26791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26792 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26793 | ac_status=$? |
ac1cb8d3 VS |
26794 | grep -v '^ *+' conftest.er1 >conftest.err |
26795 | rm -f conftest.er1 | |
26796 | cat conftest.err >&5 | |
a848cd7e SC |
26797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26798 | (exit $ac_status); } && | |
4d4ff94c | 26799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26801 | (eval $ac_try) 2>&5 | |
26802 | ac_status=$? | |
26803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26804 | (exit $ac_status); }; } && | |
26805 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26807 | (eval $ac_try) 2>&5 | |
26808 | ac_status=$? | |
26809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26810 | (exit $ac_status); }; }; then | |
26811 | eval "$as_ac_Header=yes" | |
26812 | else | |
26813 | echo "$as_me: failed program was:" >&5 | |
26814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26815 | ||
26816 | eval "$as_ac_Header=no" | |
26817 | fi | |
ac1cb8d3 | 26818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26819 | fi |
26820 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26821 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26822 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26823 | cat >>confdefs.h <<_ACEOF | |
26824 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26825 | _ACEOF | |
26826 | ||
26827 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
26828 | ||
26829 | fi | |
26830 | ||
26831 | done | |
26832 | ||
26833 | else | |
26834 | echo "$as_me:$LINENO: result: no" >&5 | |
26835 | echo "${ECHO_T}no" >&6 | |
26836 | fi | |
26837 | ||
26838 | else | |
26839 | echo "$as_me:$LINENO: result: no" >&5 | |
26840 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
26841 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
26842 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
26843 | wxUSE_DISPLAY="no" |
26844 | fi | |
01cb68df RG |
26845 | elif test "$wxUSE_MSW" = 1; then |
26846 | ||
26847 | ||
26848 | for ac_header in multimon.h ddraw.h | |
26849 | do | |
26850 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26851 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26852 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26856 | fi | |
26857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26859 | else | |
26860 | # Is the header compilable? | |
26861 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
26862 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
26863 | cat >conftest.$ac_ext <<_ACEOF | |
26864 | /* confdefs.h. */ | |
26865 | _ACEOF | |
26866 | cat confdefs.h >>conftest.$ac_ext | |
26867 | cat >>conftest.$ac_ext <<_ACEOF | |
26868 | /* end confdefs.h. */ | |
26869 | $ac_includes_default | |
26870 | #include <$ac_header> | |
26871 | _ACEOF | |
26872 | rm -f conftest.$ac_objext | |
26873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26874 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 26875 | ac_status=$? |
ac1cb8d3 VS |
26876 | grep -v '^ *+' conftest.er1 >conftest.err |
26877 | rm -f conftest.er1 | |
26878 | cat conftest.err >&5 | |
01cb68df RG |
26879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26880 | (exit $ac_status); } && | |
4d4ff94c | 26881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26883 | (eval $ac_try) 2>&5 | |
26884 | ac_status=$? | |
26885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26886 | (exit $ac_status); }; } && | |
26887 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
26888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26889 | (eval $ac_try) 2>&5 | |
26890 | ac_status=$? | |
26891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26892 | (exit $ac_status); }; }; then | |
26893 | ac_header_compiler=yes | |
26894 | else | |
26895 | echo "$as_me: failed program was:" >&5 | |
26896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26897 | ||
26898 | ac_header_compiler=no | |
26899 | fi | |
ac1cb8d3 | 26900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
26901 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26902 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26903 | ||
26904 | # Is the header present? | |
26905 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
26906 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
26907 | cat >conftest.$ac_ext <<_ACEOF | |
26908 | /* confdefs.h. */ | |
26909 | _ACEOF | |
26910 | cat confdefs.h >>conftest.$ac_ext | |
26911 | cat >>conftest.$ac_ext <<_ACEOF | |
26912 | /* end confdefs.h. */ | |
26913 | #include <$ac_header> | |
26914 | _ACEOF | |
26915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26917 | ac_status=$? | |
26918 | grep -v '^ *+' conftest.er1 >conftest.err | |
26919 | rm -f conftest.er1 | |
26920 | cat conftest.err >&5 | |
26921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26922 | (exit $ac_status); } >/dev/null; then | |
26923 | if test -s conftest.err; then | |
26924 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26925 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
26926 | else |
26927 | ac_cpp_err= | |
26928 | fi | |
26929 | else | |
26930 | ac_cpp_err=yes | |
26931 | fi | |
26932 | if test -z "$ac_cpp_err"; then | |
26933 | ac_header_preproc=yes | |
26934 | else | |
26935 | echo "$as_me: failed program was:" >&5 | |
26936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26937 | ||
26938 | ac_header_preproc=no | |
26939 | fi | |
26940 | rm -f conftest.err conftest.$ac_ext | |
26941 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26942 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26943 | ||
26944 | # So? What about this header? | |
ac1cb8d3 VS |
26945 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26946 | yes:no: ) | |
01cb68df RG |
26947 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
26948 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
26950 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
26951 | ac_header_preproc=yes | |
01cb68df | 26952 | ;; |
ac1cb8d3 | 26953 | no:yes:* ) |
01cb68df RG |
26954 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
26955 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26956 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
26957 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
26958 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
26959 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
26960 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
26961 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
26962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
26963 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26964 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
26965 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
26966 | ( |
26967 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26968 | ## ----------------------------------------- ## |
26969 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26970 | ## ----------------------------------------- ## | |
01cb68df RG |
26971 | _ASBOX |
26972 | ) | | |
26973 | sed "s/^/$as_me: WARNING: /" >&2 | |
26974 | ;; | |
26975 | esac | |
26976 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26980 | else | |
ac1cb8d3 | 26981 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
26982 | fi |
26983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26984 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26985 | ||
26986 | fi | |
26987 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26988 | cat >>confdefs.h <<_ACEOF | |
26989 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26990 | _ACEOF | |
26991 | ||
26992 | else | |
26993 | ||
26994 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
26995 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
26996 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
26997 | |
26998 | fi | |
26999 | ||
27000 | done | |
27001 | ||
a848cd7e SC |
27002 | fi |
27003 | fi | |
27004 | ||
27005 | ||
27006 | USE_OPENGL=0 | |
27007 | if test "$wxUSE_OPENGL" = "yes"; then | |
27008 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27009 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27010 | elif test "$wxUSE_MSW" = 1; then | |
27011 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27012 | else | |
27013 | ||
27014 | ||
27015 | ac_find_includes= | |
27016 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27017 | do | |
27018 | if test -f "$ac_dir/GL/gl.h"; then | |
27019 | ac_find_includes=$ac_dir | |
27020 | break | |
27021 | fi | |
27022 | done | |
27023 | ||
27024 | if test "$ac_find_includes" != "" ; then | |
27025 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27026 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27027 | ||
27028 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27029 | ac_path_to_include="" | |
27030 | else | |
27031 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27032 | result=$? | |
27033 | if test $result = 0; then | |
27034 | ac_path_to_include="" | |
27035 | else | |
27036 | ac_path_to_include=" -I$ac_find_includes" | |
27037 | fi | |
27038 | fi | |
27039 | ||
27040 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27041 | fi | |
27042 | ||
27043 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27044 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27045 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27046 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27048 | fi | |
27049 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27050 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27051 | else | |
27052 | # Is the header compilable? | |
27053 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27054 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27055 | cat >conftest.$ac_ext <<_ACEOF | |
27056 | /* confdefs.h. */ | |
27057 | _ACEOF | |
27058 | cat confdefs.h >>conftest.$ac_ext | |
27059 | cat >>conftest.$ac_ext <<_ACEOF | |
27060 | /* end confdefs.h. */ | |
27061 | $ac_includes_default | |
27062 | #include <GL/gl.h> | |
27063 | _ACEOF | |
27064 | rm -f conftest.$ac_objext | |
27065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27066 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27067 | ac_status=$? |
ac1cb8d3 VS |
27068 | grep -v '^ *+' conftest.er1 >conftest.err |
27069 | rm -f conftest.er1 | |
27070 | cat conftest.err >&5 | |
a848cd7e SC |
27071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27072 | (exit $ac_status); } && | |
4d4ff94c | 27073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27075 | (eval $ac_try) 2>&5 | |
27076 | ac_status=$? | |
27077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27078 | (exit $ac_status); }; } && | |
27079 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27081 | (eval $ac_try) 2>&5 | |
27082 | ac_status=$? | |
27083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27084 | (exit $ac_status); }; }; then | |
27085 | ac_header_compiler=yes | |
27086 | else | |
27087 | echo "$as_me: failed program was:" >&5 | |
27088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27089 | ||
27090 | ac_header_compiler=no | |
27091 | fi | |
ac1cb8d3 | 27092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27093 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27094 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27095 | ||
27096 | # Is the header present? | |
27097 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27098 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27099 | cat >conftest.$ac_ext <<_ACEOF | |
27100 | /* confdefs.h. */ | |
27101 | _ACEOF | |
27102 | cat confdefs.h >>conftest.$ac_ext | |
27103 | cat >>conftest.$ac_ext <<_ACEOF | |
27104 | /* end confdefs.h. */ | |
27105 | #include <GL/gl.h> | |
27106 | _ACEOF | |
27107 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27108 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27109 | ac_status=$? | |
27110 | grep -v '^ *+' conftest.er1 >conftest.err | |
27111 | rm -f conftest.er1 | |
27112 | cat conftest.err >&5 | |
27113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27114 | (exit $ac_status); } >/dev/null; then | |
27115 | if test -s conftest.err; then | |
27116 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27117 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27118 | else |
27119 | ac_cpp_err= | |
27120 | fi | |
27121 | else | |
27122 | ac_cpp_err=yes | |
27123 | fi | |
27124 | if test -z "$ac_cpp_err"; then | |
27125 | ac_header_preproc=yes | |
27126 | else | |
27127 | echo "$as_me: failed program was:" >&5 | |
27128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27129 | ||
27130 | ac_header_preproc=no | |
27131 | fi | |
27132 | rm -f conftest.err conftest.$ac_ext | |
27133 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27134 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27135 | ||
27136 | # So? What about this header? | |
ac1cb8d3 VS |
27137 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27138 | yes:no: ) | |
a848cd7e SC |
27139 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27140 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27141 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27142 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27143 | ac_header_preproc=yes | |
a848cd7e | 27144 | ;; |
ac1cb8d3 | 27145 | no:yes:* ) |
a848cd7e SC |
27146 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27147 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27148 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27149 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27150 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27151 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27152 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27153 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27154 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27155 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27156 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27157 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27158 | ( |
27159 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27160 | ## ----------------------------------------- ## |
27161 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27162 | ## ----------------------------------------- ## | |
a848cd7e SC |
27163 | _ASBOX |
27164 | ) | | |
27165 | sed "s/^/$as_me: WARNING: /" >&2 | |
27166 | ;; | |
27167 | esac | |
27168 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27169 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27170 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27172 | else | |
27173 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27174 | fi | |
27175 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27176 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27177 | ||
27178 | fi | |
27179 | if test $ac_cv_header_GL_gl_h = yes; then | |
27180 | ||
27181 | found_gl=0 | |
27182 | ||
27183 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27184 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27185 | ||
27186 | ac_find_libraries= | |
27187 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27188 | do | |
27189 | for ac_extension in a so sl dylib; do | |
27190 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27191 | ac_find_libraries=$ac_dir | |
27192 | break 2 | |
27193 | fi | |
27194 | done | |
27195 | done | |
27196 | ||
27197 | if test "$ac_find_libraries" != "" ; then | |
27198 | ||
27199 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27200 | result=$? | |
27201 | if test $result = 0; then | |
27202 | ac_path_to_link="" | |
27203 | else | |
27204 | ac_path_to_link=" -L$ac_find_libraries" | |
27205 | fi | |
27206 | ||
27207 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27208 | LDFLAGS_GL="$ac_path_to_link" | |
27209 | fi | |
27210 | ||
27211 | ||
27212 | ac_find_libraries= | |
27213 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27214 | do | |
27215 | for ac_extension in a so sl dylib; do | |
27216 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27217 | ac_find_libraries=$ac_dir | |
27218 | break 2 | |
27219 | fi | |
27220 | done | |
27221 | done | |
27222 | ||
27223 | if test "$ac_find_libraries" != "" ; then | |
27224 | ||
27225 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27226 | result=$? | |
27227 | if test $result = 0; then | |
27228 | ac_path_to_link="" | |
27229 | else | |
27230 | ac_path_to_link=" -L$ac_find_libraries" | |
27231 | fi | |
27232 | ||
27233 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27234 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27235 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27236 | fi | |
27237 | ||
27238 | found_gl=1 | |
27239 | OPENGL_LIBS="-lGL -lGLU" | |
27240 | echo "$as_me:$LINENO: result: yes" >&5 | |
27241 | echo "${ECHO_T}yes" >&6 | |
27242 | fi | |
27243 | fi | |
27244 | ||
27245 | if test "$found_gl" != 1; then | |
27246 | echo "$as_me:$LINENO: result: no" >&5 | |
27247 | echo "${ECHO_T}no" >&6 | |
27248 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27249 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27250 | ||
27251 | ac_find_libraries= | |
27252 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27253 | do | |
27254 | for ac_extension in a so sl dylib; do | |
27255 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27256 | ac_find_libraries=$ac_dir | |
27257 | break 2 | |
27258 | fi | |
27259 | done | |
27260 | done | |
27261 | ||
27262 | if test "$ac_find_libraries" != "" ; then | |
27263 | ||
27264 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27265 | result=$? | |
27266 | if test $result = 0; then | |
27267 | ac_path_to_link="" | |
27268 | else | |
27269 | ac_path_to_link=" -L$ac_find_libraries" | |
27270 | fi | |
27271 | ||
27272 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27273 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27274 | echo "$as_me:$LINENO: result: yes" >&5 | |
27275 | echo "${ECHO_T}yes" >&6 | |
27276 | else | |
27277 | echo "$as_me:$LINENO: result: no" >&5 | |
27278 | echo "${ECHO_T}no" >&6 | |
27279 | fi | |
27280 | fi | |
27281 | ||
27282 | fi | |
27283 | ||
27284 | ||
27285 | ||
27286 | if test "x$OPENGL_LIBS" = "x"; then | |
27287 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27288 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27289 | { (exit 1); exit 1; }; } | |
27290 | fi | |
27291 | fi | |
27292 | ||
27293 | if test "$wxUSE_OPENGL" = "yes"; then | |
27294 | USE_OPENGL=1 | |
27295 | cat >>confdefs.h <<\_ACEOF | |
27296 | #define wxUSE_OPENGL 1 | |
27297 | _ACEOF | |
27298 | ||
27299 | cat >>confdefs.h <<\_ACEOF | |
27300 | #define wxUSE_GLCANVAS 1 | |
27301 | _ACEOF | |
27302 | ||
27303 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27304 | fi | |
27305 | fi | |
27306 | ||
27307 | if test -z "$TOOLKIT_VPATH" ; then | |
27308 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
27309 | fi | |
27310 | ||
27311 | if test -n "$TOOLKIT" ; then | |
27312 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27313 | fi | |
27314 | ||
27315 | UNICODE=0 | |
27316 | lib_unicode_suffix= | |
48112931 | 27317 | wxconfig_filename_unicode="ansi" |
a848cd7e SC |
27318 | if test "$wxUSE_UNICODE" = "yes"; then |
27319 | lib_unicode_suffix=u | |
48112931 | 27320 | wxconfig_filename_unicode="unicode" |
a848cd7e SC |
27321 | UNICODE=1 |
27322 | fi | |
27323 | ||
27324 | lib_debug_suffix= | |
48112931 | 27325 | wxconfig_filename_debug="release" |
a848cd7e SC |
27326 | DEBUG_FLAG=0 |
27327 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27328 | lib_debug_suffix=d | |
48112931 | 27329 | wxconfig_filename_debug="debug" |
a848cd7e SC |
27330 | DEBUG_FLAG=1 |
27331 | fi | |
27332 | ||
27333 | DEBUG_INFO=0 | |
27334 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27335 | DEBUG_INFO=1 | |
27336 | fi | |
27337 | ||
27338 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` | |
27339 | ||
27340 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
27341 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
27342 | ||
48112931 VS |
27343 | WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}" |
27344 | ||
a848cd7e SC |
27345 | if test "$cross_compiling" = "yes"; then |
27346 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
27347 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
48112931 | 27348 | WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}" |
a848cd7e SC |
27349 | HOST_SUFFIX="-${host_alias}" |
27350 | fi | |
27351 | ||
27352 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
27353 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
27354 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" | |
27355 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
27356 | ||
27357 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27358 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27359 | ||
27360 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
27361 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27362 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
27363 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27364 | ||
27365 | case "${host}" in | |
27366 | *-*-cygwin* | *-*-mingw32* ) | |
27367 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27368 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27369 | ;; | |
27370 | ||
27371 | *-*-darwin* ) | |
27372 | ||
27373 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27374 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27375 | ||
27376 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
27377 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27378 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
27379 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27380 | ||
27381 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27382 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
27383 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
27384 | fi | |
27385 | ;; | |
27386 | esac | |
27387 | ||
27388 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
27389 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
27390 | ||
27391 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
27392 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
27393 | ||
27394 | if test "$wxUSE_OPENGL" = "yes"; then | |
27395 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
27396 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
27397 | fi | |
27398 | ||
27399 | ||
27400 | ||
27401 | if test "$wxUSE_SHARED" = "yes"; then | |
27402 | case "${host}" in | |
27403 | *-pc-msdosdjgpp ) | |
27404 | wxUSE_SHARED=no | |
27405 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27406 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27407 | ;; | |
27408 | esac | |
27409 | fi | |
27410 | ||
27411 | SHARED=0 | |
27412 | if test "$wxUSE_SHARED" = "yes"; then | |
27413 | SHARED=1 | |
27414 | ||
27415 | ||
27416 | found_versioning=no | |
27417 | ||
27418 | ||
27419 | if test $found_versioning = no ; then | |
27420 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27421 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27422 | if test "${wx_cv_version_script+set}" = set; then | |
27423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27424 | else | |
27425 | ||
27426 | echo "VER_1 { *; };" >conftest.sym | |
27427 | echo "int main() { return 0; }" >conftest.cpp | |
27428 | ||
27429 | if { ac_try=' | |
27430 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27431 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27433 | (eval $ac_try) 2>&5 | |
27434 | ac_status=$? | |
27435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27436 | (exit $ac_status); }; } ; then | |
27437 | if test -s conftest.stderr ; then | |
27438 | wx_cv_version_script=no | |
27439 | else | |
27440 | wx_cv_version_script=yes | |
27441 | fi | |
27442 | else | |
27443 | wx_cv_version_script=no | |
27444 | fi | |
27445 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27446 | ||
27447 | fi | |
27448 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27449 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27450 | if test $wx_cv_version_script = yes ; then | |
27451 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27452 | fi | |
27453 | fi | |
27454 | ||
27455 | ||
27456 | case "${host}" in | |
27457 | *-*-linux* | *-*-gnu* ) | |
27458 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27459 | ;; | |
27460 | ||
27461 | *-*-solaris2* ) | |
27462 | if test "$GCC" = yes ; then | |
27463 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27464 | ||
27465 | saveLdflags="$LDFLAGS" | |
27466 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27467 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27468 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27469 | cat >conftest.$ac_ext <<_ACEOF | |
27470 | /* confdefs.h. */ | |
27471 | _ACEOF | |
27472 | cat confdefs.h >>conftest.$ac_ext | |
27473 | cat >>conftest.$ac_ext <<_ACEOF | |
27474 | /* end confdefs.h. */ | |
27475 | ||
27476 | int | |
27477 | main () | |
27478 | { | |
27479 | ||
27480 | ; | |
27481 | return 0; | |
27482 | } | |
27483 | _ACEOF | |
27484 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27486 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27487 | ac_status=$? |
ac1cb8d3 VS |
27488 | grep -v '^ *+' conftest.er1 >conftest.err |
27489 | rm -f conftest.er1 | |
27490 | cat conftest.err >&5 | |
a848cd7e SC |
27491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27492 | (exit $ac_status); } && | |
4d4ff94c | 27493 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27495 | (eval $ac_try) 2>&5 | |
27496 | ac_status=$? | |
27497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27498 | (exit $ac_status); }; } && | |
27499 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27501 | (eval $ac_try) 2>&5 | |
27502 | ac_status=$? | |
27503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27504 | (exit $ac_status); }; }; then | |
27505 | ||
27506 | echo "$as_me:$LINENO: result: yes" >&5 | |
27507 | echo "${ECHO_T}yes" >&6 | |
27508 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27509 | ||
27510 | else | |
27511 | echo "$as_me: failed program was:" >&5 | |
27512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27513 | ||
27514 | ||
27515 | echo "$as_me:$LINENO: result: no" >&5 | |
27516 | echo "${ECHO_T}no" >&6 | |
27517 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27518 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27519 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27520 | cat >conftest.$ac_ext <<_ACEOF | |
27521 | /* confdefs.h. */ | |
27522 | _ACEOF | |
27523 | cat confdefs.h >>conftest.$ac_ext | |
27524 | cat >>conftest.$ac_ext <<_ACEOF | |
27525 | /* end confdefs.h. */ | |
27526 | ||
27527 | int | |
27528 | main () | |
27529 | { | |
27530 | ||
27531 | ; | |
27532 | return 0; | |
27533 | } | |
27534 | _ACEOF | |
27535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27538 | ac_status=$? |
ac1cb8d3 VS |
27539 | grep -v '^ *+' conftest.er1 >conftest.err |
27540 | rm -f conftest.er1 | |
27541 | cat conftest.err >&5 | |
a848cd7e SC |
27542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27543 | (exit $ac_status); } && | |
4d4ff94c | 27544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27546 | (eval $ac_try) 2>&5 | |
27547 | ac_status=$? | |
27548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27549 | (exit $ac_status); }; } && | |
27550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27552 | (eval $ac_try) 2>&5 | |
27553 | ac_status=$? | |
27554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27555 | (exit $ac_status); }; }; then | |
27556 | ||
27557 | echo "$as_me:$LINENO: result: yes" >&5 | |
27558 | echo "${ECHO_T}yes" >&6 | |
27559 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27560 | else | |
27561 | echo "$as_me: failed program was:" >&5 | |
27562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27563 | ||
27564 | ||
27565 | echo "$as_me:$LINENO: result: no" >&5 | |
27566 | echo "${ECHO_T}no" >&6 | |
27567 | ||
27568 | fi | |
ac1cb8d3 VS |
27569 | rm -f conftest.err conftest.$ac_objext \ |
27570 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27571 | |
27572 | fi | |
ac1cb8d3 VS |
27573 | rm -f conftest.err conftest.$ac_objext \ |
27574 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27575 | LDFLAGS="$saveLdflags" |
27576 | else | |
27577 | SHARED_LD="${CXX} -G -o" | |
27578 | PIC_FLAG="-KPIC" | |
27579 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" | |
27580 | fi | |
27581 | ;; | |
27582 | ||
27583 | powerpc-*-darwin* ) | |
27584 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27585 | cat <<EOF >change-install-names | |
27586 | #!/bin/sh | |
27587 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27588 | inst_cmd="install_name_tool " | |
27589 | for i in \${libnames} ; do | |
27590 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27591 | done | |
27592 | \${inst_cmd} \${3} | |
27593 | EOF | |
27594 | chmod +x change-install-names | |
27595 | ;; | |
27596 | ||
27597 | *-*-cygwin* | *-*-mingw32* ) | |
27598 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27599 | ;; | |
27600 | ||
27601 | esac | |
27602 | ||
27603 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
27604 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
27605 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
27606 | fi | |
27607 | ||
27608 | WX_TARGET_LIBRARY_TYPE="so" | |
27609 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
27610 | fi | |
27611 | ||
27612 | if test "$wxUSE_SHARED" = "no"; then | |
27613 | ||
27614 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
27615 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27616 | fi | |
27617 | ||
27618 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
27619 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27620 | fi | |
27621 | ||
27622 | if test "$wxUSE_OPENGL" = "yes"; then | |
27623 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
27624 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
27625 | else | |
27626 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
27627 | fi | |
27628 | ||
27629 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
27630 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
27631 | ||
27632 | WX_TARGET_LIBRARY_TYPE="a" | |
27633 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
27634 | ||
27635 | STATIC_FLAG="yes" | |
27636 | else | |
27637 | STATIC_FLAG="no" | |
27638 | fi | |
27639 | ||
27640 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then | |
27641 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" | |
27642 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
27643 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
27644 | ||
27645 | # Extract the first word of "Rez", so it can be a program name with args. | |
27646 | set dummy Rez; ac_word=$2 | |
27647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27649 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27651 | else | |
27652 | if test -n "$RESCOMP"; then | |
27653 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
27654 | else | |
27655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27656 | for as_dir in $PATH | |
27657 | do | |
27658 | IFS=$as_save_IFS | |
27659 | test -z "$as_dir" && as_dir=. | |
27660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27662 | ac_cv_prog_RESCOMP="Rez" | |
27663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27664 | break 2 | |
27665 | fi | |
27666 | done | |
27667 | done | |
27668 | ||
27669 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
27670 | fi | |
27671 | fi | |
27672 | RESCOMP=$ac_cv_prog_RESCOMP | |
27673 | if test -n "$RESCOMP"; then | |
27674 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
27675 | echo "${ECHO_T}$RESCOMP" >&6 | |
27676 | else | |
27677 | echo "$as_me:$LINENO: result: no" >&5 | |
27678 | echo "${ECHO_T}no" >&6 | |
27679 | fi | |
27680 | ||
27681 | # Extract the first word of "DeRez", so it can be a program name with args. | |
27682 | set dummy DeRez; ac_word=$2 | |
27683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27685 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27687 | else | |
27688 | if test -n "$DEREZ"; then | |
27689 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
27690 | else | |
27691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27692 | for as_dir in $PATH | |
27693 | do | |
27694 | IFS=$as_save_IFS | |
27695 | test -z "$as_dir" && as_dir=. | |
27696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27698 | ac_cv_prog_DEREZ="DeRez" | |
27699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27700 | break 2 | |
27701 | fi | |
27702 | done | |
27703 | done | |
27704 | ||
27705 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
27706 | fi | |
27707 | fi | |
27708 | DEREZ=$ac_cv_prog_DEREZ | |
27709 | if test -n "$DEREZ"; then | |
27710 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
27711 | echo "${ECHO_T}$DEREZ" >&6 | |
27712 | else | |
27713 | echo "$as_me:$LINENO: result: no" >&5 | |
27714 | echo "${ECHO_T}no" >&6 | |
27715 | fi | |
27716 | ||
27717 | # Extract the first word of "SetFile", so it can be a program name with args. | |
27718 | set dummy SetFile; ac_word=$2 | |
27719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27721 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27723 | else | |
27724 | if test -n "$SETFILE"; then | |
27725 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27726 | else | |
27727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27728 | for as_dir in $PATH | |
27729 | do | |
27730 | IFS=$as_save_IFS | |
27731 | test -z "$as_dir" && as_dir=. | |
27732 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27734 | ac_cv_prog_SETFILE="SetFile" | |
27735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27736 | break 2 | |
27737 | fi | |
27738 | done | |
27739 | done | |
27740 | ||
27741 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
27742 | fi | |
27743 | fi | |
27744 | SETFILE=$ac_cv_prog_SETFILE | |
27745 | if test -n "$SETFILE"; then | |
27746 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
27747 | echo "${ECHO_T}$SETFILE" >&6 | |
27748 | else | |
27749 | echo "$as_me:$LINENO: result: no" >&5 | |
27750 | echo "${ECHO_T}no" >&6 | |
27751 | fi | |
27752 | ||
27753 | ||
27754 | MACSETFILE="\$(SETFILE)" | |
27755 | ||
27756 | if test "$wxUSE_MAC" = 1; then | |
27757 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
27758 | ||
27759 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27760 | else | |
27761 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27762 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27763 | fi | |
27764 | else | |
27765 | MACSETFILE="@#" | |
27766 | MACRESWXCONFIG="#" | |
27767 | ||
27768 | if test "$wxUSE_PM" = 1; then | |
27769 | MACRESCOMP="emxbind -ep" | |
27770 | else | |
27771 | MACRESCOMP="@#" | |
27772 | fi | |
27773 | fi | |
27774 | ||
27775 | ||
27776 | ||
27777 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
27778 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
27779 | if test "${ac_cv_type_mode_t+set}" = set; then | |
27780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27781 | else | |
27782 | cat >conftest.$ac_ext <<_ACEOF | |
27783 | /* confdefs.h. */ | |
27784 | _ACEOF | |
27785 | cat confdefs.h >>conftest.$ac_ext | |
27786 | cat >>conftest.$ac_ext <<_ACEOF | |
27787 | /* end confdefs.h. */ | |
27788 | $ac_includes_default | |
27789 | int | |
27790 | main () | |
27791 | { | |
27792 | if ((mode_t *) 0) | |
27793 | return 0; | |
27794 | if (sizeof (mode_t)) | |
27795 | return 0; | |
27796 | ; | |
27797 | return 0; | |
27798 | } | |
27799 | _ACEOF | |
27800 | rm -f conftest.$ac_objext | |
27801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27802 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27803 | ac_status=$? |
ac1cb8d3 VS |
27804 | grep -v '^ *+' conftest.er1 >conftest.err |
27805 | rm -f conftest.er1 | |
27806 | cat conftest.err >&5 | |
a848cd7e SC |
27807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27808 | (exit $ac_status); } && | |
4d4ff94c | 27809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27811 | (eval $ac_try) 2>&5 | |
27812 | ac_status=$? | |
27813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27814 | (exit $ac_status); }; } && | |
27815 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27817 | (eval $ac_try) 2>&5 | |
27818 | ac_status=$? | |
27819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27820 | (exit $ac_status); }; }; then | |
27821 | ac_cv_type_mode_t=yes | |
27822 | else | |
27823 | echo "$as_me: failed program was:" >&5 | |
27824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27825 | ||
27826 | ac_cv_type_mode_t=no | |
27827 | fi | |
ac1cb8d3 | 27828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27829 | fi |
27830 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
27831 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
27832 | if test $ac_cv_type_mode_t = yes; then | |
27833 | : | |
27834 | else | |
27835 | ||
27836 | cat >>confdefs.h <<_ACEOF | |
27837 | #define mode_t int | |
27838 | _ACEOF | |
27839 | ||
27840 | fi | |
27841 | ||
27842 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
27843 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
27844 | if test "${ac_cv_type_off_t+set}" = set; then | |
27845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27846 | else | |
27847 | cat >conftest.$ac_ext <<_ACEOF | |
27848 | /* confdefs.h. */ | |
27849 | _ACEOF | |
27850 | cat confdefs.h >>conftest.$ac_ext | |
27851 | cat >>conftest.$ac_ext <<_ACEOF | |
27852 | /* end confdefs.h. */ | |
27853 | $ac_includes_default | |
27854 | int | |
27855 | main () | |
27856 | { | |
27857 | if ((off_t *) 0) | |
27858 | return 0; | |
27859 | if (sizeof (off_t)) | |
27860 | return 0; | |
27861 | ; | |
27862 | return 0; | |
27863 | } | |
27864 | _ACEOF | |
27865 | rm -f conftest.$ac_objext | |
27866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27867 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27868 | ac_status=$? |
ac1cb8d3 VS |
27869 | grep -v '^ *+' conftest.er1 >conftest.err |
27870 | rm -f conftest.er1 | |
27871 | cat conftest.err >&5 | |
a848cd7e SC |
27872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27873 | (exit $ac_status); } && | |
4d4ff94c | 27874 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27876 | (eval $ac_try) 2>&5 | |
27877 | ac_status=$? | |
27878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27879 | (exit $ac_status); }; } && | |
27880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27882 | (eval $ac_try) 2>&5 | |
27883 | ac_status=$? | |
27884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27885 | (exit $ac_status); }; }; then | |
27886 | ac_cv_type_off_t=yes | |
27887 | else | |
27888 | echo "$as_me: failed program was:" >&5 | |
27889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27890 | ||
27891 | ac_cv_type_off_t=no | |
27892 | fi | |
ac1cb8d3 | 27893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27894 | fi |
27895 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
27896 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
27897 | if test $ac_cv_type_off_t = yes; then | |
27898 | : | |
27899 | else | |
27900 | ||
27901 | cat >>confdefs.h <<_ACEOF | |
27902 | #define off_t long | |
27903 | _ACEOF | |
27904 | ||
27905 | fi | |
27906 | ||
27907 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
27908 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
27909 | if test "${ac_cv_type_pid_t+set}" = set; then | |
27910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27911 | else | |
27912 | cat >conftest.$ac_ext <<_ACEOF | |
27913 | /* confdefs.h. */ | |
27914 | _ACEOF | |
27915 | cat confdefs.h >>conftest.$ac_ext | |
27916 | cat >>conftest.$ac_ext <<_ACEOF | |
27917 | /* end confdefs.h. */ | |
27918 | $ac_includes_default | |
27919 | int | |
27920 | main () | |
27921 | { | |
27922 | if ((pid_t *) 0) | |
27923 | return 0; | |
27924 | if (sizeof (pid_t)) | |
27925 | return 0; | |
27926 | ; | |
27927 | return 0; | |
27928 | } | |
27929 | _ACEOF | |
27930 | rm -f conftest.$ac_objext | |
27931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27932 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27933 | ac_status=$? |
ac1cb8d3 VS |
27934 | grep -v '^ *+' conftest.er1 >conftest.err |
27935 | rm -f conftest.er1 | |
27936 | cat conftest.err >&5 | |
a848cd7e SC |
27937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27938 | (exit $ac_status); } && | |
4d4ff94c | 27939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27941 | (eval $ac_try) 2>&5 | |
27942 | ac_status=$? | |
27943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27944 | (exit $ac_status); }; } && | |
27945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27947 | (eval $ac_try) 2>&5 | |
27948 | ac_status=$? | |
27949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27950 | (exit $ac_status); }; }; then | |
27951 | ac_cv_type_pid_t=yes | |
27952 | else | |
27953 | echo "$as_me: failed program was:" >&5 | |
27954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27955 | ||
27956 | ac_cv_type_pid_t=no | |
27957 | fi | |
ac1cb8d3 | 27958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27959 | fi |
27960 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
27961 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
27962 | if test $ac_cv_type_pid_t = yes; then | |
27963 | : | |
27964 | else | |
27965 | ||
27966 | cat >>confdefs.h <<_ACEOF | |
27967 | #define pid_t int | |
27968 | _ACEOF | |
27969 | ||
27970 | fi | |
27971 | ||
27972 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
27973 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
27974 | if test "${ac_cv_type_size_t+set}" = set; then | |
27975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27976 | else | |
27977 | cat >conftest.$ac_ext <<_ACEOF | |
27978 | /* confdefs.h. */ | |
27979 | _ACEOF | |
27980 | cat confdefs.h >>conftest.$ac_ext | |
27981 | cat >>conftest.$ac_ext <<_ACEOF | |
27982 | /* end confdefs.h. */ | |
27983 | $ac_includes_default | |
27984 | int | |
27985 | main () | |
27986 | { | |
27987 | if ((size_t *) 0) | |
27988 | return 0; | |
27989 | if (sizeof (size_t)) | |
27990 | return 0; | |
27991 | ; | |
27992 | return 0; | |
27993 | } | |
27994 | _ACEOF | |
27995 | rm -f conftest.$ac_objext | |
27996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27998 | ac_status=$? |
ac1cb8d3 VS |
27999 | grep -v '^ *+' conftest.er1 >conftest.err |
28000 | rm -f conftest.er1 | |
28001 | cat conftest.err >&5 | |
a848cd7e SC |
28002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28003 | (exit $ac_status); } && | |
4d4ff94c | 28004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28006 | (eval $ac_try) 2>&5 | |
28007 | ac_status=$? | |
28008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28009 | (exit $ac_status); }; } && | |
28010 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28012 | (eval $ac_try) 2>&5 | |
28013 | ac_status=$? | |
28014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28015 | (exit $ac_status); }; }; then | |
28016 | ac_cv_type_size_t=yes | |
28017 | else | |
28018 | echo "$as_me: failed program was:" >&5 | |
28019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28020 | ||
28021 | ac_cv_type_size_t=no | |
28022 | fi | |
ac1cb8d3 | 28023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28024 | fi |
28025 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28026 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28027 | if test $ac_cv_type_size_t = yes; then | |
28028 | : | |
28029 | else | |
28030 | ||
28031 | cat >>confdefs.h <<_ACEOF | |
28032 | #define size_t unsigned | |
28033 | _ACEOF | |
28034 | ||
28035 | fi | |
28036 | ||
28037 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28038 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28039 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28041 | else | |
28042 | cat >conftest.$ac_ext <<_ACEOF | |
28043 | /* confdefs.h. */ | |
28044 | _ACEOF | |
28045 | cat confdefs.h >>conftest.$ac_ext | |
28046 | cat >>conftest.$ac_ext <<_ACEOF | |
28047 | /* end confdefs.h. */ | |
28048 | #include <sys/types.h> | |
28049 | ||
28050 | _ACEOF | |
28051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28052 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28053 | ac_cv_type_uid_t=yes | |
28054 | else | |
28055 | ac_cv_type_uid_t=no | |
28056 | fi | |
28057 | rm -f conftest* | |
28058 | ||
28059 | fi | |
28060 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28061 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28062 | if test $ac_cv_type_uid_t = no; then | |
28063 | ||
28064 | cat >>confdefs.h <<\_ACEOF | |
28065 | #define uid_t int | |
28066 | _ACEOF | |
28067 | ||
28068 | ||
28069 | cat >>confdefs.h <<\_ACEOF | |
28070 | #define gid_t int | |
28071 | _ACEOF | |
28072 | ||
28073 | fi | |
28074 | ||
28075 | ||
28076 | ||
28077 | ||
28078 | ac_ext=cc | |
28079 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28080 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28081 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28082 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28083 | ||
28084 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28085 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28086 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28088 | else | |
28089 | ||
28090 | cat >conftest.$ac_ext <<_ACEOF | |
28091 | /* confdefs.h. */ | |
28092 | _ACEOF | |
28093 | cat confdefs.h >>conftest.$ac_ext | |
28094 | cat >>conftest.$ac_ext <<_ACEOF | |
28095 | /* end confdefs.h. */ | |
28096 | #include <stddef.h> | |
28097 | int | |
28098 | main () | |
28099 | { | |
28100 | ||
28101 | return 0; } | |
28102 | ||
28103 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28104 | ||
28105 | int bar() { | |
28106 | ||
28107 | ; | |
28108 | return 0; | |
28109 | } | |
28110 | _ACEOF | |
28111 | rm -f conftest.$ac_objext | |
28112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28113 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28114 | ac_status=$? |
ac1cb8d3 VS |
28115 | grep -v '^ *+' conftest.er1 >conftest.err |
28116 | rm -f conftest.er1 | |
28117 | cat conftest.err >&5 | |
a848cd7e SC |
28118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28119 | (exit $ac_status); } && | |
4d4ff94c | 28120 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28122 | (eval $ac_try) 2>&5 | |
28123 | ac_status=$? | |
28124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28125 | (exit $ac_status); }; } && | |
28126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28128 | (eval $ac_try) 2>&5 | |
28129 | ac_status=$? | |
28130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28131 | (exit $ac_status); }; }; then | |
28132 | wx_cv_size_t_is_uint=no | |
28133 | else | |
28134 | echo "$as_me: failed program was:" >&5 | |
28135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28136 | ||
28137 | wx_cv_size_t_is_uint=yes | |
28138 | ||
28139 | fi | |
ac1cb8d3 | 28140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28141 | |
28142 | ||
28143 | fi | |
28144 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28145 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28146 | ||
28147 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28148 | cat >>confdefs.h <<\_ACEOF | |
28149 | #define wxSIZE_T_IS_UINT 1 | |
28150 | _ACEOF | |
28151 | ||
28152 | else | |
28153 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28154 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28155 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28157 | else | |
28158 | cat >conftest.$ac_ext <<_ACEOF | |
28159 | /* confdefs.h. */ | |
28160 | _ACEOF | |
28161 | cat confdefs.h >>conftest.$ac_ext | |
28162 | cat >>conftest.$ac_ext <<_ACEOF | |
28163 | /* end confdefs.h. */ | |
28164 | #include <stddef.h> | |
28165 | int | |
28166 | main () | |
28167 | { | |
28168 | ||
28169 | return 0; } | |
28170 | ||
28171 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28172 | ||
28173 | int bar() { | |
28174 | ||
28175 | ; | |
28176 | return 0; | |
28177 | } | |
28178 | _ACEOF | |
28179 | rm -f conftest.$ac_objext | |
28180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28181 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28182 | ac_status=$? |
ac1cb8d3 VS |
28183 | grep -v '^ *+' conftest.er1 >conftest.err |
28184 | rm -f conftest.er1 | |
28185 | cat conftest.err >&5 | |
a848cd7e SC |
28186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28187 | (exit $ac_status); } && | |
4d4ff94c | 28188 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28190 | (eval $ac_try) 2>&5 | |
28191 | ac_status=$? | |
28192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28193 | (exit $ac_status); }; } && | |
28194 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28196 | (eval $ac_try) 2>&5 | |
28197 | ac_status=$? | |
28198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28199 | (exit $ac_status); }; }; then | |
28200 | wx_cv_size_t_is_ulong=no | |
28201 | else | |
28202 | echo "$as_me: failed program was:" >&5 | |
28203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28204 | ||
28205 | wx_cv_size_t_is_ulong=yes | |
28206 | ||
28207 | fi | |
ac1cb8d3 | 28208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28209 | |
28210 | fi | |
28211 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28212 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28213 | ||
28214 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28215 | cat >>confdefs.h <<\_ACEOF | |
28216 | #define wxSIZE_T_IS_ULONG 1 | |
28217 | _ACEOF | |
28218 | ||
28219 | fi | |
28220 | fi | |
28221 | ||
28222 | ac_ext=c | |
28223 | ac_cpp='$CPP $CPPFLAGS' | |
28224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28227 | ||
28228 | ||
28229 | ||
28230 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28231 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28232 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28234 | else | |
28235 | ||
28236 | cat >conftest.$ac_ext <<_ACEOF | |
28237 | /* confdefs.h. */ | |
28238 | _ACEOF | |
28239 | cat confdefs.h >>conftest.$ac_ext | |
28240 | cat >>conftest.$ac_ext <<_ACEOF | |
28241 | /* end confdefs.h. */ | |
28242 | #include <pwd.h> | |
28243 | int | |
28244 | main () | |
28245 | { | |
28246 | ||
28247 | char *p; | |
28248 | struct passwd *pw; | |
28249 | p = pw->pw_gecos; | |
28250 | ||
28251 | ; | |
28252 | return 0; | |
28253 | } | |
28254 | _ACEOF | |
28255 | rm -f conftest.$ac_objext | |
28256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28257 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28258 | ac_status=$? |
ac1cb8d3 VS |
28259 | grep -v '^ *+' conftest.er1 >conftest.err |
28260 | rm -f conftest.er1 | |
28261 | cat conftest.err >&5 | |
a848cd7e SC |
28262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28263 | (exit $ac_status); } && | |
4d4ff94c | 28264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28266 | (eval $ac_try) 2>&5 | |
28267 | ac_status=$? | |
28268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28269 | (exit $ac_status); }; } && | |
28270 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28272 | (eval $ac_try) 2>&5 | |
28273 | ac_status=$? | |
28274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28275 | (exit $ac_status); }; }; then | |
28276 | ||
28277 | wx_cv_struct_pw_gecos=yes | |
28278 | ||
28279 | else | |
28280 | echo "$as_me: failed program was:" >&5 | |
28281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28282 | ||
28283 | ||
28284 | wx_cv_struct_pw_gecos=no | |
28285 | ||
28286 | ||
28287 | fi | |
ac1cb8d3 | 28288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28289 | |
28290 | ||
28291 | fi | |
28292 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28293 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28294 | ||
28295 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28296 | cat >>confdefs.h <<\_ACEOF | |
28297 | #define HAVE_PW_GECOS 1 | |
28298 | _ACEOF | |
28299 | ||
28300 | fi | |
28301 | ||
28302 | ||
28303 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28304 | cat >>confdefs.h <<\_ACEOF | |
28305 | #define wxUSE_WCHAR_T 1 | |
28306 | _ACEOF | |
28307 | ||
28308 | ||
28309 | WCSLEN_FOUND=0 | |
28310 | WCHAR_LINK= | |
28311 | ||
28312 | for ac_func in wcslen | |
28313 | do | |
28314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28317 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28319 | else | |
28320 | cat >conftest.$ac_ext <<_ACEOF | |
28321 | /* confdefs.h. */ | |
28322 | _ACEOF | |
28323 | cat confdefs.h >>conftest.$ac_ext | |
28324 | cat >>conftest.$ac_ext <<_ACEOF | |
28325 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28326 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28327 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28328 | #define $ac_func innocuous_$ac_func | |
28329 | ||
a848cd7e SC |
28330 | /* System header to define __stub macros and hopefully few prototypes, |
28331 | which can conflict with char $ac_func (); below. | |
28332 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28333 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28334 | |
a848cd7e SC |
28335 | #ifdef __STDC__ |
28336 | # include <limits.h> | |
28337 | #else | |
28338 | # include <assert.h> | |
28339 | #endif | |
ac1cb8d3 VS |
28340 | |
28341 | #undef $ac_func | |
28342 | ||
a848cd7e SC |
28343 | /* Override any gcc2 internal prototype to avoid an error. */ |
28344 | #ifdef __cplusplus | |
28345 | extern "C" | |
28346 | { | |
28347 | #endif | |
28348 | /* We use char because int might match the return type of a gcc2 | |
28349 | builtin and then its argument prototype would still apply. */ | |
28350 | char $ac_func (); | |
28351 | /* The GNU C library defines this for functions which it implements | |
28352 | to always fail with ENOSYS. Some functions are actually named | |
28353 | something starting with __ and the normal name is an alias. */ | |
28354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28355 | choke me | |
28356 | #else | |
28357 | char (*f) () = $ac_func; | |
28358 | #endif | |
28359 | #ifdef __cplusplus | |
28360 | } | |
28361 | #endif | |
28362 | ||
28363 | int | |
28364 | main () | |
28365 | { | |
28366 | return f != $ac_func; | |
28367 | ; | |
28368 | return 0; | |
28369 | } | |
28370 | _ACEOF | |
28371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28373 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28374 | ac_status=$? |
ac1cb8d3 VS |
28375 | grep -v '^ *+' conftest.er1 >conftest.err |
28376 | rm -f conftest.er1 | |
28377 | cat conftest.err >&5 | |
a848cd7e SC |
28378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28379 | (exit $ac_status); } && | |
4d4ff94c | 28380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28382 | (eval $ac_try) 2>&5 | |
28383 | ac_status=$? | |
28384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28385 | (exit $ac_status); }; } && | |
28386 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28388 | (eval $ac_try) 2>&5 | |
28389 | ac_status=$? | |
28390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28391 | (exit $ac_status); }; }; then | |
28392 | eval "$as_ac_var=yes" | |
28393 | else | |
28394 | echo "$as_me: failed program was:" >&5 | |
28395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28396 | ||
28397 | eval "$as_ac_var=no" | |
28398 | fi | |
ac1cb8d3 VS |
28399 | rm -f conftest.err conftest.$ac_objext \ |
28400 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28401 | fi |
28402 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28403 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28404 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28405 | cat >>confdefs.h <<_ACEOF | |
28406 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28407 | _ACEOF | |
28408 | WCSLEN_FOUND=1 | |
28409 | fi | |
28410 | done | |
28411 | ||
28412 | ||
28413 | if test "$WCSLEN_FOUND" = 0; then | |
28414 | if test "$TOOLKIT" = "MSW"; then | |
28415 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28416 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28417 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28419 | else | |
28420 | ac_check_lib_save_LIBS=$LIBS | |
28421 | LIBS="-lmsvcrt $LIBS" | |
28422 | cat >conftest.$ac_ext <<_ACEOF | |
28423 | /* confdefs.h. */ | |
28424 | _ACEOF | |
28425 | cat confdefs.h >>conftest.$ac_ext | |
28426 | cat >>conftest.$ac_ext <<_ACEOF | |
28427 | /* end confdefs.h. */ | |
28428 | ||
28429 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28430 | #ifdef __cplusplus | |
28431 | extern "C" | |
28432 | #endif | |
28433 | /* We use char because int might match the return type of a gcc2 | |
28434 | builtin and then its argument prototype would still apply. */ | |
28435 | char wcslen (); | |
28436 | int | |
28437 | main () | |
28438 | { | |
28439 | wcslen (); | |
28440 | ; | |
28441 | return 0; | |
28442 | } | |
28443 | _ACEOF | |
28444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28446 | (eval $ac_link) 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); } && | |
4d4ff94c | 28453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28455 | (eval $ac_try) 2>&5 | |
28456 | ac_status=$? | |
28457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28458 | (exit $ac_status); }; } && | |
28459 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28461 | (eval $ac_try) 2>&5 | |
28462 | ac_status=$? | |
28463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28464 | (exit $ac_status); }; }; then | |
28465 | ac_cv_lib_msvcrt_wcslen=yes | |
28466 | else | |
28467 | echo "$as_me: failed program was:" >&5 | |
28468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28469 | ||
28470 | ac_cv_lib_msvcrt_wcslen=no | |
28471 | fi | |
ac1cb8d3 VS |
28472 | rm -f conftest.err conftest.$ac_objext \ |
28473 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28474 | LIBS=$ac_check_lib_save_LIBS |
28475 | fi | |
28476 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28477 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28478 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28479 | WCHAR_OK=1 | |
28480 | fi | |
28481 | ||
28482 | else | |
28483 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28484 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28485 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28487 | else | |
28488 | ac_check_lib_save_LIBS=$LIBS | |
28489 | LIBS="-lw $LIBS" | |
28490 | cat >conftest.$ac_ext <<_ACEOF | |
28491 | /* confdefs.h. */ | |
28492 | _ACEOF | |
28493 | cat confdefs.h >>conftest.$ac_ext | |
28494 | cat >>conftest.$ac_ext <<_ACEOF | |
28495 | /* end confdefs.h. */ | |
28496 | ||
28497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28498 | #ifdef __cplusplus | |
28499 | extern "C" | |
28500 | #endif | |
28501 | /* We use char because int might match the return type of a gcc2 | |
28502 | builtin and then its argument prototype would still apply. */ | |
28503 | char wcslen (); | |
28504 | int | |
28505 | main () | |
28506 | { | |
28507 | wcslen (); | |
28508 | ; | |
28509 | return 0; | |
28510 | } | |
28511 | _ACEOF | |
28512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28514 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28515 | ac_status=$? |
ac1cb8d3 VS |
28516 | grep -v '^ *+' conftest.er1 >conftest.err |
28517 | rm -f conftest.er1 | |
28518 | cat conftest.err >&5 | |
a848cd7e SC |
28519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28520 | (exit $ac_status); } && | |
4d4ff94c | 28521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28523 | (eval $ac_try) 2>&5 | |
28524 | ac_status=$? | |
28525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28526 | (exit $ac_status); }; } && | |
28527 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28529 | (eval $ac_try) 2>&5 | |
28530 | ac_status=$? | |
28531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28532 | (exit $ac_status); }; }; then | |
28533 | ac_cv_lib_w_wcslen=yes | |
28534 | else | |
28535 | echo "$as_me: failed program was:" >&5 | |
28536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28537 | ||
28538 | ac_cv_lib_w_wcslen=no | |
28539 | fi | |
ac1cb8d3 VS |
28540 | rm -f conftest.err conftest.$ac_objext \ |
28541 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28542 | LIBS=$ac_check_lib_save_LIBS |
28543 | fi | |
28544 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28545 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28546 | if test $ac_cv_lib_w_wcslen = yes; then | |
28547 | ||
28548 | WCHAR_LINK=" -lw" | |
28549 | WCSLEN_FOUND=1 | |
28550 | ||
28551 | fi | |
28552 | ||
28553 | fi | |
28554 | fi | |
28555 | ||
28556 | if test "$WCSLEN_FOUND" = 1; then | |
28557 | cat >>confdefs.h <<\_ACEOF | |
28558 | #define HAVE_WCSLEN 1 | |
28559 | _ACEOF | |
28560 | ||
28561 | fi | |
28562 | ||
473276a9 VS |
28563 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
28564 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
28565 | fi | |
28566 | ||
a848cd7e SC |
28567 | |
28568 | for ac_func in wcsrtombs | |
28569 | do | |
28570 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28571 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28572 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28573 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28575 | else | |
28576 | cat >conftest.$ac_ext <<_ACEOF | |
28577 | /* confdefs.h. */ | |
28578 | _ACEOF | |
28579 | cat confdefs.h >>conftest.$ac_ext | |
28580 | cat >>conftest.$ac_ext <<_ACEOF | |
28581 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28582 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28583 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28584 | #define $ac_func innocuous_$ac_func | |
28585 | ||
a848cd7e SC |
28586 | /* System header to define __stub macros and hopefully few prototypes, |
28587 | which can conflict with char $ac_func (); below. | |
28588 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28589 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28590 | |
a848cd7e SC |
28591 | #ifdef __STDC__ |
28592 | # include <limits.h> | |
28593 | #else | |
28594 | # include <assert.h> | |
28595 | #endif | |
ac1cb8d3 VS |
28596 | |
28597 | #undef $ac_func | |
28598 | ||
a848cd7e SC |
28599 | /* Override any gcc2 internal prototype to avoid an error. */ |
28600 | #ifdef __cplusplus | |
28601 | extern "C" | |
28602 | { | |
28603 | #endif | |
28604 | /* We use char because int might match the return type of a gcc2 | |
28605 | builtin and then its argument prototype would still apply. */ | |
28606 | char $ac_func (); | |
28607 | /* The GNU C library defines this for functions which it implements | |
28608 | to always fail with ENOSYS. Some functions are actually named | |
28609 | something starting with __ and the normal name is an alias. */ | |
28610 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28611 | choke me | |
28612 | #else | |
28613 | char (*f) () = $ac_func; | |
28614 | #endif | |
28615 | #ifdef __cplusplus | |
28616 | } | |
28617 | #endif | |
28618 | ||
28619 | int | |
28620 | main () | |
28621 | { | |
28622 | return f != $ac_func; | |
28623 | ; | |
28624 | return 0; | |
28625 | } | |
28626 | _ACEOF | |
28627 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28629 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28630 | ac_status=$? |
ac1cb8d3 VS |
28631 | grep -v '^ *+' conftest.er1 >conftest.err |
28632 | rm -f conftest.er1 | |
28633 | cat conftest.err >&5 | |
a848cd7e SC |
28634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28635 | (exit $ac_status); } && | |
4d4ff94c | 28636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28638 | (eval $ac_try) 2>&5 | |
28639 | ac_status=$? | |
28640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28641 | (exit $ac_status); }; } && | |
28642 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28644 | (eval $ac_try) 2>&5 | |
28645 | ac_status=$? | |
28646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28647 | (exit $ac_status); }; }; then | |
28648 | eval "$as_ac_var=yes" | |
28649 | else | |
28650 | echo "$as_me: failed program was:" >&5 | |
28651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28652 | ||
28653 | eval "$as_ac_var=no" | |
28654 | fi | |
ac1cb8d3 VS |
28655 | rm -f conftest.err conftest.$ac_objext \ |
28656 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28657 | fi |
28658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28659 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28660 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28661 | cat >>confdefs.h <<_ACEOF | |
28662 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28663 | _ACEOF | |
28664 | ||
28665 | fi | |
28666 | done | |
28667 | ||
28668 | else | |
28669 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
28670 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
28671 | fi | |
28672 | ||
28673 | ||
28674 | ||
28675 | ac_ext=cc | |
28676 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28677 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28678 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28679 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28680 | ||
28681 | ||
28682 | ||
28683 | for ac_func in vsnprintf | |
28684 | do | |
28685 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28686 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28687 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28688 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28690 | else | |
28691 | cat >conftest.$ac_ext <<_ACEOF | |
28692 | /* confdefs.h. */ | |
28693 | _ACEOF | |
28694 | cat confdefs.h >>conftest.$ac_ext | |
28695 | cat >>conftest.$ac_ext <<_ACEOF | |
28696 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28697 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28698 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28699 | #define $ac_func innocuous_$ac_func | |
28700 | ||
a848cd7e SC |
28701 | /* System header to define __stub macros and hopefully few prototypes, |
28702 | which can conflict with char $ac_func (); below. | |
28703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28704 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28705 | |
a848cd7e SC |
28706 | #ifdef __STDC__ |
28707 | # include <limits.h> | |
28708 | #else | |
28709 | # include <assert.h> | |
28710 | #endif | |
ac1cb8d3 VS |
28711 | |
28712 | #undef $ac_func | |
28713 | ||
a848cd7e SC |
28714 | /* Override any gcc2 internal prototype to avoid an error. */ |
28715 | #ifdef __cplusplus | |
28716 | extern "C" | |
28717 | { | |
28718 | #endif | |
28719 | /* We use char because int might match the return type of a gcc2 | |
28720 | builtin and then its argument prototype would still apply. */ | |
28721 | char $ac_func (); | |
28722 | /* The GNU C library defines this for functions which it implements | |
28723 | to always fail with ENOSYS. Some functions are actually named | |
28724 | something starting with __ and the normal name is an alias. */ | |
28725 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28726 | choke me | |
28727 | #else | |
28728 | char (*f) () = $ac_func; | |
28729 | #endif | |
28730 | #ifdef __cplusplus | |
28731 | } | |
28732 | #endif | |
28733 | ||
28734 | int | |
28735 | main () | |
28736 | { | |
28737 | return f != $ac_func; | |
28738 | ; | |
28739 | return 0; | |
28740 | } | |
28741 | _ACEOF | |
28742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28744 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28745 | ac_status=$? |
ac1cb8d3 VS |
28746 | grep -v '^ *+' conftest.er1 >conftest.err |
28747 | rm -f conftest.er1 | |
28748 | cat conftest.err >&5 | |
a848cd7e SC |
28749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28750 | (exit $ac_status); } && | |
4d4ff94c | 28751 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28753 | (eval $ac_try) 2>&5 | |
28754 | ac_status=$? | |
28755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28756 | (exit $ac_status); }; } && | |
28757 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28759 | (eval $ac_try) 2>&5 | |
28760 | ac_status=$? | |
28761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28762 | (exit $ac_status); }; }; then | |
28763 | eval "$as_ac_var=yes" | |
28764 | else | |
28765 | echo "$as_me: failed program was:" >&5 | |
28766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28767 | ||
28768 | eval "$as_ac_var=no" | |
28769 | fi | |
ac1cb8d3 VS |
28770 | rm -f conftest.err conftest.$ac_objext \ |
28771 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28772 | fi |
28773 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28774 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28775 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28776 | cat >>confdefs.h <<_ACEOF | |
28777 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28778 | _ACEOF | |
28779 | ||
28780 | fi | |
28781 | done | |
28782 | ||
28783 | ||
28784 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
28785 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
28786 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
28787 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
28788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28789 | else | |
28790 | ||
28791 | cat >conftest.$ac_ext <<_ACEOF | |
28792 | /* confdefs.h. */ | |
28793 | _ACEOF | |
28794 | cat confdefs.h >>conftest.$ac_ext | |
28795 | cat >>conftest.$ac_ext <<_ACEOF | |
28796 | /* end confdefs.h. */ | |
28797 | ||
28798 | #include <stdio.h> | |
28799 | #include <stdarg.h> | |
28800 | ||
28801 | int | |
28802 | main () | |
28803 | { | |
28804 | ||
28805 | char *buf; | |
28806 | va_list ap; | |
28807 | vsnprintf(buf, 10u, "%s", ap); | |
28808 | ||
28809 | ; | |
28810 | return 0; | |
28811 | } | |
28812 | _ACEOF | |
28813 | rm -f conftest.$ac_objext | |
28814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28815 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28816 | ac_status=$? |
ac1cb8d3 VS |
28817 | grep -v '^ *+' conftest.er1 >conftest.err |
28818 | rm -f conftest.er1 | |
28819 | cat conftest.err >&5 | |
a848cd7e SC |
28820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28821 | (exit $ac_status); } && | |
4d4ff94c | 28822 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28824 | (eval $ac_try) 2>&5 | |
28825 | ac_status=$? | |
28826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28827 | (exit $ac_status); }; } && | |
28828 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28830 | (eval $ac_try) 2>&5 | |
28831 | ac_status=$? | |
28832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28833 | (exit $ac_status); }; }; then | |
28834 | wx_cv_func_vsnprintf_decl=yes | |
28835 | else | |
28836 | echo "$as_me: failed program was:" >&5 | |
28837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28838 | ||
28839 | wx_cv_func_vsnprintf_decl=no | |
28840 | ||
28841 | fi | |
ac1cb8d3 | 28842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28843 | |
28844 | ||
28845 | fi | |
28846 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
28847 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
28848 | ||
28849 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
28850 | cat >>confdefs.h <<\_ACEOF | |
28851 | #define HAVE_VSNPRINTF_DECL 1 | |
28852 | _ACEOF | |
28853 | ||
28854 | fi | |
28855 | fi | |
28856 | ||
28857 | if test "$wxUSE_UNICODE" = yes; then | |
28858 | ||
28859 | ||
28860 | ||
fbe47c7b VS |
28861 | |
28862 | ||
28863 | ||
28864 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
28865 | do |
28866 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28867 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28868 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28869 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28871 | else | |
28872 | cat >conftest.$ac_ext <<_ACEOF | |
28873 | /* confdefs.h. */ | |
28874 | _ACEOF | |
28875 | cat confdefs.h >>conftest.$ac_ext | |
28876 | cat >>conftest.$ac_ext <<_ACEOF | |
28877 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28878 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28880 | #define $ac_func innocuous_$ac_func | |
28881 | ||
a848cd7e SC |
28882 | /* System header to define __stub macros and hopefully few prototypes, |
28883 | which can conflict with char $ac_func (); below. | |
28884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28885 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28886 | |
a848cd7e SC |
28887 | #ifdef __STDC__ |
28888 | # include <limits.h> | |
28889 | #else | |
28890 | # include <assert.h> | |
28891 | #endif | |
ac1cb8d3 VS |
28892 | |
28893 | #undef $ac_func | |
28894 | ||
a848cd7e SC |
28895 | /* Override any gcc2 internal prototype to avoid an error. */ |
28896 | #ifdef __cplusplus | |
28897 | extern "C" | |
28898 | { | |
28899 | #endif | |
28900 | /* We use char because int might match the return type of a gcc2 | |
28901 | builtin and then its argument prototype would still apply. */ | |
28902 | char $ac_func (); | |
28903 | /* The GNU C library defines this for functions which it implements | |
28904 | to always fail with ENOSYS. Some functions are actually named | |
28905 | something starting with __ and the normal name is an alias. */ | |
28906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28907 | choke me | |
28908 | #else | |
28909 | char (*f) () = $ac_func; | |
28910 | #endif | |
28911 | #ifdef __cplusplus | |
28912 | } | |
28913 | #endif | |
28914 | ||
28915 | int | |
28916 | main () | |
28917 | { | |
28918 | return f != $ac_func; | |
28919 | ; | |
28920 | return 0; | |
28921 | } | |
28922 | _ACEOF | |
28923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28925 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28926 | ac_status=$? |
ac1cb8d3 VS |
28927 | grep -v '^ *+' conftest.er1 >conftest.err |
28928 | rm -f conftest.er1 | |
28929 | cat conftest.err >&5 | |
a848cd7e SC |
28930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28931 | (exit $ac_status); } && | |
4d4ff94c | 28932 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28934 | (eval $ac_try) 2>&5 | |
28935 | ac_status=$? | |
28936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28937 | (exit $ac_status); }; } && | |
28938 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28940 | (eval $ac_try) 2>&5 | |
28941 | ac_status=$? | |
28942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28943 | (exit $ac_status); }; }; then | |
28944 | eval "$as_ac_var=yes" | |
28945 | else | |
28946 | echo "$as_me: failed program was:" >&5 | |
28947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28948 | ||
28949 | eval "$as_ac_var=no" | |
28950 | fi | |
ac1cb8d3 VS |
28951 | rm -f conftest.err conftest.$ac_objext \ |
28952 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28953 | fi |
28954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28955 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28956 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28957 | cat >>confdefs.h <<_ACEOF | |
28958 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28959 | _ACEOF | |
28960 | ||
28961 | fi | |
28962 | done | |
28963 | ||
28964 | ||
28965 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
28966 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
28967 | cat >conftest.$ac_ext <<_ACEOF | |
28968 | /* confdefs.h. */ | |
28969 | _ACEOF | |
28970 | cat confdefs.h >>conftest.$ac_ext | |
28971 | cat >>conftest.$ac_ext <<_ACEOF | |
28972 | /* end confdefs.h. */ | |
28973 | #include <wchar.h> | |
28974 | int | |
28975 | main () | |
28976 | { | |
28977 | &_vsnwprintf; | |
28978 | ; | |
28979 | return 0; | |
28980 | } | |
28981 | _ACEOF | |
28982 | rm -f conftest.$ac_objext | |
28983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28984 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28985 | ac_status=$? |
ac1cb8d3 VS |
28986 | grep -v '^ *+' conftest.er1 >conftest.err |
28987 | rm -f conftest.er1 | |
28988 | cat conftest.err >&5 | |
a848cd7e SC |
28989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28990 | (exit $ac_status); } && | |
4d4ff94c | 28991 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28993 | (eval $ac_try) 2>&5 | |
28994 | ac_status=$? | |
28995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28996 | (exit $ac_status); }; } && | |
28997 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28999 | (eval $ac_try) 2>&5 | |
29000 | ac_status=$? | |
29001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29002 | (exit $ac_status); }; }; then | |
29003 | echo "$as_me:$LINENO: result: yes" >&5 | |
29004 | echo "${ECHO_T}yes" >&6 | |
29005 | cat >>confdefs.h <<\_ACEOF | |
29006 | #define HAVE__VSNWPRINTF 1 | |
29007 | _ACEOF | |
29008 | ||
29009 | else | |
29010 | echo "$as_me: failed program was:" >&5 | |
29011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29012 | ||
29013 | echo "$as_me:$LINENO: result: no" >&5 | |
29014 | echo "${ECHO_T}no" >&6 | |
29015 | fi | |
ac1cb8d3 | 29016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29017 | fi |
29018 | ||
29019 | ac_ext=c | |
29020 | ac_cpp='$CPP $CPPFLAGS' | |
29021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29024 | ||
29025 | ||
29026 | ||
29027 | ||
29028 | if test "$TOOLKIT" != "MSW"; then | |
29029 | ||
29030 | ||
29031 | ||
29032 | ||
29033 | ac_ext=cc | |
29034 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29035 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29036 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29037 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29038 | ||
29039 | ||
29040 | ||
29041 | ||
29042 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29043 | if test "${with_libiconv_prefix+set}" = set; then | |
29044 | withval="$with_libiconv_prefix" | |
29045 | ||
29046 | for dir in `echo "$withval" | tr : ' '`; do | |
29047 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29048 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29049 | done | |
29050 | ||
29051 | fi; | |
29052 | ||
29053 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29054 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29055 | if test "${am_cv_func_iconv+set}" = set; then | |
29056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29057 | else | |
29058 | ||
29059 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29060 | am_cv_lib_iconv=no | |
29061 | cat >conftest.$ac_ext <<_ACEOF | |
29062 | /* confdefs.h. */ | |
29063 | _ACEOF | |
29064 | cat confdefs.h >>conftest.$ac_ext | |
29065 | cat >>conftest.$ac_ext <<_ACEOF | |
29066 | /* end confdefs.h. */ | |
29067 | #include <stdlib.h> | |
29068 | #include <iconv.h> | |
29069 | int | |
29070 | main () | |
29071 | { | |
29072 | iconv_t cd = iconv_open("",""); | |
29073 | iconv(cd,NULL,NULL,NULL,NULL); | |
29074 | iconv_close(cd); | |
29075 | ; | |
29076 | return 0; | |
29077 | } | |
29078 | _ACEOF | |
29079 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29081 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29082 | ac_status=$? |
ac1cb8d3 VS |
29083 | grep -v '^ *+' conftest.er1 >conftest.err |
29084 | rm -f conftest.er1 | |
29085 | cat conftest.err >&5 | |
a848cd7e SC |
29086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29087 | (exit $ac_status); } && | |
4d4ff94c | 29088 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29090 | (eval $ac_try) 2>&5 | |
29091 | ac_status=$? | |
29092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29093 | (exit $ac_status); }; } && | |
29094 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29096 | (eval $ac_try) 2>&5 | |
29097 | ac_status=$? | |
29098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29099 | (exit $ac_status); }; }; then | |
29100 | am_cv_func_iconv=yes | |
29101 | else | |
29102 | echo "$as_me: failed program was:" >&5 | |
29103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29104 | ||
29105 | fi | |
ac1cb8d3 VS |
29106 | rm -f conftest.err conftest.$ac_objext \ |
29107 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29108 | if test "$am_cv_func_iconv" != yes; then |
29109 | am_save_LIBS="$LIBS" | |
29110 | LIBS="$LIBS -liconv" | |
29111 | cat >conftest.$ac_ext <<_ACEOF | |
29112 | /* confdefs.h. */ | |
29113 | _ACEOF | |
29114 | cat confdefs.h >>conftest.$ac_ext | |
29115 | cat >>conftest.$ac_ext <<_ACEOF | |
29116 | /* end confdefs.h. */ | |
29117 | #include <stdlib.h> | |
29118 | #include <iconv.h> | |
29119 | int | |
29120 | main () | |
29121 | { | |
29122 | iconv_t cd = iconv_open("",""); | |
29123 | iconv(cd,NULL,NULL,NULL,NULL); | |
29124 | iconv_close(cd); | |
29125 | ; | |
29126 | return 0; | |
29127 | } | |
29128 | _ACEOF | |
29129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29131 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29132 | ac_status=$? |
ac1cb8d3 VS |
29133 | grep -v '^ *+' conftest.er1 >conftest.err |
29134 | rm -f conftest.er1 | |
29135 | cat conftest.err >&5 | |
a848cd7e SC |
29136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29137 | (exit $ac_status); } && | |
4d4ff94c | 29138 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29140 | (eval $ac_try) 2>&5 | |
29141 | ac_status=$? | |
29142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29143 | (exit $ac_status); }; } && | |
29144 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29146 | (eval $ac_try) 2>&5 | |
29147 | ac_status=$? | |
29148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29149 | (exit $ac_status); }; }; then | |
29150 | am_cv_lib_iconv=yes | |
29151 | am_cv_func_iconv=yes | |
29152 | else | |
29153 | echo "$as_me: failed program was:" >&5 | |
29154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29155 | ||
29156 | fi | |
ac1cb8d3 VS |
29157 | rm -f conftest.err conftest.$ac_objext \ |
29158 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29159 | LIBS="$am_save_LIBS" |
29160 | fi | |
29161 | ||
29162 | fi | |
29163 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29164 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29165 | if test "$am_cv_func_iconv" = yes; then | |
29166 | ||
29167 | cat >>confdefs.h <<\_ACEOF | |
29168 | #define HAVE_ICONV 1 | |
29169 | _ACEOF | |
29170 | ||
29171 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29172 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29173 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29175 | else | |
29176 | cat >conftest.$ac_ext <<_ACEOF | |
29177 | /* confdefs.h. */ | |
29178 | _ACEOF | |
29179 | cat confdefs.h >>conftest.$ac_ext | |
29180 | cat >>conftest.$ac_ext <<_ACEOF | |
29181 | /* end confdefs.h. */ | |
29182 | ||
29183 | #include <stdlib.h> | |
29184 | #include <iconv.h> | |
29185 | extern | |
29186 | #ifdef __cplusplus | |
29187 | "C" | |
29188 | #endif | |
29189 | #if defined(__STDC__) || defined(__cplusplus) | |
29190 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29191 | #else | |
29192 | size_t iconv(); | |
29193 | #endif | |
29194 | ||
29195 | int | |
29196 | main () | |
29197 | { | |
29198 | ||
29199 | ; | |
29200 | return 0; | |
29201 | } | |
29202 | _ACEOF | |
29203 | rm -f conftest.$ac_objext | |
29204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29205 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29206 | ac_status=$? |
ac1cb8d3 VS |
29207 | grep -v '^ *+' conftest.er1 >conftest.err |
29208 | rm -f conftest.er1 | |
29209 | cat conftest.err >&5 | |
a848cd7e SC |
29210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29211 | (exit $ac_status); } && | |
4d4ff94c | 29212 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29214 | (eval $ac_try) 2>&5 | |
29215 | ac_status=$? | |
29216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29217 | (exit $ac_status); }; } && | |
29218 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29220 | (eval $ac_try) 2>&5 | |
29221 | ac_status=$? | |
29222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29223 | (exit $ac_status); }; }; then | |
29224 | wx_cv_func_iconv_const="no" | |
29225 | else | |
29226 | echo "$as_me: failed program was:" >&5 | |
29227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29228 | ||
29229 | wx_cv_func_iconv_const="yes" | |
29230 | ||
29231 | fi | |
ac1cb8d3 | 29232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29233 | |
29234 | fi | |
29235 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29236 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29237 | ||
29238 | iconv_const= | |
29239 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29240 | iconv_const="const" | |
29241 | fi | |
29242 | ||
29243 | ||
29244 | cat >>confdefs.h <<_ACEOF | |
29245 | #define ICONV_CONST $iconv_const | |
29246 | _ACEOF | |
29247 | ||
29248 | fi | |
29249 | LIBICONV= | |
29250 | if test "$am_cv_lib_iconv" = yes; then | |
29251 | LIBICONV="-liconv" | |
29252 | fi | |
29253 | ||
29254 | ||
29255 | LIBS="$LIBICONV $LIBS" | |
29256 | ac_ext=c | |
29257 | ac_cpp='$CPP $CPPFLAGS' | |
29258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29261 | ||
29262 | ||
29263 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29264 | ||
29265 | for ac_func in sigaction | |
29266 | do | |
29267 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29268 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29269 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29270 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29272 | else | |
29273 | cat >conftest.$ac_ext <<_ACEOF | |
29274 | /* confdefs.h. */ | |
29275 | _ACEOF | |
29276 | cat confdefs.h >>conftest.$ac_ext | |
29277 | cat >>conftest.$ac_ext <<_ACEOF | |
29278 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29279 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29281 | #define $ac_func innocuous_$ac_func | |
29282 | ||
a848cd7e SC |
29283 | /* System header to define __stub macros and hopefully few prototypes, |
29284 | which can conflict with char $ac_func (); below. | |
29285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29286 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29287 | |
a848cd7e SC |
29288 | #ifdef __STDC__ |
29289 | # include <limits.h> | |
29290 | #else | |
29291 | # include <assert.h> | |
29292 | #endif | |
ac1cb8d3 VS |
29293 | |
29294 | #undef $ac_func | |
29295 | ||
a848cd7e SC |
29296 | /* Override any gcc2 internal prototype to avoid an error. */ |
29297 | #ifdef __cplusplus | |
29298 | extern "C" | |
29299 | { | |
29300 | #endif | |
29301 | /* We use char because int might match the return type of a gcc2 | |
29302 | builtin and then its argument prototype would still apply. */ | |
29303 | char $ac_func (); | |
29304 | /* The GNU C library defines this for functions which it implements | |
29305 | to always fail with ENOSYS. Some functions are actually named | |
29306 | something starting with __ and the normal name is an alias. */ | |
29307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29308 | choke me | |
29309 | #else | |
29310 | char (*f) () = $ac_func; | |
29311 | #endif | |
29312 | #ifdef __cplusplus | |
29313 | } | |
29314 | #endif | |
29315 | ||
29316 | int | |
29317 | main () | |
29318 | { | |
29319 | return f != $ac_func; | |
29320 | ; | |
29321 | return 0; | |
29322 | } | |
29323 | _ACEOF | |
29324 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29326 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29327 | ac_status=$? |
ac1cb8d3 VS |
29328 | grep -v '^ *+' conftest.er1 >conftest.err |
29329 | rm -f conftest.er1 | |
29330 | cat conftest.err >&5 | |
a848cd7e SC |
29331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29332 | (exit $ac_status); } && | |
4d4ff94c | 29333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29335 | (eval $ac_try) 2>&5 | |
29336 | ac_status=$? | |
29337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29338 | (exit $ac_status); }; } && | |
29339 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29341 | (eval $ac_try) 2>&5 | |
29342 | ac_status=$? | |
29343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29344 | (exit $ac_status); }; }; then | |
29345 | eval "$as_ac_var=yes" | |
29346 | else | |
29347 | echo "$as_me: failed program was:" >&5 | |
29348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29349 | ||
29350 | eval "$as_ac_var=no" | |
29351 | fi | |
ac1cb8d3 VS |
29352 | rm -f conftest.err conftest.$ac_objext \ |
29353 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29354 | fi |
29355 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29356 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29357 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29358 | cat >>confdefs.h <<_ACEOF | |
29359 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29360 | _ACEOF | |
29361 | ||
29362 | fi | |
29363 | done | |
29364 | ||
29365 | ||
29366 | if test "$ac_cv_func_sigaction" = "no"; then | |
29367 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29368 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29369 | wxUSE_ON_FATAL_EXCEPTION=no | |
29370 | fi | |
29371 | ||
29372 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29373 | ||
29374 | ||
29375 | ac_ext=cc | |
29376 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29377 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29378 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29379 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29380 | ||
29381 | ||
29382 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29383 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29384 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29386 | else | |
29387 | ||
29388 | cat >conftest.$ac_ext <<_ACEOF | |
29389 | /* confdefs.h. */ | |
29390 | _ACEOF | |
29391 | cat confdefs.h >>conftest.$ac_ext | |
29392 | cat >>conftest.$ac_ext <<_ACEOF | |
29393 | /* end confdefs.h. */ | |
29394 | #include <signal.h> | |
29395 | int | |
29396 | main () | |
29397 | { | |
29398 | ||
29399 | extern void testSigHandler(int); | |
29400 | ||
29401 | struct sigaction sa; | |
29402 | sa.sa_handler = testSigHandler; | |
29403 | ||
29404 | ; | |
29405 | return 0; | |
29406 | } | |
29407 | _ACEOF | |
29408 | rm -f conftest.$ac_objext | |
29409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29410 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29411 | ac_status=$? |
ac1cb8d3 VS |
29412 | grep -v '^ *+' conftest.er1 >conftest.err |
29413 | rm -f conftest.er1 | |
29414 | cat conftest.err >&5 | |
a848cd7e SC |
29415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29416 | (exit $ac_status); } && | |
4d4ff94c | 29417 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29419 | (eval $ac_try) 2>&5 | |
29420 | ac_status=$? | |
29421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29422 | (exit $ac_status); }; } && | |
29423 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29425 | (eval $ac_try) 2>&5 | |
29426 | ac_status=$? | |
29427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29428 | (exit $ac_status); }; }; then | |
29429 | ||
29430 | wx_cv_type_sa_handler=int | |
29431 | ||
29432 | else | |
29433 | echo "$as_me: failed program was:" >&5 | |
29434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29435 | ||
29436 | ||
29437 | wx_cv_type_sa_handler=void | |
29438 | ||
29439 | fi | |
ac1cb8d3 | 29440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29441 | |
29442 | fi | |
29443 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29444 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29445 | ||
29446 | ac_ext=c | |
29447 | ac_cpp='$CPP $CPPFLAGS' | |
29448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29451 | ||
29452 | ||
29453 | cat >>confdefs.h <<_ACEOF | |
29454 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29455 | _ACEOF | |
29456 | ||
29457 | fi | |
29458 | fi | |
29459 | ||
29460 | ||
29461 | ||
29462 | for ac_func in mkstemp mktemp | |
29463 | do | |
29464 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29465 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29466 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29467 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29469 | else | |
29470 | cat >conftest.$ac_ext <<_ACEOF | |
29471 | /* confdefs.h. */ | |
29472 | _ACEOF | |
29473 | cat confdefs.h >>conftest.$ac_ext | |
29474 | cat >>conftest.$ac_ext <<_ACEOF | |
29475 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29476 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29477 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29478 | #define $ac_func innocuous_$ac_func | |
29479 | ||
a848cd7e SC |
29480 | /* System header to define __stub macros and hopefully few prototypes, |
29481 | which can conflict with char $ac_func (); below. | |
29482 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29483 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29484 | |
a848cd7e SC |
29485 | #ifdef __STDC__ |
29486 | # include <limits.h> | |
29487 | #else | |
29488 | # include <assert.h> | |
29489 | #endif | |
ac1cb8d3 VS |
29490 | |
29491 | #undef $ac_func | |
29492 | ||
a848cd7e SC |
29493 | /* Override any gcc2 internal prototype to avoid an error. */ |
29494 | #ifdef __cplusplus | |
29495 | extern "C" | |
29496 | { | |
29497 | #endif | |
29498 | /* We use char because int might match the return type of a gcc2 | |
29499 | builtin and then its argument prototype would still apply. */ | |
29500 | char $ac_func (); | |
29501 | /* The GNU C library defines this for functions which it implements | |
29502 | to always fail with ENOSYS. Some functions are actually named | |
29503 | something starting with __ and the normal name is an alias. */ | |
29504 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29505 | choke me | |
29506 | #else | |
29507 | char (*f) () = $ac_func; | |
29508 | #endif | |
29509 | #ifdef __cplusplus | |
29510 | } | |
29511 | #endif | |
29512 | ||
29513 | int | |
29514 | main () | |
29515 | { | |
29516 | return f != $ac_func; | |
29517 | ; | |
29518 | return 0; | |
29519 | } | |
29520 | _ACEOF | |
29521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29523 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29524 | ac_status=$? |
ac1cb8d3 VS |
29525 | grep -v '^ *+' conftest.er1 >conftest.err |
29526 | rm -f conftest.er1 | |
29527 | cat conftest.err >&5 | |
a848cd7e SC |
29528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29529 | (exit $ac_status); } && | |
4d4ff94c | 29530 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29532 | (eval $ac_try) 2>&5 | |
29533 | ac_status=$? | |
29534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29535 | (exit $ac_status); }; } && | |
29536 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29538 | (eval $ac_try) 2>&5 | |
29539 | ac_status=$? | |
29540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29541 | (exit $ac_status); }; }; then | |
29542 | eval "$as_ac_var=yes" | |
29543 | else | |
29544 | echo "$as_me: failed program was:" >&5 | |
29545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29546 | ||
29547 | eval "$as_ac_var=no" | |
29548 | fi | |
ac1cb8d3 VS |
29549 | rm -f conftest.err conftest.$ac_objext \ |
29550 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29551 | fi |
29552 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29553 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29554 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29555 | cat >>confdefs.h <<_ACEOF | |
29556 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29557 | _ACEOF | |
29558 | break | |
29559 | fi | |
29560 | done | |
29561 | ||
29562 | ||
29563 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
29564 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29565 | if test "${wx_cv_func_statfs+set}" = set; then | |
29566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29567 | else | |
29568 | cat >conftest.$ac_ext <<_ACEOF | |
29569 | /* confdefs.h. */ | |
29570 | _ACEOF | |
29571 | cat confdefs.h >>conftest.$ac_ext | |
29572 | cat >>conftest.$ac_ext <<_ACEOF | |
29573 | /* end confdefs.h. */ | |
29574 | ||
29575 | #if defined(__BSD__) | |
29576 | #include <sys/param.h> | |
29577 | #include <sys/mount.h> | |
29578 | #else | |
29579 | #include <sys/vfs.h> | |
29580 | #endif | |
29581 | ||
29582 | int | |
29583 | main () | |
29584 | { | |
29585 | ||
29586 | long l; | |
29587 | struct statfs fs; | |
29588 | statfs("/", &fs); | |
29589 | l = fs.f_bsize; | |
29590 | l += fs.f_blocks; | |
29591 | l += fs.f_bavail; | |
29592 | ||
29593 | ; | |
29594 | return 0; | |
29595 | } | |
29596 | _ACEOF | |
29597 | rm -f conftest.$ac_objext | |
29598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29599 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29600 | ac_status=$? |
ac1cb8d3 VS |
29601 | grep -v '^ *+' conftest.er1 >conftest.err |
29602 | rm -f conftest.er1 | |
29603 | cat conftest.err >&5 | |
a848cd7e SC |
29604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29605 | (exit $ac_status); } && | |
4d4ff94c | 29606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29608 | (eval $ac_try) 2>&5 | |
29609 | ac_status=$? | |
29610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29611 | (exit $ac_status); }; } && | |
29612 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29614 | (eval $ac_try) 2>&5 | |
29615 | ac_status=$? | |
29616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29617 | (exit $ac_status); }; }; then | |
29618 | ||
29619 | wx_cv_func_statfs=yes | |
29620 | ||
29621 | else | |
29622 | echo "$as_me: failed program was:" >&5 | |
29623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29624 | ||
29625 | ||
29626 | wx_cv_func_statfs=no | |
29627 | ||
29628 | ||
29629 | fi | |
ac1cb8d3 | 29630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29631 | |
29632 | fi | |
29633 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29634 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
29635 | ||
29636 | if test "$wx_cv_func_statfs" = "yes"; then | |
29637 | wx_cv_type_statvfs_t="struct statfs" | |
29638 | cat >>confdefs.h <<\_ACEOF | |
29639 | #define HAVE_STATFS 1 | |
29640 | _ACEOF | |
29641 | ||
29642 | else | |
29643 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
29644 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29645 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29647 | else | |
29648 | cat >conftest.$ac_ext <<_ACEOF | |
29649 | /* confdefs.h. */ | |
29650 | _ACEOF | |
29651 | cat confdefs.h >>conftest.$ac_ext | |
29652 | cat >>conftest.$ac_ext <<_ACEOF | |
29653 | /* end confdefs.h. */ | |
29654 | ||
29655 | #include <stddef.h> | |
29656 | #include <sys/statvfs.h> | |
29657 | ||
29658 | int | |
29659 | main () | |
29660 | { | |
29661 | ||
29662 | statvfs("/", NULL); | |
29663 | ||
29664 | ; | |
29665 | return 0; | |
29666 | } | |
29667 | _ACEOF | |
29668 | rm -f conftest.$ac_objext | |
29669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29670 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29671 | ac_status=$? |
ac1cb8d3 VS |
29672 | grep -v '^ *+' conftest.er1 >conftest.err |
29673 | rm -f conftest.er1 | |
29674 | cat conftest.err >&5 | |
a848cd7e SC |
29675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29676 | (exit $ac_status); } && | |
4d4ff94c | 29677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29679 | (eval $ac_try) 2>&5 | |
29680 | ac_status=$? | |
29681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29682 | (exit $ac_status); }; } && | |
29683 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29685 | (eval $ac_try) 2>&5 | |
29686 | ac_status=$? | |
29687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29688 | (exit $ac_status); }; }; then | |
29689 | wx_cv_func_statvfs=yes | |
29690 | else | |
29691 | echo "$as_me: failed program was:" >&5 | |
29692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29693 | ||
29694 | wx_cv_func_statvfs=no | |
29695 | ||
29696 | fi | |
ac1cb8d3 | 29697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29698 | |
29699 | fi | |
29700 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29701 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
29702 | ||
29703 | if test "$wx_cv_func_statvfs" = "yes"; then | |
29704 | ||
29705 | ||
29706 | ac_ext=cc | |
29707 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29708 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29709 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29710 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29711 | ||
29712 | ||
29713 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
29714 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29715 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29717 | else | |
29718 | cat >conftest.$ac_ext <<_ACEOF | |
29719 | /* confdefs.h. */ | |
29720 | _ACEOF | |
29721 | cat confdefs.h >>conftest.$ac_ext | |
29722 | cat >>conftest.$ac_ext <<_ACEOF | |
29723 | /* end confdefs.h. */ | |
29724 | ||
29725 | #include <sys/statvfs.h> | |
29726 | ||
29727 | int | |
29728 | main () | |
29729 | { | |
29730 | ||
29731 | long l; | |
29732 | statvfs_t fs; | |
29733 | statvfs("/", &fs); | |
29734 | l = fs.f_bsize; | |
29735 | l += fs.f_blocks; | |
29736 | l += fs.f_bavail; | |
29737 | ||
29738 | ; | |
29739 | return 0; | |
29740 | } | |
29741 | _ACEOF | |
29742 | rm -f conftest.$ac_objext | |
29743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29744 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29745 | ac_status=$? |
ac1cb8d3 VS |
29746 | grep -v '^ *+' conftest.er1 >conftest.err |
29747 | rm -f conftest.er1 | |
29748 | cat conftest.err >&5 | |
a848cd7e SC |
29749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29750 | (exit $ac_status); } && | |
4d4ff94c | 29751 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29753 | (eval $ac_try) 2>&5 | |
29754 | ac_status=$? | |
29755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29756 | (exit $ac_status); }; } && | |
29757 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29759 | (eval $ac_try) 2>&5 | |
29760 | ac_status=$? | |
29761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29762 | (exit $ac_status); }; }; then | |
29763 | wx_cv_type_statvfs_t=statvfs_t | |
29764 | else | |
29765 | echo "$as_me: failed program was:" >&5 | |
29766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29767 | ||
29768 | ||
29769 | cat >conftest.$ac_ext <<_ACEOF | |
29770 | /* confdefs.h. */ | |
29771 | _ACEOF | |
29772 | cat confdefs.h >>conftest.$ac_ext | |
29773 | cat >>conftest.$ac_ext <<_ACEOF | |
29774 | /* end confdefs.h. */ | |
29775 | ||
29776 | #include <sys/statvfs.h> | |
29777 | ||
29778 | int | |
29779 | main () | |
29780 | { | |
29781 | ||
29782 | long l; | |
29783 | struct statvfs fs; | |
29784 | statvfs("/", &fs); | |
29785 | l = fs.f_bsize; | |
29786 | l += fs.f_blocks; | |
29787 | l += fs.f_bavail; | |
29788 | ||
29789 | ; | |
29790 | return 0; | |
29791 | } | |
29792 | _ACEOF | |
29793 | rm -f conftest.$ac_objext | |
29794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29796 | ac_status=$? |
ac1cb8d3 VS |
29797 | grep -v '^ *+' conftest.er1 >conftest.err |
29798 | rm -f conftest.er1 | |
29799 | cat conftest.err >&5 | |
a848cd7e SC |
29800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29801 | (exit $ac_status); } && | |
4d4ff94c | 29802 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29804 | (eval $ac_try) 2>&5 | |
29805 | ac_status=$? | |
29806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29807 | (exit $ac_status); }; } && | |
29808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29810 | (eval $ac_try) 2>&5 | |
29811 | ac_status=$? | |
29812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29813 | (exit $ac_status); }; }; then | |
29814 | wx_cv_type_statvfs_t="struct statvfs" | |
29815 | else | |
29816 | echo "$as_me: failed program was:" >&5 | |
29817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29818 | ||
29819 | wx_cv_type_statvfs_t="unknown" | |
29820 | ||
29821 | fi | |
ac1cb8d3 | 29822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29823 | |
29824 | ||
29825 | fi | |
ac1cb8d3 | 29826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29827 | |
29828 | fi | |
29829 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
29830 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
29831 | ||
29832 | ac_ext=c | |
29833 | ac_cpp='$CPP $CPPFLAGS' | |
29834 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29835 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29836 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29837 | ||
29838 | ||
29839 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
29840 | cat >>confdefs.h <<\_ACEOF | |
29841 | #define HAVE_STATVFS 1 | |
29842 | _ACEOF | |
29843 | ||
29844 | fi | |
29845 | else | |
29846 | wx_cv_type_statvfs_t="unknown" | |
29847 | fi | |
29848 | fi | |
29849 | ||
29850 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
29851 | cat >>confdefs.h <<_ACEOF | |
29852 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
29853 | _ACEOF | |
29854 | ||
29855 | else | |
29856 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
29857 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
29858 | fi | |
29859 | ||
29860 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
29861 | ||
29862 | ||
29863 | for ac_func in fcntl flock | |
29864 | do | |
29865 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29866 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29867 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29868 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29870 | else | |
29871 | cat >conftest.$ac_ext <<_ACEOF | |
29872 | /* confdefs.h. */ | |
29873 | _ACEOF | |
29874 | cat confdefs.h >>conftest.$ac_ext | |
29875 | cat >>conftest.$ac_ext <<_ACEOF | |
29876 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29877 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29879 | #define $ac_func innocuous_$ac_func | |
29880 | ||
a848cd7e SC |
29881 | /* System header to define __stub macros and hopefully few prototypes, |
29882 | which can conflict with char $ac_func (); below. | |
29883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29884 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29885 | |
a848cd7e SC |
29886 | #ifdef __STDC__ |
29887 | # include <limits.h> | |
29888 | #else | |
29889 | # include <assert.h> | |
29890 | #endif | |
ac1cb8d3 VS |
29891 | |
29892 | #undef $ac_func | |
29893 | ||
a848cd7e SC |
29894 | /* Override any gcc2 internal prototype to avoid an error. */ |
29895 | #ifdef __cplusplus | |
29896 | extern "C" | |
29897 | { | |
29898 | #endif | |
29899 | /* We use char because int might match the return type of a gcc2 | |
29900 | builtin and then its argument prototype would still apply. */ | |
29901 | char $ac_func (); | |
29902 | /* The GNU C library defines this for functions which it implements | |
29903 | to always fail with ENOSYS. Some functions are actually named | |
29904 | something starting with __ and the normal name is an alias. */ | |
29905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29906 | choke me | |
29907 | #else | |
29908 | char (*f) () = $ac_func; | |
29909 | #endif | |
29910 | #ifdef __cplusplus | |
29911 | } | |
29912 | #endif | |
29913 | ||
29914 | int | |
29915 | main () | |
29916 | { | |
29917 | return f != $ac_func; | |
29918 | ; | |
29919 | return 0; | |
29920 | } | |
29921 | _ACEOF | |
29922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29924 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29925 | ac_status=$? |
ac1cb8d3 VS |
29926 | grep -v '^ *+' conftest.er1 >conftest.err |
29927 | rm -f conftest.er1 | |
29928 | cat conftest.err >&5 | |
a848cd7e SC |
29929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29930 | (exit $ac_status); } && | |
4d4ff94c | 29931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29933 | (eval $ac_try) 2>&5 | |
29934 | ac_status=$? | |
29935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29936 | (exit $ac_status); }; } && | |
29937 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29939 | (eval $ac_try) 2>&5 | |
29940 | ac_status=$? | |
29941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29942 | (exit $ac_status); }; }; then | |
29943 | eval "$as_ac_var=yes" | |
29944 | else | |
29945 | echo "$as_me: failed program was:" >&5 | |
29946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29947 | ||
29948 | eval "$as_ac_var=no" | |
29949 | fi | |
ac1cb8d3 VS |
29950 | rm -f conftest.err conftest.$ac_objext \ |
29951 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29952 | fi |
29953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29954 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29955 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29956 | cat >>confdefs.h <<_ACEOF | |
29957 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29958 | _ACEOF | |
29959 | break | |
29960 | fi | |
29961 | done | |
29962 | ||
29963 | ||
29964 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
29965 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
29966 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
29967 | wxUSE_SNGLINST_CHECKER=no | |
29968 | fi | |
29969 | fi | |
29970 | ||
29971 | ||
29972 | for ac_func in timegm | |
29973 | do | |
29974 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29975 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29976 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29977 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29979 | else | |
29980 | cat >conftest.$ac_ext <<_ACEOF | |
29981 | /* confdefs.h. */ | |
29982 | _ACEOF | |
29983 | cat confdefs.h >>conftest.$ac_ext | |
29984 | cat >>conftest.$ac_ext <<_ACEOF | |
29985 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29986 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29987 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29988 | #define $ac_func innocuous_$ac_func | |
29989 | ||
a848cd7e SC |
29990 | /* System header to define __stub macros and hopefully few prototypes, |
29991 | which can conflict with char $ac_func (); below. | |
29992 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29993 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29994 | |
a848cd7e SC |
29995 | #ifdef __STDC__ |
29996 | # include <limits.h> | |
29997 | #else | |
29998 | # include <assert.h> | |
29999 | #endif | |
ac1cb8d3 VS |
30000 | |
30001 | #undef $ac_func | |
30002 | ||
a848cd7e SC |
30003 | /* Override any gcc2 internal prototype to avoid an error. */ |
30004 | #ifdef __cplusplus | |
30005 | extern "C" | |
30006 | { | |
30007 | #endif | |
30008 | /* We use char because int might match the return type of a gcc2 | |
30009 | builtin and then its argument prototype would still apply. */ | |
30010 | char $ac_func (); | |
30011 | /* The GNU C library defines this for functions which it implements | |
30012 | to always fail with ENOSYS. Some functions are actually named | |
30013 | something starting with __ and the normal name is an alias. */ | |
30014 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30015 | choke me | |
30016 | #else | |
30017 | char (*f) () = $ac_func; | |
30018 | #endif | |
30019 | #ifdef __cplusplus | |
30020 | } | |
30021 | #endif | |
30022 | ||
30023 | int | |
30024 | main () | |
30025 | { | |
30026 | return f != $ac_func; | |
30027 | ; | |
30028 | return 0; | |
30029 | } | |
30030 | _ACEOF | |
30031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30033 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30034 | ac_status=$? |
ac1cb8d3 VS |
30035 | grep -v '^ *+' conftest.er1 >conftest.err |
30036 | rm -f conftest.er1 | |
30037 | cat conftest.err >&5 | |
a848cd7e SC |
30038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30039 | (exit $ac_status); } && | |
4d4ff94c | 30040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30042 | (eval $ac_try) 2>&5 | |
30043 | ac_status=$? | |
30044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30045 | (exit $ac_status); }; } && | |
30046 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30048 | (eval $ac_try) 2>&5 | |
30049 | ac_status=$? | |
30050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30051 | (exit $ac_status); }; }; then | |
30052 | eval "$as_ac_var=yes" | |
30053 | else | |
30054 | echo "$as_me: failed program was:" >&5 | |
30055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30056 | ||
30057 | eval "$as_ac_var=no" | |
30058 | fi | |
ac1cb8d3 VS |
30059 | rm -f conftest.err conftest.$ac_objext \ |
30060 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30061 | fi |
30062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30064 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30065 | cat >>confdefs.h <<_ACEOF | |
30066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30067 | _ACEOF | |
30068 | ||
30069 | fi | |
30070 | done | |
30071 | ||
30072 | ||
30073 | ||
30074 | ||
30075 | for ac_func in putenv setenv | |
30076 | do | |
30077 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30078 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30079 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30080 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30082 | else | |
30083 | cat >conftest.$ac_ext <<_ACEOF | |
30084 | /* confdefs.h. */ | |
30085 | _ACEOF | |
30086 | cat confdefs.h >>conftest.$ac_ext | |
30087 | cat >>conftest.$ac_ext <<_ACEOF | |
30088 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30089 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30091 | #define $ac_func innocuous_$ac_func | |
30092 | ||
a848cd7e SC |
30093 | /* System header to define __stub macros and hopefully few prototypes, |
30094 | which can conflict with char $ac_func (); below. | |
30095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30096 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30097 | |
a848cd7e SC |
30098 | #ifdef __STDC__ |
30099 | # include <limits.h> | |
30100 | #else | |
30101 | # include <assert.h> | |
30102 | #endif | |
ac1cb8d3 VS |
30103 | |
30104 | #undef $ac_func | |
30105 | ||
a848cd7e SC |
30106 | /* Override any gcc2 internal prototype to avoid an error. */ |
30107 | #ifdef __cplusplus | |
30108 | extern "C" | |
30109 | { | |
30110 | #endif | |
30111 | /* We use char because int might match the return type of a gcc2 | |
30112 | builtin and then its argument prototype would still apply. */ | |
30113 | char $ac_func (); | |
30114 | /* The GNU C library defines this for functions which it implements | |
30115 | to always fail with ENOSYS. Some functions are actually named | |
30116 | something starting with __ and the normal name is an alias. */ | |
30117 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30118 | choke me | |
30119 | #else | |
30120 | char (*f) () = $ac_func; | |
30121 | #endif | |
30122 | #ifdef __cplusplus | |
30123 | } | |
30124 | #endif | |
30125 | ||
30126 | int | |
30127 | main () | |
30128 | { | |
30129 | return f != $ac_func; | |
30130 | ; | |
30131 | return 0; | |
30132 | } | |
30133 | _ACEOF | |
30134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30137 | ac_status=$? |
ac1cb8d3 VS |
30138 | grep -v '^ *+' conftest.er1 >conftest.err |
30139 | rm -f conftest.er1 | |
30140 | cat conftest.err >&5 | |
a848cd7e SC |
30141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30142 | (exit $ac_status); } && | |
4d4ff94c | 30143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30145 | (eval $ac_try) 2>&5 | |
30146 | ac_status=$? | |
30147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30148 | (exit $ac_status); }; } && | |
30149 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30151 | (eval $ac_try) 2>&5 | |
30152 | ac_status=$? | |
30153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30154 | (exit $ac_status); }; }; then | |
30155 | eval "$as_ac_var=yes" | |
30156 | else | |
30157 | echo "$as_me: failed program was:" >&5 | |
30158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30159 | ||
30160 | eval "$as_ac_var=no" | |
30161 | fi | |
ac1cb8d3 VS |
30162 | rm -f conftest.err conftest.$ac_objext \ |
30163 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30164 | fi |
30165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30166 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30167 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30168 | cat >>confdefs.h <<_ACEOF | |
30169 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30170 | _ACEOF | |
30171 | break | |
30172 | fi | |
30173 | done | |
30174 | ||
30175 | ||
30176 | HAVE_SOME_SLEEP_FUNC=0 | |
30177 | if test "$USE_BEOS" = 1; then | |
30178 | cat >>confdefs.h <<\_ACEOF | |
30179 | #define HAVE_SLEEP 1 | |
30180 | _ACEOF | |
30181 | ||
30182 | HAVE_SOME_SLEEP_FUNC=1 | |
30183 | fi | |
30184 | ||
30185 | if test "$USE_DARWIN" = 1; then | |
30186 | cat >>confdefs.h <<\_ACEOF | |
30187 | #define HAVE_USLEEP 1 | |
30188 | _ACEOF | |
30189 | ||
30190 | HAVE_SOME_SLEEP_FUNC=1 | |
30191 | fi | |
30192 | ||
30193 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30194 | POSIX4_LINK= | |
30195 | ||
30196 | for ac_func in nanosleep | |
30197 | do | |
30198 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30199 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30200 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30201 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30203 | else | |
30204 | cat >conftest.$ac_ext <<_ACEOF | |
30205 | /* confdefs.h. */ | |
30206 | _ACEOF | |
30207 | cat confdefs.h >>conftest.$ac_ext | |
30208 | cat >>conftest.$ac_ext <<_ACEOF | |
30209 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30210 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30211 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30212 | #define $ac_func innocuous_$ac_func | |
30213 | ||
a848cd7e SC |
30214 | /* System header to define __stub macros and hopefully few prototypes, |
30215 | which can conflict with char $ac_func (); below. | |
30216 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30217 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30218 | |
a848cd7e SC |
30219 | #ifdef __STDC__ |
30220 | # include <limits.h> | |
30221 | #else | |
30222 | # include <assert.h> | |
30223 | #endif | |
ac1cb8d3 VS |
30224 | |
30225 | #undef $ac_func | |
30226 | ||
a848cd7e SC |
30227 | /* Override any gcc2 internal prototype to avoid an error. */ |
30228 | #ifdef __cplusplus | |
30229 | extern "C" | |
30230 | { | |
30231 | #endif | |
30232 | /* We use char because int might match the return type of a gcc2 | |
30233 | builtin and then its argument prototype would still apply. */ | |
30234 | char $ac_func (); | |
30235 | /* The GNU C library defines this for functions which it implements | |
30236 | to always fail with ENOSYS. Some functions are actually named | |
30237 | something starting with __ and the normal name is an alias. */ | |
30238 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30239 | choke me | |
30240 | #else | |
30241 | char (*f) () = $ac_func; | |
30242 | #endif | |
30243 | #ifdef __cplusplus | |
30244 | } | |
30245 | #endif | |
30246 | ||
30247 | int | |
30248 | main () | |
30249 | { | |
30250 | return f != $ac_func; | |
30251 | ; | |
30252 | return 0; | |
30253 | } | |
30254 | _ACEOF | |
30255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30257 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30258 | ac_status=$? |
ac1cb8d3 VS |
30259 | grep -v '^ *+' conftest.er1 >conftest.err |
30260 | rm -f conftest.er1 | |
30261 | cat conftest.err >&5 | |
a848cd7e SC |
30262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30263 | (exit $ac_status); } && | |
4d4ff94c | 30264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30266 | (eval $ac_try) 2>&5 | |
30267 | ac_status=$? | |
30268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30269 | (exit $ac_status); }; } && | |
30270 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30272 | (eval $ac_try) 2>&5 | |
30273 | ac_status=$? | |
30274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30275 | (exit $ac_status); }; }; then | |
30276 | eval "$as_ac_var=yes" | |
30277 | else | |
30278 | echo "$as_me: failed program was:" >&5 | |
30279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30280 | ||
30281 | eval "$as_ac_var=no" | |
30282 | fi | |
ac1cb8d3 VS |
30283 | rm -f conftest.err conftest.$ac_objext \ |
30284 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30285 | fi |
30286 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30287 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30288 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30289 | cat >>confdefs.h <<_ACEOF | |
30290 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30291 | _ACEOF | |
30292 | cat >>confdefs.h <<\_ACEOF | |
30293 | #define HAVE_NANOSLEEP 1 | |
30294 | _ACEOF | |
30295 | ||
30296 | else | |
30297 | ||
30298 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30299 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30300 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30302 | else | |
30303 | ac_check_lib_save_LIBS=$LIBS | |
30304 | LIBS="-lposix4 $LIBS" | |
30305 | cat >conftest.$ac_ext <<_ACEOF | |
30306 | /* confdefs.h. */ | |
30307 | _ACEOF | |
30308 | cat confdefs.h >>conftest.$ac_ext | |
30309 | cat >>conftest.$ac_ext <<_ACEOF | |
30310 | /* end confdefs.h. */ | |
30311 | ||
30312 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30313 | #ifdef __cplusplus | |
30314 | extern "C" | |
30315 | #endif | |
30316 | /* We use char because int might match the return type of a gcc2 | |
30317 | builtin and then its argument prototype would still apply. */ | |
30318 | char nanosleep (); | |
30319 | int | |
30320 | main () | |
30321 | { | |
30322 | nanosleep (); | |
30323 | ; | |
30324 | return 0; | |
30325 | } | |
30326 | _ACEOF | |
30327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30329 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30330 | ac_status=$? |
ac1cb8d3 VS |
30331 | grep -v '^ *+' conftest.er1 >conftest.err |
30332 | rm -f conftest.er1 | |
30333 | cat conftest.err >&5 | |
a848cd7e SC |
30334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30335 | (exit $ac_status); } && | |
4d4ff94c | 30336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30338 | (eval $ac_try) 2>&5 | |
30339 | ac_status=$? | |
30340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30341 | (exit $ac_status); }; } && | |
30342 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30344 | (eval $ac_try) 2>&5 | |
30345 | ac_status=$? | |
30346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30347 | (exit $ac_status); }; }; then | |
30348 | ac_cv_lib_posix4_nanosleep=yes | |
30349 | else | |
30350 | echo "$as_me: failed program was:" >&5 | |
30351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30352 | ||
30353 | ac_cv_lib_posix4_nanosleep=no | |
30354 | fi | |
ac1cb8d3 VS |
30355 | rm -f conftest.err conftest.$ac_objext \ |
30356 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30357 | LIBS=$ac_check_lib_save_LIBS |
30358 | fi | |
30359 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30360 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30361 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30362 | ||
30363 | cat >>confdefs.h <<\_ACEOF | |
30364 | #define HAVE_NANOSLEEP 1 | |
30365 | _ACEOF | |
30366 | ||
30367 | POSIX4_LINK=" -lposix4" | |
30368 | ||
30369 | else | |
30370 | ||
30371 | ||
30372 | for ac_func in usleep | |
30373 | do | |
30374 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30375 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30376 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30377 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30379 | else | |
30380 | cat >conftest.$ac_ext <<_ACEOF | |
30381 | /* confdefs.h. */ | |
30382 | _ACEOF | |
30383 | cat confdefs.h >>conftest.$ac_ext | |
30384 | cat >>conftest.$ac_ext <<_ACEOF | |
30385 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30386 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30387 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30388 | #define $ac_func innocuous_$ac_func | |
30389 | ||
a848cd7e SC |
30390 | /* System header to define __stub macros and hopefully few prototypes, |
30391 | which can conflict with char $ac_func (); below. | |
30392 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30393 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30394 | |
a848cd7e SC |
30395 | #ifdef __STDC__ |
30396 | # include <limits.h> | |
30397 | #else | |
30398 | # include <assert.h> | |
30399 | #endif | |
ac1cb8d3 VS |
30400 | |
30401 | #undef $ac_func | |
30402 | ||
a848cd7e SC |
30403 | /* Override any gcc2 internal prototype to avoid an error. */ |
30404 | #ifdef __cplusplus | |
30405 | extern "C" | |
30406 | { | |
30407 | #endif | |
30408 | /* We use char because int might match the return type of a gcc2 | |
30409 | builtin and then its argument prototype would still apply. */ | |
30410 | char $ac_func (); | |
30411 | /* The GNU C library defines this for functions which it implements | |
30412 | to always fail with ENOSYS. Some functions are actually named | |
30413 | something starting with __ and the normal name is an alias. */ | |
30414 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30415 | choke me | |
30416 | #else | |
30417 | char (*f) () = $ac_func; | |
30418 | #endif | |
30419 | #ifdef __cplusplus | |
30420 | } | |
30421 | #endif | |
30422 | ||
30423 | int | |
30424 | main () | |
30425 | { | |
30426 | return f != $ac_func; | |
30427 | ; | |
30428 | return 0; | |
30429 | } | |
30430 | _ACEOF | |
30431 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30433 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30434 | ac_status=$? |
ac1cb8d3 VS |
30435 | grep -v '^ *+' conftest.er1 >conftest.err |
30436 | rm -f conftest.er1 | |
30437 | cat conftest.err >&5 | |
a848cd7e SC |
30438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30439 | (exit $ac_status); } && | |
4d4ff94c | 30440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30442 | (eval $ac_try) 2>&5 | |
30443 | ac_status=$? | |
30444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30445 | (exit $ac_status); }; } && | |
30446 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30448 | (eval $ac_try) 2>&5 | |
30449 | ac_status=$? | |
30450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30451 | (exit $ac_status); }; }; then | |
30452 | eval "$as_ac_var=yes" | |
30453 | else | |
30454 | echo "$as_me: failed program was:" >&5 | |
30455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30456 | ||
30457 | eval "$as_ac_var=no" | |
30458 | fi | |
ac1cb8d3 VS |
30459 | rm -f conftest.err conftest.$ac_objext \ |
30460 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30461 | fi |
30462 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30463 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30464 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30465 | cat >>confdefs.h <<_ACEOF | |
30466 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30467 | _ACEOF | |
30468 | cat >>confdefs.h <<\_ACEOF | |
30469 | #define HAVE_USLEEP 1 | |
30470 | _ACEOF | |
30471 | ||
30472 | else | |
30473 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30474 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30475 | ||
30476 | fi | |
30477 | done | |
30478 | ||
30479 | ||
30480 | ||
30481 | fi | |
30482 | ||
30483 | ||
30484 | ||
30485 | fi | |
30486 | done | |
30487 | ||
30488 | fi | |
30489 | ||
30490 | ||
30491 | ||
30492 | for ac_func in uname gethostname | |
30493 | do | |
30494 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30495 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30496 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30497 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30499 | else | |
30500 | cat >conftest.$ac_ext <<_ACEOF | |
30501 | /* confdefs.h. */ | |
30502 | _ACEOF | |
30503 | cat confdefs.h >>conftest.$ac_ext | |
30504 | cat >>conftest.$ac_ext <<_ACEOF | |
30505 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30506 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30507 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30508 | #define $ac_func innocuous_$ac_func | |
30509 | ||
a848cd7e SC |
30510 | /* System header to define __stub macros and hopefully few prototypes, |
30511 | which can conflict with char $ac_func (); below. | |
30512 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30513 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30514 | |
a848cd7e SC |
30515 | #ifdef __STDC__ |
30516 | # include <limits.h> | |
30517 | #else | |
30518 | # include <assert.h> | |
30519 | #endif | |
ac1cb8d3 VS |
30520 | |
30521 | #undef $ac_func | |
30522 | ||
a848cd7e SC |
30523 | /* Override any gcc2 internal prototype to avoid an error. */ |
30524 | #ifdef __cplusplus | |
30525 | extern "C" | |
30526 | { | |
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 $ac_func (); | |
30531 | /* The GNU C library defines this for functions which it implements | |
30532 | to always fail with ENOSYS. Some functions are actually named | |
30533 | something starting with __ and the normal name is an alias. */ | |
30534 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30535 | choke me | |
30536 | #else | |
30537 | char (*f) () = $ac_func; | |
30538 | #endif | |
30539 | #ifdef __cplusplus | |
30540 | } | |
30541 | #endif | |
30542 | ||
30543 | int | |
30544 | main () | |
30545 | { | |
30546 | return f != $ac_func; | |
30547 | ; | |
30548 | return 0; | |
30549 | } | |
30550 | _ACEOF | |
30551 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30553 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30554 | ac_status=$? |
ac1cb8d3 VS |
30555 | grep -v '^ *+' conftest.er1 >conftest.err |
30556 | rm -f conftest.er1 | |
30557 | cat conftest.err >&5 | |
a848cd7e SC |
30558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30559 | (exit $ac_status); } && | |
4d4ff94c | 30560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30562 | (eval $ac_try) 2>&5 | |
30563 | ac_status=$? | |
30564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30565 | (exit $ac_status); }; } && | |
30566 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30568 | (eval $ac_try) 2>&5 | |
30569 | ac_status=$? | |
30570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30571 | (exit $ac_status); }; }; then | |
30572 | eval "$as_ac_var=yes" | |
30573 | else | |
30574 | echo "$as_me: failed program was:" >&5 | |
30575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30576 | ||
30577 | eval "$as_ac_var=no" | |
30578 | fi | |
ac1cb8d3 VS |
30579 | rm -f conftest.err conftest.$ac_objext \ |
30580 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30581 | fi |
30582 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30583 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30584 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30585 | cat >>confdefs.h <<_ACEOF | |
30586 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30587 | _ACEOF | |
30588 | break | |
30589 | fi | |
30590 | done | |
30591 | ||
30592 | ||
30593 | ||
30594 | ||
30595 | ac_ext=cc | |
30596 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30597 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30598 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30599 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30600 | ||
30601 | ||
30602 | ||
30603 | for ac_func in strtok_r | |
30604 | do | |
30605 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30606 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30607 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30608 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30610 | else | |
30611 | cat >conftest.$ac_ext <<_ACEOF | |
30612 | /* confdefs.h. */ | |
30613 | _ACEOF | |
30614 | cat confdefs.h >>conftest.$ac_ext | |
30615 | cat >>conftest.$ac_ext <<_ACEOF | |
30616 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30617 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30618 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30619 | #define $ac_func innocuous_$ac_func | |
30620 | ||
a848cd7e SC |
30621 | /* System header to define __stub macros and hopefully few prototypes, |
30622 | which can conflict with char $ac_func (); below. | |
30623 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30624 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30625 | |
a848cd7e SC |
30626 | #ifdef __STDC__ |
30627 | # include <limits.h> | |
30628 | #else | |
30629 | # include <assert.h> | |
30630 | #endif | |
ac1cb8d3 VS |
30631 | |
30632 | #undef $ac_func | |
30633 | ||
a848cd7e SC |
30634 | /* Override any gcc2 internal prototype to avoid an error. */ |
30635 | #ifdef __cplusplus | |
30636 | extern "C" | |
30637 | { | |
30638 | #endif | |
30639 | /* We use char because int might match the return type of a gcc2 | |
30640 | builtin and then its argument prototype would still apply. */ | |
30641 | char $ac_func (); | |
30642 | /* The GNU C library defines this for functions which it implements | |
30643 | to always fail with ENOSYS. Some functions are actually named | |
30644 | something starting with __ and the normal name is an alias. */ | |
30645 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30646 | choke me | |
30647 | #else | |
30648 | char (*f) () = $ac_func; | |
30649 | #endif | |
30650 | #ifdef __cplusplus | |
30651 | } | |
30652 | #endif | |
30653 | ||
30654 | int | |
30655 | main () | |
30656 | { | |
30657 | return f != $ac_func; | |
30658 | ; | |
30659 | return 0; | |
30660 | } | |
30661 | _ACEOF | |
30662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30664 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30665 | ac_status=$? |
ac1cb8d3 VS |
30666 | grep -v '^ *+' conftest.er1 >conftest.err |
30667 | rm -f conftest.er1 | |
30668 | cat conftest.err >&5 | |
a848cd7e SC |
30669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30670 | (exit $ac_status); } && | |
4d4ff94c | 30671 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30673 | (eval $ac_try) 2>&5 | |
30674 | ac_status=$? | |
30675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30676 | (exit $ac_status); }; } && | |
30677 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30679 | (eval $ac_try) 2>&5 | |
30680 | ac_status=$? | |
30681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30682 | (exit $ac_status); }; }; then | |
30683 | eval "$as_ac_var=yes" | |
30684 | else | |
30685 | echo "$as_me: failed program was:" >&5 | |
30686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30687 | ||
30688 | eval "$as_ac_var=no" | |
30689 | fi | |
ac1cb8d3 VS |
30690 | rm -f conftest.err conftest.$ac_objext \ |
30691 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30692 | fi |
30693 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30694 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30695 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30696 | cat >>confdefs.h <<_ACEOF | |
30697 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30698 | _ACEOF | |
30699 | ||
30700 | fi | |
30701 | done | |
30702 | ||
30703 | ||
30704 | ac_ext=c | |
30705 | ac_cpp='$CPP $CPPFLAGS' | |
30706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30709 | ||
30710 | ||
30711 | INET_LINK= | |
30712 | ||
30713 | for ac_func in inet_addr | |
30714 | do | |
30715 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30716 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30717 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30718 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30720 | else | |
30721 | cat >conftest.$ac_ext <<_ACEOF | |
30722 | /* confdefs.h. */ | |
30723 | _ACEOF | |
30724 | cat confdefs.h >>conftest.$ac_ext | |
30725 | cat >>conftest.$ac_ext <<_ACEOF | |
30726 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30727 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30728 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30729 | #define $ac_func innocuous_$ac_func | |
30730 | ||
a848cd7e SC |
30731 | /* System header to define __stub macros and hopefully few prototypes, |
30732 | which can conflict with char $ac_func (); below. | |
30733 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30734 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30735 | |
a848cd7e SC |
30736 | #ifdef __STDC__ |
30737 | # include <limits.h> | |
30738 | #else | |
30739 | # include <assert.h> | |
30740 | #endif | |
ac1cb8d3 VS |
30741 | |
30742 | #undef $ac_func | |
30743 | ||
a848cd7e SC |
30744 | /* Override any gcc2 internal prototype to avoid an error. */ |
30745 | #ifdef __cplusplus | |
30746 | extern "C" | |
30747 | { | |
30748 | #endif | |
30749 | /* We use char because int might match the return type of a gcc2 | |
30750 | builtin and then its argument prototype would still apply. */ | |
30751 | char $ac_func (); | |
30752 | /* The GNU C library defines this for functions which it implements | |
30753 | to always fail with ENOSYS. Some functions are actually named | |
30754 | something starting with __ and the normal name is an alias. */ | |
30755 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30756 | choke me | |
30757 | #else | |
30758 | char (*f) () = $ac_func; | |
30759 | #endif | |
30760 | #ifdef __cplusplus | |
30761 | } | |
30762 | #endif | |
30763 | ||
30764 | int | |
30765 | main () | |
30766 | { | |
30767 | return f != $ac_func; | |
30768 | ; | |
30769 | return 0; | |
30770 | } | |
30771 | _ACEOF | |
30772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30774 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30775 | ac_status=$? |
ac1cb8d3 VS |
30776 | grep -v '^ *+' conftest.er1 >conftest.err |
30777 | rm -f conftest.er1 | |
30778 | cat conftest.err >&5 | |
a848cd7e SC |
30779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30780 | (exit $ac_status); } && | |
4d4ff94c | 30781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
30787 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30789 | (eval $ac_try) 2>&5 | |
30790 | ac_status=$? | |
30791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30792 | (exit $ac_status); }; }; then | |
30793 | eval "$as_ac_var=yes" | |
30794 | else | |
30795 | echo "$as_me: failed program was:" >&5 | |
30796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30797 | ||
30798 | eval "$as_ac_var=no" | |
30799 | fi | |
ac1cb8d3 VS |
30800 | rm -f conftest.err conftest.$ac_objext \ |
30801 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30802 | fi |
30803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30804 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30805 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30806 | cat >>confdefs.h <<_ACEOF | |
30807 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30808 | _ACEOF | |
30809 | cat >>confdefs.h <<\_ACEOF | |
30810 | #define HAVE_INET_ADDR 1 | |
30811 | _ACEOF | |
30812 | ||
30813 | else | |
30814 | ||
30815 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
30816 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
30817 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
30818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30819 | else | |
30820 | ac_check_lib_save_LIBS=$LIBS | |
30821 | LIBS="-lnsl $LIBS" | |
30822 | cat >conftest.$ac_ext <<_ACEOF | |
30823 | /* confdefs.h. */ | |
30824 | _ACEOF | |
30825 | cat confdefs.h >>conftest.$ac_ext | |
30826 | cat >>conftest.$ac_ext <<_ACEOF | |
30827 | /* end confdefs.h. */ | |
30828 | ||
30829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30830 | #ifdef __cplusplus | |
30831 | extern "C" | |
30832 | #endif | |
30833 | /* We use char because int might match the return type of a gcc2 | |
30834 | builtin and then its argument prototype would still apply. */ | |
30835 | char inet_addr (); | |
30836 | int | |
30837 | main () | |
30838 | { | |
30839 | inet_addr (); | |
30840 | ; | |
30841 | return 0; | |
30842 | } | |
30843 | _ACEOF | |
30844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30846 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30847 | ac_status=$? |
ac1cb8d3 VS |
30848 | grep -v '^ *+' conftest.er1 >conftest.err |
30849 | rm -f conftest.er1 | |
30850 | cat conftest.err >&5 | |
a848cd7e SC |
30851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30852 | (exit $ac_status); } && | |
4d4ff94c | 30853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30855 | (eval $ac_try) 2>&5 | |
30856 | ac_status=$? | |
30857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30858 | (exit $ac_status); }; } && | |
30859 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30861 | (eval $ac_try) 2>&5 | |
30862 | ac_status=$? | |
30863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30864 | (exit $ac_status); }; }; then | |
30865 | ac_cv_lib_nsl_inet_addr=yes | |
30866 | else | |
30867 | echo "$as_me: failed program was:" >&5 | |
30868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30869 | ||
30870 | ac_cv_lib_nsl_inet_addr=no | |
30871 | fi | |
ac1cb8d3 VS |
30872 | rm -f conftest.err conftest.$ac_objext \ |
30873 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30874 | LIBS=$ac_check_lib_save_LIBS |
30875 | fi | |
30876 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
30877 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
30878 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
30879 | INET_LINK="nsl" | |
30880 | else | |
30881 | ||
30882 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
30883 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
30884 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
30885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30886 | else | |
30887 | ac_check_lib_save_LIBS=$LIBS | |
30888 | LIBS="-lresolv $LIBS" | |
30889 | cat >conftest.$ac_ext <<_ACEOF | |
30890 | /* confdefs.h. */ | |
30891 | _ACEOF | |
30892 | cat confdefs.h >>conftest.$ac_ext | |
30893 | cat >>conftest.$ac_ext <<_ACEOF | |
30894 | /* end confdefs.h. */ | |
30895 | ||
30896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30897 | #ifdef __cplusplus | |
30898 | extern "C" | |
30899 | #endif | |
30900 | /* We use char because int might match the return type of a gcc2 | |
30901 | builtin and then its argument prototype would still apply. */ | |
30902 | char inet_addr (); | |
30903 | int | |
30904 | main () | |
30905 | { | |
30906 | inet_addr (); | |
30907 | ; | |
30908 | return 0; | |
30909 | } | |
30910 | _ACEOF | |
30911 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30913 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30914 | ac_status=$? |
ac1cb8d3 VS |
30915 | grep -v '^ *+' conftest.er1 >conftest.err |
30916 | rm -f conftest.er1 | |
30917 | cat conftest.err >&5 | |
a848cd7e SC |
30918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30919 | (exit $ac_status); } && | |
4d4ff94c | 30920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30922 | (eval $ac_try) 2>&5 | |
30923 | ac_status=$? | |
30924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30925 | (exit $ac_status); }; } && | |
30926 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30928 | (eval $ac_try) 2>&5 | |
30929 | ac_status=$? | |
30930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30931 | (exit $ac_status); }; }; then | |
30932 | ac_cv_lib_resolv_inet_addr=yes | |
30933 | else | |
30934 | echo "$as_me: failed program was:" >&5 | |
30935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30936 | ||
30937 | ac_cv_lib_resolv_inet_addr=no | |
30938 | fi | |
ac1cb8d3 VS |
30939 | rm -f conftest.err conftest.$ac_objext \ |
30940 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30941 | LIBS=$ac_check_lib_save_LIBS |
30942 | fi | |
30943 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
30944 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
30945 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
30946 | INET_LINK="resolv" | |
30947 | else | |
30948 | ||
30949 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
30950 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
30951 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
30952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30953 | else | |
30954 | ac_check_lib_save_LIBS=$LIBS | |
30955 | LIBS="-lsocket $LIBS" | |
30956 | cat >conftest.$ac_ext <<_ACEOF | |
30957 | /* confdefs.h. */ | |
30958 | _ACEOF | |
30959 | cat confdefs.h >>conftest.$ac_ext | |
30960 | cat >>conftest.$ac_ext <<_ACEOF | |
30961 | /* end confdefs.h. */ | |
30962 | ||
30963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30964 | #ifdef __cplusplus | |
30965 | extern "C" | |
30966 | #endif | |
30967 | /* We use char because int might match the return type of a gcc2 | |
30968 | builtin and then its argument prototype would still apply. */ | |
30969 | char inet_addr (); | |
30970 | int | |
30971 | main () | |
30972 | { | |
30973 | inet_addr (); | |
30974 | ; | |
30975 | return 0; | |
30976 | } | |
30977 | _ACEOF | |
30978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30980 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30981 | ac_status=$? |
ac1cb8d3 VS |
30982 | grep -v '^ *+' conftest.er1 >conftest.err |
30983 | rm -f conftest.er1 | |
30984 | cat conftest.err >&5 | |
a848cd7e SC |
30985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30986 | (exit $ac_status); } && | |
4d4ff94c | 30987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30989 | (eval $ac_try) 2>&5 | |
30990 | ac_status=$? | |
30991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30992 | (exit $ac_status); }; } && | |
30993 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30995 | (eval $ac_try) 2>&5 | |
30996 | ac_status=$? | |
30997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30998 | (exit $ac_status); }; }; then | |
30999 | ac_cv_lib_socket_inet_addr=yes | |
31000 | else | |
31001 | echo "$as_me: failed program was:" >&5 | |
31002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31003 | ||
31004 | ac_cv_lib_socket_inet_addr=no | |
31005 | fi | |
ac1cb8d3 VS |
31006 | rm -f conftest.err conftest.$ac_objext \ |
31007 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31008 | LIBS=$ac_check_lib_save_LIBS |
31009 | fi | |
31010 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31011 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31012 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31013 | INET_LINK="socket" | |
31014 | ||
31015 | fi | |
31016 | ||
31017 | ||
31018 | ||
31019 | fi | |
31020 | ||
31021 | ||
31022 | ||
31023 | fi | |
31024 | ||
31025 | ||
31026 | ||
31027 | fi | |
31028 | done | |
31029 | ||
31030 | ||
31031 | ||
31032 | for ac_func in inet_aton | |
31033 | do | |
31034 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31035 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31036 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31037 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31039 | else | |
31040 | cat >conftest.$ac_ext <<_ACEOF | |
31041 | /* confdefs.h. */ | |
31042 | _ACEOF | |
31043 | cat confdefs.h >>conftest.$ac_ext | |
31044 | cat >>conftest.$ac_ext <<_ACEOF | |
31045 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31046 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31047 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31048 | #define $ac_func innocuous_$ac_func | |
31049 | ||
a848cd7e SC |
31050 | /* System header to define __stub macros and hopefully few prototypes, |
31051 | which can conflict with char $ac_func (); below. | |
31052 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31053 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31054 | |
a848cd7e SC |
31055 | #ifdef __STDC__ |
31056 | # include <limits.h> | |
31057 | #else | |
31058 | # include <assert.h> | |
31059 | #endif | |
ac1cb8d3 VS |
31060 | |
31061 | #undef $ac_func | |
31062 | ||
a848cd7e SC |
31063 | /* Override any gcc2 internal prototype to avoid an error. */ |
31064 | #ifdef __cplusplus | |
31065 | extern "C" | |
31066 | { | |
31067 | #endif | |
31068 | /* We use char because int might match the return type of a gcc2 | |
31069 | builtin and then its argument prototype would still apply. */ | |
31070 | char $ac_func (); | |
31071 | /* The GNU C library defines this for functions which it implements | |
31072 | to always fail with ENOSYS. Some functions are actually named | |
31073 | something starting with __ and the normal name is an alias. */ | |
31074 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31075 | choke me | |
31076 | #else | |
31077 | char (*f) () = $ac_func; | |
31078 | #endif | |
31079 | #ifdef __cplusplus | |
31080 | } | |
31081 | #endif | |
31082 | ||
31083 | int | |
31084 | main () | |
31085 | { | |
31086 | return f != $ac_func; | |
31087 | ; | |
31088 | return 0; | |
31089 | } | |
31090 | _ACEOF | |
31091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31093 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31094 | ac_status=$? |
ac1cb8d3 VS |
31095 | grep -v '^ *+' conftest.er1 >conftest.err |
31096 | rm -f conftest.er1 | |
31097 | cat conftest.err >&5 | |
a848cd7e SC |
31098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31099 | (exit $ac_status); } && | |
4d4ff94c | 31100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31102 | (eval $ac_try) 2>&5 | |
31103 | ac_status=$? | |
31104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31105 | (exit $ac_status); }; } && | |
31106 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31108 | (eval $ac_try) 2>&5 | |
31109 | ac_status=$? | |
31110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31111 | (exit $ac_status); }; }; then | |
31112 | eval "$as_ac_var=yes" | |
31113 | else | |
31114 | echo "$as_me: failed program was:" >&5 | |
31115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31116 | ||
31117 | eval "$as_ac_var=no" | |
31118 | fi | |
ac1cb8d3 VS |
31119 | rm -f conftest.err conftest.$ac_objext \ |
31120 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31121 | fi |
31122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31123 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31124 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31125 | cat >>confdefs.h <<_ACEOF | |
31126 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31127 | _ACEOF | |
31128 | cat >>confdefs.h <<\_ACEOF | |
31129 | #define HAVE_INET_ATON 1 | |
31130 | _ACEOF | |
31131 | ||
31132 | else | |
31133 | ||
31134 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31135 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31136 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31137 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31139 | else | |
31140 | ac_check_lib_save_LIBS=$LIBS | |
31141 | LIBS="-l$INET_LINK $LIBS" | |
31142 | cat >conftest.$ac_ext <<_ACEOF | |
31143 | /* confdefs.h. */ | |
31144 | _ACEOF | |
31145 | cat confdefs.h >>conftest.$ac_ext | |
31146 | cat >>conftest.$ac_ext <<_ACEOF | |
31147 | /* end confdefs.h. */ | |
31148 | ||
31149 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31150 | #ifdef __cplusplus | |
31151 | extern "C" | |
31152 | #endif | |
31153 | /* We use char because int might match the return type of a gcc2 | |
31154 | builtin and then its argument prototype would still apply. */ | |
31155 | char inet_aton (); | |
31156 | int | |
31157 | main () | |
31158 | { | |
31159 | inet_aton (); | |
31160 | ; | |
31161 | return 0; | |
31162 | } | |
31163 | _ACEOF | |
31164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31166 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31167 | ac_status=$? |
ac1cb8d3 VS |
31168 | grep -v '^ *+' conftest.er1 >conftest.err |
31169 | rm -f conftest.er1 | |
31170 | cat conftest.err >&5 | |
a848cd7e SC |
31171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31172 | (exit $ac_status); } && | |
4d4ff94c | 31173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31175 | (eval $ac_try) 2>&5 | |
31176 | ac_status=$? | |
31177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31178 | (exit $ac_status); }; } && | |
31179 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31181 | (eval $ac_try) 2>&5 | |
31182 | ac_status=$? | |
31183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31184 | (exit $ac_status); }; }; then | |
31185 | eval "$as_ac_Lib=yes" | |
31186 | else | |
31187 | echo "$as_me: failed program was:" >&5 | |
31188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31189 | ||
31190 | eval "$as_ac_Lib=no" | |
31191 | fi | |
ac1cb8d3 VS |
31192 | rm -f conftest.err conftest.$ac_objext \ |
31193 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31194 | LIBS=$ac_check_lib_save_LIBS |
31195 | fi | |
31196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31197 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31198 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31199 | cat >>confdefs.h <<\_ACEOF | |
31200 | #define HAVE_INET_ATON 1 | |
31201 | _ACEOF | |
31202 | ||
31203 | fi | |
31204 | ||
31205 | ||
31206 | fi | |
31207 | done | |
31208 | ||
31209 | ||
31210 | if test "x$INET_LINK" != "x"; then | |
31211 | cat >>confdefs.h <<\_ACEOF | |
31212 | #define HAVE_INET_ADDR 1 | |
31213 | _ACEOF | |
31214 | ||
31215 | INET_LINK=" -l$INET_LINK" | |
31216 | fi | |
31217 | ||
31218 | fi | |
31219 | ||
31220 | ||
31221 | ||
31222 | EXTRALIBS_ESD= | |
31223 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31224 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31225 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31227 | else | |
31228 | ac_check_lib_save_LIBS=$LIBS | |
31229 | LIBS="-lesd $LIBS" | |
31230 | cat >conftest.$ac_ext <<_ACEOF | |
31231 | /* confdefs.h. */ | |
31232 | _ACEOF | |
31233 | cat confdefs.h >>conftest.$ac_ext | |
31234 | cat >>conftest.$ac_ext <<_ACEOF | |
31235 | /* end confdefs.h. */ | |
31236 | ||
31237 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31238 | #ifdef __cplusplus | |
31239 | extern "C" | |
31240 | #endif | |
31241 | /* We use char because int might match the return type of a gcc2 | |
31242 | builtin and then its argument prototype would still apply. */ | |
31243 | char esd_close (); | |
31244 | int | |
31245 | main () | |
31246 | { | |
31247 | esd_close (); | |
31248 | ; | |
31249 | return 0; | |
31250 | } | |
31251 | _ACEOF | |
31252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31254 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31255 | ac_status=$? |
ac1cb8d3 VS |
31256 | grep -v '^ *+' conftest.er1 >conftest.err |
31257 | rm -f conftest.er1 | |
31258 | cat conftest.err >&5 | |
a848cd7e SC |
31259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31260 | (exit $ac_status); } && | |
4d4ff94c | 31261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31263 | (eval $ac_try) 2>&5 | |
31264 | ac_status=$? | |
31265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31266 | (exit $ac_status); }; } && | |
31267 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31269 | (eval $ac_try) 2>&5 | |
31270 | ac_status=$? | |
31271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31272 | (exit $ac_status); }; }; then | |
31273 | ac_cv_lib_esd_esd_close=yes | |
31274 | else | |
31275 | echo "$as_me: failed program was:" >&5 | |
31276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31277 | ||
31278 | ac_cv_lib_esd_esd_close=no | |
31279 | fi | |
ac1cb8d3 VS |
31280 | rm -f conftest.err conftest.$ac_objext \ |
31281 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31282 | LIBS=$ac_check_lib_save_LIBS |
31283 | fi | |
31284 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31285 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31286 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31287 | ||
31288 | ||
31289 | for ac_header in esd.h | |
31290 | do | |
31291 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31292 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31293 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31297 | fi | |
31298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31299 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31300 | else | |
31301 | # Is the header compilable? | |
31302 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31303 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31304 | cat >conftest.$ac_ext <<_ACEOF | |
31305 | /* confdefs.h. */ | |
31306 | _ACEOF | |
31307 | cat confdefs.h >>conftest.$ac_ext | |
31308 | cat >>conftest.$ac_ext <<_ACEOF | |
31309 | /* end confdefs.h. */ | |
31310 | $ac_includes_default | |
31311 | #include <$ac_header> | |
31312 | _ACEOF | |
31313 | rm -f conftest.$ac_objext | |
31314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31315 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31316 | ac_status=$? |
ac1cb8d3 VS |
31317 | grep -v '^ *+' conftest.er1 >conftest.err |
31318 | rm -f conftest.er1 | |
31319 | cat conftest.err >&5 | |
a848cd7e SC |
31320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31321 | (exit $ac_status); } && | |
4d4ff94c | 31322 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31324 | (eval $ac_try) 2>&5 | |
31325 | ac_status=$? | |
31326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31327 | (exit $ac_status); }; } && | |
31328 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31330 | (eval $ac_try) 2>&5 | |
31331 | ac_status=$? | |
31332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31333 | (exit $ac_status); }; }; then | |
31334 | ac_header_compiler=yes | |
31335 | else | |
31336 | echo "$as_me: failed program was:" >&5 | |
31337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31338 | ||
31339 | ac_header_compiler=no | |
31340 | fi | |
ac1cb8d3 | 31341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31342 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31343 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31344 | ||
31345 | # Is the header present? | |
31346 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31347 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31348 | cat >conftest.$ac_ext <<_ACEOF | |
31349 | /* confdefs.h. */ | |
31350 | _ACEOF | |
31351 | cat confdefs.h >>conftest.$ac_ext | |
31352 | cat >>conftest.$ac_ext <<_ACEOF | |
31353 | /* end confdefs.h. */ | |
31354 | #include <$ac_header> | |
31355 | _ACEOF | |
31356 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31357 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31358 | ac_status=$? | |
31359 | grep -v '^ *+' conftest.er1 >conftest.err | |
31360 | rm -f conftest.er1 | |
31361 | cat conftest.err >&5 | |
31362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31363 | (exit $ac_status); } >/dev/null; then | |
31364 | if test -s conftest.err; then | |
31365 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31366 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31367 | else |
31368 | ac_cpp_err= | |
31369 | fi | |
31370 | else | |
31371 | ac_cpp_err=yes | |
31372 | fi | |
31373 | if test -z "$ac_cpp_err"; then | |
31374 | ac_header_preproc=yes | |
31375 | else | |
31376 | echo "$as_me: failed program was:" >&5 | |
31377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31378 | ||
31379 | ac_header_preproc=no | |
31380 | fi | |
31381 | rm -f conftest.err conftest.$ac_ext | |
31382 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31383 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31384 | ||
31385 | # So? What about this header? | |
ac1cb8d3 VS |
31386 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31387 | yes:no: ) | |
a848cd7e SC |
31388 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31389 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31390 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31391 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31392 | ac_header_preproc=yes | |
a848cd7e | 31393 | ;; |
ac1cb8d3 | 31394 | no:yes:* ) |
a848cd7e SC |
31395 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31396 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31397 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31398 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31399 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31400 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31401 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31402 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31404 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31405 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31406 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31407 | ( |
31408 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31409 | ## ----------------------------------------- ## |
31410 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31411 | ## ----------------------------------------- ## | |
a848cd7e SC |
31412 | _ASBOX |
31413 | ) | | |
31414 | sed "s/^/$as_me: WARNING: /" >&2 | |
31415 | ;; | |
31416 | esac | |
31417 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31421 | else | |
ac1cb8d3 | 31422 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31423 | fi |
31424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31426 | ||
31427 | fi | |
31428 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31429 | cat >>confdefs.h <<_ACEOF | |
31430 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31431 | _ACEOF | |
31432 | ||
31433 | EXTRALIBS_ESD="-lesd" | |
31434 | ||
31435 | fi | |
31436 | ||
31437 | done | |
31438 | ||
31439 | ||
31440 | fi | |
31441 | ||
31442 | ||
31443 | ||
31444 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31445 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31446 | cat >conftest.$ac_ext <<_ACEOF | |
31447 | /* confdefs.h. */ | |
31448 | _ACEOF | |
31449 | cat confdefs.h >>conftest.$ac_ext | |
31450 | cat >>conftest.$ac_ext <<_ACEOF | |
31451 | /* end confdefs.h. */ | |
31452 | #ifdef __linux__ | |
31453 | #include <linux/cdrom.h> | |
31454 | #else | |
31455 | /* For Solaris */ | |
31456 | #include <sys/cdio.h> | |
31457 | #endif | |
31458 | ||
31459 | int | |
31460 | main () | |
31461 | { | |
31462 | struct cdrom_tocentry entry, old_entry; | |
31463 | ; | |
31464 | return 0; | |
31465 | } | |
31466 | _ACEOF | |
31467 | rm -f conftest.$ac_objext | |
31468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31469 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31470 | ac_status=$? |
ac1cb8d3 VS |
31471 | grep -v '^ *+' conftest.er1 >conftest.err |
31472 | rm -f conftest.er1 | |
31473 | cat conftest.err >&5 | |
a848cd7e SC |
31474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31475 | (exit $ac_status); } && | |
4d4ff94c | 31476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31478 | (eval $ac_try) 2>&5 | |
31479 | ac_status=$? | |
31480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31481 | (exit $ac_status); }; } && | |
31482 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31484 | (eval $ac_try) 2>&5 | |
31485 | ac_status=$? | |
31486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31487 | (exit $ac_status); }; }; then | |
31488 | echo "$as_me:$LINENO: result: yes" >&5 | |
31489 | echo "${ECHO_T}yes" >&6 | |
31490 | cat >>confdefs.h <<\_ACEOF | |
31491 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31492 | _ACEOF | |
31493 | ||
31494 | else | |
31495 | echo "$as_me: failed program was:" >&5 | |
31496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31497 | ||
31498 | echo "$as_me:$LINENO: result: no" >&5 | |
31499 | echo "${ECHO_T}no" >&6 | |
31500 | fi | |
ac1cb8d3 | 31501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31502 | |
31503 | ||
31504 | cat >confcache <<\_ACEOF | |
31505 | # This file is a shell script that caches the results of configure | |
31506 | # tests run on this system so they can be shared between configure | |
31507 | # scripts and configure runs, see configure's option --config-cache. | |
31508 | # It is not useful on other systems. If it contains results you don't | |
31509 | # want to keep, you may remove or edit it. | |
31510 | # | |
31511 | # config.status only pays attention to the cache file if you give it | |
31512 | # the --recheck option to rerun configure. | |
31513 | # | |
31514 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31515 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31516 | # following values. | |
31517 | ||
31518 | _ACEOF | |
31519 | ||
31520 | # The following way of writing the cache mishandles newlines in values, | |
31521 | # but we know of no workaround that is simple, portable, and efficient. | |
31522 | # So, don't put newlines in cache variables' values. | |
31523 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31524 | # and sets the high bit in the cache file unless we assign to the vars. | |
31525 | { | |
31526 | (set) 2>&1 | | |
31527 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31528 | *ac_space=\ *) | |
31529 | # `set' does not quote correctly, so add quotes (double-quote | |
31530 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31531 | sed -n \ | |
ac1cb8d3 VS |
31532 | "s/'/'\\\\''/g; |
31533 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31534 | ;; |
31535 | *) | |
31536 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31537 | sed -n \ | |
ac1cb8d3 | 31538 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31539 | ;; |
31540 | esac; | |
31541 | } | | |
31542 | sed ' | |
31543 | t clear | |
31544 | : clear | |
31545 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31546 | t end | |
31547 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31548 | : end' >>confcache | |
31549 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31550 | if test -w $cache_file; then | |
31551 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31552 | cat confcache >$cache_file | |
31553 | else | |
31554 | echo "not updating unwritable cache $cache_file" | |
31555 | fi | |
31556 | fi | |
31557 | rm -f confcache | |
31558 | ||
31559 | ||
31560 | CPP_MT_FLAG= | |
31561 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31562 | ||
31563 | ||
31564 | THREADS_LINK= | |
31565 | THREADS_CFLAGS= | |
31566 | ||
31567 | if test "$wxUSE_THREADS" = "yes" ; then | |
31568 | if test "$USE_BEOS" = 1; then | |
31569 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
31570 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
31571 | wxUSE_THREADS="no" | |
31572 | fi | |
31573 | fi | |
31574 | ||
31575 | if test "$wxUSE_THREADS" = "yes" ; then | |
31576 | ||
31577 | ||
31578 | THREAD_OPTS="-pthread" | |
31579 | case "${host}" in | |
31580 | *-*-solaris2* | *-*-sunos4* ) | |
31581 | if test "x$GCC" = "xyes"; then | |
31582 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
31583 | else | |
31584 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31585 | fi | |
31586 | ;; | |
31587 | *-*-freebsd*) | |
31588 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31589 | ;; | |
31590 | *-*-darwin* | *-*-cygwin* ) | |
31591 | THREAD_OPTS="" | |
31592 | ;; | |
31593 | *-*-aix*) | |
31594 | THREAD_OPTS="pthreads" | |
31595 | ;; | |
31596 | *-hp-hpux* ) | |
31597 | if test "x$GCC" != "xyes"; then | |
31598 | THREAD_OPTS="" | |
31599 | fi | |
31600 | ;; | |
31601 | ||
31602 | *-*-irix* ) | |
31603 | if test "x$GCC" = "xyes"; then | |
31604 | THREAD_OPTS="" | |
31605 | fi | |
31606 | ;; | |
31607 | ||
31608 | *-*-*UnixWare*) | |
31609 | if test "x$GCC" != "xyes"; then | |
31610 | THREAD_OPTS="-Ethread" | |
31611 | fi | |
31612 | ;; | |
31613 | esac | |
31614 | ||
31615 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
31616 | ||
31617 | THREADS_OK=no | |
31618 | for flag in $THREAD_OPTS; do | |
31619 | case $flag in | |
31620 | none) | |
31621 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
31622 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
31623 | ;; | |
31624 | ||
31625 | -*) | |
31626 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
31627 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
31628 | THREADS_CFLAGS="$flag" | |
31629 | ;; | |
31630 | ||
31631 | *) | |
31632 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
31633 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
31634 | THREADS_LINK="-l$flag" | |
31635 | ;; | |
31636 | esac | |
31637 | ||
31638 | save_LIBS="$LIBS" | |
31639 | save_CFLAGS="$CFLAGS" | |
31640 | LIBS="$THREADS_LINK $LIBS" | |
31641 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
31642 | ||
31643 | cat >conftest.$ac_ext <<_ACEOF | |
31644 | /* confdefs.h. */ | |
31645 | _ACEOF | |
31646 | cat confdefs.h >>conftest.$ac_ext | |
31647 | cat >>conftest.$ac_ext <<_ACEOF | |
31648 | /* end confdefs.h. */ | |
31649 | #include <pthread.h> | |
31650 | int | |
31651 | main () | |
31652 | { | |
31653 | pthread_create(0,0,0,0); | |
31654 | ; | |
31655 | return 0; | |
31656 | } | |
31657 | _ACEOF | |
31658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31660 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31661 | ac_status=$? |
ac1cb8d3 VS |
31662 | grep -v '^ *+' conftest.er1 >conftest.err |
31663 | rm -f conftest.er1 | |
31664 | cat conftest.err >&5 | |
a848cd7e SC |
31665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31666 | (exit $ac_status); } && | |
4d4ff94c | 31667 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31669 | (eval $ac_try) 2>&5 | |
31670 | ac_status=$? | |
31671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31672 | (exit $ac_status); }; } && | |
31673 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31675 | (eval $ac_try) 2>&5 | |
31676 | ac_status=$? | |
31677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31678 | (exit $ac_status); }; }; then | |
31679 | THREADS_OK=yes | |
31680 | else | |
31681 | echo "$as_me: failed program was:" >&5 | |
31682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31683 | ||
31684 | fi | |
ac1cb8d3 VS |
31685 | rm -f conftest.err conftest.$ac_objext \ |
31686 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31687 | |
31688 | LIBS="$save_LIBS" | |
31689 | CFLAGS="$save_CFLAGS" | |
31690 | ||
31691 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
31692 | echo "${ECHO_T}$THREADS_OK" >&6 | |
31693 | if test "x$THREADS_OK" = "xyes"; then | |
31694 | break; | |
31695 | fi | |
31696 | ||
31697 | THREADS_LINK="" | |
31698 | THREADS_CFLAGS="" | |
31699 | done | |
31700 | ||
31701 | if test "x$THREADS_OK" != "xyes"; then | |
31702 | wxUSE_THREADS=no | |
31703 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
31704 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
31705 | else | |
31706 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
31707 | LIBS="$THREADS_LINK $LIBS" | |
31708 | ||
31709 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
31710 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
31711 | flag=no | |
31712 | case "${host}" in | |
31713 | *-aix*) | |
31714 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31715 | flag="-D_THREAD_SAFE" | |
31716 | ;; | |
31717 | *-freebsd*) | |
31718 | flag="-D_THREAD_SAFE" | |
31719 | ;; | |
31720 | *-hp-hpux* ) | |
31721 | flag="-D_REENTRANT" | |
31722 | if test "x$GCC" != "xyes"; then | |
31723 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
31724 | |
31725 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
31726 | fi |
31727 | ;; | |
31728 | *solaris* | alpha*-osf*) | |
31729 | flag="-D_REENTRANT" | |
31730 | ;; | |
31731 | esac | |
31732 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
31733 | echo "${ECHO_T}${flag}" >&6 | |
31734 | if test "x$flag" != xno; then | |
31735 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
31736 | fi | |
31737 | ||
31738 | if test "x$THREADS_CFLAGS" != "x"; then | |
31739 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
31740 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
31741 | fi | |
31742 | fi | |
31743 | fi | |
31744 | ||
31745 | if test "$wxUSE_THREADS" = "yes" ; then | |
31746 | ||
31747 | for ac_func in thr_setconcurrency | |
31748 | do | |
31749 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31750 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31751 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31752 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31754 | else | |
31755 | cat >conftest.$ac_ext <<_ACEOF | |
31756 | /* confdefs.h. */ | |
31757 | _ACEOF | |
31758 | cat confdefs.h >>conftest.$ac_ext | |
31759 | cat >>conftest.$ac_ext <<_ACEOF | |
31760 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31761 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31762 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31763 | #define $ac_func innocuous_$ac_func | |
31764 | ||
a848cd7e SC |
31765 | /* System header to define __stub macros and hopefully few prototypes, |
31766 | which can conflict with char $ac_func (); below. | |
31767 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31768 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31769 | |
a848cd7e SC |
31770 | #ifdef __STDC__ |
31771 | # include <limits.h> | |
31772 | #else | |
31773 | # include <assert.h> | |
31774 | #endif | |
ac1cb8d3 VS |
31775 | |
31776 | #undef $ac_func | |
31777 | ||
a848cd7e SC |
31778 | /* Override any gcc2 internal prototype to avoid an error. */ |
31779 | #ifdef __cplusplus | |
31780 | extern "C" | |
31781 | { | |
31782 | #endif | |
31783 | /* We use char because int might match the return type of a gcc2 | |
31784 | builtin and then its argument prototype would still apply. */ | |
31785 | char $ac_func (); | |
31786 | /* The GNU C library defines this for functions which it implements | |
31787 | to always fail with ENOSYS. Some functions are actually named | |
31788 | something starting with __ and the normal name is an alias. */ | |
31789 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31790 | choke me | |
31791 | #else | |
31792 | char (*f) () = $ac_func; | |
31793 | #endif | |
31794 | #ifdef __cplusplus | |
31795 | } | |
31796 | #endif | |
31797 | ||
31798 | int | |
31799 | main () | |
31800 | { | |
31801 | return f != $ac_func; | |
31802 | ; | |
31803 | return 0; | |
31804 | } | |
31805 | _ACEOF | |
31806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31808 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31809 | ac_status=$? |
ac1cb8d3 VS |
31810 | grep -v '^ *+' conftest.er1 >conftest.err |
31811 | rm -f conftest.er1 | |
31812 | cat conftest.err >&5 | |
a848cd7e SC |
31813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31814 | (exit $ac_status); } && | |
4d4ff94c | 31815 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31817 | (eval $ac_try) 2>&5 | |
31818 | ac_status=$? | |
31819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31820 | (exit $ac_status); }; } && | |
31821 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31823 | (eval $ac_try) 2>&5 | |
31824 | ac_status=$? | |
31825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31826 | (exit $ac_status); }; }; then | |
31827 | eval "$as_ac_var=yes" | |
31828 | else | |
31829 | echo "$as_me: failed program was:" >&5 | |
31830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31831 | ||
31832 | eval "$as_ac_var=no" | |
31833 | fi | |
ac1cb8d3 VS |
31834 | rm -f conftest.err conftest.$ac_objext \ |
31835 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31836 | fi |
31837 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31838 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31839 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31840 | cat >>confdefs.h <<_ACEOF | |
31841 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31842 | _ACEOF | |
31843 | ||
31844 | fi | |
31845 | done | |
31846 | ||
31847 | ||
31848 | ||
31849 | for ac_header in sched.h | |
31850 | do | |
31851 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31853 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31855 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31857 | fi | |
31858 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31859 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31860 | else | |
31861 | # Is the header compilable? | |
31862 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31863 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31864 | cat >conftest.$ac_ext <<_ACEOF | |
31865 | /* confdefs.h. */ | |
31866 | _ACEOF | |
31867 | cat confdefs.h >>conftest.$ac_ext | |
31868 | cat >>conftest.$ac_ext <<_ACEOF | |
31869 | /* end confdefs.h. */ | |
31870 | $ac_includes_default | |
31871 | #include <$ac_header> | |
31872 | _ACEOF | |
31873 | rm -f conftest.$ac_objext | |
31874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31876 | ac_status=$? |
ac1cb8d3 VS |
31877 | grep -v '^ *+' conftest.er1 >conftest.err |
31878 | rm -f conftest.er1 | |
31879 | cat conftest.err >&5 | |
a848cd7e SC |
31880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31881 | (exit $ac_status); } && | |
4d4ff94c | 31882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31884 | (eval $ac_try) 2>&5 | |
31885 | ac_status=$? | |
31886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31887 | (exit $ac_status); }; } && | |
31888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31890 | (eval $ac_try) 2>&5 | |
31891 | ac_status=$? | |
31892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31893 | (exit $ac_status); }; }; then | |
31894 | ac_header_compiler=yes | |
31895 | else | |
31896 | echo "$as_me: failed program was:" >&5 | |
31897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31898 | ||
31899 | ac_header_compiler=no | |
31900 | fi | |
ac1cb8d3 | 31901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31902 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31903 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31904 | ||
31905 | # Is the header present? | |
31906 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31907 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31908 | cat >conftest.$ac_ext <<_ACEOF | |
31909 | /* confdefs.h. */ | |
31910 | _ACEOF | |
31911 | cat confdefs.h >>conftest.$ac_ext | |
31912 | cat >>conftest.$ac_ext <<_ACEOF | |
31913 | /* end confdefs.h. */ | |
31914 | #include <$ac_header> | |
31915 | _ACEOF | |
31916 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31917 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31918 | ac_status=$? | |
31919 | grep -v '^ *+' conftest.er1 >conftest.err | |
31920 | rm -f conftest.er1 | |
31921 | cat conftest.err >&5 | |
31922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31923 | (exit $ac_status); } >/dev/null; then | |
31924 | if test -s conftest.err; then | |
31925 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31926 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31927 | else |
31928 | ac_cpp_err= | |
31929 | fi | |
31930 | else | |
31931 | ac_cpp_err=yes | |
31932 | fi | |
31933 | if test -z "$ac_cpp_err"; then | |
31934 | ac_header_preproc=yes | |
31935 | else | |
31936 | echo "$as_me: failed program was:" >&5 | |
31937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31938 | ||
31939 | ac_header_preproc=no | |
31940 | fi | |
31941 | rm -f conftest.err conftest.$ac_ext | |
31942 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31943 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31944 | ||
31945 | # So? What about this header? | |
ac1cb8d3 VS |
31946 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31947 | yes:no: ) | |
a848cd7e SC |
31948 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31949 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31950 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31951 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31952 | ac_header_preproc=yes | |
a848cd7e | 31953 | ;; |
ac1cb8d3 | 31954 | no:yes:* ) |
a848cd7e SC |
31955 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31956 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31957 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31958 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31959 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31960 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31961 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31962 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31964 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31965 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31966 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31967 | ( |
31968 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31969 | ## ----------------------------------------- ## |
31970 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31971 | ## ----------------------------------------- ## | |
a848cd7e SC |
31972 | _ASBOX |
31973 | ) | | |
31974 | sed "s/^/$as_me: WARNING: /" >&2 | |
31975 | ;; | |
31976 | esac | |
31977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31981 | else | |
ac1cb8d3 | 31982 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31983 | fi |
31984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31985 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31986 | ||
31987 | fi | |
31988 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31989 | cat >>confdefs.h <<_ACEOF | |
31990 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31991 | _ACEOF | |
31992 | ||
31993 | fi | |
31994 | ||
31995 | done | |
31996 | ||
31997 | if test "$ac_cv_header_sched_h" = "yes"; then | |
31998 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
31999 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32000 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32002 | else | |
32003 | cat >conftest.$ac_ext <<_ACEOF | |
32004 | /* confdefs.h. */ | |
32005 | _ACEOF | |
32006 | cat confdefs.h >>conftest.$ac_ext | |
32007 | cat >>conftest.$ac_ext <<_ACEOF | |
32008 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32009 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32011 | #define sched_yield innocuous_sched_yield | |
32012 | ||
a848cd7e SC |
32013 | /* System header to define __stub macros and hopefully few prototypes, |
32014 | which can conflict with char sched_yield (); below. | |
32015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32016 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32017 | |
a848cd7e SC |
32018 | #ifdef __STDC__ |
32019 | # include <limits.h> | |
32020 | #else | |
32021 | # include <assert.h> | |
32022 | #endif | |
ac1cb8d3 VS |
32023 | |
32024 | #undef sched_yield | |
32025 | ||
a848cd7e SC |
32026 | /* Override any gcc2 internal prototype to avoid an error. */ |
32027 | #ifdef __cplusplus | |
32028 | extern "C" | |
32029 | { | |
32030 | #endif | |
32031 | /* We use char because int might match the return type of a gcc2 | |
32032 | builtin and then its argument prototype would still apply. */ | |
32033 | char sched_yield (); | |
32034 | /* The GNU C library defines this for functions which it implements | |
32035 | to always fail with ENOSYS. Some functions are actually named | |
32036 | something starting with __ and the normal name is an alias. */ | |
32037 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32038 | choke me | |
32039 | #else | |
32040 | char (*f) () = sched_yield; | |
32041 | #endif | |
32042 | #ifdef __cplusplus | |
32043 | } | |
32044 | #endif | |
32045 | ||
32046 | int | |
32047 | main () | |
32048 | { | |
32049 | return f != sched_yield; | |
32050 | ; | |
32051 | return 0; | |
32052 | } | |
32053 | _ACEOF | |
32054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32056 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32057 | ac_status=$? |
ac1cb8d3 VS |
32058 | grep -v '^ *+' conftest.er1 >conftest.err |
32059 | rm -f conftest.er1 | |
32060 | cat conftest.err >&5 | |
a848cd7e SC |
32061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32062 | (exit $ac_status); } && | |
4d4ff94c | 32063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32065 | (eval $ac_try) 2>&5 | |
32066 | ac_status=$? | |
32067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32068 | (exit $ac_status); }; } && | |
32069 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32071 | (eval $ac_try) 2>&5 | |
32072 | ac_status=$? | |
32073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32074 | (exit $ac_status); }; }; then | |
32075 | ac_cv_func_sched_yield=yes | |
32076 | else | |
32077 | echo "$as_me: failed program was:" >&5 | |
32078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32079 | ||
32080 | ac_cv_func_sched_yield=no | |
32081 | fi | |
ac1cb8d3 VS |
32082 | rm -f conftest.err conftest.$ac_objext \ |
32083 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32084 | fi |
32085 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32086 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32087 | if test $ac_cv_func_sched_yield = yes; then | |
32088 | cat >>confdefs.h <<\_ACEOF | |
32089 | #define HAVE_SCHED_YIELD 1 | |
32090 | _ACEOF | |
32091 | ||
32092 | else | |
32093 | ||
32094 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32095 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32096 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32098 | else | |
32099 | ac_check_lib_save_LIBS=$LIBS | |
32100 | LIBS="-lposix4 $LIBS" | |
32101 | cat >conftest.$ac_ext <<_ACEOF | |
32102 | /* confdefs.h. */ | |
32103 | _ACEOF | |
32104 | cat confdefs.h >>conftest.$ac_ext | |
32105 | cat >>conftest.$ac_ext <<_ACEOF | |
32106 | /* end confdefs.h. */ | |
32107 | ||
32108 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32109 | #ifdef __cplusplus | |
32110 | extern "C" | |
32111 | #endif | |
32112 | /* We use char because int might match the return type of a gcc2 | |
32113 | builtin and then its argument prototype would still apply. */ | |
32114 | char sched_yield (); | |
32115 | int | |
32116 | main () | |
32117 | { | |
32118 | sched_yield (); | |
32119 | ; | |
32120 | return 0; | |
32121 | } | |
32122 | _ACEOF | |
32123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32125 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32126 | ac_status=$? |
ac1cb8d3 VS |
32127 | grep -v '^ *+' conftest.er1 >conftest.err |
32128 | rm -f conftest.er1 | |
32129 | cat conftest.err >&5 | |
a848cd7e SC |
32130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32131 | (exit $ac_status); } && | |
4d4ff94c | 32132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32134 | (eval $ac_try) 2>&5 | |
32135 | ac_status=$? | |
32136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32137 | (exit $ac_status); }; } && | |
32138 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32140 | (eval $ac_try) 2>&5 | |
32141 | ac_status=$? | |
32142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32143 | (exit $ac_status); }; }; then | |
32144 | ac_cv_lib_posix4_sched_yield=yes | |
32145 | else | |
32146 | echo "$as_me: failed program was:" >&5 | |
32147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32148 | ||
32149 | ac_cv_lib_posix4_sched_yield=no | |
32150 | fi | |
ac1cb8d3 VS |
32151 | rm -f conftest.err conftest.$ac_objext \ |
32152 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32153 | LIBS=$ac_check_lib_save_LIBS |
32154 | fi | |
32155 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32156 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32157 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32158 | cat >>confdefs.h <<\_ACEOF | |
32159 | #define HAVE_SCHED_YIELD 1 | |
32160 | _ACEOF | |
32161 | POSIX4_LINK=" -lposix4" | |
32162 | else | |
32163 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32164 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32165 | ||
32166 | fi | |
32167 | ||
32168 | ||
32169 | ||
32170 | fi | |
32171 | ||
32172 | fi | |
32173 | ||
32174 | HAVE_PRIOR_FUNCS=0 | |
32175 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32176 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32177 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32179 | else | |
32180 | cat >conftest.$ac_ext <<_ACEOF | |
32181 | /* confdefs.h. */ | |
32182 | _ACEOF | |
32183 | cat confdefs.h >>conftest.$ac_ext | |
32184 | cat >>conftest.$ac_ext <<_ACEOF | |
32185 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32186 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32187 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32188 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32189 | ||
a848cd7e SC |
32190 | /* System header to define __stub macros and hopefully few prototypes, |
32191 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32192 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32193 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32194 | |
a848cd7e SC |
32195 | #ifdef __STDC__ |
32196 | # include <limits.h> | |
32197 | #else | |
32198 | # include <assert.h> | |
32199 | #endif | |
ac1cb8d3 VS |
32200 | |
32201 | #undef pthread_attr_getschedpolicy | |
32202 | ||
a848cd7e SC |
32203 | /* Override any gcc2 internal prototype to avoid an error. */ |
32204 | #ifdef __cplusplus | |
32205 | extern "C" | |
32206 | { | |
32207 | #endif | |
32208 | /* We use char because int might match the return type of a gcc2 | |
32209 | builtin and then its argument prototype would still apply. */ | |
32210 | char pthread_attr_getschedpolicy (); | |
32211 | /* The GNU C library defines this for functions which it implements | |
32212 | to always fail with ENOSYS. Some functions are actually named | |
32213 | something starting with __ and the normal name is an alias. */ | |
32214 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32215 | choke me | |
32216 | #else | |
32217 | char (*f) () = pthread_attr_getschedpolicy; | |
32218 | #endif | |
32219 | #ifdef __cplusplus | |
32220 | } | |
32221 | #endif | |
32222 | ||
32223 | int | |
32224 | main () | |
32225 | { | |
32226 | return f != pthread_attr_getschedpolicy; | |
32227 | ; | |
32228 | return 0; | |
32229 | } | |
32230 | _ACEOF | |
32231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32233 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32234 | ac_status=$? |
ac1cb8d3 VS |
32235 | grep -v '^ *+' conftest.er1 >conftest.err |
32236 | rm -f conftest.er1 | |
32237 | cat conftest.err >&5 | |
a848cd7e SC |
32238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32239 | (exit $ac_status); } && | |
4d4ff94c | 32240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32242 | (eval $ac_try) 2>&5 | |
32243 | ac_status=$? | |
32244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32245 | (exit $ac_status); }; } && | |
32246 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32248 | (eval $ac_try) 2>&5 | |
32249 | ac_status=$? | |
32250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32251 | (exit $ac_status); }; }; then | |
32252 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32253 | else | |
32254 | echo "$as_me: failed program was:" >&5 | |
32255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32256 | ||
32257 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32258 | fi | |
ac1cb8d3 VS |
32259 | rm -f conftest.err conftest.$ac_objext \ |
32260 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32261 | fi |
32262 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32263 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32264 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32265 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32266 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32267 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32269 | else | |
32270 | cat >conftest.$ac_ext <<_ACEOF | |
32271 | /* confdefs.h. */ | |
32272 | _ACEOF | |
32273 | cat confdefs.h >>conftest.$ac_ext | |
32274 | cat >>conftest.$ac_ext <<_ACEOF | |
32275 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32276 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32277 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32278 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32279 | ||
a848cd7e SC |
32280 | /* System header to define __stub macros and hopefully few prototypes, |
32281 | which can conflict with char pthread_attr_setschedparam (); below. | |
32282 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32283 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32284 | |
a848cd7e SC |
32285 | #ifdef __STDC__ |
32286 | # include <limits.h> | |
32287 | #else | |
32288 | # include <assert.h> | |
32289 | #endif | |
ac1cb8d3 VS |
32290 | |
32291 | #undef pthread_attr_setschedparam | |
32292 | ||
a848cd7e SC |
32293 | /* Override any gcc2 internal prototype to avoid an error. */ |
32294 | #ifdef __cplusplus | |
32295 | extern "C" | |
32296 | { | |
32297 | #endif | |
32298 | /* We use char because int might match the return type of a gcc2 | |
32299 | builtin and then its argument prototype would still apply. */ | |
32300 | char pthread_attr_setschedparam (); | |
32301 | /* The GNU C library defines this for functions which it implements | |
32302 | to always fail with ENOSYS. Some functions are actually named | |
32303 | something starting with __ and the normal name is an alias. */ | |
32304 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32305 | choke me | |
32306 | #else | |
32307 | char (*f) () = pthread_attr_setschedparam; | |
32308 | #endif | |
32309 | #ifdef __cplusplus | |
32310 | } | |
32311 | #endif | |
32312 | ||
32313 | int | |
32314 | main () | |
32315 | { | |
32316 | return f != pthread_attr_setschedparam; | |
32317 | ; | |
32318 | return 0; | |
32319 | } | |
32320 | _ACEOF | |
32321 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32323 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32324 | ac_status=$? |
ac1cb8d3 VS |
32325 | grep -v '^ *+' conftest.er1 >conftest.err |
32326 | rm -f conftest.er1 | |
32327 | cat conftest.err >&5 | |
a848cd7e SC |
32328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32329 | (exit $ac_status); } && | |
4d4ff94c | 32330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32332 | (eval $ac_try) 2>&5 | |
32333 | ac_status=$? | |
32334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32335 | (exit $ac_status); }; } && | |
32336 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32338 | (eval $ac_try) 2>&5 | |
32339 | ac_status=$? | |
32340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32341 | (exit $ac_status); }; }; then | |
32342 | ac_cv_func_pthread_attr_setschedparam=yes | |
32343 | else | |
32344 | echo "$as_me: failed program was:" >&5 | |
32345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32346 | ||
32347 | ac_cv_func_pthread_attr_setschedparam=no | |
32348 | fi | |
ac1cb8d3 VS |
32349 | rm -f conftest.err conftest.$ac_objext \ |
32350 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32351 | fi |
32352 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32353 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32354 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32355 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32356 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32357 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32359 | else | |
32360 | cat >conftest.$ac_ext <<_ACEOF | |
32361 | /* confdefs.h. */ | |
32362 | _ACEOF | |
32363 | cat confdefs.h >>conftest.$ac_ext | |
32364 | cat >>conftest.$ac_ext <<_ACEOF | |
32365 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32366 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32367 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32368 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32369 | ||
a848cd7e SC |
32370 | /* System header to define __stub macros and hopefully few prototypes, |
32371 | which can conflict with char sched_get_priority_max (); below. | |
32372 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32373 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32374 | |
a848cd7e SC |
32375 | #ifdef __STDC__ |
32376 | # include <limits.h> | |
32377 | #else | |
32378 | # include <assert.h> | |
32379 | #endif | |
ac1cb8d3 VS |
32380 | |
32381 | #undef sched_get_priority_max | |
32382 | ||
a848cd7e SC |
32383 | /* Override any gcc2 internal prototype to avoid an error. */ |
32384 | #ifdef __cplusplus | |
32385 | extern "C" | |
32386 | { | |
32387 | #endif | |
32388 | /* We use char because int might match the return type of a gcc2 | |
32389 | builtin and then its argument prototype would still apply. */ | |
32390 | char sched_get_priority_max (); | |
32391 | /* The GNU C library defines this for functions which it implements | |
32392 | to always fail with ENOSYS. Some functions are actually named | |
32393 | something starting with __ and the normal name is an alias. */ | |
32394 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32395 | choke me | |
32396 | #else | |
32397 | char (*f) () = sched_get_priority_max; | |
32398 | #endif | |
32399 | #ifdef __cplusplus | |
32400 | } | |
32401 | #endif | |
32402 | ||
32403 | int | |
32404 | main () | |
32405 | { | |
32406 | return f != sched_get_priority_max; | |
32407 | ; | |
32408 | return 0; | |
32409 | } | |
32410 | _ACEOF | |
32411 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32413 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32414 | ac_status=$? |
ac1cb8d3 VS |
32415 | grep -v '^ *+' conftest.er1 >conftest.err |
32416 | rm -f conftest.er1 | |
32417 | cat conftest.err >&5 | |
a848cd7e SC |
32418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32419 | (exit $ac_status); } && | |
4d4ff94c | 32420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32422 | (eval $ac_try) 2>&5 | |
32423 | ac_status=$? | |
32424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32425 | (exit $ac_status); }; } && | |
32426 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32428 | (eval $ac_try) 2>&5 | |
32429 | ac_status=$? | |
32430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32431 | (exit $ac_status); }; }; then | |
32432 | ac_cv_func_sched_get_priority_max=yes | |
32433 | else | |
32434 | echo "$as_me: failed program was:" >&5 | |
32435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32436 | ||
32437 | ac_cv_func_sched_get_priority_max=no | |
32438 | fi | |
ac1cb8d3 VS |
32439 | rm -f conftest.err conftest.$ac_objext \ |
32440 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32441 | fi |
32442 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32443 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32444 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32445 | HAVE_PRIOR_FUNCS=1 | |
32446 | else | |
32447 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32448 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32449 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32451 | else | |
32452 | ac_check_lib_save_LIBS=$LIBS | |
32453 | LIBS="-lposix4 $LIBS" | |
32454 | cat >conftest.$ac_ext <<_ACEOF | |
32455 | /* confdefs.h. */ | |
32456 | _ACEOF | |
32457 | cat confdefs.h >>conftest.$ac_ext | |
32458 | cat >>conftest.$ac_ext <<_ACEOF | |
32459 | /* end confdefs.h. */ | |
32460 | ||
32461 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32462 | #ifdef __cplusplus | |
32463 | extern "C" | |
32464 | #endif | |
32465 | /* We use char because int might match the return type of a gcc2 | |
32466 | builtin and then its argument prototype would still apply. */ | |
32467 | char sched_get_priority_max (); | |
32468 | int | |
32469 | main () | |
32470 | { | |
32471 | sched_get_priority_max (); | |
32472 | ; | |
32473 | return 0; | |
32474 | } | |
32475 | _ACEOF | |
32476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32478 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32479 | ac_status=$? |
ac1cb8d3 VS |
32480 | grep -v '^ *+' conftest.er1 >conftest.err |
32481 | rm -f conftest.er1 | |
32482 | cat conftest.err >&5 | |
a848cd7e SC |
32483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32484 | (exit $ac_status); } && | |
4d4ff94c | 32485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32487 | (eval $ac_try) 2>&5 | |
32488 | ac_status=$? | |
32489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32490 | (exit $ac_status); }; } && | |
32491 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32493 | (eval $ac_try) 2>&5 | |
32494 | ac_status=$? | |
32495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32496 | (exit $ac_status); }; }; then | |
32497 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32498 | else | |
32499 | echo "$as_me: failed program was:" >&5 | |
32500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32501 | ||
32502 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32503 | fi | |
ac1cb8d3 VS |
32504 | rm -f conftest.err conftest.$ac_objext \ |
32505 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32506 | LIBS=$ac_check_lib_save_LIBS |
32507 | fi | |
32508 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32509 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32510 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32511 | ||
32512 | HAVE_PRIOR_FUNCS=1 | |
32513 | POSIX4_LINK=" -lposix4" | |
32514 | ||
32515 | fi | |
32516 | ||
32517 | ||
32518 | fi | |
32519 | ||
32520 | ||
32521 | fi | |
32522 | ||
32523 | ||
32524 | fi | |
32525 | ||
32526 | ||
32527 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32528 | cat >>confdefs.h <<\_ACEOF | |
32529 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32530 | _ACEOF | |
32531 | ||
32532 | else | |
32533 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32534 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32535 | fi | |
32536 | ||
32537 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32538 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32539 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32541 | else | |
32542 | cat >conftest.$ac_ext <<_ACEOF | |
32543 | /* confdefs.h. */ | |
32544 | _ACEOF | |
32545 | cat confdefs.h >>conftest.$ac_ext | |
32546 | cat >>conftest.$ac_ext <<_ACEOF | |
32547 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32548 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32549 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32550 | #define pthread_cancel innocuous_pthread_cancel | |
32551 | ||
a848cd7e SC |
32552 | /* System header to define __stub macros and hopefully few prototypes, |
32553 | which can conflict with char pthread_cancel (); below. | |
32554 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32555 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32556 | |
a848cd7e SC |
32557 | #ifdef __STDC__ |
32558 | # include <limits.h> | |
32559 | #else | |
32560 | # include <assert.h> | |
32561 | #endif | |
ac1cb8d3 VS |
32562 | |
32563 | #undef pthread_cancel | |
32564 | ||
a848cd7e SC |
32565 | /* Override any gcc2 internal prototype to avoid an error. */ |
32566 | #ifdef __cplusplus | |
32567 | extern "C" | |
32568 | { | |
32569 | #endif | |
32570 | /* We use char because int might match the return type of a gcc2 | |
32571 | builtin and then its argument prototype would still apply. */ | |
32572 | char pthread_cancel (); | |
32573 | /* The GNU C library defines this for functions which it implements | |
32574 | to always fail with ENOSYS. Some functions are actually named | |
32575 | something starting with __ and the normal name is an alias. */ | |
32576 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32577 | choke me | |
32578 | #else | |
32579 | char (*f) () = pthread_cancel; | |
32580 | #endif | |
32581 | #ifdef __cplusplus | |
32582 | } | |
32583 | #endif | |
32584 | ||
32585 | int | |
32586 | main () | |
32587 | { | |
32588 | return f != pthread_cancel; | |
32589 | ; | |
32590 | return 0; | |
32591 | } | |
32592 | _ACEOF | |
32593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32595 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32596 | ac_status=$? |
ac1cb8d3 VS |
32597 | grep -v '^ *+' conftest.er1 >conftest.err |
32598 | rm -f conftest.er1 | |
32599 | cat conftest.err >&5 | |
a848cd7e SC |
32600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32601 | (exit $ac_status); } && | |
4d4ff94c | 32602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32604 | (eval $ac_try) 2>&5 | |
32605 | ac_status=$? | |
32606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32607 | (exit $ac_status); }; } && | |
32608 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32610 | (eval $ac_try) 2>&5 | |
32611 | ac_status=$? | |
32612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32613 | (exit $ac_status); }; }; then | |
32614 | ac_cv_func_pthread_cancel=yes | |
32615 | else | |
32616 | echo "$as_me: failed program was:" >&5 | |
32617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32618 | ||
32619 | ac_cv_func_pthread_cancel=no | |
32620 | fi | |
ac1cb8d3 VS |
32621 | rm -f conftest.err conftest.$ac_objext \ |
32622 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32623 | fi |
32624 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32625 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32626 | if test $ac_cv_func_pthread_cancel = yes; then | |
32627 | cat >>confdefs.h <<\_ACEOF | |
32628 | #define HAVE_PTHREAD_CANCEL 1 | |
32629 | _ACEOF | |
32630 | ||
32631 | else | |
32632 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
32633 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
32634 | fi | |
32635 | ||
32636 | ||
32637 | ||
32638 | ||
32639 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32640 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32641 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32643 | else | |
32644 | ||
32645 | cat >conftest.$ac_ext <<_ACEOF | |
32646 | /* confdefs.h. */ | |
32647 | _ACEOF | |
32648 | cat confdefs.h >>conftest.$ac_ext | |
32649 | cat >>conftest.$ac_ext <<_ACEOF | |
32650 | /* end confdefs.h. */ | |
32651 | #include <pthread.h> | |
32652 | int | |
32653 | main () | |
32654 | { | |
32655 | ||
32656 | pthread_mutexattr_t attr; | |
32657 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
32658 | ||
32659 | ; | |
32660 | return 0; | |
32661 | } | |
32662 | _ACEOF | |
32663 | rm -f conftest.$ac_objext | |
32664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32665 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32666 | ac_status=$? |
ac1cb8d3 VS |
32667 | grep -v '^ *+' conftest.er1 >conftest.err |
32668 | rm -f conftest.er1 | |
32669 | cat conftest.err >&5 | |
a848cd7e SC |
32670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32671 | (exit $ac_status); } && | |
4d4ff94c | 32672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32674 | (eval $ac_try) 2>&5 | |
32675 | ac_status=$? | |
32676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32677 | (exit $ac_status); }; } && | |
32678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32680 | (eval $ac_try) 2>&5 | |
32681 | ac_status=$? | |
32682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32683 | (exit $ac_status); }; }; then | |
32684 | ||
32685 | wx_cv_type_pthread_mutexattr_t=yes | |
32686 | ||
32687 | else | |
32688 | echo "$as_me: failed program was:" >&5 | |
32689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32690 | ||
32691 | ||
32692 | wx_cv_type_pthread_mutexattr_t=no | |
32693 | ||
32694 | ||
32695 | fi | |
ac1cb8d3 | 32696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32697 | |
32698 | fi | |
32699 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32700 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
32701 | ||
32702 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
32703 | cat >>confdefs.h <<\_ACEOF | |
32704 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
32705 | _ACEOF | |
32706 | ||
32707 | else | |
32708 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
32709 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32710 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32712 | else | |
32713 | ||
32714 | cat >conftest.$ac_ext <<_ACEOF | |
32715 | /* confdefs.h. */ | |
32716 | _ACEOF | |
32717 | cat confdefs.h >>conftest.$ac_ext | |
32718 | cat >>conftest.$ac_ext <<_ACEOF | |
32719 | /* end confdefs.h. */ | |
32720 | #include <pthread.h> | |
32721 | int | |
32722 | main () | |
32723 | { | |
32724 | ||
32725 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
32726 | ||
32727 | ; | |
32728 | return 0; | |
32729 | } | |
32730 | _ACEOF | |
32731 | rm -f conftest.$ac_objext | |
32732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32733 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32734 | ac_status=$? |
ac1cb8d3 VS |
32735 | grep -v '^ *+' conftest.er1 >conftest.err |
32736 | rm -f conftest.er1 | |
32737 | cat conftest.err >&5 | |
a848cd7e SC |
32738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32739 | (exit $ac_status); } && | |
4d4ff94c | 32740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32742 | (eval $ac_try) 2>&5 | |
32743 | ac_status=$? | |
32744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32745 | (exit $ac_status); }; } && | |
32746 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32748 | (eval $ac_try) 2>&5 | |
32749 | ac_status=$? | |
32750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32751 | (exit $ac_status); }; }; then | |
32752 | ||
32753 | wx_cv_type_pthread_rec_mutex_init=yes | |
32754 | ||
32755 | else | |
32756 | echo "$as_me: failed program was:" >&5 | |
32757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32758 | ||
32759 | ||
32760 | wx_cv_type_pthread_rec_mutex_init=no | |
32761 | ||
32762 | ||
32763 | fi | |
ac1cb8d3 | 32764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32765 | |
32766 | fi | |
32767 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
32768 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
32769 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
32770 | cat >>confdefs.h <<\_ACEOF | |
32771 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
32772 | _ACEOF | |
32773 | ||
32774 | else | |
32775 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
32776 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
32777 | fi | |
32778 | fi | |
32779 | fi | |
32780 | ||
32781 | else | |
32782 | if test "$wxUSE_THREADS" = "yes" ; then | |
32783 | case "${host}" in | |
32784 | *-*-mingw32* ) | |
32785 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
32786 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
32787 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
32788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32789 | else | |
32790 | ||
32791 | CFLAGS_OLD="$CFLAGS" | |
32792 | CFLAGS="$CFLAGS -mthreads" | |
32793 | cat >conftest.$ac_ext <<_ACEOF | |
32794 | /* confdefs.h. */ | |
32795 | _ACEOF | |
32796 | cat confdefs.h >>conftest.$ac_ext | |
32797 | cat >>conftest.$ac_ext <<_ACEOF | |
32798 | /* end confdefs.h. */ | |
32799 | ||
32800 | int | |
32801 | main () | |
32802 | { | |
32803 | ||
32804 | ; | |
32805 | return 0; | |
32806 | } | |
32807 | _ACEOF | |
32808 | rm -f conftest.$ac_objext | |
32809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32810 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32811 | ac_status=$? |
ac1cb8d3 VS |
32812 | grep -v '^ *+' conftest.er1 >conftest.err |
32813 | rm -f conftest.er1 | |
32814 | cat conftest.err >&5 | |
a848cd7e SC |
32815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32816 | (exit $ac_status); } && | |
4d4ff94c | 32817 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32819 | (eval $ac_try) 2>&5 | |
32820 | ac_status=$? | |
32821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32822 | (exit $ac_status); }; } && | |
32823 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32825 | (eval $ac_try) 2>&5 | |
32826 | ac_status=$? | |
32827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32828 | (exit $ac_status); }; }; then | |
32829 | wx_cv_cflags_mthread=yes | |
32830 | else | |
32831 | echo "$as_me: failed program was:" >&5 | |
32832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32833 | ||
32834 | wx_cv_cflags_mthread=no | |
32835 | ||
32836 | fi | |
ac1cb8d3 | 32837 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32838 | |
32839 | ||
32840 | fi | |
32841 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
32842 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
32843 | ||
32844 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
32845 | CXXFLAGS="$CXXFLAGS -mthreads" | |
32846 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
32847 | LDFLAGS="$LDFLAGS -mthreads" | |
32848 | else | |
32849 | CFLAGS="$CFLAGS_OLD" | |
32850 | fi | |
32851 | ;; | |
32852 | *-pc-os2*emx ) | |
32853 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
32854 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
32855 | LDFLAGS="$LDFLAGS -Zmt" | |
32856 | ;; | |
32857 | esac | |
32858 | fi | |
32859 | fi | |
32860 | ||
32861 | if test "$wxUSE_THREADS" = "yes"; then | |
32862 | cat >>confdefs.h <<\_ACEOF | |
32863 | #define wxUSE_THREADS 1 | |
32864 | _ACEOF | |
32865 | ||
32866 | ||
32867 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
32868 | else | |
32869 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
32870 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
32871 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
32872 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
32873 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
32874 | echo "$as_me:$LINENO: result: yes" >&5 | |
32875 | echo "${ECHO_T}yes" >&6 | |
32876 | else | |
32877 | echo "$as_me:$LINENO: result: no" >&5 | |
32878 | echo "${ECHO_T}no" >&6 | |
32879 | fi | |
32880 | fi | |
32881 | fi | |
32882 | ||
32883 | if test "$WXGTK20" = 1 ; then | |
32884 | cat >>confdefs.h <<_ACEOF | |
32885 | #define __WXGTK20__ $WXGTK20 | |
32886 | _ACEOF | |
32887 | ||
32888 | WXGTK12=1 | |
32889 | fi | |
32890 | ||
32891 | if test "$WXGTK12" = 1 ; then | |
32892 | cat >>confdefs.h <<_ACEOF | |
32893 | #define __WXGTK12__ $WXGTK12 | |
32894 | _ACEOF | |
32895 | ||
32896 | fi | |
32897 | ||
32898 | if test "$WXGTK127" = 1 ; then | |
32899 | cat >>confdefs.h <<_ACEOF | |
32900 | #define __WXGTK127__ $WXGTK127 | |
32901 | _ACEOF | |
32902 | ||
32903 | fi | |
32904 | ||
32905 | if test "$WXGPE" = 1 ; then | |
32906 | cat >>confdefs.h <<_ACEOF | |
32907 | #define __WXGPE__ $WXGPE | |
32908 | _ACEOF | |
32909 | ||
32910 | fi | |
32911 | ||
32912 | WXDEBUG= | |
32913 | ||
32914 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
32915 | WXDEBUG="-g" | |
32916 | wxUSE_OPTIMISE=no | |
32917 | fi | |
32918 | ||
32919 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
32920 | wxUSE_DEBUG_INFO=yes | |
32921 | WXDEBUG="-ggdb" | |
32922 | fi | |
32923 | ||
32924 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
32925 | cat >>confdefs.h <<\_ACEOF | |
32926 | #define WXDEBUG 1 | |
32927 | _ACEOF | |
32928 | ||
32929 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
32930 | else | |
32931 | if test "$wxUSE_GTK" = 1 ; then | |
32932 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
32933 | fi | |
32934 | fi | |
32935 | ||
32936 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
32937 | cat >>confdefs.h <<\_ACEOF | |
32938 | #define wxUSE_MEMORY_TRACING 1 | |
32939 | _ACEOF | |
32940 | ||
32941 | cat >>confdefs.h <<\_ACEOF | |
32942 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
32943 | _ACEOF | |
32944 | ||
32945 | cat >>confdefs.h <<\_ACEOF | |
32946 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
32947 | _ACEOF | |
32948 | ||
32949 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
32950 | fi | |
32951 | ||
32952 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
32953 | DMALLOC_LIBS="-ldmalloc" | |
32954 | fi | |
32955 | ||
32956 | PROFILE= | |
32957 | if test "$wxUSE_PROFILE" = "yes" ; then | |
32958 | PROFILE=" -pg" | |
32959 | fi | |
32960 | ||
32961 | CODE_GEN_FLAGS= | |
32962 | CODE_GEN_FLAGS_CXX= | |
32963 | if test "$GCC" = "yes" ; then | |
32964 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
32965 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
32966 | fi | |
32967 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
32968 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
32969 | fi | |
32970 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
32971 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
32972 | fi | |
32973 | ||
32974 | case "${host}" in | |
32975 | powerpc*-*-aix* ) | |
32976 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
32977 | ;; | |
32978 | *-hppa* ) | |
32979 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
32980 | ;; | |
32981 | esac | |
32982 | fi | |
32983 | ||
32984 | OPTIMISE= | |
32985 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
32986 | if test "$GCC" = yes ; then | |
32987 | OPTIMISE="-O0" | |
32988 | fi | |
32989 | else | |
32990 | if test "$GCC" = yes ; then | |
32991 | OPTIMISE="-O2" | |
32992 | ||
32993 | case "${host}" in | |
32994 | i586-*-*|i686-*-* ) | |
32995 | OPTIMISE="${OPTIMISE} " | |
32996 | ;; | |
32997 | esac | |
32998 | else | |
32999 | OPTIMISE="-O" | |
33000 | fi | |
33001 | fi | |
33002 | ||
33003 | ||
33004 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33005 | cat >>confdefs.h <<\_ACEOF | |
33006 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33007 | _ACEOF | |
33008 | ||
33009 | ||
33010 | WXWIN_COMPATIBILITY_2_4="yes" | |
33011 | fi | |
33012 | ||
33013 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33014 | cat >>confdefs.h <<\_ACEOF | |
33015 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33016 | _ACEOF | |
33017 | ||
33018 | fi | |
33019 | ||
33020 | ||
33021 | if test "$wxUSE_GUI" = "yes"; then | |
33022 | cat >>confdefs.h <<\_ACEOF | |
33023 | #define wxUSE_GUI 1 | |
33024 | _ACEOF | |
33025 | ||
33026 | ||
33027 | else | |
33028 | cat >>confdefs.h <<\_ACEOF | |
33029 | #define wxUSE_NOGUI 1 | |
33030 | _ACEOF | |
33031 | ||
33032 | fi | |
33033 | ||
33034 | ||
33035 | if test "$wxUSE_UNIX" = "yes"; then | |
33036 | cat >>confdefs.h <<\_ACEOF | |
33037 | #define wxUSE_UNIX 1 | |
33038 | _ACEOF | |
33039 | ||
33040 | fi | |
33041 | ||
33042 | ||
33043 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33044 | ||
33045 | HAVE_DL_FUNCS=0 | |
33046 | HAVE_SHL_FUNCS=0 | |
33047 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33048 | if test "$USE_DARWIN" = 1; then | |
33049 | HAVE_DL_FUNCS=1 | |
33050 | else | |
33051 | ||
33052 | for ac_func in dlopen | |
33053 | do | |
33054 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33055 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33056 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33057 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33059 | else | |
33060 | cat >conftest.$ac_ext <<_ACEOF | |
33061 | /* confdefs.h. */ | |
33062 | _ACEOF | |
33063 | cat confdefs.h >>conftest.$ac_ext | |
33064 | cat >>conftest.$ac_ext <<_ACEOF | |
33065 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33066 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33067 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33068 | #define $ac_func innocuous_$ac_func | |
33069 | ||
a848cd7e SC |
33070 | /* System header to define __stub macros and hopefully few prototypes, |
33071 | which can conflict with char $ac_func (); below. | |
33072 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33073 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33074 | |
a848cd7e SC |
33075 | #ifdef __STDC__ |
33076 | # include <limits.h> | |
33077 | #else | |
33078 | # include <assert.h> | |
33079 | #endif | |
ac1cb8d3 VS |
33080 | |
33081 | #undef $ac_func | |
33082 | ||
a848cd7e SC |
33083 | /* Override any gcc2 internal prototype to avoid an error. */ |
33084 | #ifdef __cplusplus | |
33085 | extern "C" | |
33086 | { | |
33087 | #endif | |
33088 | /* We use char because int might match the return type of a gcc2 | |
33089 | builtin and then its argument prototype would still apply. */ | |
33090 | char $ac_func (); | |
33091 | /* The GNU C library defines this for functions which it implements | |
33092 | to always fail with ENOSYS. Some functions are actually named | |
33093 | something starting with __ and the normal name is an alias. */ | |
33094 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33095 | choke me | |
33096 | #else | |
33097 | char (*f) () = $ac_func; | |
33098 | #endif | |
33099 | #ifdef __cplusplus | |
33100 | } | |
33101 | #endif | |
33102 | ||
33103 | int | |
33104 | main () | |
33105 | { | |
33106 | return f != $ac_func; | |
33107 | ; | |
33108 | return 0; | |
33109 | } | |
33110 | _ACEOF | |
33111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33113 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33114 | ac_status=$? |
ac1cb8d3 VS |
33115 | grep -v '^ *+' conftest.er1 >conftest.err |
33116 | rm -f conftest.er1 | |
33117 | cat conftest.err >&5 | |
a848cd7e SC |
33118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33119 | (exit $ac_status); } && | |
4d4ff94c | 33120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33122 | (eval $ac_try) 2>&5 | |
33123 | ac_status=$? | |
33124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33125 | (exit $ac_status); }; } && | |
33126 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33128 | (eval $ac_try) 2>&5 | |
33129 | ac_status=$? | |
33130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33131 | (exit $ac_status); }; }; then | |
33132 | eval "$as_ac_var=yes" | |
33133 | else | |
33134 | echo "$as_me: failed program was:" >&5 | |
33135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33136 | ||
33137 | eval "$as_ac_var=no" | |
33138 | fi | |
ac1cb8d3 VS |
33139 | rm -f conftest.err conftest.$ac_objext \ |
33140 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33141 | fi |
33142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33143 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33144 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33145 | cat >>confdefs.h <<_ACEOF | |
33146 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33147 | _ACEOF | |
33148 | ||
33149 | cat >>confdefs.h <<\_ACEOF | |
33150 | #define HAVE_DLOPEN 1 | |
33151 | _ACEOF | |
33152 | ||
33153 | HAVE_DL_FUNCS=1 | |
33154 | ||
33155 | else | |
33156 | ||
33157 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33158 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33159 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33161 | else | |
33162 | ac_check_lib_save_LIBS=$LIBS | |
33163 | LIBS="-ldl $LIBS" | |
33164 | cat >conftest.$ac_ext <<_ACEOF | |
33165 | /* confdefs.h. */ | |
33166 | _ACEOF | |
33167 | cat confdefs.h >>conftest.$ac_ext | |
33168 | cat >>conftest.$ac_ext <<_ACEOF | |
33169 | /* end confdefs.h. */ | |
33170 | ||
33171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33172 | #ifdef __cplusplus | |
33173 | extern "C" | |
33174 | #endif | |
33175 | /* We use char because int might match the return type of a gcc2 | |
33176 | builtin and then its argument prototype would still apply. */ | |
33177 | char dlopen (); | |
33178 | int | |
33179 | main () | |
33180 | { | |
33181 | dlopen (); | |
33182 | ; | |
33183 | return 0; | |
33184 | } | |
33185 | _ACEOF | |
33186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33188 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33189 | ac_status=$? |
ac1cb8d3 VS |
33190 | grep -v '^ *+' conftest.er1 >conftest.err |
33191 | rm -f conftest.er1 | |
33192 | cat conftest.err >&5 | |
a848cd7e SC |
33193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33194 | (exit $ac_status); } && | |
4d4ff94c | 33195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33197 | (eval $ac_try) 2>&5 | |
33198 | ac_status=$? | |
33199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33200 | (exit $ac_status); }; } && | |
33201 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33203 | (eval $ac_try) 2>&5 | |
33204 | ac_status=$? | |
33205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33206 | (exit $ac_status); }; }; then | |
33207 | ac_cv_lib_dl_dlopen=yes | |
33208 | else | |
33209 | echo "$as_me: failed program was:" >&5 | |
33210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33211 | ||
33212 | ac_cv_lib_dl_dlopen=no | |
33213 | fi | |
ac1cb8d3 VS |
33214 | rm -f conftest.err conftest.$ac_objext \ |
33215 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33216 | LIBS=$ac_check_lib_save_LIBS |
33217 | fi | |
33218 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33219 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33220 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33221 | ||
33222 | cat >>confdefs.h <<\_ACEOF | |
33223 | #define HAVE_DLOPEN 1 | |
33224 | _ACEOF | |
33225 | ||
33226 | HAVE_DL_FUNCS=1 | |
33227 | DL_LINK=" -ldl$DL_LINK" | |
33228 | ||
33229 | else | |
33230 | ||
33231 | ||
33232 | for ac_func in shl_load | |
33233 | do | |
33234 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33235 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33236 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33237 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33239 | else | |
33240 | cat >conftest.$ac_ext <<_ACEOF | |
33241 | /* confdefs.h. */ | |
33242 | _ACEOF | |
33243 | cat confdefs.h >>conftest.$ac_ext | |
33244 | cat >>conftest.$ac_ext <<_ACEOF | |
33245 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33246 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33248 | #define $ac_func innocuous_$ac_func | |
33249 | ||
a848cd7e SC |
33250 | /* System header to define __stub macros and hopefully few prototypes, |
33251 | which can conflict with char $ac_func (); below. | |
33252 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33253 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33254 | |
a848cd7e SC |
33255 | #ifdef __STDC__ |
33256 | # include <limits.h> | |
33257 | #else | |
33258 | # include <assert.h> | |
33259 | #endif | |
ac1cb8d3 VS |
33260 | |
33261 | #undef $ac_func | |
33262 | ||
a848cd7e SC |
33263 | /* Override any gcc2 internal prototype to avoid an error. */ |
33264 | #ifdef __cplusplus | |
33265 | extern "C" | |
33266 | { | |
33267 | #endif | |
33268 | /* We use char because int might match the return type of a gcc2 | |
33269 | builtin and then its argument prototype would still apply. */ | |
33270 | char $ac_func (); | |
33271 | /* The GNU C library defines this for functions which it implements | |
33272 | to always fail with ENOSYS. Some functions are actually named | |
33273 | something starting with __ and the normal name is an alias. */ | |
33274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33275 | choke me | |
33276 | #else | |
33277 | char (*f) () = $ac_func; | |
33278 | #endif | |
33279 | #ifdef __cplusplus | |
33280 | } | |
33281 | #endif | |
33282 | ||
33283 | int | |
33284 | main () | |
33285 | { | |
33286 | return f != $ac_func; | |
33287 | ; | |
33288 | return 0; | |
33289 | } | |
33290 | _ACEOF | |
33291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33293 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33294 | ac_status=$? |
ac1cb8d3 VS |
33295 | grep -v '^ *+' conftest.er1 >conftest.err |
33296 | rm -f conftest.er1 | |
33297 | cat conftest.err >&5 | |
a848cd7e SC |
33298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33299 | (exit $ac_status); } && | |
4d4ff94c | 33300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33302 | (eval $ac_try) 2>&5 | |
33303 | ac_status=$? | |
33304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33305 | (exit $ac_status); }; } && | |
33306 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33308 | (eval $ac_try) 2>&5 | |
33309 | ac_status=$? | |
33310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33311 | (exit $ac_status); }; }; then | |
33312 | eval "$as_ac_var=yes" | |
33313 | else | |
33314 | echo "$as_me: failed program was:" >&5 | |
33315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33316 | ||
33317 | eval "$as_ac_var=no" | |
33318 | fi | |
ac1cb8d3 VS |
33319 | rm -f conftest.err conftest.$ac_objext \ |
33320 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33321 | fi |
33322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33323 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33324 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33325 | cat >>confdefs.h <<_ACEOF | |
33326 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33327 | _ACEOF | |
33328 | ||
33329 | cat >>confdefs.h <<\_ACEOF | |
33330 | #define HAVE_SHL_LOAD 1 | |
33331 | _ACEOF | |
33332 | ||
33333 | HAVE_SHL_FUNCS=1 | |
33334 | ||
33335 | else | |
33336 | ||
33337 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33338 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33339 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33341 | else | |
33342 | ac_check_lib_save_LIBS=$LIBS | |
33343 | LIBS="-lshl_load $LIBS" | |
33344 | cat >conftest.$ac_ext <<_ACEOF | |
33345 | /* confdefs.h. */ | |
33346 | _ACEOF | |
33347 | cat confdefs.h >>conftest.$ac_ext | |
33348 | cat >>conftest.$ac_ext <<_ACEOF | |
33349 | /* end confdefs.h. */ | |
33350 | ||
33351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33352 | #ifdef __cplusplus | |
33353 | extern "C" | |
33354 | #endif | |
33355 | /* We use char because int might match the return type of a gcc2 | |
33356 | builtin and then its argument prototype would still apply. */ | |
33357 | char dld (); | |
33358 | int | |
33359 | main () | |
33360 | { | |
33361 | dld (); | |
33362 | ; | |
33363 | return 0; | |
33364 | } | |
33365 | _ACEOF | |
33366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33368 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33369 | ac_status=$? |
ac1cb8d3 VS |
33370 | grep -v '^ *+' conftest.er1 >conftest.err |
33371 | rm -f conftest.er1 | |
33372 | cat conftest.err >&5 | |
a848cd7e SC |
33373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33374 | (exit $ac_status); } && | |
4d4ff94c | 33375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33377 | (eval $ac_try) 2>&5 | |
33378 | ac_status=$? | |
33379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33380 | (exit $ac_status); }; } && | |
33381 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33383 | (eval $ac_try) 2>&5 | |
33384 | ac_status=$? | |
33385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33386 | (exit $ac_status); }; }; then | |
33387 | ac_cv_lib_shl_load_dld=yes | |
33388 | else | |
33389 | echo "$as_me: failed program was:" >&5 | |
33390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33391 | ||
33392 | ac_cv_lib_shl_load_dld=no | |
33393 | fi | |
ac1cb8d3 VS |
33394 | rm -f conftest.err conftest.$ac_objext \ |
33395 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33396 | LIBS=$ac_check_lib_save_LIBS |
33397 | fi | |
33398 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33399 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33400 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33401 | ||
33402 | HAVE_SHL_FUNCS=1 | |
33403 | DL_LINK=" -ldld$DL_LINK" | |
33404 | ||
33405 | fi | |
33406 | ||
33407 | ||
33408 | fi | |
33409 | done | |
33410 | ||
33411 | ||
33412 | fi | |
33413 | ||
33414 | ||
33415 | fi | |
33416 | done | |
33417 | ||
33418 | ||
33419 | if test "$HAVE_DL_FUNCS" = 1; then | |
33420 | ||
33421 | for ac_func in dlerror | |
33422 | do | |
33423 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33424 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33425 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33426 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33428 | else | |
33429 | cat >conftest.$ac_ext <<_ACEOF | |
33430 | /* confdefs.h. */ | |
33431 | _ACEOF | |
33432 | cat confdefs.h >>conftest.$ac_ext | |
33433 | cat >>conftest.$ac_ext <<_ACEOF | |
33434 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33435 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33436 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33437 | #define $ac_func innocuous_$ac_func | |
33438 | ||
a848cd7e SC |
33439 | /* System header to define __stub macros and hopefully few prototypes, |
33440 | which can conflict with char $ac_func (); below. | |
33441 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33442 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33443 | |
a848cd7e SC |
33444 | #ifdef __STDC__ |
33445 | # include <limits.h> | |
33446 | #else | |
33447 | # include <assert.h> | |
33448 | #endif | |
ac1cb8d3 VS |
33449 | |
33450 | #undef $ac_func | |
33451 | ||
a848cd7e SC |
33452 | /* Override any gcc2 internal prototype to avoid an error. */ |
33453 | #ifdef __cplusplus | |
33454 | extern "C" | |
33455 | { | |
33456 | #endif | |
33457 | /* We use char because int might match the return type of a gcc2 | |
33458 | builtin and then its argument prototype would still apply. */ | |
33459 | char $ac_func (); | |
33460 | /* The GNU C library defines this for functions which it implements | |
33461 | to always fail with ENOSYS. Some functions are actually named | |
33462 | something starting with __ and the normal name is an alias. */ | |
33463 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33464 | choke me | |
33465 | #else | |
33466 | char (*f) () = $ac_func; | |
33467 | #endif | |
33468 | #ifdef __cplusplus | |
33469 | } | |
33470 | #endif | |
33471 | ||
33472 | int | |
33473 | main () | |
33474 | { | |
33475 | return f != $ac_func; | |
33476 | ; | |
33477 | return 0; | |
33478 | } | |
33479 | _ACEOF | |
33480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33482 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33483 | ac_status=$? |
ac1cb8d3 VS |
33484 | grep -v '^ *+' conftest.er1 >conftest.err |
33485 | rm -f conftest.er1 | |
33486 | cat conftest.err >&5 | |
a848cd7e SC |
33487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33488 | (exit $ac_status); } && | |
4d4ff94c | 33489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33491 | (eval $ac_try) 2>&5 | |
33492 | ac_status=$? | |
33493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33494 | (exit $ac_status); }; } && | |
33495 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33497 | (eval $ac_try) 2>&5 | |
33498 | ac_status=$? | |
33499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33500 | (exit $ac_status); }; }; then | |
33501 | eval "$as_ac_var=yes" | |
33502 | else | |
33503 | echo "$as_me: failed program was:" >&5 | |
33504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33505 | ||
33506 | eval "$as_ac_var=no" | |
33507 | fi | |
ac1cb8d3 VS |
33508 | rm -f conftest.err conftest.$ac_objext \ |
33509 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33510 | fi |
33511 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33512 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33513 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33514 | cat >>confdefs.h <<_ACEOF | |
33515 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33516 | _ACEOF | |
33517 | cat >>confdefs.h <<\_ACEOF | |
33518 | #define HAVE_DLERROR 1 | |
33519 | _ACEOF | |
33520 | ||
33521 | else | |
33522 | ||
33523 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33524 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33525 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33527 | else | |
33528 | ac_check_lib_save_LIBS=$LIBS | |
33529 | LIBS="-ldl $LIBS" | |
33530 | cat >conftest.$ac_ext <<_ACEOF | |
33531 | /* confdefs.h. */ | |
33532 | _ACEOF | |
33533 | cat confdefs.h >>conftest.$ac_ext | |
33534 | cat >>conftest.$ac_ext <<_ACEOF | |
33535 | /* end confdefs.h. */ | |
33536 | ||
33537 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33538 | #ifdef __cplusplus | |
33539 | extern "C" | |
33540 | #endif | |
33541 | /* We use char because int might match the return type of a gcc2 | |
33542 | builtin and then its argument prototype would still apply. */ | |
33543 | char dlerror (); | |
33544 | int | |
33545 | main () | |
33546 | { | |
33547 | dlerror (); | |
33548 | ; | |
33549 | return 0; | |
33550 | } | |
33551 | _ACEOF | |
33552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33554 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33555 | ac_status=$? |
ac1cb8d3 VS |
33556 | grep -v '^ *+' conftest.er1 >conftest.err |
33557 | rm -f conftest.er1 | |
33558 | cat conftest.err >&5 | |
a848cd7e SC |
33559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33560 | (exit $ac_status); } && | |
4d4ff94c | 33561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33563 | (eval $ac_try) 2>&5 | |
33564 | ac_status=$? | |
33565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33566 | (exit $ac_status); }; } && | |
33567 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33569 | (eval $ac_try) 2>&5 | |
33570 | ac_status=$? | |
33571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33572 | (exit $ac_status); }; }; then | |
33573 | ac_cv_lib_dl_dlerror=yes | |
33574 | else | |
33575 | echo "$as_me: failed program was:" >&5 | |
33576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33577 | ||
33578 | ac_cv_lib_dl_dlerror=no | |
33579 | fi | |
ac1cb8d3 VS |
33580 | rm -f conftest.err conftest.$ac_objext \ |
33581 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33582 | LIBS=$ac_check_lib_save_LIBS |
33583 | fi | |
33584 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33585 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33586 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33587 | cat >>confdefs.h <<\_ACEOF | |
33588 | #define HAVE_DLERROR 1 | |
33589 | _ACEOF | |
33590 | ||
33591 | fi | |
33592 | ||
33593 | ||
33594 | ||
33595 | fi | |
33596 | done | |
33597 | ||
33598 | fi | |
33599 | fi | |
33600 | ||
33601 | if test "$HAVE_DL_FUNCS" = 0; then | |
33602 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33603 | if test "$USE_UNIX" = 1; then | |
33604 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33605 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33606 | wxUSE_DYNAMIC_LOADER=no | |
33607 | wxUSE_DYNLIB_CLASS=no | |
33608 | else | |
33609 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33610 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33611 | fi | |
33612 | fi | |
33613 | fi | |
33614 | fi | |
33615 | fi | |
33616 | ||
33617 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
33618 | cat >>confdefs.h <<\_ACEOF | |
33619 | #define wxUSE_DYNAMIC_LOADER 1 | |
33620 | _ACEOF | |
33621 | ||
33622 | fi | |
33623 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33624 | cat >>confdefs.h <<\_ACEOF | |
33625 | #define wxUSE_DYNLIB_CLASS 1 | |
33626 | _ACEOF | |
33627 | ||
33628 | fi | |
33629 | ||
33630 | ||
33631 | ||
33632 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33633 | if test "$wxUSE_SHARED" = "no" ; then | |
33634 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
33635 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
33636 | wxUSE_PLUGINS=no | |
33637 | fi | |
33638 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
33639 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
33640 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
33641 | wxUSE_PLUGINS=no | |
33642 | fi | |
33643 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
33644 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
33645 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
33646 | wxUSE_PLUGINS=no | |
33647 | fi | |
33648 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33649 | cat >>confdefs.h <<\_ACEOF | |
33650 | #define wxUSE_PLUGINS 1 | |
33651 | _ACEOF | |
33652 | ||
33653 | fi | |
33654 | fi | |
33655 | ||
33656 | ||
33657 | if test "$wxUSE_STL" = "yes"; then | |
33658 | cat >>confdefs.h <<\_ACEOF | |
33659 | #define wxUSE_STL 1 | |
33660 | _ACEOF | |
33661 | ||
33662 | fi | |
33663 | ||
33664 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
33665 | cat >>confdefs.h <<\_ACEOF | |
33666 | #define wxUSE_APPLE_IEEE 1 | |
33667 | _ACEOF | |
33668 | ||
33669 | fi | |
33670 | ||
33671 | if test "$wxUSE_TIMER" = "yes"; then | |
33672 | cat >>confdefs.h <<\_ACEOF | |
33673 | #define wxUSE_TIMER 1 | |
33674 | _ACEOF | |
33675 | ||
33676 | fi | |
33677 | ||
33678 | WITH_PLUGIN_SDL=0 | |
33679 | if test "$wxUSE_SOUND" = "yes"; then | |
33680 | if test "$USE_UNIX" = "1" ; then | |
33681 | ||
33682 | for ac_header in sys/soundcard.h | |
33683 | do | |
33684 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33686 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33687 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33688 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33690 | fi | |
33691 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33692 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33693 | else | |
33694 | # Is the header compilable? | |
33695 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33696 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33697 | cat >conftest.$ac_ext <<_ACEOF | |
33698 | /* confdefs.h. */ | |
33699 | _ACEOF | |
33700 | cat confdefs.h >>conftest.$ac_ext | |
33701 | cat >>conftest.$ac_ext <<_ACEOF | |
33702 | /* end confdefs.h. */ | |
33703 | $ac_includes_default | |
33704 | #include <$ac_header> | |
33705 | _ACEOF | |
33706 | rm -f conftest.$ac_objext | |
33707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33709 | ac_status=$? |
ac1cb8d3 VS |
33710 | grep -v '^ *+' conftest.er1 >conftest.err |
33711 | rm -f conftest.er1 | |
33712 | cat conftest.err >&5 | |
a848cd7e SC |
33713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33714 | (exit $ac_status); } && | |
4d4ff94c | 33715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33717 | (eval $ac_try) 2>&5 | |
33718 | ac_status=$? | |
33719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33720 | (exit $ac_status); }; } && | |
33721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33723 | (eval $ac_try) 2>&5 | |
33724 | ac_status=$? | |
33725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33726 | (exit $ac_status); }; }; then | |
33727 | ac_header_compiler=yes | |
33728 | else | |
33729 | echo "$as_me: failed program was:" >&5 | |
33730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33731 | ||
33732 | ac_header_compiler=no | |
33733 | fi | |
ac1cb8d3 | 33734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33735 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33736 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33737 | ||
33738 | # Is the header present? | |
33739 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33740 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33741 | cat >conftest.$ac_ext <<_ACEOF | |
33742 | /* confdefs.h. */ | |
33743 | _ACEOF | |
33744 | cat confdefs.h >>conftest.$ac_ext | |
33745 | cat >>conftest.$ac_ext <<_ACEOF | |
33746 | /* end confdefs.h. */ | |
33747 | #include <$ac_header> | |
33748 | _ACEOF | |
33749 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33750 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33751 | ac_status=$? | |
33752 | grep -v '^ *+' conftest.er1 >conftest.err | |
33753 | rm -f conftest.er1 | |
33754 | cat conftest.err >&5 | |
33755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33756 | (exit $ac_status); } >/dev/null; then | |
33757 | if test -s conftest.err; then | |
33758 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33759 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33760 | else |
33761 | ac_cpp_err= | |
33762 | fi | |
33763 | else | |
33764 | ac_cpp_err=yes | |
33765 | fi | |
33766 | if test -z "$ac_cpp_err"; then | |
33767 | ac_header_preproc=yes | |
33768 | else | |
33769 | echo "$as_me: failed program was:" >&5 | |
33770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33771 | ||
33772 | ac_header_preproc=no | |
33773 | fi | |
33774 | rm -f conftest.err conftest.$ac_ext | |
33775 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33776 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33777 | ||
33778 | # So? What about this header? | |
ac1cb8d3 VS |
33779 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33780 | yes:no: ) | |
a848cd7e SC |
33781 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33782 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33783 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33784 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33785 | ac_header_preproc=yes | |
a848cd7e | 33786 | ;; |
ac1cb8d3 | 33787 | no:yes:* ) |
a848cd7e SC |
33788 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33789 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33790 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33791 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33792 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33793 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33794 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33795 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33796 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33797 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33798 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33799 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33800 | ( |
33801 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33802 | ## ----------------------------------------- ## |
33803 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33804 | ## ----------------------------------------- ## | |
a848cd7e SC |
33805 | _ASBOX |
33806 | ) | | |
33807 | sed "s/^/$as_me: WARNING: /" >&2 | |
33808 | ;; | |
33809 | esac | |
33810 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33811 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33814 | else | |
ac1cb8d3 | 33815 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33816 | fi |
33817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33818 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33819 | ||
33820 | fi | |
33821 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33822 | cat >>confdefs.h <<_ACEOF | |
33823 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33824 | _ACEOF | |
33825 | ||
33826 | fi | |
33827 | ||
33828 | done | |
33829 | ||
33830 | ||
33831 | if test "$wxUSE_LIBSDL" != "no"; then | |
33832 | ||
33833 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
33834 | if test "${with_sdl_prefix+set}" = set; then | |
33835 | withval="$with_sdl_prefix" | |
33836 | sdl_prefix="$withval" | |
33837 | else | |
33838 | sdl_prefix="" | |
33839 | fi; | |
33840 | ||
33841 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
33842 | if test "${with_sdl_exec_prefix+set}" = set; then | |
33843 | withval="$with_sdl_exec_prefix" | |
33844 | sdl_exec_prefix="$withval" | |
33845 | else | |
33846 | sdl_exec_prefix="" | |
33847 | fi; | |
33848 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
33849 | if test "${enable_sdltest+set}" = set; then | |
33850 | enableval="$enable_sdltest" | |
33851 | ||
33852 | else | |
33853 | enable_sdltest=yes | |
33854 | fi; | |
33855 | ||
33856 | if test x$sdl_exec_prefix != x ; then | |
33857 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
33858 | if test x${SDL_CONFIG+set} != xset ; then | |
33859 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
33860 | fi | |
33861 | fi | |
33862 | if test x$sdl_prefix != x ; then | |
33863 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
33864 | if test x${SDL_CONFIG+set} != xset ; then | |
33865 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
33866 | fi | |
33867 | fi | |
33868 | ||
33869 | ||
33870 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
33871 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
33872 | set dummy sdl-config; ac_word=$2 | |
33873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33875 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
33876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33877 | else | |
33878 | case $SDL_CONFIG in | |
33879 | [\\/]* | ?:[\\/]*) | |
33880 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
33881 | ;; | |
33882 | *) | |
33883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33884 | for as_dir in $PATH | |
33885 | do | |
33886 | IFS=$as_save_IFS | |
33887 | test -z "$as_dir" && as_dir=. | |
33888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33890 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
33891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33892 | break 2 | |
33893 | fi | |
33894 | done | |
33895 | done | |
33896 | ||
33897 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
33898 | ;; | |
33899 | esac | |
33900 | fi | |
33901 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
33902 | ||
33903 | if test -n "$SDL_CONFIG"; then | |
33904 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
33905 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
33906 | else | |
33907 | echo "$as_me:$LINENO: result: no" >&5 | |
33908 | echo "${ECHO_T}no" >&6 | |
33909 | fi | |
33910 | ||
33911 | min_sdl_version=1.2.0 | |
33912 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
33913 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
33914 | no_sdl="" | |
33915 | if test "$SDL_CONFIG" = "no" ; then | |
33916 | no_sdl=yes | |
33917 | else | |
33918 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
33919 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
33920 | ||
33921 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
33922 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
33923 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
33924 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
33925 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
33926 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
33927 | if test "x$enable_sdltest" = "xyes" ; then | |
33928 | ac_save_CFLAGS="$CFLAGS" | |
33929 | ac_save_LIBS="$LIBS" | |
33930 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
33931 | LIBS="$LIBS $SDL_LIBS" | |
33932 | rm -f conf.sdltest | |
33933 | if test "$cross_compiling" = yes; then | |
33934 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
33935 | else | |
33936 | cat >conftest.$ac_ext <<_ACEOF | |
33937 | /* confdefs.h. */ | |
33938 | _ACEOF | |
33939 | cat confdefs.h >>conftest.$ac_ext | |
33940 | cat >>conftest.$ac_ext <<_ACEOF | |
33941 | /* end confdefs.h. */ | |
33942 | ||
33943 | #include <stdio.h> | |
33944 | #include <stdlib.h> | |
33945 | #include <string.h> | |
33946 | #include "SDL.h" | |
33947 | ||
33948 | char* | |
33949 | my_strdup (char *str) | |
33950 | { | |
33951 | char *new_str; | |
33952 | ||
33953 | if (str) | |
33954 | { | |
33955 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
33956 | strcpy (new_str, str); | |
33957 | } | |
33958 | else | |
33959 | new_str = NULL; | |
33960 | ||
33961 | return new_str; | |
33962 | } | |
33963 | ||
33964 | int main (int argc, char *argv[]) | |
33965 | { | |
33966 | int major, minor, micro; | |
33967 | char *tmp_version; | |
33968 | ||
33969 | /* This hangs on some systems (?) | |
33970 | system ("touch conf.sdltest"); | |
33971 | */ | |
33972 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
33973 | ||
33974 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
33975 | tmp_version = my_strdup("$min_sdl_version"); | |
33976 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
33977 | printf("%s, bad version string\n", "$min_sdl_version"); | |
33978 | exit(1); | |
33979 | } | |
33980 | ||
33981 | if (($sdl_major_version > major) || | |
33982 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
33983 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
33984 | { | |
33985 | return 0; | |
33986 | } | |
33987 | else | |
33988 | { | |
33989 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
33990 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
33991 | printf("*** best to upgrade to the required version.\n"); | |
33992 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
33993 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
33994 | printf("*** config.cache before re-running configure\n"); | |
33995 | return 1; | |
33996 | } | |
33997 | } | |
33998 | ||
33999 | ||
34000 | _ACEOF | |
34001 | rm -f conftest$ac_exeext | |
34002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34003 | (eval $ac_link) 2>&5 | |
34004 | ac_status=$? | |
34005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34006 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34008 | (eval $ac_try) 2>&5 | |
34009 | ac_status=$? | |
34010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34011 | (exit $ac_status); }; }; then | |
34012 | : | |
34013 | else | |
34014 | echo "$as_me: program exited with status $ac_status" >&5 | |
34015 | echo "$as_me: failed program was:" >&5 | |
34016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34017 | ||
34018 | ( exit $ac_status ) | |
34019 | no_sdl=yes | |
34020 | fi | |
ac1cb8d3 | 34021 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34022 | fi |
34023 | CFLAGS="$ac_save_CFLAGS" | |
34024 | LIBS="$ac_save_LIBS" | |
34025 | fi | |
34026 | fi | |
34027 | if test "x$no_sdl" = x ; then | |
34028 | echo "$as_me:$LINENO: result: yes" >&5 | |
34029 | echo "${ECHO_T}yes" >&6 | |
34030 | ||
34031 | EXTRALIBS_SDL="$SDL_LIBS" | |
34032 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34033 | cat >>confdefs.h <<\_ACEOF | |
34034 | #define wxUSE_LIBSDL 1 | |
34035 | _ACEOF | |
34036 | ||
34037 | ||
34038 | else | |
34039 | echo "$as_me:$LINENO: result: no" >&5 | |
34040 | echo "${ECHO_T}no" >&6 | |
34041 | if test "$SDL_CONFIG" = "no" ; then | |
34042 | echo "*** The sdl-config script installed by SDL could not be found" | |
34043 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34044 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34045 | echo "*** full path to sdl-config." | |
34046 | else | |
34047 | if test -f conf.sdltest ; then | |
34048 | : | |
34049 | else | |
34050 | echo "*** Could not run SDL test program, checking why..." | |
34051 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34052 | LIBS="$LIBS $SDL_LIBS" | |
34053 | cat >conftest.$ac_ext <<_ACEOF | |
34054 | /* confdefs.h. */ | |
34055 | _ACEOF | |
34056 | cat confdefs.h >>conftest.$ac_ext | |
34057 | cat >>conftest.$ac_ext <<_ACEOF | |
34058 | /* end confdefs.h. */ | |
34059 | ||
34060 | #include <stdio.h> | |
34061 | #include "SDL.h" | |
34062 | ||
34063 | int main(int argc, char *argv[]) | |
34064 | { return 0; } | |
34065 | #undef main | |
34066 | #define main K_and_R_C_main | |
34067 | ||
34068 | int | |
34069 | main () | |
34070 | { | |
34071 | return 0; | |
34072 | ; | |
34073 | return 0; | |
34074 | } | |
34075 | _ACEOF | |
34076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34078 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34079 | ac_status=$? |
ac1cb8d3 VS |
34080 | grep -v '^ *+' conftest.er1 >conftest.err |
34081 | rm -f conftest.er1 | |
34082 | cat conftest.err >&5 | |
a848cd7e SC |
34083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34084 | (exit $ac_status); } && | |
4d4ff94c | 34085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34087 | (eval $ac_try) 2>&5 | |
34088 | ac_status=$? | |
34089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34090 | (exit $ac_status); }; } && | |
34091 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34093 | (eval $ac_try) 2>&5 | |
34094 | ac_status=$? | |
34095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34096 | (exit $ac_status); }; }; then | |
34097 | echo "*** The test program compiled, but did not run. This usually means" | |
34098 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34099 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34100 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34101 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34102 | echo "*** is required on your system" | |
34103 | echo "***" | |
34104 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34105 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34106 | else | |
34107 | echo "$as_me: failed program was:" >&5 | |
34108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34109 | ||
34110 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34111 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34112 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34113 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34114 | fi | |
ac1cb8d3 VS |
34115 | rm -f conftest.err conftest.$ac_objext \ |
34116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34117 | CFLAGS="$ac_save_CFLAGS" |
34118 | LIBS="$ac_save_LIBS" | |
34119 | fi | |
34120 | fi | |
34121 | SDL_CFLAGS="" | |
34122 | SDL_LIBS="" | |
34123 | wxUSE_LIBSDL="no" | |
34124 | fi | |
34125 | ||
34126 | ||
34127 | rm -f conf.sdltest | |
34128 | ||
34129 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34130 | WITH_PLUGIN_SDL=1 | |
34131 | fi | |
34132 | fi | |
34133 | fi | |
34134 | ||
34135 | cat >>confdefs.h <<\_ACEOF | |
34136 | #define wxUSE_SOUND 1 | |
34137 | _ACEOF | |
34138 | ||
34139 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34140 | fi | |
34141 | ||
34142 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
34143 | cat >>confdefs.h <<\_ACEOF | |
34144 | #define wxUSE_CMDLINE_PARSER 1 | |
34145 | _ACEOF | |
34146 | ||
34147 | fi | |
34148 | ||
34149 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34150 | cat >>confdefs.h <<\_ACEOF | |
34151 | #define wxUSE_STOPWATCH 1 | |
34152 | _ACEOF | |
34153 | ||
34154 | fi | |
34155 | ||
34156 | if test "$wxUSE_DATETIME" = "yes"; then | |
34157 | cat >>confdefs.h <<\_ACEOF | |
34158 | #define wxUSE_DATETIME 1 | |
34159 | _ACEOF | |
34160 | ||
34161 | fi | |
34162 | ||
34163 | if test "$wxUSE_FILE" = "yes"; then | |
34164 | cat >>confdefs.h <<\_ACEOF | |
34165 | #define wxUSE_FILE 1 | |
34166 | _ACEOF | |
34167 | ||
34168 | fi | |
34169 | ||
34170 | if test "$wxUSE_FFILE" = "yes"; then | |
34171 | cat >>confdefs.h <<\_ACEOF | |
34172 | #define wxUSE_FFILE 1 | |
34173 | _ACEOF | |
34174 | ||
34175 | fi | |
34176 | ||
34177 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34178 | cat >>confdefs.h <<\_ACEOF | |
34179 | #define wxUSE_FILESYSTEM 1 | |
34180 | _ACEOF | |
34181 | ||
34182 | fi | |
34183 | ||
34184 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34185 | cat >>confdefs.h <<\_ACEOF | |
34186 | #define wxUSE_FS_ZIP 1 | |
34187 | _ACEOF | |
34188 | ||
34189 | fi | |
34190 | ||
34191 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34192 | cat >>confdefs.h <<\_ACEOF | |
34193 | #define wxUSE_ZIPSTREAM 1 | |
34194 | _ACEOF | |
34195 | ||
34196 | fi | |
34197 | ||
a848cd7e SC |
34198 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34199 | cat >>confdefs.h <<\_ACEOF | |
34200 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34201 | _ACEOF | |
34202 | ||
34203 | fi | |
34204 | ||
34205 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34206 | cat >>confdefs.h <<\_ACEOF | |
34207 | #define wxUSE_SNGLINST_CHECKER 1 | |
34208 | _ACEOF | |
34209 | ||
34210 | fi | |
34211 | ||
34212 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34213 | cat >>confdefs.h <<\_ACEOF | |
34214 | #define wxUSE_BUSYINFO 1 | |
34215 | _ACEOF | |
34216 | ||
34217 | fi | |
34218 | ||
34219 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34220 | cat >>confdefs.h <<\_ACEOF | |
34221 | #define wxUSE_STD_IOSTREAM 1 | |
34222 | _ACEOF | |
34223 | ||
34224 | fi | |
34225 | ||
34226 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34227 | cat >>confdefs.h <<\_ACEOF | |
34228 | #define wxUSE_TEXTBUFFER 1 | |
34229 | _ACEOF | |
34230 | ||
34231 | fi | |
34232 | ||
34233 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34234 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34235 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34236 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34237 | else | |
34238 | cat >>confdefs.h <<\_ACEOF | |
34239 | #define wxUSE_TEXTFILE 1 | |
34240 | _ACEOF | |
34241 | ||
34242 | fi | |
34243 | fi | |
34244 | ||
34245 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34246 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34247 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34248 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34249 | else | |
34250 | cat >>confdefs.h <<\_ACEOF | |
34251 | #define wxUSE_CONFIG 1 | |
34252 | _ACEOF | |
34253 | ||
34254 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34255 | fi | |
34256 | fi | |
34257 | ||
34258 | if test "$wxUSE_INTL" = "yes" ; then | |
34259 | if test "$wxUSE_FILE" != "yes"; then | |
34260 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34261 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34262 | else | |
34263 | cat >>confdefs.h <<\_ACEOF | |
34264 | #define wxUSE_INTL 1 | |
34265 | _ACEOF | |
34266 | ||
34267 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34268 | GUIDIST="$GUIDIST INTL_DIST" | |
34269 | fi | |
34270 | fi | |
34271 | ||
34272 | if test "$wxUSE_LOG" = "yes"; then | |
34273 | cat >>confdefs.h <<\_ACEOF | |
34274 | #define wxUSE_LOG 1 | |
34275 | _ACEOF | |
34276 | ||
34277 | ||
34278 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34279 | cat >>confdefs.h <<\_ACEOF | |
34280 | #define wxUSE_LOGGUI 1 | |
34281 | _ACEOF | |
34282 | ||
34283 | fi | |
34284 | ||
34285 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34286 | cat >>confdefs.h <<\_ACEOF | |
34287 | #define wxUSE_LOGWINDOW 1 | |
34288 | _ACEOF | |
34289 | ||
34290 | fi | |
34291 | ||
34292 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34293 | cat >>confdefs.h <<\_ACEOF | |
34294 | #define wxUSE_LOG_DIALOG 1 | |
34295 | _ACEOF | |
34296 | ||
34297 | fi | |
34298 | fi | |
34299 | ||
34300 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34301 | cat >>confdefs.h <<\_ACEOF | |
34302 | #define wxUSE_LONGLONG 1 | |
34303 | _ACEOF | |
34304 | ||
34305 | fi | |
34306 | ||
34307 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34308 | cat >>confdefs.h <<\_ACEOF | |
34309 | #define wxUSE_GEOMETRY 1 | |
34310 | _ACEOF | |
34311 | ||
34312 | fi | |
34313 | ||
34314 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34315 | cat >>confdefs.h <<\_ACEOF | |
34316 | #define wxUSE_DIALUP_MANAGER 1 | |
34317 | _ACEOF | |
34318 | ||
34319 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34320 | fi | |
34321 | ||
34322 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34323 | cat >>confdefs.h <<\_ACEOF | |
34324 | #define wxUSE_STREAMS 1 | |
34325 | _ACEOF | |
34326 | ||
34327 | fi | |
34328 | ||
34329 | ||
34330 | if test "$wxUSE_DATETIME" = "yes"; then | |
34331 | ||
34332 | for ac_func in strptime | |
34333 | do | |
34334 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34335 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34336 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34337 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34339 | else | |
34340 | cat >conftest.$ac_ext <<_ACEOF | |
34341 | /* confdefs.h. */ | |
34342 | _ACEOF | |
34343 | cat confdefs.h >>conftest.$ac_ext | |
34344 | cat >>conftest.$ac_ext <<_ACEOF | |
34345 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34346 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34347 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34348 | #define $ac_func innocuous_$ac_func | |
34349 | ||
a848cd7e SC |
34350 | /* System header to define __stub macros and hopefully few prototypes, |
34351 | which can conflict with char $ac_func (); below. | |
34352 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34353 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34354 | |
a848cd7e SC |
34355 | #ifdef __STDC__ |
34356 | # include <limits.h> | |
34357 | #else | |
34358 | # include <assert.h> | |
34359 | #endif | |
ac1cb8d3 VS |
34360 | |
34361 | #undef $ac_func | |
34362 | ||
a848cd7e SC |
34363 | /* Override any gcc2 internal prototype to avoid an error. */ |
34364 | #ifdef __cplusplus | |
34365 | extern "C" | |
34366 | { | |
34367 | #endif | |
34368 | /* We use char because int might match the return type of a gcc2 | |
34369 | builtin and then its argument prototype would still apply. */ | |
34370 | char $ac_func (); | |
34371 | /* The GNU C library defines this for functions which it implements | |
34372 | to always fail with ENOSYS. Some functions are actually named | |
34373 | something starting with __ and the normal name is an alias. */ | |
34374 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34375 | choke me | |
34376 | #else | |
34377 | char (*f) () = $ac_func; | |
34378 | #endif | |
34379 | #ifdef __cplusplus | |
34380 | } | |
34381 | #endif | |
34382 | ||
34383 | int | |
34384 | main () | |
34385 | { | |
34386 | return f != $ac_func; | |
34387 | ; | |
34388 | return 0; | |
34389 | } | |
34390 | _ACEOF | |
34391 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34393 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34394 | ac_status=$? |
ac1cb8d3 VS |
34395 | grep -v '^ *+' conftest.er1 >conftest.err |
34396 | rm -f conftest.er1 | |
34397 | cat conftest.err >&5 | |
a848cd7e SC |
34398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34399 | (exit $ac_status); } && | |
4d4ff94c | 34400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34402 | (eval $ac_try) 2>&5 | |
34403 | ac_status=$? | |
34404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34405 | (exit $ac_status); }; } && | |
34406 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34408 | (eval $ac_try) 2>&5 | |
34409 | ac_status=$? | |
34410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34411 | (exit $ac_status); }; }; then | |
34412 | eval "$as_ac_var=yes" | |
34413 | else | |
34414 | echo "$as_me: failed program was:" >&5 | |
34415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34416 | ||
34417 | eval "$as_ac_var=no" | |
34418 | fi | |
ac1cb8d3 VS |
34419 | rm -f conftest.err conftest.$ac_objext \ |
34420 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34421 | fi |
34422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34423 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34424 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34425 | cat >>confdefs.h <<_ACEOF | |
34426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34427 | _ACEOF | |
34428 | ||
34429 | fi | |
34430 | done | |
34431 | ||
34432 | ||
34433 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34434 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34435 | if test "${wx_cv_var_timezone+set}" = set; then | |
34436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34437 | else | |
34438 | ||
34439 | cat >conftest.$ac_ext <<_ACEOF | |
34440 | /* confdefs.h. */ | |
34441 | _ACEOF | |
34442 | cat confdefs.h >>conftest.$ac_ext | |
34443 | cat >>conftest.$ac_ext <<_ACEOF | |
34444 | /* end confdefs.h. */ | |
34445 | ||
34446 | #include <time.h> | |
34447 | ||
34448 | int | |
34449 | main () | |
34450 | { | |
34451 | ||
34452 | int tz; | |
34453 | tz = timezone; | |
34454 | ||
34455 | ; | |
34456 | return 0; | |
34457 | } | |
34458 | _ACEOF | |
34459 | rm -f conftest.$ac_objext | |
34460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34461 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34462 | ac_status=$? |
ac1cb8d3 VS |
34463 | grep -v '^ *+' conftest.er1 >conftest.err |
34464 | rm -f conftest.er1 | |
34465 | cat conftest.err >&5 | |
a848cd7e SC |
34466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34467 | (exit $ac_status); } && | |
4d4ff94c | 34468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34470 | (eval $ac_try) 2>&5 | |
34471 | ac_status=$? | |
34472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34473 | (exit $ac_status); }; } && | |
34474 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34476 | (eval $ac_try) 2>&5 | |
34477 | ac_status=$? | |
34478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34479 | (exit $ac_status); }; }; then | |
34480 | ||
34481 | wx_cv_var_timezone=timezone | |
34482 | ||
34483 | else | |
34484 | echo "$as_me: failed program was:" >&5 | |
34485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34486 | ||
34487 | ||
34488 | cat >conftest.$ac_ext <<_ACEOF | |
34489 | /* confdefs.h. */ | |
34490 | _ACEOF | |
34491 | cat confdefs.h >>conftest.$ac_ext | |
34492 | cat >>conftest.$ac_ext <<_ACEOF | |
34493 | /* end confdefs.h. */ | |
34494 | ||
34495 | #include <time.h> | |
34496 | ||
34497 | int | |
34498 | main () | |
34499 | { | |
34500 | ||
34501 | int tz; | |
34502 | tz = _timezone; | |
34503 | ||
34504 | ; | |
34505 | return 0; | |
34506 | } | |
34507 | _ACEOF | |
34508 | rm -f conftest.$ac_objext | |
34509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34510 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34511 | ac_status=$? |
ac1cb8d3 VS |
34512 | grep -v '^ *+' conftest.er1 >conftest.err |
34513 | rm -f conftest.er1 | |
34514 | cat conftest.err >&5 | |
a848cd7e SC |
34515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34516 | (exit $ac_status); } && | |
4d4ff94c | 34517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34519 | (eval $ac_try) 2>&5 | |
34520 | ac_status=$? | |
34521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34522 | (exit $ac_status); }; } && | |
34523 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34525 | (eval $ac_try) 2>&5 | |
34526 | ac_status=$? | |
34527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34528 | (exit $ac_status); }; }; then | |
34529 | ||
34530 | wx_cv_var_timezone=_timezone | |
34531 | ||
34532 | else | |
34533 | echo "$as_me: failed program was:" >&5 | |
34534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34535 | ||
34536 | ||
34537 | cat >conftest.$ac_ext <<_ACEOF | |
34538 | /* confdefs.h. */ | |
34539 | _ACEOF | |
34540 | cat confdefs.h >>conftest.$ac_ext | |
34541 | cat >>conftest.$ac_ext <<_ACEOF | |
34542 | /* end confdefs.h. */ | |
34543 | ||
34544 | #include <time.h> | |
34545 | ||
34546 | int | |
34547 | main () | |
34548 | { | |
34549 | ||
34550 | int tz; | |
34551 | tz = __timezone; | |
34552 | ||
34553 | ; | |
34554 | return 0; | |
34555 | } | |
34556 | _ACEOF | |
34557 | rm -f conftest.$ac_objext | |
34558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34559 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34560 | ac_status=$? |
ac1cb8d3 VS |
34561 | grep -v '^ *+' conftest.er1 >conftest.err |
34562 | rm -f conftest.er1 | |
34563 | cat conftest.err >&5 | |
a848cd7e SC |
34564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34565 | (exit $ac_status); } && | |
4d4ff94c | 34566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34568 | (eval $ac_try) 2>&5 | |
34569 | ac_status=$? | |
34570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34571 | (exit $ac_status); }; } && | |
34572 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34574 | (eval $ac_try) 2>&5 | |
34575 | ac_status=$? | |
34576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34577 | (exit $ac_status); }; }; then | |
34578 | ||
34579 | wx_cv_var_timezone=__timezone | |
34580 | ||
34581 | else | |
34582 | echo "$as_me: failed program was:" >&5 | |
34583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34584 | ||
34585 | ||
34586 | if test "$USE_DOS" = 0 ; then | |
34587 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
34588 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
34589 | fi | |
34590 | ||
34591 | ||
34592 | fi | |
ac1cb8d3 | 34593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34594 | |
34595 | ||
34596 | fi | |
ac1cb8d3 | 34597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34598 | |
34599 | ||
34600 | fi | |
ac1cb8d3 | 34601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34602 | |
34603 | ||
34604 | fi | |
34605 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
34606 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
34607 | ||
34608 | if test "x$wx_cv_var_timezone" != x ; then | |
34609 | cat >>confdefs.h <<_ACEOF | |
34610 | #define WX_TIMEZONE $wx_cv_var_timezone | |
34611 | _ACEOF | |
34612 | ||
34613 | fi | |
34614 | ||
34615 | ||
34616 | for ac_func in localtime | |
34617 | do | |
34618 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34619 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34620 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34621 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34623 | else | |
34624 | cat >conftest.$ac_ext <<_ACEOF | |
34625 | /* confdefs.h. */ | |
34626 | _ACEOF | |
34627 | cat confdefs.h >>conftest.$ac_ext | |
34628 | cat >>conftest.$ac_ext <<_ACEOF | |
34629 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34630 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34631 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34632 | #define $ac_func innocuous_$ac_func | |
34633 | ||
a848cd7e SC |
34634 | /* System header to define __stub macros and hopefully few prototypes, |
34635 | which can conflict with char $ac_func (); below. | |
34636 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34637 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34638 | |
a848cd7e SC |
34639 | #ifdef __STDC__ |
34640 | # include <limits.h> | |
34641 | #else | |
34642 | # include <assert.h> | |
34643 | #endif | |
ac1cb8d3 VS |
34644 | |
34645 | #undef $ac_func | |
34646 | ||
a848cd7e SC |
34647 | /* Override any gcc2 internal prototype to avoid an error. */ |
34648 | #ifdef __cplusplus | |
34649 | extern "C" | |
34650 | { | |
34651 | #endif | |
34652 | /* We use char because int might match the return type of a gcc2 | |
34653 | builtin and then its argument prototype would still apply. */ | |
34654 | char $ac_func (); | |
34655 | /* The GNU C library defines this for functions which it implements | |
34656 | to always fail with ENOSYS. Some functions are actually named | |
34657 | something starting with __ and the normal name is an alias. */ | |
34658 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34659 | choke me | |
34660 | #else | |
34661 | char (*f) () = $ac_func; | |
34662 | #endif | |
34663 | #ifdef __cplusplus | |
34664 | } | |
34665 | #endif | |
34666 | ||
34667 | int | |
34668 | main () | |
34669 | { | |
34670 | return f != $ac_func; | |
34671 | ; | |
34672 | return 0; | |
34673 | } | |
34674 | _ACEOF | |
34675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34677 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34678 | ac_status=$? |
ac1cb8d3 VS |
34679 | grep -v '^ *+' conftest.er1 >conftest.err |
34680 | rm -f conftest.er1 | |
34681 | cat conftest.err >&5 | |
a848cd7e SC |
34682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34683 | (exit $ac_status); } && | |
4d4ff94c | 34684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34686 | (eval $ac_try) 2>&5 | |
34687 | ac_status=$? | |
34688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34689 | (exit $ac_status); }; } && | |
34690 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34692 | (eval $ac_try) 2>&5 | |
34693 | ac_status=$? | |
34694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34695 | (exit $ac_status); }; }; then | |
34696 | eval "$as_ac_var=yes" | |
34697 | else | |
34698 | echo "$as_me: failed program was:" >&5 | |
34699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34700 | ||
34701 | eval "$as_ac_var=no" | |
34702 | fi | |
ac1cb8d3 VS |
34703 | rm -f conftest.err conftest.$ac_objext \ |
34704 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34705 | fi |
34706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34707 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34708 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34709 | cat >>confdefs.h <<_ACEOF | |
34710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34711 | _ACEOF | |
34712 | ||
34713 | fi | |
34714 | done | |
34715 | ||
34716 | ||
34717 | if test "$ac_cv_func_localtime" = "yes"; then | |
34718 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
34719 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
34720 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
34721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34722 | else | |
34723 | ||
34724 | cat >conftest.$ac_ext <<_ACEOF | |
34725 | /* confdefs.h. */ | |
34726 | _ACEOF | |
34727 | cat confdefs.h >>conftest.$ac_ext | |
34728 | cat >>conftest.$ac_ext <<_ACEOF | |
34729 | /* end confdefs.h. */ | |
34730 | ||
34731 | #include <time.h> | |
34732 | ||
34733 | int | |
34734 | main () | |
34735 | { | |
34736 | ||
34737 | struct tm tm; | |
34738 | tm.tm_gmtoff++; | |
34739 | ||
34740 | ; | |
34741 | return 0; | |
34742 | } | |
34743 | _ACEOF | |
34744 | rm -f conftest.$ac_objext | |
34745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34746 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34747 | ac_status=$? |
ac1cb8d3 VS |
34748 | grep -v '^ *+' conftest.er1 >conftest.err |
34749 | rm -f conftest.er1 | |
34750 | cat conftest.err >&5 | |
a848cd7e SC |
34751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34752 | (exit $ac_status); } && | |
4d4ff94c | 34753 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34755 | (eval $ac_try) 2>&5 | |
34756 | ac_status=$? | |
34757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34758 | (exit $ac_status); }; } && | |
34759 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34761 | (eval $ac_try) 2>&5 | |
34762 | ac_status=$? | |
34763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34764 | (exit $ac_status); }; }; then | |
34765 | ||
34766 | wx_cv_struct_tm_has_gmtoff=yes | |
34767 | ||
34768 | else | |
34769 | echo "$as_me: failed program was:" >&5 | |
34770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34771 | ||
34772 | wx_cv_struct_tm_has_gmtoff=no | |
34773 | ||
34774 | fi | |
ac1cb8d3 | 34775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34776 | |
34777 | fi | |
34778 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
34779 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
34780 | fi | |
34781 | ||
34782 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
34783 | cat >>confdefs.h <<\_ACEOF | |
34784 | #define WX_GMTOFF_IN_TM 1 | |
34785 | _ACEOF | |
34786 | ||
34787 | fi | |
34788 | ||
34789 | ||
34790 | ||
34791 | for ac_func in gettimeofday ftime | |
34792 | do | |
34793 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34794 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34795 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34796 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34798 | else | |
34799 | cat >conftest.$ac_ext <<_ACEOF | |
34800 | /* confdefs.h. */ | |
34801 | _ACEOF | |
34802 | cat confdefs.h >>conftest.$ac_ext | |
34803 | cat >>conftest.$ac_ext <<_ACEOF | |
34804 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34805 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34806 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34807 | #define $ac_func innocuous_$ac_func | |
34808 | ||
a848cd7e SC |
34809 | /* System header to define __stub macros and hopefully few prototypes, |
34810 | which can conflict with char $ac_func (); below. | |
34811 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34812 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34813 | |
a848cd7e SC |
34814 | #ifdef __STDC__ |
34815 | # include <limits.h> | |
34816 | #else | |
34817 | # include <assert.h> | |
34818 | #endif | |
ac1cb8d3 VS |
34819 | |
34820 | #undef $ac_func | |
34821 | ||
a848cd7e SC |
34822 | /* Override any gcc2 internal prototype to avoid an error. */ |
34823 | #ifdef __cplusplus | |
34824 | extern "C" | |
34825 | { | |
34826 | #endif | |
34827 | /* We use char because int might match the return type of a gcc2 | |
34828 | builtin and then its argument prototype would still apply. */ | |
34829 | char $ac_func (); | |
34830 | /* The GNU C library defines this for functions which it implements | |
34831 | to always fail with ENOSYS. Some functions are actually named | |
34832 | something starting with __ and the normal name is an alias. */ | |
34833 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34834 | choke me | |
34835 | #else | |
34836 | char (*f) () = $ac_func; | |
34837 | #endif | |
34838 | #ifdef __cplusplus | |
34839 | } | |
34840 | #endif | |
34841 | ||
34842 | int | |
34843 | main () | |
34844 | { | |
34845 | return f != $ac_func; | |
34846 | ; | |
34847 | return 0; | |
34848 | } | |
34849 | _ACEOF | |
34850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34852 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34853 | ac_status=$? |
ac1cb8d3 VS |
34854 | grep -v '^ *+' conftest.er1 >conftest.err |
34855 | rm -f conftest.er1 | |
34856 | cat conftest.err >&5 | |
a848cd7e SC |
34857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34858 | (exit $ac_status); } && | |
4d4ff94c | 34859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34861 | (eval $ac_try) 2>&5 | |
34862 | ac_status=$? | |
34863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34864 | (exit $ac_status); }; } && | |
34865 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34867 | (eval $ac_try) 2>&5 | |
34868 | ac_status=$? | |
34869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34870 | (exit $ac_status); }; }; then | |
34871 | eval "$as_ac_var=yes" | |
34872 | else | |
34873 | echo "$as_me: failed program was:" >&5 | |
34874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34875 | ||
34876 | eval "$as_ac_var=no" | |
34877 | fi | |
ac1cb8d3 VS |
34878 | rm -f conftest.err conftest.$ac_objext \ |
34879 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34880 | fi |
34881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34882 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34883 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34884 | cat >>confdefs.h <<_ACEOF | |
34885 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34886 | _ACEOF | |
34887 | break | |
34888 | fi | |
34889 | done | |
34890 | ||
34891 | ||
34892 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
34893 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
34894 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
34895 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
34896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34897 | else | |
34898 | ||
34899 | ||
34900 | ||
34901 | ac_ext=cc | |
34902 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34906 | ||
34907 | ||
34908 | cat >conftest.$ac_ext <<_ACEOF | |
34909 | /* confdefs.h. */ | |
34910 | _ACEOF | |
34911 | cat confdefs.h >>conftest.$ac_ext | |
34912 | cat >>conftest.$ac_ext <<_ACEOF | |
34913 | /* end confdefs.h. */ | |
34914 | ||
34915 | #include <sys/time.h> | |
34916 | #include <unistd.h> | |
34917 | ||
34918 | int | |
34919 | main () | |
34920 | { | |
34921 | ||
34922 | struct timeval tv; | |
34923 | gettimeofday(&tv, NULL); | |
34924 | ||
34925 | ; | |
34926 | return 0; | |
34927 | } | |
34928 | _ACEOF | |
34929 | rm -f conftest.$ac_objext | |
34930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34931 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34932 | ac_status=$? |
ac1cb8d3 VS |
34933 | grep -v '^ *+' conftest.er1 >conftest.err |
34934 | rm -f conftest.er1 | |
34935 | cat conftest.err >&5 | |
a848cd7e SC |
34936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34937 | (exit $ac_status); } && | |
4d4ff94c | 34938 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34940 | (eval $ac_try) 2>&5 | |
34941 | ac_status=$? | |
34942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34943 | (exit $ac_status); }; } && | |
34944 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34946 | (eval $ac_try) 2>&5 | |
34947 | ac_status=$? | |
34948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34949 | (exit $ac_status); }; }; then | |
34950 | wx_cv_func_gettimeofday_has_2_args=yes | |
34951 | else | |
34952 | echo "$as_me: failed program was:" >&5 | |
34953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34954 | ||
34955 | cat >conftest.$ac_ext <<_ACEOF | |
34956 | /* confdefs.h. */ | |
34957 | _ACEOF | |
34958 | cat confdefs.h >>conftest.$ac_ext | |
34959 | cat >>conftest.$ac_ext <<_ACEOF | |
34960 | /* end confdefs.h. */ | |
34961 | ||
34962 | #include <sys/time.h> | |
34963 | #include <unistd.h> | |
34964 | ||
34965 | int | |
34966 | main () | |
34967 | { | |
34968 | ||
34969 | struct timeval tv; | |
34970 | gettimeofday(&tv); | |
34971 | ||
34972 | ; | |
34973 | return 0; | |
34974 | } | |
34975 | _ACEOF | |
34976 | rm -f conftest.$ac_objext | |
34977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34978 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34979 | ac_status=$? |
ac1cb8d3 VS |
34980 | grep -v '^ *+' conftest.er1 >conftest.err |
34981 | rm -f conftest.er1 | |
34982 | cat conftest.err >&5 | |
a848cd7e SC |
34983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34984 | (exit $ac_status); } && | |
4d4ff94c | 34985 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34987 | (eval $ac_try) 2>&5 | |
34988 | ac_status=$? | |
34989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34990 | (exit $ac_status); }; } && | |
34991 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34993 | (eval $ac_try) 2>&5 | |
34994 | ac_status=$? | |
34995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34996 | (exit $ac_status); }; }; then | |
34997 | wx_cv_func_gettimeofday_has_2_args=no | |
34998 | else | |
34999 | echo "$as_me: failed program was:" >&5 | |
35000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35001 | ||
35002 | ||
35003 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35004 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35005 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35006 | ||
35007 | ||
35008 | fi | |
ac1cb8d3 | 35009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35010 | |
35011 | fi | |
ac1cb8d3 | 35012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35013 | ac_ext=c |
35014 | ac_cpp='$CPP $CPPFLAGS' | |
35015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35018 | ||
35019 | ||
35020 | fi | |
35021 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35022 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35023 | ||
35024 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35025 | cat >>confdefs.h <<\_ACEOF | |
35026 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35027 | _ACEOF | |
35028 | ||
35029 | fi | |
35030 | fi | |
35031 | ||
35032 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35033 | fi | |
35034 | ||
35035 | ||
35036 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35037 | if test "$wxUSE_MGL" = "1"; then | |
35038 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35039 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35040 | wxUSE_SOCKETS="no" | |
35041 | fi | |
35042 | fi | |
35043 | ||
35044 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35045 | if test "$TOOLKIT" != "MSW"; then | |
35046 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35047 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35048 | if test "${ac_cv_func_socket+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 socket to an innocuous variant, in case <limits.h> declares socket. |
35058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35059 | #define socket innocuous_socket | |
35060 | ||
a848cd7e SC |
35061 | /* System header to define __stub macros and hopefully few prototypes, |
35062 | which can conflict with char socket (); 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 socket | |
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 socket (); | |
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_socket) || defined (__stub___socket) | |
35086 | choke me | |
35087 | #else | |
35088 | char (*f) () = socket; | |
35089 | #endif | |
35090 | #ifdef __cplusplus | |
35091 | } | |
35092 | #endif | |
35093 | ||
35094 | int | |
35095 | main () | |
35096 | { | |
35097 | return f != socket; | |
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); } && | |
4d4ff94c | 35111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35113 | (eval $ac_try) 2>&5 | |
35114 | ac_status=$? | |
35115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35116 | (exit $ac_status); }; } && | |
35117 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35119 | (eval $ac_try) 2>&5 | |
35120 | ac_status=$? | |
35121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35122 | (exit $ac_status); }; }; then | |
35123 | ac_cv_func_socket=yes | |
35124 | else | |
35125 | echo "$as_me: failed program was:" >&5 | |
35126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35127 | ||
35128 | ac_cv_func_socket=no | |
35129 | fi | |
ac1cb8d3 VS |
35130 | rm -f conftest.err conftest.$ac_objext \ |
35131 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35132 | fi |
35133 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35134 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35135 | if test $ac_cv_func_socket = yes; then | |
35136 | : | |
35137 | else | |
35138 | ||
35139 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35140 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35141 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35143 | else | |
35144 | ac_check_lib_save_LIBS=$LIBS | |
35145 | LIBS="-lsocket $LIBS" | |
35146 | cat >conftest.$ac_ext <<_ACEOF | |
35147 | /* confdefs.h. */ | |
35148 | _ACEOF | |
35149 | cat confdefs.h >>conftest.$ac_ext | |
35150 | cat >>conftest.$ac_ext <<_ACEOF | |
35151 | /* end confdefs.h. */ | |
35152 | ||
35153 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35154 | #ifdef __cplusplus | |
35155 | extern "C" | |
35156 | #endif | |
35157 | /* We use char because int might match the return type of a gcc2 | |
35158 | builtin and then its argument prototype would still apply. */ | |
35159 | char socket (); | |
35160 | int | |
35161 | main () | |
35162 | { | |
35163 | socket (); | |
35164 | ; | |
35165 | return 0; | |
35166 | } | |
35167 | _ACEOF | |
35168 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35170 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35171 | ac_status=$? |
ac1cb8d3 VS |
35172 | grep -v '^ *+' conftest.er1 >conftest.err |
35173 | rm -f conftest.er1 | |
35174 | cat conftest.err >&5 | |
a848cd7e SC |
35175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35176 | (exit $ac_status); } && | |
4d4ff94c | 35177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35179 | (eval $ac_try) 2>&5 | |
35180 | ac_status=$? | |
35181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35182 | (exit $ac_status); }; } && | |
35183 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35185 | (eval $ac_try) 2>&5 | |
35186 | ac_status=$? | |
35187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35188 | (exit $ac_status); }; }; then | |
35189 | ac_cv_lib_socket_socket=yes | |
35190 | else | |
35191 | echo "$as_me: failed program was:" >&5 | |
35192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35193 | ||
35194 | ac_cv_lib_socket_socket=no | |
35195 | fi | |
ac1cb8d3 VS |
35196 | rm -f conftest.err conftest.$ac_objext \ |
35197 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35198 | LIBS=$ac_check_lib_save_LIBS |
35199 | fi | |
35200 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35201 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35202 | if test $ac_cv_lib_socket_socket = yes; then | |
35203 | if test "$INET_LINK" != " -lsocket"; then | |
35204 | INET_LINK="$INET_LINK -lsocket" | |
35205 | fi | |
35206 | else | |
35207 | ||
35208 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35209 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35210 | wxUSE_SOCKETS=no | |
35211 | ||
35212 | ||
35213 | fi | |
35214 | ||
35215 | ||
35216 | ||
35217 | fi | |
35218 | ||
35219 | fi | |
35220 | fi | |
35221 | ||
35222 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35223 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
35224 | ac_ext=cc |
35225 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35226 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35227 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35228 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35229 | ||
35230 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
35231 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
35232 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35234 | else | |
35235 | ||
35236 | cat >conftest.$ac_ext <<_ACEOF | |
35237 | /* confdefs.h. */ | |
35238 | _ACEOF | |
35239 | cat confdefs.h >>conftest.$ac_ext | |
35240 | cat >>conftest.$ac_ext <<_ACEOF | |
35241 | /* end confdefs.h. */ | |
35242 | ||
35243 | #include <sys/types.h> | |
35244 | #include <sys/socket.h> | |
35245 | ||
35246 | int | |
35247 | main () | |
35248 | { | |
35249 | ||
35250 | socklen_t len; | |
35251 | getsockname(0, 0, &len); | |
35252 | ||
35253 | ; | |
35254 | return 0; | |
35255 | } | |
35256 | _ACEOF | |
35257 | rm -f conftest.$ac_objext | |
35258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35260 | ac_status=$? |
ac1cb8d3 VS |
35261 | grep -v '^ *+' conftest.er1 >conftest.err |
35262 | rm -f conftest.er1 | |
35263 | cat conftest.err >&5 | |
a848cd7e SC |
35264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35265 | (exit $ac_status); } && | |
4d4ff94c | 35266 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35268 | (eval $ac_try) 2>&5 | |
35269 | ac_status=$? | |
35270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35271 | (exit $ac_status); }; } && | |
35272 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35274 | (eval $ac_try) 2>&5 | |
35275 | ac_status=$? | |
35276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35277 | (exit $ac_status); }; }; then | |
35278 | wx_cv_type_getsockname3=socklen_t | |
35279 | else | |
35280 | echo "$as_me: failed program was:" >&5 | |
35281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35282 | ||
35283 | ||
35284 | CFLAGS_OLD="$CFLAGS" | |
35285 | if test "$GCC" = yes ; then | |
35286 | CFLAGS="$CFLAGS -Werror" | |
35287 | fi | |
35288 | ||
35289 | cat >conftest.$ac_ext <<_ACEOF | |
35290 | /* confdefs.h. */ | |
35291 | _ACEOF | |
35292 | cat confdefs.h >>conftest.$ac_ext | |
35293 | cat >>conftest.$ac_ext <<_ACEOF | |
35294 | /* end confdefs.h. */ | |
35295 | ||
35296 | #include <sys/types.h> | |
35297 | #include <sys/socket.h> | |
35298 | ||
35299 | int | |
35300 | main () | |
35301 | { | |
35302 | ||
35303 | size_t len; | |
35304 | getsockname(0, 0, &len); | |
35305 | ||
35306 | ; | |
35307 | return 0; | |
35308 | } | |
35309 | _ACEOF | |
35310 | rm -f conftest.$ac_objext | |
35311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35312 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35313 | ac_status=$? |
ac1cb8d3 VS |
35314 | grep -v '^ *+' conftest.er1 >conftest.err |
35315 | rm -f conftest.er1 | |
35316 | cat conftest.err >&5 | |
a848cd7e SC |
35317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35318 | (exit $ac_status); } && | |
4d4ff94c | 35319 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35321 | (eval $ac_try) 2>&5 | |
35322 | ac_status=$? | |
35323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35324 | (exit $ac_status); }; } && | |
35325 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35327 | (eval $ac_try) 2>&5 | |
35328 | ac_status=$? | |
35329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35330 | (exit $ac_status); }; }; then | |
35331 | wx_cv_type_getsockname3=size_t | |
35332 | else | |
35333 | echo "$as_me: failed program was:" >&5 | |
35334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35335 | ||
35336 | cat >conftest.$ac_ext <<_ACEOF | |
35337 | /* confdefs.h. */ | |
35338 | _ACEOF | |
35339 | cat confdefs.h >>conftest.$ac_ext | |
35340 | cat >>conftest.$ac_ext <<_ACEOF | |
35341 | /* end confdefs.h. */ | |
35342 | ||
35343 | #include <sys/types.h> | |
35344 | #include <sys/socket.h> | |
35345 | ||
35346 | int | |
35347 | main () | |
35348 | { | |
35349 | ||
35350 | int len; | |
35351 | getsockname(0, 0, &len); | |
35352 | ||
35353 | ; | |
35354 | return 0; | |
35355 | } | |
35356 | _ACEOF | |
35357 | rm -f conftest.$ac_objext | |
35358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35359 | (eval $ac_compile) 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); } && | |
4d4ff94c | 35366 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35368 | (eval $ac_try) 2>&5 | |
35369 | ac_status=$? | |
35370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35371 | (exit $ac_status); }; } && | |
35372 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35374 | (eval $ac_try) 2>&5 | |
35375 | ac_status=$? | |
35376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35377 | (exit $ac_status); }; }; then | |
35378 | wx_cv_type_getsockname3=int | |
35379 | else | |
35380 | echo "$as_me: failed program was:" >&5 | |
35381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35382 | ||
35383 | wx_cv_type_getsockname3=unknown | |
35384 | ||
35385 | fi | |
ac1cb8d3 | 35386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35387 | |
35388 | fi | |
ac1cb8d3 | 35389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35390 | |
35391 | CFLAGS="$CFLAGS_OLD" | |
35392 | ||
35393 | ||
35394 | fi | |
ac1cb8d3 | 35395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35396 | |
35397 | fi | |
35398 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35399 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35400 | ||
35401 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35402 | wxUSE_SOCKETS=no | |
35403 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35404 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35405 | else | |
35406 | cat >>confdefs.h <<_ACEOF | |
35407 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35408 | _ACEOF | |
35409 | ||
35410 | fi | |
4d4ff94c VZ |
35411 | ac_ext=c |
35412 | ac_cpp='$CPP $CPPFLAGS' | |
35413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35416 | ||
a848cd7e SC |
35417 | fi |
35418 | fi | |
35419 | ||
35420 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35421 | cat >>confdefs.h <<\_ACEOF | |
35422 | #define wxUSE_SOCKETS 1 | |
35423 | _ACEOF | |
35424 | ||
35425 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35426 | fi | |
35427 | ||
35428 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35429 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35430 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35431 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35432 | wxUSE_PROTOCOL=no | |
35433 | fi | |
35434 | fi | |
35435 | ||
35436 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35437 | cat >>confdefs.h <<\_ACEOF | |
35438 | #define wxUSE_PROTOCOL 1 | |
35439 | _ACEOF | |
35440 | ||
35441 | ||
35442 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35443 | cat >>confdefs.h <<\_ACEOF | |
35444 | #define wxUSE_PROTOCOL_HTTP 1 | |
35445 | _ACEOF | |
35446 | ||
35447 | fi | |
35448 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35449 | cat >>confdefs.h <<\_ACEOF | |
35450 | #define wxUSE_PROTOCOL_FTP 1 | |
35451 | _ACEOF | |
35452 | ||
35453 | fi | |
35454 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35455 | cat >>confdefs.h <<\_ACEOF | |
35456 | #define wxUSE_PROTOCOL_FILE 1 | |
35457 | _ACEOF | |
35458 | ||
35459 | fi | |
35460 | else | |
35461 | if test "$wxUSE_FS_INET" = "yes"; then | |
35462 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35463 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35464 | wxUSE_FS_INET="no" | |
35465 | fi | |
35466 | fi | |
35467 | ||
35468 | if test "$wxUSE_URL" = "yes"; then | |
35469 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35470 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35471 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35472 | wxUSE_URL=no | |
35473 | fi | |
35474 | if test "$wxUSE_URL" = "yes"; then | |
35475 | cat >>confdefs.h <<\_ACEOF | |
35476 | #define wxUSE_URL 1 | |
35477 | _ACEOF | |
35478 | ||
35479 | fi | |
35480 | fi | |
35481 | ||
35482 | if test "$wxUSE_FS_INET" = "yes"; then | |
35483 | cat >>confdefs.h <<\_ACEOF | |
35484 | #define wxUSE_FS_INET 1 | |
35485 | _ACEOF | |
35486 | ||
35487 | fi | |
35488 | ||
35489 | ||
35490 | if test "$wxUSE_GUI" = "yes"; then | |
35491 | ||
35492 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35493 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35494 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35495 | wxUSE_JOYSTICK=no | |
35496 | fi | |
35497 | ||
35498 | if test "$TOOLKIT" != "MSW"; then | |
35499 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35500 | ||
35501 | for ac_header in linux/joystick.h | |
35502 | do | |
35503 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35509 | fi | |
35510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35511 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35512 | else | |
35513 | # Is the header compilable? | |
35514 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35515 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35516 | cat >conftest.$ac_ext <<_ACEOF | |
35517 | /* confdefs.h. */ | |
35518 | _ACEOF | |
35519 | cat confdefs.h >>conftest.$ac_ext | |
35520 | cat >>conftest.$ac_ext <<_ACEOF | |
35521 | /* end confdefs.h. */ | |
35522 | $ac_includes_default | |
35523 | #include <$ac_header> | |
35524 | _ACEOF | |
35525 | rm -f conftest.$ac_objext | |
35526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35528 | ac_status=$? |
ac1cb8d3 VS |
35529 | grep -v '^ *+' conftest.er1 >conftest.err |
35530 | rm -f conftest.er1 | |
35531 | cat conftest.err >&5 | |
a848cd7e SC |
35532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35533 | (exit $ac_status); } && | |
4d4ff94c | 35534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35536 | (eval $ac_try) 2>&5 | |
35537 | ac_status=$? | |
35538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35539 | (exit $ac_status); }; } && | |
35540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35542 | (eval $ac_try) 2>&5 | |
35543 | ac_status=$? | |
35544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35545 | (exit $ac_status); }; }; then | |
35546 | ac_header_compiler=yes | |
35547 | else | |
35548 | echo "$as_me: failed program was:" >&5 | |
35549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35550 | ||
35551 | ac_header_compiler=no | |
35552 | fi | |
ac1cb8d3 | 35553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35554 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35555 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35556 | ||
35557 | # Is the header present? | |
35558 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35559 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35560 | cat >conftest.$ac_ext <<_ACEOF | |
35561 | /* confdefs.h. */ | |
35562 | _ACEOF | |
35563 | cat confdefs.h >>conftest.$ac_ext | |
35564 | cat >>conftest.$ac_ext <<_ACEOF | |
35565 | /* end confdefs.h. */ | |
35566 | #include <$ac_header> | |
35567 | _ACEOF | |
35568 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35569 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35570 | ac_status=$? | |
35571 | grep -v '^ *+' conftest.er1 >conftest.err | |
35572 | rm -f conftest.er1 | |
35573 | cat conftest.err >&5 | |
35574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35575 | (exit $ac_status); } >/dev/null; then | |
35576 | if test -s conftest.err; then | |
35577 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35578 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35579 | else |
35580 | ac_cpp_err= | |
35581 | fi | |
35582 | else | |
35583 | ac_cpp_err=yes | |
35584 | fi | |
35585 | if test -z "$ac_cpp_err"; then | |
35586 | ac_header_preproc=yes | |
35587 | else | |
35588 | echo "$as_me: failed program was:" >&5 | |
35589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35590 | ||
35591 | ac_header_preproc=no | |
35592 | fi | |
35593 | rm -f conftest.err conftest.$ac_ext | |
35594 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35595 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35596 | ||
35597 | # So? What about this header? | |
ac1cb8d3 VS |
35598 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35599 | yes:no: ) | |
a848cd7e SC |
35600 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35601 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35603 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35604 | ac_header_preproc=yes | |
a848cd7e | 35605 | ;; |
ac1cb8d3 | 35606 | no:yes:* ) |
a848cd7e SC |
35607 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35608 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35609 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35610 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35611 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35612 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35613 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35614 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35615 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35616 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35617 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35618 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35619 | ( |
35620 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35621 | ## ----------------------------------------- ## |
35622 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35623 | ## ----------------------------------------- ## | |
a848cd7e SC |
35624 | _ASBOX |
35625 | ) | | |
35626 | sed "s/^/$as_me: WARNING: /" >&2 | |
35627 | ;; | |
35628 | esac | |
35629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35633 | else | |
ac1cb8d3 | 35634 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35635 | fi |
35636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35637 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35638 | ||
35639 | fi | |
35640 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35641 | cat >>confdefs.h <<_ACEOF | |
35642 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35643 | _ACEOF | |
35644 | ||
35645 | fi | |
35646 | ||
35647 | done | |
35648 | ||
35649 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
35650 | wxUSE_JOYSTICK=no | |
35651 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
35652 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
35653 | fi | |
35654 | fi | |
35655 | fi | |
35656 | ||
35657 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35658 | cat >>confdefs.h <<\_ACEOF | |
35659 | #define wxUSE_JOYSTICK 1 | |
35660 | _ACEOF | |
35661 | ||
35662 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
35663 | fi | |
35664 | fi | |
35665 | ||
35666 | ||
35667 | ||
35668 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
35669 | cat >>confdefs.h <<\_ACEOF | |
35670 | #define wxUSE_FONTMAP 1 | |
35671 | _ACEOF | |
35672 | ||
35673 | fi | |
35674 | ||
35675 | if test "$wxUSE_UNICODE" = "yes" ; then | |
35676 | cat >>confdefs.h <<\_ACEOF | |
35677 | #define wxUSE_UNICODE 1 | |
35678 | _ACEOF | |
35679 | ||
35680 | ||
35681 | if test "$USE_WIN32" != 1; then | |
35682 | wxUSE_UNICODE_MSLU=no | |
35683 | fi | |
35684 | ||
35685 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
35686 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
35687 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
35688 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
35689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35690 | else | |
35691 | ac_check_lib_save_LIBS=$LIBS | |
35692 | LIBS="-lunicows $LIBS" | |
35693 | cat >conftest.$ac_ext <<_ACEOF | |
35694 | /* confdefs.h. */ | |
35695 | _ACEOF | |
35696 | cat confdefs.h >>conftest.$ac_ext | |
35697 | cat >>conftest.$ac_ext <<_ACEOF | |
35698 | /* end confdefs.h. */ | |
35699 | ||
35700 | ||
35701 | int | |
35702 | main () | |
35703 | { | |
35704 | main (); | |
35705 | ; | |
35706 | return 0; | |
35707 | } | |
35708 | _ACEOF | |
35709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35711 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35712 | ac_status=$? |
ac1cb8d3 VS |
35713 | grep -v '^ *+' conftest.er1 >conftest.err |
35714 | rm -f conftest.er1 | |
35715 | cat conftest.err >&5 | |
a848cd7e SC |
35716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35717 | (exit $ac_status); } && | |
4d4ff94c | 35718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35720 | (eval $ac_try) 2>&5 | |
35721 | ac_status=$? | |
35722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35723 | (exit $ac_status); }; } && | |
35724 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35726 | (eval $ac_try) 2>&5 | |
35727 | ac_status=$? | |
35728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35729 | (exit $ac_status); }; }; then | |
35730 | ac_cv_lib_unicows_main=yes | |
35731 | else | |
35732 | echo "$as_me: failed program was:" >&5 | |
35733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35734 | ||
35735 | ac_cv_lib_unicows_main=no | |
35736 | fi | |
ac1cb8d3 VS |
35737 | rm -f conftest.err conftest.$ac_objext \ |
35738 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35739 | LIBS=$ac_check_lib_save_LIBS |
35740 | fi | |
35741 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
35742 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
35743 | if test $ac_cv_lib_unicows_main = yes; then | |
35744 | ||
35745 | cat >>confdefs.h <<\_ACEOF | |
35746 | #define wxUSE_UNICODE_MSLU 1 | |
35747 | _ACEOF | |
35748 | ||
35749 | ||
35750 | else | |
35751 | ||
35752 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35753 | Applications will only run on Windows NT/2000/XP!" >&5 | |
35754 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35755 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
35756 | wxUSE_UNICODE_MSLU=no | |
35757 | ||
35758 | fi | |
35759 | ||
35760 | fi | |
35761 | fi | |
35762 | ||
35763 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
35764 | cat >>confdefs.h <<\_ACEOF | |
35765 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
35766 | _ACEOF | |
35767 | ||
35768 | fi | |
35769 | ||
35770 | ||
35771 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
35772 | cat >>confdefs.h <<\_ACEOF | |
35773 | #define wxUSE_POSTSCRIPT 1 | |
35774 | _ACEOF | |
35775 | ||
35776 | fi | |
35777 | ||
35778 | cat >>confdefs.h <<\_ACEOF | |
35779 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
35780 | _ACEOF | |
35781 | ||
35782 | ||
35783 | cat >>confdefs.h <<\_ACEOF | |
35784 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
35785 | _ACEOF | |
35786 | ||
35787 | ||
35788 | ||
35789 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
35790 | cat >>confdefs.h <<\_ACEOF | |
35791 | #define wxUSE_CONSTRAINTS 1 | |
35792 | _ACEOF | |
35793 | ||
35794 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
35795 | fi | |
35796 | ||
8a7b1113 VZ |
35797 | if test "$wxUSE_MDI" = "yes"; then |
35798 | cat >>confdefs.h <<\_ACEOF | |
35799 | #define wxUSE_MDI 1 | |
35800 | _ACEOF | |
35801 | ||
35802 | ||
35803 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
35804 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
35805 | #define wxUSE_MDI_ARCHITECTURE 1 |
35806 | _ACEOF | |
35807 | ||
8a7b1113 VZ |
35808 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
35809 | fi | |
a848cd7e SC |
35810 | fi |
35811 | ||
35812 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
35813 | cat >>confdefs.h <<\_ACEOF | |
35814 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
35815 | _ACEOF | |
35816 | ||
35817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
35818 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
35819 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
35820 | fi | |
35821 | fi | |
35822 | ||
35823 | if test "$wxUSE_HELP" = "yes"; then | |
35824 | cat >>confdefs.h <<\_ACEOF | |
35825 | #define wxUSE_HELP 1 | |
35826 | _ACEOF | |
35827 | ||
35828 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
35829 | ||
35830 | if test "$wxUSE_MSW" = 1; then | |
35831 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
35832 | cat >>confdefs.h <<\_ACEOF | |
35833 | #define wxUSE_MS_HTML_HELP 1 | |
35834 | _ACEOF | |
35835 | ||
35836 | fi | |
35837 | fi | |
35838 | ||
35839 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
35840 | if test "$wxUSE_HTML" = "yes"; then | |
35841 | cat >>confdefs.h <<\_ACEOF | |
35842 | #define wxUSE_WXHTML_HELP 1 | |
35843 | _ACEOF | |
35844 | ||
35845 | else | |
35846 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
35847 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
35848 | wxUSE_WXHTML_HELP=no | |
35849 | fi | |
35850 | fi | |
35851 | fi | |
35852 | ||
35853 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
35854 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
35855 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
35856 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
35857 | else | |
35858 | cat >>confdefs.h <<\_ACEOF | |
35859 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
35860 | _ACEOF | |
35861 | ||
35862 | fi | |
35863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
35864 | fi | |
35865 | ||
35866 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
35867 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
35868 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
35869 | { (exit 1); exit 1; }; } | |
35870 | fi | |
35871 | ||
35872 | ||
35873 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
35874 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
35875 | -o "$wxUSE_OLE" = "yes" \ | |
35876 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
35877 | ||
35878 | for ac_header in ole2.h | |
35879 | do | |
35880 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35882 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35883 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35884 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35886 | fi | |
35887 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35888 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35889 | else | |
35890 | # Is the header compilable? | |
35891 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35892 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35893 | cat >conftest.$ac_ext <<_ACEOF | |
35894 | /* confdefs.h. */ | |
35895 | _ACEOF | |
35896 | cat confdefs.h >>conftest.$ac_ext | |
35897 | cat >>conftest.$ac_ext <<_ACEOF | |
35898 | /* end confdefs.h. */ | |
35899 | $ac_includes_default | |
35900 | #include <$ac_header> | |
35901 | _ACEOF | |
35902 | rm -f conftest.$ac_objext | |
35903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35904 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35905 | ac_status=$? |
ac1cb8d3 VS |
35906 | grep -v '^ *+' conftest.er1 >conftest.err |
35907 | rm -f conftest.er1 | |
35908 | cat conftest.err >&5 | |
a848cd7e SC |
35909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35910 | (exit $ac_status); } && | |
4d4ff94c | 35911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35913 | (eval $ac_try) 2>&5 | |
35914 | ac_status=$? | |
35915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35916 | (exit $ac_status); }; } && | |
35917 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35919 | (eval $ac_try) 2>&5 | |
35920 | ac_status=$? | |
35921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35922 | (exit $ac_status); }; }; then | |
35923 | ac_header_compiler=yes | |
35924 | else | |
35925 | echo "$as_me: failed program was:" >&5 | |
35926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35927 | ||
35928 | ac_header_compiler=no | |
35929 | fi | |
ac1cb8d3 | 35930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35931 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35932 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35933 | ||
35934 | # Is the header present? | |
35935 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35936 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35937 | cat >conftest.$ac_ext <<_ACEOF | |
35938 | /* confdefs.h. */ | |
35939 | _ACEOF | |
35940 | cat confdefs.h >>conftest.$ac_ext | |
35941 | cat >>conftest.$ac_ext <<_ACEOF | |
35942 | /* end confdefs.h. */ | |
35943 | #include <$ac_header> | |
35944 | _ACEOF | |
35945 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35946 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35947 | ac_status=$? | |
35948 | grep -v '^ *+' conftest.er1 >conftest.err | |
35949 | rm -f conftest.er1 | |
35950 | cat conftest.err >&5 | |
35951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35952 | (exit $ac_status); } >/dev/null; then | |
35953 | if test -s conftest.err; then | |
35954 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35955 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35956 | else |
35957 | ac_cpp_err= | |
35958 | fi | |
35959 | else | |
35960 | ac_cpp_err=yes | |
35961 | fi | |
35962 | if test -z "$ac_cpp_err"; then | |
35963 | ac_header_preproc=yes | |
35964 | else | |
35965 | echo "$as_me: failed program was:" >&5 | |
35966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35967 | ||
35968 | ac_header_preproc=no | |
35969 | fi | |
35970 | rm -f conftest.err conftest.$ac_ext | |
35971 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35972 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35973 | ||
35974 | # So? What about this header? | |
ac1cb8d3 VS |
35975 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35976 | yes:no: ) | |
a848cd7e SC |
35977 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35978 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35980 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35981 | ac_header_preproc=yes | |
a848cd7e | 35982 | ;; |
ac1cb8d3 | 35983 | no:yes:* ) |
a848cd7e SC |
35984 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35985 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35986 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35987 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35988 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35989 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35990 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35991 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35992 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35993 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35994 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35995 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35996 | ( |
35997 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35998 | ## ----------------------------------------- ## |
35999 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36000 | ## ----------------------------------------- ## | |
a848cd7e SC |
36001 | _ASBOX |
36002 | ) | | |
36003 | sed "s/^/$as_me: WARNING: /" >&2 | |
36004 | ;; | |
36005 | esac | |
36006 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36007 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36010 | else | |
ac1cb8d3 | 36011 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36012 | fi |
36013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36014 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36015 | ||
36016 | fi | |
36017 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36018 | cat >>confdefs.h <<_ACEOF | |
36019 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36020 | _ACEOF | |
36021 | ||
36022 | fi | |
36023 | ||
36024 | done | |
36025 | ||
36026 | ||
36027 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36028 | if test "$GCC" = yes ; then | |
36029 | ||
36030 | ||
36031 | ac_ext=cc | |
36032 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36033 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36034 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36035 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36036 | ||
36037 | ||
36038 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36039 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36040 | cat >conftest.$ac_ext <<_ACEOF | |
36041 | /* confdefs.h. */ | |
36042 | _ACEOF | |
36043 | cat confdefs.h >>conftest.$ac_ext | |
36044 | cat >>conftest.$ac_ext <<_ACEOF | |
36045 | /* end confdefs.h. */ | |
36046 | #include <windows.h> | |
36047 | #include <ole2.h> | |
36048 | int | |
36049 | main () | |
36050 | { | |
36051 | ||
36052 | ; | |
36053 | return 0; | |
36054 | } | |
36055 | _ACEOF | |
36056 | rm -f conftest.$ac_objext | |
36057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36059 | ac_status=$? |
ac1cb8d3 VS |
36060 | grep -v '^ *+' conftest.er1 >conftest.err |
36061 | rm -f conftest.er1 | |
36062 | cat conftest.err >&5 | |
a848cd7e SC |
36063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36064 | (exit $ac_status); } && | |
4d4ff94c | 36065 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36067 | (eval $ac_try) 2>&5 | |
36068 | ac_status=$? | |
36069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36070 | (exit $ac_status); }; } && | |
36071 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36073 | (eval $ac_try) 2>&5 | |
36074 | ac_status=$? | |
36075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36076 | (exit $ac_status); }; }; then | |
36077 | echo "$as_me:$LINENO: result: no" >&5 | |
36078 | echo "${ECHO_T}no" >&6 | |
36079 | else | |
36080 | echo "$as_me: failed program was:" >&5 | |
36081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36082 | ||
36083 | echo "$as_me:$LINENO: result: yes" >&5 | |
36084 | echo "${ECHO_T}yes" >&6 | |
36085 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36086 | fi | |
ac1cb8d3 | 36087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36088 | ac_ext=c |
36089 | ac_cpp='$CPP $CPPFLAGS' | |
36090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36093 | ||
36094 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
36095 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
36096 | if test "$wxUSE_OLE" = "yes" ; then | |
36097 | cat >>confdefs.h <<\_ACEOF | |
36098 | #define wxUSE_OLE 1 | |
36099 | _ACEOF | |
36100 | ||
36101 | fi | |
36102 | fi | |
36103 | ||
36104 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36105 | cat >>confdefs.h <<\_ACEOF | |
36106 | #define wxUSE_DATAOBJ 1 | |
36107 | _ACEOF | |
36108 | ||
36109 | fi | |
36110 | else | |
36111 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36112 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36113 | ||
36114 | wxUSE_CLIPBOARD=no | |
36115 | wxUSE_DRAG_AND_DROP=no | |
36116 | wxUSE_DATAOBJ=no | |
36117 | wxUSE_OLE=no | |
36118 | fi | |
36119 | ||
36120 | if test "$wxUSE_METAFILE" = "yes"; then | |
36121 | cat >>confdefs.h <<\_ACEOF | |
36122 | #define wxUSE_METAFILE 1 | |
36123 | _ACEOF | |
36124 | ||
36125 | ||
36126 | cat >>confdefs.h <<\_ACEOF | |
36127 | #define wxUSE_ENH_METAFILE 1 | |
36128 | _ACEOF | |
36129 | ||
36130 | fi | |
36131 | fi | |
36132 | ||
36133 | if test "$wxUSE_IPC" = "yes"; then | |
36134 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36135 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36136 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36137 | fi |
36138 | ||
36139 | cat >>confdefs.h <<\_ACEOF | |
36140 | #define wxUSE_IPC 1 | |
36141 | _ACEOF | |
36142 | ||
36143 | fi | |
36144 | ||
36145 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36146 | if test "$wxUSE_MGL" = 1; then | |
36147 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36148 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36149 | wxUSE_CLIPBOARD=no | |
36150 | fi | |
36151 | ||
36152 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36153 | cat >>confdefs.h <<\_ACEOF | |
36154 | #define wxUSE_CLIPBOARD 1 | |
36155 | _ACEOF | |
36156 | ||
36157 | ||
36158 | cat >>confdefs.h <<\_ACEOF | |
36159 | #define wxUSE_DATAOBJ 1 | |
36160 | _ACEOF | |
36161 | ||
36162 | fi | |
36163 | fi | |
36164 | ||
36165 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36166 | if test "$wxUSE_GTK" = 1; then | |
36167 | if test "$WXGTK12" != 1; then | |
36168 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36169 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36170 | wxUSE_DRAG_AND_DROP=no | |
36171 | fi | |
36172 | fi | |
36173 | ||
36174 | if test "$wxUSE_MOTIF" = 1; then | |
36175 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36176 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36177 | wxUSE_DRAG_AND_DROP=no | |
36178 | fi | |
36179 | ||
36180 | if test "$wxUSE_X11" = 1; then | |
36181 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36182 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36183 | wxUSE_DRAG_AND_DROP=no | |
36184 | fi | |
36185 | ||
36186 | if test "$wxUSE_MGL" = 1; then | |
36187 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36188 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36189 | wxUSE_DRAG_AND_DROP=no | |
36190 | fi | |
36191 | ||
36192 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36193 | cat >>confdefs.h <<\_ACEOF | |
36194 | #define wxUSE_DRAG_AND_DROP 1 | |
36195 | _ACEOF | |
36196 | ||
36197 | fi | |
36198 | ||
36199 | fi | |
36200 | ||
36201 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36202 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36203 | fi | |
36204 | ||
36205 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36206 | cat >>confdefs.h <<\_ACEOF | |
36207 | #define wxUSE_SPLINES 1 | |
36208 | _ACEOF | |
36209 | ||
36210 | fi | |
36211 | ||
36212 | ||
36213 | USES_CONTROLS=0 | |
36214 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36215 | USES_CONTROLS=1 | |
36216 | fi | |
36217 | ||
36218 | if test "$wxUSE_ACCEL" = "yes"; then | |
36219 | cat >>confdefs.h <<\_ACEOF | |
36220 | #define wxUSE_ACCEL 1 | |
36221 | _ACEOF | |
36222 | ||
36223 | USES_CONTROLS=1 | |
36224 | fi | |
36225 | ||
36226 | if test "$wxUSE_BUTTON" = "yes"; then | |
36227 | cat >>confdefs.h <<\_ACEOF | |
36228 | #define wxUSE_BUTTON 1 | |
36229 | _ACEOF | |
36230 | ||
36231 | USES_CONTROLS=1 | |
36232 | fi | |
36233 | ||
36234 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36235 | cat >>confdefs.h <<\_ACEOF | |
36236 | #define wxUSE_BMPBUTTON 1 | |
36237 | _ACEOF | |
36238 | ||
36239 | USES_CONTROLS=1 | |
36240 | fi | |
36241 | ||
36242 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36243 | cat >>confdefs.h <<\_ACEOF | |
36244 | #define wxUSE_CALENDARCTRL 1 | |
36245 | _ACEOF | |
36246 | ||
36247 | USES_CONTROLS=1 | |
36248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36249 | fi | |
36250 | ||
36251 | if test "$wxUSE_CARET" = "yes"; then | |
36252 | cat >>confdefs.h <<\_ACEOF | |
36253 | #define wxUSE_CARET 1 | |
36254 | _ACEOF | |
36255 | ||
36256 | USES_CONTROLS=1 | |
36257 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36258 | fi | |
36259 | ||
36260 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36261 | cat >>confdefs.h <<\_ACEOF | |
36262 | #define wxUSE_COMBOBOX 1 | |
36263 | _ACEOF | |
36264 | ||
36265 | USES_CONTROLS=1 | |
36266 | fi | |
36267 | ||
36268 | if test "$wxUSE_CHOICE" = "yes"; then | |
36269 | cat >>confdefs.h <<\_ACEOF | |
36270 | #define wxUSE_CHOICE 1 | |
36271 | _ACEOF | |
36272 | ||
36273 | USES_CONTROLS=1 | |
36274 | fi | |
36275 | ||
36276 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
36277 | cat >>confdefs.h <<\_ACEOF | |
36278 | #define wxUSE_CHECKBOX 1 | |
36279 | _ACEOF | |
36280 | ||
36281 | USES_CONTROLS=1 | |
36282 | fi | |
36283 | ||
36284 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36285 | cat >>confdefs.h <<\_ACEOF | |
36286 | #define wxUSE_CHECKLISTBOX 1 | |
36287 | _ACEOF | |
36288 | ||
36289 | USES_CONTROLS=1 | |
36290 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36291 | fi | |
36292 | ||
36293 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36294 | cat >>confdefs.h <<\_ACEOF | |
36295 | #define wxUSE_DISPLAY 1 | |
36296 | _ACEOF | |
36297 | ||
36298 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36299 | fi | |
36300 | ||
36301 | if test "$wxUSE_GAUGE" = "yes"; then | |
36302 | cat >>confdefs.h <<\_ACEOF | |
36303 | #define wxUSE_GAUGE 1 | |
36304 | _ACEOF | |
36305 | ||
36306 | USES_CONTROLS=1 | |
36307 | fi | |
36308 | ||
36309 | if test "$wxUSE_GRID" = "yes"; then | |
36310 | cat >>confdefs.h <<\_ACEOF | |
36311 | #define wxUSE_GRID 1 | |
36312 | _ACEOF | |
36313 | ||
36314 | USES_CONTROLS=1 | |
36315 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36316 | fi | |
36317 | ||
36318 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36319 | cat >>confdefs.h <<\_ACEOF | |
36320 | #define wxUSE_IMAGLIST 1 | |
36321 | _ACEOF | |
36322 | ||
36323 | fi | |
36324 | ||
36325 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36326 | cat >>confdefs.h <<\_ACEOF | |
36327 | #define wxUSE_LISTBOOK 1 | |
36328 | _ACEOF | |
36329 | ||
36330 | USES_CONTROLS=1 | |
36331 | fi | |
36332 | ||
36333 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36334 | cat >>confdefs.h <<\_ACEOF | |
36335 | #define wxUSE_LISTBOX 1 | |
36336 | _ACEOF | |
36337 | ||
36338 | USES_CONTROLS=1 | |
36339 | fi | |
36340 | ||
36341 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36342 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36343 | cat >>confdefs.h <<\_ACEOF | |
36344 | #define wxUSE_LISTCTRL 1 | |
36345 | _ACEOF | |
36346 | ||
36347 | USES_CONTROLS=1 | |
36348 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36349 | else | |
36350 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36351 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36352 | fi | |
36353 | fi | |
36354 | ||
36355 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36356 | cat >>confdefs.h <<\_ACEOF | |
36357 | #define wxUSE_NOTEBOOK 1 | |
36358 | _ACEOF | |
36359 | ||
36360 | USES_CONTROLS=1 | |
36361 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36362 | fi | |
36363 | ||
36364 | ||
36365 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36366 | cat >>confdefs.h <<\_ACEOF | |
36367 | #define wxUSE_RADIOBOX 1 | |
36368 | _ACEOF | |
36369 | ||
36370 | USES_CONTROLS=1 | |
36371 | fi | |
36372 | ||
36373 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36374 | cat >>confdefs.h <<\_ACEOF | |
36375 | #define wxUSE_RADIOBTN 1 | |
36376 | _ACEOF | |
36377 | ||
36378 | USES_CONTROLS=1 | |
36379 | fi | |
36380 | ||
36381 | if test "$wxUSE_SASH" = "yes"; then | |
36382 | cat >>confdefs.h <<\_ACEOF | |
36383 | #define wxUSE_SASH 1 | |
36384 | _ACEOF | |
36385 | ||
36386 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36387 | fi | |
36388 | ||
36389 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36390 | cat >>confdefs.h <<\_ACEOF | |
36391 | #define wxUSE_SCROLLBAR 1 | |
36392 | _ACEOF | |
36393 | ||
36394 | USES_CONTROLS=1 | |
36395 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36396 | fi | |
36397 | ||
36398 | if test "$wxUSE_SLIDER" = "yes"; then | |
36399 | cat >>confdefs.h <<\_ACEOF | |
36400 | #define wxUSE_SLIDER 1 | |
36401 | _ACEOF | |
36402 | ||
36403 | USES_CONTROLS=1 | |
36404 | fi | |
36405 | ||
36406 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36407 | cat >>confdefs.h <<\_ACEOF | |
36408 | #define wxUSE_SPINBTN 1 | |
36409 | _ACEOF | |
36410 | ||
36411 | USES_CONTROLS=1 | |
36412 | fi | |
36413 | ||
36414 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36415 | cat >>confdefs.h <<\_ACEOF | |
36416 | #define wxUSE_SPINCTRL 1 | |
36417 | _ACEOF | |
36418 | ||
36419 | USES_CONTROLS=1 | |
36420 | fi | |
36421 | ||
36422 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36423 | cat >>confdefs.h <<\_ACEOF | |
36424 | #define wxUSE_SPLITTER 1 | |
36425 | _ACEOF | |
36426 | ||
36427 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36428 | fi | |
36429 | ||
36430 | if test "$wxUSE_STATBMP" = "yes"; then | |
36431 | cat >>confdefs.h <<\_ACEOF | |
36432 | #define wxUSE_STATBMP 1 | |
36433 | _ACEOF | |
36434 | ||
36435 | USES_CONTROLS=1 | |
36436 | fi | |
36437 | ||
36438 | if test "$wxUSE_STATBOX" = "yes"; then | |
36439 | cat >>confdefs.h <<\_ACEOF | |
36440 | #define wxUSE_STATBOX 1 | |
36441 | _ACEOF | |
36442 | ||
36443 | USES_CONTROLS=1 | |
36444 | fi | |
36445 | ||
36446 | if test "$wxUSE_STATTEXT" = "yes"; then | |
36447 | cat >>confdefs.h <<\_ACEOF | |
36448 | #define wxUSE_STATTEXT 1 | |
36449 | _ACEOF | |
36450 | ||
36451 | USES_CONTROLS=1 | |
36452 | fi | |
36453 | ||
36454 | if test "$wxUSE_STATLINE" = "yes"; then | |
36455 | cat >>confdefs.h <<\_ACEOF | |
36456 | #define wxUSE_STATLINE 1 | |
36457 | _ACEOF | |
36458 | ||
36459 | USES_CONTROLS=1 | |
36460 | fi | |
36461 | ||
36462 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
36463 | cat >>confdefs.h <<\_ACEOF | |
36464 | #define wxUSE_STATUSBAR 1 | |
36465 | _ACEOF | |
36466 | ||
36467 | USES_CONTROLS=1 | |
36468 | ||
36469 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
36470 | fi | |
36471 | ||
36472 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
36473 | cat >>confdefs.h <<\_ACEOF | |
36474 | #define wxUSE_TAB_DIALOG 1 | |
36475 | _ACEOF | |
36476 | ||
36477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36478 | fi | |
36479 | ||
36480 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
36481 | cat >>confdefs.h <<\_ACEOF | |
36482 | #define wxUSE_TEXTCTRL 1 | |
36483 | _ACEOF | |
36484 | ||
36485 | USES_CONTROLS=1 | |
36486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36487 | fi | |
36488 | ||
36489 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36490 | if test "$wxUSE_COCOA" = 1 ; then | |
36491 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
36492 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
36493 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
36494 | else |
36495 | if test "$wxUSE_PM" = 1; then | |
36496 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
36497 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
36498 | wxUSE_TOGGLEBTN=no | |
36499 | fi | |
a848cd7e SC |
36500 | fi |
36501 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36502 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
36503 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
36504 | wxUSE_TOGGLEBTN=no | |
36505 | fi | |
36506 | ||
36507 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36508 | cat >>confdefs.h <<\_ACEOF | |
36509 | #define wxUSE_TOGGLEBTN 1 | |
36510 | _ACEOF | |
36511 | ||
36512 | USES_CONTROLS=1 | |
36513 | fi | |
36514 | fi | |
36515 | ||
36516 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
36517 | cat >>confdefs.h <<\_ACEOF | |
36518 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
36519 | _ACEOF | |
36520 | ||
36521 | wxUSE_TOOLBAR="yes" | |
36522 | USES_CONTROLS=1 | |
36523 | fi | |
36524 | ||
36525 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
36526 | cat >>confdefs.h <<\_ACEOF | |
36527 | #define wxUSE_TOOLBAR 1 | |
36528 | _ACEOF | |
36529 | ||
36530 | USES_CONTROLS=1 | |
36531 | ||
36532 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
36533 | wxUSE_TOOLBAR_NATIVE="yes" | |
36534 | fi | |
36535 | ||
36536 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
36537 | cat >>confdefs.h <<\_ACEOF | |
36538 | #define wxUSE_TOOLBAR_NATIVE 1 | |
36539 | _ACEOF | |
36540 | ||
36541 | USES_CONTROLS=1 | |
36542 | fi | |
36543 | ||
36544 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
36545 | fi | |
36546 | ||
36547 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
36548 | if test "$wxUSE_MOTIF" = 1; then | |
36549 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
36550 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
36551 | else | |
36552 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36553 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
36554 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
36555 | else | |
36556 | cat >>confdefs.h <<\_ACEOF | |
36557 | #define wxUSE_TOOLTIPS 1 | |
36558 | _ACEOF | |
36559 | ||
36560 | fi | |
36561 | fi | |
36562 | fi | |
36563 | ||
36564 | if test "$wxUSE_TREECTRL" = "yes"; then | |
36565 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36566 | cat >>confdefs.h <<\_ACEOF | |
36567 | #define wxUSE_TREECTRL 1 | |
36568 | _ACEOF | |
36569 | ||
36570 | USES_CONTROLS=1 | |
36571 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
36572 | else | |
36573 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
36574 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36575 | fi | |
36576 | fi | |
36577 | ||
36578 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
36579 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
36580 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
36581 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
36582 | else | |
36583 | if test "$wxUSE_PM" = 1; then | |
36584 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
36585 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
36586 | else | |
36587 | cat >>confdefs.h <<\_ACEOF | |
36588 | #define wxUSE_POPUPWIN 1 | |
36589 | _ACEOF | |
36590 | ||
36591 | ||
36592 | USES_CONTROLS=1 | |
36593 | fi | |
36594 | fi | |
36595 | fi | |
36596 | ||
36597 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
36598 | if test "$wxUSE_PM" = 1; then | |
36599 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
36600 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
36601 | else | |
36602 | cat >>confdefs.h <<\_ACEOF | |
36603 | #define wxUSE_TIPWINDOW 1 | |
36604 | _ACEOF | |
36605 | ||
36606 | fi | |
36607 | fi | |
36608 | ||
36609 | if test "$USES_CONTROLS" = 1; then | |
36610 | cat >>confdefs.h <<\_ACEOF | |
36611 | #define wxUSE_CONTROLS 1 | |
36612 | _ACEOF | |
36613 | ||
36614 | fi | |
36615 | ||
36616 | ||
36617 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
36618 | cat >>confdefs.h <<\_ACEOF | |
36619 | #define wxUSE_ACCESSIBILITY 1 | |
36620 | _ACEOF | |
36621 | ||
36622 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36623 | fi | |
36624 | ||
36625 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
36626 | cat >>confdefs.h <<\_ACEOF | |
36627 | #define wxUSE_DRAGIMAGE 1 | |
36628 | _ACEOF | |
36629 | ||
36630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36631 | fi | |
36632 | ||
36633 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
36634 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
36635 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
36636 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
36637 | else | |
36638 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36639 | #define wxUSE_EXCEPTIONS 1 |
36640 | _ACEOF | |
36641 | ||
07bea8f0 VS |
36642 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
36643 | fi | |
a848cd7e SC |
36644 | fi |
36645 | ||
36646 | USE_HTML=0 | |
36647 | if test "$wxUSE_HTML" = "yes"; then | |
36648 | cat >>confdefs.h <<\_ACEOF | |
36649 | #define wxUSE_HTML 1 | |
36650 | _ACEOF | |
36651 | ||
36652 | USE_HTML=1 | |
36653 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
36654 | if test "$wxUSE_MAC" = 1; then |
36655 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
36656 | fi | |
a848cd7e | 36657 | fi |
646b6ec1 | 36658 | if test "$wxUSE_WEBKIT" = "yes"; then |
07bea8f0 VS |
36659 | if test "$wxUSE_MAC" = 1; then |
36660 | old_CPPFLAGS="$CPPFLAGS" | |
36661 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
36662 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
36663 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
36664 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
36665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36666 | else | |
36667 | cat >conftest.$ac_ext <<_ACEOF | |
36668 | /* confdefs.h. */ | |
36669 | _ACEOF | |
36670 | cat confdefs.h >>conftest.$ac_ext | |
36671 | cat >>conftest.$ac_ext <<_ACEOF | |
36672 | /* end confdefs.h. */ | |
36673 | #include <Carbon/Carbon.h> | |
36674 | ||
36675 | #include <WebKit/HIWebView.h> | |
36676 | _ACEOF | |
36677 | rm -f conftest.$ac_objext | |
36678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36679 | (eval $ac_compile) 2>conftest.er1 | |
36680 | ac_status=$? | |
36681 | grep -v '^ *+' conftest.er1 >conftest.err | |
36682 | rm -f conftest.er1 | |
36683 | cat conftest.err >&5 | |
36684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36685 | (exit $ac_status); } && | |
4d4ff94c | 36686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
36687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36688 | (eval $ac_try) 2>&5 | |
36689 | ac_status=$? | |
36690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36691 | (exit $ac_status); }; } && | |
36692 | { ac_try='test -s conftest.$ac_objext' | |
36693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36694 | (eval $ac_try) 2>&5 | |
36695 | ac_status=$? | |
36696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36697 | (exit $ac_status); }; }; then | |
36698 | ac_cv_header_WebKit_HIWebView_h=yes | |
36699 | else | |
36700 | echo "$as_me: failed program was:" >&5 | |
36701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36702 | ||
36703 | ac_cv_header_WebKit_HIWebView_h=no | |
36704 | fi | |
36705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36706 | fi | |
36707 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
36708 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
36709 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
36710 | ||
36711 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
36712 | #define wxUSE_WEBKIT 1 |
36713 | _ACEOF | |
36714 | ||
07bea8f0 VS |
36715 | WEBKIT_LINK="-framework WebKit" |
36716 | ||
36717 | else | |
36718 | ||
36719 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
36720 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
36721 | wxUSE_WEBKIT=no | |
36722 | ||
646b6ec1 VS |
36723 | fi |
36724 | ||
07bea8f0 VS |
36725 | |
36726 | CPPFLAGS="$old_CPPFLAGS" | |
36727 | elif test "$wxUSE_COCOA" = 1; then | |
36728 | cat >>confdefs.h <<\_ACEOF | |
36729 | #define wxUSE_WEBKIT 1 | |
36730 | _ACEOF | |
36731 | ||
36732 | else | |
36733 | wxUSE_WEBKIT=no | |
36734 | fi | |
36735 | fi | |
36736 | ||
36737 | ||
a848cd7e SC |
36738 | if test "$wxUSE_MENUS" = "yes"; then |
36739 | cat >>confdefs.h <<\_ACEOF | |
36740 | #define wxUSE_MENUS 1 | |
36741 | _ACEOF | |
36742 | ||
36743 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
36744 | fi | |
36745 | ||
36746 | if test "$wxUSE_METAFILE" = "yes"; then | |
36747 | cat >>confdefs.h <<\_ACEOF | |
36748 | #define wxUSE_METAFILE 1 | |
36749 | _ACEOF | |
36750 | ||
36751 | fi | |
36752 | ||
36753 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
36754 | cat >>confdefs.h <<\_ACEOF | |
36755 | #define wxUSE_MIMETYPE 1 | |
36756 | _ACEOF | |
36757 | ||
36758 | fi | |
36759 | ||
36760 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
36761 | cat >>confdefs.h <<\_ACEOF | |
36762 | #define wxUSE_MINIFRAME 1 | |
36763 | _ACEOF | |
36764 | ||
36765 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
36766 | fi | |
36767 | ||
36768 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
36769 | cat >>confdefs.h <<\_ACEOF | |
36770 | #define wxUSE_SYSTEM_OPTIONS 1 | |
36771 | _ACEOF | |
36772 | ||
36773 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
36774 | "$TOOLKIT" = "MOTIF"; then | |
36775 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
36776 | fi | |
36777 | fi | |
36778 | ||
36779 | ||
36780 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
36781 | cat >>confdefs.h <<\_ACEOF | |
36782 | #define wxUSE_VALIDATORS 1 | |
36783 | _ACEOF | |
36784 | ||
36785 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
36786 | fi | |
36787 | ||
36788 | if test "$wxUSE_PALETTE" = "yes" ; then | |
36789 | cat >>confdefs.h <<\_ACEOF | |
36790 | #define wxUSE_PALETTE 1 | |
36791 | _ACEOF | |
36792 | ||
36793 | fi | |
36794 | ||
36795 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
36796 | LIBS=" -lunicows $LIBS" | |
36797 | fi | |
36798 | ||
36799 | ||
36800 | if test "$wxUSE_IMAGE" = "yes" ; then | |
36801 | cat >>confdefs.h <<\_ACEOF | |
36802 | #define wxUSE_IMAGE 1 | |
36803 | _ACEOF | |
36804 | ||
36805 | ||
36806 | if test "$wxUSE_GIF" = "yes" ; then | |
36807 | cat >>confdefs.h <<\_ACEOF | |
36808 | #define wxUSE_GIF 1 | |
36809 | _ACEOF | |
36810 | ||
36811 | fi | |
36812 | ||
36813 | if test "$wxUSE_PCX" = "yes" ; then | |
36814 | cat >>confdefs.h <<\_ACEOF | |
36815 | #define wxUSE_PCX 1 | |
36816 | _ACEOF | |
36817 | ||
36818 | fi | |
36819 | ||
36820 | if test "$wxUSE_IFF" = "yes" ; then | |
36821 | cat >>confdefs.h <<\_ACEOF | |
36822 | #define wxUSE_IFF 1 | |
36823 | _ACEOF | |
36824 | ||
36825 | fi | |
36826 | ||
36827 | if test "$wxUSE_PNM" = "yes" ; then | |
36828 | cat >>confdefs.h <<\_ACEOF | |
36829 | #define wxUSE_PNM 1 | |
36830 | _ACEOF | |
36831 | ||
36832 | fi | |
36833 | ||
36834 | if test "$wxUSE_XPM" = "yes" ; then | |
36835 | cat >>confdefs.h <<\_ACEOF | |
36836 | #define wxUSE_XPM 1 | |
36837 | _ACEOF | |
36838 | ||
36839 | fi | |
36840 | ||
36841 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
36842 | cat >>confdefs.h <<\_ACEOF | |
36843 | #define wxUSE_ICO_CUR 1 | |
36844 | _ACEOF | |
36845 | ||
36846 | fi | |
36847 | fi | |
36848 | ||
36849 | ||
36850 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
36851 | cat >>confdefs.h <<\_ACEOF | |
36852 | #define wxUSE_CHOICEDLG 1 | |
36853 | _ACEOF | |
36854 | ||
36855 | fi | |
36856 | ||
36857 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
36858 | cat >>confdefs.h <<\_ACEOF | |
36859 | #define wxUSE_COLOURDLG 1 | |
36860 | _ACEOF | |
36861 | ||
36862 | fi | |
36863 | ||
36864 | if test "$wxUSE_FILEDLG" = "yes"; then | |
36865 | cat >>confdefs.h <<\_ACEOF | |
36866 | #define wxUSE_FILEDLG 1 | |
36867 | _ACEOF | |
36868 | ||
36869 | fi | |
36870 | ||
36871 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
36872 | cat >>confdefs.h <<\_ACEOF | |
36873 | #define wxUSE_FINDREPLDLG 1 | |
36874 | _ACEOF | |
36875 | ||
36876 | fi | |
36877 | ||
36878 | if test "$wxUSE_FONTDLG" = "yes"; then | |
36879 | cat >>confdefs.h <<\_ACEOF | |
36880 | #define wxUSE_FONTDLG 1 | |
36881 | _ACEOF | |
36882 | ||
36883 | fi | |
36884 | ||
36885 | if test "$wxUSE_DIRDLG" = "yes"; then | |
36886 | if test "$wxUSE_TREECTRL" != "yes"; then | |
36887 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
36888 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
36889 | else | |
36890 | cat >>confdefs.h <<\_ACEOF | |
36891 | #define wxUSE_DIRDLG 1 | |
36892 | _ACEOF | |
36893 | ||
36894 | fi | |
36895 | fi | |
36896 | ||
36897 | if test "$wxUSE_MSGDLG" = "yes"; then | |
36898 | cat >>confdefs.h <<\_ACEOF | |
36899 | #define wxUSE_MSGDLG 1 | |
36900 | _ACEOF | |
36901 | ||
36902 | fi | |
36903 | ||
36904 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
36905 | cat >>confdefs.h <<\_ACEOF | |
36906 | #define wxUSE_NUMBERDLG 1 | |
36907 | _ACEOF | |
36908 | ||
36909 | fi | |
36910 | ||
36911 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
36912 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36913 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
36914 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
36915 | else | |
36916 | cat >>confdefs.h <<\_ACEOF | |
36917 | #define wxUSE_PROGRESSDLG 1 | |
36918 | _ACEOF | |
36919 | ||
36920 | fi | |
36921 | fi | |
36922 | ||
36923 | if test "$wxUSE_SPLASH" = "yes"; then | |
36924 | cat >>confdefs.h <<\_ACEOF | |
36925 | #define wxUSE_SPLASH 1 | |
36926 | _ACEOF | |
36927 | ||
2057db16 | 36928 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
36929 | fi |
36930 | ||
36931 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
36932 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36933 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
36934 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
36935 | else | |
36936 | cat >>confdefs.h <<\_ACEOF | |
36937 | #define wxUSE_STARTUP_TIPS 1 | |
36938 | _ACEOF | |
36939 | ||
36940 | fi | |
36941 | fi | |
36942 | ||
36943 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
36944 | cat >>confdefs.h <<\_ACEOF | |
36945 | #define wxUSE_TEXTDLG 1 | |
36946 | _ACEOF | |
36947 | ||
36948 | fi | |
36949 | ||
36950 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
36951 | cat >>confdefs.h <<\_ACEOF | |
36952 | #define wxUSE_WIZARDDLG 1 | |
36953 | _ACEOF | |
36954 | ||
36955 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
36956 | fi | |
36957 | ||
36958 | ||
36959 | if test "$cross_compiling" = "yes"; then | |
36960 | OSINFO="\"$host\"" | |
36961 | else | |
36962 | OSINFO=`uname -s -r -m` | |
36963 | OSINFO="\"$OSINFO\"" | |
36964 | fi | |
36965 | ||
36966 | cat >>confdefs.h <<_ACEOF | |
36967 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
36968 | _ACEOF | |
36969 | ||
36970 | ||
36971 | ||
36972 | if test "x$prefix" != "xNONE"; then | |
36973 | wxPREFIX=$prefix | |
36974 | else | |
36975 | wxPREFIX=$ac_default_prefix | |
36976 | fi | |
36977 | ||
36978 | cat >>confdefs.h <<_ACEOF | |
36979 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
36980 | _ACEOF | |
36981 | ||
36982 | ||
36983 | top_builddir_wxconfig=`pwd` | |
36984 | ||
36985 | ||
36986 | ||
36987 | CORE_BASE_LIBS="net base" | |
36988 | CORE_GUI_LIBS="adv core" | |
36989 | ||
36990 | if test "$wxUSE_XML" = "yes" ; then | |
36991 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
36992 | fi | |
36993 | if test "$wxUSE_ODBC" != "no" ; then | |
36994 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
36995 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
36996 | fi | |
36997 | if test "$wxUSE_HTML" = "yes" ; then | |
36998 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
36999 | fi | |
37000 | ||
37001 | if test "$wxUSE_GUI" != "yes"; then | |
37002 | CORE_GUI_LIBS="" | |
37003 | fi | |
37004 | ||
37005 | ||
37006 | ||
37007 | ||
37008 | ||
37009 | ||
37010 | ||
37011 | ||
37012 | if test "$wxUSE_MAC" = 1 ; then | |
07bea8f0 VS |
37013 | if test "$wxUSE_SOUND" = "yes"; then |
37014 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
37015 | fi | |
37016 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" | |
a848cd7e SC |
37017 | fi |
37018 | if test "$wxUSE_COCOA" = 1 ; then | |
37019 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
37020 | fi | |
37021 | ||
37022 | ||
37023 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37024 | ||
37025 | have_cos=0 | |
37026 | have_floor=0 | |
37027 | ||
37028 | for ac_func in cos | |
37029 | do | |
37030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37031 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37033 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37035 | else | |
37036 | cat >conftest.$ac_ext <<_ACEOF | |
37037 | /* confdefs.h. */ | |
37038 | _ACEOF | |
37039 | cat confdefs.h >>conftest.$ac_ext | |
37040 | cat >>conftest.$ac_ext <<_ACEOF | |
37041 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37042 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37044 | #define $ac_func innocuous_$ac_func | |
37045 | ||
a848cd7e SC |
37046 | /* System header to define __stub macros and hopefully few prototypes, |
37047 | which can conflict with char $ac_func (); below. | |
37048 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37049 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37050 | |
a848cd7e SC |
37051 | #ifdef __STDC__ |
37052 | # include <limits.h> | |
37053 | #else | |
37054 | # include <assert.h> | |
37055 | #endif | |
ac1cb8d3 VS |
37056 | |
37057 | #undef $ac_func | |
37058 | ||
a848cd7e SC |
37059 | /* Override any gcc2 internal prototype to avoid an error. */ |
37060 | #ifdef __cplusplus | |
37061 | extern "C" | |
37062 | { | |
37063 | #endif | |
37064 | /* We use char because int might match the return type of a gcc2 | |
37065 | builtin and then its argument prototype would still apply. */ | |
37066 | char $ac_func (); | |
37067 | /* The GNU C library defines this for functions which it implements | |
37068 | to always fail with ENOSYS. Some functions are actually named | |
37069 | something starting with __ and the normal name is an alias. */ | |
37070 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37071 | choke me | |
37072 | #else | |
37073 | char (*f) () = $ac_func; | |
37074 | #endif | |
37075 | #ifdef __cplusplus | |
37076 | } | |
37077 | #endif | |
37078 | ||
37079 | int | |
37080 | main () | |
37081 | { | |
37082 | return f != $ac_func; | |
37083 | ; | |
37084 | return 0; | |
37085 | } | |
37086 | _ACEOF | |
37087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37089 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37090 | ac_status=$? |
ac1cb8d3 VS |
37091 | grep -v '^ *+' conftest.er1 >conftest.err |
37092 | rm -f conftest.er1 | |
37093 | cat conftest.err >&5 | |
a848cd7e SC |
37094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37095 | (exit $ac_status); } && | |
4d4ff94c | 37096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37098 | (eval $ac_try) 2>&5 | |
37099 | ac_status=$? | |
37100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37101 | (exit $ac_status); }; } && | |
37102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37104 | (eval $ac_try) 2>&5 | |
37105 | ac_status=$? | |
37106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37107 | (exit $ac_status); }; }; then | |
37108 | eval "$as_ac_var=yes" | |
37109 | else | |
37110 | echo "$as_me: failed program was:" >&5 | |
37111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37112 | ||
37113 | eval "$as_ac_var=no" | |
37114 | fi | |
ac1cb8d3 VS |
37115 | rm -f conftest.err conftest.$ac_objext \ |
37116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37117 | fi |
37118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37119 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37120 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37121 | cat >>confdefs.h <<_ACEOF | |
37122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37123 | _ACEOF | |
37124 | have_cos=1 | |
37125 | fi | |
37126 | done | |
37127 | ||
37128 | ||
37129 | for ac_func in floor | |
37130 | do | |
37131 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37132 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37133 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37134 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37136 | else | |
37137 | cat >conftest.$ac_ext <<_ACEOF | |
37138 | /* confdefs.h. */ | |
37139 | _ACEOF | |
37140 | cat confdefs.h >>conftest.$ac_ext | |
37141 | cat >>conftest.$ac_ext <<_ACEOF | |
37142 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37143 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37144 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37145 | #define $ac_func innocuous_$ac_func | |
37146 | ||
a848cd7e SC |
37147 | /* System header to define __stub macros and hopefully few prototypes, |
37148 | which can conflict with char $ac_func (); below. | |
37149 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37150 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37151 | |
a848cd7e SC |
37152 | #ifdef __STDC__ |
37153 | # include <limits.h> | |
37154 | #else | |
37155 | # include <assert.h> | |
37156 | #endif | |
ac1cb8d3 VS |
37157 | |
37158 | #undef $ac_func | |
37159 | ||
a848cd7e SC |
37160 | /* Override any gcc2 internal prototype to avoid an error. */ |
37161 | #ifdef __cplusplus | |
37162 | extern "C" | |
37163 | { | |
37164 | #endif | |
37165 | /* We use char because int might match the return type of a gcc2 | |
37166 | builtin and then its argument prototype would still apply. */ | |
37167 | char $ac_func (); | |
37168 | /* The GNU C library defines this for functions which it implements | |
37169 | to always fail with ENOSYS. Some functions are actually named | |
37170 | something starting with __ and the normal name is an alias. */ | |
37171 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37172 | choke me | |
37173 | #else | |
37174 | char (*f) () = $ac_func; | |
37175 | #endif | |
37176 | #ifdef __cplusplus | |
37177 | } | |
37178 | #endif | |
37179 | ||
37180 | int | |
37181 | main () | |
37182 | { | |
37183 | return f != $ac_func; | |
37184 | ; | |
37185 | return 0; | |
37186 | } | |
37187 | _ACEOF | |
37188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37190 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37191 | ac_status=$? |
ac1cb8d3 VS |
37192 | grep -v '^ *+' conftest.er1 >conftest.err |
37193 | rm -f conftest.er1 | |
37194 | cat conftest.err >&5 | |
a848cd7e SC |
37195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37196 | (exit $ac_status); } && | |
4d4ff94c | 37197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37199 | (eval $ac_try) 2>&5 | |
37200 | ac_status=$? | |
37201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37202 | (exit $ac_status); }; } && | |
37203 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37205 | (eval $ac_try) 2>&5 | |
37206 | ac_status=$? | |
37207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37208 | (exit $ac_status); }; }; then | |
37209 | eval "$as_ac_var=yes" | |
37210 | else | |
37211 | echo "$as_me: failed program was:" >&5 | |
37212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37213 | ||
37214 | eval "$as_ac_var=no" | |
37215 | fi | |
ac1cb8d3 VS |
37216 | rm -f conftest.err conftest.$ac_objext \ |
37217 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37218 | fi |
37219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37220 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37221 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37222 | cat >>confdefs.h <<_ACEOF | |
37223 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37224 | _ACEOF | |
37225 | have_floor=1 | |
37226 | fi | |
37227 | done | |
37228 | ||
37229 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37230 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37231 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37232 | echo "$as_me:$LINENO: result: yes" >&5 | |
37233 | echo "${ECHO_T}yes" >&6 | |
37234 | else | |
37235 | echo "$as_me:$LINENO: result: no" >&5 | |
37236 | echo "${ECHO_T}no" >&6 | |
37237 | LIBS="$LIBS -lm" | |
37238 | # use different functions to avoid configure caching | |
37239 | have_sin=0 | |
37240 | have_ceil=0 | |
37241 | ||
37242 | for ac_func in sin | |
37243 | do | |
37244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37245 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37247 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37249 | else | |
37250 | cat >conftest.$ac_ext <<_ACEOF | |
37251 | /* confdefs.h. */ | |
37252 | _ACEOF | |
37253 | cat confdefs.h >>conftest.$ac_ext | |
37254 | cat >>conftest.$ac_ext <<_ACEOF | |
37255 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37258 | #define $ac_func innocuous_$ac_func | |
37259 | ||
a848cd7e SC |
37260 | /* System header to define __stub macros and hopefully few prototypes, |
37261 | which can conflict with char $ac_func (); below. | |
37262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37263 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37264 | |
a848cd7e SC |
37265 | #ifdef __STDC__ |
37266 | # include <limits.h> | |
37267 | #else | |
37268 | # include <assert.h> | |
37269 | #endif | |
ac1cb8d3 VS |
37270 | |
37271 | #undef $ac_func | |
37272 | ||
a848cd7e SC |
37273 | /* Override any gcc2 internal prototype to avoid an error. */ |
37274 | #ifdef __cplusplus | |
37275 | extern "C" | |
37276 | { | |
37277 | #endif | |
37278 | /* We use char because int might match the return type of a gcc2 | |
37279 | builtin and then its argument prototype would still apply. */ | |
37280 | char $ac_func (); | |
37281 | /* The GNU C library defines this for functions which it implements | |
37282 | to always fail with ENOSYS. Some functions are actually named | |
37283 | something starting with __ and the normal name is an alias. */ | |
37284 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37285 | choke me | |
37286 | #else | |
37287 | char (*f) () = $ac_func; | |
37288 | #endif | |
37289 | #ifdef __cplusplus | |
37290 | } | |
37291 | #endif | |
37292 | ||
37293 | int | |
37294 | main () | |
37295 | { | |
37296 | return f != $ac_func; | |
37297 | ; | |
37298 | return 0; | |
37299 | } | |
37300 | _ACEOF | |
37301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37303 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37304 | ac_status=$? |
ac1cb8d3 VS |
37305 | grep -v '^ *+' conftest.er1 >conftest.err |
37306 | rm -f conftest.er1 | |
37307 | cat conftest.err >&5 | |
a848cd7e SC |
37308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37309 | (exit $ac_status); } && | |
4d4ff94c | 37310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37312 | (eval $ac_try) 2>&5 | |
37313 | ac_status=$? | |
37314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37315 | (exit $ac_status); }; } && | |
37316 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37318 | (eval $ac_try) 2>&5 | |
37319 | ac_status=$? | |
37320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37321 | (exit $ac_status); }; }; then | |
37322 | eval "$as_ac_var=yes" | |
37323 | else | |
37324 | echo "$as_me: failed program was:" >&5 | |
37325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37326 | ||
37327 | eval "$as_ac_var=no" | |
37328 | fi | |
ac1cb8d3 VS |
37329 | rm -f conftest.err conftest.$ac_objext \ |
37330 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37331 | fi |
37332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37333 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37334 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37335 | cat >>confdefs.h <<_ACEOF | |
37336 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37337 | _ACEOF | |
37338 | have_sin=1 | |
37339 | fi | |
37340 | done | |
37341 | ||
37342 | ||
37343 | for ac_func in ceil | |
37344 | do | |
37345 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37346 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37347 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37348 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37350 | else | |
37351 | cat >conftest.$ac_ext <<_ACEOF | |
37352 | /* confdefs.h. */ | |
37353 | _ACEOF | |
37354 | cat confdefs.h >>conftest.$ac_ext | |
37355 | cat >>conftest.$ac_ext <<_ACEOF | |
37356 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37357 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37358 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37359 | #define $ac_func innocuous_$ac_func | |
37360 | ||
a848cd7e SC |
37361 | /* System header to define __stub macros and hopefully few prototypes, |
37362 | which can conflict with char $ac_func (); below. | |
37363 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37364 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37365 | |
a848cd7e SC |
37366 | #ifdef __STDC__ |
37367 | # include <limits.h> | |
37368 | #else | |
37369 | # include <assert.h> | |
37370 | #endif | |
ac1cb8d3 VS |
37371 | |
37372 | #undef $ac_func | |
37373 | ||
a848cd7e SC |
37374 | /* Override any gcc2 internal prototype to avoid an error. */ |
37375 | #ifdef __cplusplus | |
37376 | extern "C" | |
37377 | { | |
37378 | #endif | |
37379 | /* We use char because int might match the return type of a gcc2 | |
37380 | builtin and then its argument prototype would still apply. */ | |
37381 | char $ac_func (); | |
37382 | /* The GNU C library defines this for functions which it implements | |
37383 | to always fail with ENOSYS. Some functions are actually named | |
37384 | something starting with __ and the normal name is an alias. */ | |
37385 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37386 | choke me | |
37387 | #else | |
37388 | char (*f) () = $ac_func; | |
37389 | #endif | |
37390 | #ifdef __cplusplus | |
37391 | } | |
37392 | #endif | |
37393 | ||
37394 | int | |
37395 | main () | |
37396 | { | |
37397 | return f != $ac_func; | |
37398 | ; | |
37399 | return 0; | |
37400 | } | |
37401 | _ACEOF | |
37402 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37404 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37405 | ac_status=$? |
ac1cb8d3 VS |
37406 | grep -v '^ *+' conftest.er1 >conftest.err |
37407 | rm -f conftest.er1 | |
37408 | cat conftest.err >&5 | |
a848cd7e SC |
37409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37410 | (exit $ac_status); } && | |
4d4ff94c | 37411 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37413 | (eval $ac_try) 2>&5 | |
37414 | ac_status=$? | |
37415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37416 | (exit $ac_status); }; } && | |
37417 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37419 | (eval $ac_try) 2>&5 | |
37420 | ac_status=$? | |
37421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37422 | (exit $ac_status); }; }; then | |
37423 | eval "$as_ac_var=yes" | |
37424 | else | |
37425 | echo "$as_me: failed program was:" >&5 | |
37426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37427 | ||
37428 | eval "$as_ac_var=no" | |
37429 | fi | |
ac1cb8d3 VS |
37430 | rm -f conftest.err conftest.$ac_objext \ |
37431 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37432 | fi |
37433 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37434 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37435 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37436 | cat >>confdefs.h <<_ACEOF | |
37437 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37438 | _ACEOF | |
37439 | have_ceil=1 | |
37440 | fi | |
37441 | done | |
37442 | ||
37443 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
37444 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
37445 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
37446 | echo "$as_me:$LINENO: result: yes" >&5 | |
37447 | echo "${ECHO_T}yes" >&6 | |
37448 | else | |
37449 | echo "$as_me:$LINENO: result: no" >&5 | |
37450 | echo "${ECHO_T}no" >&6 | |
37451 | # not sure we should warn the user, crash, etc. | |
37452 | fi | |
37453 | fi | |
37454 | ||
37455 | if test "$wxUSE_GUI" = "yes"; then | |
37456 | ||
37457 | ||
37458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
37459 | drawing dynamic erase event exec font image \ | |
37460 | minimal propsize rotate shaped widgets render" | |
37461 | ||
37462 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37463 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37464 | fi | |
37465 | else | |
37466 | SAMPLES_SUBDIRS="console" | |
37467 | fi | |
37468 | ||
37469 | ||
37470 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ | |
37471 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" | |
37472 | ||
37473 | if test "$GXX" = yes ; then | |
37474 | CXXWARNINGS="-Wall" | |
37475 | fi | |
37476 | ||
37477 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37478 | ||
0c3c69fc VS |
37479 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
37480 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS` | |
37481 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` | |
a848cd7e SC |
37482 | |
37483 | ||
0c3c69fc | 37484 | LIBS=`echo $LIBS` |
a848cd7e SC |
37485 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
37486 | EXTRALIBS_XML="$EXPAT_LINK" | |
37487 | EXTRALIBS_HTML="$MSPACK_LINK" | |
37488 | EXTRALIBS_ODBC="$ODBC_LINK" | |
37489 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 37490 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
37491 | fi |
37492 | if test "$wxUSE_OPENGL" = "yes"; then | |
37493 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37494 | fi | |
37495 | ||
37496 | LDFLAGS="$LDFLAGS $PROFILE" | |
37497 | ||
37498 | if test "$wxUSE_GTK" = 1; then | |
37499 | WXCONFIG_INCLUDE= | |
37500 | else | |
37501 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37502 | fi | |
37503 | ||
37504 | WXCONFIG_EXTRALIBS="$LIBS" | |
37505 | ||
37506 | if test "$wxUSE_REGEX" = "builtin" ; then | |
37507 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
37508 | fi | |
37509 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37510 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37511 | fi | |
37512 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37513 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37514 | fi | |
37515 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37516 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37517 | fi | |
37518 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37519 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37520 | fi | |
37521 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37522 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37523 | fi | |
37524 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37525 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37526 | fi | |
37527 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37528 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37529 | fi | |
37530 | ||
37531 | for i in $wxconfig_3rdparty ; do | |
37532 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
37533 | done | |
37534 | ||
37535 | ||
37536 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
37537 | WXUNIV=1 | |
37538 | else | |
37539 | WXUNIV=0 | |
37540 | fi | |
37541 | ||
37542 | ||
37543 | ||
37544 | ||
37545 | ||
37546 | ||
37547 | ||
37548 | ||
37549 | ||
37550 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
37551 | MONOLITHIC=1 | |
37552 | else | |
37553 | MONOLITHIC=0 | |
37554 | fi | |
37555 | ||
37556 | if test $wxUSE_PLUGINS = "yes" ; then | |
37557 | USE_PLUGINS=1 | |
37558 | else | |
37559 | USE_PLUGINS=0 | |
37560 | fi | |
37561 | ||
37562 | if test $wxUSE_ODBC != "no" ; then | |
37563 | USE_ODBC=1 | |
37564 | else | |
37565 | USE_ODBC=0 | |
37566 | fi | |
37567 | ||
37568 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
37569 | OFFICIAL_BUILD=1 | |
37570 | else | |
37571 | OFFICIAL_BUILD=0 | |
37572 | fi | |
37573 | ||
37574 | ||
37575 | ||
37576 | ||
37577 | ||
37578 | ||
37579 | ||
37580 | ||
37581 | ||
37582 | ||
37583 | ||
37584 | ||
37585 | ||
37586 | ||
37587 | ||
37588 | ||
37589 | ||
37590 | ||
37591 | ||
37592 | ||
37593 | ||
37594 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
37595 | ||
37596 | ||
37597 | ||
37598 | ||
37599 | ||
37600 | ||
37601 | ||
37602 | ||
4d4ff94c VZ |
37603 | case "$TOOLKIT" in |
37604 | GTK) | |
37605 | TOOLKIT_USER="GTK+" | |
37606 | if test "$WXGTK20" = 1; then | |
37607 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
37608 | fi | |
37609 | ;; | |
37610 | ||
37611 | *) | |
37612 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
37613 | ;; | |
37614 | esac | |
a848cd7e SC |
37615 | |
37616 | if test "x$BAKEFILE_HOST" = "x"; then | |
37617 | BAKEFILE_HOST="${host}" | |
37618 | fi | |
37619 | ||
37620 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
37621 | ||
37622 | if test -n "$ac_tool_prefix"; then | |
37623 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37624 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37625 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37627 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37629 | else | |
37630 | if test -n "$RANLIB"; then | |
37631 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
37632 | else | |
37633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37634 | for as_dir in $PATH | |
37635 | do | |
37636 | IFS=$as_save_IFS | |
37637 | test -z "$as_dir" && as_dir=. | |
37638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37639 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37640 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
37641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37642 | break 2 | |
37643 | fi | |
37644 | done | |
37645 | done | |
37646 | ||
37647 | fi | |
37648 | fi | |
37649 | RANLIB=$ac_cv_prog_RANLIB | |
37650 | if test -n "$RANLIB"; then | |
37651 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
37652 | echo "${ECHO_T}$RANLIB" >&6 | |
37653 | else | |
37654 | echo "$as_me:$LINENO: result: no" >&5 | |
37655 | echo "${ECHO_T}no" >&6 | |
37656 | fi | |
37657 | ||
37658 | fi | |
37659 | if test -z "$ac_cv_prog_RANLIB"; then | |
37660 | ac_ct_RANLIB=$RANLIB | |
37661 | # Extract the first word of "ranlib", so it can be a program name with args. | |
37662 | set dummy ranlib; ac_word=$2 | |
37663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37665 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
37666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37667 | else | |
37668 | if test -n "$ac_ct_RANLIB"; then | |
37669 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
37670 | else | |
37671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37672 | for as_dir in $PATH | |
37673 | do | |
37674 | IFS=$as_save_IFS | |
37675 | test -z "$as_dir" && as_dir=. | |
37676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37678 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
37679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37680 | break 2 | |
37681 | fi | |
37682 | done | |
37683 | done | |
37684 | ||
37685 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
37686 | fi | |
37687 | fi | |
37688 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
37689 | if test -n "$ac_ct_RANLIB"; then | |
37690 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
37691 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
37692 | else | |
37693 | echo "$as_me:$LINENO: result: no" >&5 | |
37694 | echo "${ECHO_T}no" >&6 | |
37695 | fi | |
37696 | ||
37697 | RANLIB=$ac_ct_RANLIB | |
37698 | else | |
37699 | RANLIB="$ac_cv_prog_RANLIB" | |
37700 | fi | |
37701 | ||
37702 | # Find a good install program. We prefer a C program (faster), | |
37703 | # so one script is as good as another. But avoid the broken or | |
37704 | # incompatible versions: | |
37705 | # SysV /etc/install, /usr/sbin/install | |
37706 | # SunOS /usr/etc/install | |
37707 | # IRIX /sbin/install | |
37708 | # AIX /bin/install | |
37709 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
37710 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
37711 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
37712 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 37713 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
37714 | # ./install, which can be erroneously created by make from ./install.sh. |
37715 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
37716 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
37717 | if test -z "$INSTALL"; then | |
37718 | if test "${ac_cv_path_install+set}" = set; then | |
37719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37720 | else | |
37721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37722 | for as_dir in $PATH | |
37723 | do | |
37724 | IFS=$as_save_IFS | |
37725 | test -z "$as_dir" && as_dir=. | |
37726 | # Account for people who put trailing slashes in PATH elements. | |
37727 | case $as_dir/ in | |
37728 | ./ | .// | /cC/* | \ | |
37729 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 37730 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
37731 | /usr/ucb/* ) ;; |
37732 | *) | |
37733 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
37734 | # Don't use installbsd from OSF since it installs stuff as root | |
37735 | # by default. | |
37736 | for ac_prog in ginstall scoinst install; do | |
37737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
37738 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
37739 | if test $ac_prog = install && | |
37740 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37741 | # AIX install. It has an incompatible calling convention. | |
37742 | : | |
37743 | elif test $ac_prog = install && | |
37744 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37745 | # program-specific install script used by HP pwplus--don't use. | |
37746 | : | |
37747 | else | |
37748 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
37749 | break 3 | |
37750 | fi | |
37751 | fi | |
a848cd7e SC |
37752 | done |
37753 | done | |
37754 | ;; | |
37755 | esac | |
37756 | done | |
37757 | ||
37758 | ||
37759 | fi | |
37760 | if test "${ac_cv_path_install+set}" = set; then | |
37761 | INSTALL=$ac_cv_path_install | |
37762 | else | |
37763 | # As a last resort, use the slow shell script. We don't cache a | |
37764 | # path for INSTALL within a source directory, because that will | |
37765 | # break other packages using the cache if that directory is | |
37766 | # removed, or if the path is relative. | |
37767 | INSTALL=$ac_install_sh | |
37768 | fi | |
37769 | fi | |
37770 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
37771 | echo "${ECHO_T}$INSTALL" >&6 | |
37772 | ||
37773 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
37774 | # It thinks the first close brace ends the variable substitution. | |
37775 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
37776 | ||
37777 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
37778 | ||
37779 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
37780 | ||
37781 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
37782 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
37783 | LN_S=$as_ln_s | |
37784 | if test "$LN_S" = "ln -s"; then | |
37785 | echo "$as_me:$LINENO: result: yes" >&5 | |
37786 | echo "${ECHO_T}yes" >&6 | |
37787 | else | |
37788 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
37789 | echo "${ECHO_T}no, using $LN_S" >&6 | |
37790 | fi | |
37791 | ||
37792 | ||
37793 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
37794 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 37795 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
37796 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
37797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37798 | else | |
37799 | cat >conftest.make <<\_ACEOF | |
37800 | all: | |
37801 | @echo 'ac_maketemp="$(MAKE)"' | |
37802 | _ACEOF | |
37803 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
37804 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
37805 | if test -n "$ac_maketemp"; then | |
37806 | eval ac_cv_prog_make_${ac_make}_set=yes | |
37807 | else | |
37808 | eval ac_cv_prog_make_${ac_make}_set=no | |
37809 | fi | |
37810 | rm -f conftest.make | |
37811 | fi | |
37812 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
37813 | echo "$as_me:$LINENO: result: yes" >&5 | |
37814 | echo "${ECHO_T}yes" >&6 | |
37815 | SET_MAKE= | |
37816 | else | |
37817 | echo "$as_me:$LINENO: result: no" >&5 | |
37818 | echo "${ECHO_T}no" >&6 | |
37819 | SET_MAKE="MAKE=${MAKE-make}" | |
37820 | fi | |
37821 | ||
37822 | ||
37823 | ||
37824 | if test -n "$ac_tool_prefix"; then | |
37825 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
37826 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
37827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37829 | if test "${ac_cv_prog_AR+set}" = set; then | |
37830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37831 | else | |
37832 | if test -n "$AR"; then | |
37833 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
37834 | else | |
37835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37836 | for as_dir in $PATH | |
37837 | do | |
37838 | IFS=$as_save_IFS | |
37839 | test -z "$as_dir" && as_dir=. | |
37840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37842 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
37843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37844 | break 2 | |
37845 | fi | |
37846 | done | |
37847 | done | |
37848 | ||
37849 | fi | |
37850 | fi | |
37851 | AR=$ac_cv_prog_AR | |
37852 | if test -n "$AR"; then | |
37853 | echo "$as_me:$LINENO: result: $AR" >&5 | |
37854 | echo "${ECHO_T}$AR" >&6 | |
37855 | else | |
37856 | echo "$as_me:$LINENO: result: no" >&5 | |
37857 | echo "${ECHO_T}no" >&6 | |
37858 | fi | |
37859 | ||
37860 | fi | |
37861 | if test -z "$ac_cv_prog_AR"; then | |
37862 | ac_ct_AR=$AR | |
37863 | # Extract the first word of "ar", so it can be a program name with args. | |
37864 | set dummy ar; ac_word=$2 | |
37865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37867 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
37868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37869 | else | |
37870 | if test -n "$ac_ct_AR"; then | |
37871 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
37872 | else | |
37873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37874 | for as_dir in $PATH | |
37875 | do | |
37876 | IFS=$as_save_IFS | |
37877 | test -z "$as_dir" && as_dir=. | |
37878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37880 | ac_cv_prog_ac_ct_AR="ar" | |
37881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37882 | break 2 | |
37883 | fi | |
37884 | done | |
37885 | done | |
37886 | ||
37887 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
37888 | fi | |
37889 | fi | |
37890 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
37891 | if test -n "$ac_ct_AR"; then | |
37892 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
37893 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
37894 | else | |
37895 | echo "$as_me:$LINENO: result: no" >&5 | |
37896 | echo "${ECHO_T}no" >&6 | |
37897 | fi | |
37898 | ||
37899 | AR=$ac_ct_AR | |
37900 | else | |
37901 | AR="$ac_cv_prog_AR" | |
37902 | fi | |
37903 | ||
37904 | if test -n "$ac_tool_prefix"; then | |
37905 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
37906 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
37907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37909 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
37910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37911 | else | |
37912 | if test -n "$STRIP"; then | |
37913 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
37914 | else | |
37915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37916 | for as_dir in $PATH | |
37917 | do | |
37918 | IFS=$as_save_IFS | |
37919 | test -z "$as_dir" && as_dir=. | |
37920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37922 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
37923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37924 | break 2 | |
37925 | fi | |
37926 | done | |
37927 | done | |
37928 | ||
37929 | fi | |
37930 | fi | |
37931 | STRIP=$ac_cv_prog_STRIP | |
37932 | if test -n "$STRIP"; then | |
37933 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
37934 | echo "${ECHO_T}$STRIP" >&6 | |
37935 | else | |
37936 | echo "$as_me:$LINENO: result: no" >&5 | |
37937 | echo "${ECHO_T}no" >&6 | |
37938 | fi | |
37939 | ||
37940 | fi | |
37941 | if test -z "$ac_cv_prog_STRIP"; then | |
37942 | ac_ct_STRIP=$STRIP | |
37943 | # Extract the first word of "strip", so it can be a program name with args. | |
37944 | set dummy strip; ac_word=$2 | |
37945 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37947 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
37948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37949 | else | |
37950 | if test -n "$ac_ct_STRIP"; then | |
37951 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
37952 | else | |
37953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37954 | for as_dir in $PATH | |
37955 | do | |
37956 | IFS=$as_save_IFS | |
37957 | test -z "$as_dir" && as_dir=. | |
37958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37959 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37960 | ac_cv_prog_ac_ct_STRIP="strip" | |
37961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37962 | break 2 | |
37963 | fi | |
37964 | done | |
37965 | done | |
37966 | ||
37967 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
37968 | fi | |
37969 | fi | |
37970 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
37971 | if test -n "$ac_ct_STRIP"; then | |
37972 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
37973 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
37974 | else | |
37975 | echo "$as_me:$LINENO: result: no" >&5 | |
37976 | echo "${ECHO_T}no" >&6 | |
37977 | fi | |
37978 | ||
37979 | STRIP=$ac_ct_STRIP | |
37980 | else | |
37981 | STRIP="$ac_cv_prog_STRIP" | |
37982 | fi | |
37983 | ||
37984 | if test -n "$ac_tool_prefix"; then | |
37985 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
37986 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
37987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37989 | if test "${ac_cv_prog_NM+set}" = set; then | |
37990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37991 | else | |
37992 | if test -n "$NM"; then | |
37993 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
37994 | else | |
37995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37996 | for as_dir in $PATH | |
37997 | do | |
37998 | IFS=$as_save_IFS | |
37999 | test -z "$as_dir" && as_dir=. | |
38000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38002 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38004 | break 2 | |
38005 | fi | |
38006 | done | |
38007 | done | |
38008 | ||
38009 | fi | |
38010 | fi | |
38011 | NM=$ac_cv_prog_NM | |
38012 | if test -n "$NM"; then | |
38013 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38014 | echo "${ECHO_T}$NM" >&6 | |
38015 | else | |
38016 | echo "$as_me:$LINENO: result: no" >&5 | |
38017 | echo "${ECHO_T}no" >&6 | |
38018 | fi | |
38019 | ||
38020 | fi | |
38021 | if test -z "$ac_cv_prog_NM"; then | |
38022 | ac_ct_NM=$NM | |
38023 | # Extract the first word of "nm", so it can be a program name with args. | |
38024 | set dummy nm; ac_word=$2 | |
38025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38027 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38029 | else | |
38030 | if test -n "$ac_ct_NM"; then | |
38031 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38032 | else | |
38033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38034 | for as_dir in $PATH | |
38035 | do | |
38036 | IFS=$as_save_IFS | |
38037 | test -z "$as_dir" && as_dir=. | |
38038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38040 | ac_cv_prog_ac_ct_NM="nm" | |
38041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38042 | break 2 | |
38043 | fi | |
38044 | done | |
38045 | done | |
38046 | ||
38047 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38048 | fi | |
38049 | fi | |
38050 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38051 | if test -n "$ac_ct_NM"; then | |
38052 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38053 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38054 | else | |
38055 | echo "$as_me:$LINENO: result: no" >&5 | |
38056 | echo "${ECHO_T}no" >&6 | |
38057 | fi | |
38058 | ||
38059 | NM=$ac_ct_NM | |
38060 | else | |
38061 | NM="$ac_cv_prog_NM" | |
38062 | fi | |
38063 | ||
38064 | ||
38065 | case ${BAKEFILE_HOST} in | |
38066 | *-hp-hpux* ) | |
a0f9686d | 38067 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38068 | ;; |
38069 | *) INSTALL_DIR="$INSTALL -d" | |
38070 | ;; | |
38071 | esac | |
38072 | ||
38073 | ||
38074 | LDFLAGS_GUI= | |
38075 | case ${BAKEFILE_HOST} in | |
38076 | *-*-cygwin* | *-*-mingw32* ) | |
38077 | LDFLAGS_GUI="-mwindows" | |
38078 | esac | |
38079 | ||
38080 | ||
38081 | fi | |
38082 | ||
38083 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38084 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38085 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38087 | else | |
38088 | ||
38089 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38090 | egrep -s GNU > /dev/null); then | |
38091 | bakefile_cv_prog_makeisgnu="yes" | |
38092 | else | |
38093 | bakefile_cv_prog_makeisgnu="no" | |
38094 | fi | |
38095 | ||
38096 | fi | |
38097 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38098 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38099 | ||
38100 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38101 | IF_GNU_MAKE="" | |
38102 | else | |
38103 | IF_GNU_MAKE="#" | |
38104 | fi | |
38105 | ||
38106 | ||
38107 | ||
38108 | PLATFORM_UNIX=0 | |
38109 | PLATFORM_WIN32=0 | |
38110 | PLATFORM_MSDOS=0 | |
38111 | PLATFORM_MAC=0 | |
38112 | PLATFORM_MACOSX=0 | |
38113 | PLATFORM_OS2=0 | |
38114 | ||
38115 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38116 | case "${BAKEFILE_HOST}" in | |
38117 | *-*-cygwin* | *-*-mingw32* ) | |
38118 | PLATFORM_WIN32=1 | |
38119 | ;; | |
38120 | *-pc-msdosdjgpp ) | |
38121 | PLATFORM_MSDOS=1 | |
38122 | ;; | |
38123 | *-pc-os2_emx | *-pc-os2-emx ) | |
38124 | PLATFORM_OS2=1 | |
38125 | ;; | |
38126 | powerpc-*-darwin* ) | |
38127 | PLATFORM_MAC=1 | |
38128 | PLATFORM_MACOSX=1 | |
38129 | ;; | |
38130 | * ) | |
38131 | PLATFORM_UNIX=1 | |
38132 | ;; | |
38133 | esac | |
38134 | else | |
38135 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38136 | win32 ) | |
38137 | PLATFORM_WIN32=1 | |
38138 | ;; | |
38139 | msdos ) | |
38140 | PLATFORM_MSDOS=1 | |
38141 | ;; | |
38142 | os2 ) | |
38143 | PLATFORM_OS2=1 | |
38144 | ;; | |
38145 | darwin ) | |
38146 | PLATFORM_MAC=1 | |
38147 | PLATFORM_MACOSX=1 | |
38148 | ;; | |
38149 | unix ) | |
38150 | PLATFORM_UNIX=1 | |
38151 | ;; | |
38152 | * ) | |
38153 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38154 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38155 | { (exit 1); exit 1; }; } | |
38156 | ;; | |
38157 | esac | |
38158 | fi | |
38159 | ||
38160 | ||
38161 | ||
38162 | ||
38163 | ||
38164 | ||
38165 | ||
38166 | ||
38167 | ||
38168 | # Check whether --enable-omf or --disable-omf was given. | |
38169 | if test "${enable_omf+set}" = set; then | |
38170 | enableval="$enable_omf" | |
38171 | bk_os2_use_omf="$enableval" | |
38172 | fi; | |
38173 | ||
38174 | case "${BAKEFILE_HOST}" in | |
38175 | *-*-darwin* ) | |
38176 | CFLAGS="$CFLAGS -fno-common" | |
38177 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38178 | ;; | |
38179 | ||
38180 | *-pc-os2_emx | *-pc-os2-emx ) | |
38181 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38182 | AR=emxomfar | |
38183 | RANLIB=: | |
38184 | LDFLAGS="-Zomf $LDFLAGS" | |
38185 | CFLAGS="-Zomf $CFLAGS" | |
38186 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38187 | OS2_LIBEXT="lib" | |
38188 | else | |
38189 | OS2_LIBEXT="a" | |
38190 | fi | |
38191 | ;; | |
38192 | esac | |
38193 | ||
38194 | ||
38195 | SO_SUFFIX="so" | |
38196 | SO_SUFFIX_MODULE="so" | |
38197 | EXEEXT="" | |
38198 | LIBPREFIX="lib" | |
38199 | LIBEXT=".a" | |
38200 | DLLPREFIX="lib" | |
38201 | DLLPREFIX_MODULE="" | |
38202 | DLLIMP_SUFFIX="" | |
38203 | ||
38204 | case "${BAKEFILE_HOST}" in | |
38205 | *-hp-hpux* ) | |
38206 | SO_SUFFIX="sl" | |
38207 | SO_SUFFIX_MODULE="sl" | |
38208 | ;; | |
38209 | *-*-aix* ) | |
38210 | SO_SUFFIX="a" | |
38211 | SO_SUFFIX_MODULE="a" | |
38212 | ;; | |
38213 | *-*-cygwin* | *-*-mingw32* ) | |
38214 | SO_SUFFIX="dll" | |
38215 | SO_SUFFIX_MODULE="dll" | |
38216 | DLLIMP_SUFFIX="dll.a" | |
38217 | EXEEXT=".exe" | |
38218 | DLLPREFIX="" | |
38219 | ;; | |
38220 | *-pc-msdosdjgpp ) | |
38221 | EXEEXT=".exe" | |
38222 | DLLPREFIX="" | |
38223 | ;; | |
38224 | *-pc-os2_emx | *-pc-os2-emx ) | |
38225 | SO_SUFFIX="dll" | |
38226 | SO_SUFFIX_MODULE="dll" | |
38227 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38228 | EXEEXT=".exe" | |
38229 | DLLPREFIX="" | |
38230 | LIBPREFIX="" | |
38231 | LIBEXT=".$OS2_LIBEXT" | |
38232 | ;; | |
38233 | powerpc-*-darwin* ) | |
38234 | SO_SUFFIX="dylib" | |
38235 | SO_SUFFIX_MODULE="bundle" | |
38236 | ;; | |
38237 | esac | |
38238 | ||
38239 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38240 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38241 | fi | |
38242 | ||
38243 | ||
38244 | ||
38245 | ||
38246 | ||
38247 | ||
38248 | ||
38249 | ||
38250 | ||
38251 | ||
38252 | ||
38253 | SHARED_LD_CC="\$(CC) -shared -o" | |
38254 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38255 | ||
38256 | if test "x$GCC" = "xyes"; then | |
38257 | PIC_FLAG="-fPIC" | |
38258 | fi | |
38259 | ||
38260 | case "${BAKEFILE_HOST}" in | |
38261 | *-hp-hpux* ) | |
38262 | if test "x$GCC" = "xyes"; then | |
38263 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38264 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38265 | else | |
38266 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38267 | ||
38268 | SHARED_LD_CC="${CC} -b -o" | |
38269 | SHARED_LD_CXX="${CXX} -b -o" | |
38270 | PIC_FLAG="+Z" | |
38271 | fi | |
38272 | ;; | |
38273 | ||
38274 | *-*-linux* ) | |
38275 | if test "x$GCC" != "xyes"; then | |
38276 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38277 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38278 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38280 | else | |
38281 | ||
38282 | cat >conftest.$ac_ext <<_ACEOF | |
38283 | /* confdefs.h. */ | |
38284 | _ACEOF | |
38285 | cat confdefs.h >>conftest.$ac_ext | |
38286 | cat >>conftest.$ac_ext <<_ACEOF | |
38287 | /* end confdefs.h. */ | |
38288 | ||
38289 | int | |
38290 | main () | |
38291 | { | |
38292 | ||
38293 | #ifndef __INTEL_COMPILER | |
38294 | #error Not icc | |
38295 | #endif | |
38296 | ||
38297 | ; | |
38298 | return 0; | |
38299 | } | |
38300 | _ACEOF | |
38301 | rm -f conftest.$ac_objext | |
38302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38303 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38304 | ac_status=$? |
ac1cb8d3 VS |
38305 | grep -v '^ *+' conftest.er1 >conftest.err |
38306 | rm -f conftest.er1 | |
38307 | cat conftest.err >&5 | |
a848cd7e SC |
38308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38309 | (exit $ac_status); } && | |
4d4ff94c | 38310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38312 | (eval $ac_try) 2>&5 | |
38313 | ac_status=$? | |
38314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38315 | (exit $ac_status); }; } && | |
38316 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38318 | (eval $ac_try) 2>&5 | |
38319 | ac_status=$? | |
38320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38321 | (exit $ac_status); }; }; then | |
38322 | bakefile_cv_prog_icc=yes | |
38323 | else | |
38324 | echo "$as_me: failed program was:" >&5 | |
38325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38326 | ||
38327 | bakefile_cv_prog_icc=no | |
38328 | ||
38329 | fi | |
ac1cb8d3 | 38330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38331 | |
38332 | fi | |
38333 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38334 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38335 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38336 | PIC_FLAG="-KPIC" | |
38337 | fi | |
38338 | fi | |
38339 | ;; | |
38340 | ||
38341 | *-*-solaris2* ) | |
38342 | if test "x$GCC" != xyes ; then | |
38343 | SHARED_LD_CC="${CC} -G -o" | |
38344 | SHARED_LD_CXX="${CXX} -G -o" | |
38345 | PIC_FLAG="-KPIC" | |
38346 | fi | |
38347 | ;; | |
38348 | ||
38349 | *-*-darwin* ) | |
38350 | ||
38351 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38352 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38353 | if test "${wx_cv_gcc31+set}" = set; then | |
38354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38355 | else | |
38356 | ||
38357 | cat >conftest.$ac_ext <<_ACEOF | |
38358 | /* confdefs.h. */ | |
38359 | _ACEOF | |
38360 | cat confdefs.h >>conftest.$ac_ext | |
38361 | cat >>conftest.$ac_ext <<_ACEOF | |
38362 | /* end confdefs.h. */ | |
38363 | ||
38364 | int | |
38365 | main () | |
38366 | { | |
38367 | ||
38368 | #if (__GNUC__ < 3) || \ | |
38369 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38370 | #error old gcc | |
38371 | #endif | |
38372 | ||
38373 | ; | |
38374 | return 0; | |
38375 | } | |
38376 | _ACEOF | |
38377 | rm -f conftest.$ac_objext | |
38378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38380 | ac_status=$? |
ac1cb8d3 VS |
38381 | grep -v '^ *+' conftest.er1 >conftest.err |
38382 | rm -f conftest.er1 | |
38383 | cat conftest.err >&5 | |
a848cd7e SC |
38384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38385 | (exit $ac_status); } && | |
4d4ff94c | 38386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38388 | (eval $ac_try) 2>&5 | |
38389 | ac_status=$? | |
38390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38391 | (exit $ac_status); }; } && | |
38392 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38394 | (eval $ac_try) 2>&5 | |
38395 | ac_status=$? | |
38396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38397 | (exit $ac_status); }; }; then | |
38398 | ||
38399 | wx_cv_gcc31=yes | |
38400 | ||
38401 | else | |
38402 | echo "$as_me: failed program was:" >&5 | |
38403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38404 | ||
38405 | ||
38406 | wx_cv_gcc31=no | |
38407 | ||
38408 | ||
38409 | fi | |
ac1cb8d3 | 38410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38411 | |
38412 | fi | |
38413 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38414 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
38415 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
38416 | |
38417 | D='$' | |
38418 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38419 | #!/bin/sh |
38420 | #----------------------------------------------------------------------------- | |
38421 | #-- Name: distrib/mac/shared-ld-sh | |
38422 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38423 | #-- Author: Gilles Depeyrot | |
38424 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38425 | #-- Licence: any use permitted | |
38426 | #----------------------------------------------------------------------------- | |
38427 | ||
38428 | verbose=0 | |
38429 | args="" | |
38430 | objects="" | |
38431 | linking_flag="-dynamiclib" | |
38432 | ||
473276a9 VS |
38433 | while test ${D}# -gt 0; do |
38434 | case ${D}1 in | |
a848cd7e SC |
38435 | |
38436 | -v) | |
38437 | verbose=1 | |
38438 | ;; | |
38439 | ||
38440 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38441 | # collect these options and values | |
473276a9 | 38442 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
38443 | shift |
38444 | ;; | |
38445 | ||
38446 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
38447 | # collect these options | |
473276a9 | 38448 | args="${D}{args} ${D}1" |
a848cd7e SC |
38449 | ;; |
38450 | ||
38451 | -dynamiclib|-bundle) | |
473276a9 | 38452 | linking_flag="${D}1" |
a848cd7e SC |
38453 | ;; |
38454 | ||
38455 | -*) | |
473276a9 | 38456 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
38457 | exit 1 |
38458 | ;; | |
38459 | ||
38460 | *.o | *.a | *.dylib) | |
38461 | # collect object files | |
473276a9 | 38462 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
38463 | ;; |
38464 | ||
38465 | *) | |
473276a9 | 38466 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
38467 | exit 1 |
38468 | ;; | |
38469 | ||
38470 | esac | |
38471 | shift | |
38472 | done | |
38473 | ||
38474 | # | |
38475 | # Link one module containing all the others | |
38476 | # | |
473276a9 VS |
38477 | if test ${D}{verbose} = 1; then |
38478 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 38479 | fi |
473276a9 VS |
38480 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
38481 | status=${D}? | |
38482 | if test ${D}{status} != 0; then | |
38483 | exit ${D}{status} | |
a848cd7e SC |
38484 | fi |
38485 | ||
38486 | # | |
38487 | # Link the shared library from the single module created | |
38488 | # | |
473276a9 VS |
38489 | if test ${D}{verbose} = 1; then |
38490 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 38491 | fi |
473276a9 VS |
38492 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
38493 | status=${D}? | |
38494 | if test ${D}{status} != 0; then | |
38495 | exit ${D}{status} | |
a848cd7e SC |
38496 | fi |
38497 | ||
38498 | # | |
38499 | # Remove intermediate module | |
38500 | # | |
473276a9 | 38501 | rm -f master.${D}${D}.o |
a848cd7e SC |
38502 | |
38503 | exit 0 | |
38504 | EOF | |
473276a9 | 38505 | |
a848cd7e SC |
38506 | chmod +x shared-ld-sh |
38507 | ||
38508 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
38509 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
38510 | SHARED_LD_CXX="$SHARED_LD_CC" | |
38511 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38512 | else | |
38513 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38514 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38515 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38516 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
38517 | fi | |
38518 | ||
38519 | PIC_FLAG="-dynamic -fPIC" | |
38520 | ;; | |
38521 | ||
38522 | *-*-aix* ) | |
38523 | if test "x$GCC" != "xyes"; then | |
38524 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38525 | set dummy makeC++SharedLib; ac_word=$2 | |
38526 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38528 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38530 | else | |
38531 | if test -n "$AIX_CXX_LD"; then | |
38532 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38533 | else | |
38534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38535 | for as_dir in $PATH | |
38536 | do | |
38537 | IFS=$as_save_IFS | |
38538 | test -z "$as_dir" && as_dir=. | |
38539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38540 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38541 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38543 | break 2 | |
38544 | fi | |
38545 | done | |
38546 | done | |
38547 | ||
38548 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
38549 | fi | |
38550 | fi | |
38551 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
38552 | if test -n "$AIX_CXX_LD"; then | |
38553 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
38554 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
38555 | else | |
38556 | echo "$as_me:$LINENO: result: no" >&5 | |
38557 | echo "${ECHO_T}no" >&6 | |
38558 | fi | |
38559 | ||
38560 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38561 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38562 | fi | |
38563 | ;; | |
38564 | ||
38565 | *-*-beos* ) | |
38566 | SHARED_LD_CC="${LD} -shared -o" | |
38567 | SHARED_LD_CXX="${LD} -shared -o" | |
38568 | ;; | |
38569 | ||
38570 | *-*-irix* ) | |
38571 | if test "x$GCC" != "xyes"; then | |
38572 | PIC_FLAG="-KPIC" | |
38573 | fi | |
38574 | ;; | |
38575 | ||
38576 | *-*-cygwin* | *-*-mingw32* ) | |
38577 | PIC_FLAG="" | |
38578 | ;; | |
38579 | ||
38580 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
38581 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
38582 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 38583 | PIC_FLAG="" |
473276a9 VS |
38584 | |
38585 | D='$' | |
38586 | cat <<EOF >dllar.sh | |
38587 | #!/bin/sh | |
38588 | # | |
38589 | # dllar - a tool to build both a .dll and an .a file | |
38590 | # from a set of object (.o) files for EMX/OS2. | |
38591 | # | |
38592 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
38593 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
38594 | # | |
38595 | # This script will accept a set of files on the command line. | |
38596 | # All the public symbols from the .o files will be exported into | |
38597 | # a .DEF file, then linker will be run (through gcc) against them to | |
38598 | # build a shared library consisting of all given .o files. All libraries | |
38599 | # (.a) will be first decompressed into component .o files then act as | |
38600 | # described above. You can optionally give a description (-d "description") | |
38601 | # which will be put into .DLL. To see the list of accepted options (as well | |
38602 | # as command-line format) simply run this program without options. The .DLL | |
38603 | # is built to be imported by name (there is no guarantee that new versions | |
38604 | # of the library you build will have same ordinals for same symbols). | |
38605 | # | |
38606 | # dllar is free software; you can redistribute it and/or modify | |
38607 | # it under the terms of the GNU General Public License as published by | |
38608 | # the Free Software Foundation; either version 2, or (at your option) | |
38609 | # any later version. | |
38610 | # | |
38611 | # dllar is distributed in the hope that it will be useful, | |
38612 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
38613 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
38614 | # GNU General Public License for more details. | |
38615 | # | |
38616 | # You should have received a copy of the GNU General Public License | |
38617 | # along with dllar; see the file COPYING. If not, write to the Free | |
38618 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
38619 | # 02111-1307, USA. | |
38620 | ||
38621 | # To successfuly run this program you will need: | |
38622 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
38623 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
38624 | # - gcc | |
38625 | # (used to build the .dll) | |
38626 | # - emxexp | |
38627 | # (used to create .def file from .o files) | |
38628 | # - emximp | |
38629 | # (used to create .a file from .def file) | |
38630 | # - GNU text utilites (cat, sort, uniq) | |
38631 | # used to process emxexp output | |
38632 | # - GNU file utilities (mv, rm) | |
38633 | # - GNU sed | |
38634 | # - lxlite (optional, see flag below) | |
38635 | # (used for general .dll cleanup) | |
38636 | # | |
38637 | ||
38638 | flag_USE_LXLITE=1; | |
38639 | ||
38640 | # | |
38641 | # helper functions | |
38642 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
38643 | # second argument (suffix to remove) is given | |
38644 | basnam(){ | |
38645 | case ${D}# in | |
38646 | 1) | |
38647 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
38648 | ;; | |
38649 | 2) | |
38650 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
38651 | ;; | |
38652 | *) | |
38653 | echo "error in basnam ${D}*" | |
38654 | exit 8 | |
38655 | ;; | |
38656 | esac | |
38657 | } | |
38658 | ||
38659 | # Cleanup temporary files and output | |
38660 | CleanUp() { | |
38661 | cd ${D}curDir | |
38662 | for i in ${D}inputFiles ; do | |
38663 | case ${D}i in | |
38664 | *!) | |
38665 | rm -rf \`basnam ${D}i !\` | |
38666 | ;; | |
38667 | *) | |
38668 | ;; | |
38669 | esac | |
38670 | done | |
38671 | ||
38672 | # Kill result in case of failure as there is just to many stupid make/nmake | |
38673 | # things out there which doesn't do this. | |
2057db16 | 38674 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
38675 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
38676 | fi | |
38677 | } | |
38678 | ||
38679 | # Print usage and exit script with rc=1. | |
38680 | PrintHelp() { | |
2057db16 VS |
38681 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
38682 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
38683 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
38684 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
38685 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
38686 | echo '*> "output_file" should have no extension.' |
38687 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
38688 | echo ' The import library name is derived from this and is set to "name".a,' | |
38689 | echo ' unless overridden by -import' | |
38690 | echo '*> "importlib_name" should have no extension.' | |
38691 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
38692 | echo ' This name is used as the import library name and may be longer and' | |
38693 | echo ' more descriptive than the DLL name which has to follow the old ' | |
38694 | echo ' 8.3 convention of FAT.' | |
38695 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
38696 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
38697 | echo ' These flags will be put at the start of GCC command line.' | |
2057db16 VS |
38698 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
38699 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
38700 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
38701 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
38702 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
2057db16 | 38703 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 38704 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
2057db16 | 38705 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 38706 | echo ' C runtime DLLs.' |
2057db16 | 38707 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
38708 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
38709 | echo ' unchanged to GCC at the end of command line.' | |
38710 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
38711 | echo ' the basename for DLL and import library will be set to library name,' | |
38712 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
38713 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
38714 | echo ' library will be renamed into gcc_s.a.' | |
38715 | echo '--------' | |
38716 | echo 'Example:' | |
38717 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
38718 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
38719 | CleanUp | |
38720 | exit 1 | |
38721 | } | |
38722 | ||
38723 | # Execute a command. | |
38724 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
38725 | # @Uses Whatever CleanUp() uses. | |
38726 | doCommand() { | |
38727 | echo "${D}*" | |
38728 | eval ${D}* | |
38729 | rcCmd=${D}? | |
38730 | ||
2057db16 | 38731 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
38732 | echo "command failed, exit code="${D}rcCmd |
38733 | CleanUp | |
38734 | exit ${D}rcCmd | |
38735 | fi | |
38736 | } | |
38737 | ||
38738 | # main routine | |
38739 | # setup globals | |
38740 | cmdLine=${D}* | |
38741 | outFile="" | |
38742 | outimpFile="" | |
38743 | inputFiles="" | |
38744 | description="" | |
38745 | CC=gcc.exe | |
38746 | CFLAGS="-s -Zcrtdll" | |
38747 | EXTRA_CFLAGS="" | |
38748 | EXPORT_BY_ORDINALS=0 | |
38749 | exclude_symbols="" | |
38750 | library_flags="" | |
38751 | curDir=\`pwd\` | |
38752 | curDirS=curDir | |
38753 | case ${D}curDirS in | |
38754 | */) | |
38755 | ;; | |
38756 | *) | |
38757 | curDirS=${D}{curDirS}"/" | |
38758 | ;; | |
38759 | esac | |
38760 | # Parse commandline | |
38761 | libsToLink=0 | |
2057db16 | 38762 | while [] ${D}1 []; do |
473276a9 VS |
38763 | case ${D}1 in |
38764 | -ord*) | |
38765 | EXPORT_BY_ORDINALS=1; | |
38766 | ;; | |
38767 | -o*) | |
38768 | shift | |
38769 | outFile=${D}1 | |
38770 | ;; | |
38771 | -i*) | |
38772 | shift | |
38773 | outimpFile=${D}1 | |
38774 | ;; | |
38775 | -d*) | |
38776 | shift | |
38777 | description=${D}1 | |
38778 | ;; | |
38779 | -f*) | |
38780 | shift | |
38781 | CFLAGS=${D}1 | |
38782 | ;; | |
38783 | -c*) | |
38784 | shift | |
38785 | CC=${D}1 | |
38786 | ;; | |
38787 | -h*) | |
38788 | PrintHelp | |
38789 | ;; | |
38790 | -ex*) | |
38791 | shift | |
38792 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
38793 | ;; | |
38794 | -libf*) | |
38795 | shift | |
38796 | library_flags=${D}{library_flags}${D}1" " | |
38797 | ;; | |
38798 | -nocrt*) | |
38799 | CFLAGS="-s" | |
38800 | ;; | |
38801 | -nolxl*) | |
38802 | flag_USE_LXLITE=0 | |
38803 | ;; | |
38804 | -* | /*) | |
38805 | case ${D}1 in | |
38806 | -L* | -l*) | |
38807 | libsToLink=1 | |
38808 | ;; | |
38809 | *) | |
38810 | ;; | |
38811 | esac | |
38812 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
38813 | ;; | |
38814 | *) | |
38815 | found=0; | |
2057db16 | 38816 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
38817 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
38818 | else | |
38819 | for file in ${D}1 ; do | |
2057db16 | 38820 | if [] -f ${D}file []; then |
473276a9 VS |
38821 | inputFiles="${D}{inputFiles} ${D}file" |
38822 | found=1 | |
38823 | fi | |
38824 | done | |
2057db16 | 38825 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
38826 | echo "ERROR: No file(s) found: "${D}1 |
38827 | exit 8 | |
38828 | fi | |
38829 | fi | |
38830 | ;; | |
38831 | esac | |
38832 | shift | |
38833 | done # iterate cmdline words | |
38834 | ||
38835 | # | |
2057db16 | 38836 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
38837 | echo "dllar: no input files" |
38838 | PrintHelp | |
38839 | fi | |
38840 | ||
38841 | # Now extract all .o files from .a files | |
38842 | newInputFiles="" | |
38843 | for file in ${D}inputFiles ; do | |
38844 | case ${D}file in | |
38845 | *.a | *.lib) | |
38846 | case ${D}file in | |
38847 | *.a) | |
38848 | suffix=".a" | |
38849 | AR="ar" | |
38850 | ;; | |
38851 | *.lib) | |
38852 | suffix=".lib" | |
38853 | AR="emxomfar" | |
38854 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
38855 | ;; | |
38856 | *) | |
38857 | ;; | |
38858 | esac | |
38859 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
38860 | mkdir ${D}dirname | |
2057db16 | 38861 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
38862 | echo "Failed to create subdirectory ./${D}dirname" |
38863 | CleanUp | |
38864 | exit 8; | |
38865 | fi | |
38866 | # Append '!' to indicate archive | |
38867 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
38868 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
38869 | cd ${D}curDir | |
38870 | found=0; | |
38871 | for subfile in ${D}dirname/*.o* ; do | |
2057db16 | 38872 | if [] -f ${D}subfile []; then |
473276a9 | 38873 | found=1 |
2057db16 | 38874 | if [] -s ${D}subfile []; then |
473276a9 VS |
38875 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
38876 | newInputFiles="${D}newInputFiles ${D}subfile" | |
38877 | fi | |
38878 | fi | |
38879 | done | |
2057db16 | 38880 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
38881 | echo "WARNING: there are no files in archive \'${D}file\'" |
38882 | fi | |
38883 | ;; | |
38884 | *) | |
38885 | newInputFiles="${D}{newInputFiles} ${D}file" | |
38886 | ;; | |
38887 | esac | |
38888 | done | |
38889 | inputFiles="${D}newInputFiles" | |
38890 | ||
38891 | # Output filename(s). | |
38892 | do_backup=0; | |
2057db16 | 38893 | if [] -z ${D}outFile []; then |
473276a9 VS |
38894 | do_backup=1; |
38895 | set outFile ${D}inputFiles; outFile=${D}2 | |
38896 | fi | |
38897 | ||
38898 | # If it is an archive, remove the '!' and the '_%' suffixes | |
38899 | case ${D}outFile in | |
38900 | *_%!) | |
38901 | outFile=\`basnam ${D}outFile _%!\` | |
38902 | ;; | |
38903 | *) | |
38904 | ;; | |
38905 | esac | |
38906 | case ${D}outFile in | |
38907 | *.dll) | |
38908 | outFile=\`basnam ${D}outFile .dll\` | |
38909 | ;; | |
38910 | *.DLL) | |
38911 | outFile=\`basnam ${D}outFile .DLL\` | |
38912 | ;; | |
38913 | *.o) | |
38914 | outFile=\`basnam ${D}outFile .o\` | |
38915 | ;; | |
38916 | *.obj) | |
38917 | outFile=\`basnam ${D}outFile .obj\` | |
38918 | ;; | |
38919 | *.a) | |
38920 | outFile=\`basnam ${D}outFile .a\` | |
38921 | ;; | |
38922 | *.lib) | |
38923 | outFile=\`basnam ${D}outFile .lib\` | |
38924 | ;; | |
38925 | *) | |
38926 | ;; | |
38927 | esac | |
38928 | case ${D}outimpFile in | |
38929 | *.a) | |
38930 | outimpFile=\`basnam ${D}outimpFile .a\` | |
38931 | ;; | |
38932 | *.lib) | |
38933 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
38934 | ;; | |
38935 | *) | |
38936 | ;; | |
38937 | esac | |
2057db16 | 38938 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
38939 | outimpFile=${D}outFile |
38940 | fi | |
38941 | defFile="${D}{outFile}.def" | |
38942 | arcFile="${D}{outimpFile}.a" | |
38943 | arcFile2="${D}{outimpFile}.lib" | |
38944 | dllFile="${D}outFile" | |
38945 | # Add suffix to dllFile later, first we need a version to use as | |
38946 | # name in .def file. | |
38947 | ||
2057db16 VS |
38948 | if [] ${D}do_backup -ne 0 [] ; then |
38949 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
38950 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
38951 | fi | |
2057db16 | 38952 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
38953 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
38954 | fi | |
38955 | fi | |
38956 | ||
38957 | # Extract public symbols from all the object files. | |
38958 | tmpdefFile=${D}{defFile}_% | |
38959 | rm -f ${D}tmpdefFile | |
38960 | for file in ${D}inputFiles ; do | |
38961 | case ${D}file in | |
38962 | *!) | |
38963 | ;; | |
38964 | *) | |
38965 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
38966 | ;; | |
38967 | esac | |
38968 | done | |
38969 | ||
38970 | # Create the def file. | |
38971 | rm -f ${D}defFile | |
38972 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
38973 | dllFile="${D}dllFile.dll" | |
2057db16 | 38974 | if [] -n ${D}description []; then |
473276a9 VS |
38975 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
38976 | fi | |
38977 | echo "EXPORTS" >> ${D}defFile | |
38978 | ||
38979 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
38980 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
38981 | ||
38982 | # Checks if the export is ok or not. | |
38983 | for word in ${D}exclude_symbols; do | |
38984 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
38985 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
38986 | done | |
38987 | ||
38988 | ||
2057db16 | 38989 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
38990 | sed "=" < ${D}tmpdefFile | \ |
38991 | sed ' | |
38992 | N | |
38993 | : loop | |
2057db16 | 38994 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
38995 | t loop |
38996 | ' > ${D}{tmpdefFile}% | |
38997 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
38998 | else | |
38999 | rm -f ${D}{tmpdefFile}% | |
39000 | fi | |
39001 | cat ${D}tmpdefFile >> ${D}defFile | |
39002 | rm -f ${D}tmpdefFile | |
39003 | ||
39004 | # Do linking, create implib, and apply lxlite. | |
39005 | gccCmdl=""; | |
39006 | for file in ${D}inputFiles ; do | |
39007 | case ${D}file in | |
39008 | *!) | |
39009 | ;; | |
39010 | *) | |
39011 | gccCmdl="${D}gccCmdl ${D}file" | |
39012 | ;; | |
39013 | esac | |
39014 | done | |
39015 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39016 | touch "${D}{outFile}.dll" | |
39017 | ||
39018 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
2057db16 | 39019 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39020 | add_flags=""; |
2057db16 | 39021 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39022 | add_flags="-ynd" |
39023 | fi | |
39024 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39025 | fi | |
39026 | doCommand "emxomf -s -l ${D}arcFile" | |
39027 | ||
39028 | # Successful exit. | |
39029 | CleanUp 1 | |
39030 | exit 0 | |
39031 | EOF | |
39032 | ||
39033 | chmod +x dllar.sh | |
a848cd7e SC |
39034 | ;; |
39035 | ||
39036 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39037 | *-*-sunos4* | \ | |
39038 | *-*-osf* | \ | |
39039 | *-*-dgux5* | \ | |
39040 | *-*-sysv5* ) | |
39041 | ;; | |
39042 | ||
39043 | *) | |
39044 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39045 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39046 | { (exit 1); exit 1; }; } | |
39047 | esac | |
39048 | ||
2057db16 VS |
39049 | if test "x$PIC_FLAG" != "x" ; then |
39050 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39051 | fi | |
39052 | ||
a848cd7e SC |
39053 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39054 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39055 | fi | |
39056 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39057 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39058 | fi | |
39059 | ||
39060 | ||
39061 | ||
39062 | ||
39063 | ||
39064 | ||
39065 | ||
39066 | ||
39067 | USE_SOVERSION=0 | |
39068 | USE_SOVERLINUX=0 | |
39069 | USE_SOVERSOLARIS=0 | |
39070 | USE_SOSYMLINKS=0 | |
39071 | USE_MACVERSION=0 | |
39072 | SONAME_FLAG= | |
39073 | ||
39074 | case "${BAKEFILE_HOST}" in | |
39075 | *-*-linux* ) | |
39076 | SONAME_FLAG="-Wl,-soname," | |
39077 | USE_SOVERSION=1 | |
39078 | USE_SOVERLINUX=1 | |
39079 | USE_SOSYMLINKS=1 | |
39080 | ;; | |
39081 | ||
39082 | *-*-solaris2* ) | |
39083 | SONAME_FLAG="-h " | |
39084 | USE_SOVERSION=1 | |
39085 | USE_SOVERSOLARIS=1 | |
39086 | USE_SOSYMLINKS=1 | |
39087 | ;; | |
39088 | ||
39089 | *-*-darwin* ) | |
39090 | USE_MACVERSION=1 | |
39091 | USE_SOVERSION=1 | |
39092 | USE_SOSYMLINKS=1 | |
39093 | ;; | |
39094 | esac | |
39095 | ||
39096 | ||
39097 | ||
39098 | ||
39099 | ||
39100 | ||
39101 | ||
39102 | ||
39103 | ||
39104 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39105 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39106 | DEPS_TRACKING=0 | |
39107 | ||
39108 | if test "x$GCC" = "xyes"; then | |
39109 | DEPSMODE=gcc | |
39110 | DEPS_TRACKING=1 | |
39111 | case "${BAKEFILE_HOST}" in | |
39112 | powerpc-*-darwin* ) | |
39113 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39114 | ;; | |
39115 | * ) | |
39116 | DEPSFLAG_GCC="-MMD" | |
39117 | ;; | |
39118 | esac | |
39119 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39120 | echo "${ECHO_T}gcc" >&6 | |
39121 | else | |
39122 | echo "$as_me:$LINENO: result: none" >&5 | |
39123 | echo "${ECHO_T}none" >&6 | |
39124 | fi | |
39125 | ||
39126 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39127 | |
39128 | D='$' | |
39129 | cat <<EOF >bk-deps | |
a848cd7e SC |
39130 | #!/bin/sh |
39131 | ||
39132 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39133 | # script. It is used to track C/C++ files dependencies in portable way. | |
39134 | # | |
39135 | # Permission is given to use this file in any way. | |
39136 | ||
473276a9 | 39137 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39138 | DEPSDIR=.deps |
473276a9 | 39139 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39140 | |
473276a9 | 39141 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39142 | |
473276a9 VS |
39143 | if test ${D}DEPSMODE = gcc ; then |
39144 | ${D}* ${D}{DEPSFLAG_GCC} | |
39145 | status=${D}? | |
39146 | if test ${D}{status} != 0 ; then | |
39147 | exit ${D}{status} | |
a848cd7e SC |
39148 | fi |
39149 | # move created file to the location we want it in: | |
473276a9 VS |
39150 | while test ${D}# -gt 0; do |
39151 | case "${D}1" in | |
a848cd7e SC |
39152 | -o ) |
39153 | shift | |
473276a9 | 39154 | objfile=${D}1 |
a848cd7e SC |
39155 | ;; |
39156 | -* ) | |
39157 | ;; | |
39158 | * ) | |
473276a9 | 39159 | srcfile=${D}1 |
a848cd7e SC |
39160 | ;; |
39161 | esac | |
39162 | shift | |
39163 | done | |
473276a9 VS |
39164 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39165 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39166 | if test -f ${D}depfile ; then | |
39167 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39168 | rm -f ${D}depfile | |
a848cd7e | 39169 | else |
473276a9 VS |
39170 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39171 | if test -f ${D}depfile ; then | |
39172 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39173 | rm -f ${D}depfile | |
a848cd7e SC |
39174 | fi |
39175 | fi | |
39176 | exit 0 | |
39177 | else | |
473276a9 VS |
39178 | ${D}* |
39179 | exit ${D}? | |
a848cd7e SC |
39180 | fi |
39181 | EOF | |
473276a9 | 39182 | |
a848cd7e SC |
39183 | chmod +x bk-deps |
39184 | fi | |
39185 | ||
39186 | ||
39187 | ||
39188 | ||
39189 | RESCOMP= | |
39190 | SETFILE= | |
39191 | ||
39192 | case ${BAKEFILE_HOST} in | |
39193 | *-*-cygwin* | *-*-mingw32* ) | |
39194 | if test "$build" != "$host" ; then | |
39195 | RESCOMP=$host_alias-windres | |
39196 | else | |
39197 | # Extract the first word of "windres", so it can be a program name with args. | |
39198 | set dummy windres; ac_word=$2 | |
39199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39201 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39203 | else | |
39204 | if test -n "$RESCOMP"; then | |
39205 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39206 | else | |
39207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39208 | for as_dir in $PATH | |
39209 | do | |
39210 | IFS=$as_save_IFS | |
39211 | test -z "$as_dir" && as_dir=. | |
39212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39214 | ac_cv_prog_RESCOMP="windres" | |
39215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39216 | break 2 | |
39217 | fi | |
39218 | done | |
39219 | done | |
39220 | ||
39221 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39222 | fi | |
39223 | fi | |
39224 | RESCOMP=$ac_cv_prog_RESCOMP | |
39225 | if test -n "$RESCOMP"; then | |
39226 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39227 | echo "${ECHO_T}$RESCOMP" >&6 | |
39228 | else | |
39229 | echo "$as_me:$LINENO: result: no" >&5 | |
39230 | echo "${ECHO_T}no" >&6 | |
39231 | fi | |
39232 | ||
39233 | fi | |
39234 | ;; | |
39235 | ||
39236 | *-*-darwin* ) | |
39237 | # Extract the first word of "Rez", so it can be a program name with args. | |
39238 | set dummy Rez; ac_word=$2 | |
39239 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39241 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39243 | else | |
39244 | if test -n "$RESCOMP"; then | |
39245 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39246 | else | |
39247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39248 | for as_dir in $PATH | |
39249 | do | |
39250 | IFS=$as_save_IFS | |
39251 | test -z "$as_dir" && as_dir=. | |
39252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39253 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39254 | ac_cv_prog_RESCOMP="Rez" | |
39255 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39256 | break 2 | |
39257 | fi | |
39258 | done | |
39259 | done | |
39260 | ||
39261 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39262 | fi | |
39263 | fi | |
39264 | RESCOMP=$ac_cv_prog_RESCOMP | |
39265 | if test -n "$RESCOMP"; then | |
39266 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39267 | echo "${ECHO_T}$RESCOMP" >&6 | |
39268 | else | |
39269 | echo "$as_me:$LINENO: result: no" >&5 | |
39270 | echo "${ECHO_T}no" >&6 | |
39271 | fi | |
39272 | ||
39273 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39274 | set dummy SetFile; ac_word=$2 | |
39275 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39277 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39279 | else | |
39280 | if test -n "$SETFILE"; then | |
39281 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39282 | else | |
39283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39284 | for as_dir in $PATH | |
39285 | do | |
39286 | IFS=$as_save_IFS | |
39287 | test -z "$as_dir" && as_dir=. | |
39288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39290 | ac_cv_prog_SETFILE="SetFile" | |
39291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39292 | break 2 | |
39293 | fi | |
39294 | done | |
39295 | done | |
39296 | ||
39297 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39298 | fi | |
39299 | fi | |
39300 | SETFILE=$ac_cv_prog_SETFILE | |
39301 | if test -n "$SETFILE"; then | |
39302 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39303 | echo "${ECHO_T}$SETFILE" >&6 | |
39304 | else | |
39305 | echo "$as_me:$LINENO: result: no" >&5 | |
39306 | echo "${ECHO_T}no" >&6 | |
39307 | fi | |
39308 | ||
39309 | ;; | |
39310 | esac | |
39311 | ||
39312 | ||
39313 | ||
39314 | ||
39315 | ||
2057db16 | 39316 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39317 | |
dcc1b6ad | 39318 | |
a0f9686d VS |
39319 | |
39320 | ||
39321 | ||
9f45f08e | 39322 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39323 | |
646b6ec1 | 39324 | |
74b84332 | 39325 | |
a848cd7e SC |
39326 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39327 | if test "${enable_precomp_headers+set}" = set; then | |
39328 | enableval="$enable_precomp_headers" | |
39329 | bk_use_pch="$enableval" | |
39330 | fi; | |
39331 | ||
39332 | GCC_PCH=0 | |
39333 | ||
39334 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39335 | if test "x$GCC" = "xyes"; then | |
39336 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39337 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39338 | cat >conftest.$ac_ext <<_ACEOF | |
39339 | /* confdefs.h. */ | |
39340 | _ACEOF | |
39341 | cat confdefs.h >>conftest.$ac_ext | |
39342 | cat >>conftest.$ac_ext <<_ACEOF | |
39343 | /* end confdefs.h. */ | |
39344 | ||
39345 | int | |
39346 | main () | |
39347 | { | |
39348 | ||
39349 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39350 | #error "no pch support" | |
39351 | #endif | |
39352 | #if (__GNUC__ < 3) | |
39353 | #error "no pch support" | |
39354 | #endif | |
39355 | #if (__GNUC__ == 3) && \ | |
39356 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39357 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39358 | #error "no pch support" | |
39359 | #endif | |
39360 | ||
39361 | ; | |
39362 | return 0; | |
39363 | } | |
39364 | _ACEOF | |
39365 | rm -f conftest.$ac_objext | |
39366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39367 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39368 | ac_status=$? |
ac1cb8d3 VS |
39369 | grep -v '^ *+' conftest.er1 >conftest.err |
39370 | rm -f conftest.er1 | |
39371 | cat conftest.err >&5 | |
a848cd7e SC |
39372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39373 | (exit $ac_status); } && | |
4d4ff94c | 39374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39376 | (eval $ac_try) 2>&5 | |
39377 | ac_status=$? | |
39378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39379 | (exit $ac_status); }; } && | |
39380 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39382 | (eval $ac_try) 2>&5 | |
39383 | ac_status=$? | |
39384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39385 | (exit $ac_status); }; }; then | |
39386 | ||
39387 | echo "$as_me:$LINENO: result: yes" >&5 | |
39388 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
39389 | GCC_PCH=1 |
39390 | ||
39391 | else | |
39392 | echo "$as_me: failed program was:" >&5 | |
39393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39394 | ||
39395 | ||
39396 | echo "$as_me:$LINENO: result: no" >&5 | |
39397 | echo "${ECHO_T}no" >&6 | |
39398 | ||
39399 | fi | |
ac1cb8d3 | 39400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39401 | if test $GCC_PCH = 1 ; then |
39402 | cat <<EOF >bk-make-pch | |
39403 | #!/bin/sh | |
39404 | ||
39405 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39406 | # script. It is used to generated precompiled headers. | |
39407 | # | |
39408 | # Permission is given to use this file in any way. | |
39409 | ||
39410 | outfile="\${1}" | |
39411 | header="\${2}" | |
39412 | shift | |
39413 | shift | |
39414 | ||
39415 | compiler= | |
39416 | headerfile= | |
39417 | while test \${#} -gt 0; do | |
39418 | case "\${1}" in | |
39419 | -I* ) | |
39420 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39421 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39422 | headerfile="\${incdir}/\${header}" | |
39423 | fi | |
39424 | ;; | |
39425 | esac | |
39426 | compiler="\${compiler} \${1}" | |
39427 | shift | |
39428 | done | |
39429 | ||
39430 | if test "x\${headerfile}" = "x" ; then | |
39431 | echo "error: can't find header \${header} in include paths" >2 | |
39432 | else | |
39433 | if test -f \${outfile} ; then | |
39434 | rm -f \${outfile} | |
39435 | else | |
39436 | mkdir -p \`dirname \${outfile}\` | |
39437 | fi | |
39438 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39439 | mkdir -p .deps | |
39440 | # can do this because gcc is >= 3.4: | |
39441 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39442 | exit \${?} | |
39443 | fi | |
39444 | EOF | |
39445 | chmod +x bk-make-pch | |
39446 | fi | |
39447 | fi | |
39448 | fi | |
39449 | ||
39450 | ||
39451 | ||
39452 | ||
39453 | ||
dcc1b6ad VS |
39454 | |
39455 | ||
39456 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
39457 | if test "${enable_precomp_headers+set}" = set; then | |
39458 | enableval="$enable_precomp_headers" | |
39459 | bk_use_pch="$enableval" | |
39460 | fi; | |
39461 | ||
39462 | GCC_PCH=0 | |
39463 | ||
39464 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39465 | if test "x$GCC" = "xyes"; then | |
39466 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39467 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39468 | cat >conftest.$ac_ext <<_ACEOF | |
39469 | /* confdefs.h. */ | |
39470 | _ACEOF | |
39471 | cat confdefs.h >>conftest.$ac_ext | |
39472 | cat >>conftest.$ac_ext <<_ACEOF | |
39473 | /* end confdefs.h. */ | |
39474 | ||
39475 | int | |
39476 | main () | |
39477 | { | |
39478 | ||
39479 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39480 | #error "no pch support" | |
39481 | #endif | |
39482 | #if (__GNUC__ < 3) | |
39483 | #error "no pch support" | |
39484 | #endif | |
39485 | #if (__GNUC__ == 3) && \ | |
39486 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39487 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39488 | #error "no pch support" | |
39489 | #endif | |
39490 | ||
39491 | ; | |
39492 | return 0; | |
39493 | } | |
39494 | _ACEOF | |
39495 | rm -f conftest.$ac_objext | |
39496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39497 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 39498 | ac_status=$? |
ac1cb8d3 VS |
39499 | grep -v '^ *+' conftest.er1 >conftest.err |
39500 | rm -f conftest.er1 | |
39501 | cat conftest.err >&5 | |
dcc1b6ad VS |
39502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39503 | (exit $ac_status); } && | |
4d4ff94c | 39504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39506 | (eval $ac_try) 2>&5 | |
39507 | ac_status=$? | |
39508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39509 | (exit $ac_status); }; } && | |
39510 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
39511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39512 | (eval $ac_try) 2>&5 | |
39513 | ac_status=$? | |
39514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39515 | (exit $ac_status); }; }; then | |
39516 | ||
39517 | echo "$as_me:$LINENO: result: yes" >&5 | |
39518 | echo "${ECHO_T}yes" >&6 | |
dcc1b6ad VS |
39519 | GCC_PCH=1 |
39520 | ||
39521 | else | |
39522 | echo "$as_me: failed program was:" >&5 | |
39523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39524 | ||
39525 | ||
39526 | echo "$as_me:$LINENO: result: no" >&5 | |
39527 | echo "${ECHO_T}no" >&6 | |
39528 | ||
39529 | fi | |
ac1cb8d3 | 39530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
39531 | if test $GCC_PCH = 1 ; then |
39532 | cat <<EOF >bk-make-pch | |
39533 | #!/bin/sh | |
39534 | ||
39535 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39536 | # script. It is used to generated precompiled headers. | |
39537 | # | |
39538 | # Permission is given to use this file in any way. | |
39539 | ||
39540 | outfile="\${1}" | |
39541 | header="\${2}" | |
39542 | shift | |
39543 | shift | |
39544 | ||
39545 | compiler= | |
39546 | headerfile= | |
39547 | while test \${#} -gt 0; do | |
39548 | case "\${1}" in | |
39549 | -I* ) | |
39550 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39551 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39552 | headerfile="\${incdir}/\${header}" | |
39553 | fi | |
39554 | ;; | |
39555 | esac | |
39556 | compiler="\${compiler} \${1}" | |
39557 | shift | |
39558 | done | |
39559 | ||
39560 | if test "x\${headerfile}" = "x" ; then | |
39561 | echo "error: can't find header \${header} in include paths" >2 | |
39562 | else | |
39563 | if test -f \${outfile} ; then | |
39564 | rm -f \${outfile} | |
39565 | else | |
39566 | mkdir -p \`dirname \${outfile}\` | |
39567 | fi | |
39568 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39569 | mkdir -p .deps | |
39570 | # can do this because gcc is >= 3.4: | |
39571 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39572 | exit \${?} | |
39573 | fi | |
39574 | EOF | |
39575 | chmod +x bk-make-pch | |
39576 | fi | |
39577 | fi | |
39578 | fi | |
39579 | ||
39580 | ||
39581 | ||
4d4ff94c | 39582 | |
a848cd7e SC |
39583 | COND_BUILD_DEBUG="#" |
39584 | if test "x$BUILD" = "xdebug" ; then | |
39585 | COND_BUILD_DEBUG="" | |
39586 | fi | |
39587 | ||
39588 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
39589 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39590 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39591 | fi | |
39592 | ||
39593 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39594 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39595 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39596 | fi | |
39597 | ||
39598 | COND_BUILD_DEBUG_UNICODE_0="#" | |
39599 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39600 | COND_BUILD_DEBUG_UNICODE_0="" | |
39601 | fi | |
39602 | ||
39603 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39604 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39605 | COND_BUILD_DEBUG_UNICODE_1="" | |
39606 | fi | |
39607 | ||
39608 | COND_BUILD_RELEASE="#" | |
39609 | if test "x$BUILD" = "xrelease" ; then | |
39610 | COND_BUILD_RELEASE="" | |
39611 | fi | |
39612 | ||
39613 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
39614 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39615 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39616 | fi | |
39617 | ||
39618 | COND_BUILD_RELEASE_UNICODE_0="#" | |
39619 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39620 | COND_BUILD_RELEASE_UNICODE_0="" | |
39621 | fi | |
39622 | ||
39623 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39624 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39625 | COND_BUILD_RELEASE_UNICODE_1="" | |
39626 | fi | |
39627 | ||
39628 | COND_DEBUG_FLAG_1="#" | |
39629 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39630 | COND_DEBUG_FLAG_1="" | |
39631 | fi | |
39632 | ||
39633 | COND_DEBUG_INFO_0="#" | |
39634 | if test "x$DEBUG_INFO" = "x0" ; then | |
39635 | COND_DEBUG_INFO_0="" | |
39636 | fi | |
39637 | ||
39638 | COND_DEBUG_INFO_1="#" | |
39639 | if test "x$DEBUG_INFO" = "x1" ; then | |
39640 | COND_DEBUG_INFO_1="" | |
39641 | fi | |
39642 | ||
39643 | COND_DEPS_TRACKING_0="#" | |
39644 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39645 | COND_DEPS_TRACKING_0="" | |
39646 | fi | |
39647 | ||
39648 | COND_DEPS_TRACKING_1="#" | |
39649 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39650 | COND_DEPS_TRACKING_1="" | |
39651 | fi | |
39652 | ||
39653 | COND_GCC_PCH_1="#" | |
39654 | if test "x$GCC_PCH" = "x1" ; then | |
39655 | COND_GCC_PCH_1="" | |
39656 | fi | |
39657 | ||
39658 | COND_MONOLITHIC_0="#" | |
39659 | if test "x$MONOLITHIC" = "x0" ; then | |
39660 | COND_MONOLITHIC_0="" | |
39661 | fi | |
39662 | ||
39663 | COND_MONOLITHIC_0_SHARED_0="#" | |
39664 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39665 | COND_MONOLITHIC_0_SHARED_0="" | |
39666 | fi | |
39667 | ||
39668 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39669 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39670 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
39671 | fi | |
39672 | ||
39673 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
39674 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39675 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39676 | fi | |
39677 | ||
39678 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
39679 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39680 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39681 | fi | |
39682 | ||
39683 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
39684 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39685 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39686 | fi | |
39687 | ||
39688 | COND_MONOLITHIC_0_SHARED_1="#" | |
39689 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39690 | COND_MONOLITHIC_0_SHARED_1="" | |
39691 | fi | |
39692 | ||
39693 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
39694 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39695 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
39696 | fi | |
39697 | ||
39698 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
39699 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39700 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
39701 | fi | |
39702 | ||
39703 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
39704 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
39705 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
39706 | fi | |
39707 | ||
39708 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
39709 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39710 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
39711 | fi | |
39712 | ||
39713 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
39714 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39715 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
39716 | fi | |
39717 | ||
39718 | COND_MONOLITHIC_1="#" | |
39719 | if test "x$MONOLITHIC" = "x1" ; then | |
39720 | COND_MONOLITHIC_1="" | |
39721 | fi | |
39722 | ||
39723 | COND_MONOLITHIC_1_SHARED_0="#" | |
39724 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
39725 | COND_MONOLITHIC_1_SHARED_0="" | |
39726 | fi | |
39727 | ||
39728 | COND_MONOLITHIC_1_SHARED_1="#" | |
39729 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
39730 | COND_MONOLITHIC_1_SHARED_1="" | |
39731 | fi | |
39732 | ||
39733 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
39734 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39735 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
39736 | fi | |
39737 | ||
39738 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
39739 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39740 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
39741 | fi | |
39742 | ||
39743 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
39744 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
39745 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
39746 | fi | |
39747 | ||
39748 | COND_PLATFORM_MACOSX_1="#" | |
39749 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
39750 | COND_PLATFORM_MACOSX_1="" | |
39751 | fi | |
39752 | ||
39753 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
39754 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
39755 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
39756 | fi | |
39757 | ||
39758 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
39759 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
39760 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
39761 | fi | |
39762 | ||
39763 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
39764 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
39765 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
39766 | fi | |
39767 | ||
ebee3cd0 VS |
39768 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
39769 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
39770 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
39771 | fi | |
39772 | ||
39773 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
39774 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
39775 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
39776 | fi | |
39777 | ||
a848cd7e SC |
39778 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
39779 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39780 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
39781 | fi | |
39782 | ||
39783 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
39784 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
39785 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
39786 | fi | |
39787 | ||
39788 | COND_PLATFORM_MAC_1="#" | |
39789 | if test "x$PLATFORM_MAC" = "x1" ; then | |
39790 | COND_PLATFORM_MAC_1="" | |
39791 | fi | |
39792 | ||
39793 | COND_PLATFORM_OS2_1="#" | |
39794 | if test "x$PLATFORM_OS2" = "x1" ; then | |
39795 | COND_PLATFORM_OS2_1="" | |
39796 | fi | |
39797 | ||
39798 | COND_PLATFORM_UNIX_0="#" | |
39799 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
39800 | COND_PLATFORM_UNIX_0="" | |
39801 | fi | |
39802 | ||
39803 | COND_PLATFORM_UNIX_1="#" | |
39804 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
39805 | COND_PLATFORM_UNIX_1="" | |
39806 | fi | |
39807 | ||
39808 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
39809 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39810 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
39811 | fi | |
39812 | ||
39813 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
39814 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
39815 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
39816 | fi | |
39817 | ||
39818 | COND_PLATFORM_WIN32_0="#" | |
39819 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
39820 | COND_PLATFORM_WIN32_0="" | |
39821 | fi | |
39822 | ||
39823 | COND_PLATFORM_WIN32_1="#" | |
39824 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
39825 | COND_PLATFORM_WIN32_1="" | |
39826 | fi | |
39827 | ||
39828 | COND_SHARED_0="#" | |
39829 | if test "x$SHARED" = "x0" ; then | |
39830 | COND_SHARED_0="" | |
39831 | fi | |
39832 | ||
39833 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
39834 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39835 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
39836 | fi | |
39837 | ||
39838 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
39839 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39840 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
39841 | fi | |
39842 | ||
39843 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
39844 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39845 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
39846 | fi | |
39847 | ||
39848 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
39849 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39850 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
39851 | fi | |
39852 | ||
39853 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
39854 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
39855 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
39856 | fi | |
39857 | ||
39858 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
39859 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
39860 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
39861 | fi | |
39862 | ||
39863 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
39864 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
39865 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
39866 | fi | |
39867 | ||
39868 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
39869 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
39870 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
39871 | fi | |
39872 | ||
39873 | COND_SHARED_1="#" | |
39874 | if test "x$SHARED" = "x1" ; then | |
39875 | COND_SHARED_1="" | |
39876 | fi | |
39877 | ||
39878 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
39879 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39880 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
39881 | fi | |
39882 | ||
39883 | COND_TOOLKIT_COCOA="#" | |
39884 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
39885 | COND_TOOLKIT_COCOA="" | |
39886 | fi | |
39887 | ||
39888 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
39889 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39890 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
39891 | fi | |
39892 | ||
39893 | COND_TOOLKIT_GTK="#" | |
39894 | if test "x$TOOLKIT" = "xGTK" ; then | |
39895 | COND_TOOLKIT_GTK="" | |
39896 | fi | |
39897 | ||
39898 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
39899 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
39900 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
39901 | fi | |
39902 | ||
39903 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
39904 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39905 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
39906 | fi | |
39907 | ||
39908 | COND_TOOLKIT_MAC="#" | |
39909 | if test "x$TOOLKIT" = "xMAC" ; then | |
39910 | COND_TOOLKIT_MAC="" | |
39911 | fi | |
39912 | ||
39913 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
39914 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
39915 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
39916 | fi | |
39917 | ||
39918 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
39919 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39920 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
39921 | fi | |
39922 | ||
4d4ff94c VZ |
39923 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
39924 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
39925 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
39926 | fi | |
39927 | ||
a848cd7e SC |
39928 | COND_TOOLKIT_MGL="#" |
39929 | if test "x$TOOLKIT" = "xMGL" ; then | |
39930 | COND_TOOLKIT_MGL="" | |
39931 | fi | |
39932 | ||
39933 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
39934 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
39935 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
39936 | fi | |
39937 | ||
39938 | COND_TOOLKIT_MOTIF="#" | |
39939 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
39940 | COND_TOOLKIT_MOTIF="" | |
39941 | fi | |
39942 | ||
39943 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
39944 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
39945 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
39946 | fi | |
39947 | ||
39948 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
39949 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39950 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
39951 | fi | |
39952 | ||
39953 | COND_TOOLKIT_MSW="#" | |
39954 | if test "x$TOOLKIT" = "xMSW" ; then | |
39955 | COND_TOOLKIT_MSW="" | |
39956 | fi | |
39957 | ||
39958 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
39959 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
39960 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
39961 | fi | |
39962 | ||
39963 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
39964 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39965 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
39966 | fi | |
39967 | ||
4d4ff94c VZ |
39968 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
39969 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
39970 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
39971 | fi | |
39972 | ||
a848cd7e SC |
39973 | COND_TOOLKIT_PM="#" |
39974 | if test "x$TOOLKIT" = "xPM" ; then | |
39975 | COND_TOOLKIT_PM="" | |
39976 | fi | |
39977 | ||
39978 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
39979 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
39980 | COND_TOOLKIT_PM_USE_GUI_1="" | |
39981 | fi | |
39982 | ||
39983 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
39984 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39985 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
39986 | fi | |
39987 | ||
4d4ff94c VZ |
39988 | COND_TOOLKIT_PM_WXUNIV_0="#" |
39989 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
39990 | COND_TOOLKIT_PM_WXUNIV_0="" | |
39991 | fi | |
39992 | ||
3fd9c298 DE |
39993 | COND_TOOLKIT_WINCE="#" |
39994 | if test "x$TOOLKIT" = "xWINCE" ; then | |
39995 | COND_TOOLKIT_WINCE="" | |
39996 | fi | |
39997 | ||
39998 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
39999 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40000 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40001 | fi | |
40002 | ||
40003 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40004 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40005 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40006 | fi | |
40007 | ||
a848cd7e SC |
40008 | COND_TOOLKIT_X11="#" |
40009 | if test "x$TOOLKIT" = "xX11" ; then | |
40010 | COND_TOOLKIT_X11="" | |
40011 | fi | |
40012 | ||
40013 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40014 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40015 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40016 | fi | |
40017 | ||
40018 | COND_UNICODE_1="#" | |
40019 | if test "x$UNICODE" = "x1" ; then | |
40020 | COND_UNICODE_1="" | |
40021 | fi | |
40022 | ||
40023 | COND_USE_EXCEPTIONS_0="#" | |
40024 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40025 | COND_USE_EXCEPTIONS_0="" | |
40026 | fi | |
40027 | ||
40028 | COND_USE_EXCEPTIONS_1="#" | |
40029 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40030 | COND_USE_EXCEPTIONS_1="" | |
40031 | fi | |
40032 | ||
40033 | COND_USE_GUI_0="#" | |
40034 | if test "x$USE_GUI" = "x0" ; then | |
40035 | COND_USE_GUI_0="" | |
40036 | fi | |
40037 | ||
40038 | COND_USE_GUI_1="#" | |
40039 | if test "x$USE_GUI" = "x1" ; then | |
40040 | COND_USE_GUI_1="" | |
40041 | fi | |
40042 | ||
40043 | COND_USE_GUI_1_WXUNIV_0="#" | |
40044 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40045 | COND_USE_GUI_1_WXUNIV_0="" | |
40046 | fi | |
40047 | ||
40048 | COND_USE_GUI_1_WXUNIV_1="#" | |
40049 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40050 | COND_USE_GUI_1_WXUNIV_1="" | |
40051 | fi | |
40052 | ||
40053 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40054 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40055 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40056 | fi | |
40057 | ||
40058 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40059 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40060 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40061 | fi | |
40062 | ||
40063 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40064 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40065 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40066 | fi | |
40067 | ||
4d4ff94c VZ |
40068 | COND_USE_ODBC_1="#" |
40069 | if test "x$USE_ODBC" = "x1" ; then | |
40070 | COND_USE_ODBC_1="" | |
40071 | fi | |
40072 | ||
a848cd7e SC |
40073 | COND_USE_PLUGINS_0="#" |
40074 | if test "x$USE_PLUGINS" = "x0" ; then | |
40075 | COND_USE_PLUGINS_0="" | |
40076 | fi | |
40077 | ||
40078 | COND_USE_SOSYMLINKS_1="#" | |
40079 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40080 | COND_USE_SOSYMLINKS_1="" | |
40081 | fi | |
40082 | ||
40083 | COND_USE_SOVERLINUX_1="#" | |
40084 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40085 | COND_USE_SOVERLINUX_1="" | |
40086 | fi | |
40087 | ||
40088 | COND_USE_SOVERSION_0="#" | |
40089 | if test "x$USE_SOVERSION" = "x0" ; then | |
40090 | COND_USE_SOVERSION_0="" | |
40091 | fi | |
40092 | ||
40093 | COND_USE_SOVERSOLARIS_1="#" | |
40094 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40095 | COND_USE_SOVERSOLARIS_1="" | |
40096 | fi | |
40097 | ||
40098 | COND_WITH_PLUGIN_SDL_1="#" | |
40099 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40100 | COND_WITH_PLUGIN_SDL_1="" | |
40101 | fi | |
40102 | ||
4d4ff94c VZ |
40103 | COND_WITH_SDL_1="#" |
40104 | if test "x$WITH_SDL" = "x1" ; then | |
40105 | COND_WITH_SDL_1="" | |
40106 | fi | |
40107 | ||
a848cd7e SC |
40108 | COND_WXUNIV_1="#" |
40109 | if test "x$WXUNIV" = "x1" ; then | |
40110 | COND_WXUNIV_1="" | |
40111 | fi | |
40112 | ||
40113 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40114 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40115 | COND_WXUSE_EXPAT_BUILTIN="" | |
40116 | fi | |
40117 | ||
40118 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40119 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40120 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40121 | fi | |
40122 | ||
40123 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40124 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40125 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40126 | fi | |
40127 | ||
40128 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40129 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40130 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40131 | fi | |
40132 | ||
40133 | COND_WXUSE_ODBC_BUILTIN="#" | |
40134 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40135 | COND_WXUSE_ODBC_BUILTIN="" | |
40136 | fi | |
40137 | ||
40138 | COND_WXUSE_REGEX_BUILTIN="#" | |
40139 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40140 | COND_WXUSE_REGEX_BUILTIN="" | |
40141 | fi | |
40142 | ||
40143 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40144 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40145 | COND_WXUSE_ZLIB_BUILTIN="" | |
40146 | fi | |
40147 | ||
dcc1b6ad VS |
40148 | COND_BUILD_DEBUG="#" |
40149 | if test "x$BUILD" = "xdebug" ; then | |
40150 | COND_BUILD_DEBUG="" | |
40151 | fi | |
40152 | ||
40153 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40154 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40155 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40156 | fi | |
40157 | ||
40158 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40159 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40160 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40161 | fi | |
40162 | ||
40163 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40164 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40165 | COND_BUILD_DEBUG_UNICODE_0="" | |
40166 | fi | |
40167 | ||
40168 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40169 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40170 | COND_BUILD_DEBUG_UNICODE_1="" | |
40171 | fi | |
40172 | ||
40173 | COND_BUILD_RELEASE="#" | |
40174 | if test "x$BUILD" = "xrelease" ; then | |
40175 | COND_BUILD_RELEASE="" | |
40176 | fi | |
40177 | ||
40178 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40179 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40180 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40181 | fi | |
40182 | ||
40183 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40184 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40185 | COND_BUILD_RELEASE_UNICODE_0="" | |
40186 | fi | |
40187 | ||
40188 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40189 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40190 | COND_BUILD_RELEASE_UNICODE_1="" | |
40191 | fi | |
40192 | ||
40193 | COND_DEBUG_FLAG_1="#" | |
40194 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40195 | COND_DEBUG_FLAG_1="" | |
40196 | fi | |
40197 | ||
40198 | COND_DEBUG_INFO_0="#" | |
40199 | if test "x$DEBUG_INFO" = "x0" ; then | |
40200 | COND_DEBUG_INFO_0="" | |
40201 | fi | |
40202 | ||
40203 | COND_DEBUG_INFO_1="#" | |
40204 | if test "x$DEBUG_INFO" = "x1" ; then | |
40205 | COND_DEBUG_INFO_1="" | |
40206 | fi | |
40207 | ||
40208 | COND_DEPS_TRACKING_0="#" | |
40209 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40210 | COND_DEPS_TRACKING_0="" | |
40211 | fi | |
40212 | ||
40213 | COND_DEPS_TRACKING_1="#" | |
40214 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40215 | COND_DEPS_TRACKING_1="" | |
40216 | fi | |
40217 | ||
40218 | COND_GCC_PCH_1="#" | |
40219 | if test "x$GCC_PCH" = "x1" ; then | |
40220 | COND_GCC_PCH_1="" | |
40221 | fi | |
40222 | ||
40223 | COND_MONOLITHIC_0="#" | |
40224 | if test "x$MONOLITHIC" = "x0" ; then | |
40225 | COND_MONOLITHIC_0="" | |
40226 | fi | |
40227 | ||
40228 | COND_MONOLITHIC_0_SHARED_0="#" | |
40229 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40230 | COND_MONOLITHIC_0_SHARED_0="" | |
40231 | fi | |
40232 | ||
40233 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40234 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40235 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40236 | fi | |
40237 | ||
40238 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40239 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40240 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40241 | fi | |
40242 | ||
40243 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40244 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40245 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40246 | fi | |
40247 | ||
40248 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40249 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40250 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40251 | fi | |
40252 | ||
40253 | COND_MONOLITHIC_0_SHARED_1="#" | |
40254 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40255 | COND_MONOLITHIC_0_SHARED_1="" | |
40256 | fi | |
40257 | ||
40258 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40259 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40260 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40261 | fi | |
40262 | ||
40263 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40264 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40265 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40266 | fi | |
40267 | ||
40268 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40269 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40270 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40271 | fi | |
40272 | ||
40273 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40274 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40275 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40276 | fi | |
40277 | ||
40278 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
40279 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40280 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40281 | fi | |
40282 | ||
40283 | COND_MONOLITHIC_1="#" | |
40284 | if test "x$MONOLITHIC" = "x1" ; then | |
40285 | COND_MONOLITHIC_1="" | |
40286 | fi | |
40287 | ||
40288 | COND_MONOLITHIC_1_SHARED_0="#" | |
40289 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40290 | COND_MONOLITHIC_1_SHARED_0="" | |
40291 | fi | |
40292 | ||
40293 | COND_MONOLITHIC_1_SHARED_1="#" | |
40294 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40295 | COND_MONOLITHIC_1_SHARED_1="" | |
40296 | fi | |
40297 | ||
40298 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40299 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40300 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40301 | fi | |
40302 | ||
40303 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40304 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40305 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40306 | fi | |
40307 | ||
40308 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40309 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40310 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40311 | fi | |
40312 | ||
40313 | COND_PLATFORM_MACOSX_1="#" | |
40314 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40315 | COND_PLATFORM_MACOSX_1="" | |
40316 | fi | |
40317 | ||
40318 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40319 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40320 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40321 | fi | |
40322 | ||
40323 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40324 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40325 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40326 | fi | |
40327 | ||
40328 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40329 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40330 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40331 | fi | |
40332 | ||
40333 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
40334 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40335 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40336 | fi | |
40337 | ||
40338 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40339 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40340 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40341 | fi | |
40342 | ||
40343 | COND_PLATFORM_MAC_1="#" | |
40344 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40345 | COND_PLATFORM_MAC_1="" | |
40346 | fi | |
40347 | ||
40348 | COND_PLATFORM_OS2_1="#" | |
40349 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40350 | COND_PLATFORM_OS2_1="" | |
40351 | fi | |
40352 | ||
40353 | COND_PLATFORM_UNIX_0="#" | |
40354 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40355 | COND_PLATFORM_UNIX_0="" | |
40356 | fi | |
40357 | ||
40358 | COND_PLATFORM_UNIX_1="#" | |
40359 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40360 | COND_PLATFORM_UNIX_1="" | |
40361 | fi | |
40362 | ||
40363 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40364 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40365 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40366 | fi | |
40367 | ||
40368 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40369 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40370 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40371 | fi | |
40372 | ||
40373 | COND_PLATFORM_WIN32_0="#" | |
40374 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40375 | COND_PLATFORM_WIN32_0="" | |
40376 | fi | |
40377 | ||
40378 | COND_PLATFORM_WIN32_1="#" | |
40379 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40380 | COND_PLATFORM_WIN32_1="" | |
40381 | fi | |
40382 | ||
40383 | COND_SHARED_0="#" | |
40384 | if test "x$SHARED" = "x0" ; then | |
40385 | COND_SHARED_0="" | |
40386 | fi | |
40387 | ||
40388 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
40389 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40390 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40391 | fi | |
40392 | ||
40393 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40394 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40395 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40396 | fi | |
40397 | ||
40398 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40399 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40400 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40401 | fi | |
40402 | ||
40403 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40404 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40405 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40406 | fi | |
40407 | ||
40408 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40409 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40410 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40411 | fi | |
40412 | ||
40413 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40414 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40415 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40416 | fi | |
40417 | ||
40418 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40419 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40420 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40421 | fi | |
40422 | ||
40423 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40424 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40425 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40426 | fi | |
40427 | ||
40428 | COND_SHARED_1="#" | |
40429 | if test "x$SHARED" = "x1" ; then | |
40430 | COND_SHARED_1="" | |
40431 | fi | |
40432 | ||
40433 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40434 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40435 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40436 | fi | |
40437 | ||
40438 | COND_TOOLKIT_COCOA="#" | |
40439 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40440 | COND_TOOLKIT_COCOA="" | |
40441 | fi | |
40442 | ||
40443 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40444 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40445 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40446 | fi | |
40447 | ||
40448 | COND_TOOLKIT_GTK="#" | |
40449 | if test "x$TOOLKIT" = "xGTK" ; then | |
40450 | COND_TOOLKIT_GTK="" | |
40451 | fi | |
40452 | ||
40453 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40454 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40455 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40456 | fi | |
40457 | ||
40458 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40459 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40460 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40461 | fi | |
40462 | ||
40463 | COND_TOOLKIT_MAC="#" | |
40464 | if test "x$TOOLKIT" = "xMAC" ; then | |
40465 | COND_TOOLKIT_MAC="" | |
40466 | fi | |
40467 | ||
40468 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40469 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40470 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40471 | fi | |
40472 | ||
40473 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40474 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40475 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40476 | fi | |
40477 | ||
40478 | COND_TOOLKIT_MGL="#" | |
40479 | if test "x$TOOLKIT" = "xMGL" ; then | |
40480 | COND_TOOLKIT_MGL="" | |
40481 | fi | |
40482 | ||
40483 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40484 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40485 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40486 | fi | |
40487 | ||
40488 | COND_TOOLKIT_MOTIF="#" | |
40489 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40490 | COND_TOOLKIT_MOTIF="" | |
40491 | fi | |
40492 | ||
40493 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40494 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40495 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40496 | fi | |
40497 | ||
40498 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40499 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40500 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40501 | fi | |
40502 | ||
40503 | COND_TOOLKIT_MSW="#" | |
40504 | if test "x$TOOLKIT" = "xMSW" ; then | |
40505 | COND_TOOLKIT_MSW="" | |
40506 | fi | |
40507 | ||
40508 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40509 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40510 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40511 | fi | |
40512 | ||
40513 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40514 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40515 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40516 | fi | |
40517 | ||
40518 | COND_TOOLKIT_PM="#" | |
40519 | if test "x$TOOLKIT" = "xPM" ; then | |
40520 | COND_TOOLKIT_PM="" | |
40521 | fi | |
40522 | ||
40523 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40524 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40525 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40526 | fi | |
40527 | ||
40528 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40529 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40530 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40531 | fi | |
40532 | ||
40533 | COND_TOOLKIT_WINCE="#" | |
40534 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40535 | COND_TOOLKIT_WINCE="" | |
40536 | fi | |
40537 | ||
40538 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40539 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40540 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40541 | fi | |
40542 | ||
40543 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40544 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40545 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40546 | fi | |
40547 | ||
40548 | COND_TOOLKIT_X11="#" | |
40549 | if test "x$TOOLKIT" = "xX11" ; then | |
40550 | COND_TOOLKIT_X11="" | |
40551 | fi | |
40552 | ||
40553 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40554 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40555 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40556 | fi | |
40557 | ||
40558 | COND_UNICODE_1="#" | |
40559 | if test "x$UNICODE" = "x1" ; then | |
40560 | COND_UNICODE_1="" | |
40561 | fi | |
40562 | ||
40563 | COND_USE_EXCEPTIONS_0="#" | |
40564 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40565 | COND_USE_EXCEPTIONS_0="" | |
40566 | fi | |
40567 | ||
40568 | COND_USE_EXCEPTIONS_1="#" | |
40569 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40570 | COND_USE_EXCEPTIONS_1="" | |
40571 | fi | |
40572 | ||
40573 | COND_USE_GUI_0="#" | |
40574 | if test "x$USE_GUI" = "x0" ; then | |
40575 | COND_USE_GUI_0="" | |
40576 | fi | |
40577 | ||
40578 | COND_USE_GUI_1="#" | |
40579 | if test "x$USE_GUI" = "x1" ; then | |
40580 | COND_USE_GUI_1="" | |
40581 | fi | |
40582 | ||
40583 | COND_USE_GUI_1_WXUNIV_0="#" | |
40584 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40585 | COND_USE_GUI_1_WXUNIV_0="" | |
40586 | fi | |
40587 | ||
40588 | COND_USE_GUI_1_WXUNIV_1="#" | |
40589 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40590 | COND_USE_GUI_1_WXUNIV_1="" | |
40591 | fi | |
40592 | ||
40593 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40594 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40595 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40596 | fi | |
40597 | ||
40598 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40599 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40600 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40601 | fi | |
40602 | ||
40603 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40604 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40605 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40606 | fi | |
40607 | ||
40608 | COND_USE_ODBC_1="#" | |
40609 | if test "x$USE_ODBC" = "x1" ; then | |
40610 | COND_USE_ODBC_1="" | |
40611 | fi | |
40612 | ||
40613 | COND_USE_PLUGINS_0="#" | |
40614 | if test "x$USE_PLUGINS" = "x0" ; then | |
40615 | COND_USE_PLUGINS_0="" | |
40616 | fi | |
40617 | ||
40618 | COND_USE_SOSYMLINKS_1="#" | |
40619 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40620 | COND_USE_SOSYMLINKS_1="" | |
40621 | fi | |
40622 | ||
40623 | COND_USE_SOVERLINUX_1="#" | |
40624 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40625 | COND_USE_SOVERLINUX_1="" | |
40626 | fi | |
40627 | ||
40628 | COND_USE_SOVERSION_0="#" | |
40629 | if test "x$USE_SOVERSION" = "x0" ; then | |
40630 | COND_USE_SOVERSION_0="" | |
40631 | fi | |
40632 | ||
40633 | COND_USE_SOVERSOLARIS_1="#" | |
40634 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40635 | COND_USE_SOVERSOLARIS_1="" | |
40636 | fi | |
40637 | ||
40638 | COND_WITH_PLUGIN_SDL_1="#" | |
40639 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40640 | COND_WITH_PLUGIN_SDL_1="" | |
40641 | fi | |
40642 | ||
40643 | COND_WXUNIV_1="#" | |
40644 | if test "x$WXUNIV" = "x1" ; then | |
40645 | COND_WXUNIV_1="" | |
40646 | fi | |
40647 | ||
40648 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40649 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40650 | COND_WXUSE_EXPAT_BUILTIN="" | |
40651 | fi | |
40652 | ||
40653 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40654 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40655 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40656 | fi | |
40657 | ||
40658 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40659 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40660 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40661 | fi | |
40662 | ||
40663 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40664 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40665 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40666 | fi | |
40667 | ||
40668 | COND_WXUSE_ODBC_BUILTIN="#" | |
40669 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40670 | COND_WXUSE_ODBC_BUILTIN="" | |
40671 | fi | |
40672 | ||
40673 | COND_WXUSE_REGEX_BUILTIN="#" | |
40674 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40675 | COND_WXUSE_REGEX_BUILTIN="" | |
40676 | fi | |
40677 | ||
40678 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40679 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40680 | COND_WXUSE_ZLIB_BUILTIN="" | |
40681 | fi | |
40682 | ||
a848cd7e SC |
40683 | |
40684 | ||
2057db16 VS |
40685 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
40686 | { { 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 | |
40687 | 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;} | |
40688 | { (exit 1); exit 1; }; } | |
40689 | fi | |
40690 | ||
a848cd7e SC |
40691 | |
40692 | ||
74b84332 | 40693 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 40694 | if test $GCC_PCH = 1 ; then |
74b84332 | 40695 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
40696 | else |
40697 | case "${host}" in | |
40698 | powerpc-*-darwin* ) | |
74b84332 | 40699 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 40700 | ;; |
bea8e651 | 40701 | *-*-mingw32* ) |
1f344abf VS |
40702 | if test "$wxUSE_STL" = "yes" -o \ |
40703 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
40704 | "$wxUSE_NO_RTTI" != "yes"; then | |
40705 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
40706 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
40707 | cat >conftest.$ac_ext <<_ACEOF |
40708 | /* confdefs.h. */ | |
40709 | _ACEOF | |
40710 | cat confdefs.h >>conftest.$ac_ext | |
40711 | cat >>conftest.$ac_ext <<_ACEOF | |
40712 | /* end confdefs.h. */ | |
40713 | ||
40714 | int | |
40715 | main () | |
40716 | { | |
1f344abf | 40717 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
40718 | #error "Not GCC 3.2 or greater" |
40719 | #endif | |
40720 | ||
40721 | ; | |
40722 | return 0; | |
40723 | } | |
40724 | _ACEOF | |
40725 | rm -f conftest.$ac_objext | |
40726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40727 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 40728 | ac_status=$? |
ac1cb8d3 VS |
40729 | grep -v '^ *+' conftest.er1 >conftest.err |
40730 | rm -f conftest.er1 | |
40731 | cat conftest.err >&5 | |
bea8e651 MB |
40732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40733 | (exit $ac_status); } && | |
4d4ff94c | 40734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40736 | (eval $ac_try) 2>&5 | |
40737 | ac_status=$? | |
40738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40739 | (exit $ac_status); }; } && | |
40740 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
40741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40742 | (eval $ac_try) 2>&5 | |
40743 | ac_status=$? | |
40744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40745 | (exit $ac_status); }; }; then | |
74b84332 | 40746 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
40747 | echo "$as_me:$LINENO: result: yes" >&5 |
40748 | echo "${ECHO_T}yes" >&6 | |
40749 | else | |
40750 | echo "$as_me: failed program was:" >&5 | |
40751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40752 | ||
40753 | echo "$as_me:$LINENO: result: no" >&5 | |
40754 | echo "${ECHO_T}no" >&6 | |
40755 | fi | |
ac1cb8d3 | 40756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
40757 | fi |
40758 | ;; | |
a848cd7e SC |
40759 | esac |
40760 | fi | |
74b84332 | 40761 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
40762 | |
40763 | ||
40764 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
40765 | ||
40766 | ||
40767 | ||
40768 | ||
40769 | ||
40770 | ||
40771 | ||
40772 | ||
40773 | ||
40774 | ||
40775 | ||
40776 | ||
40777 | ||
40778 | ||
40779 | ||
40780 | ||
40781 | ||
40782 | ||
40783 | ||
40784 | ||
40785 | ||
40786 | ||
40787 | ||
40788 | ||
40789 | ||
40790 | ||
40791 | ||
40792 | ||
40793 | ||
40794 | ||
40795 | ||
40796 | ||
40797 | ||
40798 | ||
40799 | ||
40800 | ||
40801 | ||
40802 | ||
40803 | ||
40804 | ||
40805 | ||
40806 | ||
40807 | ||
40808 | ||
40809 | ||
40810 | ||
40811 | ||
40812 | ||
40813 | ||
40814 | ||
40815 | ||
40816 | ||
40817 | ||
40818 | ||
40819 | ||
40820 | ||
40821 | ||
40822 | ||
40823 | ||
40824 | ||
40825 | ||
40826 | ||
40827 | ||
40828 | ||
40829 | ||
40830 | ||
40831 | ||
40832 | ||
40833 | ||
40834 | ||
40835 | ||
40836 | ||
40837 | ||
40838 | ||
40839 | ||
40840 | ||
40841 | ||
40842 | ||
40843 | ||
40844 | ||
40845 | ||
40846 | ||
40847 | ||
40848 | ||
40849 | ||
40850 | ||
40851 | ||
40852 | ||
40853 | ||
40854 | ||
40855 | ||
40856 | ||
40857 | ||
40858 | ||
40859 | ||
40860 | ||
40861 | ||
40862 | ||
74b84332 | 40863 | |
a848cd7e SC |
40864 | |
40865 | ||
40866 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
40867 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 40868 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
40869 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
40870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40871 | else | |
40872 | cat >conftest.make <<\_ACEOF | |
40873 | all: | |
40874 | @echo 'ac_maketemp="$(MAKE)"' | |
40875 | _ACEOF | |
40876 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40877 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
40878 | if test -n "$ac_maketemp"; then | |
40879 | eval ac_cv_prog_make_${ac_make}_set=yes | |
40880 | else | |
40881 | eval ac_cv_prog_make_${ac_make}_set=no | |
40882 | fi | |
40883 | rm -f conftest.make | |
40884 | fi | |
40885 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
40886 | echo "$as_me:$LINENO: result: yes" >&5 | |
40887 | echo "${ECHO_T}yes" >&6 | |
40888 | SET_MAKE= | |
40889 | else | |
40890 | echo "$as_me:$LINENO: result: no" >&5 | |
40891 | echo "${ECHO_T}no" >&6 | |
40892 | SET_MAKE="MAKE=${MAKE-make}" | |
40893 | fi | |
40894 | ||
40895 | ||
40896 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
40897 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
40898 | fi | |
40899 | ||
40900 | ac_config_headers="$ac_config_headers setup.h" | |
40901 | ||
40902 | ||
8708fa76 | 40903 | ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile" |
a848cd7e SC |
40904 | |
40905 | ||
40906 | ac_config_commands="$ac_config_commands default" | |
40907 | ||
40908 | ||
40909 | ||
40910 | if test "$wxUSE_GUI" = "yes"; then | |
40911 | SUBDIRS="samples demos utils contrib" | |
40912 | else SUBDIRS="samples utils" | |
40913 | fi | |
40914 | ||
40915 | ||
40916 | ||
40917 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
40918 | if test "${with_cppunit_prefix+set}" = set; then | |
40919 | withval="$with_cppunit_prefix" | |
40920 | cppunit_config_prefix="$withval" | |
40921 | else | |
40922 | cppunit_config_prefix="" | |
40923 | fi; | |
40924 | ||
40925 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
40926 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
40927 | withval="$with_cppunit_exec_prefix" | |
40928 | cppunit_config_exec_prefix="$withval" | |
40929 | else | |
40930 | cppunit_config_exec_prefix="" | |
40931 | fi; | |
40932 | ||
40933 | if test x$cppunit_config_exec_prefix != x ; then | |
40934 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
40935 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
40936 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
40937 | fi | |
40938 | fi | |
40939 | if test x$cppunit_config_prefix != x ; then | |
40940 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
40941 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
40942 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
40943 | fi | |
40944 | fi | |
40945 | ||
40946 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
40947 | set dummy cppunit-config; ac_word=$2 | |
40948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40950 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
40951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40952 | else | |
40953 | case $CPPUNIT_CONFIG in | |
40954 | [\\/]* | ?:[\\/]*) | |
40955 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
40956 | ;; | |
40957 | *) | |
40958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40959 | for as_dir in $PATH | |
40960 | do | |
40961 | IFS=$as_save_IFS | |
40962 | test -z "$as_dir" && as_dir=. | |
40963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40964 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40965 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40967 | break 2 | |
40968 | fi | |
40969 | done | |
40970 | done | |
40971 | ||
40972 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
40973 | ;; | |
40974 | esac | |
40975 | fi | |
40976 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
40977 | ||
40978 | if test -n "$CPPUNIT_CONFIG"; then | |
40979 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
40980 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
40981 | else | |
40982 | echo "$as_me:$LINENO: result: no" >&5 | |
40983 | echo "${ECHO_T}no" >&6 | |
40984 | fi | |
40985 | ||
40986 | cppunit_version_min=1.8.0 | |
40987 | ||
40988 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
40989 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
40990 | no_cppunit="" | |
40991 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
40992 | no_cppunit=yes | |
40993 | else | |
40994 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
40995 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
40996 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
40997 | ||
40998 | cppunit_major_version=`echo $cppunit_version | \ | |
40999 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41000 | cppunit_minor_version=`echo $cppunit_version | \ | |
41001 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41002 | cppunit_micro_version=`echo $cppunit_version | \ | |
41003 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41004 | ||
41005 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41006 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41007 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41008 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41009 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41010 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41011 | ||
41012 | cppunit_version_proper=`expr \ | |
41013 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41014 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41015 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41016 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41017 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41018 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41019 | ||
41020 | if test "$cppunit_version_proper" = "1" ; then | |
41021 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41022 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41023 | else | |
41024 | echo "$as_me:$LINENO: result: no" >&5 | |
41025 | echo "${ECHO_T}no" >&6 | |
41026 | no_cppunit=yes | |
41027 | fi | |
41028 | fi | |
41029 | ||
41030 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41031 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41032 | else |
41033 | CPPUNIT_CFLAGS="" | |
41034 | CPPUNIT_LIBS="" | |
c2218763 | 41035 | : |
a848cd7e SC |
41036 | fi |
41037 | ||
41038 | ||
41039 | ||
41040 | ||
41041 | ||
41042 | for subdir in `echo $SUBDIRS`; do | |
41043 | if test -d ${srcdir}/${subdir} ; then | |
41044 | if test "$wxUSE_GUI" = "yes"; then | |
41045 | if test ${subdir} = "samples"; then | |
41046 | makefiles="samples/Makefile.in $makefiles" | |
41047 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41048 | if test -d $srcdir/samples/$sample; then | |
41049 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41050 | fi | |
41051 | done | |
41052 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41053 | fi | |
41054 | else if test ${subdir} = "samples"; then | |
41055 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41056 | elif test ${subdir} = "utils"; then | |
41057 | makefiles="utils/HelpGen/Makefile.in \ | |
41058 | utils/HelpGen/src/Makefile.in \ | |
41059 | utils/tex2rtf/Makefile.in \ | |
41060 | utils/tex2rtf/src/Makefile.in" | |
41061 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41062 | fi | |
41063 | fi | |
41064 | ||
41065 | for mkin in $makefiles ; do | |
41066 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41067 | ac_config_files="$ac_config_files $mk" | |
41068 | ||
41069 | done | |
41070 | fi | |
41071 | done | |
41072 | ||
41073 | ||
41074 | cat >confcache <<\_ACEOF | |
41075 | # This file is a shell script that caches the results of configure | |
41076 | # tests run on this system so they can be shared between configure | |
41077 | # scripts and configure runs, see configure's option --config-cache. | |
41078 | # It is not useful on other systems. If it contains results you don't | |
41079 | # want to keep, you may remove or edit it. | |
41080 | # | |
41081 | # config.status only pays attention to the cache file if you give it | |
41082 | # the --recheck option to rerun configure. | |
41083 | # | |
41084 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41085 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41086 | # following values. | |
41087 | ||
41088 | _ACEOF | |
41089 | ||
41090 | # The following way of writing the cache mishandles newlines in values, | |
41091 | # but we know of no workaround that is simple, portable, and efficient. | |
41092 | # So, don't put newlines in cache variables' values. | |
41093 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41094 | # and sets the high bit in the cache file unless we assign to the vars. | |
41095 | { | |
41096 | (set) 2>&1 | | |
41097 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41098 | *ac_space=\ *) | |
41099 | # `set' does not quote correctly, so add quotes (double-quote | |
41100 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41101 | sed -n \ | |
ac1cb8d3 VS |
41102 | "s/'/'\\\\''/g; |
41103 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41104 | ;; |
41105 | *) | |
41106 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41107 | sed -n \ | |
ac1cb8d3 | 41108 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41109 | ;; |
41110 | esac; | |
41111 | } | | |
41112 | sed ' | |
41113 | t clear | |
41114 | : clear | |
41115 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41116 | t end | |
41117 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41118 | : end' >>confcache | |
41119 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41120 | if test -w $cache_file; then | |
41121 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41122 | cat confcache >$cache_file | |
41123 | else | |
41124 | echo "not updating unwritable cache $cache_file" | |
41125 | fi | |
41126 | fi | |
41127 | rm -f confcache | |
41128 | ||
41129 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41130 | # Let make expand exec_prefix. | |
41131 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41132 | ||
41133 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41134 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41135 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41136 | # (actually we leave an empty line to preserve line numbers). | |
41137 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41138 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41139 | s/:*\$(srcdir):*/:/; |
41140 | s/:*\${srcdir}:*/:/; | |
41141 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41142 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41143 | s/:*$//; |
ac1cb8d3 | 41144 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41145 | }' |
41146 | fi | |
41147 | ||
41148 | DEFS=-DHAVE_CONFIG_H | |
41149 | ||
41150 | ac_libobjs= | |
41151 | ac_ltlibobjs= | |
41152 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41153 | # 1. Remove the extension, and $U if already installed. | |
41154 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41155 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41156 | # 2. Add them. |
41157 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41158 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41159 | done | |
41160 | LIBOBJS=$ac_libobjs | |
41161 | ||
41162 | LTLIBOBJS=$ac_ltlibobjs | |
41163 | ||
41164 | ||
41165 | ||
41166 | : ${CONFIG_STATUS=./config.status} | |
41167 | ac_clean_files_save=$ac_clean_files | |
41168 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41169 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41170 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41171 | cat >$CONFIG_STATUS <<_ACEOF | |
41172 | #! $SHELL | |
41173 | # Generated by $as_me. | |
41174 | # Run this file to recreate the current configuration. | |
41175 | # Compiler output produced by configure, useful for debugging | |
41176 | # configure, is in config.log if it exists. | |
41177 | ||
41178 | debug=false | |
41179 | ac_cs_recheck=false | |
41180 | ac_cs_silent=false | |
41181 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41182 | _ACEOF | |
41183 | ||
41184 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41185 | ## --------------------- ## | |
41186 | ## M4sh Initialization. ## | |
41187 | ## --------------------- ## | |
41188 | ||
41189 | # Be Bourne compatible | |
41190 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41191 | emulate sh | |
41192 | NULLCMD=: | |
41193 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41194 | # is contrary to our usage. Disable this feature. | |
41195 | alias -g '${1+"$@"}'='"$@"' | |
41196 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41197 | set -o posix | |
41198 | fi | |
ac1cb8d3 | 41199 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41200 | |
41201 | # Support unset when possible. | |
ac1cb8d3 | 41202 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41203 | as_unset=unset |
41204 | else | |
41205 | as_unset=false | |
41206 | fi | |
41207 | ||
41208 | ||
41209 | # Work around bugs in pre-3.0 UWIN ksh. | |
41210 | $as_unset ENV MAIL MAILPATH | |
41211 | PS1='$ ' | |
41212 | PS2='> ' | |
41213 | PS4='+ ' | |
41214 | ||
41215 | # NLS nuisances. | |
41216 | for as_var in \ | |
41217 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41218 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41219 | LC_TELEPHONE LC_TIME | |
41220 | do | |
ac1cb8d3 | 41221 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41222 | eval $as_var=C; export $as_var |
41223 | else | |
41224 | $as_unset $as_var | |
41225 | fi | |
41226 | done | |
41227 | ||
41228 | # Required to use basename. | |
41229 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41230 | as_expr=expr | |
41231 | else | |
41232 | as_expr=false | |
41233 | fi | |
41234 | ||
41235 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41236 | as_basename=basename | |
41237 | else | |
41238 | as_basename=false | |
41239 | fi | |
41240 | ||
41241 | ||
41242 | # Name of the executable. | |
41243 | as_me=`$as_basename "$0" || | |
41244 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41245 | X"$0" : 'X\(//\)$' \| \ | |
41246 | X"$0" : 'X\(/\)$' \| \ | |
41247 | . : '\(.\)' 2>/dev/null || | |
41248 | echo X/"$0" | | |
41249 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41250 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41251 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41252 | s/.*/./; q'` | |
41253 | ||
41254 | ||
41255 | # PATH needs CR, and LINENO needs CR and PATH. | |
41256 | # Avoid depending upon Character Ranges. | |
41257 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41258 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41259 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41260 | as_cr_digits='0123456789' | |
41261 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41262 | ||
41263 | # The user is always right. | |
41264 | if test "${PATH_SEPARATOR+set}" != set; then | |
41265 | echo "#! /bin/sh" >conf$$.sh | |
41266 | echo "exit 0" >>conf$$.sh | |
41267 | chmod +x conf$$.sh | |
41268 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41269 | PATH_SEPARATOR=';' | |
41270 | else | |
41271 | PATH_SEPARATOR=: | |
41272 | fi | |
41273 | rm -f conf$$.sh | |
41274 | fi | |
41275 | ||
41276 | ||
41277 | as_lineno_1=$LINENO | |
41278 | as_lineno_2=$LINENO | |
41279 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41280 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41281 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41282 | # Find who we are. Look in the path if we contain no path at all | |
41283 | # relative or not. | |
41284 | case $0 in | |
41285 | *[\\/]* ) as_myself=$0 ;; | |
41286 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41287 | for as_dir in $PATH | |
41288 | do | |
41289 | IFS=$as_save_IFS | |
41290 | test -z "$as_dir" && as_dir=. | |
41291 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41292 | done | |
41293 | ||
41294 | ;; | |
41295 | esac | |
41296 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41297 | # in which case we are not to be found in the path. | |
41298 | if test "x$as_myself" = x; then | |
41299 | as_myself=$0 | |
41300 | fi | |
41301 | if test ! -f "$as_myself"; then | |
41302 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41303 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41304 | { (exit 1); exit 1; }; } | |
41305 | fi | |
41306 | case $CONFIG_SHELL in | |
41307 | '') | |
41308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41309 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41310 | do | |
41311 | IFS=$as_save_IFS | |
41312 | test -z "$as_dir" && as_dir=. | |
41313 | for as_base in sh bash ksh sh5; do | |
41314 | case $as_dir in | |
41315 | /*) | |
41316 | if ("$as_dir/$as_base" -c ' | |
41317 | as_lineno_1=$LINENO | |
41318 | as_lineno_2=$LINENO | |
41319 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41320 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41321 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41322 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41323 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41324 | CONFIG_SHELL=$as_dir/$as_base | |
41325 | export CONFIG_SHELL | |
41326 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41327 | fi;; | |
41328 | esac | |
41329 | done | |
41330 | done | |
41331 | ;; | |
41332 | esac | |
41333 | ||
41334 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41335 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41336 | # line-number line before each line; the second 'sed' does the real | |
41337 | # work. The second script uses 'N' to pair each line-number line | |
41338 | # with the numbered line, and appends trailing '-' during | |
41339 | # substitution so that $LINENO is not a special case at line end. | |
41340 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41341 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41342 | sed '=' <$as_myself | | |
41343 | sed ' | |
41344 | N | |
41345 | s,$,-, | |
41346 | : loop | |
41347 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41348 | t loop | |
41349 | s,-$,, | |
41350 | s,^['$as_cr_digits']*\n,, | |
41351 | ' >$as_me.lineno && | |
41352 | chmod +x $as_me.lineno || | |
41353 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41354 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41355 | { (exit 1); exit 1; }; } | |
41356 | ||
41357 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41358 | # (the dirname of $[0] is not the place where we might find the | |
41359 | # original and so on. Autoconf is especially sensible to this). | |
41360 | . ./$as_me.lineno | |
41361 | # Exit status is that of the last command. | |
41362 | exit | |
41363 | } | |
41364 | ||
41365 | ||
41366 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
41367 | *c*,-n*) ECHO_N= ECHO_C=' | |
41368 | ' ECHO_T=' ' ;; | |
41369 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
41370 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
41371 | esac | |
41372 | ||
41373 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41374 | as_expr=expr | |
41375 | else | |
41376 | as_expr=false | |
41377 | fi | |
41378 | ||
41379 | rm -f conf$$ conf$$.exe conf$$.file | |
41380 | echo >conf$$.file | |
41381 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41382 | # We could just check for DJGPP; but this test a) works b) is more generic | |
41383 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
41384 | if test -f conf$$.exe; then | |
41385 | # Don't use ln at all; we don't have any links | |
41386 | as_ln_s='cp -p' | |
41387 | else | |
41388 | as_ln_s='ln -s' | |
41389 | fi | |
41390 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
41391 | as_ln_s=ln | |
41392 | else | |
41393 | as_ln_s='cp -p' | |
41394 | fi | |
41395 | rm -f conf$$ conf$$.exe conf$$.file | |
41396 | ||
41397 | if mkdir -p . 2>/dev/null; then | |
41398 | as_mkdir_p=: | |
41399 | else | |
ac1cb8d3 | 41400 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
41401 | as_mkdir_p=false |
41402 | fi | |
41403 | ||
41404 | as_executable_p="test -f" | |
41405 | ||
41406 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 41407 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41408 | |
41409 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 41410 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41411 | |
41412 | ||
41413 | # IFS | |
41414 | # We need space, tab and new line, in precisely that order. | |
41415 | as_nl=' | |
41416 | ' | |
41417 | IFS=" $as_nl" | |
41418 | ||
41419 | # CDPATH. | |
41420 | $as_unset CDPATH | |
41421 | ||
41422 | exec 6>&1 | |
41423 | ||
41424 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
41425 | # report actual input values of CONFIG_FILES etc. instead of their | |
41426 | # values after options handling. Logging --version etc. is OK. | |
41427 | exec 5>>config.log | |
41428 | { | |
41429 | echo | |
41430 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
41431 | ## Running $as_me. ## | |
41432 | _ASBOX | |
41433 | } >&5 | |
41434 | cat >&5 <<_CSEOF | |
41435 | ||
77ffb593 | 41436 | This file was extended by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 41437 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
41438 | |
41439 | CONFIG_FILES = $CONFIG_FILES | |
41440 | CONFIG_HEADERS = $CONFIG_HEADERS | |
41441 | CONFIG_LINKS = $CONFIG_LINKS | |
41442 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
41443 | $ $0 $@ | |
41444 | ||
41445 | _CSEOF | |
41446 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
41447 | echo >&5 | |
41448 | _ACEOF | |
41449 | ||
41450 | # Files that config.status was made for. | |
41451 | if test -n "$ac_config_files"; then | |
41452 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
41453 | fi | |
41454 | ||
41455 | if test -n "$ac_config_headers"; then | |
41456 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
41457 | fi | |
41458 | ||
41459 | if test -n "$ac_config_links"; then | |
41460 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
41461 | fi | |
41462 | ||
41463 | if test -n "$ac_config_commands"; then | |
41464 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
41465 | fi | |
41466 | ||
41467 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41468 | ||
41469 | ac_cs_usage="\ | |
41470 | \`$as_me' instantiates files from templates according to the | |
41471 | current configuration. | |
41472 | ||
41473 | Usage: $0 [OPTIONS] [FILE]... | |
41474 | ||
41475 | -h, --help print this help, then exit | |
41476 | -V, --version print version number, then exit | |
41477 | -q, --quiet do not print progress messages | |
41478 | -d, --debug don't remove temporary files | |
41479 | --recheck update $as_me by reconfiguring in the same conditions | |
41480 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 41481 | instantiate the configuration file FILE |
a848cd7e | 41482 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 41483 | instantiate the configuration header FILE |
a848cd7e SC |
41484 | |
41485 | Configuration files: | |
41486 | $config_files | |
41487 | ||
41488 | Configuration headers: | |
41489 | $config_headers | |
41490 | ||
41491 | Configuration commands: | |
41492 | $config_commands | |
41493 | ||
41494 | Report bugs to <bug-autoconf@gnu.org>." | |
41495 | _ACEOF | |
41496 | ||
41497 | cat >>$CONFIG_STATUS <<_ACEOF | |
41498 | ac_cs_version="\\ | |
77ffb593 | 41499 | wxWidgets config.status 2.5.2 |
ac1cb8d3 | 41500 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
41501 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
41502 | ||
ac1cb8d3 | 41503 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
41504 | This config.status script is free software; the Free Software Foundation |
41505 | gives unlimited permission to copy, distribute and modify it." | |
41506 | srcdir=$srcdir | |
41507 | INSTALL="$INSTALL" | |
41508 | _ACEOF | |
41509 | ||
41510 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41511 | # If no file are specified by the user, then we need to provide default | |
41512 | # value. By we need to know if files were specified by the user. | |
41513 | ac_need_defaults=: | |
41514 | while test $# != 0 | |
41515 | do | |
41516 | case $1 in | |
41517 | --*=*) | |
41518 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
41519 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
41520 | ac_shift=: | |
41521 | ;; | |
41522 | -*) | |
41523 | ac_option=$1 | |
41524 | ac_optarg=$2 | |
41525 | ac_shift=shift | |
41526 | ;; | |
41527 | *) # This is not an option, so the user has probably given explicit | |
41528 | # arguments. | |
41529 | ac_option=$1 | |
41530 | ac_need_defaults=false;; | |
41531 | esac | |
41532 | ||
41533 | case $ac_option in | |
41534 | # Handling of the options. | |
41535 | _ACEOF | |
41536 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41537 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
41538 | ac_cs_recheck=: ;; | |
41539 | --version | --vers* | -V ) | |
41540 | echo "$ac_cs_version"; exit 0 ;; | |
41541 | --he | --h) | |
41542 | # Conflict between --help and --header | |
41543 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
41544 | Try \`$0 --help' for more information." >&5 | |
41545 | echo "$as_me: error: ambiguous option: $1 | |
41546 | Try \`$0 --help' for more information." >&2;} | |
41547 | { (exit 1); exit 1; }; };; | |
41548 | --help | --hel | -h ) | |
41549 | echo "$ac_cs_usage"; exit 0 ;; | |
41550 | --debug | --d* | -d ) | |
41551 | debug=: ;; | |
41552 | --file | --fil | --fi | --f ) | |
41553 | $ac_shift | |
41554 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
41555 | ac_need_defaults=false;; | |
41556 | --header | --heade | --head | --hea ) | |
41557 | $ac_shift | |
41558 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
41559 | ac_need_defaults=false;; | |
41560 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
41561 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
41562 | ac_cs_silent=: ;; | |
41563 | ||
41564 | # This is an error. | |
41565 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
41566 | Try \`$0 --help' for more information." >&5 | |
41567 | echo "$as_me: error: unrecognized option: $1 | |
41568 | Try \`$0 --help' for more information." >&2;} | |
41569 | { (exit 1); exit 1; }; } ;; | |
41570 | ||
41571 | *) ac_config_targets="$ac_config_targets $1" ;; | |
41572 | ||
41573 | esac | |
41574 | shift | |
41575 | done | |
41576 | ||
41577 | ac_configure_extra_args= | |
41578 | ||
41579 | if $ac_cs_silent; then | |
41580 | exec 6>/dev/null | |
41581 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
41582 | fi | |
41583 | ||
41584 | _ACEOF | |
41585 | cat >>$CONFIG_STATUS <<_ACEOF | |
41586 | if \$ac_cs_recheck; then | |
41587 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
41588 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
41589 | fi | |
41590 | ||
41591 | _ACEOF | |
41592 | ||
41593 | cat >>$CONFIG_STATUS <<_ACEOF | |
41594 | # | |
41595 | # INIT-COMMANDS section. | |
41596 | # | |
41597 | ||
41598 | ||
41599 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
48112931 | 41600 | WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}" |
4b167aca | 41601 | WX_RELEASE="${WX_RELEASE}" |
a848cd7e SC |
41602 | LN_S="${LN_S}" |
41603 | ||
41604 | ||
41605 | ||
41606 | _ACEOF | |
41607 | ||
41608 | ||
41609 | ||
41610 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41611 | for ac_config_target in $ac_config_targets | |
41612 | do | |
41613 | case "$ac_config_target" in | |
41614 | # Handling of arguments. | |
41615 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
8708fa76 | 41616 | "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;; |
a848cd7e SC |
41617 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
41618 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
41619 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
41620 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
41621 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
41622 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
41623 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
41624 | { (exit 1); exit 1; }; };; | |
41625 | esac | |
41626 | done | |
41627 | ||
41628 | # If the user did not use the arguments to specify the items to instantiate, | |
41629 | # then the envvar interface is used. Set only those that are not. | |
41630 | # We use the long form for the default assignment because of an extremely | |
41631 | # bizarre bug on SunOS 4.1.3. | |
41632 | if $ac_need_defaults; then | |
41633 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
41634 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
41635 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
41636 | fi | |
41637 | ||
41638 | # Have a temporary directory for convenience. Make it in the build tree | |
41639 | # simply because there is no reason to put it here, and in addition, | |
41640 | # creating and moving files from /tmp can sometimes cause problems. | |
41641 | # Create a temporary directory, and hook for its removal unless debugging. | |
41642 | $debug || | |
41643 | { | |
41644 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
41645 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
41646 | } | |
41647 | ||
41648 | # Create a (secure) tmp directory for tmp files. | |
41649 | ||
41650 | { | |
41651 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
41652 | test -n "$tmp" && test -d "$tmp" | |
41653 | } || | |
41654 | { | |
41655 | tmp=./confstat$$-$RANDOM | |
41656 | (umask 077 && mkdir $tmp) | |
41657 | } || | |
41658 | { | |
41659 | echo "$me: cannot create a temporary directory in ." >&2 | |
41660 | { (exit 1); exit 1; } | |
41661 | } | |
41662 | ||
41663 | _ACEOF | |
41664 | ||
41665 | cat >>$CONFIG_STATUS <<_ACEOF | |
41666 | ||
41667 | # | |
41668 | # CONFIG_FILES section. | |
41669 | # | |
41670 | ||
41671 | # No need to generate the scripts if there are no CONFIG_FILES. | |
41672 | # This happens for instance when ./config.status config.h | |
41673 | if test -n "\$CONFIG_FILES"; then | |
41674 | # Protect against being on the right side of a sed subst in config.status. | |
41675 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
41676 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
41677 | s,@SHELL@,$SHELL,;t t | |
41678 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
41679 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
41680 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
41681 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
41682 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
41683 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
41684 | s,@exec_prefix@,$exec_prefix,;t t | |
41685 | s,@prefix@,$prefix,;t t | |
41686 | s,@program_transform_name@,$program_transform_name,;t t | |
41687 | s,@bindir@,$bindir,;t t | |
41688 | s,@sbindir@,$sbindir,;t t | |
41689 | s,@libexecdir@,$libexecdir,;t t | |
41690 | s,@datadir@,$datadir,;t t | |
41691 | s,@sysconfdir@,$sysconfdir,;t t | |
41692 | s,@sharedstatedir@,$sharedstatedir,;t t | |
41693 | s,@localstatedir@,$localstatedir,;t t | |
41694 | s,@libdir@,$libdir,;t t | |
41695 | s,@includedir@,$includedir,;t t | |
41696 | s,@oldincludedir@,$oldincludedir,;t t | |
41697 | s,@infodir@,$infodir,;t t | |
41698 | s,@mandir@,$mandir,;t t | |
41699 | s,@build_alias@,$build_alias,;t t | |
41700 | s,@host_alias@,$host_alias,;t t | |
41701 | s,@target_alias@,$target_alias,;t t | |
41702 | s,@DEFS@,$DEFS,;t t | |
41703 | s,@ECHO_C@,$ECHO_C,;t t | |
41704 | s,@ECHO_N@,$ECHO_N,;t t | |
41705 | s,@ECHO_T@,$ECHO_T,;t t | |
41706 | s,@LIBS@,$LIBS,;t t | |
41707 | s,@build@,$build,;t t | |
41708 | s,@build_cpu@,$build_cpu,;t t | |
41709 | s,@build_vendor@,$build_vendor,;t t | |
41710 | s,@build_os@,$build_os,;t t | |
41711 | s,@host@,$host,;t t | |
41712 | s,@host_cpu@,$host_cpu,;t t | |
41713 | s,@host_vendor@,$host_vendor,;t t | |
41714 | s,@host_os@,$host_os,;t t | |
41715 | s,@target@,$target,;t t | |
41716 | s,@target_cpu@,$target_cpu,;t t | |
41717 | s,@target_vendor@,$target_vendor,;t t | |
41718 | s,@target_os@,$target_os,;t t | |
41719 | s,@CC@,$CC,;t t | |
41720 | s,@CFLAGS@,$CFLAGS,;t t | |
41721 | s,@LDFLAGS@,$LDFLAGS,;t t | |
41722 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
41723 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
41724 | s,@EXEEXT@,$EXEEXT,;t t | |
41725 | s,@OBJEXT@,$OBJEXT,;t t | |
41726 | s,@CPP@,$CPP,;t t | |
41727 | s,@EGREP@,$EGREP,;t t | |
41728 | s,@CXX@,$CXX,;t t | |
41729 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
41730 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
41731 | s,@RANLIB@,$RANLIB,;t t | |
41732 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
41733 | s,@AR@,$AR,;t t | |
41734 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
41735 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
41736 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
41737 | s,@STRIP@,$STRIP,;t t | |
41738 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
41739 | s,@LN_S@,$LN_S,;t t | |
41740 | s,@CXXCPP@,$CXXCPP,;t t | |
41741 | s,@subdirs@,$subdirs,;t t | |
41742 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
41743 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
41744 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
41745 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
41746 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
41747 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
41748 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
41749 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
41750 | s,@X_LIBS@,$X_LIBS,;t t | |
41751 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
41752 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
41753 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
41754 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
41755 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
41756 | s,@RESCOMP@,$RESCOMP,;t t | |
41757 | s,@DEREZ@,$DEREZ,;t t | |
41758 | s,@SETFILE@,$SETFILE,;t t | |
41759 | s,@LIBICONV@,$LIBICONV,;t t | |
41760 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
41761 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
41762 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
41763 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
41764 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
41765 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
41766 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
41767 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
41768 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
41769 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
41770 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
41771 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
41772 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
41773 | s,@VENDOR@,$VENDOR,;t t | |
41774 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
41775 | s,@WXUNIV@,$WXUNIV,;t t | |
41776 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
41777 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
41778 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
41779 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
41780 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
41781 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
41782 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
41783 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
41784 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
41785 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
41786 | s,@UNICODE@,$UNICODE,;t t | |
41787 | s,@BUILD@,$BUILD,;t t | |
41788 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
41789 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
41790 | s,@SHARED@,$SHARED,;t t | |
41791 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
41792 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
41793 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
41794 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
41795 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
41796 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
41797 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
41798 | s,@SET_MAKE@,$SET_MAKE,;t t | |
41799 | s,@MAKE_SET@,$MAKE_SET,;t t | |
41800 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
41801 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
41802 | s,@NM@,$NM,;t t | |
41803 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
41804 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
41805 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
41806 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
41807 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
41808 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
41809 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
41810 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
41811 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
41812 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
41813 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
41814 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
41815 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
41816 | s,@LIBEXT@,$LIBEXT,;t t | |
41817 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
41818 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
41819 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
41820 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
41821 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
41822 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
41823 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
41824 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
41825 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
41826 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
41827 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
41828 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
41829 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
41830 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
41831 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
41832 | s,@GCC_PCH@,$GCC_PCH,;t t | |
41833 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
41834 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
41835 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
41836 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
41837 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
41838 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
41839 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
41840 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
41841 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
41842 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
41843 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
41844 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
41845 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
41846 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
41847 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
41848 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
41849 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
41850 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
41851 | 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 | |
41852 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
41853 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
41854 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t | |
41855 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
41856 | 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 | |
41857 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
41858 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
41859 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t | |
41860 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
41861 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
41862 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
41863 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
41864 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
41865 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
41866 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
41867 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
41868 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
41869 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
ebee3cd0 VS |
41870 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
41871 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
41872 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
41873 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
41874 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
41875 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
41876 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
41877 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
41878 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
41879 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
41880 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
41881 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
41882 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
41883 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t | |
41884 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
41885 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
41886 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
41887 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
41888 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
41889 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
41890 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
41891 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
41892 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
41893 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
41894 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
41895 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
41896 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
41897 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
41898 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
41899 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
41900 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
4d4ff94c | 41901 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
a848cd7e SC |
41902 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t |
41903 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
41904 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
41905 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
41906 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
41907 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
41908 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
41909 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
4d4ff94c | 41910 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
41911 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
41912 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
41913 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
4d4ff94c | 41914 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t |
3fd9c298 DE |
41915 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
41916 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
41917 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
41918 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
41919 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
41920 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
41921 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
41922 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
41923 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
41924 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
41925 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
41926 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
41927 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
41928 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
41929 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
4d4ff94c | 41930 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
a848cd7e SC |
41931 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
41932 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
41933 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
41934 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
41935 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
41936 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t | |
4d4ff94c | 41937 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t |
a848cd7e SC |
41938 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
41939 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
41940 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
41941 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
41942 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
41943 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
41944 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
41945 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
41946 | s,@PATH_IFS@,$PATH_IFS,;t t | |
41947 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
41948 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
41949 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
224bf05c | 41950 | s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t |
a848cd7e SC |
41951 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t |
41952 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
41953 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t | |
41954 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
41955 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
41956 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
41957 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
41958 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
41959 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
41960 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
41961 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
41962 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
41963 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
41964 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
41965 | s,@WX_ALL@,$WX_ALL,;t t | |
41966 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
41967 | s,@SHARED_LD@,$SHARED_LD,;t t | |
41968 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t | |
41969 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
41970 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
41971 | s,@USE_GUI@,$USE_GUI,;t t | |
41972 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
41973 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
41974 | s,@TOOLKIT@,$TOOLKIT,;t t | |
41975 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
41976 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
41977 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
41978 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
41979 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
41980 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
41981 | s,@cross_compiling@,$cross_compiling,;t t | |
41982 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t | |
41983 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
41984 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
41985 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
41986 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
41987 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
41988 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
41989 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
48112931 | 41990 | s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t |
a848cd7e | 41991 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
74b84332 | 41992 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
41993 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
41994 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
41995 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
41996 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
41997 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
41998 | s,@GUIDIST@,$GUIDIST,;t t | |
41999 | s,@PORT_FILES@,$PORT_FILES,;t t | |
42000 | s,@DISTDIR@,$DISTDIR,;t t | |
42001 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42002 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
42003 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
42004 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
42005 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
42006 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42007 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42008 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42009 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42010 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42011 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42012 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42013 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42014 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42015 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42016 | s,@GCC@,$GCC,;t t | |
a848cd7e SC |
42017 | s,@DLLTOOL@,$DLLTOOL,;t t |
42018 | s,@AS@,$AS,;t t | |
42019 | s,@LD@,$LD,;t t | |
42020 | s,@MAKEINFO@,$MAKEINFO,;t t | |
42021 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
42022 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t | |
42023 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42024 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42025 | CEOF | |
42026 | ||
42027 | _ACEOF | |
42028 | ||
42029 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42030 | # Split the substitutions into bite-sized pieces for seds with | |
42031 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42032 | ac_max_sed_lines=48 | |
42033 | ac_sed_frag=1 # Number of current file. | |
42034 | ac_beg=1 # First line for current file. | |
42035 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42036 | ac_more_lines=: | |
42037 | ac_sed_cmds= | |
42038 | while $ac_more_lines; do | |
42039 | if test $ac_beg -gt 1; then | |
42040 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42041 | else | |
42042 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42043 | fi | |
42044 | if test ! -s $tmp/subs.frag; then | |
42045 | ac_more_lines=false | |
42046 | else | |
42047 | # The purpose of the label and of the branching condition is to | |
42048 | # speed up the sed processing (if there are no `@' at all, there | |
42049 | # is no need to browse any of the substitutions). | |
42050 | # These are the two extra sed commands mentioned above. | |
42051 | (echo ':t | |
42052 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42053 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42054 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42055 | else |
ac1cb8d3 | 42056 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42057 | fi |
42058 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42059 | ac_beg=$ac_end | |
42060 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42061 | fi | |
42062 | done | |
42063 | if test -z "$ac_sed_cmds"; then | |
42064 | ac_sed_cmds=cat | |
42065 | fi | |
42066 | fi # test -n "$CONFIG_FILES" | |
42067 | ||
42068 | _ACEOF | |
42069 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42070 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42071 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42072 | case $ac_file in | |
42073 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42074 | cat >$tmp/stdin |
42075 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42076 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42077 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42078 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42079 | * ) ac_file_in=$ac_file.in ;; |
42080 | esac | |
42081 | ||
42082 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42083 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42084 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42085 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42086 | X"$ac_file" : 'X\(//\)$' \| \ | |
42087 | X"$ac_file" : 'X\(/\)' \| \ | |
42088 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42089 | echo X"$ac_file" | |
42090 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42091 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42092 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42093 | /^X\(\/\).*/{ s//\1/; q; } | |
42094 | s/.*/./; q'` | |
42095 | { if $as_mkdir_p; then | |
42096 | mkdir -p "$ac_dir" | |
42097 | else | |
42098 | as_dir="$ac_dir" | |
42099 | as_dirs= | |
42100 | while test ! -d "$as_dir"; do | |
42101 | as_dirs="$as_dir $as_dirs" | |
42102 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42103 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42104 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42105 | X"$as_dir" : 'X\(//\)$' \| \ | |
42106 | X"$as_dir" : 'X\(/\)' \| \ | |
42107 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42108 | echo X"$as_dir" | |
42109 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42110 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42111 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42112 | /^X\(\/\).*/{ s//\1/; q; } | |
42113 | s/.*/./; q'` | |
42114 | done | |
42115 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42116 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42117 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42118 | { (exit 1); exit 1; }; }; } | |
42119 | ||
42120 | ac_builddir=. | |
42121 | ||
42122 | if test "$ac_dir" != .; then | |
42123 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42124 | # A "../" for each directory in $ac_dir_suffix. | |
42125 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42126 | else | |
42127 | ac_dir_suffix= ac_top_builddir= | |
42128 | fi | |
42129 | ||
42130 | case $srcdir in | |
42131 | .) # No --srcdir option. We are building in place. | |
42132 | ac_srcdir=. | |
42133 | if test -z "$ac_top_builddir"; then | |
42134 | ac_top_srcdir=. | |
42135 | else | |
42136 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42137 | fi ;; | |
42138 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42139 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42140 | ac_top_srcdir=$srcdir ;; | |
42141 | *) # Relative path. | |
42142 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42143 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42144 | esac | |
ac1cb8d3 VS |
42145 | |
42146 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42147 | # the directories may not exist. | |
42148 | case `pwd` in | |
42149 | .) ac_abs_builddir="$ac_dir";; | |
42150 | *) | |
42151 | case "$ac_dir" in | |
42152 | .) ac_abs_builddir=`pwd`;; | |
42153 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42154 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42155 | esac;; | |
42156 | esac | |
42157 | case $ac_abs_builddir in | |
42158 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42159 | *) | |
42160 | case ${ac_top_builddir}. in | |
42161 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42162 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42163 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42164 | esac;; | |
42165 | esac | |
42166 | case $ac_abs_builddir in | |
42167 | .) ac_abs_srcdir=$ac_srcdir;; | |
42168 | *) | |
42169 | case $ac_srcdir in | |
42170 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42171 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42172 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42173 | esac;; | |
42174 | esac | |
42175 | case $ac_abs_builddir in | |
42176 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42177 | *) | |
42178 | case $ac_top_srcdir in | |
42179 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42180 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42181 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42182 | esac;; | |
42183 | esac | |
a848cd7e SC |
42184 | |
42185 | ||
42186 | case $INSTALL in | |
42187 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42188 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42189 | esac | |
42190 | ||
a848cd7e SC |
42191 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42192 | # use $as_me), people would be surprised to read: | |
42193 | # /* config.h. Generated by config.status. */ | |
42194 | if test x"$ac_file" = x-; then | |
42195 | configure_input= | |
42196 | else | |
42197 | configure_input="$ac_file. " | |
42198 | fi | |
42199 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42200 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42201 | |
42202 | # First look for the input files in the build tree, otherwise in the | |
42203 | # src tree. | |
42204 | ac_file_inputs=`IFS=: | |
42205 | for f in $ac_file_in; do | |
42206 | case $f in | |
42207 | -) echo $tmp/stdin ;; | |
42208 | [\\/$]*) | |
ac1cb8d3 VS |
42209 | # Absolute (can't be DOS-style, as IFS=:) |
42210 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42211 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42212 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42213 | echo "$f";; |
a848cd7e | 42214 | *) # Relative |
ac1cb8d3 VS |
42215 | if test -f "$f"; then |
42216 | # Build tree | |
42217 | echo "$f" | |
42218 | elif test -f "$srcdir/$f"; then | |
42219 | # Source tree | |
42220 | echo "$srcdir/$f" | |
42221 | else | |
42222 | # /dev/null tree | |
42223 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42224 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42225 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42226 | fi;; |
a848cd7e SC |
42227 | esac |
42228 | done` || { (exit 1); exit 1; } | |
4d4ff94c VZ |
42229 | |
42230 | if test x"$ac_file" != x-; then | |
42231 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42232 | echo "$as_me: creating $ac_file" >&6;} | |
42233 | rm -f "$ac_file" | |
42234 | fi | |
a848cd7e SC |
42235 | _ACEOF |
42236 | cat >>$CONFIG_STATUS <<_ACEOF | |
42237 | sed "$ac_vpsub | |
42238 | $extrasub | |
42239 | _ACEOF | |
42240 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42241 | :t | |
42242 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42243 | s,@configure_input@,$configure_input,;t t | |
42244 | s,@srcdir@,$ac_srcdir,;t t | |
42245 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42246 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42247 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42248 | s,@builddir@,$ac_builddir,;t t | |
42249 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42250 | s,@top_builddir@,$ac_top_builddir,;t t | |
42251 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42252 | s,@INSTALL@,$ac_INSTALL,;t t | |
42253 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42254 | rm -f $tmp/stdin | |
42255 | if test x"$ac_file" != x-; then | |
42256 | mv $tmp/out $ac_file | |
42257 | else | |
42258 | cat $tmp/out | |
42259 | rm -f $tmp/out | |
42260 | fi | |
42261 | ||
42262 | done | |
42263 | _ACEOF | |
42264 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42265 | ||
42266 | # | |
42267 | # CONFIG_HEADER section. | |
42268 | # | |
42269 | ||
42270 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42271 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42272 | # | |
42273 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42274 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42275 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42276 | ac_dC=' ' |
42277 | ac_dD=',;t' | |
42278 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42279 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42280 | ac_uB='$,\1#\2define\3' |
42281 | ac_uC=' ' | |
42282 | ac_uD=',;t' | |
42283 | ||
42284 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42285 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42286 | case $ac_file in | |
42287 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42288 | cat >$tmp/stdin |
42289 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42290 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42291 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42292 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42293 | * ) ac_file_in=$ac_file.in ;; |
42294 | esac | |
42295 | ||
42296 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42297 | echo "$as_me: creating $ac_file" >&6;} | |
42298 | ||
42299 | # First look for the input files in the build tree, otherwise in the | |
42300 | # src tree. | |
42301 | ac_file_inputs=`IFS=: | |
42302 | for f in $ac_file_in; do | |
42303 | case $f in | |
42304 | -) echo $tmp/stdin ;; | |
42305 | [\\/$]*) | |
ac1cb8d3 VS |
42306 | # Absolute (can't be DOS-style, as IFS=:) |
42307 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42308 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42309 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42310 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42311 | echo "$f";; | |
a848cd7e | 42312 | *) # Relative |
ac1cb8d3 VS |
42313 | if test -f "$f"; then |
42314 | # Build tree | |
42315 | echo "$f" | |
42316 | elif test -f "$srcdir/$f"; then | |
42317 | # Source tree | |
42318 | echo "$srcdir/$f" | |
42319 | else | |
42320 | # /dev/null tree | |
42321 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42322 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42323 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42324 | fi;; |
a848cd7e SC |
42325 | esac |
42326 | done` || { (exit 1); exit 1; } | |
42327 | # Remove the trailing spaces. | |
ac1cb8d3 | 42328 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42329 | |
42330 | _ACEOF | |
42331 | ||
42332 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42333 | # `conftest.undefs', that substitutes the proper values into | |
42334 | # config.h.in to produce config.h. The first handles `#define' | |
42335 | # templates, and the second `#undef' templates. | |
42336 | # And first: Protect against being on the right side of a sed subst in | |
42337 | # config.status. Protect against being in an unquoted here document | |
42338 | # in config.status. | |
42339 | rm -f conftest.defines conftest.undefs | |
42340 | # Using a here document instead of a string reduces the quoting nightmare. | |
42341 | # Putting comments in sed scripts is not portable. | |
42342 | # | |
42343 | # `end' is used to avoid that the second main sed command (meant for | |
42344 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42345 | # See the Autoconf documentation for `clear'. | |
42346 | cat >confdef2sed.sed <<\_ACEOF | |
42347 | s/[\\&,]/\\&/g | |
42348 | s,[\\$`],\\&,g | |
42349 | t clear | |
42350 | : clear | |
ac1cb8d3 | 42351 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42352 | t end |
ac1cb8d3 | 42353 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42354 | : end |
42355 | _ACEOF | |
42356 | # If some macros were called several times there might be several times | |
42357 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42358 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42359 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42360 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42361 | rm -f confdef2sed.sed | |
42362 | ||
42363 | # This sed command replaces #undef with comments. This is necessary, for | |
42364 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42365 | # on some systems where configure will not decide to define it. | |
42366 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42367 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42368 | _ACEOF |
42369 | ||
42370 | # Break up conftest.defines because some shells have a limit on the size | |
42371 | # of here documents, and old seds have small limits too (100 cmds). | |
42372 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42373 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42374 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42375 | echo ' :' >>$CONFIG_STATUS | |
42376 | rm -f conftest.tail | |
42377 | while grep . conftest.defines >/dev/null | |
42378 | do | |
42379 | # Write a limited-size here document to $tmp/defines.sed. | |
42380 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
42381 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 42382 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42383 | # Work around the forget-to-reset-the-flag bug. |
42384 | echo 't clr' >>$CONFIG_STATUS | |
42385 | echo ': clr' >>$CONFIG_STATUS | |
42386 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
42387 | echo 'CEOF | |
42388 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
42389 | rm -f $tmp/in | |
42390 | mv $tmp/out $tmp/in | |
42391 | ' >>$CONFIG_STATUS | |
42392 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
42393 | rm -f conftest.defines | |
42394 | mv conftest.tail conftest.defines | |
42395 | done | |
42396 | rm -f conftest.defines | |
42397 | echo ' fi # grep' >>$CONFIG_STATUS | |
42398 | echo >>$CONFIG_STATUS | |
42399 | ||
42400 | # Break up conftest.undefs because some shells have a limit on the size | |
42401 | # of here documents, and old seds have small limits too (100 cmds). | |
42402 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
42403 | rm -f conftest.tail | |
42404 | while grep . conftest.undefs >/dev/null | |
42405 | do | |
42406 | # Write a limited-size here document to $tmp/undefs.sed. | |
42407 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
42408 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 42409 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42410 | # Work around the forget-to-reset-the-flag bug. |
42411 | echo 't clr' >>$CONFIG_STATUS | |
42412 | echo ': clr' >>$CONFIG_STATUS | |
42413 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
42414 | echo 'CEOF | |
42415 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
42416 | rm -f $tmp/in | |
42417 | mv $tmp/out $tmp/in | |
42418 | ' >>$CONFIG_STATUS | |
42419 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
42420 | rm -f conftest.undefs | |
42421 | mv conftest.tail conftest.undefs | |
42422 | done | |
42423 | rm -f conftest.undefs | |
42424 | ||
42425 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42426 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
42427 | # use $as_me), people would be surprised to read: | |
42428 | # /* config.h. Generated by config.status. */ | |
42429 | if test x"$ac_file" = x-; then | |
42430 | echo "/* Generated by configure. */" >$tmp/config.h | |
42431 | else | |
42432 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
42433 | fi | |
42434 | cat $tmp/in >>$tmp/config.h | |
42435 | rm -f $tmp/in | |
42436 | if test x"$ac_file" != x-; then | |
42437 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
42438 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
42439 | echo "$as_me: $ac_file is unchanged" >&6;} | |
42440 | else | |
42441 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42442 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42443 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42444 | X"$ac_file" : 'X\(//\)$' \| \ | |
42445 | X"$ac_file" : 'X\(/\)' \| \ | |
42446 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42447 | echo X"$ac_file" | |
42448 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42449 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42450 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42451 | /^X\(\/\).*/{ s//\1/; q; } | |
42452 | s/.*/./; q'` | |
42453 | { if $as_mkdir_p; then | |
42454 | mkdir -p "$ac_dir" | |
42455 | else | |
42456 | as_dir="$ac_dir" | |
42457 | as_dirs= | |
42458 | while test ! -d "$as_dir"; do | |
42459 | as_dirs="$as_dir $as_dirs" | |
42460 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42461 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42462 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42463 | X"$as_dir" : 'X\(//\)$' \| \ | |
42464 | X"$as_dir" : 'X\(/\)' \| \ | |
42465 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42466 | echo X"$as_dir" | |
42467 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42468 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42469 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42470 | /^X\(\/\).*/{ s//\1/; q; } | |
42471 | s/.*/./; q'` | |
42472 | done | |
42473 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42474 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42475 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42476 | { (exit 1); exit 1; }; }; } | |
42477 | ||
42478 | rm -f $ac_file | |
42479 | mv $tmp/config.h $ac_file | |
42480 | fi | |
42481 | else | |
42482 | cat $tmp/config.h | |
42483 | rm -f $tmp/config.h | |
42484 | fi | |
42485 | done | |
42486 | _ACEOF | |
42487 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42488 | ||
42489 | # | |
42490 | # CONFIG_COMMANDS section. | |
42491 | # | |
42492 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
42493 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
42494 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42495 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
42496 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42497 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
42498 | X"$ac_dest" : 'X\(//\)$' \| \ | |
42499 | X"$ac_dest" : 'X\(/\)' \| \ | |
42500 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42501 | echo X"$ac_dest" | |
42502 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42503 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42504 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42505 | /^X\(\/\).*/{ s//\1/; q; } | |
42506 | s/.*/./; q'` | |
ac1cb8d3 VS |
42507 | { if $as_mkdir_p; then |
42508 | mkdir -p "$ac_dir" | |
42509 | else | |
42510 | as_dir="$ac_dir" | |
42511 | as_dirs= | |
42512 | while test ! -d "$as_dir"; do | |
42513 | as_dirs="$as_dir $as_dirs" | |
42514 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42515 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
42516 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
42517 | X"$as_dir" : 'X\(//\)$' \| \ | |
42518 | X"$as_dir" : 'X\(/\)' \| \ | |
42519 | . : '\(.\)' 2>/dev/null || | |
42520 | echo X"$as_dir" | | |
42521 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42522 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42523 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42524 | /^X\(\/\).*/{ s//\1/; q; } | |
42525 | s/.*/./; q'` | |
42526 | done | |
42527 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42528 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42529 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42530 | { (exit 1); exit 1; }; }; } | |
42531 | ||
a848cd7e SC |
42532 | ac_builddir=. |
42533 | ||
42534 | if test "$ac_dir" != .; then | |
42535 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42536 | # A "../" for each directory in $ac_dir_suffix. | |
42537 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42538 | else | |
42539 | ac_dir_suffix= ac_top_builddir= | |
42540 | fi | |
42541 | ||
42542 | case $srcdir in | |
42543 | .) # No --srcdir option. We are building in place. | |
42544 | ac_srcdir=. | |
42545 | if test -z "$ac_top_builddir"; then | |
42546 | ac_top_srcdir=. | |
42547 | else | |
42548 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42549 | fi ;; | |
42550 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42551 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42552 | ac_top_srcdir=$srcdir ;; | |
42553 | *) # Relative path. | |
42554 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42555 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42556 | esac | |
ac1cb8d3 VS |
42557 | |
42558 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42559 | # the directories may not exist. | |
42560 | case `pwd` in | |
42561 | .) ac_abs_builddir="$ac_dir";; | |
42562 | *) | |
42563 | case "$ac_dir" in | |
42564 | .) ac_abs_builddir=`pwd`;; | |
42565 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42566 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42567 | esac;; | |
42568 | esac | |
42569 | case $ac_abs_builddir in | |
42570 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42571 | *) | |
42572 | case ${ac_top_builddir}. in | |
42573 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42574 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42575 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42576 | esac;; | |
42577 | esac | |
42578 | case $ac_abs_builddir in | |
42579 | .) ac_abs_srcdir=$ac_srcdir;; | |
42580 | *) | |
42581 | case $ac_srcdir in | |
42582 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42583 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42584 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42585 | esac;; | |
42586 | esac | |
42587 | case $ac_abs_builddir in | |
42588 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42589 | *) | |
42590 | case $ac_top_srcdir in | |
42591 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42592 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42593 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42594 | esac;; | |
42595 | esac | |
a848cd7e SC |
42596 | |
42597 | ||
42598 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
42599 | echo "$as_me: executing $ac_dest commands" >&6;} | |
42600 | case $ac_dest in | |
42601 | default ) | |
a848cd7e SC |
42602 | if test ! -d lib; then |
42603 | mkdir lib | |
42604 | fi | |
42605 | if test ! -d lib/wx; then | |
42606 | mkdir lib/wx | |
42607 | fi | |
8708fa76 VS |
42608 | if test ! -d lib/wx/config; then |
42609 | mkdir lib/wx/config | |
42610 | fi | |
a848cd7e SC |
42611 | if test ! -d lib/wx/include; then |
42612 | mkdir lib/wx/include | |
42613 | fi | |
42614 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
42615 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
42616 | fi | |
42617 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
42618 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
42619 | fi | |
42620 | if test -f setup.h; then | |
42621 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
42622 | fi | |
8708fa76 | 42623 | |
4b167aca | 42624 | if test ! -h wx-config; then |
8708fa76 | 42625 | chmod +x wx-config |
48112931 | 42626 | mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE} |
4b167aca | 42627 | ${LN_S} wx-config-${WX_RELEASE} wx-config |
8708fa76 | 42628 | fi |
4b167aca VS |
42629 | ( cd lib/wx/config ; |
42630 | rm -f ${TOOLCHAIN_NAME} | |
42631 | ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} ) | |
42632 | ||
8708fa76 VS |
42633 | if test -f wx-config-wrapper; then |
42634 | chmod +x wx-config-wrapper | |
4b167aca | 42635 | mv -f wx-config-wrapper wx-config-${WX_RELEASE} |
b3de4970 | 42636 | rm -f wx${TOOLCHAIN_NAME}-config |
4b167aca | 42637 | ${LN_S} wx-config-${WX_RELEASE} wx${TOOLCHAIN_NAME}-config |
8708fa76 | 42638 | fi |
a848cd7e SC |
42639 | ;; |
42640 | esac | |
42641 | done | |
42642 | _ACEOF | |
42643 | ||
42644 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42645 | ||
42646 | { (exit 0); exit 0; } | |
42647 | _ACEOF | |
42648 | chmod +x $CONFIG_STATUS | |
42649 | ac_clean_files=$ac_clean_files_save | |
42650 | ||
42651 | ||
42652 | # configure is writing to config.log, and then calls config.status. | |
42653 | # config.status does its own redirection, appending to config.log. | |
42654 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
42655 | # by configure, so config.status won't be able to write to it; its | |
42656 | # output is simply discarded. So we exec the FD to /dev/null, | |
42657 | # effectively closing config.log, so it can be properly (re)opened and | |
42658 | # appended to by config.status. When coming back to configure, we | |
42659 | # need to make the FD available again. | |
42660 | if test "$no_create" != yes; then | |
42661 | ac_cs_success=: | |
42662 | ac_config_status_args= | |
42663 | test "$silent" = yes && | |
42664 | ac_config_status_args="$ac_config_status_args --quiet" | |
42665 | exec 5>/dev/null | |
42666 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
42667 | exec 5>>config.log | |
42668 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
42669 | # would make configure fail if this is the last instruction. | |
42670 | $ac_cs_success || { (exit 1); exit 1; } | |
42671 | fi | |
42672 | ||
42673 | # | |
42674 | # CONFIG_SUBDIRS section. | |
42675 | # | |
42676 | if test "$no_recursion" != yes; then | |
42677 | ||
42678 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
42679 | ac_sub_configure_args= | |
42680 | ac_prev= | |
42681 | for ac_arg in $ac_configure_args; do | |
42682 | if test -n "$ac_prev"; then | |
42683 | ac_prev= | |
42684 | continue | |
42685 | fi | |
42686 | case $ac_arg in | |
42687 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
42688 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
42689 | ac_prev=cache_file ;; | |
42690 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
42691 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
42692 | | --c=*) | |
42693 | ;; | |
42694 | --config-cache | -C) | |
42695 | ;; | |
42696 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
42697 | ac_prev=srcdir ;; | |
42698 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42699 | ;; | |
42700 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
42701 | ac_prev=prefix ;; | |
42702 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42703 | ;; | |
42704 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
42705 | esac | |
42706 | done | |
42707 | ||
42708 | # Always prepend --prefix to ensure using the same prefix | |
42709 | # in subdir configurations. | |
42710 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
42711 | ||
42712 | ac_popdir=`pwd` | |
42713 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
42714 | ||
42715 | # Do not complain, so a configure script can configure whichever | |
42716 | # parts of a large source tree are present. | |
42717 | test -d $srcdir/$ac_dir || continue | |
42718 | ||
42719 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
42720 | echo "$as_me: configuring in $ac_dir" >&6;} | |
42721 | { if $as_mkdir_p; then | |
42722 | mkdir -p "$ac_dir" | |
42723 | else | |
42724 | as_dir="$ac_dir" | |
42725 | as_dirs= | |
42726 | while test ! -d "$as_dir"; do | |
42727 | as_dirs="$as_dir $as_dirs" | |
42728 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42729 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42730 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42731 | X"$as_dir" : 'X\(//\)$' \| \ | |
42732 | X"$as_dir" : 'X\(/\)' \| \ | |
42733 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42734 | echo X"$as_dir" | |
42735 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42736 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42737 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42738 | /^X\(\/\).*/{ s//\1/; q; } | |
42739 | s/.*/./; q'` | |
42740 | done | |
42741 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42742 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42743 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42744 | { (exit 1); exit 1; }; }; } | |
42745 | ||
42746 | ac_builddir=. | |
42747 | ||
42748 | if test "$ac_dir" != .; then | |
42749 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42750 | # A "../" for each directory in $ac_dir_suffix. | |
42751 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42752 | else | |
42753 | ac_dir_suffix= ac_top_builddir= | |
42754 | fi | |
42755 | ||
42756 | case $srcdir in | |
42757 | .) # No --srcdir option. We are building in place. | |
42758 | ac_srcdir=. | |
42759 | if test -z "$ac_top_builddir"; then | |
42760 | ac_top_srcdir=. | |
42761 | else | |
42762 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42763 | fi ;; | |
42764 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42765 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42766 | ac_top_srcdir=$srcdir ;; | |
42767 | *) # Relative path. | |
42768 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42769 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42770 | esac | |
ac1cb8d3 VS |
42771 | |
42772 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42773 | # the directories may not exist. | |
42774 | case `pwd` in | |
42775 | .) ac_abs_builddir="$ac_dir";; | |
42776 | *) | |
42777 | case "$ac_dir" in | |
42778 | .) ac_abs_builddir=`pwd`;; | |
42779 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42780 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42781 | esac;; | |
42782 | esac | |
42783 | case $ac_abs_builddir in | |
42784 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42785 | *) | |
42786 | case ${ac_top_builddir}. in | |
42787 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42788 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42789 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42790 | esac;; | |
42791 | esac | |
42792 | case $ac_abs_builddir in | |
42793 | .) ac_abs_srcdir=$ac_srcdir;; | |
42794 | *) | |
42795 | case $ac_srcdir in | |
42796 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42797 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42798 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42799 | esac;; | |
42800 | esac | |
42801 | case $ac_abs_builddir in | |
42802 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42803 | *) | |
42804 | case $ac_top_srcdir in | |
42805 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42806 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42807 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42808 | esac;; | |
42809 | esac | |
a848cd7e SC |
42810 | |
42811 | ||
42812 | cd $ac_dir | |
42813 | ||
42814 | # Check for guested configure; otherwise get Cygnus style configure. | |
42815 | if test -f $ac_srcdir/configure.gnu; then | |
42816 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
42817 | elif test -f $ac_srcdir/configure; then | |
42818 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
42819 | elif test -f $ac_srcdir/configure.in; then | |
42820 | ac_sub_configure=$ac_configure | |
42821 | else | |
42822 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
42823 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
42824 | ac_sub_configure= | |
42825 | fi | |
42826 | ||
42827 | # The recursion is here. | |
42828 | if test -n "$ac_sub_configure"; then | |
42829 | # Make the cache file name correct relative to the subdirectory. | |
42830 | case $cache_file in | |
42831 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
42832 | *) # Relative path. | |
ac1cb8d3 | 42833 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
42834 | esac |
42835 | ||
42836 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
42837 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
42838 | # The eval makes quoting arguments work. | |
42839 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
42840 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
42841 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
42842 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
42843 | { (exit 1); exit 1; }; } | |
42844 | fi | |
42845 | ||
4d4ff94c | 42846 | cd "$ac_popdir" |
a848cd7e SC |
42847 | done |
42848 | fi | |
42849 | ||
42850 | ||
42851 | echo | |
77ffb593 | 42852 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 42853 | echo "" |
4d4ff94c | 42854 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 42855 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 42856 | |
77ffb593 JS |
42857 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
42858 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
42859 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 42860 | |
77ffb593 JS |
42861 | echo " What level of wxWidgets compatibility should be enabled?" |
42862 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
42863 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 42864 | |
77ffb593 | 42865 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
42866 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
42867 | echo " png ${wxUSE_LIBPNG-none}" | |
42868 | echo " regex ${wxUSE_REGEX}" | |
42869 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
42870 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
42871 | echo " xpm ${wxUSE_LIBXPM-none}" | |
42872 | fi | |
42873 | echo " zlib ${wxUSE_ZLIB}" | |
42874 | echo " odbc ${wxUSE_ODBC}" | |
42875 | echo " expat ${wxUSE_EXPAT}" | |
42876 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
42877 | echo " sdl ${wxUSE_LIBSDL}" | |
42878 | ||
42879 | echo "" | |
42880 |