]>
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" | |
3fd9c298 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
77ffb593 | 797 | \`configure' configures wxWidgets 2.5.2 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
77ffb593 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.2:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
646b6ec1 | 875 | --enable-gtk2 use GTK+ 2.0 if available |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
a848cd7e SC |
894 | --enable-rpath=DIR output the rpath flag from wx-config |
895 | --enable-intl use internationalization system | |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
907 | --enable-cmdline use wxCmdLineParser class | |
908 | --enable-datetime use wxDateTime class | |
909 | --enable-dialupman use dialup network classes | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-exceptions build exception-safe library | |
913 | --enable-ffile use wxFFile class | |
914 | --enable-file use wxFile class | |
915 | --enable-filesystem use virtual file systems classes | |
916 | --enable-fontmap use font encodings conversion classes | |
917 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
918 | --enable-fs_zip use virtual ZIP filesystems | |
919 | --enable-geometry use geometry class | |
920 | --enable-log use logging system | |
921 | --enable-longlong use wxLongLong class | |
922 | --enable-mimetype use wxMimeTypesManager | |
923 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
924 | --enable-snglinst use wxSingleInstanceChecker class | |
925 | --enable-streams use wxStream etc classes | |
926 | --enable-std_iostreams use standard C++ stream classes | |
927 | --enable-stopwatch use wxStopWatch class | |
928 | --enable-sysoptions use wxSystemOptions | |
929 | --enable-textbuf use wxTextBuffer class | |
930 | --enable-textfile use wxTextFile class | |
931 | --enable-timer use wxTimer class | |
932 | --enable-unicode compile wxString with Unicode support | |
933 | --enable-sound use wxSound class | |
77ffb593 | 934 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
a848cd7e | 935 | --enable-zipstream use wxZipInputStream |
a848cd7e SC |
936 | --enable-url use wxURL class |
937 | --enable-protocol use wxProtocol class | |
938 | --enable-protocol-http HTTP support in wxProtocol | |
939 | --enable-protocol-ftp FTP support in wxProtocol | |
940 | --enable-protocol-file FILE support in wxProtocol | |
941 | --enable-threads use threads | |
942 | --enable-docview use document view architecture | |
943 | --enable-help use help subsystem | |
944 | --enable-mshtmlhelp use MS HTML Help (win32) | |
945 | --enable-html use wxHTML sub-library | |
946 | --enable-htmlhelp use wxHTML-based help | |
947 | --enable-constraints use layout-constraints system | |
948 | --enable-printarch use printing architecture | |
949 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 950 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
951 | --enable-loggui use standard GUI logger |
952 | --enable-logwin use wxLogWindow | |
953 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 954 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
955 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
956 | --enable-prologio not available; see contrib | |
957 | --enable-resources not available; see contrib | |
958 | --enable-clipboard use wxClipboard class | |
959 | --enable-dnd use Drag'n'Drop classes | |
960 | --enable-metafile use win32 metafiles | |
961 | --enable-controls use all usual controls | |
962 | --enable-accel use accelerators | |
963 | --enable-button use wxButton class | |
964 | --enable-bmpbutton use wxBitmapButton class | |
965 | --enable-calendar use wxCalendarCtrl class | |
966 | --enable-caret use wxCaret class | |
967 | --enable-checkbox use wxCheckBox class | |
968 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
969 | --enable-choice use wxChoice class | |
970 | --enable-combobox use wxComboBox class | |
971 | --enable-display use wxDisplay class | |
972 | --enable-gauge use wxGauge class | |
973 | --enable-grid use wxGrid class | |
974 | --enable-imaglist use wxImageList class | |
975 | --enable-listbook use wxListbook class | |
976 | --enable-listbox use wxListBox class | |
977 | --enable-listctrl use wxListCtrl class | |
978 | --enable-notebook use wxNotebook class | |
979 | --enable-radiobox use wxRadioBox class | |
980 | --enable-radiobtn use wxRadioButton class | |
981 | --enable-sash use wxSashWindow class | |
982 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
983 | --enable-slider use wxSlider class | |
984 | --enable-spinbtn use wxSpinButton class | |
985 | --enable-spinctrl use wxSpinCtrl class | |
986 | --enable-splitter use wxSplitterWindow class | |
987 | --enable-statbmp use wxStaticBitmap class | |
988 | --enable-statbox use wxStaticBox class | |
989 | --enable-statline use wxStaticLine class | |
990 | --enable-stattext use wxStaticText class | |
991 | --enable-statusbar use wxStatusBar class | |
992 | --enable-tabdialog use wxTabControl class | |
993 | --enable-textctrl use wxTextCtrl class | |
994 | --enable-togglebtn use wxToggleButton class | |
995 | --enable-toolbar use wxToolBar class | |
996 | --enable-tbarnative use native wxToolBar class | |
997 | --enable-tbarsmpl use wxToolBarSimple class | |
998 | --enable-treectrl use wxTreeCtrl class | |
999 | --enable-tipwindow use wxTipWindow class | |
1000 | --enable-popupwin use wxPopUpWindow class | |
1001 | --enable-commondlg use all common dialogs | |
1002 | --enable-choicedlg use wxChoiceDialog | |
1003 | --enable-coldlg use wxColourDialog | |
1004 | --enable-filedlg use wxFileDialog | |
1005 | --enable-finddlg use wxFindReplaceDialog | |
1006 | --enable-fontdlg use wxFontDialog | |
1007 | --enable-dirdlg use wxDirDialog | |
1008 | --enable-msgdlg use wxMessageDialog | |
1009 | --enable-numberdlg use wxNumberEntryDialog | |
1010 | --enable-splash use wxSplashScreen | |
1011 | --enable-textdlg use wxTextDialog | |
1012 | --enable-tipdlg use startup tips | |
1013 | --enable-progressdlg use wxProgressDialog | |
1014 | --enable-wizarddlg use wxWizard | |
1015 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1016 | --enable-miniframe use wxMiniFrame class | |
1017 | --enable-tooltips use wxToolTip class | |
1018 | --enable-splines use spline drawing code | |
1019 | --enable-validators use wxValidator and derived classes | |
1020 | --enable-busyinfo use wxBusyInfo | |
1021 | --enable-joystick use wxJoystick (Linux only) | |
1022 | --enable-metafiles use wxMetaFile (Windows only) | |
1023 | --enable-dragimage use wxDragImage | |
1024 | --enable-accessibility enable accessibility support | |
1025 | --enable-palette use wxPalette class | |
1026 | --enable-image use wxImage class | |
1027 | --enable-gif use gif images (GIF file format) | |
1028 | --enable-pcx use pcx images (PCX file format) | |
1029 | --enable-iff use iff images (IFF file format) | |
1030 | --enable-pnm use pnm images (PNM file format) | |
1031 | --enable-xpm use xpm images (XPM file format) | |
1032 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1033 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1034 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1035 | --disable-largefile omit support for large files | |
1036 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1037 | --disable-gtktest Do not try to compile and run a test GTK program | |
1038 | --disable-sdltest Do not try to compile and run a test SDL program | |
1039 | --enable-omf use OMF object format (OS/2) | |
1040 | --disable-precomp-headers don't use precompiled headers even if compiler can | |
1041 | ||
1042 | Optional Packages: | |
1043 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1044 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1045 | --with-gtk use GTK+ | |
1046 | --with-motif use Motif/Lesstif | |
1047 | --with-mac use Mac OS X | |
1048 | --with-cocoa use Cocoa | |
1049 | --with-wine use Wine | |
1050 | --with-msw use MS-Windows | |
1051 | --with-pm use OS/2 Presentation Manager | |
1052 | --with-mgl use SciTech MGL | |
1053 | --with-microwin use MicroWindows | |
1054 | --with-x11 use X11 | |
1055 | --with-libpng use libpng (PNG image format) | |
1056 | --with-libjpeg use libjpeg (JPEG file format) | |
1057 | --with-libtiff use libtiff (TIFF file format) | |
1058 | --with-libxpm use libxpm (XPM file format) | |
1059 | --with-libmspack use libmspack (CHM help files loading) | |
1060 | --with-sdl use SDL for audio on Unix | |
1061 | --with-opengl use OpenGL (or Mesa) | |
1062 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1063 | --with-regex enable support for wxRegEx class | |
1064 | --with-zlib use zlib for LZW compression | |
1065 | --with-odbc use the IODBC and wxODBC classes | |
1066 | --with-expat enable XML support using expat parser | |
1067 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1068 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1069 | --with-x use the X Window System | |
1070 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1071 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1072 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1073 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1074 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1075 | ||
1076 | Some influential environment variables: | |
dcc1b6ad VS |
1077 | CC C compiler command |
1078 | CFLAGS C compiler flags | |
1079 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1080 | nonstandard directory <lib dir> | |
1081 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1082 | headers in a nonstandard directory <include dir> | |
1083 | CPP C preprocessor | |
1084 | CXX C++ compiler command | |
1085 | CXXFLAGS C++ compiler flags | |
1086 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1087 | |
1088 | Use these variables to override the choices made by `configure' or to help | |
1089 | it to find libraries and programs with nonstandard names/locations. | |
1090 | ||
77ffb593 | 1091 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1092 | _ACEOF |
1093 | fi | |
1094 | ||
1095 | if test "$ac_init_help" = "recursive"; then | |
1096 | # If there are subdirs, report their specific --help. | |
1097 | ac_popdir=`pwd` | |
1098 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1099 | test -d $ac_dir || continue | |
1100 | ac_builddir=. | |
1101 | ||
1102 | if test "$ac_dir" != .; then | |
1103 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1104 | # A "../" for each directory in $ac_dir_suffix. | |
1105 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1106 | else | |
1107 | ac_dir_suffix= ac_top_builddir= | |
1108 | fi | |
1109 | ||
1110 | case $srcdir in | |
1111 | .) # No --srcdir option. We are building in place. | |
1112 | ac_srcdir=. | |
1113 | if test -z "$ac_top_builddir"; then | |
1114 | ac_top_srcdir=. | |
1115 | else | |
1116 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1117 | fi ;; | |
1118 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1119 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1120 | ac_top_srcdir=$srcdir ;; | |
1121 | *) # Relative path. | |
1122 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1123 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1124 | esac | |
ac1cb8d3 VS |
1125 | |
1126 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1127 | # the directories may not exist. | |
1128 | case `pwd` in | |
1129 | .) ac_abs_builddir="$ac_dir";; | |
1130 | *) | |
1131 | case "$ac_dir" in | |
1132 | .) ac_abs_builddir=`pwd`;; | |
1133 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1134 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1135 | esac;; | |
1136 | esac | |
1137 | case $ac_abs_builddir in | |
1138 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1139 | *) | |
1140 | case ${ac_top_builddir}. in | |
1141 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1142 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1143 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1144 | esac;; | |
1145 | esac | |
1146 | case $ac_abs_builddir in | |
1147 | .) ac_abs_srcdir=$ac_srcdir;; | |
1148 | *) | |
1149 | case $ac_srcdir in | |
1150 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1151 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1152 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1153 | esac;; | |
1154 | esac | |
1155 | case $ac_abs_builddir in | |
1156 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1157 | *) | |
1158 | case $ac_top_srcdir in | |
1159 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1160 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1161 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1162 | esac;; | |
1163 | esac | |
a848cd7e SC |
1164 | |
1165 | cd $ac_dir | |
1166 | # Check for guested configure; otherwise get Cygnus style configure. | |
1167 | if test -f $ac_srcdir/configure.gnu; then | |
1168 | echo | |
1169 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1170 | elif test -f $ac_srcdir/configure; then | |
1171 | echo | |
1172 | $SHELL $ac_srcdir/configure --help=recursive | |
1173 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1174 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1175 | echo |
1176 | $ac_configure --help | |
1177 | else | |
1178 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1179 | fi | |
dcc1b6ad | 1180 | cd $ac_popdir |
a848cd7e SC |
1181 | done |
1182 | fi | |
1183 | ||
1184 | test -n "$ac_init_help" && exit 0 | |
1185 | if $ac_init_version; then | |
1186 | cat <<\_ACEOF | |
77ffb593 | 1187 | wxWidgets configure 2.5.2 |
ac1cb8d3 | 1188 | generated by GNU Autoconf 2.59 |
a848cd7e | 1189 | |
ac1cb8d3 | 1190 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1191 | This configure script is free software; the Free Software Foundation |
1192 | gives unlimited permission to copy, distribute and modify it. | |
1193 | _ACEOF | |
1194 | exit 0 | |
1195 | fi | |
1196 | exec 5>config.log | |
1197 | cat >&5 <<_ACEOF | |
1198 | This file contains any messages produced by compilers while | |
1199 | running configure, to aid debugging if configure makes a mistake. | |
1200 | ||
77ffb593 | 1201 | It was created by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 1202 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1203 | |
1204 | $ $0 $@ | |
1205 | ||
1206 | _ACEOF | |
1207 | { | |
1208 | cat <<_ASUNAME | |
1209 | ## --------- ## | |
1210 | ## Platform. ## | |
1211 | ## --------- ## | |
1212 | ||
1213 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1214 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1215 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1216 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1217 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1218 | ||
1219 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1220 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1221 | ||
1222 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1223 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1224 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1225 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1226 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1227 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1228 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1229 | ||
1230 | _ASUNAME | |
1231 | ||
1232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1233 | for as_dir in $PATH | |
1234 | do | |
1235 | IFS=$as_save_IFS | |
1236 | test -z "$as_dir" && as_dir=. | |
1237 | echo "PATH: $as_dir" | |
1238 | done | |
1239 | ||
1240 | } >&5 | |
1241 | ||
1242 | cat >&5 <<_ACEOF | |
1243 | ||
1244 | ||
1245 | ## ----------- ## | |
1246 | ## Core tests. ## | |
1247 | ## ----------- ## | |
1248 | ||
1249 | _ACEOF | |
1250 | ||
1251 | ||
1252 | # Keep a trace of the command line. | |
1253 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1254 | # Strip out --silent because we don't want to record it for future runs. | |
1255 | # Also quote any args containing shell meta-characters. | |
1256 | # Make two passes to allow for proper duplicate-argument suppression. | |
1257 | ac_configure_args= | |
1258 | ac_configure_args0= | |
1259 | ac_configure_args1= | |
1260 | ac_sep= | |
1261 | ac_must_keep_next=false | |
1262 | for ac_pass in 1 2 | |
1263 | do | |
1264 | for ac_arg | |
1265 | do | |
1266 | case $ac_arg in | |
1267 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1268 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1269 | | -silent | --silent | --silen | --sile | --sil) | |
1270 | continue ;; | |
1271 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1272 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1273 | esac | |
1274 | case $ac_pass in | |
1275 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1276 | 2) | |
1277 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1278 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1279 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1280 | else |
ac1cb8d3 VS |
1281 | case $ac_arg in |
1282 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1283 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1284 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1285 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1286 | case "$ac_configure_args0 " in | |
1287 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1288 | esac | |
1289 | ;; | |
1290 | -* ) ac_must_keep_next=true ;; | |
1291 | esac | |
a848cd7e SC |
1292 | fi |
1293 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1294 | # Get rid of the leading space. | |
1295 | ac_sep=" " | |
1296 | ;; | |
1297 | esac | |
1298 | done | |
1299 | done | |
1300 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1301 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1302 | ||
1303 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1304 | # config.log. We remove comments because anyway the quotes in there | |
1305 | # would cause problems or look ugly. | |
1306 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1307 | # such as our DU 5.0 friend, will then `close' the trap. | |
1308 | trap 'exit_status=$? | |
1309 | # Save into config.log some information that might help in debugging. | |
1310 | { | |
1311 | echo | |
1312 | ||
1313 | cat <<\_ASBOX | |
1314 | ## ---------------- ## | |
1315 | ## Cache variables. ## | |
1316 | ## ---------------- ## | |
1317 | _ASBOX | |
1318 | echo | |
1319 | # The following way of writing the cache mishandles newlines in values, | |
1320 | { | |
1321 | (set) 2>&1 | | |
1322 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1323 | *ac_space=\ *) | |
1324 | sed -n \ | |
ac1cb8d3 VS |
1325 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1326 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1327 | ;; |
1328 | *) | |
1329 | sed -n \ | |
ac1cb8d3 | 1330 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1331 | ;; |
1332 | esac; | |
1333 | } | |
1334 | echo | |
1335 | ||
1336 | cat <<\_ASBOX | |
1337 | ## ----------------- ## | |
1338 | ## Output variables. ## | |
1339 | ## ----------------- ## | |
1340 | _ASBOX | |
1341 | echo | |
1342 | for ac_var in $ac_subst_vars | |
1343 | do | |
1344 | eval ac_val=$`echo $ac_var` | |
1345 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1346 | done | sort | |
1347 | echo | |
1348 | ||
1349 | if test -n "$ac_subst_files"; then | |
1350 | cat <<\_ASBOX | |
1351 | ## ------------- ## | |
1352 | ## Output files. ## | |
1353 | ## ------------- ## | |
1354 | _ASBOX | |
1355 | echo | |
1356 | for ac_var in $ac_subst_files | |
1357 | do | |
1358 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1359 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1360 | done | sort |
1361 | echo | |
1362 | fi | |
1363 | ||
1364 | if test -s confdefs.h; then | |
1365 | cat <<\_ASBOX | |
1366 | ## ----------- ## | |
1367 | ## confdefs.h. ## | |
1368 | ## ----------- ## | |
1369 | _ASBOX | |
1370 | echo | |
1371 | sed "/^$/d" confdefs.h | sort | |
1372 | echo | |
1373 | fi | |
1374 | test "$ac_signal" != 0 && | |
1375 | echo "$as_me: caught signal $ac_signal" | |
1376 | echo "$as_me: exit $exit_status" | |
1377 | } >&5 | |
ac1cb8d3 | 1378 | rm -f core *.core && |
a848cd7e SC |
1379 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1380 | exit $exit_status | |
1381 | ' 0 | |
1382 | for ac_signal in 1 2 13 15; do | |
1383 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1384 | done | |
1385 | ac_signal=0 | |
1386 | ||
1387 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1388 | rm -rf conftest* confdefs.h | |
1389 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1390 | echo >confdefs.h | |
1391 | ||
1392 | # Predefined preprocessor variables. | |
1393 | ||
1394 | cat >>confdefs.h <<_ACEOF | |
1395 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1396 | _ACEOF | |
1397 | ||
1398 | ||
1399 | cat >>confdefs.h <<_ACEOF | |
1400 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1401 | _ACEOF | |
1402 | ||
1403 | ||
1404 | cat >>confdefs.h <<_ACEOF | |
1405 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1406 | _ACEOF | |
1407 | ||
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | cat >>confdefs.h <<_ACEOF | |
1415 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1416 | _ACEOF | |
1417 | ||
1418 | ||
1419 | # Let the site file select an alternate cache file if it wants to. | |
1420 | # Prefer explicitly selected file to automatically selected ones. | |
1421 | if test -z "$CONFIG_SITE"; then | |
1422 | if test "x$prefix" != xNONE; then | |
1423 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1424 | else | |
1425 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1426 | fi | |
1427 | fi | |
1428 | for ac_site_file in $CONFIG_SITE; do | |
1429 | if test -r "$ac_site_file"; then | |
1430 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1431 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1432 | sed 's/^/| /' "$ac_site_file" >&5 | |
1433 | . "$ac_site_file" | |
1434 | fi | |
1435 | done | |
1436 | ||
1437 | if test -r "$cache_file"; then | |
1438 | # Some versions of bash will fail to source /dev/null (special | |
1439 | # files actually), so we avoid doing that. | |
1440 | if test -f "$cache_file"; then | |
1441 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1442 | echo "$as_me: loading cache $cache_file" >&6;} | |
1443 | case $cache_file in | |
1444 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1445 | *) . ./$cache_file;; | |
1446 | esac | |
1447 | fi | |
1448 | else | |
1449 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1450 | echo "$as_me: creating cache $cache_file" >&6;} | |
1451 | >$cache_file | |
1452 | fi | |
1453 | ||
1454 | # Check that the precious variables saved in the cache have kept the same | |
1455 | # value. | |
1456 | ac_cache_corrupted=false | |
1457 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1458 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1459 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1460 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1461 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1462 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1463 | case $ac_old_set,$ac_new_set in | |
1464 | set,) | |
1465 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1466 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1467 | ac_cache_corrupted=: ;; | |
1468 | ,set) | |
1469 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1470 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1471 | ac_cache_corrupted=: ;; | |
1472 | ,);; | |
1473 | *) | |
1474 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1475 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1476 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1477 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1478 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1479 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1480 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1481 | ac_cache_corrupted=: |
a848cd7e SC |
1482 | fi;; |
1483 | esac | |
1484 | # Pass precious variables to config.status. | |
1485 | if test "$ac_new_set" = set; then | |
1486 | case $ac_new_val in | |
1487 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1488 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1489 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1490 | esac | |
1491 | case " $ac_configure_args " in | |
1492 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1493 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1494 | esac | |
1495 | fi | |
1496 | done | |
1497 | if $ac_cache_corrupted; then | |
1498 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1499 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1500 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1501 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1502 | { (exit 1); exit 1; }; } | |
1503 | fi | |
1504 | ||
1505 | ac_ext=c | |
1506 | ac_cpp='$CPP $CPPFLAGS' | |
1507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ac_aux_dir= | |
1541 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1542 | if test -f $ac_dir/install-sh; then | |
1543 | ac_aux_dir=$ac_dir | |
1544 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1545 | break | |
1546 | elif test -f $ac_dir/install.sh; then | |
1547 | ac_aux_dir=$ac_dir | |
1548 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1549 | break | |
1550 | elif test -f $ac_dir/shtool; then | |
1551 | ac_aux_dir=$ac_dir | |
1552 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1553 | break | |
1554 | fi | |
1555 | done | |
1556 | if test -z "$ac_aux_dir"; then | |
1557 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1558 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1559 | { (exit 1); exit 1; }; } | |
1560 | fi | |
1561 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1562 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1563 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1564 | ||
1565 | # Make sure we can run config.sub. | |
1566 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1567 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1568 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1569 | { (exit 1); exit 1; }; } | |
1570 | ||
1571 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1572 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1573 | if test "${ac_cv_build+set}" = set; then | |
1574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1575 | else | |
1576 | ac_cv_build_alias=$build_alias | |
1577 | test -z "$ac_cv_build_alias" && | |
1578 | ac_cv_build_alias=`$ac_config_guess` | |
1579 | test -z "$ac_cv_build_alias" && | |
1580 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1581 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1584 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1585 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | ||
1588 | fi | |
1589 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1590 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1591 | build=$ac_cv_build | |
1592 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1593 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1594 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1595 | ||
1596 | ||
1597 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1598 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1599 | if test "${ac_cv_host+set}" = set; then | |
1600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1601 | else | |
1602 | ac_cv_host_alias=$host_alias | |
1603 | test -z "$ac_cv_host_alias" && | |
1604 | ac_cv_host_alias=$ac_cv_build_alias | |
1605 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1606 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1607 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1608 | { (exit 1); exit 1; }; } | |
1609 | ||
1610 | fi | |
1611 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1612 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1613 | host=$ac_cv_host | |
1614 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1615 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1616 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1617 | ||
1618 | ||
1619 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1620 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1621 | if test "${ac_cv_target+set}" = set; then | |
1622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1623 | else | |
1624 | ac_cv_target_alias=$target_alias | |
1625 | test "x$ac_cv_target_alias" = "x" && | |
1626 | ac_cv_target_alias=$ac_cv_host_alias | |
1627 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1628 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1629 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1630 | { (exit 1); exit 1; }; } | |
1631 | ||
1632 | fi | |
1633 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1634 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1635 | target=$ac_cv_target | |
1636 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1637 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1638 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1639 | ||
1640 | ||
1641 | # The aliases save the names the user supplied, while $host etc. | |
1642 | # will get canonicalized. | |
1643 | test -n "$target_alias" && | |
1644 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1645 | NONENONEs,x,x, && | |
1646 | program_prefix=${target_alias}- | |
1647 | ||
1648 | ||
1649 | ||
1650 | WX_MAJOR_VERSION_NUMBER=2 | |
1651 | WX_MINOR_VERSION_NUMBER=5 | |
de59c161 | 1652 | WX_RELEASE_NUMBER=2 |
a848cd7e SC |
1653 | |
1654 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1655 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1656 | ||
1657 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1658 | ||
de59c161 | 1659 | WX_CURRENT=2 |
a848cd7e SC |
1660 | WX_REVISION=0 |
1661 | WX_AGE=0 | |
1662 | ||
1663 | ||
1664 | ||
1665 | USE_UNIX=1 | |
1666 | USE_OS2=0 | |
1667 | USE_WIN32=0 | |
1668 | USE_DOS=0 | |
1669 | USE_BEOS=0 | |
1670 | USE_MAC=0 | |
1671 | ||
1672 | USE_AIX= | |
1673 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1674 | USE_GNU= USE_HPUX= | |
1675 | USE_LINUX= | |
1676 | USE_NETBSD= | |
1677 | USE_OPENBSD= | |
1678 | USE_OSF= USE_SGI= | |
1679 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1680 | USE_ULTRIX= | |
1681 | USE_UNIXWARE= | |
1682 | ||
1683 | USE_ALPHA= | |
1684 | ||
1685 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1686 | ||
1687 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1688 | ||
1689 | DEFAULT_wxUSE_COCOA=0 | |
1690 | DEFAULT_wxUSE_GTK=0 | |
1691 | DEFAULT_wxUSE_MAC=0 | |
1692 | DEFAULT_wxUSE_MGL=0 | |
1693 | DEFAULT_wxUSE_MICROWIN=0 | |
1694 | DEFAULT_wxUSE_MOTIF=0 | |
1695 | DEFAULT_wxUSE_MSW=0 | |
1696 | DEFAULT_wxUSE_PM=0 | |
1697 | DEFAULT_wxUSE_X11=0 | |
1698 | ||
1699 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1700 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1701 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1702 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1703 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1704 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1705 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1706 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1708 | ||
1709 | PROGRAM_EXT= | |
1710 | SO_SUFFIX=so | |
1711 | SAMPLES_RPATH_FLAG= | |
1712 | SAMPLES_RPATH_POSTLINK= | |
1713 | ||
1714 | case "${host}" in | |
1715 | *-hp-hpux* ) | |
1716 | USE_HPUX=1 | |
1717 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1718 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1719 | SO_SUFFIX=sl | |
1720 | cat >>confdefs.h <<\_ACEOF | |
1721 | #define __HPUX__ 1 | |
1722 | _ACEOF | |
1723 | ||
1724 | ;; | |
1725 | *-*-linux* ) | |
1726 | USE_LINUX=1 | |
1727 | cat >>confdefs.h <<\_ACEOF | |
1728 | #define __LINUX__ 1 | |
1729 | _ACEOF | |
1730 | ||
1731 | TMP=`uname -m` | |
1732 | if test "x$TMP" = "xalpha"; then | |
1733 | USE_ALPHA=1 | |
1734 | cat >>confdefs.h <<\_ACEOF | |
1735 | #define __ALPHA__ 1 | |
1736 | _ACEOF | |
1737 | ||
1738 | fi | |
1739 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1740 | ;; | |
1741 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1742 | USE_GNU=1 | |
1743 | TMP=`uname -m` | |
1744 | if test "x$TMP" = "xalpha"; then | |
1745 | USE_ALPHA=1 | |
1746 | cat >>confdefs.h <<\_ACEOF | |
1747 | #define __ALPHA__ 1 | |
1748 | _ACEOF | |
1749 | ||
1750 | fi | |
1751 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1752 | ;; | |
1753 | *-*-irix5* | *-*-irix6* ) | |
1754 | USE_SGI=1 | |
1755 | USE_SVR4=1 | |
1756 | cat >>confdefs.h <<\_ACEOF | |
1757 | #define __SGI__ 1 | |
1758 | _ACEOF | |
1759 | ||
1760 | cat >>confdefs.h <<\_ACEOF | |
1761 | #define __SVR4__ 1 | |
1762 | _ACEOF | |
1763 | ||
1764 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1765 | ;; | |
1766 | *-*-solaris2* ) | |
1767 | USE_SUN=1 | |
1768 | USE_SOLARIS=1 | |
1769 | USE_SVR4=1 | |
1770 | cat >>confdefs.h <<\_ACEOF | |
1771 | #define __SUN__ 1 | |
1772 | _ACEOF | |
1773 | ||
1774 | cat >>confdefs.h <<\_ACEOF | |
1775 | #define __SOLARIS__ 1 | |
1776 | _ACEOF | |
1777 | ||
1778 | cat >>confdefs.h <<\_ACEOF | |
1779 | #define __SVR4__ 1 | |
1780 | _ACEOF | |
1781 | ||
1782 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1783 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1784 | ;; | |
1785 | *-*-sunos4* ) | |
1786 | USE_SUN=1 | |
1787 | USE_SUNOS=1 | |
1788 | USE_BSD=1 | |
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SUN__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | cat >>confdefs.h <<\_ACEOF | |
1794 | #define __SUNOS__ 1 | |
1795 | _ACEOF | |
1796 | ||
1797 | cat >>confdefs.h <<\_ACEOF | |
1798 | #define __BSD__ 1 | |
1799 | _ACEOF | |
1800 | ||
1801 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1802 | ;; | |
1803 | *-*-freebsd*) | |
1804 | USE_BSD=1 | |
1805 | USE_FREEBSD=1 | |
1806 | cat >>confdefs.h <<\_ACEOF | |
1807 | #define __FREEBSD__ 1 | |
1808 | _ACEOF | |
1809 | ||
1810 | cat >>confdefs.h <<\_ACEOF | |
1811 | #define __BSD__ 1 | |
1812 | _ACEOF | |
1813 | ||
1814 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1815 | ;; | |
1816 | *-*-openbsd*) | |
1817 | USE_BSD=1 | |
1818 | USE_OPENBSD=1 | |
1819 | cat >>confdefs.h <<\_ACEOF | |
1820 | #define __OPENBSD__ 1 | |
1821 | _ACEOF | |
1822 | ||
1823 | cat >>confdefs.h <<\_ACEOF | |
1824 | #define __BSD__ 1 | |
1825 | _ACEOF | |
1826 | ||
1827 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1828 | ;; | |
1829 | *-*-netbsd*) | |
1830 | USE_BSD=1 | |
1831 | USE_NETBSD=1 | |
1832 | cat >>confdefs.h <<\_ACEOF | |
1833 | #define __NETBSD__ 1 | |
1834 | _ACEOF | |
1835 | ||
1836 | cat >>confdefs.h <<\_ACEOF | |
1837 | #define __BSD__ 1 | |
1838 | _ACEOF | |
1839 | ||
1840 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1841 | ;; | |
1842 | *-*-osf* ) | |
1843 | USE_ALPHA=1 | |
1844 | USE_OSF=1 | |
1845 | cat >>confdefs.h <<\_ACEOF | |
1846 | #define __ALPHA__ 1 | |
1847 | _ACEOF | |
1848 | ||
1849 | cat >>confdefs.h <<\_ACEOF | |
1850 | #define __OSF__ 1 | |
1851 | _ACEOF | |
1852 | ||
1853 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1854 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1855 | ;; | |
1856 | *-*-dgux5* ) | |
1857 | USE_ALPHA=1 | |
1858 | USE_SVR4=1 | |
1859 | cat >>confdefs.h <<\_ACEOF | |
1860 | #define __ALPHA__ 1 | |
1861 | _ACEOF | |
1862 | ||
1863 | cat >>confdefs.h <<\_ACEOF | |
1864 | #define __SVR4__ 1 | |
1865 | _ACEOF | |
1866 | ||
1867 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1868 | ;; | |
1869 | *-*-sysv5* ) | |
1870 | USE_SYSV=1 | |
1871 | USE_SVR4=1 | |
1872 | cat >>confdefs.h <<\_ACEOF | |
1873 | #define __SYSV__ 1 | |
1874 | _ACEOF | |
1875 | ||
1876 | cat >>confdefs.h <<\_ACEOF | |
1877 | #define __SVR4__ 1 | |
1878 | _ACEOF | |
1879 | ||
1880 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1881 | ;; | |
1882 | *-*-aix* ) | |
1883 | USE_AIX=1 | |
1884 | USE_SYSV=1 | |
1885 | USE_SVR4=1 | |
1886 | SO_SUFFIX=a | |
1887 | cat >>confdefs.h <<\_ACEOF | |
1888 | #define __AIX__ 1 | |
1889 | _ACEOF | |
1890 | ||
1891 | cat >>confdefs.h <<\_ACEOF | |
1892 | #define __SYSV__ 1 | |
1893 | _ACEOF | |
1894 | ||
1895 | cat >>confdefs.h <<\_ACEOF | |
1896 | #define __SVR4__ 1 | |
1897 | _ACEOF | |
1898 | ||
1899 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1900 | ;; | |
1901 | ||
1902 | *-*-*UnixWare*) | |
1903 | USE_SYSV=1 | |
1904 | USE_SVR4=1 | |
1905 | USE_UNIXWARE=1 | |
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __UNIXWARE__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | ;; | |
1911 | ||
1912 | *-*-cygwin* | *-*-mingw32* ) | |
1913 | SO_SUFFIX=dll | |
1914 | PROGRAM_EXT=".exe" | |
1915 | RESCOMP=windres | |
1916 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1917 | ;; | |
1918 | ||
1919 | *-pc-msdosdjgpp ) | |
1920 | USE_UNIX=0 | |
1921 | USE_DOS=1 | |
1922 | cat >>confdefs.h <<\_ACEOF | |
1923 | #define __DOS__ 1 | |
1924 | _ACEOF | |
1925 | ||
1926 | PROGRAM_EXT=".exe" | |
1927 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1928 | LIBS="$LIBS -lstdc++" | |
1929 | ;; | |
1930 | ||
1931 | *-pc-os2_emx | *-pc-os2-emx ) | |
1932 | cat >>confdefs.h <<\_ACEOF | |
1933 | #define __EMX__ 1 | |
1934 | _ACEOF | |
1935 | ||
1936 | USE_OS2=1 | |
1937 | cat >>confdefs.h <<\_ACEOF | |
1938 | #define __OS2__ 1 | |
1939 | _ACEOF | |
1940 | ||
1941 | PROGRAM_EXT=".exe" | |
1942 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1943 | CXX=gcc | |
1944 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1945 | ac_executable_extensions=".exe" | |
1946 | export ac_executable_extensions | |
1947 | ac_save_IFS="$IFS" | |
1948 | IFS='\\' | |
1949 | ac_TEMP_PATH= | |
1950 | for ac_dir in $PATH; do | |
1951 | IFS=$ac_save_IFS | |
1952 | if test -z "$ac_TEMP_PATH"; then | |
1953 | ac_TEMP_PATH="$ac_dir" | |
1954 | else | |
1955 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1956 | fi | |
1957 | done | |
1958 | export PATH="$ac_TEMP_PATH" | |
1959 | unset ac_TEMP_PATH | |
1960 | ;; | |
1961 | ||
1962 | powerpc-*-darwin* ) | |
1963 | USE_BSD=1 | |
1964 | USE_DARWIN=1 | |
1965 | SO_SUFFIX=dylib | |
1966 | cat >>confdefs.h <<\_ACEOF | |
1967 | #define __BSD__ 1 | |
1968 | _ACEOF | |
1969 | ||
1970 | cat >>confdefs.h <<\_ACEOF | |
1971 | #define __DARWIN__ 1 | |
1972 | _ACEOF | |
1973 | ||
1974 | cat >>confdefs.h <<\_ACEOF | |
1975 | #define __POWERPC__ 1 | |
1976 | _ACEOF | |
1977 | ||
1978 | cat >>confdefs.h <<\_ACEOF | |
1979 | #define TARGET_CARBON 1 | |
1980 | _ACEOF | |
1981 | ||
1982 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1983 | ;; | |
1984 | ||
1985 | *-*-beos* ) | |
1986 | USE_BEOS=1 | |
1987 | cat >>confdefs.h <<\_ACEOF | |
1988 | #define __BEOS__ 1 | |
1989 | _ACEOF | |
1990 | ||
1991 | ;; | |
1992 | ||
1993 | *) | |
1994 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
1995 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1996 | { (exit 1); exit 1; }; } | |
1997 | esac | |
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | wx_arg_cache_file="configarg.cache" | |
2003 | echo "loading argument cache $wx_arg_cache_file" | |
2004 | rm -f ${wx_arg_cache_file}.tmp | |
2005 | touch ${wx_arg_cache_file}.tmp | |
2006 | touch ${wx_arg_cache_file} | |
2007 | ||
2008 | ||
2009 | DEBUG_CONFIGURE=0 | |
2010 | if test $DEBUG_CONFIGURE = 1; then | |
2011 | DEFAULT_wxUSE_UNIVERSAL=no | |
2012 | DEFAULT_wxUSE_STL=no | |
2013 | ||
2014 | DEFAULT_wxUSE_NANOX=no | |
2015 | ||
2016 | DEFAULT_wxUSE_THREADS=yes | |
2017 | ||
2018 | DEFAULT_wxUSE_SHARED=yes | |
2019 | DEFAULT_wxUSE_OPTIMISE=no | |
2020 | DEFAULT_wxUSE_PROFILE=no | |
2021 | DEFAULT_wxUSE_NO_DEPS=no | |
2022 | DEFAULT_wxUSE_NO_RTTI=no | |
2023 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2024 | DEFAULT_wxUSE_PERMISSIVE=no | |
2025 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2026 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2027 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2028 | DEFAULT_wxUSE_MEM_TRACING=no | |
2029 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2030 | DEFAULT_wxUSE_DMALLOC=no | |
2031 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2032 | ||
2033 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2034 | DEFAULT_wxUSE_LOG=yes | |
2035 | DEFAULT_wxUSE_LOGWINDOW=no | |
2036 | DEFAULT_wxUSE_LOGGUI=no | |
2037 | DEFAULT_wxUSE_LOGDIALOG=no | |
2038 | ||
2039 | DEFAULT_wxUSE_GUI=yes | |
2040 | DEFAULT_wxUSE_CONTROLS=no | |
2041 | ||
2042 | DEFAULT_wxUSE_REGEX=no | |
2043 | DEFAULT_wxUSE_XML=no | |
2044 | DEFAULT_wxUSE_EXPAT=no | |
2045 | DEFAULT_wxUSE_ZLIB=no | |
2046 | DEFAULT_wxUSE_LIBPNG=no | |
2047 | DEFAULT_wxUSE_LIBJPEG=no | |
2048 | DEFAULT_wxUSE_LIBTIFF=no | |
2049 | DEFAULT_wxUSE_LIBXPM=no | |
2050 | DEFAULT_wxUSE_LIBMSPACK=no | |
2051 | DEFAULT_wxUSE_LIBSDL=no | |
2052 | DEFAULT_wxUSE_ODBC=no | |
2053 | DEFAULT_wxUSE_OPENGL=no | |
2054 | ||
2055 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2056 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2057 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2058 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2059 | DEFAULT_wxUSE_DATETIME=no | |
2060 | DEFAULT_wxUSE_TIMER=no | |
2061 | DEFAULT_wxUSE_STOPWATCH=no | |
2062 | DEFAULT_wxUSE_FILE=no | |
2063 | DEFAULT_wxUSE_FFILE=no | |
2064 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2065 | DEFAULT_wxUSE_TEXTFILE=no | |
2066 | DEFAULT_wxUSE_SOUND=no | |
2067 | DEFAULT_wxUSE_INTL=no | |
2068 | DEFAULT_wxUSE_CONFIG=no | |
2069 | DEFAULT_wxUSE_FONTMAP=no | |
2070 | DEFAULT_wxUSE_STREAMS=no | |
2071 | DEFAULT_wxUSE_SOCKETS=no | |
2072 | DEFAULT_wxUSE_OLE=no | |
2073 | DEFAULT_wxUSE_DATAOBJ=no | |
2074 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2075 | DEFAULT_wxUSE_JOYSTICK=no | |
2076 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2077 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2078 | DEFAULT_wxUSE_LONGLONG=no | |
2079 | DEFAULT_wxUSE_GEOMETRY=no | |
2080 | ||
2081 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2082 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2083 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2084 | ||
2085 | DEFAULT_wxUSE_CLIPBOARD=no | |
2086 | DEFAULT_wxUSE_TOOLTIPS=no | |
2087 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2088 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2089 | DEFAULT_wxUSE_SPLINES=no | |
2090 | ||
8a7b1113 | 2091 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2092 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2093 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2094 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2095 | ||
2096 | DEFAULT_wxUSE_RESOURCES=no | |
2097 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2098 | DEFAULT_wxUSE_IPC=no | |
2099 | DEFAULT_wxUSE_HELP=no | |
2100 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2101 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2102 | DEFAULT_wxUSE_TREELAYOUT=no | |
2103 | DEFAULT_wxUSE_METAFILE=no | |
2104 | DEFAULT_wxUSE_MIMETYPE=no | |
2105 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2106 | DEFAULT_wxUSE_PROTOCOL=no | |
2107 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2108 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2109 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2110 | DEFAULT_wxUSE_URL=no | |
2111 | ||
2112 | DEFAULT_wxUSE_COMMONDLGS=no | |
2113 | DEFAULT_wxUSE_CHOICEDLG=no | |
2114 | DEFAULT_wxUSE_COLOURDLG=no | |
2115 | DEFAULT_wxUSE_DIRDLG=no | |
2116 | DEFAULT_wxUSE_FILEDLG=no | |
2117 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2118 | DEFAULT_wxUSE_FONTDLG=no | |
2119 | DEFAULT_wxUSE_MSGDLG=no | |
2120 | DEFAULT_wxUSE_NUMBERDLG=no | |
2121 | DEFAULT_wxUSE_TEXTDLG=no | |
2122 | DEFAULT_wxUSE_SPLASH=no | |
2123 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2124 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2125 | DEFAULT_wxUSE_WIZARDDLG=no | |
2126 | ||
2127 | DEFAULT_wxUSE_MENUS=no | |
2128 | DEFAULT_wxUSE_MINIFRAME=no | |
2129 | DEFAULT_wxUSE_HTML=no | |
646b6ec1 | 2130 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2131 | DEFAULT_wxUSE_FILESYSTEM=no |
2132 | DEFAULT_wxUSE_FS_INET=no | |
2133 | DEFAULT_wxUSE_FS_ZIP=no | |
2134 | DEFAULT_wxUSE_BUSYINFO=no | |
2135 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2136 | DEFAULT_wxUSE_VALIDATORS=no |
2137 | ||
2138 | DEFAULT_wxUSE_ACCEL=no | |
2139 | DEFAULT_wxUSE_BUTTON=no | |
2140 | DEFAULT_wxUSE_BMPBUTTON=no | |
2141 | DEFAULT_wxUSE_CALCTRL=no | |
2142 | DEFAULT_wxUSE_CARET=no | |
2143 | DEFAULT_wxUSE_CHECKBOX=no | |
2144 | DEFAULT_wxUSE_CHECKLST=no | |
2145 | DEFAULT_wxUSE_CHOICE=no | |
2146 | DEFAULT_wxUSE_COMBOBOX=no | |
2147 | DEFAULT_wxUSE_DISPLAY=no | |
2148 | DEFAULT_wxUSE_GAUGE=no | |
2149 | DEFAULT_wxUSE_GRID=no | |
2150 | DEFAULT_wxUSE_IMAGLIST=no | |
2151 | DEFAULT_wxUSE_LISTBOOK=no | |
2152 | DEFAULT_wxUSE_LISTBOX=no | |
2153 | DEFAULT_wxUSE_LISTCTRL=no | |
2154 | DEFAULT_wxUSE_NOTEBOOK=no | |
2155 | DEFAULT_wxUSE_RADIOBOX=no | |
2156 | DEFAULT_wxUSE_RADIOBTN=no | |
2157 | DEFAULT_wxUSE_SASH=no | |
2158 | DEFAULT_wxUSE_SCROLLBAR=no | |
2159 | DEFAULT_wxUSE_SLIDER=no | |
2160 | DEFAULT_wxUSE_SPINBTN=no | |
2161 | DEFAULT_wxUSE_SPINCTRL=no | |
2162 | DEFAULT_wxUSE_SPLITTER=no | |
2163 | DEFAULT_wxUSE_STATBMP=no | |
2164 | DEFAULT_wxUSE_STATBOX=no | |
2165 | DEFAULT_wxUSE_STATLINE=no | |
2166 | DEFAULT_wxUSE_STATTEXT=no | |
2167 | DEFAULT_wxUSE_STATUSBAR=yes | |
2168 | DEFAULT_wxUSE_TABDIALOG=no | |
2169 | DEFAULT_wxUSE_TEXTCTRL=no | |
2170 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2171 | DEFAULT_wxUSE_TOOLBAR=no | |
2172 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2173 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2174 | DEFAULT_wxUSE_TREECTRL=no | |
2175 | DEFAULT_wxUSE_POPUPWIN=no | |
2176 | DEFAULT_wxUSE_TIPWINDOW=no | |
2177 | ||
2178 | DEFAULT_wxUSE_UNICODE=no | |
2179 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2180 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2181 | ||
2182 | DEFAULT_wxUSE_PALETTE=no | |
2183 | DEFAULT_wxUSE_IMAGE=no | |
2184 | DEFAULT_wxUSE_GIF=no | |
2185 | DEFAULT_wxUSE_PCX=no | |
2186 | DEFAULT_wxUSE_PNM=no | |
2187 | DEFAULT_wxUSE_IFF=no | |
2188 | DEFAULT_wxUSE_XPM=no | |
2189 | DEFAULT_wxUSE_ICO_CUR=no | |
2190 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2191 | ||
2192 | DEFAULT_wxUSE_MONOLITHIC=no | |
2193 | DEFAULT_wxUSE_PLUGINS=no | |
2194 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2195 | else | |
2196 | DEFAULT_wxUSE_UNIVERSAL=no | |
2197 | DEFAULT_wxUSE_STL=no | |
2198 | ||
2199 | DEFAULT_wxUSE_NANOX=no | |
2200 | ||
2201 | DEFAULT_wxUSE_THREADS=yes | |
2202 | ||
2203 | DEFAULT_wxUSE_SHARED=yes | |
2204 | DEFAULT_wxUSE_OPTIMISE=yes | |
2205 | DEFAULT_wxUSE_PROFILE=no | |
2206 | DEFAULT_wxUSE_NO_DEPS=no | |
2207 | DEFAULT_wxUSE_NO_RTTI=no | |
2208 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2209 | DEFAULT_wxUSE_PERMISSIVE=no | |
2210 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2211 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2212 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2213 | DEFAULT_wxUSE_MEM_TRACING=no | |
2214 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2215 | DEFAULT_wxUSE_DMALLOC=no | |
2216 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2217 | ||
2218 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2219 | DEFAULT_wxUSE_LOG=yes | |
2220 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2221 | DEFAULT_wxUSE_LOGGUI=yes | |
2222 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2223 | ||
2224 | DEFAULT_wxUSE_GUI=yes | |
2225 | ||
2226 | DEFAULT_wxUSE_REGEX=yes | |
2227 | DEFAULT_wxUSE_XML=yes | |
2228 | DEFAULT_wxUSE_EXPAT=yes | |
2229 | DEFAULT_wxUSE_ZLIB=yes | |
2230 | DEFAULT_wxUSE_LIBPNG=yes | |
2231 | DEFAULT_wxUSE_LIBJPEG=yes | |
2232 | DEFAULT_wxUSE_LIBTIFF=yes | |
2233 | DEFAULT_wxUSE_LIBXPM=yes | |
2234 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2235 | DEFAULT_wxUSE_LIBSDL=no | |
2236 | DEFAULT_wxUSE_ODBC=no | |
2237 | DEFAULT_wxUSE_OPENGL=no | |
2238 | ||
2239 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2240 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2241 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2242 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2243 | DEFAULT_wxUSE_DATETIME=yes | |
2244 | DEFAULT_wxUSE_TIMER=yes | |
2245 | DEFAULT_wxUSE_STOPWATCH=yes | |
2246 | DEFAULT_wxUSE_FILE=yes | |
2247 | DEFAULT_wxUSE_FFILE=yes | |
2248 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2249 | DEFAULT_wxUSE_TEXTFILE=yes | |
2250 | DEFAULT_wxUSE_SOUND=yes | |
2251 | DEFAULT_wxUSE_INTL=yes | |
2252 | DEFAULT_wxUSE_CONFIG=yes | |
2253 | DEFAULT_wxUSE_FONTMAP=yes | |
2254 | DEFAULT_wxUSE_STREAMS=yes | |
2255 | DEFAULT_wxUSE_SOCKETS=yes | |
2256 | DEFAULT_wxUSE_OLE=yes | |
2257 | DEFAULT_wxUSE_DATAOBJ=yes | |
2258 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2259 | DEFAULT_wxUSE_JOYSTICK=yes | |
2260 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2261 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2262 | DEFAULT_wxUSE_LONGLONG=yes | |
2263 | DEFAULT_wxUSE_GEOMETRY=yes | |
2264 | ||
2265 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2266 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2267 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2268 | ||
2269 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2270 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2271 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2272 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2273 | DEFAULT_wxUSE_SPLINES=yes | |
2274 | ||
8a7b1113 | 2275 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2276 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2277 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2278 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2279 | ||
2280 | DEFAULT_wxUSE_RESOURCES=no | |
2281 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2282 | DEFAULT_wxUSE_IPC=yes | |
2283 | DEFAULT_wxUSE_HELP=yes | |
2284 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2285 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2286 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2287 | DEFAULT_wxUSE_METAFILE=yes | |
2288 | DEFAULT_wxUSE_MIMETYPE=yes | |
2289 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2290 | DEFAULT_wxUSE_PROTOCOL=yes | |
2291 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2292 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2293 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2294 | DEFAULT_wxUSE_URL=yes | |
2295 | ||
2296 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2297 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2298 | DEFAULT_wxUSE_COLOURDLG=yes | |
2299 | DEFAULT_wxUSE_DIRDLG=yes | |
2300 | DEFAULT_wxUSE_FILEDLG=yes | |
2301 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2302 | DEFAULT_wxUSE_FONTDLG=yes | |
2303 | DEFAULT_wxUSE_MSGDLG=yes | |
2304 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2305 | DEFAULT_wxUSE_TEXTDLG=yes | |
2306 | DEFAULT_wxUSE_SPLASH=yes | |
2307 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2308 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2309 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2310 | ||
2311 | DEFAULT_wxUSE_MENUS=yes | |
2312 | DEFAULT_wxUSE_MINIFRAME=yes | |
2313 | DEFAULT_wxUSE_HTML=yes | |
646b6ec1 | 2314 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2315 | DEFAULT_wxUSE_FILESYSTEM=yes |
2316 | DEFAULT_wxUSE_FS_INET=yes | |
2317 | DEFAULT_wxUSE_FS_ZIP=yes | |
2318 | DEFAULT_wxUSE_BUSYINFO=yes | |
2319 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2320 | DEFAULT_wxUSE_VALIDATORS=yes |
2321 | ||
2322 | DEFAULT_wxUSE_ACCEL=yes | |
2323 | DEFAULT_wxUSE_BUTTON=yes | |
2324 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2325 | DEFAULT_wxUSE_CALCTRL=yes | |
2326 | DEFAULT_wxUSE_CARET=yes | |
2327 | DEFAULT_wxUSE_CHECKBOX=yes | |
2328 | DEFAULT_wxUSE_CHECKLST=yes | |
2329 | DEFAULT_wxUSE_CHOICE=yes | |
2330 | DEFAULT_wxUSE_COMBOBOX=yes | |
2331 | DEFAULT_wxUSE_DISPLAY=yes | |
2332 | DEFAULT_wxUSE_GAUGE=yes | |
2333 | DEFAULT_wxUSE_GRID=yes | |
2334 | DEFAULT_wxUSE_IMAGLIST=yes | |
2335 | DEFAULT_wxUSE_LISTBOOK=yes | |
2336 | DEFAULT_wxUSE_LISTBOX=yes | |
2337 | DEFAULT_wxUSE_LISTCTRL=yes | |
2338 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2339 | DEFAULT_wxUSE_RADIOBOX=yes | |
2340 | DEFAULT_wxUSE_RADIOBTN=yes | |
2341 | DEFAULT_wxUSE_SASH=yes | |
2342 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2343 | DEFAULT_wxUSE_SLIDER=yes | |
2344 | DEFAULT_wxUSE_SPINBTN=yes | |
2345 | DEFAULT_wxUSE_SPINCTRL=yes | |
2346 | DEFAULT_wxUSE_SPLITTER=yes | |
2347 | DEFAULT_wxUSE_STATBMP=yes | |
2348 | DEFAULT_wxUSE_STATBOX=yes | |
2349 | DEFAULT_wxUSE_STATLINE=yes | |
2350 | DEFAULT_wxUSE_STATTEXT=yes | |
2351 | DEFAULT_wxUSE_STATUSBAR=yes | |
2352 | DEFAULT_wxUSE_TABDIALOG=no | |
2353 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2354 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2355 | DEFAULT_wxUSE_TOOLBAR=yes | |
2356 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2357 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2358 | DEFAULT_wxUSE_TREECTRL=yes | |
2359 | DEFAULT_wxUSE_POPUPWIN=yes | |
2360 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2361 | ||
2362 | DEFAULT_wxUSE_UNICODE=no | |
2363 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2364 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2365 | ||
2366 | DEFAULT_wxUSE_PALETTE=yes | |
2367 | DEFAULT_wxUSE_IMAGE=yes | |
2368 | DEFAULT_wxUSE_GIF=yes | |
2369 | DEFAULT_wxUSE_PCX=yes | |
2370 | DEFAULT_wxUSE_IFF=no | |
2371 | DEFAULT_wxUSE_PNM=yes | |
2372 | DEFAULT_wxUSE_XPM=yes | |
2373 | DEFAULT_wxUSE_ICO_CUR=yes | |
2374 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2375 | ||
2376 | DEFAULT_wxUSE_MONOLITHIC=no | |
2377 | DEFAULT_wxUSE_PLUGINS=no | |
2378 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2379 | fi | |
2380 | ||
2381 | ||
2382 | ||
2383 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2384 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2385 | if test "x$LINE" != "x" ; then | |
2386 | has_toolkit_in_cache=1 | |
2387 | eval "DEFAULT_$LINE" | |
2388 | eval "CACHE_$toolkit=1" | |
2389 | fi | |
2390 | done | |
2391 | ||
2392 | ||
2393 | ||
2394 | enablestring= | |
2395 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2396 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2397 | no_cache=0 | |
2398 | # Check whether --enable-gui or --disable-gui was given. | |
2399 | if test "${enable_gui+set}" = set; then | |
2400 | enableval="$enable_gui" | |
2401 | ||
2402 | if test "$enableval" = yes; then | |
2403 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2404 | else | |
2405 | ac_cv_use_gui='wxUSE_GUI=no' | |
2406 | fi | |
2407 | ||
2408 | else | |
2409 | ||
2410 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2411 | if test "x$LINE" != x ; then | |
2412 | eval "DEFAULT_$LINE" | |
2413 | else | |
2414 | no_cache=1 | |
2415 | fi | |
2416 | ||
2417 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2418 | ||
2419 | fi; | |
2420 | ||
2421 | eval "$ac_cv_use_gui" | |
2422 | if test "$no_cache" != 1; then | |
2423 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2424 | fi | |
2425 | ||
2426 | if test "$wxUSE_GUI" = yes; then | |
2427 | echo "$as_me:$LINENO: result: yes" >&5 | |
2428 | echo "${ECHO_T}yes" >&6 | |
2429 | else | |
2430 | echo "$as_me:$LINENO: result: no" >&5 | |
2431 | echo "${ECHO_T}no" >&6 | |
2432 | fi | |
2433 | ||
2434 | ||
2435 | enablestring= | |
2436 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2437 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2438 | no_cache=0 | |
2439 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2440 | if test "${enable_monolithic+set}" = set; then | |
2441 | enableval="$enable_monolithic" | |
2442 | ||
2443 | if test "$enableval" = yes; then | |
2444 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2445 | else | |
2446 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2447 | fi | |
2448 | ||
2449 | else | |
2450 | ||
2451 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2452 | if test "x$LINE" != x ; then | |
2453 | eval "DEFAULT_$LINE" | |
2454 | else | |
2455 | no_cache=1 | |
2456 | fi | |
2457 | ||
2458 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2459 | ||
2460 | fi; | |
2461 | ||
2462 | eval "$ac_cv_use_monolithic" | |
2463 | if test "$no_cache" != 1; then | |
2464 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2465 | fi | |
2466 | ||
2467 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2468 | echo "$as_me:$LINENO: result: yes" >&5 | |
2469 | echo "${ECHO_T}yes" >&6 | |
2470 | else | |
2471 | echo "$as_me:$LINENO: result: no" >&5 | |
2472 | echo "${ECHO_T}no" >&6 | |
2473 | fi | |
2474 | ||
2475 | ||
2476 | enablestring= | |
2477 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2478 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2479 | no_cache=0 | |
2480 | # Check whether --enable-plugins or --disable-plugins was given. | |
2481 | if test "${enable_plugins+set}" = set; then | |
2482 | enableval="$enable_plugins" | |
2483 | ||
2484 | if test "$enableval" = yes; then | |
2485 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2486 | else | |
2487 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2488 | fi | |
2489 | ||
2490 | else | |
2491 | ||
2492 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2493 | if test "x$LINE" != x ; then | |
2494 | eval "DEFAULT_$LINE" | |
2495 | else | |
2496 | no_cache=1 | |
2497 | fi | |
2498 | ||
2499 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2500 | ||
2501 | fi; | |
2502 | ||
2503 | eval "$ac_cv_use_plugins" | |
2504 | if test "$no_cache" != 1; then | |
2505 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2506 | fi | |
2507 | ||
2508 | if test "$wxUSE_PLUGINS" = yes; then | |
2509 | echo "$as_me:$LINENO: result: yes" >&5 | |
2510 | echo "${ECHO_T}yes" >&6 | |
2511 | else | |
2512 | echo "$as_me:$LINENO: result: no" >&5 | |
2513 | echo "${ECHO_T}no" >&6 | |
2514 | fi | |
2515 | ||
2516 | ||
2517 | if test "$wxUSE_GUI" = "yes"; then | |
2518 | ||
2519 | ||
2520 | enablestring= | |
2521 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2522 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2523 | no_cache=0 | |
2524 | # Check whether --enable-universal or --disable-universal was given. | |
2525 | if test "${enable_universal+set}" = set; then | |
2526 | enableval="$enable_universal" | |
2527 | ||
2528 | if test "$enableval" = yes; then | |
2529 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2530 | else | |
2531 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2532 | fi | |
2533 | ||
2534 | else | |
2535 | ||
2536 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2537 | if test "x$LINE" != x ; then | |
2538 | eval "DEFAULT_$LINE" | |
2539 | else | |
2540 | no_cache=1 | |
2541 | fi | |
2542 | ||
2543 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2544 | ||
2545 | fi; | |
2546 | ||
2547 | eval "$ac_cv_use_universal" | |
2548 | if test "$no_cache" != 1; then | |
2549 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2550 | fi | |
2551 | ||
2552 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2553 | echo "$as_me:$LINENO: result: yes" >&5 | |
2554 | echo "${ECHO_T}yes" >&6 | |
2555 | else | |
2556 | echo "$as_me:$LINENO: result: no" >&5 | |
2557 | echo "${ECHO_T}no" >&6 | |
2558 | fi | |
2559 | ||
2560 | ||
2561 | # Check whether --with-gtk or --without-gtk was given. | |
2562 | if test "${with_gtk+set}" = set; then | |
2563 | withval="$with_gtk" | |
2564 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2565 | fi; | |
2566 | ||
2567 | # Check whether --with-motif or --without-motif was given. | |
2568 | if test "${with_motif+set}" = set; then | |
2569 | withval="$with_motif" | |
2570 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2571 | fi; | |
2572 | ||
2573 | # Check whether --with-mac or --without-mac was given. | |
2574 | if test "${with_mac+set}" = set; then | |
2575 | withval="$with_mac" | |
2576 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
2577 | fi; | |
2578 | ||
2579 | # Check whether --with-cocoa or --without-cocoa was given. | |
2580 | if test "${with_cocoa+set}" = set; then | |
2581 | withval="$with_cocoa" | |
2582 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
2583 | fi; | |
2584 | ||
2585 | # Check whether --with-wine or --without-wine was given. | |
2586 | if test "${with_wine+set}" = set; then | |
2587 | withval="$with_wine" | |
2588 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2589 | fi; | |
2590 | ||
2591 | # Check whether --with-msw or --without-msw was given. | |
2592 | if test "${with_msw+set}" = set; then | |
2593 | withval="$with_msw" | |
2594 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2595 | fi; | |
2596 | ||
2597 | # Check whether --with-pm or --without-pm was given. | |
2598 | if test "${with_pm+set}" = set; then | |
2599 | withval="$with_pm" | |
2600 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2601 | fi; | |
2602 | ||
2603 | # Check whether --with-mgl or --without-mgl was given. | |
2604 | if test "${with_mgl+set}" = set; then | |
2605 | withval="$with_mgl" | |
2606 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2607 | fi; | |
2608 | ||
2609 | # Check whether --with-microwin or --without-microwin was given. | |
2610 | if test "${with_microwin+set}" = set; then | |
2611 | withval="$with_microwin" | |
2612 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2613 | fi; | |
2614 | ||
2615 | # Check whether --with-x11 or --without-x11 was given. | |
2616 | if test "${with_x11+set}" = set; then | |
2617 | withval="$with_x11" | |
2618 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2619 | fi; | |
2620 | ||
2621 | enablestring= | |
2622 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2623 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2624 | no_cache=0 | |
2625 | # Check whether --enable-nanox or --disable-nanox was given. | |
2626 | if test "${enable_nanox+set}" = set; then | |
2627 | enableval="$enable_nanox" | |
2628 | ||
2629 | if test "$enableval" = yes; then | |
2630 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2631 | else | |
2632 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2633 | fi | |
2634 | ||
2635 | else | |
2636 | ||
2637 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2638 | if test "x$LINE" != x ; then | |
2639 | eval "DEFAULT_$LINE" | |
2640 | else | |
2641 | no_cache=1 | |
2642 | fi | |
2643 | ||
2644 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2645 | ||
2646 | fi; | |
2647 | ||
2648 | eval "$ac_cv_use_nanox" | |
2649 | if test "$no_cache" != 1; then | |
2650 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2651 | fi | |
2652 | ||
2653 | if test "$wxUSE_NANOX" = yes; then | |
2654 | echo "$as_me:$LINENO: result: yes" >&5 | |
2655 | echo "${ECHO_T}yes" >&6 | |
2656 | else | |
2657 | echo "$as_me:$LINENO: result: no" >&5 | |
2658 | echo "${ECHO_T}no" >&6 | |
2659 | fi | |
2660 | ||
2661 | ||
2662 | ||
2663 | enablestring= | |
2664 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2665 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2666 | no_cache=0 | |
2667 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2668 | if test "${enable_gtk2+set}" = set; then | |
2669 | enableval="$enable_gtk2" | |
2670 | ||
2671 | if test "$enableval" = yes; then | |
2672 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2673 | else | |
2674 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2675 | fi | |
2676 | ||
2677 | else | |
2678 | ||
2679 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2680 | if test "x$LINE" != x ; then | |
2681 | eval "DEFAULT_$LINE" | |
2682 | else | |
2683 | no_cache=1 | |
2684 | fi | |
2685 | ||
2686 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2687 | ||
2688 | fi; | |
2689 | ||
2690 | eval "$ac_cv_use_gtk2" | |
2691 | if test "$no_cache" != 1; then | |
2692 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2693 | fi | |
2694 | ||
2695 | if test "$wxUSE_GTK2" = yes; then | |
2696 | echo "$as_me:$LINENO: result: yes" >&5 | |
2697 | echo "${ECHO_T}yes" >&6 | |
2698 | else | |
2699 | echo "$as_me:$LINENO: result: no" >&5 | |
2700 | echo "${ECHO_T}no" >&6 | |
2701 | fi | |
2702 | ||
2703 | ||
2704 | enablestring= | |
2705 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2706 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2707 | no_cache=0 | |
2708 | # Check whether --enable-gpe or --disable-gpe was given. | |
2709 | if test "${enable_gpe+set}" = set; then | |
2710 | enableval="$enable_gpe" | |
2711 | ||
2712 | if test "$enableval" = yes; then | |
2713 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2714 | else | |
2715 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2716 | fi | |
2717 | ||
2718 | else | |
2719 | ||
2720 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2721 | if test "x$LINE" != x ; then | |
2722 | eval "DEFAULT_$LINE" | |
2723 | else | |
2724 | no_cache=1 | |
2725 | fi | |
2726 | ||
2727 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2728 | ||
2729 | fi; | |
2730 | ||
2731 | eval "$ac_cv_use_gpe" | |
2732 | if test "$no_cache" != 1; then | |
2733 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2734 | fi | |
2735 | ||
2736 | if test "$wxUSE_GPE" = yes; then | |
2737 | echo "$as_me:$LINENO: result: yes" >&5 | |
2738 | echo "${ECHO_T}yes" >&6 | |
2739 | else | |
2740 | echo "$as_me:$LINENO: result: no" >&5 | |
2741 | echo "${ECHO_T}no" >&6 | |
2742 | fi | |
2743 | ||
2744 | ||
2745 | ||
2746 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2747 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2748 | no_cache=0 | |
2749 | ||
2750 | # Check whether --with-libpng or --without-libpng was given. | |
2751 | if test "${with_libpng+set}" = set; then | |
2752 | withval="$with_libpng" | |
2753 | ||
2754 | if test "$withval" = yes; then | |
2755 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2756 | elif test "$withval" = no; then | |
2757 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2758 | elif test "$withval" = sys; then | |
2759 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2760 | elif test "$withval" = builtin; then | |
2761 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2762 | else | |
2763 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2764 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2765 | { (exit 1); exit 1; }; } | |
2766 | fi | |
2767 | ||
2768 | else | |
2769 | ||
2770 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2771 | if test "x$LINE" != x ; then | |
2772 | eval "DEFAULT_$LINE" | |
2773 | else | |
2774 | no_cache=1 | |
2775 | fi | |
2776 | ||
2777 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2778 | ||
2779 | fi; | |
2780 | ||
2781 | eval "$ac_cv_use_libpng" | |
2782 | if test "$no_cache" != 1; then | |
2783 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2784 | fi | |
2785 | ||
2786 | if test "$wxUSE_LIBPNG" = yes; then | |
2787 | echo "$as_me:$LINENO: result: yes" >&5 | |
2788 | echo "${ECHO_T}yes" >&6 | |
2789 | elif test "$wxUSE_LIBPNG" = no; then | |
2790 | echo "$as_me:$LINENO: result: no" >&5 | |
2791 | echo "${ECHO_T}no" >&6 | |
2792 | elif test "$wxUSE_LIBPNG" = sys; then | |
2793 | echo "$as_me:$LINENO: result: system version" >&5 | |
2794 | echo "${ECHO_T}system version" >&6 | |
2795 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2796 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2797 | echo "${ECHO_T}builtin version" >&6 | |
2798 | else | |
2799 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2800 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2801 | { (exit 1); exit 1; }; } | |
2802 | fi | |
2803 | ||
2804 | ||
2805 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2806 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2807 | no_cache=0 | |
2808 | ||
2809 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2810 | if test "${with_libjpeg+set}" = set; then | |
2811 | withval="$with_libjpeg" | |
2812 | ||
2813 | if test "$withval" = yes; then | |
2814 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2815 | elif test "$withval" = no; then | |
2816 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2817 | elif test "$withval" = sys; then | |
2818 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2819 | elif test "$withval" = builtin; then | |
2820 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2821 | else | |
2822 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2823 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2824 | { (exit 1); exit 1; }; } | |
2825 | fi | |
2826 | ||
2827 | else | |
2828 | ||
2829 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2830 | if test "x$LINE" != x ; then | |
2831 | eval "DEFAULT_$LINE" | |
2832 | else | |
2833 | no_cache=1 | |
2834 | fi | |
2835 | ||
2836 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2837 | ||
2838 | fi; | |
2839 | ||
2840 | eval "$ac_cv_use_libjpeg" | |
2841 | if test "$no_cache" != 1; then | |
2842 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2843 | fi | |
2844 | ||
2845 | if test "$wxUSE_LIBJPEG" = yes; then | |
2846 | echo "$as_me:$LINENO: result: yes" >&5 | |
2847 | echo "${ECHO_T}yes" >&6 | |
2848 | elif test "$wxUSE_LIBJPEG" = no; then | |
2849 | echo "$as_me:$LINENO: result: no" >&5 | |
2850 | echo "${ECHO_T}no" >&6 | |
2851 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2852 | echo "$as_me:$LINENO: result: system version" >&5 | |
2853 | echo "${ECHO_T}system version" >&6 | |
2854 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2855 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2856 | echo "${ECHO_T}builtin version" >&6 | |
2857 | else | |
2858 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2859 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2860 | { (exit 1); exit 1; }; } | |
2861 | fi | |
2862 | ||
2863 | ||
2864 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2865 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2866 | no_cache=0 | |
2867 | ||
2868 | # Check whether --with-libtiff or --without-libtiff was given. | |
2869 | if test "${with_libtiff+set}" = set; then | |
2870 | withval="$with_libtiff" | |
2871 | ||
2872 | if test "$withval" = yes; then | |
2873 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2874 | elif test "$withval" = no; then | |
2875 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2876 | elif test "$withval" = sys; then | |
2877 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2878 | elif test "$withval" = builtin; then | |
2879 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2880 | else | |
2881 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2882 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2883 | { (exit 1); exit 1; }; } | |
2884 | fi | |
2885 | ||
2886 | else | |
2887 | ||
2888 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2889 | if test "x$LINE" != x ; then | |
2890 | eval "DEFAULT_$LINE" | |
2891 | else | |
2892 | no_cache=1 | |
2893 | fi | |
2894 | ||
2895 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2896 | ||
2897 | fi; | |
2898 | ||
2899 | eval "$ac_cv_use_libtiff" | |
2900 | if test "$no_cache" != 1; then | |
2901 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2902 | fi | |
2903 | ||
2904 | if test "$wxUSE_LIBTIFF" = yes; then | |
2905 | echo "$as_me:$LINENO: result: yes" >&5 | |
2906 | echo "${ECHO_T}yes" >&6 | |
2907 | elif test "$wxUSE_LIBTIFF" = no; then | |
2908 | echo "$as_me:$LINENO: result: no" >&5 | |
2909 | echo "${ECHO_T}no" >&6 | |
2910 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2911 | echo "$as_me:$LINENO: result: system version" >&5 | |
2912 | echo "${ECHO_T}system version" >&6 | |
2913 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2914 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2915 | echo "${ECHO_T}builtin version" >&6 | |
2916 | else | |
2917 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2918 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2919 | { (exit 1); exit 1; }; } | |
2920 | fi | |
2921 | ||
2922 | ||
2923 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2924 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2925 | no_cache=0 | |
2926 | ||
2927 | # Check whether --with-libxpm or --without-libxpm was given. | |
2928 | if test "${with_libxpm+set}" = set; then | |
2929 | withval="$with_libxpm" | |
2930 | ||
2931 | if test "$withval" = yes; then | |
2932 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2933 | elif test "$withval" = no; then | |
2934 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2935 | elif test "$withval" = sys; then | |
2936 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2937 | elif test "$withval" = builtin; then | |
2938 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2939 | else | |
2940 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2941 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2942 | { (exit 1); exit 1; }; } | |
2943 | fi | |
2944 | ||
2945 | else | |
2946 | ||
2947 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2948 | if test "x$LINE" != x ; then | |
2949 | eval "DEFAULT_$LINE" | |
2950 | else | |
2951 | no_cache=1 | |
2952 | fi | |
2953 | ||
2954 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2955 | ||
2956 | fi; | |
2957 | ||
2958 | eval "$ac_cv_use_libxpm" | |
2959 | if test "$no_cache" != 1; then | |
2960 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2961 | fi | |
2962 | ||
2963 | if test "$wxUSE_LIBXPM" = yes; then | |
2964 | echo "$as_me:$LINENO: result: yes" >&5 | |
2965 | echo "${ECHO_T}yes" >&6 | |
2966 | elif test "$wxUSE_LIBXPM" = no; then | |
2967 | echo "$as_me:$LINENO: result: no" >&5 | |
2968 | echo "${ECHO_T}no" >&6 | |
2969 | elif test "$wxUSE_LIBXPM" = sys; then | |
2970 | echo "$as_me:$LINENO: result: system version" >&5 | |
2971 | echo "${ECHO_T}system version" >&6 | |
2972 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2973 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2974 | echo "${ECHO_T}builtin version" >&6 | |
2975 | else | |
2976 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2977 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2978 | { (exit 1); exit 1; }; } | |
2979 | fi | |
2980 | ||
2981 | ||
2982 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2983 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2984 | no_cache=0 | |
2985 | ||
2986 | # Check whether --with-libmspack or --without-libmspack was given. | |
2987 | if test "${with_libmspack+set}" = set; then | |
2988 | withval="$with_libmspack" | |
2989 | ||
2990 | if test "$withval" = yes; then | |
2991 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2992 | else | |
2993 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2994 | fi | |
2995 | ||
2996 | else | |
2997 | ||
2998 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
2999 | if test "x$LINE" != x ; then | |
3000 | eval "DEFAULT_$LINE" | |
3001 | else | |
3002 | no_cache=1 | |
3003 | fi | |
3004 | ||
3005 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3006 | ||
3007 | fi; | |
3008 | ||
3009 | eval "$ac_cv_use_libmspack" | |
3010 | if test "$no_cache" != 1; then | |
3011 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3012 | fi | |
3013 | ||
3014 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3015 | echo "$as_me:$LINENO: result: yes" >&5 | |
3016 | echo "${ECHO_T}yes" >&6 | |
3017 | else | |
3018 | echo "$as_me:$LINENO: result: no" >&5 | |
3019 | echo "${ECHO_T}no" >&6 | |
3020 | fi | |
3021 | ||
3022 | ||
3023 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3024 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3025 | no_cache=0 | |
3026 | ||
3027 | # Check whether --with-sdl or --without-sdl was given. | |
3028 | if test "${with_sdl+set}" = set; then | |
3029 | withval="$with_sdl" | |
3030 | ||
3031 | if test "$withval" = yes; then | |
3032 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3033 | else | |
3034 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3035 | fi | |
3036 | ||
3037 | else | |
3038 | ||
3039 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3040 | if test "x$LINE" != x ; then | |
3041 | eval "DEFAULT_$LINE" | |
3042 | else | |
3043 | no_cache=1 | |
3044 | fi | |
3045 | ||
3046 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3047 | ||
3048 | fi; | |
3049 | ||
3050 | eval "$ac_cv_use_sdl" | |
3051 | if test "$no_cache" != 1; then | |
3052 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3053 | fi | |
3054 | ||
3055 | if test "$wxUSE_LIBSDL" = yes; then | |
3056 | echo "$as_me:$LINENO: result: yes" >&5 | |
3057 | echo "${ECHO_T}yes" >&6 | |
3058 | else | |
3059 | echo "$as_me:$LINENO: result: no" >&5 | |
3060 | echo "${ECHO_T}no" >&6 | |
3061 | fi | |
3062 | ||
3063 | ||
3064 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
3065 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3066 | no_cache=0 | |
3067 | ||
3068 | # Check whether --with-opengl or --without-opengl was given. | |
3069 | if test "${with_opengl+set}" = set; then | |
3070 | withval="$with_opengl" | |
3071 | ||
3072 | if test "$withval" = yes; then | |
3073 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3074 | else | |
3075 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3076 | fi | |
3077 | ||
3078 | else | |
3079 | ||
3080 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3081 | if test "x$LINE" != x ; then | |
3082 | eval "DEFAULT_$LINE" | |
3083 | else | |
3084 | no_cache=1 | |
3085 | fi | |
3086 | ||
3087 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3088 | ||
3089 | fi; | |
3090 | ||
3091 | eval "$ac_cv_use_opengl" | |
3092 | if test "$no_cache" != 1; then | |
3093 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3094 | fi | |
3095 | ||
3096 | if test "$wxUSE_OPENGL" = yes; then | |
3097 | echo "$as_me:$LINENO: result: yes" >&5 | |
3098 | echo "${ECHO_T}yes" >&6 | |
3099 | else | |
3100 | echo "$as_me:$LINENO: result: no" >&5 | |
3101 | echo "${ECHO_T}no" >&6 | |
3102 | fi | |
3103 | ||
3104 | ||
3105 | fi | |
3106 | ||
3107 | ||
3108 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3109 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3110 | no_cache=0 | |
3111 | ||
3112 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3113 | if test "${with_dmalloc+set}" = set; then | |
3114 | withval="$with_dmalloc" | |
3115 | ||
3116 | if test "$withval" = yes; then | |
3117 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3118 | else | |
3119 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3120 | fi | |
3121 | ||
3122 | else | |
3123 | ||
3124 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3125 | if test "x$LINE" != x ; then | |
3126 | eval "DEFAULT_$LINE" | |
3127 | else | |
3128 | no_cache=1 | |
3129 | fi | |
3130 | ||
3131 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3132 | ||
3133 | fi; | |
3134 | ||
3135 | eval "$ac_cv_use_dmalloc" | |
3136 | if test "$no_cache" != 1; then | |
3137 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3138 | fi | |
3139 | ||
3140 | if test "$wxUSE_DMALLOC" = yes; then | |
3141 | echo "$as_me:$LINENO: result: yes" >&5 | |
3142 | echo "${ECHO_T}yes" >&6 | |
3143 | else | |
3144 | echo "$as_me:$LINENO: result: no" >&5 | |
3145 | echo "${ECHO_T}no" >&6 | |
3146 | fi | |
3147 | ||
3148 | ||
3149 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3150 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3151 | no_cache=0 | |
3152 | ||
3153 | # Check whether --with-regex or --without-regex was given. | |
3154 | if test "${with_regex+set}" = set; then | |
3155 | withval="$with_regex" | |
3156 | ||
3157 | if test "$withval" = yes; then | |
3158 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3159 | elif test "$withval" = no; then | |
3160 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3161 | elif test "$withval" = sys; then | |
3162 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3163 | elif test "$withval" = builtin; then | |
3164 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3165 | else | |
3166 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3167 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3168 | { (exit 1); exit 1; }; } | |
3169 | fi | |
3170 | ||
3171 | else | |
3172 | ||
3173 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3174 | if test "x$LINE" != x ; then | |
3175 | eval "DEFAULT_$LINE" | |
3176 | else | |
3177 | no_cache=1 | |
3178 | fi | |
3179 | ||
3180 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3181 | ||
3182 | fi; | |
3183 | ||
3184 | eval "$ac_cv_use_regex" | |
3185 | if test "$no_cache" != 1; then | |
3186 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3187 | fi | |
3188 | ||
3189 | if test "$wxUSE_REGEX" = yes; then | |
3190 | echo "$as_me:$LINENO: result: yes" >&5 | |
3191 | echo "${ECHO_T}yes" >&6 | |
3192 | elif test "$wxUSE_REGEX" = no; then | |
3193 | echo "$as_me:$LINENO: result: no" >&5 | |
3194 | echo "${ECHO_T}no" >&6 | |
3195 | elif test "$wxUSE_REGEX" = sys; then | |
3196 | echo "$as_me:$LINENO: result: system version" >&5 | |
3197 | echo "${ECHO_T}system version" >&6 | |
3198 | elif test "$wxUSE_REGEX" = builtin; then | |
3199 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3200 | echo "${ECHO_T}builtin version" >&6 | |
3201 | else | |
3202 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3203 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3204 | { (exit 1); exit 1; }; } | |
3205 | fi | |
3206 | ||
3207 | ||
3208 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3209 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3210 | no_cache=0 | |
3211 | ||
3212 | # Check whether --with-zlib or --without-zlib was given. | |
3213 | if test "${with_zlib+set}" = set; then | |
3214 | withval="$with_zlib" | |
3215 | ||
3216 | if test "$withval" = yes; then | |
3217 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3218 | elif test "$withval" = no; then | |
3219 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3220 | elif test "$withval" = sys; then | |
3221 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3222 | elif test "$withval" = builtin; then | |
3223 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3224 | else | |
3225 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3226 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3227 | { (exit 1); exit 1; }; } | |
3228 | fi | |
3229 | ||
3230 | else | |
3231 | ||
3232 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3233 | if test "x$LINE" != x ; then | |
3234 | eval "DEFAULT_$LINE" | |
3235 | else | |
3236 | no_cache=1 | |
3237 | fi | |
3238 | ||
3239 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3240 | ||
3241 | fi; | |
3242 | ||
3243 | eval "$ac_cv_use_zlib" | |
3244 | if test "$no_cache" != 1; then | |
3245 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3246 | fi | |
3247 | ||
3248 | if test "$wxUSE_ZLIB" = yes; then | |
3249 | echo "$as_me:$LINENO: result: yes" >&5 | |
3250 | echo "${ECHO_T}yes" >&6 | |
3251 | elif test "$wxUSE_ZLIB" = no; then | |
3252 | echo "$as_me:$LINENO: result: no" >&5 | |
3253 | echo "${ECHO_T}no" >&6 | |
3254 | elif test "$wxUSE_ZLIB" = sys; then | |
3255 | echo "$as_me:$LINENO: result: system version" >&5 | |
3256 | echo "${ECHO_T}system version" >&6 | |
3257 | elif test "$wxUSE_ZLIB" = builtin; then | |
3258 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3259 | echo "${ECHO_T}builtin version" >&6 | |
3260 | else | |
3261 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3262 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3263 | { (exit 1); exit 1; }; } | |
3264 | fi | |
3265 | ||
3266 | ||
3267 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3268 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3269 | no_cache=0 | |
3270 | ||
3271 | # Check whether --with-odbc or --without-odbc was given. | |
3272 | if test "${with_odbc+set}" = set; then | |
3273 | withval="$with_odbc" | |
3274 | ||
3275 | if test "$withval" = yes; then | |
3276 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3277 | elif test "$withval" = no; then | |
3278 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3279 | elif test "$withval" = sys; then | |
3280 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3281 | elif test "$withval" = builtin; then | |
3282 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3283 | else | |
3284 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3285 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3286 | { (exit 1); exit 1; }; } | |
3287 | fi | |
3288 | ||
3289 | else | |
3290 | ||
3291 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3292 | if test "x$LINE" != x ; then | |
3293 | eval "DEFAULT_$LINE" | |
3294 | else | |
3295 | no_cache=1 | |
3296 | fi | |
3297 | ||
3298 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3299 | ||
3300 | fi; | |
3301 | ||
3302 | eval "$ac_cv_use_odbc" | |
3303 | if test "$no_cache" != 1; then | |
3304 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3305 | fi | |
3306 | ||
3307 | if test "$wxUSE_ODBC" = yes; then | |
3308 | echo "$as_me:$LINENO: result: yes" >&5 | |
3309 | echo "${ECHO_T}yes" >&6 | |
3310 | elif test "$wxUSE_ODBC" = no; then | |
3311 | echo "$as_me:$LINENO: result: no" >&5 | |
3312 | echo "${ECHO_T}no" >&6 | |
3313 | elif test "$wxUSE_ODBC" = sys; then | |
3314 | echo "$as_me:$LINENO: result: system version" >&5 | |
3315 | echo "${ECHO_T}system version" >&6 | |
3316 | elif test "$wxUSE_ODBC" = builtin; then | |
3317 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3318 | echo "${ECHO_T}builtin version" >&6 | |
3319 | else | |
3320 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3321 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3322 | { (exit 1); exit 1; }; } | |
3323 | fi | |
3324 | ||
3325 | ||
3326 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3327 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3328 | no_cache=0 | |
3329 | ||
3330 | # Check whether --with-expat or --without-expat was given. | |
3331 | if test "${with_expat+set}" = set; then | |
3332 | withval="$with_expat" | |
3333 | ||
3334 | if test "$withval" = yes; then | |
3335 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3336 | elif test "$withval" = no; then | |
3337 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3338 | elif test "$withval" = sys; then | |
3339 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3340 | elif test "$withval" = builtin; then | |
3341 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3342 | else | |
3343 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3344 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3345 | { (exit 1); exit 1; }; } | |
3346 | fi | |
3347 | ||
3348 | else | |
3349 | ||
3350 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3351 | if test "x$LINE" != x ; then | |
3352 | eval "DEFAULT_$LINE" | |
3353 | else | |
3354 | no_cache=1 | |
3355 | fi | |
3356 | ||
3357 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3358 | ||
3359 | fi; | |
3360 | ||
3361 | eval "$ac_cv_use_expat" | |
3362 | if test "$no_cache" != 1; then | |
3363 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3364 | fi | |
3365 | ||
3366 | if test "$wxUSE_EXPAT" = yes; then | |
3367 | echo "$as_me:$LINENO: result: yes" >&5 | |
3368 | echo "${ECHO_T}yes" >&6 | |
3369 | elif test "$wxUSE_EXPAT" = no; then | |
3370 | echo "$as_me:$LINENO: result: no" >&5 | |
3371 | echo "${ECHO_T}no" >&6 | |
3372 | elif test "$wxUSE_EXPAT" = sys; then | |
3373 | echo "$as_me:$LINENO: result: system version" >&5 | |
3374 | echo "${ECHO_T}system version" >&6 | |
3375 | elif test "$wxUSE_EXPAT" = builtin; then | |
3376 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3377 | echo "${ECHO_T}builtin version" >&6 | |
3378 | else | |
3379 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3380 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3381 | { (exit 1); exit 1; }; } | |
3382 | fi | |
3383 | ||
3384 | ||
3385 | ||
3386 | ||
3387 | enablestring= | |
3388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3389 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3390 | no_cache=0 | |
3391 | # Check whether --enable-shared or --disable-shared was given. | |
3392 | if test "${enable_shared+set}" = set; then | |
3393 | enableval="$enable_shared" | |
3394 | ||
3395 | if test "$enableval" = yes; then | |
3396 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3397 | else | |
3398 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3399 | fi | |
3400 | ||
3401 | else | |
3402 | ||
3403 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3404 | if test "x$LINE" != x ; then | |
3405 | eval "DEFAULT_$LINE" | |
3406 | else | |
3407 | no_cache=1 | |
3408 | fi | |
3409 | ||
3410 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3411 | ||
3412 | fi; | |
3413 | ||
3414 | eval "$ac_cv_use_shared" | |
3415 | if test "$no_cache" != 1; then | |
3416 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3417 | fi | |
3418 | ||
3419 | if test "$wxUSE_SHARED" = yes; then | |
3420 | echo "$as_me:$LINENO: result: yes" >&5 | |
3421 | echo "${ECHO_T}yes" >&6 | |
3422 | else | |
3423 | echo "$as_me:$LINENO: result: no" >&5 | |
3424 | echo "${ECHO_T}no" >&6 | |
3425 | fi | |
3426 | ||
3427 | ||
3428 | enablestring= | |
3429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3430 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3431 | no_cache=0 | |
3432 | # Check whether --enable-optimise or --disable-optimise was given. | |
3433 | if test "${enable_optimise+set}" = set; then | |
3434 | enableval="$enable_optimise" | |
3435 | ||
3436 | if test "$enableval" = yes; then | |
3437 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3438 | else | |
3439 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3440 | fi | |
3441 | ||
3442 | else | |
3443 | ||
3444 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3445 | if test "x$LINE" != x ; then | |
3446 | eval "DEFAULT_$LINE" | |
3447 | else | |
3448 | no_cache=1 | |
3449 | fi | |
3450 | ||
3451 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3452 | ||
3453 | fi; | |
3454 | ||
3455 | eval "$ac_cv_use_optimise" | |
3456 | if test "$no_cache" != 1; then | |
3457 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3458 | fi | |
3459 | ||
3460 | if test "$wxUSE_OPTIMISE" = yes; then | |
3461 | echo "$as_me:$LINENO: result: yes" >&5 | |
3462 | echo "${ECHO_T}yes" >&6 | |
3463 | else | |
3464 | echo "$as_me:$LINENO: result: no" >&5 | |
3465 | echo "${ECHO_T}no" >&6 | |
3466 | fi | |
3467 | ||
3468 | ||
3469 | enablestring= | |
3470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3471 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3472 | no_cache=0 | |
3473 | # Check whether --enable-debug or --disable-debug was given. | |
3474 | if test "${enable_debug+set}" = set; then | |
3475 | enableval="$enable_debug" | |
3476 | ||
3477 | if test "$enableval" = yes; then | |
3478 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3479 | else | |
3480 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3481 | fi | |
3482 | ||
3483 | else | |
3484 | ||
3485 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3486 | if test "x$LINE" != x ; then | |
3487 | eval "DEFAULT_$LINE" | |
3488 | else | |
3489 | no_cache=1 | |
3490 | fi | |
3491 | ||
3492 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3493 | ||
3494 | fi; | |
3495 | ||
3496 | eval "$ac_cv_use_debug" | |
3497 | if test "$no_cache" != 1; then | |
3498 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3499 | fi | |
3500 | ||
3501 | if test "$wxUSE_DEBUG" = yes; then | |
3502 | echo "$as_me:$LINENO: result: yes" >&5 | |
3503 | echo "${ECHO_T}yes" >&6 | |
3504 | else | |
3505 | echo "$as_me:$LINENO: result: no" >&5 | |
3506 | echo "${ECHO_T}no" >&6 | |
3507 | fi | |
3508 | ||
3509 | ||
3510 | enablestring= | |
3511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3512 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3513 | no_cache=0 | |
3514 | # Check whether --enable-stl or --disable-stl was given. | |
3515 | if test "${enable_stl+set}" = set; then | |
3516 | enableval="$enable_stl" | |
3517 | ||
3518 | if test "$enableval" = yes; then | |
3519 | ac_cv_use_stl='wxUSE_STL=yes' | |
3520 | else | |
3521 | ac_cv_use_stl='wxUSE_STL=no' | |
3522 | fi | |
3523 | ||
3524 | else | |
3525 | ||
3526 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3527 | if test "x$LINE" != x ; then | |
3528 | eval "DEFAULT_$LINE" | |
3529 | else | |
3530 | no_cache=1 | |
3531 | fi | |
3532 | ||
3533 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3534 | ||
3535 | fi; | |
3536 | ||
3537 | eval "$ac_cv_use_stl" | |
3538 | if test "$no_cache" != 1; then | |
3539 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3540 | fi | |
3541 | ||
3542 | if test "$wxUSE_STL" = yes; then | |
3543 | echo "$as_me:$LINENO: result: yes" >&5 | |
3544 | echo "${ECHO_T}yes" >&6 | |
3545 | else | |
3546 | echo "$as_me:$LINENO: result: no" >&5 | |
3547 | echo "${ECHO_T}no" >&6 | |
3548 | fi | |
3549 | ||
3550 | if test "$USE_OS2" = "1"; then | |
3551 | ||
3552 | enablestring= | |
3553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3554 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3555 | no_cache=0 | |
3556 | # Check whether --enable-omf or --disable-omf was given. | |
3557 | if test "${enable_omf+set}" = set; then | |
3558 | enableval="$enable_omf" | |
3559 | ||
3560 | if test "$enableval" = yes; then | |
3561 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3562 | else | |
3563 | ac_cv_use_omf='wxUSE_OMF=no' | |
3564 | fi | |
3565 | ||
3566 | else | |
3567 | ||
3568 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3569 | if test "x$LINE" != x ; then | |
3570 | eval "DEFAULT_$LINE" | |
3571 | else | |
3572 | no_cache=1 | |
3573 | fi | |
3574 | ||
3575 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3576 | ||
3577 | fi; | |
3578 | ||
3579 | eval "$ac_cv_use_omf" | |
3580 | if test "$no_cache" != 1; then | |
3581 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3582 | fi | |
3583 | ||
3584 | if test "$wxUSE_OMF" = yes; then | |
3585 | echo "$as_me:$LINENO: result: yes" >&5 | |
3586 | echo "${ECHO_T}yes" >&6 | |
3587 | else | |
3588 | echo "$as_me:$LINENO: result: no" >&5 | |
3589 | echo "${ECHO_T}no" >&6 | |
3590 | fi | |
3591 | ||
3592 | fi | |
3593 | ||
3594 | if test "$wxUSE_DEBUG" = "yes"; then | |
3595 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3596 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3597 | BUILD=debug | |
3598 | elif test "$wxUSE_DEBUG" = "no"; then | |
3599 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3600 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3601 | BUILD=release | |
3602 | fi | |
3603 | ||
3604 | ||
3605 | enablestring= | |
3606 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3607 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3608 | no_cache=0 | |
3609 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3610 | if test "${enable_debug_flag+set}" = set; then | |
3611 | enableval="$enable_debug_flag" | |
3612 | ||
3613 | if test "$enableval" = yes; then | |
3614 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3615 | else | |
3616 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3617 | fi | |
3618 | ||
3619 | else | |
3620 | ||
3621 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3622 | if test "x$LINE" != x ; then | |
3623 | eval "DEFAULT_$LINE" | |
3624 | else | |
3625 | no_cache=1 | |
3626 | fi | |
3627 | ||
3628 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3629 | ||
3630 | fi; | |
3631 | ||
3632 | eval "$ac_cv_use_debug_flag" | |
3633 | if test "$no_cache" != 1; then | |
3634 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3635 | fi | |
3636 | ||
3637 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3638 | echo "$as_me:$LINENO: result: yes" >&5 | |
3639 | echo "${ECHO_T}yes" >&6 | |
3640 | else | |
3641 | echo "$as_me:$LINENO: result: no" >&5 | |
3642 | echo "${ECHO_T}no" >&6 | |
3643 | fi | |
3644 | ||
3645 | ||
3646 | enablestring= | |
3647 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3648 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3649 | no_cache=0 | |
3650 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3651 | if test "${enable_debug_info+set}" = set; then | |
3652 | enableval="$enable_debug_info" | |
3653 | ||
3654 | if test "$enableval" = yes; then | |
3655 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3656 | else | |
3657 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3658 | fi | |
3659 | ||
3660 | else | |
3661 | ||
3662 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3663 | if test "x$LINE" != x ; then | |
3664 | eval "DEFAULT_$LINE" | |
3665 | else | |
3666 | no_cache=1 | |
3667 | fi | |
3668 | ||
3669 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3670 | ||
3671 | fi; | |
3672 | ||
3673 | eval "$ac_cv_use_debug_info" | |
3674 | if test "$no_cache" != 1; then | |
3675 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3676 | fi | |
3677 | ||
3678 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3679 | echo "$as_me:$LINENO: result: yes" >&5 | |
3680 | echo "${ECHO_T}yes" >&6 | |
3681 | else | |
3682 | echo "$as_me:$LINENO: result: no" >&5 | |
3683 | echo "${ECHO_T}no" >&6 | |
3684 | fi | |
3685 | ||
3686 | ||
3687 | enablestring= | |
3688 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3689 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3690 | no_cache=0 | |
3691 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3692 | if test "${enable_debug_gdb+set}" = set; then | |
3693 | enableval="$enable_debug_gdb" | |
3694 | ||
3695 | if test "$enableval" = yes; then | |
3696 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3697 | else | |
3698 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3699 | fi | |
3700 | ||
3701 | else | |
3702 | ||
3703 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3704 | if test "x$LINE" != x ; then | |
3705 | eval "DEFAULT_$LINE" | |
3706 | else | |
3707 | no_cache=1 | |
3708 | fi | |
3709 | ||
3710 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3711 | ||
3712 | fi; | |
3713 | ||
3714 | eval "$ac_cv_use_debug_gdb" | |
3715 | if test "$no_cache" != 1; then | |
3716 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3717 | fi | |
3718 | ||
3719 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3720 | echo "$as_me:$LINENO: result: yes" >&5 | |
3721 | echo "${ECHO_T}yes" >&6 | |
3722 | else | |
3723 | echo "$as_me:$LINENO: result: no" >&5 | |
3724 | echo "${ECHO_T}no" >&6 | |
3725 | fi | |
3726 | ||
3727 | ||
3728 | enablestring= | |
3729 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3730 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3731 | no_cache=0 | |
3732 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3733 | if test "${enable_debug_cntxt+set}" = set; then | |
3734 | enableval="$enable_debug_cntxt" | |
3735 | ||
3736 | if test "$enableval" = yes; then | |
3737 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3738 | else | |
3739 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3740 | fi | |
3741 | ||
3742 | else | |
3743 | ||
3744 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3745 | if test "x$LINE" != x ; then | |
3746 | eval "DEFAULT_$LINE" | |
3747 | else | |
3748 | no_cache=1 | |
3749 | fi | |
3750 | ||
3751 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3752 | ||
3753 | fi; | |
3754 | ||
3755 | eval "$ac_cv_use_debug_cntxt" | |
3756 | if test "$no_cache" != 1; then | |
3757 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3758 | fi | |
3759 | ||
3760 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3761 | echo "$as_me:$LINENO: result: yes" >&5 | |
3762 | echo "${ECHO_T}yes" >&6 | |
3763 | else | |
3764 | echo "$as_me:$LINENO: result: no" >&5 | |
3765 | echo "${ECHO_T}no" >&6 | |
3766 | fi | |
3767 | ||
3768 | ||
3769 | enablestring= | |
3770 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3771 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3772 | no_cache=0 | |
3773 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3774 | if test "${enable_mem_tracing+set}" = set; then | |
3775 | enableval="$enable_mem_tracing" | |
3776 | ||
3777 | if test "$enableval" = yes; then | |
3778 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3779 | else | |
3780 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3781 | fi | |
3782 | ||
3783 | else | |
3784 | ||
3785 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3786 | if test "x$LINE" != x ; then | |
3787 | eval "DEFAULT_$LINE" | |
3788 | else | |
3789 | no_cache=1 | |
3790 | fi | |
3791 | ||
3792 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3793 | ||
3794 | fi; | |
3795 | ||
3796 | eval "$ac_cv_use_mem_tracing" | |
3797 | if test "$no_cache" != 1; then | |
3798 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3799 | fi | |
3800 | ||
3801 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3802 | echo "$as_me:$LINENO: result: yes" >&5 | |
3803 | echo "${ECHO_T}yes" >&6 | |
3804 | else | |
3805 | echo "$as_me:$LINENO: result: no" >&5 | |
3806 | echo "${ECHO_T}no" >&6 | |
3807 | fi | |
3808 | ||
3809 | ||
3810 | enablestring= | |
3811 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3812 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3813 | no_cache=0 | |
3814 | # Check whether --enable-profile or --disable-profile was given. | |
3815 | if test "${enable_profile+set}" = set; then | |
3816 | enableval="$enable_profile" | |
3817 | ||
3818 | if test "$enableval" = yes; then | |
3819 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3820 | else | |
3821 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3822 | fi | |
3823 | ||
3824 | else | |
3825 | ||
3826 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3827 | if test "x$LINE" != x ; then | |
3828 | eval "DEFAULT_$LINE" | |
3829 | else | |
3830 | no_cache=1 | |
3831 | fi | |
3832 | ||
3833 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3834 | ||
3835 | fi; | |
3836 | ||
3837 | eval "$ac_cv_use_profile" | |
3838 | if test "$no_cache" != 1; then | |
3839 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3840 | fi | |
3841 | ||
3842 | if test "$wxUSE_PROFILE" = yes; then | |
3843 | echo "$as_me:$LINENO: result: yes" >&5 | |
3844 | echo "${ECHO_T}yes" >&6 | |
3845 | else | |
3846 | echo "$as_me:$LINENO: result: no" >&5 | |
3847 | echo "${ECHO_T}no" >&6 | |
3848 | fi | |
3849 | ||
3850 | ||
3851 | enablestring= | |
3852 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3853 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3854 | no_cache=0 | |
3855 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3856 | if test "${enable_no_rtti+set}" = set; then | |
3857 | enableval="$enable_no_rtti" | |
3858 | ||
3859 | if test "$enableval" = yes; then | |
3860 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3861 | else | |
3862 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3863 | fi | |
3864 | ||
3865 | else | |
3866 | ||
3867 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3868 | if test "x$LINE" != x ; then | |
3869 | eval "DEFAULT_$LINE" | |
3870 | else | |
3871 | no_cache=1 | |
3872 | fi | |
3873 | ||
3874 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3875 | ||
3876 | fi; | |
3877 | ||
3878 | eval "$ac_cv_use_no_rtti" | |
3879 | if test "$no_cache" != 1; then | |
3880 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3881 | fi | |
3882 | ||
3883 | if test "$wxUSE_NO_RTTI" = yes; then | |
3884 | echo "$as_me:$LINENO: result: yes" >&5 | |
3885 | echo "${ECHO_T}yes" >&6 | |
3886 | else | |
3887 | echo "$as_me:$LINENO: result: no" >&5 | |
3888 | echo "${ECHO_T}no" >&6 | |
3889 | fi | |
3890 | ||
3891 | ||
3892 | enablestring= | |
3893 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3894 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3895 | no_cache=0 | |
3896 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3897 | if test "${enable_no_exceptions+set}" = set; then | |
3898 | enableval="$enable_no_exceptions" | |
3899 | ||
3900 | if test "$enableval" = yes; then | |
3901 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3902 | else | |
3903 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3904 | fi | |
3905 | ||
3906 | else | |
3907 | ||
3908 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3909 | if test "x$LINE" != x ; then | |
3910 | eval "DEFAULT_$LINE" | |
3911 | else | |
3912 | no_cache=1 | |
3913 | fi | |
3914 | ||
3915 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3916 | ||
3917 | fi; | |
3918 | ||
3919 | eval "$ac_cv_use_no_exceptions" | |
3920 | if test "$no_cache" != 1; then | |
3921 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3922 | fi | |
3923 | ||
3924 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3925 | echo "$as_me:$LINENO: result: yes" >&5 | |
3926 | echo "${ECHO_T}yes" >&6 | |
3927 | else | |
3928 | echo "$as_me:$LINENO: result: no" >&5 | |
3929 | echo "${ECHO_T}no" >&6 | |
3930 | fi | |
3931 | ||
3932 | ||
3933 | enablestring= | |
3934 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3935 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3936 | no_cache=0 | |
3937 | # Check whether --enable-permissive or --disable-permissive was given. | |
3938 | if test "${enable_permissive+set}" = set; then | |
3939 | enableval="$enable_permissive" | |
3940 | ||
3941 | if test "$enableval" = yes; then | |
3942 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3943 | else | |
3944 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3945 | fi | |
3946 | ||
3947 | else | |
3948 | ||
3949 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3950 | if test "x$LINE" != x ; then | |
3951 | eval "DEFAULT_$LINE" | |
3952 | else | |
3953 | no_cache=1 | |
3954 | fi | |
3955 | ||
3956 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3957 | ||
3958 | fi; | |
3959 | ||
3960 | eval "$ac_cv_use_permissive" | |
3961 | if test "$no_cache" != 1; then | |
3962 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3963 | fi | |
3964 | ||
3965 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3966 | echo "$as_me:$LINENO: result: yes" >&5 | |
3967 | echo "${ECHO_T}yes" >&6 | |
3968 | else | |
3969 | echo "$as_me:$LINENO: result: no" >&5 | |
3970 | echo "${ECHO_T}no" >&6 | |
3971 | fi | |
3972 | ||
3973 | ||
3974 | enablestring= | |
3975 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3976 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3977 | no_cache=0 | |
3978 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3979 | if test "${enable_no_deps+set}" = set; then | |
3980 | enableval="$enable_no_deps" | |
3981 | ||
3982 | if test "$enableval" = yes; then | |
3983 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3984 | else | |
3985 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3986 | fi | |
3987 | ||
3988 | else | |
3989 | ||
3990 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
3991 | if test "x$LINE" != x ; then | |
3992 | eval "DEFAULT_$LINE" | |
3993 | else | |
3994 | no_cache=1 | |
3995 | fi | |
3996 | ||
3997 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
3998 | ||
3999 | fi; | |
4000 | ||
4001 | eval "$ac_cv_use_no_deps" | |
4002 | if test "$no_cache" != 1; then | |
4003 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4004 | fi | |
4005 | ||
4006 | if test "$wxUSE_NO_DEPS" = yes; then | |
4007 | echo "$as_me:$LINENO: result: yes" >&5 | |
4008 | echo "${ECHO_T}yes" >&6 | |
4009 | else | |
4010 | echo "$as_me:$LINENO: result: no" >&5 | |
4011 | echo "${ECHO_T}no" >&6 | |
4012 | fi | |
4013 | ||
4014 | ||
4015 | ||
4016 | enablestring= | |
4017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4018 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4019 | no_cache=0 | |
4020 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4021 | if test "${enable_compat22+set}" = set; then | |
4022 | enableval="$enable_compat22" | |
4023 | ||
4024 | if test "$enableval" = yes; then | |
4025 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4026 | else | |
4027 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4028 | fi | |
4029 | ||
4030 | else | |
4031 | ||
4032 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4033 | if test "x$LINE" != x ; then | |
4034 | eval "DEFAULT_$LINE" | |
4035 | else | |
4036 | no_cache=1 | |
4037 | fi | |
4038 | ||
4039 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4040 | ||
4041 | fi; | |
4042 | ||
4043 | eval "$ac_cv_use_compat22" | |
4044 | if test "$no_cache" != 1; then | |
4045 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4046 | fi | |
4047 | ||
4048 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4049 | echo "$as_me:$LINENO: result: yes" >&5 | |
4050 | echo "${ECHO_T}yes" >&6 | |
4051 | else | |
4052 | echo "$as_me:$LINENO: result: no" >&5 | |
4053 | echo "${ECHO_T}no" >&6 | |
4054 | fi | |
4055 | ||
4056 | ||
4057 | enablestring=disable | |
4058 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4059 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4060 | no_cache=0 | |
4061 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4062 | if test "${enable_compat24+set}" = set; then | |
4063 | enableval="$enable_compat24" | |
4064 | ||
4065 | if test "$enableval" = yes; then | |
4066 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4067 | else | |
4068 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4069 | fi | |
4070 | ||
4071 | else | |
4072 | ||
4073 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4074 | if test "x$LINE" != x ; then | |
4075 | eval "DEFAULT_$LINE" | |
4076 | else | |
4077 | no_cache=1 | |
4078 | fi | |
4079 | ||
4080 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4081 | ||
4082 | fi; | |
4083 | ||
4084 | eval "$ac_cv_use_compat24" | |
4085 | if test "$no_cache" != 1; then | |
4086 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4087 | fi | |
4088 | ||
4089 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4090 | echo "$as_me:$LINENO: result: yes" >&5 | |
4091 | echo "${ECHO_T}yes" >&6 | |
4092 | else | |
4093 | echo "$as_me:$LINENO: result: no" >&5 | |
4094 | echo "${ECHO_T}no" >&6 | |
4095 | fi | |
4096 | ||
4097 | ||
4098 | # Check whether --enable-rpath or --disable-rpath was given. | |
4099 | if test "${enable_rpath+set}" = set; then | |
4100 | enableval="$enable_rpath" | |
4101 | wxRPATH_DIR="$enableval" | |
4102 | fi; | |
4103 | ||
ac1cb8d3 | 4104 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then |
a848cd7e SC |
4105 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" |
4106 | fi | |
4107 | ||
4108 | ||
4109 | ||
4110 | ||
4111 | enablestring= | |
4112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4113 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4114 | no_cache=0 | |
4115 | # Check whether --enable-intl or --disable-intl was given. | |
4116 | if test "${enable_intl+set}" = set; then | |
4117 | enableval="$enable_intl" | |
4118 | ||
4119 | if test "$enableval" = yes; then | |
4120 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4121 | else | |
4122 | ac_cv_use_intl='wxUSE_INTL=no' | |
4123 | fi | |
4124 | ||
4125 | else | |
4126 | ||
4127 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4128 | if test "x$LINE" != x ; then | |
4129 | eval "DEFAULT_$LINE" | |
4130 | else | |
4131 | no_cache=1 | |
4132 | fi | |
4133 | ||
4134 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4135 | ||
4136 | fi; | |
4137 | ||
4138 | eval "$ac_cv_use_intl" | |
4139 | if test "$no_cache" != 1; then | |
4140 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4141 | fi | |
4142 | ||
4143 | if test "$wxUSE_INTL" = yes; then | |
4144 | echo "$as_me:$LINENO: result: yes" >&5 | |
4145 | echo "${ECHO_T}yes" >&6 | |
4146 | else | |
4147 | echo "$as_me:$LINENO: result: no" >&5 | |
4148 | echo "${ECHO_T}no" >&6 | |
4149 | fi | |
4150 | ||
4151 | ||
4152 | enablestring= | |
4153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4154 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4155 | no_cache=0 | |
4156 | # Check whether --enable-config or --disable-config was given. | |
4157 | if test "${enable_config+set}" = set; then | |
4158 | enableval="$enable_config" | |
4159 | ||
4160 | if test "$enableval" = yes; then | |
4161 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4162 | else | |
4163 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4164 | fi | |
4165 | ||
4166 | else | |
4167 | ||
4168 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4169 | if test "x$LINE" != x ; then | |
4170 | eval "DEFAULT_$LINE" | |
4171 | else | |
4172 | no_cache=1 | |
4173 | fi | |
4174 | ||
4175 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4176 | ||
4177 | fi; | |
4178 | ||
4179 | eval "$ac_cv_use_config" | |
4180 | if test "$no_cache" != 1; then | |
4181 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4182 | fi | |
4183 | ||
4184 | if test "$wxUSE_CONFIG" = yes; then | |
4185 | echo "$as_me:$LINENO: result: yes" >&5 | |
4186 | echo "${ECHO_T}yes" >&6 | |
4187 | else | |
4188 | echo "$as_me:$LINENO: result: no" >&5 | |
4189 | echo "${ECHO_T}no" >&6 | |
4190 | fi | |
4191 | ||
4192 | ||
4193 | ||
4194 | enablestring= | |
4195 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4196 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4197 | no_cache=0 | |
4198 | # Check whether --enable-protocols or --disable-protocols was given. | |
4199 | if test "${enable_protocols+set}" = set; then | |
4200 | enableval="$enable_protocols" | |
4201 | ||
4202 | if test "$enableval" = yes; then | |
4203 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4204 | else | |
4205 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4206 | fi | |
4207 | ||
4208 | else | |
4209 | ||
4210 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4211 | if test "x$LINE" != x ; then | |
4212 | eval "DEFAULT_$LINE" | |
4213 | else | |
4214 | no_cache=1 | |
4215 | fi | |
4216 | ||
4217 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4218 | ||
4219 | fi; | |
4220 | ||
4221 | eval "$ac_cv_use_protocols" | |
4222 | if test "$no_cache" != 1; then | |
4223 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4224 | fi | |
4225 | ||
4226 | if test "$wxUSE_PROTOCOL" = yes; then | |
4227 | echo "$as_me:$LINENO: result: yes" >&5 | |
4228 | echo "${ECHO_T}yes" >&6 | |
4229 | else | |
4230 | echo "$as_me:$LINENO: result: no" >&5 | |
4231 | echo "${ECHO_T}no" >&6 | |
4232 | fi | |
4233 | ||
4234 | ||
4235 | enablestring= | |
4236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4237 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4238 | no_cache=0 | |
4239 | # Check whether --enable-ftp or --disable-ftp was given. | |
4240 | if test "${enable_ftp+set}" = set; then | |
4241 | enableval="$enable_ftp" | |
4242 | ||
4243 | if test "$enableval" = yes; then | |
4244 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4245 | else | |
4246 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4247 | fi | |
4248 | ||
4249 | else | |
4250 | ||
4251 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4252 | if test "x$LINE" != x ; then | |
4253 | eval "DEFAULT_$LINE" | |
4254 | else | |
4255 | no_cache=1 | |
4256 | fi | |
4257 | ||
4258 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4259 | ||
4260 | fi; | |
4261 | ||
4262 | eval "$ac_cv_use_ftp" | |
4263 | if test "$no_cache" != 1; then | |
4264 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4265 | fi | |
4266 | ||
4267 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4268 | echo "$as_me:$LINENO: result: yes" >&5 | |
4269 | echo "${ECHO_T}yes" >&6 | |
4270 | else | |
4271 | echo "$as_me:$LINENO: result: no" >&5 | |
4272 | echo "${ECHO_T}no" >&6 | |
4273 | fi | |
4274 | ||
4275 | ||
4276 | enablestring= | |
4277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4278 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4279 | no_cache=0 | |
4280 | # Check whether --enable-http or --disable-http was given. | |
4281 | if test "${enable_http+set}" = set; then | |
4282 | enableval="$enable_http" | |
4283 | ||
4284 | if test "$enableval" = yes; then | |
4285 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4286 | else | |
4287 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4288 | fi | |
4289 | ||
4290 | else | |
4291 | ||
4292 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4293 | if test "x$LINE" != x ; then | |
4294 | eval "DEFAULT_$LINE" | |
4295 | else | |
4296 | no_cache=1 | |
4297 | fi | |
4298 | ||
4299 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4300 | ||
4301 | fi; | |
4302 | ||
4303 | eval "$ac_cv_use_http" | |
4304 | if test "$no_cache" != 1; then | |
4305 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4306 | fi | |
4307 | ||
4308 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4309 | echo "$as_me:$LINENO: result: yes" >&5 | |
4310 | echo "${ECHO_T}yes" >&6 | |
4311 | else | |
4312 | echo "$as_me:$LINENO: result: no" >&5 | |
4313 | echo "${ECHO_T}no" >&6 | |
4314 | fi | |
4315 | ||
4316 | ||
4317 | enablestring= | |
4318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4319 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4320 | no_cache=0 | |
4321 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4322 | if test "${enable_fileproto+set}" = set; then | |
4323 | enableval="$enable_fileproto" | |
4324 | ||
4325 | if test "$enableval" = yes; then | |
4326 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4327 | else | |
4328 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4329 | fi | |
4330 | ||
4331 | else | |
4332 | ||
4333 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4334 | if test "x$LINE" != x ; then | |
4335 | eval "DEFAULT_$LINE" | |
4336 | else | |
4337 | no_cache=1 | |
4338 | fi | |
4339 | ||
4340 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4341 | ||
4342 | fi; | |
4343 | ||
4344 | eval "$ac_cv_use_fileproto" | |
4345 | if test "$no_cache" != 1; then | |
4346 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4347 | fi | |
4348 | ||
4349 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4350 | echo "$as_me:$LINENO: result: yes" >&5 | |
4351 | echo "${ECHO_T}yes" >&6 | |
4352 | else | |
4353 | echo "$as_me:$LINENO: result: no" >&5 | |
4354 | echo "${ECHO_T}no" >&6 | |
4355 | fi | |
4356 | ||
4357 | ||
4358 | enablestring= | |
4359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4360 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4361 | no_cache=0 | |
4362 | # Check whether --enable-sockets or --disable-sockets was given. | |
4363 | if test "${enable_sockets+set}" = set; then | |
4364 | enableval="$enable_sockets" | |
4365 | ||
4366 | if test "$enableval" = yes; then | |
4367 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4368 | else | |
4369 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4370 | fi | |
4371 | ||
4372 | else | |
4373 | ||
4374 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4375 | if test "x$LINE" != x ; then | |
4376 | eval "DEFAULT_$LINE" | |
4377 | else | |
4378 | no_cache=1 | |
4379 | fi | |
4380 | ||
4381 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4382 | ||
4383 | fi; | |
4384 | ||
4385 | eval "$ac_cv_use_sockets" | |
4386 | if test "$no_cache" != 1; then | |
4387 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4388 | fi | |
4389 | ||
4390 | if test "$wxUSE_SOCKETS" = yes; then | |
4391 | echo "$as_me:$LINENO: result: yes" >&5 | |
4392 | echo "${ECHO_T}yes" >&6 | |
4393 | else | |
4394 | echo "$as_me:$LINENO: result: no" >&5 | |
4395 | echo "${ECHO_T}no" >&6 | |
4396 | fi | |
4397 | ||
4398 | ||
4399 | enablestring= | |
4400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4401 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4402 | no_cache=0 | |
4403 | # Check whether --enable-ole or --disable-ole was given. | |
4404 | if test "${enable_ole+set}" = set; then | |
4405 | enableval="$enable_ole" | |
4406 | ||
4407 | if test "$enableval" = yes; then | |
4408 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4409 | else | |
4410 | ac_cv_use_ole='wxUSE_OLE=no' | |
4411 | fi | |
4412 | ||
4413 | else | |
4414 | ||
4415 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4416 | if test "x$LINE" != x ; then | |
4417 | eval "DEFAULT_$LINE" | |
4418 | else | |
4419 | no_cache=1 | |
4420 | fi | |
4421 | ||
4422 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4423 | ||
4424 | fi; | |
4425 | ||
4426 | eval "$ac_cv_use_ole" | |
4427 | if test "$no_cache" != 1; then | |
4428 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4429 | fi | |
4430 | ||
4431 | if test "$wxUSE_OLE" = yes; then | |
4432 | echo "$as_me:$LINENO: result: yes" >&5 | |
4433 | echo "${ECHO_T}yes" >&6 | |
4434 | else | |
4435 | echo "$as_me:$LINENO: result: no" >&5 | |
4436 | echo "${ECHO_T}no" >&6 | |
4437 | fi | |
4438 | ||
4439 | ||
4440 | enablestring= | |
4441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4442 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4443 | no_cache=0 | |
4444 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4445 | if test "${enable_dataobj+set}" = set; then | |
4446 | enableval="$enable_dataobj" | |
4447 | ||
4448 | if test "$enableval" = yes; then | |
4449 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4450 | else | |
4451 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4452 | fi | |
4453 | ||
4454 | else | |
4455 | ||
4456 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4457 | if test "x$LINE" != x ; then | |
4458 | eval "DEFAULT_$LINE" | |
4459 | else | |
4460 | no_cache=1 | |
4461 | fi | |
4462 | ||
4463 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4464 | ||
4465 | fi; | |
4466 | ||
4467 | eval "$ac_cv_use_dataobj" | |
4468 | if test "$no_cache" != 1; then | |
4469 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4470 | fi | |
4471 | ||
4472 | if test "$wxUSE_DATAOBJ" = yes; then | |
4473 | echo "$as_me:$LINENO: result: yes" >&5 | |
4474 | echo "${ECHO_T}yes" >&6 | |
4475 | else | |
4476 | echo "$as_me:$LINENO: result: no" >&5 | |
4477 | echo "${ECHO_T}no" >&6 | |
4478 | fi | |
4479 | ||
4480 | ||
4481 | ||
4482 | enablestring= | |
4483 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4484 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4485 | no_cache=0 | |
4486 | # Check whether --enable-ipc or --disable-ipc was given. | |
4487 | if test "${enable_ipc+set}" = set; then | |
4488 | enableval="$enable_ipc" | |
4489 | ||
4490 | if test "$enableval" = yes; then | |
4491 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4492 | else | |
4493 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4494 | fi | |
4495 | ||
4496 | else | |
4497 | ||
4498 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4499 | if test "x$LINE" != x ; then | |
4500 | eval "DEFAULT_$LINE" | |
4501 | else | |
4502 | no_cache=1 | |
4503 | fi | |
4504 | ||
4505 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4506 | ||
4507 | fi; | |
4508 | ||
4509 | eval "$ac_cv_use_ipc" | |
4510 | if test "$no_cache" != 1; then | |
4511 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4512 | fi | |
4513 | ||
4514 | if test "$wxUSE_IPC" = yes; then | |
4515 | echo "$as_me:$LINENO: result: yes" >&5 | |
4516 | echo "${ECHO_T}yes" >&6 | |
4517 | else | |
4518 | echo "$as_me:$LINENO: result: no" >&5 | |
4519 | echo "${ECHO_T}no" >&6 | |
4520 | fi | |
4521 | ||
4522 | ||
4523 | ||
4524 | enablestring= | |
4525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4526 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4527 | no_cache=0 | |
4528 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4529 | if test "${enable_apple_ieee+set}" = set; then | |
4530 | enableval="$enable_apple_ieee" | |
4531 | ||
4532 | if test "$enableval" = yes; then | |
4533 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4534 | else | |
4535 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4536 | fi | |
4537 | ||
4538 | else | |
4539 | ||
4540 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4541 | if test "x$LINE" != x ; then | |
4542 | eval "DEFAULT_$LINE" | |
4543 | else | |
4544 | no_cache=1 | |
4545 | fi | |
4546 | ||
4547 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4548 | ||
4549 | fi; | |
4550 | ||
4551 | eval "$ac_cv_use_apple_ieee" | |
4552 | if test "$no_cache" != 1; then | |
4553 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4554 | fi | |
4555 | ||
4556 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4557 | echo "$as_me:$LINENO: result: yes" >&5 | |
4558 | echo "${ECHO_T}yes" >&6 | |
4559 | else | |
4560 | echo "$as_me:$LINENO: result: no" >&5 | |
4561 | echo "${ECHO_T}no" >&6 | |
4562 | fi | |
4563 | ||
4564 | ||
4565 | enablestring= | |
4566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4567 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4568 | no_cache=0 | |
4569 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4570 | if test "${enable_catch_segvs+set}" = set; then | |
4571 | enableval="$enable_catch_segvs" | |
4572 | ||
4573 | if test "$enableval" = yes; then | |
4574 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4575 | else | |
4576 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4577 | fi | |
4578 | ||
4579 | else | |
4580 | ||
4581 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4582 | if test "x$LINE" != x ; then | |
4583 | eval "DEFAULT_$LINE" | |
4584 | else | |
4585 | no_cache=1 | |
4586 | fi | |
4587 | ||
4588 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4589 | ||
4590 | fi; | |
4591 | ||
4592 | eval "$ac_cv_use_catch_segvs" | |
4593 | if test "$no_cache" != 1; then | |
4594 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4595 | fi | |
4596 | ||
4597 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4598 | echo "$as_me:$LINENO: result: yes" >&5 | |
4599 | echo "${ECHO_T}yes" >&6 | |
4600 | else | |
4601 | echo "$as_me:$LINENO: result: no" >&5 | |
4602 | echo "${ECHO_T}no" >&6 | |
4603 | fi | |
4604 | ||
4605 | ||
4606 | enablestring= | |
4607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4608 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4609 | no_cache=0 | |
4610 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4611 | if test "${enable_cmdline+set}" = set; then | |
4612 | enableval="$enable_cmdline" | |
4613 | ||
4614 | if test "$enableval" = yes; then | |
4615 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4616 | else | |
4617 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4618 | fi | |
4619 | ||
4620 | else | |
4621 | ||
4622 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4623 | if test "x$LINE" != x ; then | |
4624 | eval "DEFAULT_$LINE" | |
4625 | else | |
4626 | no_cache=1 | |
4627 | fi | |
4628 | ||
4629 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4630 | ||
4631 | fi; | |
4632 | ||
4633 | eval "$ac_cv_use_cmdline" | |
4634 | if test "$no_cache" != 1; then | |
4635 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4636 | fi | |
4637 | ||
4638 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4639 | echo "$as_me:$LINENO: result: yes" >&5 | |
4640 | echo "${ECHO_T}yes" >&6 | |
4641 | else | |
4642 | echo "$as_me:$LINENO: result: no" >&5 | |
4643 | echo "${ECHO_T}no" >&6 | |
4644 | fi | |
4645 | ||
4646 | ||
4647 | enablestring= | |
4648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4649 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4650 | no_cache=0 | |
4651 | # Check whether --enable-datetime or --disable-datetime was given. | |
4652 | if test "${enable_datetime+set}" = set; then | |
4653 | enableval="$enable_datetime" | |
4654 | ||
4655 | if test "$enableval" = yes; then | |
4656 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4657 | else | |
4658 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4659 | fi | |
4660 | ||
4661 | else | |
4662 | ||
4663 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4664 | if test "x$LINE" != x ; then | |
4665 | eval "DEFAULT_$LINE" | |
4666 | else | |
4667 | no_cache=1 | |
4668 | fi | |
4669 | ||
4670 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4671 | ||
4672 | fi; | |
4673 | ||
4674 | eval "$ac_cv_use_datetime" | |
4675 | if test "$no_cache" != 1; then | |
4676 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4677 | fi | |
4678 | ||
4679 | if test "$wxUSE_DATETIME" = yes; then | |
4680 | echo "$as_me:$LINENO: result: yes" >&5 | |
4681 | echo "${ECHO_T}yes" >&6 | |
4682 | else | |
4683 | echo "$as_me:$LINENO: result: no" >&5 | |
4684 | echo "${ECHO_T}no" >&6 | |
4685 | fi | |
4686 | ||
4687 | ||
4688 | enablestring= | |
4689 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4690 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4691 | no_cache=0 | |
4692 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4693 | if test "${enable_dialupman+set}" = set; then | |
4694 | enableval="$enable_dialupman" | |
4695 | ||
4696 | if test "$enableval" = yes; then | |
4697 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4698 | else | |
4699 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4700 | fi | |
4701 | ||
4702 | else | |
4703 | ||
4704 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4705 | if test "x$LINE" != x ; then | |
4706 | eval "DEFAULT_$LINE" | |
4707 | else | |
4708 | no_cache=1 | |
4709 | fi | |
4710 | ||
4711 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4712 | ||
4713 | fi; | |
4714 | ||
4715 | eval "$ac_cv_use_dialupman" | |
4716 | if test "$no_cache" != 1; then | |
4717 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4718 | fi | |
4719 | ||
4720 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4721 | echo "$as_me:$LINENO: result: yes" >&5 | |
4722 | echo "${ECHO_T}yes" >&6 | |
4723 | else | |
4724 | echo "$as_me:$LINENO: result: no" >&5 | |
4725 | echo "${ECHO_T}no" >&6 | |
4726 | fi | |
4727 | ||
4728 | ||
4729 | enablestring= | |
4730 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4731 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4732 | no_cache=0 | |
4733 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4734 | if test "${enable_dynlib+set}" = set; then | |
4735 | enableval="$enable_dynlib" | |
4736 | ||
4737 | if test "$enableval" = yes; then | |
4738 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4739 | else | |
4740 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4741 | fi | |
4742 | ||
4743 | else | |
4744 | ||
4745 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4746 | if test "x$LINE" != x ; then | |
4747 | eval "DEFAULT_$LINE" | |
4748 | else | |
4749 | no_cache=1 | |
4750 | fi | |
4751 | ||
4752 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4753 | ||
4754 | fi; | |
4755 | ||
4756 | eval "$ac_cv_use_dynlib" | |
4757 | if test "$no_cache" != 1; then | |
4758 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4759 | fi | |
4760 | ||
4761 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4762 | echo "$as_me:$LINENO: result: yes" >&5 | |
4763 | echo "${ECHO_T}yes" >&6 | |
4764 | else | |
4765 | echo "$as_me:$LINENO: result: no" >&5 | |
4766 | echo "${ECHO_T}no" >&6 | |
4767 | fi | |
4768 | ||
4769 | ||
4770 | enablestring= | |
4771 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4772 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4773 | no_cache=0 | |
4774 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4775 | if test "${enable_dynamicloader+set}" = set; then | |
4776 | enableval="$enable_dynamicloader" | |
4777 | ||
4778 | if test "$enableval" = yes; then | |
4779 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4780 | else | |
4781 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4782 | fi | |
4783 | ||
4784 | else | |
4785 | ||
4786 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4787 | if test "x$LINE" != x ; then | |
4788 | eval "DEFAULT_$LINE" | |
4789 | else | |
4790 | no_cache=1 | |
4791 | fi | |
4792 | ||
4793 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4794 | ||
4795 | fi; | |
4796 | ||
4797 | eval "$ac_cv_use_dynamicloader" | |
4798 | if test "$no_cache" != 1; then | |
4799 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4800 | fi | |
4801 | ||
4802 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4803 | echo "$as_me:$LINENO: result: yes" >&5 | |
4804 | echo "${ECHO_T}yes" >&6 | |
4805 | else | |
4806 | echo "$as_me:$LINENO: result: no" >&5 | |
4807 | echo "${ECHO_T}no" >&6 | |
4808 | fi | |
4809 | ||
4810 | ||
4811 | enablestring= | |
4812 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4813 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4814 | no_cache=0 | |
4815 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4816 | if test "${enable_exceptions+set}" = set; then | |
4817 | enableval="$enable_exceptions" | |
4818 | ||
4819 | if test "$enableval" = yes; then | |
4820 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4821 | else | |
4822 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4823 | fi | |
4824 | ||
4825 | else | |
4826 | ||
4827 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4828 | if test "x$LINE" != x ; then | |
4829 | eval "DEFAULT_$LINE" | |
4830 | else | |
4831 | no_cache=1 | |
4832 | fi | |
4833 | ||
4834 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4835 | ||
4836 | fi; | |
4837 | ||
4838 | eval "$ac_cv_use_exceptions" | |
4839 | if test "$no_cache" != 1; then | |
4840 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4841 | fi | |
4842 | ||
4843 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4844 | echo "$as_me:$LINENO: result: yes" >&5 | |
4845 | echo "${ECHO_T}yes" >&6 | |
4846 | else | |
4847 | echo "$as_me:$LINENO: result: no" >&5 | |
4848 | echo "${ECHO_T}no" >&6 | |
4849 | fi | |
4850 | ||
4851 | ||
4852 | enablestring= | |
4853 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4854 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4855 | no_cache=0 | |
4856 | # Check whether --enable-ffile or --disable-ffile was given. | |
4857 | if test "${enable_ffile+set}" = set; then | |
4858 | enableval="$enable_ffile" | |
4859 | ||
4860 | if test "$enableval" = yes; then | |
4861 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4862 | else | |
4863 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4864 | fi | |
4865 | ||
4866 | else | |
4867 | ||
4868 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4869 | if test "x$LINE" != x ; then | |
4870 | eval "DEFAULT_$LINE" | |
4871 | else | |
4872 | no_cache=1 | |
4873 | fi | |
4874 | ||
4875 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4876 | ||
4877 | fi; | |
4878 | ||
4879 | eval "$ac_cv_use_ffile" | |
4880 | if test "$no_cache" != 1; then | |
4881 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4882 | fi | |
4883 | ||
4884 | if test "$wxUSE_FFILE" = yes; then | |
4885 | echo "$as_me:$LINENO: result: yes" >&5 | |
4886 | echo "${ECHO_T}yes" >&6 | |
4887 | else | |
4888 | echo "$as_me:$LINENO: result: no" >&5 | |
4889 | echo "${ECHO_T}no" >&6 | |
4890 | fi | |
4891 | ||
4892 | ||
4893 | enablestring= | |
4894 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4895 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4896 | no_cache=0 | |
4897 | # Check whether --enable-file or --disable-file was given. | |
4898 | if test "${enable_file+set}" = set; then | |
4899 | enableval="$enable_file" | |
4900 | ||
4901 | if test "$enableval" = yes; then | |
4902 | ac_cv_use_file='wxUSE_FILE=yes' | |
4903 | else | |
4904 | ac_cv_use_file='wxUSE_FILE=no' | |
4905 | fi | |
4906 | ||
4907 | else | |
4908 | ||
4909 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4910 | if test "x$LINE" != x ; then | |
4911 | eval "DEFAULT_$LINE" | |
4912 | else | |
4913 | no_cache=1 | |
4914 | fi | |
4915 | ||
4916 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4917 | ||
4918 | fi; | |
4919 | ||
4920 | eval "$ac_cv_use_file" | |
4921 | if test "$no_cache" != 1; then | |
4922 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4923 | fi | |
4924 | ||
4925 | if test "$wxUSE_FILE" = yes; then | |
4926 | echo "$as_me:$LINENO: result: yes" >&5 | |
4927 | echo "${ECHO_T}yes" >&6 | |
4928 | else | |
4929 | echo "$as_me:$LINENO: result: no" >&5 | |
4930 | echo "${ECHO_T}no" >&6 | |
4931 | fi | |
4932 | ||
4933 | ||
4934 | enablestring= | |
4935 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
4936 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
4937 | no_cache=0 | |
4938 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4939 | if test "${enable_filesystem+set}" = set; then | |
4940 | enableval="$enable_filesystem" | |
4941 | ||
4942 | if test "$enableval" = yes; then | |
4943 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4944 | else | |
4945 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4946 | fi | |
4947 | ||
4948 | else | |
4949 | ||
4950 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4951 | if test "x$LINE" != x ; then | |
4952 | eval "DEFAULT_$LINE" | |
4953 | else | |
4954 | no_cache=1 | |
4955 | fi | |
4956 | ||
4957 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4958 | ||
4959 | fi; | |
4960 | ||
4961 | eval "$ac_cv_use_filesystem" | |
4962 | if test "$no_cache" != 1; then | |
4963 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4964 | fi | |
4965 | ||
4966 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4967 | echo "$as_me:$LINENO: result: yes" >&5 | |
4968 | echo "${ECHO_T}yes" >&6 | |
4969 | else | |
4970 | echo "$as_me:$LINENO: result: no" >&5 | |
4971 | echo "${ECHO_T}no" >&6 | |
4972 | fi | |
4973 | ||
4974 | ||
4975 | enablestring= | |
4976 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4977 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4978 | no_cache=0 | |
4979 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4980 | if test "${enable_fontmap+set}" = set; then | |
4981 | enableval="$enable_fontmap" | |
4982 | ||
4983 | if test "$enableval" = yes; then | |
4984 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4985 | else | |
4986 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4987 | fi | |
4988 | ||
4989 | else | |
4990 | ||
4991 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4992 | if test "x$LINE" != x ; then | |
4993 | eval "DEFAULT_$LINE" | |
4994 | else | |
4995 | no_cache=1 | |
4996 | fi | |
4997 | ||
4998 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
4999 | ||
5000 | fi; | |
5001 | ||
5002 | eval "$ac_cv_use_fontmap" | |
5003 | if test "$no_cache" != 1; then | |
5004 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5005 | fi | |
5006 | ||
5007 | if test "$wxUSE_FONTMAP" = yes; then | |
5008 | echo "$as_me:$LINENO: result: yes" >&5 | |
5009 | echo "${ECHO_T}yes" >&6 | |
5010 | else | |
5011 | echo "$as_me:$LINENO: result: no" >&5 | |
5012 | echo "${ECHO_T}no" >&6 | |
5013 | fi | |
5014 | ||
5015 | ||
5016 | enablestring= | |
5017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5018 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5019 | no_cache=0 | |
5020 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5021 | if test "${enable_fs_inet+set}" = set; then | |
5022 | enableval="$enable_fs_inet" | |
5023 | ||
5024 | if test "$enableval" = yes; then | |
5025 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5026 | else | |
5027 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5028 | fi | |
5029 | ||
5030 | else | |
5031 | ||
5032 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5033 | if test "x$LINE" != x ; then | |
5034 | eval "DEFAULT_$LINE" | |
5035 | else | |
5036 | no_cache=1 | |
5037 | fi | |
5038 | ||
5039 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5040 | ||
5041 | fi; | |
5042 | ||
5043 | eval "$ac_cv_use_fs_inet" | |
5044 | if test "$no_cache" != 1; then | |
5045 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5046 | fi | |
5047 | ||
5048 | if test "$wxUSE_FS_INET" = yes; then | |
5049 | echo "$as_me:$LINENO: result: yes" >&5 | |
5050 | echo "${ECHO_T}yes" >&6 | |
5051 | else | |
5052 | echo "$as_me:$LINENO: result: no" >&5 | |
5053 | echo "${ECHO_T}no" >&6 | |
5054 | fi | |
5055 | ||
5056 | ||
5057 | enablestring= | |
5058 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5059 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5060 | no_cache=0 | |
5061 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5062 | if test "${enable_fs_zip+set}" = set; then | |
5063 | enableval="$enable_fs_zip" | |
5064 | ||
5065 | if test "$enableval" = yes; then | |
5066 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5067 | else | |
5068 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5069 | fi | |
5070 | ||
5071 | else | |
5072 | ||
5073 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5074 | if test "x$LINE" != x ; then | |
5075 | eval "DEFAULT_$LINE" | |
5076 | else | |
5077 | no_cache=1 | |
5078 | fi | |
5079 | ||
5080 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5081 | ||
5082 | fi; | |
5083 | ||
5084 | eval "$ac_cv_use_fs_zip" | |
5085 | if test "$no_cache" != 1; then | |
5086 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5087 | fi | |
5088 | ||
5089 | if test "$wxUSE_FS_ZIP" = yes; then | |
5090 | echo "$as_me:$LINENO: result: yes" >&5 | |
5091 | echo "${ECHO_T}yes" >&6 | |
5092 | else | |
5093 | echo "$as_me:$LINENO: result: no" >&5 | |
5094 | echo "${ECHO_T}no" >&6 | |
5095 | fi | |
5096 | ||
5097 | ||
5098 | enablestring= | |
5099 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5100 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5101 | no_cache=0 | |
5102 | # Check whether --enable-geometry or --disable-geometry was given. | |
5103 | if test "${enable_geometry+set}" = set; then | |
5104 | enableval="$enable_geometry" | |
5105 | ||
5106 | if test "$enableval" = yes; then | |
5107 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5108 | else | |
5109 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5110 | fi | |
5111 | ||
5112 | else | |
5113 | ||
5114 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5115 | if test "x$LINE" != x ; then | |
5116 | eval "DEFAULT_$LINE" | |
5117 | else | |
5118 | no_cache=1 | |
5119 | fi | |
5120 | ||
5121 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5122 | ||
5123 | fi; | |
5124 | ||
5125 | eval "$ac_cv_use_geometry" | |
5126 | if test "$no_cache" != 1; then | |
5127 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5128 | fi | |
5129 | ||
5130 | if test "$wxUSE_GEOMETRY" = yes; then | |
5131 | echo "$as_me:$LINENO: result: yes" >&5 | |
5132 | echo "${ECHO_T}yes" >&6 | |
5133 | else | |
5134 | echo "$as_me:$LINENO: result: no" >&5 | |
5135 | echo "${ECHO_T}no" >&6 | |
5136 | fi | |
5137 | ||
5138 | ||
5139 | enablestring= | |
5140 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5141 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5142 | no_cache=0 | |
5143 | # Check whether --enable-log or --disable-log was given. | |
5144 | if test "${enable_log+set}" = set; then | |
5145 | enableval="$enable_log" | |
5146 | ||
5147 | if test "$enableval" = yes; then | |
5148 | ac_cv_use_log='wxUSE_LOG=yes' | |
5149 | else | |
5150 | ac_cv_use_log='wxUSE_LOG=no' | |
5151 | fi | |
5152 | ||
5153 | else | |
5154 | ||
5155 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5156 | if test "x$LINE" != x ; then | |
5157 | eval "DEFAULT_$LINE" | |
5158 | else | |
5159 | no_cache=1 | |
5160 | fi | |
5161 | ||
5162 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5163 | ||
5164 | fi; | |
5165 | ||
5166 | eval "$ac_cv_use_log" | |
5167 | if test "$no_cache" != 1; then | |
5168 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5169 | fi | |
5170 | ||
5171 | if test "$wxUSE_LOG" = yes; then | |
5172 | echo "$as_me:$LINENO: result: yes" >&5 | |
5173 | echo "${ECHO_T}yes" >&6 | |
5174 | else | |
5175 | echo "$as_me:$LINENO: result: no" >&5 | |
5176 | echo "${ECHO_T}no" >&6 | |
5177 | fi | |
5178 | ||
5179 | ||
5180 | enablestring= | |
5181 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5182 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5183 | no_cache=0 | |
5184 | # Check whether --enable-longlong or --disable-longlong was given. | |
5185 | if test "${enable_longlong+set}" = set; then | |
5186 | enableval="$enable_longlong" | |
5187 | ||
5188 | if test "$enableval" = yes; then | |
5189 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5190 | else | |
5191 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5192 | fi | |
5193 | ||
5194 | else | |
5195 | ||
5196 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5197 | if test "x$LINE" != x ; then | |
5198 | eval "DEFAULT_$LINE" | |
5199 | else | |
5200 | no_cache=1 | |
5201 | fi | |
5202 | ||
5203 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5204 | ||
5205 | fi; | |
5206 | ||
5207 | eval "$ac_cv_use_longlong" | |
5208 | if test "$no_cache" != 1; then | |
5209 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5210 | fi | |
5211 | ||
5212 | if test "$wxUSE_LONGLONG" = yes; then | |
5213 | echo "$as_me:$LINENO: result: yes" >&5 | |
5214 | echo "${ECHO_T}yes" >&6 | |
5215 | else | |
5216 | echo "$as_me:$LINENO: result: no" >&5 | |
5217 | echo "${ECHO_T}no" >&6 | |
5218 | fi | |
5219 | ||
5220 | ||
5221 | enablestring= | |
5222 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5223 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5224 | no_cache=0 | |
5225 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5226 | if test "${enable_mimetype+set}" = set; then | |
5227 | enableval="$enable_mimetype" | |
5228 | ||
5229 | if test "$enableval" = yes; then | |
5230 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5231 | else | |
5232 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5233 | fi | |
5234 | ||
5235 | else | |
5236 | ||
5237 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5238 | if test "x$LINE" != x ; then | |
5239 | eval "DEFAULT_$LINE" | |
5240 | else | |
5241 | no_cache=1 | |
5242 | fi | |
5243 | ||
5244 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5245 | ||
5246 | fi; | |
5247 | ||
5248 | eval "$ac_cv_use_mimetype" | |
5249 | if test "$no_cache" != 1; then | |
5250 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5251 | fi | |
5252 | ||
5253 | if test "$wxUSE_MIMETYPE" = yes; then | |
5254 | echo "$as_me:$LINENO: result: yes" >&5 | |
5255 | echo "${ECHO_T}yes" >&6 | |
5256 | else | |
5257 | echo "$as_me:$LINENO: result: no" >&5 | |
5258 | echo "${ECHO_T}no" >&6 | |
5259 | fi | |
5260 | ||
5261 | ||
5262 | enablestring= | |
5263 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5264 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5265 | no_cache=0 | |
5266 | # Check whether --enable-mslu or --disable-mslu was given. | |
5267 | if test "${enable_mslu+set}" = set; then | |
5268 | enableval="$enable_mslu" | |
5269 | ||
5270 | if test "$enableval" = yes; then | |
5271 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5272 | else | |
5273 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5274 | fi | |
5275 | ||
5276 | else | |
5277 | ||
5278 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5279 | if test "x$LINE" != x ; then | |
5280 | eval "DEFAULT_$LINE" | |
5281 | else | |
5282 | no_cache=1 | |
5283 | fi | |
5284 | ||
5285 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5286 | ||
5287 | fi; | |
5288 | ||
5289 | eval "$ac_cv_use_mslu" | |
5290 | if test "$no_cache" != 1; then | |
5291 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5292 | fi | |
5293 | ||
5294 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5295 | echo "$as_me:$LINENO: result: yes" >&5 | |
5296 | echo "${ECHO_T}yes" >&6 | |
5297 | else | |
5298 | echo "$as_me:$LINENO: result: no" >&5 | |
5299 | echo "${ECHO_T}no" >&6 | |
5300 | fi | |
5301 | ||
5302 | ||
5303 | enablestring= | |
5304 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5305 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5306 | no_cache=0 | |
5307 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5308 | if test "${enable_snglinst+set}" = set; then | |
5309 | enableval="$enable_snglinst" | |
5310 | ||
5311 | if test "$enableval" = yes; then | |
5312 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5313 | else | |
5314 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5315 | fi | |
5316 | ||
5317 | else | |
5318 | ||
5319 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5320 | if test "x$LINE" != x ; then | |
5321 | eval "DEFAULT_$LINE" | |
5322 | else | |
5323 | no_cache=1 | |
5324 | fi | |
5325 | ||
5326 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5327 | ||
5328 | fi; | |
5329 | ||
5330 | eval "$ac_cv_use_snglinst" | |
5331 | if test "$no_cache" != 1; then | |
5332 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5333 | fi | |
5334 | ||
5335 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5336 | echo "$as_me:$LINENO: result: yes" >&5 | |
5337 | echo "${ECHO_T}yes" >&6 | |
5338 | else | |
5339 | echo "$as_me:$LINENO: result: no" >&5 | |
5340 | echo "${ECHO_T}no" >&6 | |
5341 | fi | |
5342 | ||
5343 | ||
5344 | enablestring= | |
5345 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5346 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5347 | no_cache=0 | |
5348 | # Check whether --enable-streams or --disable-streams was given. | |
5349 | if test "${enable_streams+set}" = set; then | |
5350 | enableval="$enable_streams" | |
5351 | ||
5352 | if test "$enableval" = yes; then | |
5353 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5354 | else | |
5355 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5356 | fi | |
5357 | ||
5358 | else | |
5359 | ||
5360 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5361 | if test "x$LINE" != x ; then | |
5362 | eval "DEFAULT_$LINE" | |
5363 | else | |
5364 | no_cache=1 | |
5365 | fi | |
5366 | ||
5367 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5368 | ||
5369 | fi; | |
5370 | ||
5371 | eval "$ac_cv_use_streams" | |
5372 | if test "$no_cache" != 1; then | |
5373 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5374 | fi | |
5375 | ||
5376 | if test "$wxUSE_STREAMS" = yes; then | |
5377 | echo "$as_me:$LINENO: result: yes" >&5 | |
5378 | echo "${ECHO_T}yes" >&6 | |
5379 | else | |
5380 | echo "$as_me:$LINENO: result: no" >&5 | |
5381 | echo "${ECHO_T}no" >&6 | |
5382 | fi | |
5383 | ||
5384 | ||
5385 | enablestring= | |
5386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5387 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5388 | no_cache=0 | |
5389 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5390 | if test "${enable_std_iostreams+set}" = set; then | |
5391 | enableval="$enable_std_iostreams" | |
5392 | ||
5393 | if test "$enableval" = yes; then | |
5394 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5395 | else | |
5396 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5397 | fi | |
5398 | ||
5399 | else | |
5400 | ||
5401 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5402 | if test "x$LINE" != x ; then | |
5403 | eval "DEFAULT_$LINE" | |
5404 | else | |
5405 | no_cache=1 | |
5406 | fi | |
5407 | ||
5408 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5409 | ||
5410 | fi; | |
5411 | ||
5412 | eval "$ac_cv_use_std_iostreams" | |
5413 | if test "$no_cache" != 1; then | |
5414 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5415 | fi | |
5416 | ||
5417 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5418 | echo "$as_me:$LINENO: result: yes" >&5 | |
5419 | echo "${ECHO_T}yes" >&6 | |
5420 | else | |
5421 | echo "$as_me:$LINENO: result: no" >&5 | |
5422 | echo "${ECHO_T}no" >&6 | |
5423 | fi | |
5424 | ||
5425 | ||
5426 | enablestring= | |
5427 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5428 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5429 | no_cache=0 | |
5430 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5431 | if test "${enable_stopwatch+set}" = set; then | |
5432 | enableval="$enable_stopwatch" | |
5433 | ||
5434 | if test "$enableval" = yes; then | |
5435 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5436 | else | |
5437 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5438 | fi | |
5439 | ||
5440 | else | |
5441 | ||
5442 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5443 | if test "x$LINE" != x ; then | |
5444 | eval "DEFAULT_$LINE" | |
5445 | else | |
5446 | no_cache=1 | |
5447 | fi | |
5448 | ||
5449 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5450 | ||
5451 | fi; | |
5452 | ||
5453 | eval "$ac_cv_use_stopwatch" | |
5454 | if test "$no_cache" != 1; then | |
5455 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5456 | fi | |
5457 | ||
5458 | if test "$wxUSE_STOPWATCH" = yes; then | |
5459 | echo "$as_me:$LINENO: result: yes" >&5 | |
5460 | echo "${ECHO_T}yes" >&6 | |
5461 | else | |
5462 | echo "$as_me:$LINENO: result: no" >&5 | |
5463 | echo "${ECHO_T}no" >&6 | |
5464 | fi | |
5465 | ||
5466 | ||
5467 | enablestring= | |
5468 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5469 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5470 | no_cache=0 | |
5471 | # Check whether --enable-system_options or --disable-system_options was given. | |
5472 | if test "${enable_system_options+set}" = set; then | |
5473 | enableval="$enable_system_options" | |
5474 | ||
5475 | if test "$enableval" = yes; then | |
5476 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5477 | else | |
5478 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5479 | fi | |
5480 | ||
5481 | else | |
5482 | ||
5483 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5484 | if test "x$LINE" != x ; then | |
5485 | eval "DEFAULT_$LINE" | |
5486 | else | |
5487 | no_cache=1 | |
5488 | fi | |
5489 | ||
5490 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5491 | ||
5492 | fi; | |
5493 | ||
5494 | eval "$ac_cv_use_system_options" | |
5495 | if test "$no_cache" != 1; then | |
5496 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5497 | fi | |
5498 | ||
5499 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5500 | echo "$as_me:$LINENO: result: yes" >&5 | |
5501 | echo "${ECHO_T}yes" >&6 | |
5502 | else | |
5503 | echo "$as_me:$LINENO: result: no" >&5 | |
5504 | echo "${ECHO_T}no" >&6 | |
5505 | fi | |
5506 | ||
5507 | ||
5508 | enablestring= | |
5509 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5510 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5511 | no_cache=0 | |
5512 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5513 | if test "${enable_textbuf+set}" = set; then | |
5514 | enableval="$enable_textbuf" | |
5515 | ||
5516 | if test "$enableval" = yes; then | |
5517 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5518 | else | |
5519 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5520 | fi | |
5521 | ||
5522 | else | |
5523 | ||
5524 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5525 | if test "x$LINE" != x ; then | |
5526 | eval "DEFAULT_$LINE" | |
5527 | else | |
5528 | no_cache=1 | |
5529 | fi | |
5530 | ||
5531 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5532 | ||
5533 | fi; | |
5534 | ||
5535 | eval "$ac_cv_use_textbuf" | |
5536 | if test "$no_cache" != 1; then | |
5537 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5538 | fi | |
5539 | ||
5540 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5541 | echo "$as_me:$LINENO: result: yes" >&5 | |
5542 | echo "${ECHO_T}yes" >&6 | |
5543 | else | |
5544 | echo "$as_me:$LINENO: result: no" >&5 | |
5545 | echo "${ECHO_T}no" >&6 | |
5546 | fi | |
5547 | ||
5548 | ||
5549 | enablestring= | |
5550 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5551 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5552 | no_cache=0 | |
5553 | # Check whether --enable-textfile or --disable-textfile was given. | |
5554 | if test "${enable_textfile+set}" = set; then | |
5555 | enableval="$enable_textfile" | |
5556 | ||
5557 | if test "$enableval" = yes; then | |
5558 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5559 | else | |
5560 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5561 | fi | |
5562 | ||
5563 | else | |
5564 | ||
5565 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5566 | if test "x$LINE" != x ; then | |
5567 | eval "DEFAULT_$LINE" | |
5568 | else | |
5569 | no_cache=1 | |
5570 | fi | |
5571 | ||
5572 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5573 | ||
5574 | fi; | |
5575 | ||
5576 | eval "$ac_cv_use_textfile" | |
5577 | if test "$no_cache" != 1; then | |
5578 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5579 | fi | |
5580 | ||
5581 | if test "$wxUSE_TEXTFILE" = yes; then | |
5582 | echo "$as_me:$LINENO: result: yes" >&5 | |
5583 | echo "${ECHO_T}yes" >&6 | |
5584 | else | |
5585 | echo "$as_me:$LINENO: result: no" >&5 | |
5586 | echo "${ECHO_T}no" >&6 | |
5587 | fi | |
5588 | ||
5589 | ||
5590 | enablestring= | |
5591 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5592 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5593 | no_cache=0 | |
5594 | # Check whether --enable-timer or --disable-timer was given. | |
5595 | if test "${enable_timer+set}" = set; then | |
5596 | enableval="$enable_timer" | |
5597 | ||
5598 | if test "$enableval" = yes; then | |
5599 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5600 | else | |
5601 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5602 | fi | |
5603 | ||
5604 | else | |
5605 | ||
5606 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5607 | if test "x$LINE" != x ; then | |
5608 | eval "DEFAULT_$LINE" | |
5609 | else | |
5610 | no_cache=1 | |
5611 | fi | |
5612 | ||
5613 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5614 | ||
5615 | fi; | |
5616 | ||
5617 | eval "$ac_cv_use_timer" | |
5618 | if test "$no_cache" != 1; then | |
5619 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5620 | fi | |
5621 | ||
5622 | if test "$wxUSE_TIMER" = yes; then | |
5623 | echo "$as_me:$LINENO: result: yes" >&5 | |
5624 | echo "${ECHO_T}yes" >&6 | |
5625 | else | |
5626 | echo "$as_me:$LINENO: result: no" >&5 | |
5627 | echo "${ECHO_T}no" >&6 | |
5628 | fi | |
5629 | ||
5630 | ||
5631 | enablestring= | |
5632 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5633 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5634 | no_cache=0 | |
5635 | # Check whether --enable-unicode or --disable-unicode was given. | |
5636 | if test "${enable_unicode+set}" = set; then | |
5637 | enableval="$enable_unicode" | |
5638 | ||
5639 | if test "$enableval" = yes; then | |
5640 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5641 | else | |
5642 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5643 | fi | |
5644 | ||
5645 | else | |
5646 | ||
5647 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5648 | if test "x$LINE" != x ; then | |
5649 | eval "DEFAULT_$LINE" | |
5650 | else | |
5651 | no_cache=1 | |
5652 | fi | |
5653 | ||
5654 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5655 | ||
5656 | fi; | |
5657 | ||
5658 | eval "$ac_cv_use_unicode" | |
5659 | if test "$no_cache" != 1; then | |
5660 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5661 | fi | |
5662 | ||
5663 | if test "$wxUSE_UNICODE" = yes; then | |
5664 | echo "$as_me:$LINENO: result: yes" >&5 | |
5665 | echo "${ECHO_T}yes" >&6 | |
5666 | else | |
5667 | echo "$as_me:$LINENO: result: no" >&5 | |
5668 | echo "${ECHO_T}no" >&6 | |
5669 | fi | |
5670 | ||
5671 | ||
5672 | enablestring= | |
5673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5674 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5675 | no_cache=0 | |
5676 | # Check whether --enable-sound or --disable-sound was given. | |
5677 | if test "${enable_sound+set}" = set; then | |
5678 | enableval="$enable_sound" | |
5679 | ||
5680 | if test "$enableval" = yes; then | |
5681 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5682 | else | |
5683 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5684 | fi | |
5685 | ||
5686 | else | |
5687 | ||
5688 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5689 | if test "x$LINE" != x ; then | |
5690 | eval "DEFAULT_$LINE" | |
5691 | else | |
5692 | no_cache=1 | |
5693 | fi | |
5694 | ||
5695 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5696 | ||
5697 | fi; | |
5698 | ||
5699 | eval "$ac_cv_use_sound" | |
5700 | if test "$no_cache" != 1; then | |
5701 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5702 | fi | |
5703 | ||
5704 | if test "$wxUSE_SOUND" = yes; then | |
5705 | echo "$as_me:$LINENO: result: yes" >&5 | |
5706 | echo "${ECHO_T}yes" >&6 | |
5707 | else | |
5708 | echo "$as_me:$LINENO: result: no" >&5 | |
5709 | echo "${ECHO_T}no" >&6 | |
5710 | fi | |
5711 | ||
5712 | ||
5713 | enablestring= | |
5714 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5715 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5716 | no_cache=0 | |
5717 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5718 | if test "${enable_wxprintfv+set}" = set; then | |
5719 | enableval="$enable_wxprintfv" | |
5720 | ||
5721 | if test "$enableval" = yes; then | |
5722 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5723 | else | |
5724 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5725 | fi | |
5726 | ||
5727 | else | |
5728 | ||
5729 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5730 | if test "x$LINE" != x ; then | |
5731 | eval "DEFAULT_$LINE" | |
5732 | else | |
5733 | no_cache=1 | |
5734 | fi | |
5735 | ||
5736 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5737 | ||
5738 | fi; | |
5739 | ||
5740 | eval "$ac_cv_use_wxprintfv" | |
5741 | if test "$no_cache" != 1; then | |
5742 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5743 | fi | |
5744 | ||
5745 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5746 | echo "$as_me:$LINENO: result: yes" >&5 | |
5747 | echo "${ECHO_T}yes" >&6 | |
5748 | else | |
5749 | echo "$as_me:$LINENO: result: no" >&5 | |
5750 | echo "${ECHO_T}no" >&6 | |
5751 | fi | |
5752 | ||
5753 | ||
5754 | enablestring= | |
5755 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5756 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5757 | no_cache=0 | |
5758 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5759 | if test "${enable_zipstream+set}" = set; then | |
5760 | enableval="$enable_zipstream" | |
5761 | ||
5762 | if test "$enableval" = yes; then | |
5763 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5764 | else | |
5765 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5766 | fi | |
5767 | ||
5768 | else | |
5769 | ||
5770 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5771 | if test "x$LINE" != x ; then | |
5772 | eval "DEFAULT_$LINE" | |
5773 | else | |
5774 | no_cache=1 | |
5775 | fi | |
5776 | ||
5777 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5778 | ||
5779 | fi; | |
5780 | ||
5781 | eval "$ac_cv_use_zipstream" | |
5782 | if test "$no_cache" != 1; then | |
5783 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5784 | fi | |
5785 | ||
5786 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5787 | echo "$as_me:$LINENO: result: yes" >&5 | |
5788 | echo "${ECHO_T}yes" >&6 | |
5789 | else | |
5790 | echo "$as_me:$LINENO: result: no" >&5 | |
5791 | echo "${ECHO_T}no" >&6 | |
5792 | fi | |
5793 | ||
5794 | ||
a848cd7e SC |
5795 | |
5796 | enablestring= | |
5797 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5798 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5799 | no_cache=0 | |
5800 | # Check whether --enable-url or --disable-url was given. | |
5801 | if test "${enable_url+set}" = set; then | |
5802 | enableval="$enable_url" | |
5803 | ||
5804 | if test "$enableval" = yes; then | |
5805 | ac_cv_use_url='wxUSE_URL=yes' | |
5806 | else | |
5807 | ac_cv_use_url='wxUSE_URL=no' | |
5808 | fi | |
5809 | ||
5810 | else | |
5811 | ||
5812 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5813 | if test "x$LINE" != x ; then | |
5814 | eval "DEFAULT_$LINE" | |
5815 | else | |
5816 | no_cache=1 | |
5817 | fi | |
5818 | ||
5819 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5820 | ||
5821 | fi; | |
5822 | ||
5823 | eval "$ac_cv_use_url" | |
5824 | if test "$no_cache" != 1; then | |
5825 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5826 | fi | |
5827 | ||
5828 | if test "$wxUSE_URL" = yes; then | |
5829 | echo "$as_me:$LINENO: result: yes" >&5 | |
5830 | echo "${ECHO_T}yes" >&6 | |
5831 | else | |
5832 | echo "$as_me:$LINENO: result: no" >&5 | |
5833 | echo "${ECHO_T}no" >&6 | |
5834 | fi | |
5835 | ||
5836 | ||
5837 | enablestring= | |
5838 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5839 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5840 | no_cache=0 | |
5841 | # Check whether --enable-protocol or --disable-protocol was given. | |
5842 | if test "${enable_protocol+set}" = set; then | |
5843 | enableval="$enable_protocol" | |
5844 | ||
5845 | if test "$enableval" = yes; then | |
5846 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5847 | else | |
5848 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5849 | fi | |
5850 | ||
5851 | else | |
5852 | ||
5853 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5854 | if test "x$LINE" != x ; then | |
5855 | eval "DEFAULT_$LINE" | |
5856 | else | |
5857 | no_cache=1 | |
5858 | fi | |
5859 | ||
5860 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5861 | ||
5862 | fi; | |
5863 | ||
5864 | eval "$ac_cv_use_protocol" | |
5865 | if test "$no_cache" != 1; then | |
5866 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5867 | fi | |
5868 | ||
5869 | if test "$wxUSE_PROTOCOL" = yes; then | |
5870 | echo "$as_me:$LINENO: result: yes" >&5 | |
5871 | echo "${ECHO_T}yes" >&6 | |
5872 | else | |
5873 | echo "$as_me:$LINENO: result: no" >&5 | |
5874 | echo "${ECHO_T}no" >&6 | |
5875 | fi | |
5876 | ||
5877 | ||
5878 | enablestring= | |
5879 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5880 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5881 | no_cache=0 | |
5882 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5883 | if test "${enable_protocol_http+set}" = set; then | |
5884 | enableval="$enable_protocol_http" | |
5885 | ||
5886 | if test "$enableval" = yes; then | |
5887 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5888 | else | |
5889 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5890 | fi | |
5891 | ||
5892 | else | |
5893 | ||
5894 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5895 | if test "x$LINE" != x ; then | |
5896 | eval "DEFAULT_$LINE" | |
5897 | else | |
5898 | no_cache=1 | |
5899 | fi | |
5900 | ||
5901 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5902 | ||
5903 | fi; | |
5904 | ||
5905 | eval "$ac_cv_use_protocol_http" | |
5906 | if test "$no_cache" != 1; then | |
5907 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5908 | fi | |
5909 | ||
5910 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5911 | echo "$as_me:$LINENO: result: yes" >&5 | |
5912 | echo "${ECHO_T}yes" >&6 | |
5913 | else | |
5914 | echo "$as_me:$LINENO: result: no" >&5 | |
5915 | echo "${ECHO_T}no" >&6 | |
5916 | fi | |
5917 | ||
5918 | ||
5919 | enablestring= | |
5920 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5921 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5922 | no_cache=0 | |
5923 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5924 | if test "${enable_protocol_ftp+set}" = set; then | |
5925 | enableval="$enable_protocol_ftp" | |
5926 | ||
5927 | if test "$enableval" = yes; then | |
5928 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5929 | else | |
5930 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5931 | fi | |
5932 | ||
5933 | else | |
5934 | ||
5935 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5936 | if test "x$LINE" != x ; then | |
5937 | eval "DEFAULT_$LINE" | |
5938 | else | |
5939 | no_cache=1 | |
5940 | fi | |
5941 | ||
5942 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5943 | ||
5944 | fi; | |
5945 | ||
5946 | eval "$ac_cv_use_protocol_ftp" | |
5947 | if test "$no_cache" != 1; then | |
5948 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5949 | fi | |
5950 | ||
5951 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5952 | echo "$as_me:$LINENO: result: yes" >&5 | |
5953 | echo "${ECHO_T}yes" >&6 | |
5954 | else | |
5955 | echo "$as_me:$LINENO: result: no" >&5 | |
5956 | echo "${ECHO_T}no" >&6 | |
5957 | fi | |
5958 | ||
5959 | ||
5960 | enablestring= | |
5961 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5962 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5963 | no_cache=0 | |
5964 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5965 | if test "${enable_protocol_file+set}" = set; then | |
5966 | enableval="$enable_protocol_file" | |
5967 | ||
5968 | if test "$enableval" = yes; then | |
5969 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5970 | else | |
5971 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5972 | fi | |
5973 | ||
5974 | else | |
5975 | ||
5976 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5977 | if test "x$LINE" != x ; then | |
5978 | eval "DEFAULT_$LINE" | |
5979 | else | |
5980 | no_cache=1 | |
5981 | fi | |
5982 | ||
5983 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5984 | ||
5985 | fi; | |
5986 | ||
5987 | eval "$ac_cv_use_protocol_file" | |
5988 | if test "$no_cache" != 1; then | |
5989 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5990 | fi | |
5991 | ||
5992 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
5993 | echo "$as_me:$LINENO: result: yes" >&5 | |
5994 | echo "${ECHO_T}yes" >&6 | |
5995 | else | |
5996 | echo "$as_me:$LINENO: result: no" >&5 | |
5997 | echo "${ECHO_T}no" >&6 | |
5998 | fi | |
5999 | ||
6000 | ||
6001 | ||
6002 | ||
6003 | ||
6004 | enablestring= | |
6005 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6006 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6007 | no_cache=0 | |
6008 | # Check whether --enable-threads or --disable-threads was given. | |
6009 | if test "${enable_threads+set}" = set; then | |
6010 | enableval="$enable_threads" | |
6011 | ||
6012 | if test "$enableval" = yes; then | |
6013 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6014 | else | |
6015 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6016 | fi | |
6017 | ||
6018 | else | |
6019 | ||
6020 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6021 | if test "x$LINE" != x ; then | |
6022 | eval "DEFAULT_$LINE" | |
6023 | else | |
6024 | no_cache=1 | |
6025 | fi | |
6026 | ||
6027 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6028 | ||
6029 | fi; | |
6030 | ||
6031 | eval "$ac_cv_use_threads" | |
6032 | if test "$no_cache" != 1; then | |
6033 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6034 | fi | |
6035 | ||
6036 | if test "$wxUSE_THREADS" = yes; then | |
6037 | echo "$as_me:$LINENO: result: yes" >&5 | |
6038 | echo "${ECHO_T}yes" >&6 | |
6039 | else | |
6040 | echo "$as_me:$LINENO: result: no" >&5 | |
6041 | echo "${ECHO_T}no" >&6 | |
6042 | fi | |
6043 | ||
6044 | ||
6045 | if test "$wxUSE_GUI" = "yes"; then | |
6046 | ||
6047 | ||
6048 | ||
6049 | enablestring= | |
6050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6051 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6052 | no_cache=0 | |
6053 | # Check whether --enable-docview or --disable-docview was given. | |
6054 | if test "${enable_docview+set}" = set; then | |
6055 | enableval="$enable_docview" | |
6056 | ||
6057 | if test "$enableval" = yes; then | |
6058 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6059 | else | |
6060 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6061 | fi | |
6062 | ||
6063 | else | |
6064 | ||
6065 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6066 | if test "x$LINE" != x ; then | |
6067 | eval "DEFAULT_$LINE" | |
6068 | else | |
6069 | no_cache=1 | |
6070 | fi | |
6071 | ||
6072 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6073 | ||
6074 | fi; | |
6075 | ||
6076 | eval "$ac_cv_use_docview" | |
6077 | if test "$no_cache" != 1; then | |
6078 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6079 | fi | |
6080 | ||
6081 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6082 | echo "$as_me:$LINENO: result: yes" >&5 | |
6083 | echo "${ECHO_T}yes" >&6 | |
6084 | else | |
6085 | echo "$as_me:$LINENO: result: no" >&5 | |
6086 | echo "${ECHO_T}no" >&6 | |
6087 | fi | |
6088 | ||
6089 | ||
6090 | enablestring= | |
6091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6092 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6093 | no_cache=0 | |
6094 | # Check whether --enable-help or --disable-help was given. | |
6095 | if test "${enable_help+set}" = set; then | |
6096 | enableval="$enable_help" | |
6097 | ||
6098 | if test "$enableval" = yes; then | |
6099 | ac_cv_use_help='wxUSE_HELP=yes' | |
6100 | else | |
6101 | ac_cv_use_help='wxUSE_HELP=no' | |
6102 | fi | |
6103 | ||
6104 | else | |
6105 | ||
6106 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6107 | if test "x$LINE" != x ; then | |
6108 | eval "DEFAULT_$LINE" | |
6109 | else | |
6110 | no_cache=1 | |
6111 | fi | |
6112 | ||
6113 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6114 | ||
6115 | fi; | |
6116 | ||
6117 | eval "$ac_cv_use_help" | |
6118 | if test "$no_cache" != 1; then | |
6119 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6120 | fi | |
6121 | ||
6122 | if test "$wxUSE_HELP" = yes; then | |
6123 | echo "$as_me:$LINENO: result: yes" >&5 | |
6124 | echo "${ECHO_T}yes" >&6 | |
6125 | else | |
6126 | echo "$as_me:$LINENO: result: no" >&5 | |
6127 | echo "${ECHO_T}no" >&6 | |
6128 | fi | |
6129 | ||
6130 | ||
6131 | enablestring= | |
6132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6133 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6134 | no_cache=0 | |
6135 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6136 | if test "${enable_mshtmlhelp+set}" = set; then | |
6137 | enableval="$enable_mshtmlhelp" | |
6138 | ||
6139 | if test "$enableval" = yes; then | |
6140 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6141 | else | |
6142 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6143 | fi | |
6144 | ||
6145 | else | |
6146 | ||
6147 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6148 | if test "x$LINE" != x ; then | |
6149 | eval "DEFAULT_$LINE" | |
6150 | else | |
6151 | no_cache=1 | |
6152 | fi | |
6153 | ||
6154 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6155 | ||
6156 | fi; | |
6157 | ||
6158 | eval "$ac_cv_use_mshtmlhelp" | |
6159 | if test "$no_cache" != 1; then | |
6160 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6161 | fi | |
6162 | ||
6163 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6164 | echo "$as_me:$LINENO: result: yes" >&5 | |
6165 | echo "${ECHO_T}yes" >&6 | |
6166 | else | |
6167 | echo "$as_me:$LINENO: result: no" >&5 | |
6168 | echo "${ECHO_T}no" >&6 | |
6169 | fi | |
6170 | ||
6171 | ||
6172 | enablestring= | |
6173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6174 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6175 | no_cache=0 | |
6176 | # Check whether --enable-html or --disable-html was given. | |
6177 | if test "${enable_html+set}" = set; then | |
6178 | enableval="$enable_html" | |
6179 | ||
6180 | if test "$enableval" = yes; then | |
6181 | ac_cv_use_html='wxUSE_HTML=yes' | |
6182 | else | |
6183 | ac_cv_use_html='wxUSE_HTML=no' | |
6184 | fi | |
6185 | ||
6186 | else | |
6187 | ||
6188 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6189 | if test "x$LINE" != x ; then | |
6190 | eval "DEFAULT_$LINE" | |
6191 | else | |
6192 | no_cache=1 | |
6193 | fi | |
6194 | ||
6195 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6196 | ||
6197 | fi; | |
6198 | ||
6199 | eval "$ac_cv_use_html" | |
6200 | if test "$no_cache" != 1; then | |
6201 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6202 | fi | |
6203 | ||
6204 | if test "$wxUSE_HTML" = yes; then | |
6205 | echo "$as_me:$LINENO: result: yes" >&5 | |
6206 | echo "${ECHO_T}yes" >&6 | |
6207 | else | |
6208 | echo "$as_me:$LINENO: result: no" >&5 | |
6209 | echo "${ECHO_T}no" >&6 | |
6210 | fi | |
6211 | ||
6212 | ||
6213 | enablestring= | |
6214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6215 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6216 | no_cache=0 | |
6217 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6218 | if test "${enable_htmlhelp+set}" = set; then | |
6219 | enableval="$enable_htmlhelp" | |
6220 | ||
6221 | if test "$enableval" = yes; then | |
6222 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6223 | else | |
6224 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6225 | fi | |
6226 | ||
6227 | else | |
6228 | ||
6229 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6230 | if test "x$LINE" != x ; then | |
6231 | eval "DEFAULT_$LINE" | |
6232 | else | |
6233 | no_cache=1 | |
6234 | fi | |
6235 | ||
6236 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6237 | ||
6238 | fi; | |
6239 | ||
6240 | eval "$ac_cv_use_htmlhelp" | |
6241 | if test "$no_cache" != 1; then | |
6242 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6243 | fi | |
6244 | ||
6245 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6246 | echo "$as_me:$LINENO: result: yes" >&5 | |
6247 | echo "${ECHO_T}yes" >&6 | |
6248 | else | |
6249 | echo "$as_me:$LINENO: result: no" >&5 | |
6250 | echo "${ECHO_T}no" >&6 | |
6251 | fi | |
6252 | ||
6253 | ||
6254 | enablestring= | |
6255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6256 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6257 | no_cache=0 | |
6258 | # Check whether --enable-constraints or --disable-constraints was given. | |
6259 | if test "${enable_constraints+set}" = set; then | |
6260 | enableval="$enable_constraints" | |
6261 | ||
6262 | if test "$enableval" = yes; then | |
6263 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6264 | else | |
6265 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6266 | fi | |
6267 | ||
6268 | else | |
6269 | ||
6270 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6271 | if test "x$LINE" != x ; then | |
6272 | eval "DEFAULT_$LINE" | |
6273 | else | |
6274 | no_cache=1 | |
6275 | fi | |
6276 | ||
6277 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6278 | ||
6279 | fi; | |
6280 | ||
6281 | eval "$ac_cv_use_constraints" | |
6282 | if test "$no_cache" != 1; then | |
6283 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6284 | fi | |
6285 | ||
6286 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6287 | echo "$as_me:$LINENO: result: yes" >&5 | |
6288 | echo "${ECHO_T}yes" >&6 | |
6289 | else | |
6290 | echo "$as_me:$LINENO: result: no" >&5 | |
6291 | echo "${ECHO_T}no" >&6 | |
6292 | fi | |
6293 | ||
6294 | ||
6295 | enablestring= | |
6296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6297 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6298 | no_cache=0 | |
6299 | # Check whether --enable-printarch or --disable-printarch was given. | |
6300 | if test "${enable_printarch+set}" = set; then | |
6301 | enableval="$enable_printarch" | |
6302 | ||
6303 | if test "$enableval" = yes; then | |
6304 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6305 | else | |
6306 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6307 | fi | |
6308 | ||
6309 | else | |
6310 | ||
6311 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6312 | if test "x$LINE" != x ; then | |
6313 | eval "DEFAULT_$LINE" | |
6314 | else | |
6315 | no_cache=1 | |
6316 | fi | |
6317 | ||
6318 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6319 | ||
6320 | fi; | |
6321 | ||
6322 | eval "$ac_cv_use_printarch" | |
6323 | if test "$no_cache" != 1; then | |
6324 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6325 | fi | |
6326 | ||
6327 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6328 | echo "$as_me:$LINENO: result: yes" >&5 | |
6329 | echo "${ECHO_T}yes" >&6 | |
6330 | else | |
6331 | echo "$as_me:$LINENO: result: no" >&5 | |
6332 | echo "${ECHO_T}no" >&6 | |
6333 | fi | |
6334 | ||
6335 | ||
6336 | enablestring= | |
6337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6338 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6339 | no_cache=0 | |
6340 | # Check whether --enable-mdi or --disable-mdi was given. | |
6341 | if test "${enable_mdi+set}" = set; then | |
6342 | enableval="$enable_mdi" | |
6343 | ||
6344 | if test "$enableval" = yes; then | |
8a7b1113 | 6345 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6346 | else |
8a7b1113 | 6347 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6348 | fi |
6349 | ||
6350 | else | |
6351 | ||
8a7b1113 | 6352 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6353 | if test "x$LINE" != x ; then |
6354 | eval "DEFAULT_$LINE" | |
6355 | else | |
6356 | no_cache=1 | |
6357 | fi | |
6358 | ||
8a7b1113 | 6359 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6360 | |
6361 | fi; | |
6362 | ||
6363 | eval "$ac_cv_use_mdi" | |
6364 | if test "$no_cache" != 1; then | |
6365 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6366 | fi | |
6367 | ||
8a7b1113 VZ |
6368 | if test "$wxUSE_MDI" = yes; then |
6369 | echo "$as_me:$LINENO: result: yes" >&5 | |
6370 | echo "${ECHO_T}yes" >&6 | |
6371 | else | |
6372 | echo "$as_me:$LINENO: result: no" >&5 | |
6373 | echo "${ECHO_T}no" >&6 | |
6374 | fi | |
6375 | ||
6376 | ||
6377 | enablestring= | |
6378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6379 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6380 | no_cache=0 | |
6381 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6382 | if test "${enable_mdidoc+set}" = set; then | |
6383 | enableval="$enable_mdidoc" | |
6384 | ||
6385 | if test "$enableval" = yes; then | |
6386 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6387 | else | |
6388 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6389 | fi | |
6390 | ||
6391 | else | |
6392 | ||
6393 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6394 | if test "x$LINE" != x ; then | |
6395 | eval "DEFAULT_$LINE" | |
6396 | else | |
6397 | no_cache=1 | |
6398 | fi | |
6399 | ||
6400 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6401 | ||
6402 | fi; | |
6403 | ||
6404 | eval "$ac_cv_use_mdidoc" | |
6405 | if test "$no_cache" != 1; then | |
6406 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6407 | fi | |
6408 | ||
a848cd7e SC |
6409 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6410 | echo "$as_me:$LINENO: result: yes" >&5 | |
6411 | echo "${ECHO_T}yes" >&6 | |
6412 | else | |
6413 | echo "$as_me:$LINENO: result: no" >&5 | |
6414 | echo "${ECHO_T}no" >&6 | |
6415 | fi | |
6416 | ||
6417 | ||
6418 | enablestring= | |
6419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6420 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6421 | no_cache=0 | |
6422 | # Check whether --enable-loggui or --disable-loggui was given. | |
6423 | if test "${enable_loggui+set}" = set; then | |
6424 | enableval="$enable_loggui" | |
6425 | ||
6426 | if test "$enableval" = yes; then | |
6427 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6428 | else | |
6429 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6430 | fi | |
6431 | ||
6432 | else | |
6433 | ||
6434 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6435 | if test "x$LINE" != x ; then | |
6436 | eval "DEFAULT_$LINE" | |
6437 | else | |
6438 | no_cache=1 | |
6439 | fi | |
6440 | ||
6441 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6442 | ||
6443 | fi; | |
6444 | ||
6445 | eval "$ac_cv_use_loggui" | |
6446 | if test "$no_cache" != 1; then | |
6447 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6448 | fi | |
6449 | ||
6450 | if test "$wxUSE_LOGGUI" = yes; then | |
6451 | echo "$as_me:$LINENO: result: yes" >&5 | |
6452 | echo "${ECHO_T}yes" >&6 | |
6453 | else | |
6454 | echo "$as_me:$LINENO: result: no" >&5 | |
6455 | echo "${ECHO_T}no" >&6 | |
6456 | fi | |
6457 | ||
6458 | ||
6459 | enablestring= | |
6460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6461 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6462 | no_cache=0 | |
6463 | # Check whether --enable-logwin or --disable-logwin was given. | |
6464 | if test "${enable_logwin+set}" = set; then | |
6465 | enableval="$enable_logwin" | |
6466 | ||
6467 | if test "$enableval" = yes; then | |
6468 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6469 | else | |
6470 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6471 | fi | |
6472 | ||
6473 | else | |
6474 | ||
6475 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6476 | if test "x$LINE" != x ; then | |
6477 | eval "DEFAULT_$LINE" | |
6478 | else | |
6479 | no_cache=1 | |
6480 | fi | |
6481 | ||
6482 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6483 | ||
6484 | fi; | |
6485 | ||
6486 | eval "$ac_cv_use_logwin" | |
6487 | if test "$no_cache" != 1; then | |
6488 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6489 | fi | |
6490 | ||
6491 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6492 | echo "$as_me:$LINENO: result: yes" >&5 | |
6493 | echo "${ECHO_T}yes" >&6 | |
6494 | else | |
6495 | echo "$as_me:$LINENO: result: no" >&5 | |
6496 | echo "${ECHO_T}no" >&6 | |
6497 | fi | |
6498 | ||
6499 | ||
6500 | enablestring= | |
6501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6502 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6503 | no_cache=0 | |
6504 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6505 | if test "${enable_logdialog+set}" = set; then | |
6506 | enableval="$enable_logdialog" | |
6507 | ||
6508 | if test "$enableval" = yes; then | |
6509 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6510 | else | |
6511 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6512 | fi | |
6513 | ||
6514 | else | |
6515 | ||
6516 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6517 | if test "x$LINE" != x ; then | |
6518 | eval "DEFAULT_$LINE" | |
6519 | else | |
6520 | no_cache=1 | |
6521 | fi | |
6522 | ||
6523 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6524 | ||
6525 | fi; | |
6526 | ||
6527 | eval "$ac_cv_use_logdialog" | |
6528 | if test "$no_cache" != 1; then | |
6529 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6530 | fi | |
6531 | ||
6532 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6533 | echo "$as_me:$LINENO: result: yes" >&5 | |
6534 | echo "${ECHO_T}yes" >&6 | |
6535 | else | |
6536 | echo "$as_me:$LINENO: result: no" >&5 | |
6537 | echo "${ECHO_T}no" >&6 | |
6538 | fi | |
6539 | ||
6540 | ||
646b6ec1 VS |
6541 | enablestring= |
6542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6543 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6544 | no_cache=0 | |
6545 | # Check whether --enable-webkit or --disable-webkit was given. | |
6546 | if test "${enable_webkit+set}" = set; then | |
6547 | enableval="$enable_webkit" | |
6548 | ||
6549 | if test "$enableval" = yes; then | |
6550 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6551 | else | |
6552 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6553 | fi | |
6554 | ||
6555 | else | |
6556 | ||
6557 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6558 | if test "x$LINE" != x ; then | |
6559 | eval "DEFAULT_$LINE" | |
6560 | else | |
6561 | no_cache=1 | |
6562 | fi | |
6563 | ||
6564 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6565 | ||
6566 | fi; | |
6567 | ||
6568 | eval "$ac_cv_use_webkit" | |
6569 | if test "$no_cache" != 1; then | |
6570 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6571 | fi | |
6572 | ||
6573 | if test "$wxUSE_WEBKIT" = yes; then | |
6574 | echo "$as_me:$LINENO: result: yes" >&5 | |
6575 | echo "${ECHO_T}yes" >&6 | |
6576 | else | |
6577 | echo "$as_me:$LINENO: result: no" >&5 | |
6578 | echo "${ECHO_T}no" >&6 | |
6579 | fi | |
6580 | ||
6581 | ||
a848cd7e SC |
6582 | |
6583 | enablestring= | |
6584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6585 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6586 | no_cache=0 | |
6587 | # Check whether --enable-postscript or --disable-postscript was given. | |
6588 | if test "${enable_postscript+set}" = set; then | |
6589 | enableval="$enable_postscript" | |
6590 | ||
6591 | if test "$enableval" = yes; then | |
6592 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6593 | else | |
6594 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6595 | fi | |
6596 | ||
6597 | else | |
6598 | ||
6599 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6600 | if test "x$LINE" != x ; then | |
6601 | eval "DEFAULT_$LINE" | |
6602 | else | |
6603 | no_cache=1 | |
6604 | fi | |
6605 | ||
6606 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6607 | ||
6608 | fi; | |
6609 | ||
6610 | eval "$ac_cv_use_postscript" | |
6611 | if test "$no_cache" != 1; then | |
6612 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6613 | fi | |
6614 | ||
6615 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6616 | echo "$as_me:$LINENO: result: yes" >&5 | |
6617 | echo "${ECHO_T}yes" >&6 | |
6618 | else | |
6619 | echo "$as_me:$LINENO: result: no" >&5 | |
6620 | echo "${ECHO_T}no" >&6 | |
6621 | fi | |
6622 | ||
6623 | ||
6624 | ||
6625 | ||
6626 | ||
6627 | enablestring= | |
6628 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6629 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6630 | no_cache=0 | |
6631 | # Check whether --enable-prologio or --disable-prologio was given. | |
6632 | if test "${enable_prologio+set}" = set; then | |
6633 | enableval="$enable_prologio" | |
6634 | ||
6635 | if test "$enableval" = yes; then | |
6636 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6637 | else | |
6638 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6639 | fi | |
6640 | ||
6641 | else | |
6642 | ||
6643 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6644 | if test "x$LINE" != x ; then | |
6645 | eval "DEFAULT_$LINE" | |
6646 | else | |
6647 | no_cache=1 | |
6648 | fi | |
6649 | ||
6650 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6651 | ||
6652 | fi; | |
6653 | ||
6654 | eval "$ac_cv_use_prologio" | |
6655 | if test "$no_cache" != 1; then | |
6656 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6657 | fi | |
6658 | ||
6659 | if test "$wxUSE_PROLOGIO" = yes; then | |
6660 | echo "$as_me:$LINENO: result: yes" >&5 | |
6661 | echo "${ECHO_T}yes" >&6 | |
6662 | else | |
6663 | echo "$as_me:$LINENO: result: no" >&5 | |
6664 | echo "${ECHO_T}no" >&6 | |
6665 | fi | |
6666 | ||
6667 | ||
6668 | enablestring= | |
6669 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6670 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6671 | no_cache=0 | |
6672 | # Check whether --enable-resources or --disable-resources was given. | |
6673 | if test "${enable_resources+set}" = set; then | |
6674 | enableval="$enable_resources" | |
6675 | ||
6676 | if test "$enableval" = yes; then | |
6677 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6678 | else | |
6679 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6680 | fi | |
6681 | ||
6682 | else | |
6683 | ||
6684 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6685 | if test "x$LINE" != x ; then | |
6686 | eval "DEFAULT_$LINE" | |
6687 | else | |
6688 | no_cache=1 | |
6689 | fi | |
6690 | ||
6691 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6692 | ||
6693 | fi; | |
6694 | ||
6695 | eval "$ac_cv_use_resources" | |
6696 | if test "$no_cache" != 1; then | |
6697 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6698 | fi | |
6699 | ||
6700 | if test "$wxUSE_RESOURCES" = yes; then | |
6701 | echo "$as_me:$LINENO: result: yes" >&5 | |
6702 | echo "${ECHO_T}yes" >&6 | |
6703 | else | |
6704 | echo "$as_me:$LINENO: result: no" >&5 | |
6705 | echo "${ECHO_T}no" >&6 | |
6706 | fi | |
6707 | ||
6708 | ||
6709 | ||
6710 | ||
6711 | enablestring= | |
6712 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6713 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6714 | no_cache=0 | |
6715 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6716 | if test "${enable_clipboard+set}" = set; then | |
6717 | enableval="$enable_clipboard" | |
6718 | ||
6719 | if test "$enableval" = yes; then | |
6720 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6721 | else | |
6722 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6723 | fi | |
6724 | ||
6725 | else | |
6726 | ||
6727 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6728 | if test "x$LINE" != x ; then | |
6729 | eval "DEFAULT_$LINE" | |
6730 | else | |
6731 | no_cache=1 | |
6732 | fi | |
6733 | ||
6734 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6735 | ||
6736 | fi; | |
6737 | ||
6738 | eval "$ac_cv_use_clipboard" | |
6739 | if test "$no_cache" != 1; then | |
6740 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6741 | fi | |
6742 | ||
6743 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6744 | echo "$as_me:$LINENO: result: yes" >&5 | |
6745 | echo "${ECHO_T}yes" >&6 | |
6746 | else | |
6747 | echo "$as_me:$LINENO: result: no" >&5 | |
6748 | echo "${ECHO_T}no" >&6 | |
6749 | fi | |
6750 | ||
6751 | ||
6752 | enablestring= | |
6753 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6754 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6755 | no_cache=0 | |
6756 | # Check whether --enable-dnd or --disable-dnd was given. | |
6757 | if test "${enable_dnd+set}" = set; then | |
6758 | enableval="$enable_dnd" | |
6759 | ||
6760 | if test "$enableval" = yes; then | |
6761 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6762 | else | |
6763 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6764 | fi | |
6765 | ||
6766 | else | |
6767 | ||
6768 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6769 | if test "x$LINE" != x ; then | |
6770 | eval "DEFAULT_$LINE" | |
6771 | else | |
6772 | no_cache=1 | |
6773 | fi | |
6774 | ||
6775 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6776 | ||
6777 | fi; | |
6778 | ||
6779 | eval "$ac_cv_use_dnd" | |
6780 | if test "$no_cache" != 1; then | |
6781 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6782 | fi | |
6783 | ||
6784 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6785 | echo "$as_me:$LINENO: result: yes" >&5 | |
6786 | echo "${ECHO_T}yes" >&6 | |
6787 | else | |
6788 | echo "$as_me:$LINENO: result: no" >&5 | |
6789 | echo "${ECHO_T}no" >&6 | |
6790 | fi | |
6791 | ||
6792 | ||
6793 | enablestring= | |
6794 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6795 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6796 | no_cache=0 | |
6797 | # Check whether --enable-metafile or --disable-metafile was given. | |
6798 | if test "${enable_metafile+set}" = set; then | |
6799 | enableval="$enable_metafile" | |
6800 | ||
6801 | if test "$enableval" = yes; then | |
6802 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6803 | else | |
6804 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6805 | fi | |
6806 | ||
6807 | else | |
6808 | ||
6809 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6810 | if test "x$LINE" != x ; then | |
6811 | eval "DEFAULT_$LINE" | |
6812 | else | |
6813 | no_cache=1 | |
6814 | fi | |
6815 | ||
6816 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6817 | ||
6818 | fi; | |
6819 | ||
6820 | eval "$ac_cv_use_metafile" | |
6821 | if test "$no_cache" != 1; then | |
6822 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6823 | fi | |
6824 | ||
6825 | if test "$wxUSE_METAFILE" = yes; then | |
6826 | echo "$as_me:$LINENO: result: yes" >&5 | |
6827 | echo "${ECHO_T}yes" >&6 | |
6828 | else | |
6829 | echo "$as_me:$LINENO: result: no" >&5 | |
6830 | echo "${ECHO_T}no" >&6 | |
6831 | fi | |
6832 | ||
6833 | ||
6834 | ||
6835 | ||
6836 | ||
6837 | enablestring= | |
6838 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6839 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6840 | no_cache=0 | |
6841 | # Check whether --enable-controls or --disable-controls was given. | |
6842 | if test "${enable_controls+set}" = set; then | |
6843 | enableval="$enable_controls" | |
6844 | ||
6845 | if test "$enableval" = yes; then | |
6846 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6847 | else | |
6848 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6849 | fi | |
6850 | ||
6851 | else | |
6852 | ||
6853 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6854 | if test "x$LINE" != x ; then | |
6855 | eval "DEFAULT_$LINE" | |
6856 | else | |
6857 | no_cache=1 | |
6858 | fi | |
6859 | ||
6860 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6861 | ||
6862 | fi; | |
6863 | ||
6864 | eval "$ac_cv_use_controls" | |
6865 | if test "$no_cache" != 1; then | |
6866 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6867 | fi | |
6868 | ||
6869 | if test "$wxUSE_CONTROLS" = yes; then | |
6870 | echo "$as_me:$LINENO: result: yes" >&5 | |
6871 | echo "${ECHO_T}yes" >&6 | |
6872 | else | |
6873 | echo "$as_me:$LINENO: result: no" >&5 | |
6874 | echo "${ECHO_T}no" >&6 | |
6875 | fi | |
6876 | ||
6877 | ||
6878 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6879 | DEFAULT_wxUSE_ACCEL=yes | |
6880 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6881 | DEFAULT_wxUSE_BUTTON=yes | |
6882 | DEFAULT_wxUSE_CALCTRL=no | |
6883 | DEFAULT_wxUSE_CARET=yes | |
6884 | DEFAULT_wxUSE_COMBOBOX=yes | |
6885 | DEFAULT_wxUSE_CHECKBOX=yes | |
6886 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6887 | DEFAULT_wxUSE_CHOICE=yes | |
6888 | DEFAULT_wxUSE_GAUGE=yes | |
6889 | DEFAULT_wxUSE_GRID=yes | |
6890 | DEFAULT_wxUSE_IMAGLIST=yes | |
6891 | DEFAULT_wxUSE_LISTBOOK=yes | |
6892 | DEFAULT_wxUSE_LISTBOX=yes | |
6893 | DEFAULT_wxUSE_LISTCTRL=yes | |
6894 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6895 | DEFAULT_wxUSE_RADIOBOX=yes | |
6896 | DEFAULT_wxUSE_RADIOBTN=yes | |
6897 | DEFAULT_wxUSE_SASH=yes | |
6898 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6899 | DEFAULT_wxUSE_SLIDER=yes | |
6900 | DEFAULT_wxUSE_SPINBTN=yes | |
6901 | DEFAULT_wxUSE_SPINCTRL=yes | |
6902 | DEFAULT_wxUSE_SPLITTER=yes | |
6903 | DEFAULT_wxUSE_STATBMP=yes | |
6904 | DEFAULT_wxUSE_STATBOX=yes | |
6905 | DEFAULT_wxUSE_STATLINE=yes | |
6906 | DEFAULT_wxUSE_STATUSBAR=yes | |
6907 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6908 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6909 | DEFAULT_wxUSE_TOOLBAR=yes | |
6910 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6911 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6912 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6913 | DEFAULT_wxUSE_TREECTRL=yes | |
6914 | DEFAULT_wxUSE_POPUPWIN=yes | |
6915 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6916 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6917 | DEFAULT_wxUSE_ACCEL=no | |
6918 | DEFAULT_wxUSE_BMPBUTTON=no | |
6919 | DEFAULT_wxUSE_BUTTON=no | |
6920 | DEFAULT_wxUSE_CALCTRL=no | |
6921 | DEFAULT_wxUSE_CARET=no | |
6922 | DEFAULT_wxUSE_COMBOBOX=no | |
6923 | DEFAULT_wxUSE_CHECKBOX=no | |
6924 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6925 | DEFAULT_wxUSE_CHOICE=no | |
6926 | DEFAULT_wxUSE_GAUGE=no | |
6927 | DEFAULT_wxUSE_GRID=no | |
6928 | DEFAULT_wxUSE_IMAGLIST=no | |
6929 | DEFAULT_wxUSE_LISTBOOK=no | |
6930 | DEFAULT_wxUSE_LISTBOX=no | |
6931 | DEFAULT_wxUSE_LISTCTRL=no | |
6932 | DEFAULT_wxUSE_NOTEBOOK=no | |
6933 | DEFAULT_wxUSE_RADIOBOX=no | |
6934 | DEFAULT_wxUSE_RADIOBTN=no | |
6935 | DEFAULT_wxUSE_SASH=no | |
6936 | DEFAULT_wxUSE_SCROLLBAR=no | |
6937 | DEFAULT_wxUSE_SLIDER=no | |
6938 | DEFAULT_wxUSE_SPINBTN=no | |
6939 | DEFAULT_wxUSE_SPINCTRL=no | |
6940 | DEFAULT_wxUSE_SPLITTER=no | |
6941 | DEFAULT_wxUSE_STATBMP=no | |
6942 | DEFAULT_wxUSE_STATBOX=no | |
6943 | DEFAULT_wxUSE_STATLINE=no | |
6944 | DEFAULT_wxUSE_STATUSBAR=no | |
6945 | DEFAULT_wxUSE_TAB_DIALOG=no | |
6946 | DEFAULT_wxUSE_TOGGLEBTN=no | |
6947 | DEFAULT_wxUSE_TOOLBAR=no | |
6948 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
6949 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
6950 | DEFAULT_wxUSE_TOOLTIPS=no | |
6951 | DEFAULT_wxUSE_TREECTRL=no | |
6952 | DEFAULT_wxUSE_POPUPWIN=no | |
6953 | DEFAULT_wxUSE_TIPWINDOW=no | |
6954 | fi | |
6955 | ||
6956 | ## FIXME: This is a blatant hack | |
6957 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6958 | wxUSE_PRINTING_ARCHITECTURE=no | |
6959 | wxUSE_DRAG_AND_DROP=no | |
6960 | # Generic notebook requires tab dialog | |
6961 | DEFAULT_wxUSE_TABDIALOG=yes | |
6962 | DEFAULT_wxUSE_SCROLLBAR=no | |
6963 | DEFAULT_wxUSE_TOOLTIPS=no | |
6964 | DEFAULT_wxUSE_DRAGIMAGE=no | |
6965 | fi | |
6966 | ||
6967 | ||
6968 | enablestring= | |
6969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
6970 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
6971 | no_cache=0 | |
6972 | # Check whether --enable-accel or --disable-accel was given. | |
6973 | if test "${enable_accel+set}" = set; then | |
6974 | enableval="$enable_accel" | |
6975 | ||
6976 | if test "$enableval" = yes; then | |
6977 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6978 | else | |
6979 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6980 | fi | |
6981 | ||
6982 | else | |
6983 | ||
6984 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
6985 | if test "x$LINE" != x ; then | |
6986 | eval "DEFAULT_$LINE" | |
6987 | else | |
6988 | no_cache=1 | |
6989 | fi | |
6990 | ||
6991 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
6992 | ||
6993 | fi; | |
6994 | ||
6995 | eval "$ac_cv_use_accel" | |
6996 | if test "$no_cache" != 1; then | |
6997 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6998 | fi | |
6999 | ||
7000 | if test "$wxUSE_ACCEL" = yes; then | |
7001 | echo "$as_me:$LINENO: result: yes" >&5 | |
7002 | echo "${ECHO_T}yes" >&6 | |
7003 | else | |
7004 | echo "$as_me:$LINENO: result: no" >&5 | |
7005 | echo "${ECHO_T}no" >&6 | |
7006 | fi | |
7007 | ||
7008 | ||
7009 | enablestring= | |
7010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7011 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7012 | no_cache=0 | |
7013 | # Check whether --enable-button or --disable-button was given. | |
7014 | if test "${enable_button+set}" = set; then | |
7015 | enableval="$enable_button" | |
7016 | ||
7017 | if test "$enableval" = yes; then | |
7018 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7019 | else | |
7020 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7021 | fi | |
7022 | ||
7023 | else | |
7024 | ||
7025 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7026 | if test "x$LINE" != x ; then | |
7027 | eval "DEFAULT_$LINE" | |
7028 | else | |
7029 | no_cache=1 | |
7030 | fi | |
7031 | ||
7032 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7033 | ||
7034 | fi; | |
7035 | ||
7036 | eval "$ac_cv_use_button" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_BUTTON" = yes; then | |
7042 | echo "$as_me:$LINENO: result: yes" >&5 | |
7043 | echo "${ECHO_T}yes" >&6 | |
7044 | else | |
7045 | echo "$as_me:$LINENO: result: no" >&5 | |
7046 | echo "${ECHO_T}no" >&6 | |
7047 | fi | |
7048 | ||
7049 | ||
7050 | enablestring= | |
7051 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7052 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7053 | no_cache=0 | |
7054 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7055 | if test "${enable_bmpbutton+set}" = set; then | |
7056 | enableval="$enable_bmpbutton" | |
7057 | ||
7058 | if test "$enableval" = yes; then | |
7059 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7060 | else | |
7061 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7062 | fi | |
7063 | ||
7064 | else | |
7065 | ||
7066 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7067 | if test "x$LINE" != x ; then | |
7068 | eval "DEFAULT_$LINE" | |
7069 | else | |
7070 | no_cache=1 | |
7071 | fi | |
7072 | ||
7073 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7074 | ||
7075 | fi; | |
7076 | ||
7077 | eval "$ac_cv_use_bmpbutton" | |
7078 | if test "$no_cache" != 1; then | |
7079 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7080 | fi | |
7081 | ||
7082 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7083 | echo "$as_me:$LINENO: result: yes" >&5 | |
7084 | echo "${ECHO_T}yes" >&6 | |
7085 | else | |
7086 | echo "$as_me:$LINENO: result: no" >&5 | |
7087 | echo "${ECHO_T}no" >&6 | |
7088 | fi | |
7089 | ||
7090 | ||
7091 | enablestring= | |
7092 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7093 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7094 | no_cache=0 | |
7095 | # Check whether --enable-calendar or --disable-calendar was given. | |
7096 | if test "${enable_calendar+set}" = set; then | |
7097 | enableval="$enable_calendar" | |
7098 | ||
7099 | if test "$enableval" = yes; then | |
7100 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7101 | else | |
7102 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7103 | fi | |
7104 | ||
7105 | else | |
7106 | ||
7107 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7108 | if test "x$LINE" != x ; then | |
7109 | eval "DEFAULT_$LINE" | |
7110 | else | |
7111 | no_cache=1 | |
7112 | fi | |
7113 | ||
7114 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7115 | ||
7116 | fi; | |
7117 | ||
7118 | eval "$ac_cv_use_calendar" | |
7119 | if test "$no_cache" != 1; then | |
7120 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7121 | fi | |
7122 | ||
7123 | if test "$wxUSE_CALCTRL" = yes; then | |
7124 | echo "$as_me:$LINENO: result: yes" >&5 | |
7125 | echo "${ECHO_T}yes" >&6 | |
7126 | else | |
7127 | echo "$as_me:$LINENO: result: no" >&5 | |
7128 | echo "${ECHO_T}no" >&6 | |
7129 | fi | |
7130 | ||
7131 | ||
7132 | enablestring= | |
7133 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7134 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7135 | no_cache=0 | |
7136 | # Check whether --enable-caret or --disable-caret was given. | |
7137 | if test "${enable_caret+set}" = set; then | |
7138 | enableval="$enable_caret" | |
7139 | ||
7140 | if test "$enableval" = yes; then | |
7141 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7142 | else | |
7143 | ac_cv_use_caret='wxUSE_CARET=no' | |
7144 | fi | |
7145 | ||
7146 | else | |
7147 | ||
7148 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7149 | if test "x$LINE" != x ; then | |
7150 | eval "DEFAULT_$LINE" | |
7151 | else | |
7152 | no_cache=1 | |
7153 | fi | |
7154 | ||
7155 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7156 | ||
7157 | fi; | |
7158 | ||
7159 | eval "$ac_cv_use_caret" | |
7160 | if test "$no_cache" != 1; then | |
7161 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7162 | fi | |
7163 | ||
7164 | if test "$wxUSE_CARET" = yes; then | |
7165 | echo "$as_me:$LINENO: result: yes" >&5 | |
7166 | echo "${ECHO_T}yes" >&6 | |
7167 | else | |
7168 | echo "$as_me:$LINENO: result: no" >&5 | |
7169 | echo "${ECHO_T}no" >&6 | |
7170 | fi | |
7171 | ||
7172 | ||
7173 | enablestring= | |
7174 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7175 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7176 | no_cache=0 | |
7177 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7178 | if test "${enable_checkbox+set}" = set; then | |
7179 | enableval="$enable_checkbox" | |
7180 | ||
7181 | if test "$enableval" = yes; then | |
7182 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7183 | else | |
7184 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7185 | fi | |
7186 | ||
7187 | else | |
7188 | ||
7189 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7190 | if test "x$LINE" != x ; then | |
7191 | eval "DEFAULT_$LINE" | |
7192 | else | |
7193 | no_cache=1 | |
7194 | fi | |
7195 | ||
7196 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7197 | ||
7198 | fi; | |
7199 | ||
7200 | eval "$ac_cv_use_checkbox" | |
7201 | if test "$no_cache" != 1; then | |
7202 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7203 | fi | |
7204 | ||
7205 | if test "$wxUSE_CHECKBOX" = yes; then | |
7206 | echo "$as_me:$LINENO: result: yes" >&5 | |
7207 | echo "${ECHO_T}yes" >&6 | |
7208 | else | |
7209 | echo "$as_me:$LINENO: result: no" >&5 | |
7210 | echo "${ECHO_T}no" >&6 | |
7211 | fi | |
7212 | ||
7213 | ||
7214 | enablestring= | |
7215 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7216 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7217 | no_cache=0 | |
7218 | # Check whether --enable-checklst or --disable-checklst was given. | |
7219 | if test "${enable_checklst+set}" = set; then | |
7220 | enableval="$enable_checklst" | |
7221 | ||
7222 | if test "$enableval" = yes; then | |
7223 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7224 | else | |
7225 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7226 | fi | |
7227 | ||
7228 | else | |
7229 | ||
7230 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7231 | if test "x$LINE" != x ; then | |
7232 | eval "DEFAULT_$LINE" | |
7233 | else | |
7234 | no_cache=1 | |
7235 | fi | |
7236 | ||
7237 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7238 | ||
7239 | fi; | |
7240 | ||
7241 | eval "$ac_cv_use_checklst" | |
7242 | if test "$no_cache" != 1; then | |
7243 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7244 | fi | |
7245 | ||
7246 | if test "$wxUSE_CHECKLST" = yes; then | |
7247 | echo "$as_me:$LINENO: result: yes" >&5 | |
7248 | echo "${ECHO_T}yes" >&6 | |
7249 | else | |
7250 | echo "$as_me:$LINENO: result: no" >&5 | |
7251 | echo "${ECHO_T}no" >&6 | |
7252 | fi | |
7253 | ||
7254 | ||
7255 | enablestring= | |
7256 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7257 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7258 | no_cache=0 | |
7259 | # Check whether --enable-choice or --disable-choice was given. | |
7260 | if test "${enable_choice+set}" = set; then | |
7261 | enableval="$enable_choice" | |
7262 | ||
7263 | if test "$enableval" = yes; then | |
7264 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7265 | else | |
7266 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7267 | fi | |
7268 | ||
7269 | else | |
7270 | ||
7271 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7272 | if test "x$LINE" != x ; then | |
7273 | eval "DEFAULT_$LINE" | |
7274 | else | |
7275 | no_cache=1 | |
7276 | fi | |
7277 | ||
7278 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7279 | ||
7280 | fi; | |
7281 | ||
7282 | eval "$ac_cv_use_choice" | |
7283 | if test "$no_cache" != 1; then | |
7284 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7285 | fi | |
7286 | ||
7287 | if test "$wxUSE_CHOICE" = yes; then | |
7288 | echo "$as_me:$LINENO: result: yes" >&5 | |
7289 | echo "${ECHO_T}yes" >&6 | |
7290 | else | |
7291 | echo "$as_me:$LINENO: result: no" >&5 | |
7292 | echo "${ECHO_T}no" >&6 | |
7293 | fi | |
7294 | ||
7295 | ||
7296 | enablestring= | |
7297 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7298 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7299 | no_cache=0 | |
7300 | # Check whether --enable-combobox or --disable-combobox was given. | |
7301 | if test "${enable_combobox+set}" = set; then | |
7302 | enableval="$enable_combobox" | |
7303 | ||
7304 | if test "$enableval" = yes; then | |
7305 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7306 | else | |
7307 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7308 | fi | |
7309 | ||
7310 | else | |
7311 | ||
7312 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7313 | if test "x$LINE" != x ; then | |
7314 | eval "DEFAULT_$LINE" | |
7315 | else | |
7316 | no_cache=1 | |
7317 | fi | |
7318 | ||
7319 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7320 | ||
7321 | fi; | |
7322 | ||
7323 | eval "$ac_cv_use_combobox" | |
7324 | if test "$no_cache" != 1; then | |
7325 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7326 | fi | |
7327 | ||
7328 | if test "$wxUSE_COMBOBOX" = yes; then | |
7329 | echo "$as_me:$LINENO: result: yes" >&5 | |
7330 | echo "${ECHO_T}yes" >&6 | |
7331 | else | |
7332 | echo "$as_me:$LINENO: result: no" >&5 | |
7333 | echo "${ECHO_T}no" >&6 | |
7334 | fi | |
7335 | ||
7336 | ||
7337 | enablestring= | |
7338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7339 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7340 | no_cache=0 | |
7341 | # Check whether --enable-display or --disable-display was given. | |
7342 | if test "${enable_display+set}" = set; then | |
7343 | enableval="$enable_display" | |
7344 | ||
7345 | if test "$enableval" = yes; then | |
7346 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7347 | else | |
7348 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7349 | fi | |
7350 | ||
7351 | else | |
7352 | ||
7353 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7354 | if test "x$LINE" != x ; then | |
7355 | eval "DEFAULT_$LINE" | |
7356 | else | |
7357 | no_cache=1 | |
7358 | fi | |
7359 | ||
7360 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7361 | ||
7362 | fi; | |
7363 | ||
7364 | eval "$ac_cv_use_display" | |
7365 | if test "$no_cache" != 1; then | |
7366 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7367 | fi | |
7368 | ||
7369 | if test "$wxUSE_DISPLAY" = yes; then | |
7370 | echo "$as_me:$LINENO: result: yes" >&5 | |
7371 | echo "${ECHO_T}yes" >&6 | |
7372 | else | |
7373 | echo "$as_me:$LINENO: result: no" >&5 | |
7374 | echo "${ECHO_T}no" >&6 | |
7375 | fi | |
7376 | ||
7377 | ||
7378 | enablestring= | |
7379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7380 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7381 | no_cache=0 | |
7382 | # Check whether --enable-gauge or --disable-gauge was given. | |
7383 | if test "${enable_gauge+set}" = set; then | |
7384 | enableval="$enable_gauge" | |
7385 | ||
7386 | if test "$enableval" = yes; then | |
7387 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7388 | else | |
7389 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7390 | fi | |
7391 | ||
7392 | else | |
7393 | ||
7394 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7395 | if test "x$LINE" != x ; then | |
7396 | eval "DEFAULT_$LINE" | |
7397 | else | |
7398 | no_cache=1 | |
7399 | fi | |
7400 | ||
7401 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7402 | ||
7403 | fi; | |
7404 | ||
7405 | eval "$ac_cv_use_gauge" | |
7406 | if test "$no_cache" != 1; then | |
7407 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7408 | fi | |
7409 | ||
7410 | if test "$wxUSE_GAUGE" = yes; then | |
7411 | echo "$as_me:$LINENO: result: yes" >&5 | |
7412 | echo "${ECHO_T}yes" >&6 | |
7413 | else | |
7414 | echo "$as_me:$LINENO: result: no" >&5 | |
7415 | echo "${ECHO_T}no" >&6 | |
7416 | fi | |
7417 | ||
7418 | ||
7419 | enablestring= | |
7420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7421 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7422 | no_cache=0 | |
7423 | # Check whether --enable-grid or --disable-grid was given. | |
7424 | if test "${enable_grid+set}" = set; then | |
7425 | enableval="$enable_grid" | |
7426 | ||
7427 | if test "$enableval" = yes; then | |
7428 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7429 | else | |
7430 | ac_cv_use_grid='wxUSE_GRID=no' | |
7431 | fi | |
7432 | ||
7433 | else | |
7434 | ||
7435 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7436 | if test "x$LINE" != x ; then | |
7437 | eval "DEFAULT_$LINE" | |
7438 | else | |
7439 | no_cache=1 | |
7440 | fi | |
7441 | ||
7442 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7443 | ||
7444 | fi; | |
7445 | ||
7446 | eval "$ac_cv_use_grid" | |
7447 | if test "$no_cache" != 1; then | |
7448 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7449 | fi | |
7450 | ||
7451 | if test "$wxUSE_GRID" = yes; then | |
7452 | echo "$as_me:$LINENO: result: yes" >&5 | |
7453 | echo "${ECHO_T}yes" >&6 | |
7454 | else | |
7455 | echo "$as_me:$LINENO: result: no" >&5 | |
7456 | echo "${ECHO_T}no" >&6 | |
7457 | fi | |
7458 | ||
7459 | ||
7460 | enablestring= | |
7461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7462 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7463 | no_cache=0 | |
7464 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7465 | if test "${enable_imaglist+set}" = set; then | |
7466 | enableval="$enable_imaglist" | |
7467 | ||
7468 | if test "$enableval" = yes; then | |
7469 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7470 | else | |
7471 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7472 | fi | |
7473 | ||
7474 | else | |
7475 | ||
7476 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7477 | if test "x$LINE" != x ; then | |
7478 | eval "DEFAULT_$LINE" | |
7479 | else | |
7480 | no_cache=1 | |
7481 | fi | |
7482 | ||
7483 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7484 | ||
7485 | fi; | |
7486 | ||
7487 | eval "$ac_cv_use_imaglist" | |
7488 | if test "$no_cache" != 1; then | |
7489 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7490 | fi | |
7491 | ||
7492 | if test "$wxUSE_IMAGLIST" = yes; then | |
7493 | echo "$as_me:$LINENO: result: yes" >&5 | |
7494 | echo "${ECHO_T}yes" >&6 | |
7495 | else | |
7496 | echo "$as_me:$LINENO: result: no" >&5 | |
7497 | echo "${ECHO_T}no" >&6 | |
7498 | fi | |
7499 | ||
7500 | ||
7501 | enablestring= | |
7502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7503 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7504 | no_cache=0 | |
7505 | # Check whether --enable-listbook or --disable-listbook was given. | |
7506 | if test "${enable_listbook+set}" = set; then | |
7507 | enableval="$enable_listbook" | |
7508 | ||
7509 | if test "$enableval" = yes; then | |
7510 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7511 | else | |
7512 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7513 | fi | |
7514 | ||
7515 | else | |
7516 | ||
7517 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7518 | if test "x$LINE" != x ; then | |
7519 | eval "DEFAULT_$LINE" | |
7520 | else | |
7521 | no_cache=1 | |
7522 | fi | |
7523 | ||
7524 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7525 | ||
7526 | fi; | |
7527 | ||
7528 | eval "$ac_cv_use_listbook" | |
7529 | if test "$no_cache" != 1; then | |
7530 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7531 | fi | |
7532 | ||
7533 | if test "$wxUSE_LISTBOOK" = yes; then | |
7534 | echo "$as_me:$LINENO: result: yes" >&5 | |
7535 | echo "${ECHO_T}yes" >&6 | |
7536 | else | |
7537 | echo "$as_me:$LINENO: result: no" >&5 | |
7538 | echo "${ECHO_T}no" >&6 | |
7539 | fi | |
7540 | ||
7541 | ||
7542 | enablestring= | |
7543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7544 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7545 | no_cache=0 | |
7546 | # Check whether --enable-listbox or --disable-listbox was given. | |
7547 | if test "${enable_listbox+set}" = set; then | |
7548 | enableval="$enable_listbox" | |
7549 | ||
7550 | if test "$enableval" = yes; then | |
7551 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7552 | else | |
7553 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7554 | fi | |
7555 | ||
7556 | else | |
7557 | ||
7558 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7559 | if test "x$LINE" != x ; then | |
7560 | eval "DEFAULT_$LINE" | |
7561 | else | |
7562 | no_cache=1 | |
7563 | fi | |
7564 | ||
7565 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7566 | ||
7567 | fi; | |
7568 | ||
7569 | eval "$ac_cv_use_listbox" | |
7570 | if test "$no_cache" != 1; then | |
7571 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7572 | fi | |
7573 | ||
7574 | if test "$wxUSE_LISTBOX" = yes; then | |
7575 | echo "$as_me:$LINENO: result: yes" >&5 | |
7576 | echo "${ECHO_T}yes" >&6 | |
7577 | else | |
7578 | echo "$as_me:$LINENO: result: no" >&5 | |
7579 | echo "${ECHO_T}no" >&6 | |
7580 | fi | |
7581 | ||
7582 | ||
7583 | enablestring= | |
7584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7585 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7586 | no_cache=0 | |
7587 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7588 | if test "${enable_listctrl+set}" = set; then | |
7589 | enableval="$enable_listctrl" | |
7590 | ||
7591 | if test "$enableval" = yes; then | |
7592 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7593 | else | |
7594 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7595 | fi | |
7596 | ||
7597 | else | |
7598 | ||
7599 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7600 | if test "x$LINE" != x ; then | |
7601 | eval "DEFAULT_$LINE" | |
7602 | else | |
7603 | no_cache=1 | |
7604 | fi | |
7605 | ||
7606 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7607 | ||
7608 | fi; | |
7609 | ||
7610 | eval "$ac_cv_use_listctrl" | |
7611 | if test "$no_cache" != 1; then | |
7612 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7613 | fi | |
7614 | ||
7615 | if test "$wxUSE_LISTCTRL" = yes; then | |
7616 | echo "$as_me:$LINENO: result: yes" >&5 | |
7617 | echo "${ECHO_T}yes" >&6 | |
7618 | else | |
7619 | echo "$as_me:$LINENO: result: no" >&5 | |
7620 | echo "${ECHO_T}no" >&6 | |
7621 | fi | |
7622 | ||
7623 | ||
7624 | enablestring= | |
7625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7626 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7627 | no_cache=0 | |
7628 | # Check whether --enable-notebook or --disable-notebook was given. | |
7629 | if test "${enable_notebook+set}" = set; then | |
7630 | enableval="$enable_notebook" | |
7631 | ||
7632 | if test "$enableval" = yes; then | |
7633 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7634 | else | |
7635 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7636 | fi | |
7637 | ||
7638 | else | |
7639 | ||
7640 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7641 | if test "x$LINE" != x ; then | |
7642 | eval "DEFAULT_$LINE" | |
7643 | else | |
7644 | no_cache=1 | |
7645 | fi | |
7646 | ||
7647 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7648 | ||
7649 | fi; | |
7650 | ||
7651 | eval "$ac_cv_use_notebook" | |
7652 | if test "$no_cache" != 1; then | |
7653 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7654 | fi | |
7655 | ||
7656 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7657 | echo "$as_me:$LINENO: result: yes" >&5 | |
7658 | echo "${ECHO_T}yes" >&6 | |
7659 | else | |
7660 | echo "$as_me:$LINENO: result: no" >&5 | |
7661 | echo "${ECHO_T}no" >&6 | |
7662 | fi | |
7663 | ||
7664 | ||
7665 | enablestring= | |
7666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7667 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7668 | no_cache=0 | |
7669 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7670 | if test "${enable_radiobox+set}" = set; then | |
7671 | enableval="$enable_radiobox" | |
7672 | ||
7673 | if test "$enableval" = yes; then | |
7674 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7675 | else | |
7676 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7677 | fi | |
7678 | ||
7679 | else | |
7680 | ||
7681 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7682 | if test "x$LINE" != x ; then | |
7683 | eval "DEFAULT_$LINE" | |
7684 | else | |
7685 | no_cache=1 | |
7686 | fi | |
7687 | ||
7688 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7689 | ||
7690 | fi; | |
7691 | ||
7692 | eval "$ac_cv_use_radiobox" | |
7693 | if test "$no_cache" != 1; then | |
7694 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7695 | fi | |
7696 | ||
7697 | if test "$wxUSE_RADIOBOX" = yes; then | |
7698 | echo "$as_me:$LINENO: result: yes" >&5 | |
7699 | echo "${ECHO_T}yes" >&6 | |
7700 | else | |
7701 | echo "$as_me:$LINENO: result: no" >&5 | |
7702 | echo "${ECHO_T}no" >&6 | |
7703 | fi | |
7704 | ||
7705 | ||
7706 | enablestring= | |
7707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7708 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7709 | no_cache=0 | |
7710 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7711 | if test "${enable_radiobtn+set}" = set; then | |
7712 | enableval="$enable_radiobtn" | |
7713 | ||
7714 | if test "$enableval" = yes; then | |
7715 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7716 | else | |
7717 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7718 | fi | |
7719 | ||
7720 | else | |
7721 | ||
7722 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7723 | if test "x$LINE" != x ; then | |
7724 | eval "DEFAULT_$LINE" | |
7725 | else | |
7726 | no_cache=1 | |
7727 | fi | |
7728 | ||
7729 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7730 | ||
7731 | fi; | |
7732 | ||
7733 | eval "$ac_cv_use_radiobtn" | |
7734 | if test "$no_cache" != 1; then | |
7735 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7736 | fi | |
7737 | ||
7738 | if test "$wxUSE_RADIOBTN" = yes; then | |
7739 | echo "$as_me:$LINENO: result: yes" >&5 | |
7740 | echo "${ECHO_T}yes" >&6 | |
7741 | else | |
7742 | echo "$as_me:$LINENO: result: no" >&5 | |
7743 | echo "${ECHO_T}no" >&6 | |
7744 | fi | |
7745 | ||
7746 | ||
7747 | enablestring= | |
7748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7749 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7750 | no_cache=0 | |
7751 | # Check whether --enable-sash or --disable-sash was given. | |
7752 | if test "${enable_sash+set}" = set; then | |
7753 | enableval="$enable_sash" | |
7754 | ||
7755 | if test "$enableval" = yes; then | |
7756 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7757 | else | |
7758 | ac_cv_use_sash='wxUSE_SASH=no' | |
7759 | fi | |
7760 | ||
7761 | else | |
7762 | ||
7763 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7764 | if test "x$LINE" != x ; then | |
7765 | eval "DEFAULT_$LINE" | |
7766 | else | |
7767 | no_cache=1 | |
7768 | fi | |
7769 | ||
7770 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7771 | ||
7772 | fi; | |
7773 | ||
7774 | eval "$ac_cv_use_sash" | |
7775 | if test "$no_cache" != 1; then | |
7776 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7777 | fi | |
7778 | ||
7779 | if test "$wxUSE_SASH" = yes; then | |
7780 | echo "$as_me:$LINENO: result: yes" >&5 | |
7781 | echo "${ECHO_T}yes" >&6 | |
7782 | else | |
7783 | echo "$as_me:$LINENO: result: no" >&5 | |
7784 | echo "${ECHO_T}no" >&6 | |
7785 | fi | |
7786 | ||
7787 | ||
7788 | enablestring= | |
7789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7790 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7791 | no_cache=0 | |
7792 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7793 | if test "${enable_scrollbar+set}" = set; then | |
7794 | enableval="$enable_scrollbar" | |
7795 | ||
7796 | if test "$enableval" = yes; then | |
7797 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7798 | else | |
7799 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7800 | fi | |
7801 | ||
7802 | else | |
7803 | ||
7804 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7805 | if test "x$LINE" != x ; then | |
7806 | eval "DEFAULT_$LINE" | |
7807 | else | |
7808 | no_cache=1 | |
7809 | fi | |
7810 | ||
7811 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7812 | ||
7813 | fi; | |
7814 | ||
7815 | eval "$ac_cv_use_scrollbar" | |
7816 | if test "$no_cache" != 1; then | |
7817 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7818 | fi | |
7819 | ||
7820 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7821 | echo "$as_me:$LINENO: result: yes" >&5 | |
7822 | echo "${ECHO_T}yes" >&6 | |
7823 | else | |
7824 | echo "$as_me:$LINENO: result: no" >&5 | |
7825 | echo "${ECHO_T}no" >&6 | |
7826 | fi | |
7827 | ||
7828 | ||
7829 | enablestring= | |
7830 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7831 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7832 | no_cache=0 | |
7833 | # Check whether --enable-slider or --disable-slider was given. | |
7834 | if test "${enable_slider+set}" = set; then | |
7835 | enableval="$enable_slider" | |
7836 | ||
7837 | if test "$enableval" = yes; then | |
7838 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7839 | else | |
7840 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7841 | fi | |
7842 | ||
7843 | else | |
7844 | ||
7845 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
7846 | if test "x$LINE" != x ; then | |
7847 | eval "DEFAULT_$LINE" | |
7848 | else | |
7849 | no_cache=1 | |
7850 | fi | |
7851 | ||
7852 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7853 | ||
7854 | fi; | |
7855 | ||
7856 | eval "$ac_cv_use_slider" | |
7857 | if test "$no_cache" != 1; then | |
7858 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7859 | fi | |
7860 | ||
7861 | if test "$wxUSE_SLIDER" = yes; then | |
7862 | echo "$as_me:$LINENO: result: yes" >&5 | |
7863 | echo "${ECHO_T}yes" >&6 | |
7864 | else | |
7865 | echo "$as_me:$LINENO: result: no" >&5 | |
7866 | echo "${ECHO_T}no" >&6 | |
7867 | fi | |
7868 | ||
7869 | ||
7870 | enablestring= | |
7871 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
7872 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7873 | no_cache=0 | |
7874 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7875 | if test "${enable_spinbtn+set}" = set; then | |
7876 | enableval="$enable_spinbtn" | |
7877 | ||
7878 | if test "$enableval" = yes; then | |
7879 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7880 | else | |
7881 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7882 | fi | |
7883 | ||
7884 | else | |
7885 | ||
7886 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
7887 | if test "x$LINE" != x ; then | |
7888 | eval "DEFAULT_$LINE" | |
7889 | else | |
7890 | no_cache=1 | |
7891 | fi | |
7892 | ||
7893 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7894 | ||
7895 | fi; | |
7896 | ||
7897 | eval "$ac_cv_use_spinbtn" | |
7898 | if test "$no_cache" != 1; then | |
7899 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7900 | fi | |
7901 | ||
7902 | if test "$wxUSE_SPINBTN" = yes; then | |
7903 | echo "$as_me:$LINENO: result: yes" >&5 | |
7904 | echo "${ECHO_T}yes" >&6 | |
7905 | else | |
7906 | echo "$as_me:$LINENO: result: no" >&5 | |
7907 | echo "${ECHO_T}no" >&6 | |
7908 | fi | |
7909 | ||
7910 | ||
7911 | enablestring= | |
7912 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
7913 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
7914 | no_cache=0 | |
7915 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7916 | if test "${enable_spinctrl+set}" = set; then | |
7917 | enableval="$enable_spinctrl" | |
7918 | ||
7919 | if test "$enableval" = yes; then | |
7920 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7921 | else | |
7922 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7923 | fi | |
7924 | ||
7925 | else | |
7926 | ||
7927 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
7928 | if test "x$LINE" != x ; then | |
7929 | eval "DEFAULT_$LINE" | |
7930 | else | |
7931 | no_cache=1 | |
7932 | fi | |
7933 | ||
7934 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
7935 | ||
7936 | fi; | |
7937 | ||
7938 | eval "$ac_cv_use_spinctrl" | |
7939 | if test "$no_cache" != 1; then | |
7940 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7941 | fi | |
7942 | ||
7943 | if test "$wxUSE_SPINCTRL" = yes; then | |
7944 | echo "$as_me:$LINENO: result: yes" >&5 | |
7945 | echo "${ECHO_T}yes" >&6 | |
7946 | else | |
7947 | echo "$as_me:$LINENO: result: no" >&5 | |
7948 | echo "${ECHO_T}no" >&6 | |
7949 | fi | |
7950 | ||
7951 | ||
7952 | enablestring= | |
7953 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
7954 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
7955 | no_cache=0 | |
7956 | # Check whether --enable-splitter or --disable-splitter was given. | |
7957 | if test "${enable_splitter+set}" = set; then | |
7958 | enableval="$enable_splitter" | |
7959 | ||
7960 | if test "$enableval" = yes; then | |
7961 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7962 | else | |
7963 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7964 | fi | |
7965 | ||
7966 | else | |
7967 | ||
7968 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
7969 | if test "x$LINE" != x ; then | |
7970 | eval "DEFAULT_$LINE" | |
7971 | else | |
7972 | no_cache=1 | |
7973 | fi | |
7974 | ||
7975 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
7976 | ||
7977 | fi; | |
7978 | ||
7979 | eval "$ac_cv_use_splitter" | |
7980 | if test "$no_cache" != 1; then | |
7981 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7982 | fi | |
7983 | ||
7984 | if test "$wxUSE_SPLITTER" = yes; then | |
7985 | echo "$as_me:$LINENO: result: yes" >&5 | |
7986 | echo "${ECHO_T}yes" >&6 | |
7987 | else | |
7988 | echo "$as_me:$LINENO: result: no" >&5 | |
7989 | echo "${ECHO_T}no" >&6 | |
7990 | fi | |
7991 | ||
7992 | ||
7993 | enablestring= | |
7994 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
7995 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
7996 | no_cache=0 | |
7997 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7998 | if test "${enable_statbmp+set}" = set; then | |
7999 | enableval="$enable_statbmp" | |
8000 | ||
8001 | if test "$enableval" = yes; then | |
8002 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8003 | else | |
8004 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8005 | fi | |
8006 | ||
8007 | else | |
8008 | ||
8009 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8010 | if test "x$LINE" != x ; then | |
8011 | eval "DEFAULT_$LINE" | |
8012 | else | |
8013 | no_cache=1 | |
8014 | fi | |
8015 | ||
8016 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8017 | ||
8018 | fi; | |
8019 | ||
8020 | eval "$ac_cv_use_statbmp" | |
8021 | if test "$no_cache" != 1; then | |
8022 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8023 | fi | |
8024 | ||
8025 | if test "$wxUSE_STATBMP" = yes; then | |
8026 | echo "$as_me:$LINENO: result: yes" >&5 | |
8027 | echo "${ECHO_T}yes" >&6 | |
8028 | else | |
8029 | echo "$as_me:$LINENO: result: no" >&5 | |
8030 | echo "${ECHO_T}no" >&6 | |
8031 | fi | |
8032 | ||
8033 | ||
8034 | enablestring= | |
8035 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8036 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8037 | no_cache=0 | |
8038 | # Check whether --enable-statbox or --disable-statbox was given. | |
8039 | if test "${enable_statbox+set}" = set; then | |
8040 | enableval="$enable_statbox" | |
8041 | ||
8042 | if test "$enableval" = yes; then | |
8043 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8044 | else | |
8045 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8046 | fi | |
8047 | ||
8048 | else | |
8049 | ||
8050 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8051 | if test "x$LINE" != x ; then | |
8052 | eval "DEFAULT_$LINE" | |
8053 | else | |
8054 | no_cache=1 | |
8055 | fi | |
8056 | ||
8057 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8058 | ||
8059 | fi; | |
8060 | ||
8061 | eval "$ac_cv_use_statbox" | |
8062 | if test "$no_cache" != 1; then | |
8063 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8064 | fi | |
8065 | ||
8066 | if test "$wxUSE_STATBOX" = yes; then | |
8067 | echo "$as_me:$LINENO: result: yes" >&5 | |
8068 | echo "${ECHO_T}yes" >&6 | |
8069 | else | |
8070 | echo "$as_me:$LINENO: result: no" >&5 | |
8071 | echo "${ECHO_T}no" >&6 | |
8072 | fi | |
8073 | ||
8074 | ||
8075 | enablestring= | |
8076 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8077 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8078 | no_cache=0 | |
8079 | # Check whether --enable-statline or --disable-statline was given. | |
8080 | if test "${enable_statline+set}" = set; then | |
8081 | enableval="$enable_statline" | |
8082 | ||
8083 | if test "$enableval" = yes; then | |
8084 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8085 | else | |
8086 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8087 | fi | |
8088 | ||
8089 | else | |
8090 | ||
8091 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8092 | if test "x$LINE" != x ; then | |
8093 | eval "DEFAULT_$LINE" | |
8094 | else | |
8095 | no_cache=1 | |
8096 | fi | |
8097 | ||
8098 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8099 | ||
8100 | fi; | |
8101 | ||
8102 | eval "$ac_cv_use_statline" | |
8103 | if test "$no_cache" != 1; then | |
8104 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8105 | fi | |
8106 | ||
8107 | if test "$wxUSE_STATLINE" = yes; then | |
8108 | echo "$as_me:$LINENO: result: yes" >&5 | |
8109 | echo "${ECHO_T}yes" >&6 | |
8110 | else | |
8111 | echo "$as_me:$LINENO: result: no" >&5 | |
8112 | echo "${ECHO_T}no" >&6 | |
8113 | fi | |
8114 | ||
8115 | ||
8116 | enablestring= | |
8117 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8118 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8119 | no_cache=0 | |
8120 | # Check whether --enable-stattext or --disable-stattext was given. | |
8121 | if test "${enable_stattext+set}" = set; then | |
8122 | enableval="$enable_stattext" | |
8123 | ||
8124 | if test "$enableval" = yes; then | |
8125 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8126 | else | |
8127 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8128 | fi | |
8129 | ||
8130 | else | |
8131 | ||
8132 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8133 | if test "x$LINE" != x ; then | |
8134 | eval "DEFAULT_$LINE" | |
8135 | else | |
8136 | no_cache=1 | |
8137 | fi | |
8138 | ||
8139 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8140 | ||
8141 | fi; | |
8142 | ||
8143 | eval "$ac_cv_use_stattext" | |
8144 | if test "$no_cache" != 1; then | |
8145 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8146 | fi | |
8147 | ||
8148 | if test "$wxUSE_STATTEXT" = yes; then | |
8149 | echo "$as_me:$LINENO: result: yes" >&5 | |
8150 | echo "${ECHO_T}yes" >&6 | |
8151 | else | |
8152 | echo "$as_me:$LINENO: result: no" >&5 | |
8153 | echo "${ECHO_T}no" >&6 | |
8154 | fi | |
8155 | ||
8156 | ||
8157 | enablestring= | |
8158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8159 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8160 | no_cache=0 | |
8161 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8162 | if test "${enable_statusbar+set}" = set; then | |
8163 | enableval="$enable_statusbar" | |
8164 | ||
8165 | if test "$enableval" = yes; then | |
8166 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8167 | else | |
8168 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8169 | fi | |
8170 | ||
8171 | else | |
8172 | ||
8173 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8174 | if test "x$LINE" != x ; then | |
8175 | eval "DEFAULT_$LINE" | |
8176 | else | |
8177 | no_cache=1 | |
8178 | fi | |
8179 | ||
8180 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8181 | ||
8182 | fi; | |
8183 | ||
8184 | eval "$ac_cv_use_statusbar" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_STATUSBAR" = yes; then | |
8190 | echo "$as_me:$LINENO: result: yes" >&5 | |
8191 | echo "${ECHO_T}yes" >&6 | |
8192 | else | |
8193 | echo "$as_me:$LINENO: result: no" >&5 | |
8194 | echo "${ECHO_T}no" >&6 | |
8195 | fi | |
8196 | ||
8197 | ||
8198 | enablestring= | |
8199 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8200 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8201 | no_cache=0 | |
8202 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8203 | if test "${enable_tabdialog+set}" = set; then | |
8204 | enableval="$enable_tabdialog" | |
8205 | ||
8206 | if test "$enableval" = yes; then | |
8207 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8208 | else | |
8209 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8210 | fi | |
8211 | ||
8212 | else | |
8213 | ||
8214 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8215 | if test "x$LINE" != x ; then | |
8216 | eval "DEFAULT_$LINE" | |
8217 | else | |
8218 | no_cache=1 | |
8219 | fi | |
8220 | ||
8221 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8222 | ||
8223 | fi; | |
8224 | ||
8225 | eval "$ac_cv_use_tabdialog" | |
8226 | if test "$no_cache" != 1; then | |
8227 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8228 | fi | |
8229 | ||
8230 | if test "$wxUSE_TABDIALOG" = yes; then | |
8231 | echo "$as_me:$LINENO: result: yes" >&5 | |
8232 | echo "${ECHO_T}yes" >&6 | |
8233 | else | |
8234 | echo "$as_me:$LINENO: result: no" >&5 | |
8235 | echo "${ECHO_T}no" >&6 | |
8236 | fi | |
8237 | ||
8238 | ||
8239 | enablestring= | |
8240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8241 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8242 | no_cache=0 | |
8243 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8244 | if test "${enable_textctrl+set}" = set; then | |
8245 | enableval="$enable_textctrl" | |
8246 | ||
8247 | if test "$enableval" = yes; then | |
8248 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8249 | else | |
8250 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8251 | fi | |
8252 | ||
8253 | else | |
8254 | ||
8255 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8256 | if test "x$LINE" != x ; then | |
8257 | eval "DEFAULT_$LINE" | |
8258 | else | |
8259 | no_cache=1 | |
8260 | fi | |
8261 | ||
8262 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8263 | ||
8264 | fi; | |
8265 | ||
8266 | eval "$ac_cv_use_textctrl" | |
8267 | if test "$no_cache" != 1; then | |
8268 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8269 | fi | |
8270 | ||
8271 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8272 | echo "$as_me:$LINENO: result: yes" >&5 | |
8273 | echo "${ECHO_T}yes" >&6 | |
8274 | else | |
8275 | echo "$as_me:$LINENO: result: no" >&5 | |
8276 | echo "${ECHO_T}no" >&6 | |
8277 | fi | |
8278 | ||
8279 | ||
8280 | enablestring= | |
8281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8282 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8283 | no_cache=0 | |
8284 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8285 | if test "${enable_togglebtn+set}" = set; then | |
8286 | enableval="$enable_togglebtn" | |
8287 | ||
8288 | if test "$enableval" = yes; then | |
8289 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8290 | else | |
8291 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8292 | fi | |
8293 | ||
8294 | else | |
8295 | ||
8296 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8297 | if test "x$LINE" != x ; then | |
8298 | eval "DEFAULT_$LINE" | |
8299 | else | |
8300 | no_cache=1 | |
8301 | fi | |
8302 | ||
8303 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8304 | ||
8305 | fi; | |
8306 | ||
8307 | eval "$ac_cv_use_togglebtn" | |
8308 | if test "$no_cache" != 1; then | |
8309 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8310 | fi | |
8311 | ||
8312 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8313 | echo "$as_me:$LINENO: result: yes" >&5 | |
8314 | echo "${ECHO_T}yes" >&6 | |
8315 | else | |
8316 | echo "$as_me:$LINENO: result: no" >&5 | |
8317 | echo "${ECHO_T}no" >&6 | |
8318 | fi | |
8319 | ||
8320 | ||
8321 | enablestring= | |
8322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8323 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8324 | no_cache=0 | |
8325 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8326 | if test "${enable_toolbar+set}" = set; then | |
8327 | enableval="$enable_toolbar" | |
8328 | ||
8329 | if test "$enableval" = yes; then | |
8330 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8331 | else | |
8332 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8333 | fi | |
8334 | ||
8335 | else | |
8336 | ||
8337 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8338 | if test "x$LINE" != x ; then | |
8339 | eval "DEFAULT_$LINE" | |
8340 | else | |
8341 | no_cache=1 | |
8342 | fi | |
8343 | ||
8344 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8345 | ||
8346 | fi; | |
8347 | ||
8348 | eval "$ac_cv_use_toolbar" | |
8349 | if test "$no_cache" != 1; then | |
8350 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8351 | fi | |
8352 | ||
8353 | if test "$wxUSE_TOOLBAR" = yes; then | |
8354 | echo "$as_me:$LINENO: result: yes" >&5 | |
8355 | echo "${ECHO_T}yes" >&6 | |
8356 | else | |
8357 | echo "$as_me:$LINENO: result: no" >&5 | |
8358 | echo "${ECHO_T}no" >&6 | |
8359 | fi | |
8360 | ||
8361 | ||
8362 | enablestring= | |
8363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8364 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8365 | no_cache=0 | |
8366 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8367 | if test "${enable_tbarnative+set}" = set; then | |
8368 | enableval="$enable_tbarnative" | |
8369 | ||
8370 | if test "$enableval" = yes; then | |
8371 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8372 | else | |
8373 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8374 | fi | |
8375 | ||
8376 | else | |
8377 | ||
8378 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8379 | if test "x$LINE" != x ; then | |
8380 | eval "DEFAULT_$LINE" | |
8381 | else | |
8382 | no_cache=1 | |
8383 | fi | |
8384 | ||
8385 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8386 | ||
8387 | fi; | |
8388 | ||
8389 | eval "$ac_cv_use_tbarnative" | |
8390 | if test "$no_cache" != 1; then | |
8391 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8392 | fi | |
8393 | ||
8394 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8395 | echo "$as_me:$LINENO: result: yes" >&5 | |
8396 | echo "${ECHO_T}yes" >&6 | |
8397 | else | |
8398 | echo "$as_me:$LINENO: result: no" >&5 | |
8399 | echo "${ECHO_T}no" >&6 | |
8400 | fi | |
8401 | ||
8402 | ||
8403 | enablestring= | |
8404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8405 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8406 | no_cache=0 | |
8407 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8408 | if test "${enable_tbarsmpl+set}" = set; then | |
8409 | enableval="$enable_tbarsmpl" | |
8410 | ||
8411 | if test "$enableval" = yes; then | |
8412 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8413 | else | |
8414 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8415 | fi | |
8416 | ||
8417 | else | |
8418 | ||
8419 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8420 | if test "x$LINE" != x ; then | |
8421 | eval "DEFAULT_$LINE" | |
8422 | else | |
8423 | no_cache=1 | |
8424 | fi | |
8425 | ||
8426 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8427 | ||
8428 | fi; | |
8429 | ||
8430 | eval "$ac_cv_use_tbarsmpl" | |
8431 | if test "$no_cache" != 1; then | |
8432 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8433 | fi | |
8434 | ||
8435 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8436 | echo "$as_me:$LINENO: result: yes" >&5 | |
8437 | echo "${ECHO_T}yes" >&6 | |
8438 | else | |
8439 | echo "$as_me:$LINENO: result: no" >&5 | |
8440 | echo "${ECHO_T}no" >&6 | |
8441 | fi | |
8442 | ||
8443 | ||
8444 | enablestring= | |
8445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8446 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8447 | no_cache=0 | |
8448 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8449 | if test "${enable_treectrl+set}" = set; then | |
8450 | enableval="$enable_treectrl" | |
8451 | ||
8452 | if test "$enableval" = yes; then | |
8453 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8454 | else | |
8455 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8456 | fi | |
8457 | ||
8458 | else | |
8459 | ||
8460 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8461 | if test "x$LINE" != x ; then | |
8462 | eval "DEFAULT_$LINE" | |
8463 | else | |
8464 | no_cache=1 | |
8465 | fi | |
8466 | ||
8467 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8468 | ||
8469 | fi; | |
8470 | ||
8471 | eval "$ac_cv_use_treectrl" | |
8472 | if test "$no_cache" != 1; then | |
8473 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8474 | fi | |
8475 | ||
8476 | if test "$wxUSE_TREECTRL" = yes; then | |
8477 | echo "$as_me:$LINENO: result: yes" >&5 | |
8478 | echo "${ECHO_T}yes" >&6 | |
8479 | else | |
8480 | echo "$as_me:$LINENO: result: no" >&5 | |
8481 | echo "${ECHO_T}no" >&6 | |
8482 | fi | |
8483 | ||
8484 | ||
8485 | enablestring= | |
8486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8487 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8488 | no_cache=0 | |
8489 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8490 | if test "${enable_tipwindow+set}" = set; then | |
8491 | enableval="$enable_tipwindow" | |
8492 | ||
8493 | if test "$enableval" = yes; then | |
8494 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8495 | else | |
8496 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8497 | fi | |
8498 | ||
8499 | else | |
8500 | ||
8501 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8502 | if test "x$LINE" != x ; then | |
8503 | eval "DEFAULT_$LINE" | |
8504 | else | |
8505 | no_cache=1 | |
8506 | fi | |
8507 | ||
8508 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8509 | ||
8510 | fi; | |
8511 | ||
8512 | eval "$ac_cv_use_tipwindow" | |
8513 | if test "$no_cache" != 1; then | |
8514 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8515 | fi | |
8516 | ||
8517 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8518 | echo "$as_me:$LINENO: result: yes" >&5 | |
8519 | echo "${ECHO_T}yes" >&6 | |
8520 | else | |
8521 | echo "$as_me:$LINENO: result: no" >&5 | |
8522 | echo "${ECHO_T}no" >&6 | |
8523 | fi | |
8524 | ||
8525 | ||
8526 | enablestring= | |
8527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8528 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8529 | no_cache=0 | |
8530 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8531 | if test "${enable_popupwin+set}" = set; then | |
8532 | enableval="$enable_popupwin" | |
8533 | ||
8534 | if test "$enableval" = yes; then | |
8535 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8536 | else | |
8537 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8538 | fi | |
8539 | ||
8540 | else | |
8541 | ||
8542 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8543 | if test "x$LINE" != x ; then | |
8544 | eval "DEFAULT_$LINE" | |
8545 | else | |
8546 | no_cache=1 | |
8547 | fi | |
8548 | ||
8549 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8550 | ||
8551 | fi; | |
8552 | ||
8553 | eval "$ac_cv_use_popupwin" | |
8554 | if test "$no_cache" != 1; then | |
8555 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8556 | fi | |
8557 | ||
8558 | if test "$wxUSE_POPUPWIN" = yes; then | |
8559 | echo "$as_me:$LINENO: result: yes" >&5 | |
8560 | echo "${ECHO_T}yes" >&6 | |
8561 | else | |
8562 | echo "$as_me:$LINENO: result: no" >&5 | |
8563 | echo "${ECHO_T}no" >&6 | |
8564 | fi | |
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | enablestring= | |
8570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8571 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8572 | no_cache=0 | |
8573 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8574 | if test "${enable_commondlg+set}" = set; then | |
8575 | enableval="$enable_commondlg" | |
8576 | ||
8577 | if test "$enableval" = yes; then | |
8578 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8579 | else | |
8580 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8581 | fi | |
8582 | ||
8583 | else | |
8584 | ||
8585 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8586 | if test "x$LINE" != x ; then | |
8587 | eval "DEFAULT_$LINE" | |
8588 | else | |
8589 | no_cache=1 | |
8590 | fi | |
8591 | ||
8592 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8593 | ||
8594 | fi; | |
8595 | ||
8596 | eval "$ac_cv_use_commondlg" | |
8597 | if test "$no_cache" != 1; then | |
8598 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8599 | fi | |
8600 | ||
8601 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8602 | echo "$as_me:$LINENO: result: yes" >&5 | |
8603 | echo "${ECHO_T}yes" >&6 | |
8604 | else | |
8605 | echo "$as_me:$LINENO: result: no" >&5 | |
8606 | echo "${ECHO_T}no" >&6 | |
8607 | fi | |
8608 | ||
8609 | ||
8610 | enablestring= | |
8611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8612 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8613 | no_cache=0 | |
8614 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8615 | if test "${enable_choicedlg+set}" = set; then | |
8616 | enableval="$enable_choicedlg" | |
8617 | ||
8618 | if test "$enableval" = yes; then | |
8619 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8620 | else | |
8621 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8622 | fi | |
8623 | ||
8624 | else | |
8625 | ||
8626 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8627 | if test "x$LINE" != x ; then | |
8628 | eval "DEFAULT_$LINE" | |
8629 | else | |
8630 | no_cache=1 | |
8631 | fi | |
8632 | ||
8633 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8634 | ||
8635 | fi; | |
8636 | ||
8637 | eval "$ac_cv_use_choicedlg" | |
8638 | if test "$no_cache" != 1; then | |
8639 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8640 | fi | |
8641 | ||
8642 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8643 | echo "$as_me:$LINENO: result: yes" >&5 | |
8644 | echo "${ECHO_T}yes" >&6 | |
8645 | else | |
8646 | echo "$as_me:$LINENO: result: no" >&5 | |
8647 | echo "${ECHO_T}no" >&6 | |
8648 | fi | |
8649 | ||
8650 | ||
8651 | enablestring= | |
8652 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8653 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8654 | no_cache=0 | |
8655 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8656 | if test "${enable_coldlg+set}" = set; then | |
8657 | enableval="$enable_coldlg" | |
8658 | ||
8659 | if test "$enableval" = yes; then | |
8660 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8661 | else | |
8662 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8663 | fi | |
8664 | ||
8665 | else | |
8666 | ||
8667 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8668 | if test "x$LINE" != x ; then | |
8669 | eval "DEFAULT_$LINE" | |
8670 | else | |
8671 | no_cache=1 | |
8672 | fi | |
8673 | ||
8674 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8675 | ||
8676 | fi; | |
8677 | ||
8678 | eval "$ac_cv_use_coldlg" | |
8679 | if test "$no_cache" != 1; then | |
8680 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8681 | fi | |
8682 | ||
8683 | if test "$wxUSE_COLOURDLG" = yes; then | |
8684 | echo "$as_me:$LINENO: result: yes" >&5 | |
8685 | echo "${ECHO_T}yes" >&6 | |
8686 | else | |
8687 | echo "$as_me:$LINENO: result: no" >&5 | |
8688 | echo "${ECHO_T}no" >&6 | |
8689 | fi | |
8690 | ||
8691 | ||
8692 | enablestring= | |
8693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8694 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8695 | no_cache=0 | |
8696 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8697 | if test "${enable_filedlg+set}" = set; then | |
8698 | enableval="$enable_filedlg" | |
8699 | ||
8700 | if test "$enableval" = yes; then | |
8701 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8702 | else | |
8703 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8704 | fi | |
8705 | ||
8706 | else | |
8707 | ||
8708 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8709 | if test "x$LINE" != x ; then | |
8710 | eval "DEFAULT_$LINE" | |
8711 | else | |
8712 | no_cache=1 | |
8713 | fi | |
8714 | ||
8715 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8716 | ||
8717 | fi; | |
8718 | ||
8719 | eval "$ac_cv_use_filedlg" | |
8720 | if test "$no_cache" != 1; then | |
8721 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8722 | fi | |
8723 | ||
8724 | if test "$wxUSE_FILEDLG" = yes; then | |
8725 | echo "$as_me:$LINENO: result: yes" >&5 | |
8726 | echo "${ECHO_T}yes" >&6 | |
8727 | else | |
8728 | echo "$as_me:$LINENO: result: no" >&5 | |
8729 | echo "${ECHO_T}no" >&6 | |
8730 | fi | |
8731 | ||
8732 | ||
8733 | enablestring= | |
8734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8735 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8736 | no_cache=0 | |
8737 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8738 | if test "${enable_finddlg+set}" = set; then | |
8739 | enableval="$enable_finddlg" | |
8740 | ||
8741 | if test "$enableval" = yes; then | |
8742 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8743 | else | |
8744 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8745 | fi | |
8746 | ||
8747 | else | |
8748 | ||
8749 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8750 | if test "x$LINE" != x ; then | |
8751 | eval "DEFAULT_$LINE" | |
8752 | else | |
8753 | no_cache=1 | |
8754 | fi | |
8755 | ||
8756 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8757 | ||
8758 | fi; | |
8759 | ||
8760 | eval "$ac_cv_use_finddlg" | |
8761 | if test "$no_cache" != 1; then | |
8762 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8763 | fi | |
8764 | ||
8765 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8766 | echo "$as_me:$LINENO: result: yes" >&5 | |
8767 | echo "${ECHO_T}yes" >&6 | |
8768 | else | |
8769 | echo "$as_me:$LINENO: result: no" >&5 | |
8770 | echo "${ECHO_T}no" >&6 | |
8771 | fi | |
8772 | ||
8773 | ||
8774 | enablestring= | |
8775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8776 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8777 | no_cache=0 | |
8778 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8779 | if test "${enable_fontdlg+set}" = set; then | |
8780 | enableval="$enable_fontdlg" | |
8781 | ||
8782 | if test "$enableval" = yes; then | |
8783 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8784 | else | |
8785 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8786 | fi | |
8787 | ||
8788 | else | |
8789 | ||
8790 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8791 | if test "x$LINE" != x ; then | |
8792 | eval "DEFAULT_$LINE" | |
8793 | else | |
8794 | no_cache=1 | |
8795 | fi | |
8796 | ||
8797 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8798 | ||
8799 | fi; | |
8800 | ||
8801 | eval "$ac_cv_use_fontdlg" | |
8802 | if test "$no_cache" != 1; then | |
8803 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8804 | fi | |
8805 | ||
8806 | if test "$wxUSE_FONTDLG" = yes; then | |
8807 | echo "$as_me:$LINENO: result: yes" >&5 | |
8808 | echo "${ECHO_T}yes" >&6 | |
8809 | else | |
8810 | echo "$as_me:$LINENO: result: no" >&5 | |
8811 | echo "${ECHO_T}no" >&6 | |
8812 | fi | |
8813 | ||
8814 | ||
8815 | enablestring= | |
8816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8817 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8818 | no_cache=0 | |
8819 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8820 | if test "${enable_dirdlg+set}" = set; then | |
8821 | enableval="$enable_dirdlg" | |
8822 | ||
8823 | if test "$enableval" = yes; then | |
8824 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8825 | else | |
8826 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8827 | fi | |
8828 | ||
8829 | else | |
8830 | ||
8831 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8832 | if test "x$LINE" != x ; then | |
8833 | eval "DEFAULT_$LINE" | |
8834 | else | |
8835 | no_cache=1 | |
8836 | fi | |
8837 | ||
8838 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8839 | ||
8840 | fi; | |
8841 | ||
8842 | eval "$ac_cv_use_dirdlg" | |
8843 | if test "$no_cache" != 1; then | |
8844 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8845 | fi | |
8846 | ||
8847 | if test "$wxUSE_DIRDLG" = yes; then | |
8848 | echo "$as_me:$LINENO: result: yes" >&5 | |
8849 | echo "${ECHO_T}yes" >&6 | |
8850 | else | |
8851 | echo "$as_me:$LINENO: result: no" >&5 | |
8852 | echo "${ECHO_T}no" >&6 | |
8853 | fi | |
8854 | ||
8855 | ||
8856 | enablestring= | |
8857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
8858 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8859 | no_cache=0 | |
8860 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8861 | if test "${enable_msgdlg+set}" = set; then | |
8862 | enableval="$enable_msgdlg" | |
8863 | ||
8864 | if test "$enableval" = yes; then | |
8865 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8866 | else | |
8867 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8868 | fi | |
8869 | ||
8870 | else | |
8871 | ||
8872 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
8873 | if test "x$LINE" != x ; then | |
8874 | eval "DEFAULT_$LINE" | |
8875 | else | |
8876 | no_cache=1 | |
8877 | fi | |
8878 | ||
8879 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8880 | ||
8881 | fi; | |
8882 | ||
8883 | eval "$ac_cv_use_msgdlg" | |
8884 | if test "$no_cache" != 1; then | |
8885 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8886 | fi | |
8887 | ||
8888 | if test "$wxUSE_MSGDLG" = yes; then | |
8889 | echo "$as_me:$LINENO: result: yes" >&5 | |
8890 | echo "${ECHO_T}yes" >&6 | |
8891 | else | |
8892 | echo "$as_me:$LINENO: result: no" >&5 | |
8893 | echo "${ECHO_T}no" >&6 | |
8894 | fi | |
8895 | ||
8896 | ||
8897 | enablestring= | |
8898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
8899 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8900 | no_cache=0 | |
8901 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8902 | if test "${enable_numberdlg+set}" = set; then | |
8903 | enableval="$enable_numberdlg" | |
8904 | ||
8905 | if test "$enableval" = yes; then | |
8906 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
8907 | else | |
8908 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
8909 | fi | |
8910 | ||
8911 | else | |
8912 | ||
8913 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
8914 | if test "x$LINE" != x ; then | |
8915 | eval "DEFAULT_$LINE" | |
8916 | else | |
8917 | no_cache=1 | |
8918 | fi | |
8919 | ||
8920 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
8921 | ||
8922 | fi; | |
8923 | ||
8924 | eval "$ac_cv_use_numberdlg" | |
8925 | if test "$no_cache" != 1; then | |
8926 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
8927 | fi | |
8928 | ||
8929 | if test "$wxUSE_NUMBERDLG" = yes; then | |
8930 | echo "$as_me:$LINENO: result: yes" >&5 | |
8931 | echo "${ECHO_T}yes" >&6 | |
8932 | else | |
8933 | echo "$as_me:$LINENO: result: no" >&5 | |
8934 | echo "${ECHO_T}no" >&6 | |
8935 | fi | |
8936 | ||
8937 | ||
8938 | enablestring= | |
8939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
8940 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
8941 | no_cache=0 | |
8942 | # Check whether --enable-splash or --disable-splash was given. | |
8943 | if test "${enable_splash+set}" = set; then | |
8944 | enableval="$enable_splash" | |
8945 | ||
8946 | if test "$enableval" = yes; then | |
8947 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8948 | else | |
8949 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8950 | fi | |
8951 | ||
8952 | else | |
8953 | ||
8954 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
8955 | if test "x$LINE" != x ; then | |
8956 | eval "DEFAULT_$LINE" | |
8957 | else | |
8958 | no_cache=1 | |
8959 | fi | |
8960 | ||
8961 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
8962 | ||
8963 | fi; | |
8964 | ||
8965 | eval "$ac_cv_use_splash" | |
8966 | if test "$no_cache" != 1; then | |
8967 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8968 | fi | |
8969 | ||
8970 | if test "$wxUSE_SPLASH" = yes; then | |
8971 | echo "$as_me:$LINENO: result: yes" >&5 | |
8972 | echo "${ECHO_T}yes" >&6 | |
8973 | else | |
8974 | echo "$as_me:$LINENO: result: no" >&5 | |
8975 | echo "${ECHO_T}no" >&6 | |
8976 | fi | |
8977 | ||
8978 | ||
8979 | enablestring= | |
8980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
8981 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
8982 | no_cache=0 | |
8983 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8984 | if test "${enable_textdlg+set}" = set; then | |
8985 | enableval="$enable_textdlg" | |
8986 | ||
8987 | if test "$enableval" = yes; then | |
8988 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8989 | else | |
8990 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8991 | fi | |
8992 | ||
8993 | else | |
8994 | ||
8995 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
8996 | if test "x$LINE" != x ; then | |
8997 | eval "DEFAULT_$LINE" | |
8998 | else | |
8999 | no_cache=1 | |
9000 | fi | |
9001 | ||
9002 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9003 | ||
9004 | fi; | |
9005 | ||
9006 | eval "$ac_cv_use_textdlg" | |
9007 | if test "$no_cache" != 1; then | |
9008 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9009 | fi | |
9010 | ||
9011 | if test "$wxUSE_TEXTDLG" = yes; then | |
9012 | echo "$as_me:$LINENO: result: yes" >&5 | |
9013 | echo "${ECHO_T}yes" >&6 | |
9014 | else | |
9015 | echo "$as_me:$LINENO: result: no" >&5 | |
9016 | echo "${ECHO_T}no" >&6 | |
9017 | fi | |
9018 | ||
9019 | ||
9020 | enablestring= | |
9021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9022 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9023 | no_cache=0 | |
9024 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9025 | if test "${enable_tipdlg+set}" = set; then | |
9026 | enableval="$enable_tipdlg" | |
9027 | ||
9028 | if test "$enableval" = yes; then | |
9029 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9030 | else | |
9031 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9032 | fi | |
9033 | ||
9034 | else | |
9035 | ||
9036 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9037 | if test "x$LINE" != x ; then | |
9038 | eval "DEFAULT_$LINE" | |
9039 | else | |
9040 | no_cache=1 | |
9041 | fi | |
9042 | ||
9043 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9044 | ||
9045 | fi; | |
9046 | ||
9047 | eval "$ac_cv_use_tipdlg" | |
9048 | if test "$no_cache" != 1; then | |
9049 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9050 | fi | |
9051 | ||
9052 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9053 | echo "$as_me:$LINENO: result: yes" >&5 | |
9054 | echo "${ECHO_T}yes" >&6 | |
9055 | else | |
9056 | echo "$as_me:$LINENO: result: no" >&5 | |
9057 | echo "${ECHO_T}no" >&6 | |
9058 | fi | |
9059 | ||
9060 | ||
9061 | enablestring= | |
9062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9063 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9064 | no_cache=0 | |
9065 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9066 | if test "${enable_progressdlg+set}" = set; then | |
9067 | enableval="$enable_progressdlg" | |
9068 | ||
9069 | if test "$enableval" = yes; then | |
9070 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9071 | else | |
9072 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9073 | fi | |
9074 | ||
9075 | else | |
9076 | ||
9077 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9078 | if test "x$LINE" != x ; then | |
9079 | eval "DEFAULT_$LINE" | |
9080 | else | |
9081 | no_cache=1 | |
9082 | fi | |
9083 | ||
9084 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9085 | ||
9086 | fi; | |
9087 | ||
9088 | eval "$ac_cv_use_progressdlg" | |
9089 | if test "$no_cache" != 1; then | |
9090 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9091 | fi | |
9092 | ||
9093 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9094 | echo "$as_me:$LINENO: result: yes" >&5 | |
9095 | echo "${ECHO_T}yes" >&6 | |
9096 | else | |
9097 | echo "$as_me:$LINENO: result: no" >&5 | |
9098 | echo "${ECHO_T}no" >&6 | |
9099 | fi | |
9100 | ||
9101 | ||
9102 | enablestring= | |
9103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9104 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9105 | no_cache=0 | |
9106 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9107 | if test "${enable_wizarddlg+set}" = set; then | |
9108 | enableval="$enable_wizarddlg" | |
9109 | ||
9110 | if test "$enableval" = yes; then | |
9111 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9112 | else | |
9113 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9114 | fi | |
9115 | ||
9116 | else | |
9117 | ||
9118 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9119 | if test "x$LINE" != x ; then | |
9120 | eval "DEFAULT_$LINE" | |
9121 | else | |
9122 | no_cache=1 | |
9123 | fi | |
9124 | ||
9125 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9126 | ||
9127 | fi; | |
9128 | ||
9129 | eval "$ac_cv_use_wizarddlg" | |
9130 | if test "$no_cache" != 1; then | |
9131 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9132 | fi | |
9133 | ||
9134 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9135 | echo "$as_me:$LINENO: result: yes" >&5 | |
9136 | echo "${ECHO_T}yes" >&6 | |
9137 | else | |
9138 | echo "$as_me:$LINENO: result: no" >&5 | |
9139 | echo "${ECHO_T}no" >&6 | |
9140 | fi | |
9141 | ||
9142 | ||
9143 | ||
9144 | ||
9145 | enablestring= | |
9146 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9147 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9148 | no_cache=0 | |
9149 | # Check whether --enable-menus or --disable-menus was given. | |
9150 | if test "${enable_menus+set}" = set; then | |
9151 | enableval="$enable_menus" | |
9152 | ||
9153 | if test "$enableval" = yes; then | |
9154 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9155 | else | |
9156 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9157 | fi | |
9158 | ||
9159 | else | |
9160 | ||
9161 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9162 | if test "x$LINE" != x ; then | |
9163 | eval "DEFAULT_$LINE" | |
9164 | else | |
9165 | no_cache=1 | |
9166 | fi | |
9167 | ||
9168 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9169 | ||
9170 | fi; | |
9171 | ||
9172 | eval "$ac_cv_use_menus" | |
9173 | if test "$no_cache" != 1; then | |
9174 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9175 | fi | |
9176 | ||
9177 | if test "$wxUSE_MENUS" = yes; then | |
9178 | echo "$as_me:$LINENO: result: yes" >&5 | |
9179 | echo "${ECHO_T}yes" >&6 | |
9180 | else | |
9181 | echo "$as_me:$LINENO: result: no" >&5 | |
9182 | echo "${ECHO_T}no" >&6 | |
9183 | fi | |
9184 | ||
9185 | ||
9186 | enablestring= | |
9187 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9188 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9189 | no_cache=0 | |
9190 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9191 | if test "${enable_miniframe+set}" = set; then | |
9192 | enableval="$enable_miniframe" | |
9193 | ||
9194 | if test "$enableval" = yes; then | |
9195 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9196 | else | |
9197 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9198 | fi | |
9199 | ||
9200 | else | |
9201 | ||
9202 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9203 | if test "x$LINE" != x ; then | |
9204 | eval "DEFAULT_$LINE" | |
9205 | else | |
9206 | no_cache=1 | |
9207 | fi | |
9208 | ||
9209 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9210 | ||
9211 | fi; | |
9212 | ||
9213 | eval "$ac_cv_use_miniframe" | |
9214 | if test "$no_cache" != 1; then | |
9215 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9216 | fi | |
9217 | ||
9218 | if test "$wxUSE_MINIFRAME" = yes; then | |
9219 | echo "$as_me:$LINENO: result: yes" >&5 | |
9220 | echo "${ECHO_T}yes" >&6 | |
9221 | else | |
9222 | echo "$as_me:$LINENO: result: no" >&5 | |
9223 | echo "${ECHO_T}no" >&6 | |
9224 | fi | |
9225 | ||
9226 | ||
9227 | enablestring= | |
9228 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9229 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9230 | no_cache=0 | |
9231 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9232 | if test "${enable_tooltips+set}" = set; then | |
9233 | enableval="$enable_tooltips" | |
9234 | ||
9235 | if test "$enableval" = yes; then | |
9236 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9237 | else | |
9238 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9239 | fi | |
9240 | ||
9241 | else | |
9242 | ||
9243 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9244 | if test "x$LINE" != x ; then | |
9245 | eval "DEFAULT_$LINE" | |
9246 | else | |
9247 | no_cache=1 | |
9248 | fi | |
9249 | ||
9250 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9251 | ||
9252 | fi; | |
9253 | ||
9254 | eval "$ac_cv_use_tooltips" | |
9255 | if test "$no_cache" != 1; then | |
9256 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9257 | fi | |
9258 | ||
9259 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9260 | echo "$as_me:$LINENO: result: yes" >&5 | |
9261 | echo "${ECHO_T}yes" >&6 | |
9262 | else | |
9263 | echo "$as_me:$LINENO: result: no" >&5 | |
9264 | echo "${ECHO_T}no" >&6 | |
9265 | fi | |
9266 | ||
9267 | ||
9268 | enablestring= | |
9269 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9270 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9271 | no_cache=0 | |
9272 | # Check whether --enable-splines or --disable-splines was given. | |
9273 | if test "${enable_splines+set}" = set; then | |
9274 | enableval="$enable_splines" | |
9275 | ||
9276 | if test "$enableval" = yes; then | |
9277 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9278 | else | |
9279 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9280 | fi | |
9281 | ||
9282 | else | |
9283 | ||
9284 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9285 | if test "x$LINE" != x ; then | |
9286 | eval "DEFAULT_$LINE" | |
9287 | else | |
9288 | no_cache=1 | |
9289 | fi | |
9290 | ||
9291 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9292 | ||
9293 | fi; | |
9294 | ||
9295 | eval "$ac_cv_use_splines" | |
9296 | if test "$no_cache" != 1; then | |
9297 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9298 | fi | |
9299 | ||
9300 | if test "$wxUSE_SPLINES" = yes; then | |
9301 | echo "$as_me:$LINENO: result: yes" >&5 | |
9302 | echo "${ECHO_T}yes" >&6 | |
9303 | else | |
9304 | echo "$as_me:$LINENO: result: no" >&5 | |
9305 | echo "${ECHO_T}no" >&6 | |
9306 | fi | |
9307 | ||
9308 | ||
9309 | enablestring= | |
9310 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9311 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9312 | no_cache=0 | |
9313 | # Check whether --enable-validators or --disable-validators was given. | |
9314 | if test "${enable_validators+set}" = set; then | |
9315 | enableval="$enable_validators" | |
9316 | ||
9317 | if test "$enableval" = yes; then | |
9318 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9319 | else | |
9320 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9321 | fi | |
9322 | ||
9323 | else | |
9324 | ||
9325 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9326 | if test "x$LINE" != x ; then | |
9327 | eval "DEFAULT_$LINE" | |
9328 | else | |
9329 | no_cache=1 | |
9330 | fi | |
9331 | ||
9332 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9333 | ||
9334 | fi; | |
9335 | ||
9336 | eval "$ac_cv_use_validators" | |
9337 | if test "$no_cache" != 1; then | |
9338 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9339 | fi | |
9340 | ||
9341 | if test "$wxUSE_VALIDATORS" = yes; then | |
9342 | echo "$as_me:$LINENO: result: yes" >&5 | |
9343 | echo "${ECHO_T}yes" >&6 | |
9344 | else | |
9345 | echo "$as_me:$LINENO: result: no" >&5 | |
9346 | echo "${ECHO_T}no" >&6 | |
9347 | fi | |
9348 | ||
9349 | ||
9350 | enablestring= | |
9351 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9352 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9353 | no_cache=0 | |
9354 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9355 | if test "${enable_busyinfo+set}" = set; then | |
9356 | enableval="$enable_busyinfo" | |
9357 | ||
9358 | if test "$enableval" = yes; then | |
9359 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9360 | else | |
9361 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9362 | fi | |
9363 | ||
9364 | else | |
9365 | ||
9366 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9367 | if test "x$LINE" != x ; then | |
9368 | eval "DEFAULT_$LINE" | |
9369 | else | |
9370 | no_cache=1 | |
9371 | fi | |
9372 | ||
9373 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9374 | ||
9375 | fi; | |
9376 | ||
9377 | eval "$ac_cv_use_busyinfo" | |
9378 | if test "$no_cache" != 1; then | |
9379 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9380 | fi | |
9381 | ||
9382 | if test "$wxUSE_BUSYINFO" = yes; then | |
9383 | echo "$as_me:$LINENO: result: yes" >&5 | |
9384 | echo "${ECHO_T}yes" >&6 | |
9385 | else | |
9386 | echo "$as_me:$LINENO: result: no" >&5 | |
9387 | echo "${ECHO_T}no" >&6 | |
9388 | fi | |
9389 | ||
9390 | ||
9391 | enablestring= | |
9392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9393 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9394 | no_cache=0 | |
9395 | # Check whether --enable-joystick or --disable-joystick was given. | |
9396 | if test "${enable_joystick+set}" = set; then | |
9397 | enableval="$enable_joystick" | |
9398 | ||
9399 | if test "$enableval" = yes; then | |
9400 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9401 | else | |
9402 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9403 | fi | |
9404 | ||
9405 | else | |
9406 | ||
9407 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9408 | if test "x$LINE" != x ; then | |
9409 | eval "DEFAULT_$LINE" | |
9410 | else | |
9411 | no_cache=1 | |
9412 | fi | |
9413 | ||
9414 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9415 | ||
9416 | fi; | |
9417 | ||
9418 | eval "$ac_cv_use_joystick" | |
9419 | if test "$no_cache" != 1; then | |
9420 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9421 | fi | |
9422 | ||
9423 | if test "$wxUSE_JOYSTICK" = yes; then | |
9424 | echo "$as_me:$LINENO: result: yes" >&5 | |
9425 | echo "${ECHO_T}yes" >&6 | |
9426 | else | |
9427 | echo "$as_me:$LINENO: result: no" >&5 | |
9428 | echo "${ECHO_T}no" >&6 | |
9429 | fi | |
9430 | ||
9431 | ||
9432 | enablestring= | |
9433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9434 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9435 | no_cache=0 | |
9436 | # Check whether --enable-metafile or --disable-metafile was given. | |
9437 | if test "${enable_metafile+set}" = set; then | |
9438 | enableval="$enable_metafile" | |
9439 | ||
9440 | if test "$enableval" = yes; then | |
9441 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9442 | else | |
9443 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9444 | fi | |
9445 | ||
9446 | else | |
9447 | ||
9448 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9449 | if test "x$LINE" != x ; then | |
9450 | eval "DEFAULT_$LINE" | |
9451 | else | |
9452 | no_cache=1 | |
9453 | fi | |
9454 | ||
9455 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9456 | ||
9457 | fi; | |
9458 | ||
9459 | eval "$ac_cv_use_metafile" | |
9460 | if test "$no_cache" != 1; then | |
9461 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9462 | fi | |
9463 | ||
9464 | if test "$wxUSE_METAFILE" = yes; then | |
9465 | echo "$as_me:$LINENO: result: yes" >&5 | |
9466 | echo "${ECHO_T}yes" >&6 | |
9467 | else | |
9468 | echo "$as_me:$LINENO: result: no" >&5 | |
9469 | echo "${ECHO_T}no" >&6 | |
9470 | fi | |
9471 | ||
9472 | ||
9473 | enablestring= | |
9474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9475 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9476 | no_cache=0 | |
9477 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9478 | if test "${enable_dragimage+set}" = set; then | |
9479 | enableval="$enable_dragimage" | |
9480 | ||
9481 | if test "$enableval" = yes; then | |
9482 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9483 | else | |
9484 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9485 | fi | |
9486 | ||
9487 | else | |
9488 | ||
9489 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9490 | if test "x$LINE" != x ; then | |
9491 | eval "DEFAULT_$LINE" | |
9492 | else | |
9493 | no_cache=1 | |
9494 | fi | |
9495 | ||
9496 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9497 | ||
9498 | fi; | |
9499 | ||
9500 | eval "$ac_cv_use_dragimage" | |
9501 | if test "$no_cache" != 1; then | |
9502 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9503 | fi | |
9504 | ||
9505 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9506 | echo "$as_me:$LINENO: result: yes" >&5 | |
9507 | echo "${ECHO_T}yes" >&6 | |
9508 | else | |
9509 | echo "$as_me:$LINENO: result: no" >&5 | |
9510 | echo "${ECHO_T}no" >&6 | |
9511 | fi | |
9512 | ||
9513 | ||
9514 | enablestring= | |
9515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9516 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9517 | no_cache=0 | |
9518 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9519 | if test "${enable_accessibility+set}" = set; then | |
9520 | enableval="$enable_accessibility" | |
9521 | ||
9522 | if test "$enableval" = yes; then | |
9523 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9524 | else | |
9525 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9526 | fi | |
9527 | ||
9528 | else | |
9529 | ||
9530 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9531 | if test "x$LINE" != x ; then | |
9532 | eval "DEFAULT_$LINE" | |
9533 | else | |
9534 | no_cache=1 | |
9535 | fi | |
9536 | ||
9537 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9538 | ||
9539 | fi; | |
9540 | ||
9541 | eval "$ac_cv_use_accessibility" | |
9542 | if test "$no_cache" != 1; then | |
9543 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9544 | fi | |
9545 | ||
9546 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9547 | echo "$as_me:$LINENO: result: yes" >&5 | |
9548 | echo "${ECHO_T}yes" >&6 | |
9549 | else | |
9550 | echo "$as_me:$LINENO: result: no" >&5 | |
9551 | echo "${ECHO_T}no" >&6 | |
9552 | fi | |
9553 | ||
9554 | ||
9555 | ||
9556 | ||
9557 | enablestring= | |
9558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9559 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9560 | no_cache=0 | |
9561 | # Check whether --enable-palette or --disable-palette was given. | |
9562 | if test "${enable_palette+set}" = set; then | |
9563 | enableval="$enable_palette" | |
9564 | ||
9565 | if test "$enableval" = yes; then | |
9566 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9567 | else | |
9568 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9569 | fi | |
9570 | ||
9571 | else | |
9572 | ||
9573 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9574 | if test "x$LINE" != x ; then | |
9575 | eval "DEFAULT_$LINE" | |
9576 | else | |
9577 | no_cache=1 | |
9578 | fi | |
9579 | ||
9580 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9581 | ||
9582 | fi; | |
9583 | ||
9584 | eval "$ac_cv_use_palette" | |
9585 | if test "$no_cache" != 1; then | |
9586 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9587 | fi | |
9588 | ||
9589 | if test "$wxUSE_PALETTE" = yes; then | |
9590 | echo "$as_me:$LINENO: result: yes" >&5 | |
9591 | echo "${ECHO_T}yes" >&6 | |
9592 | else | |
9593 | echo "$as_me:$LINENO: result: no" >&5 | |
9594 | echo "${ECHO_T}no" >&6 | |
9595 | fi | |
9596 | ||
9597 | ||
9598 | enablestring= | |
9599 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9600 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9601 | no_cache=0 | |
9602 | # Check whether --enable-image or --disable-image was given. | |
9603 | if test "${enable_image+set}" = set; then | |
9604 | enableval="$enable_image" | |
9605 | ||
9606 | if test "$enableval" = yes; then | |
9607 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9608 | else | |
9609 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9610 | fi | |
9611 | ||
9612 | else | |
9613 | ||
9614 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9615 | if test "x$LINE" != x ; then | |
9616 | eval "DEFAULT_$LINE" | |
9617 | else | |
9618 | no_cache=1 | |
9619 | fi | |
9620 | ||
9621 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9622 | ||
9623 | fi; | |
9624 | ||
9625 | eval "$ac_cv_use_image" | |
9626 | if test "$no_cache" != 1; then | |
9627 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9628 | fi | |
9629 | ||
9630 | if test "$wxUSE_IMAGE" = yes; then | |
9631 | echo "$as_me:$LINENO: result: yes" >&5 | |
9632 | echo "${ECHO_T}yes" >&6 | |
9633 | else | |
9634 | echo "$as_me:$LINENO: result: no" >&5 | |
9635 | echo "${ECHO_T}no" >&6 | |
9636 | fi | |
9637 | ||
9638 | ||
9639 | enablestring= | |
9640 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9641 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9642 | no_cache=0 | |
9643 | # Check whether --enable-gif or --disable-gif was given. | |
9644 | if test "${enable_gif+set}" = set; then | |
9645 | enableval="$enable_gif" | |
9646 | ||
9647 | if test "$enableval" = yes; then | |
9648 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9649 | else | |
9650 | ac_cv_use_gif='wxUSE_GIF=no' | |
9651 | fi | |
9652 | ||
9653 | else | |
9654 | ||
9655 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9656 | if test "x$LINE" != x ; then | |
9657 | eval "DEFAULT_$LINE" | |
9658 | else | |
9659 | no_cache=1 | |
9660 | fi | |
9661 | ||
9662 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9663 | ||
9664 | fi; | |
9665 | ||
9666 | eval "$ac_cv_use_gif" | |
9667 | if test "$no_cache" != 1; then | |
9668 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9669 | fi | |
9670 | ||
9671 | if test "$wxUSE_GIF" = yes; then | |
9672 | echo "$as_me:$LINENO: result: yes" >&5 | |
9673 | echo "${ECHO_T}yes" >&6 | |
9674 | else | |
9675 | echo "$as_me:$LINENO: result: no" >&5 | |
9676 | echo "${ECHO_T}no" >&6 | |
9677 | fi | |
9678 | ||
9679 | ||
9680 | enablestring= | |
9681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9682 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9683 | no_cache=0 | |
9684 | # Check whether --enable-pcx or --disable-pcx was given. | |
9685 | if test "${enable_pcx+set}" = set; then | |
9686 | enableval="$enable_pcx" | |
9687 | ||
9688 | if test "$enableval" = yes; then | |
9689 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9690 | else | |
9691 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9692 | fi | |
9693 | ||
9694 | else | |
9695 | ||
9696 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9697 | if test "x$LINE" != x ; then | |
9698 | eval "DEFAULT_$LINE" | |
9699 | else | |
9700 | no_cache=1 | |
9701 | fi | |
9702 | ||
9703 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9704 | ||
9705 | fi; | |
9706 | ||
9707 | eval "$ac_cv_use_pcx" | |
9708 | if test "$no_cache" != 1; then | |
9709 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9710 | fi | |
9711 | ||
9712 | if test "$wxUSE_PCX" = yes; then | |
9713 | echo "$as_me:$LINENO: result: yes" >&5 | |
9714 | echo "${ECHO_T}yes" >&6 | |
9715 | else | |
9716 | echo "$as_me:$LINENO: result: no" >&5 | |
9717 | echo "${ECHO_T}no" >&6 | |
9718 | fi | |
9719 | ||
9720 | ||
9721 | enablestring= | |
9722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9723 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9724 | no_cache=0 | |
9725 | # Check whether --enable-iff or --disable-iff was given. | |
9726 | if test "${enable_iff+set}" = set; then | |
9727 | enableval="$enable_iff" | |
9728 | ||
9729 | if test "$enableval" = yes; then | |
9730 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9731 | else | |
9732 | ac_cv_use_iff='wxUSE_IFF=no' | |
9733 | fi | |
9734 | ||
9735 | else | |
9736 | ||
9737 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9738 | if test "x$LINE" != x ; then | |
9739 | eval "DEFAULT_$LINE" | |
9740 | else | |
9741 | no_cache=1 | |
9742 | fi | |
9743 | ||
9744 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9745 | ||
9746 | fi; | |
9747 | ||
9748 | eval "$ac_cv_use_iff" | |
9749 | if test "$no_cache" != 1; then | |
9750 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9751 | fi | |
9752 | ||
9753 | if test "$wxUSE_IFF" = yes; then | |
9754 | echo "$as_me:$LINENO: result: yes" >&5 | |
9755 | echo "${ECHO_T}yes" >&6 | |
9756 | else | |
9757 | echo "$as_me:$LINENO: result: no" >&5 | |
9758 | echo "${ECHO_T}no" >&6 | |
9759 | fi | |
9760 | ||
9761 | ||
9762 | enablestring= | |
9763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9764 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9765 | no_cache=0 | |
9766 | # Check whether --enable-pnm or --disable-pnm was given. | |
9767 | if test "${enable_pnm+set}" = set; then | |
9768 | enableval="$enable_pnm" | |
9769 | ||
9770 | if test "$enableval" = yes; then | |
9771 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9772 | else | |
9773 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9774 | fi | |
9775 | ||
9776 | else | |
9777 | ||
9778 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9779 | if test "x$LINE" != x ; then | |
9780 | eval "DEFAULT_$LINE" | |
9781 | else | |
9782 | no_cache=1 | |
9783 | fi | |
9784 | ||
9785 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9786 | ||
9787 | fi; | |
9788 | ||
9789 | eval "$ac_cv_use_pnm" | |
9790 | if test "$no_cache" != 1; then | |
9791 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9792 | fi | |
9793 | ||
9794 | if test "$wxUSE_PNM" = yes; then | |
9795 | echo "$as_me:$LINENO: result: yes" >&5 | |
9796 | echo "${ECHO_T}yes" >&6 | |
9797 | else | |
9798 | echo "$as_me:$LINENO: result: no" >&5 | |
9799 | echo "${ECHO_T}no" >&6 | |
9800 | fi | |
9801 | ||
9802 | ||
9803 | enablestring= | |
9804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9805 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9806 | no_cache=0 | |
9807 | # Check whether --enable-xpm or --disable-xpm was given. | |
9808 | if test "${enable_xpm+set}" = set; then | |
9809 | enableval="$enable_xpm" | |
9810 | ||
9811 | if test "$enableval" = yes; then | |
9812 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9813 | else | |
9814 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9815 | fi | |
9816 | ||
9817 | else | |
9818 | ||
9819 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9820 | if test "x$LINE" != x ; then | |
9821 | eval "DEFAULT_$LINE" | |
9822 | else | |
9823 | no_cache=1 | |
9824 | fi | |
9825 | ||
9826 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9827 | ||
9828 | fi; | |
9829 | ||
9830 | eval "$ac_cv_use_xpm" | |
9831 | if test "$no_cache" != 1; then | |
9832 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9833 | fi | |
9834 | ||
9835 | if test "$wxUSE_XPM" = yes; then | |
9836 | echo "$as_me:$LINENO: result: yes" >&5 | |
9837 | echo "${ECHO_T}yes" >&6 | |
9838 | else | |
9839 | echo "$as_me:$LINENO: result: no" >&5 | |
9840 | echo "${ECHO_T}no" >&6 | |
9841 | fi | |
9842 | ||
9843 | ||
9844 | enablestring= | |
9845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
9846 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9847 | no_cache=0 | |
9848 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9849 | if test "${enable_ico_cur+set}" = set; then | |
9850 | enableval="$enable_ico_cur" | |
9851 | ||
9852 | if test "$enableval" = yes; then | |
9853 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9854 | else | |
9855 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9856 | fi | |
9857 | ||
9858 | else | |
9859 | ||
9860 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
9861 | if test "x$LINE" != x ; then | |
9862 | eval "DEFAULT_$LINE" | |
9863 | else | |
9864 | no_cache=1 | |
9865 | fi | |
9866 | ||
9867 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9868 | ||
9869 | fi; | |
9870 | ||
9871 | eval "$ac_cv_use_ico_cur" | |
9872 | if test "$no_cache" != 1; then | |
9873 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9874 | fi | |
9875 | ||
9876 | if test "$wxUSE_ICO_CUR" = yes; then | |
9877 | echo "$as_me:$LINENO: result: yes" >&5 | |
9878 | echo "${ECHO_T}yes" >&6 | |
9879 | else | |
9880 | echo "$as_me:$LINENO: result: no" >&5 | |
9881 | echo "${ECHO_T}no" >&6 | |
9882 | fi | |
9883 | ||
9884 | ||
9885 | fi | |
9886 | ||
9887 | ||
9888 | ||
9889 | enablestring= | |
9890 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9891 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9892 | no_cache=0 | |
9893 | # Check whether --enable-official_build or --disable-official_build was given. | |
9894 | if test "${enable_official_build+set}" = set; then | |
9895 | enableval="$enable_official_build" | |
9896 | ||
9897 | if test "$enableval" = yes; then | |
9898 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9899 | else | |
9900 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9901 | fi | |
9902 | ||
9903 | else | |
9904 | ||
9905 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9906 | if test "x$LINE" != x ; then | |
9907 | eval "DEFAULT_$LINE" | |
9908 | else | |
9909 | no_cache=1 | |
9910 | fi | |
9911 | ||
9912 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9913 | ||
9914 | fi; | |
9915 | ||
9916 | eval "$ac_cv_use_official_build" | |
9917 | if test "$no_cache" != 1; then | |
9918 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9919 | fi | |
9920 | ||
9921 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9922 | echo "$as_me:$LINENO: result: yes" >&5 | |
9923 | echo "${ECHO_T}yes" >&6 | |
9924 | else | |
9925 | echo "$as_me:$LINENO: result: no" >&5 | |
9926 | echo "${ECHO_T}no" >&6 | |
9927 | fi | |
9928 | ||
9929 | # Check whether --enable-vendor or --disable-vendor was given. | |
9930 | if test "${enable_vendor+set}" = set; then | |
9931 | enableval="$enable_vendor" | |
9932 | VENDOR="$enableval" | |
9933 | fi; | |
9934 | if test "x$VENDOR" = "x"; then | |
9935 | VENDOR="custom" | |
9936 | fi | |
9937 | ||
9938 | case "${host}" in | |
9939 | *-pc-os2_emx | *-pc-os2-emx ) | |
9940 | PATH_IFS=';' | |
a848cd7e SC |
9941 | ;; |
9942 | *) | |
9943 | PATH_IFS=':' | |
9944 | ;; | |
9945 | esac | |
9946 | ||
9947 | ||
9948 | ||
9949 | echo "saving argument cache $wx_arg_cache_file" | |
9950 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
9951 | ||
9952 | ||
9953 | ||
9954 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9955 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
9956 | ||
9957 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9958 | if test "$wxUSE_WINE" = "yes"; then | |
9959 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9960 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9961 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9962 | wxUSE_SHARED=no | |
9963 | fi | |
9964 | ||
9965 | if test "$wxUSE_GUI" = "yes"; then | |
9966 | ||
9967 | if test "$USE_BEOS" = 1; then | |
9968 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
9969 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9970 | { (exit 1); exit 1; }; } | |
9971 | fi | |
9972 | ||
9973 | if test "$TOOLKIT_GIVEN" = 1; then | |
9974 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9975 | var=wxUSE_$toolkit | |
9976 | eval "value=\$${var}" | |
9977 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9978 | done | |
9979 | else | |
9980 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9981 | if test "$has_toolkit_in_cache" != 1; then | |
9982 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9983 | else | |
9984 | var=DEFAULT_wxUSE_$toolkit | |
9985 | fi | |
9986 | eval "wxUSE_$toolkit=\$${var}" | |
9987 | done | |
9988 | fi | |
9989 | ||
9990 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
9991 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9992 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
9993 | ||
9994 | case "${host}" in | |
9995 | *-pc-os2_emx | *-pc-os2-emx ) | |
9996 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
9997 | esac | |
9998 | ||
9999 | case "$NUM_TOOLKITS" in | |
10000 | 1) | |
10001 | ;; | |
10002 | 0) | |
10003 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10004 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10005 | { (exit 1); exit 1; }; } | |
10006 | ;; | |
10007 | *) | |
10008 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10009 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10010 | { (exit 1); exit 1; }; } | |
10011 | esac | |
10012 | ||
10013 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10014 | var=wxUSE_$toolkit | |
10015 | eval "value=\$${var}" | |
10016 | if test "x$value" != x; then | |
10017 | cache_var=CACHE_$toolkit | |
10018 | eval "cache=\$${cache_var}" | |
10019 | if test "$cache" = 1; then | |
10020 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10021 | fi | |
10022 | if test "$value" = 1; then | |
10023 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10024 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10025 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10026 | fi | |
10027 | fi | |
10028 | done | |
10029 | else | |
10030 | if test "x$host_alias" != "x"; then | |
10031 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10032 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10033 | else | |
10034 | echo "$as_me:$LINENO: result: base only" >&5 | |
10035 | echo "${ECHO_T}base only" >&6 | |
10036 | fi | |
10037 | fi | |
10038 | ||
10039 | wants_win32=0 | |
10040 | doesnt_want_win32=0 | |
10041 | case "${host}" in | |
10042 | *-*-cygwin*) | |
10043 | if test "$wxUSE_MSW" = 1 ; then | |
10044 | wants_win32=1 | |
10045 | else | |
10046 | doesnt_want_win32=1 | |
10047 | fi | |
10048 | ;; | |
10049 | *-*-mingw*) | |
10050 | wants_win32=1 | |
10051 | ;; | |
10052 | esac | |
10053 | ||
10054 | if test "$wxUSE_WINE" = "yes"; then | |
10055 | wants_win32=1 | |
10056 | CC=winegcc | |
10057 | CXX=wineg++ | |
10058 | RESCOMP=wrc | |
10059 | LDFLAGS_GUI="-mwindows" | |
10060 | fi | |
10061 | ||
10062 | if test "$wants_win32" = 1 ; then | |
10063 | USE_UNIX=0 | |
10064 | USE_WIN32=1 | |
10065 | cat >>confdefs.h <<\_ACEOF | |
10066 | #define __WIN32__ 1 | |
10067 | _ACEOF | |
10068 | ||
10069 | cat >>confdefs.h <<\_ACEOF | |
10070 | #define __WIN95__ 1 | |
10071 | _ACEOF | |
10072 | ||
10073 | cat >>confdefs.h <<\_ACEOF | |
10074 | #define __WINDOWS__ 1 | |
10075 | _ACEOF | |
10076 | ||
10077 | cat >>confdefs.h <<\_ACEOF | |
10078 | #define __GNUWIN32__ 1 | |
10079 | _ACEOF | |
10080 | ||
10081 | cat >>confdefs.h <<\_ACEOF | |
10082 | #define STRICT 1 | |
10083 | _ACEOF | |
10084 | ||
10085 | cat >>confdefs.h <<\_ACEOF | |
10086 | #define WINVER 0x0400 | |
10087 | _ACEOF | |
10088 | ||
10089 | fi | |
10090 | if test "$doesnt_want_win32" = 1 ; then | |
10091 | USE_UNIX=1 | |
10092 | USE_WIN32=0 | |
10093 | fi | |
10094 | ||
10095 | if test "$USE_UNIX" = 1 ; then | |
10096 | wxUSE_UNIX=yes | |
10097 | cat >>confdefs.h <<\_ACEOF | |
10098 | #define __UNIX__ 1 | |
10099 | _ACEOF | |
10100 | ||
10101 | fi | |
10102 | ||
10103 | ||
10104 | cat >confcache <<\_ACEOF | |
10105 | # This file is a shell script that caches the results of configure | |
10106 | # tests run on this system so they can be shared between configure | |
10107 | # scripts and configure runs, see configure's option --config-cache. | |
10108 | # It is not useful on other systems. If it contains results you don't | |
10109 | # want to keep, you may remove or edit it. | |
10110 | # | |
10111 | # config.status only pays attention to the cache file if you give it | |
10112 | # the --recheck option to rerun configure. | |
10113 | # | |
10114 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10115 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10116 | # following values. | |
10117 | ||
10118 | _ACEOF | |
10119 | ||
10120 | # The following way of writing the cache mishandles newlines in values, | |
10121 | # but we know of no workaround that is simple, portable, and efficient. | |
10122 | # So, don't put newlines in cache variables' values. | |
10123 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10124 | # and sets the high bit in the cache file unless we assign to the vars. | |
10125 | { | |
10126 | (set) 2>&1 | | |
10127 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10128 | *ac_space=\ *) | |
10129 | # `set' does not quote correctly, so add quotes (double-quote | |
10130 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10131 | sed -n \ | |
ac1cb8d3 VS |
10132 | "s/'/'\\\\''/g; |
10133 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10134 | ;; |
10135 | *) | |
10136 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10137 | sed -n \ | |
ac1cb8d3 | 10138 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10139 | ;; |
10140 | esac; | |
10141 | } | | |
10142 | sed ' | |
10143 | t clear | |
10144 | : clear | |
10145 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10146 | t end | |
10147 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10148 | : end' >>confcache | |
10149 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10150 | if test -w $cache_file; then | |
10151 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10152 | cat confcache >$cache_file | |
10153 | else | |
10154 | echo "not updating unwritable cache $cache_file" | |
10155 | fi | |
10156 | fi | |
10157 | rm -f confcache | |
10158 | ||
10159 | if test "$build" != "$host" ; then | |
10160 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10161 | CC=$host_alias-gcc | |
10162 | CXX=$host_alias-c++ | |
10163 | AR=$host_alias-ar | |
10164 | RANLIB=$host_alias-ranlib | |
10165 | DLLTOOL=$host_alias-dlltool | |
10166 | RESCOMP=$host_alias-windres | |
10167 | LD=$host_alias-ld | |
10168 | NM=$host_alias-nm | |
10169 | STRIP=$host_alias-strip | |
10170 | else | |
10171 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10172 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10173 | { (exit 1); exit 1; }; } | |
10174 | fi | |
10175 | fi | |
10176 | ||
10177 | CFLAGS=${CFLAGS:=} | |
10178 | ac_ext=c | |
10179 | ac_cpp='$CPP $CPPFLAGS' | |
10180 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10181 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10182 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10183 | if test -n "$ac_tool_prefix"; then | |
10184 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10185 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10188 | if test "${ac_cv_prog_CC+set}" = set; then | |
10189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10190 | else | |
10191 | if test -n "$CC"; then | |
10192 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10193 | else | |
10194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10195 | for as_dir in $PATH | |
10196 | do | |
10197 | IFS=$as_save_IFS | |
10198 | test -z "$as_dir" && as_dir=. | |
10199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10201 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10203 | break 2 | |
10204 | fi | |
10205 | done | |
10206 | done | |
10207 | ||
10208 | fi | |
10209 | fi | |
10210 | CC=$ac_cv_prog_CC | |
10211 | if test -n "$CC"; then | |
10212 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10213 | echo "${ECHO_T}$CC" >&6 | |
10214 | else | |
10215 | echo "$as_me:$LINENO: result: no" >&5 | |
10216 | echo "${ECHO_T}no" >&6 | |
10217 | fi | |
10218 | ||
10219 | fi | |
10220 | if test -z "$ac_cv_prog_CC"; then | |
10221 | ac_ct_CC=$CC | |
10222 | # Extract the first word of "gcc", so it can be a program name with args. | |
10223 | set dummy gcc; ac_word=$2 | |
10224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10226 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10228 | else | |
10229 | if test -n "$ac_ct_CC"; then | |
10230 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10231 | else | |
10232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10233 | for as_dir in $PATH | |
10234 | do | |
10235 | IFS=$as_save_IFS | |
10236 | test -z "$as_dir" && as_dir=. | |
10237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10238 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10239 | ac_cv_prog_ac_ct_CC="gcc" | |
10240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10241 | break 2 | |
10242 | fi | |
10243 | done | |
10244 | done | |
10245 | ||
10246 | fi | |
10247 | fi | |
10248 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10249 | if test -n "$ac_ct_CC"; then | |
10250 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10251 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10252 | else | |
10253 | echo "$as_me:$LINENO: result: no" >&5 | |
10254 | echo "${ECHO_T}no" >&6 | |
10255 | fi | |
10256 | ||
10257 | CC=$ac_ct_CC | |
10258 | else | |
10259 | CC="$ac_cv_prog_CC" | |
10260 | fi | |
10261 | ||
10262 | if test -z "$CC"; then | |
10263 | if test -n "$ac_tool_prefix"; then | |
10264 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10265 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10268 | if test "${ac_cv_prog_CC+set}" = set; then | |
10269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10270 | else | |
10271 | if test -n "$CC"; then | |
10272 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10273 | else | |
10274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10275 | for as_dir in $PATH | |
10276 | do | |
10277 | IFS=$as_save_IFS | |
10278 | test -z "$as_dir" && as_dir=. | |
10279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10280 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10281 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10283 | break 2 | |
10284 | fi | |
10285 | done | |
10286 | done | |
10287 | ||
10288 | fi | |
10289 | fi | |
10290 | CC=$ac_cv_prog_CC | |
10291 | if test -n "$CC"; then | |
10292 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10293 | echo "${ECHO_T}$CC" >&6 | |
10294 | else | |
10295 | echo "$as_me:$LINENO: result: no" >&5 | |
10296 | echo "${ECHO_T}no" >&6 | |
10297 | fi | |
10298 | ||
10299 | fi | |
10300 | if test -z "$ac_cv_prog_CC"; then | |
10301 | ac_ct_CC=$CC | |
10302 | # Extract the first word of "cc", so it can be a program name with args. | |
10303 | set dummy cc; ac_word=$2 | |
10304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10306 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10308 | else | |
10309 | if test -n "$ac_ct_CC"; then | |
10310 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10311 | else | |
10312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10313 | for as_dir in $PATH | |
10314 | do | |
10315 | IFS=$as_save_IFS | |
10316 | test -z "$as_dir" && as_dir=. | |
10317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10318 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10319 | ac_cv_prog_ac_ct_CC="cc" | |
10320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10321 | break 2 | |
10322 | fi | |
10323 | done | |
10324 | done | |
10325 | ||
10326 | fi | |
10327 | fi | |
10328 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10329 | if test -n "$ac_ct_CC"; then | |
10330 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10331 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10332 | else | |
10333 | echo "$as_me:$LINENO: result: no" >&5 | |
10334 | echo "${ECHO_T}no" >&6 | |
10335 | fi | |
10336 | ||
10337 | CC=$ac_ct_CC | |
10338 | else | |
10339 | CC="$ac_cv_prog_CC" | |
10340 | fi | |
10341 | ||
10342 | fi | |
10343 | if test -z "$CC"; then | |
10344 | # Extract the first word of "cc", so it can be a program name with args. | |
10345 | set dummy cc; ac_word=$2 | |
10346 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10348 | if test "${ac_cv_prog_CC+set}" = set; then | |
10349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10350 | else | |
10351 | if test -n "$CC"; then | |
10352 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10353 | else | |
10354 | ac_prog_rejected=no | |
10355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10356 | for as_dir in $PATH | |
10357 | do | |
10358 | IFS=$as_save_IFS | |
10359 | test -z "$as_dir" && as_dir=. | |
10360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10362 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10363 | ac_prog_rejected=yes | |
10364 | continue | |
10365 | fi | |
10366 | ac_cv_prog_CC="cc" | |
10367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10368 | break 2 | |
10369 | fi | |
10370 | done | |
10371 | done | |
10372 | ||
10373 | if test $ac_prog_rejected = yes; then | |
10374 | # We found a bogon in the path, so make sure we never use it. | |
10375 | set dummy $ac_cv_prog_CC | |
10376 | shift | |
10377 | if test $# != 0; then | |
10378 | # We chose a different compiler from the bogus one. | |
10379 | # However, it has the same basename, so the bogon will be chosen | |
10380 | # first if we set CC to just the basename; use the full file name. | |
10381 | shift | |
10382 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10383 | fi | |
10384 | fi | |
10385 | fi | |
10386 | fi | |
10387 | CC=$ac_cv_prog_CC | |
10388 | if test -n "$CC"; then | |
10389 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10390 | echo "${ECHO_T}$CC" >&6 | |
10391 | else | |
10392 | echo "$as_me:$LINENO: result: no" >&5 | |
10393 | echo "${ECHO_T}no" >&6 | |
10394 | fi | |
10395 | ||
10396 | fi | |
10397 | if test -z "$CC"; then | |
10398 | if test -n "$ac_tool_prefix"; then | |
10399 | for ac_prog in cl | |
10400 | do | |
10401 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10402 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10403 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10404 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10405 | if test "${ac_cv_prog_CC+set}" = set; then | |
10406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10407 | else | |
10408 | if test -n "$CC"; then | |
10409 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10410 | else | |
10411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10412 | for as_dir in $PATH | |
10413 | do | |
10414 | IFS=$as_save_IFS | |
10415 | test -z "$as_dir" && as_dir=. | |
10416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10417 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10418 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10419 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10420 | break 2 | |
10421 | fi | |
10422 | done | |
10423 | done | |
10424 | ||
10425 | fi | |
10426 | fi | |
10427 | CC=$ac_cv_prog_CC | |
10428 | if test -n "$CC"; then | |
10429 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10430 | echo "${ECHO_T}$CC" >&6 | |
10431 | else | |
10432 | echo "$as_me:$LINENO: result: no" >&5 | |
10433 | echo "${ECHO_T}no" >&6 | |
10434 | fi | |
10435 | ||
10436 | test -n "$CC" && break | |
10437 | done | |
10438 | fi | |
10439 | if test -z "$CC"; then | |
10440 | ac_ct_CC=$CC | |
10441 | for ac_prog in cl | |
10442 | do | |
10443 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10444 | set dummy $ac_prog; ac_word=$2 | |
10445 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10447 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10449 | else | |
10450 | if test -n "$ac_ct_CC"; then | |
10451 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10452 | else | |
10453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10454 | for as_dir in $PATH | |
10455 | do | |
10456 | IFS=$as_save_IFS | |
10457 | test -z "$as_dir" && as_dir=. | |
10458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10459 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10460 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10462 | break 2 | |
10463 | fi | |
10464 | done | |
10465 | done | |
10466 | ||
10467 | fi | |
10468 | fi | |
10469 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10470 | if test -n "$ac_ct_CC"; then | |
10471 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10472 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10473 | else | |
10474 | echo "$as_me:$LINENO: result: no" >&5 | |
10475 | echo "${ECHO_T}no" >&6 | |
10476 | fi | |
10477 | ||
10478 | test -n "$ac_ct_CC" && break | |
10479 | done | |
10480 | ||
10481 | CC=$ac_ct_CC | |
10482 | fi | |
10483 | ||
10484 | fi | |
10485 | ||
10486 | ||
10487 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10488 | See \`config.log' for more details." >&5 | |
10489 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10490 | See \`config.log' for more details." >&2;} | |
10491 | { (exit 1); exit 1; }; } | |
10492 | ||
10493 | # Provide some information about the compiler. | |
10494 | echo "$as_me:$LINENO:" \ | |
10495 | "checking for C compiler version" >&5 | |
10496 | ac_compiler=`set X $ac_compile; echo $2` | |
10497 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10498 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10499 | ac_status=$? | |
10500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10501 | (exit $ac_status); } | |
10502 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10503 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10504 | ac_status=$? | |
10505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10506 | (exit $ac_status); } | |
10507 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10508 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10509 | ac_status=$? | |
10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10511 | (exit $ac_status); } | |
10512 | ||
10513 | cat >conftest.$ac_ext <<_ACEOF | |
10514 | /* confdefs.h. */ | |
10515 | _ACEOF | |
10516 | cat confdefs.h >>conftest.$ac_ext | |
10517 | cat >>conftest.$ac_ext <<_ACEOF | |
10518 | /* end confdefs.h. */ | |
10519 | ||
10520 | int | |
10521 | main () | |
10522 | { | |
10523 | ||
10524 | ; | |
10525 | return 0; | |
10526 | } | |
10527 | _ACEOF | |
10528 | ac_clean_files_save=$ac_clean_files | |
10529 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10530 | # Try to create an executable without -o first, disregard a.out. | |
10531 | # It will help us diagnose broken compilers, and finding out an intuition | |
10532 | # of exeext. | |
ac1cb8d3 VS |
10533 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10534 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10535 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10536 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10537 | (eval $ac_link_default) 2>&5 | |
10538 | ac_status=$? | |
10539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10540 | (exit $ac_status); }; then | |
10541 | # Find the output, starting from the most likely. This scheme is | |
10542 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10543 | # resort. | |
10544 | ||
10545 | # Be careful to initialize this variable, since it used to be cached. | |
10546 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10547 | ac_cv_exeext= | |
10548 | # b.out is created by i960 compilers. | |
10549 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10550 | do | |
10551 | test -f "$ac_file" || continue | |
10552 | case $ac_file in | |
10553 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10554 | ;; |
a848cd7e | 10555 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10556 | # This is the source file. |
10557 | ;; | |
a848cd7e | 10558 | [ab].out ) |
ac1cb8d3 VS |
10559 | # We found the default executable, but exeext='' is most |
10560 | # certainly right. | |
10561 | break;; | |
a848cd7e | 10562 | *.* ) |
ac1cb8d3 VS |
10563 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10564 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10565 | # but it would be cool to find out if it's true. Does anybody | |
10566 | # maintain Libtool? --akim. | |
10567 | export ac_cv_exeext | |
10568 | break;; | |
a848cd7e | 10569 | * ) |
ac1cb8d3 | 10570 | break;; |
a848cd7e SC |
10571 | esac |
10572 | done | |
10573 | else | |
10574 | echo "$as_me: failed program was:" >&5 | |
10575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10576 | ||
10577 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10578 | See \`config.log' for more details." >&5 | |
10579 | echo "$as_me: error: C compiler cannot create executables | |
10580 | See \`config.log' for more details." >&2;} | |
10581 | { (exit 77); exit 77; }; } | |
10582 | fi | |
10583 | ||
10584 | ac_exeext=$ac_cv_exeext | |
10585 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10586 | echo "${ECHO_T}$ac_file" >&6 | |
10587 | ||
10588 | # Check the compiler produces executables we can run. If not, either | |
10589 | # the compiler is broken, or we cross compile. | |
10590 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10591 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10592 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10593 | # If not cross compiling, check that we can run a simple program. | |
10594 | if test "$cross_compiling" != yes; then | |
10595 | if { ac_try='./$ac_file' | |
10596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10597 | (eval $ac_try) 2>&5 | |
10598 | ac_status=$? | |
10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10600 | (exit $ac_status); }; }; then | |
10601 | cross_compiling=no | |
10602 | else | |
10603 | if test "$cross_compiling" = maybe; then | |
10604 | cross_compiling=yes | |
10605 | else | |
10606 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10607 | If you meant to cross compile, use \`--host'. | |
10608 | See \`config.log' for more details." >&5 | |
10609 | echo "$as_me: error: cannot run C compiled programs. | |
10610 | If you meant to cross compile, use \`--host'. | |
10611 | See \`config.log' for more details." >&2;} | |
10612 | { (exit 1); exit 1; }; } | |
10613 | fi | |
10614 | fi | |
10615 | fi | |
10616 | echo "$as_me:$LINENO: result: yes" >&5 | |
10617 | echo "${ECHO_T}yes" >&6 | |
10618 | ||
10619 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10620 | ac_clean_files=$ac_clean_files_save | |
10621 | # Check the compiler produces executables we can run. If not, either | |
10622 | # the compiler is broken, or we cross compile. | |
10623 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10624 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10625 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10626 | echo "${ECHO_T}$cross_compiling" >&6 | |
10627 | ||
10628 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10629 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10631 | (eval $ac_link) 2>&5 | |
10632 | ac_status=$? | |
10633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10634 | (exit $ac_status); }; then | |
10635 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10636 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10637 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10638 | # `rm'. | |
10639 | for ac_file in conftest.exe conftest conftest.*; do | |
10640 | test -f "$ac_file" || continue | |
10641 | case $ac_file in | |
10642 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10643 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10644 | export ac_cv_exeext |
10645 | break;; | |
a848cd7e SC |
10646 | * ) break;; |
10647 | esac | |
10648 | done | |
10649 | else | |
10650 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10651 | See \`config.log' for more details." >&5 | |
10652 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10653 | See \`config.log' for more details." >&2;} | |
10654 | { (exit 1); exit 1; }; } | |
10655 | fi | |
10656 | ||
10657 | rm -f conftest$ac_cv_exeext | |
10658 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10659 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10660 | ||
10661 | rm -f conftest.$ac_ext | |
10662 | EXEEXT=$ac_cv_exeext | |
10663 | ac_exeext=$EXEEXT | |
10664 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10665 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10666 | if test "${ac_cv_objext+set}" = set; then | |
10667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10668 | else | |
10669 | cat >conftest.$ac_ext <<_ACEOF | |
10670 | /* confdefs.h. */ | |
10671 | _ACEOF | |
10672 | cat confdefs.h >>conftest.$ac_ext | |
10673 | cat >>conftest.$ac_ext <<_ACEOF | |
10674 | /* end confdefs.h. */ | |
10675 | ||
10676 | int | |
10677 | main () | |
10678 | { | |
10679 | ||
10680 | ; | |
10681 | return 0; | |
10682 | } | |
10683 | _ACEOF | |
10684 | rm -f conftest.o conftest.obj | |
10685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10686 | (eval $ac_compile) 2>&5 | |
10687 | ac_status=$? | |
10688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10689 | (exit $ac_status); }; then | |
10690 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10691 | case $ac_file in | |
10692 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10693 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10694 | break;; | |
10695 | esac | |
10696 | done | |
10697 | else | |
10698 | echo "$as_me: failed program was:" >&5 | |
10699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10700 | ||
10701 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10702 | See \`config.log' for more details." >&5 | |
10703 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10704 | See \`config.log' for more details." >&2;} | |
10705 | { (exit 1); exit 1; }; } | |
10706 | fi | |
10707 | ||
10708 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10709 | fi | |
10710 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10711 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10712 | OBJEXT=$ac_cv_objext | |
10713 | ac_objext=$OBJEXT | |
10714 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10715 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10716 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10718 | else | |
10719 | cat >conftest.$ac_ext <<_ACEOF | |
10720 | /* confdefs.h. */ | |
10721 | _ACEOF | |
10722 | cat confdefs.h >>conftest.$ac_ext | |
10723 | cat >>conftest.$ac_ext <<_ACEOF | |
10724 | /* end confdefs.h. */ | |
10725 | ||
10726 | int | |
10727 | main () | |
10728 | { | |
10729 | #ifndef __GNUC__ | |
10730 | choke me | |
10731 | #endif | |
10732 | ||
10733 | ; | |
10734 | return 0; | |
10735 | } | |
10736 | _ACEOF | |
10737 | rm -f conftest.$ac_objext | |
10738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10739 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10740 | ac_status=$? |
ac1cb8d3 VS |
10741 | grep -v '^ *+' conftest.er1 >conftest.err |
10742 | rm -f conftest.er1 | |
10743 | cat conftest.err >&5 | |
a848cd7e SC |
10744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10745 | (exit $ac_status); } && | |
ac1cb8d3 VS |
10746 | { ac_try='test -z "$ac_c_werror_flag" |
10747 | || test ! -s conftest.err' | |
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); } && | |
ac1cb8d3 VS |
10805 | { ac_try='test -z "$ac_c_werror_flag" |
10806 | || test ! -s conftest.err' | |
10807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10808 | (eval $ac_try) 2>&5 | |
10809 | ac_status=$? | |
10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10811 | (exit $ac_status); }; } && | |
10812 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10814 | (eval $ac_try) 2>&5 | |
10815 | ac_status=$? | |
10816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10817 | (exit $ac_status); }; }; then | |
10818 | ac_cv_prog_cc_g=yes | |
10819 | else | |
10820 | echo "$as_me: failed program was:" >&5 | |
10821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10822 | ||
10823 | ac_cv_prog_cc_g=no | |
10824 | fi | |
ac1cb8d3 | 10825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10826 | fi |
10827 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10828 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10829 | if test "$ac_test_CFLAGS" = set; then | |
10830 | CFLAGS=$ac_save_CFLAGS | |
10831 | elif test $ac_cv_prog_cc_g = yes; then | |
10832 | if test "$GCC" = yes; then | |
10833 | CFLAGS="-g -O2" | |
10834 | else | |
10835 | CFLAGS="-g" | |
10836 | fi | |
10837 | else | |
10838 | if test "$GCC" = yes; then | |
10839 | CFLAGS="-O2" | |
10840 | else | |
10841 | CFLAGS= | |
10842 | fi | |
10843 | fi | |
10844 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10845 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10846 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10848 | else | |
10849 | ac_cv_prog_cc_stdc=no | |
10850 | ac_save_CC=$CC | |
10851 | cat >conftest.$ac_ext <<_ACEOF | |
10852 | /* confdefs.h. */ | |
10853 | _ACEOF | |
10854 | cat confdefs.h >>conftest.$ac_ext | |
10855 | cat >>conftest.$ac_ext <<_ACEOF | |
10856 | /* end confdefs.h. */ | |
10857 | #include <stdarg.h> | |
10858 | #include <stdio.h> | |
10859 | #include <sys/types.h> | |
10860 | #include <sys/stat.h> | |
10861 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10862 | struct buf { int x; }; | |
10863 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10864 | static char *e (p, i) | |
10865 | char **p; | |
10866 | int i; | |
10867 | { | |
10868 | return p[i]; | |
10869 | } | |
10870 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10871 | { | |
10872 | char *s; | |
10873 | va_list v; | |
10874 | va_start (v,p); | |
10875 | s = g (p, va_arg (v,int)); | |
10876 | va_end (v); | |
10877 | return s; | |
10878 | } | |
ac1cb8d3 VS |
10879 | |
10880 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10881 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10882 | These don't provoke an error unfortunately, instead are silently treated | |
10883 | as 'x'. The following induces an error, until -std1 is added to get | |
10884 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10885 | array size at least. It's necessary to write '\x00'==0 to get something | |
10886 | that's true only with -std1. */ | |
10887 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10888 | ||
a848cd7e SC |
10889 | int test (int i, double x); |
10890 | struct s1 {int (*f) (int a);}; | |
10891 | struct s2 {int (*f) (double a);}; | |
10892 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10893 | int argc; | |
10894 | char **argv; | |
10895 | int | |
10896 | main () | |
10897 | { | |
10898 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10899 | ; | |
10900 | return 0; | |
10901 | } | |
10902 | _ACEOF | |
10903 | # Don't try gcc -ansi; that turns off useful extensions and | |
10904 | # breaks some systems' header files. | |
10905 | # AIX -qlanglvl=ansi | |
10906 | # Ultrix and OSF/1 -std1 | |
10907 | # HP-UX 10.20 and later -Ae | |
10908 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10909 | # SVR4 -Xc -D__EXTENSIONS__ | |
10910 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10911 | do | |
10912 | CC="$ac_save_CC $ac_arg" | |
10913 | rm -f conftest.$ac_objext | |
10914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10915 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10916 | ac_status=$? |
ac1cb8d3 VS |
10917 | grep -v '^ *+' conftest.er1 >conftest.err |
10918 | rm -f conftest.er1 | |
10919 | cat conftest.err >&5 | |
a848cd7e SC |
10920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10921 | (exit $ac_status); } && | |
ac1cb8d3 VS |
10922 | { ac_try='test -z "$ac_c_werror_flag" |
10923 | || test ! -s conftest.err' | |
10924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10925 | (eval $ac_try) 2>&5 | |
10926 | ac_status=$? | |
10927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10928 | (exit $ac_status); }; } && | |
10929 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10931 | (eval $ac_try) 2>&5 | |
10932 | ac_status=$? | |
10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10934 | (exit $ac_status); }; }; then | |
10935 | ac_cv_prog_cc_stdc=$ac_arg | |
10936 | break | |
10937 | else | |
10938 | echo "$as_me: failed program was:" >&5 | |
10939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10940 | ||
10941 | fi | |
ac1cb8d3 | 10942 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
10943 | done |
10944 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10945 | CC=$ac_save_CC | |
10946 | ||
10947 | fi | |
10948 | ||
10949 | case "x$ac_cv_prog_cc_stdc" in | |
10950 | x|xno) | |
10951 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10952 | echo "${ECHO_T}none needed" >&6 ;; | |
10953 | *) | |
10954 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10955 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10956 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10957 | esac | |
10958 | ||
10959 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10960 | # in C++ we need to declare it. In case someone uses the same compiler | |
10961 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10962 | # the declaration of exit, since it's the most demanding environment. | |
10963 | cat >conftest.$ac_ext <<_ACEOF | |
10964 | #ifndef __cplusplus | |
10965 | choke me | |
10966 | #endif | |
10967 | _ACEOF | |
10968 | rm -f conftest.$ac_objext | |
10969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10970 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10971 | ac_status=$? |
ac1cb8d3 VS |
10972 | grep -v '^ *+' conftest.er1 >conftest.err |
10973 | rm -f conftest.er1 | |
10974 | cat conftest.err >&5 | |
a848cd7e SC |
10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10976 | (exit $ac_status); } && | |
ac1cb8d3 VS |
10977 | { ac_try='test -z "$ac_c_werror_flag" |
10978 | || test ! -s conftest.err' | |
10979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10980 | (eval $ac_try) 2>&5 | |
10981 | ac_status=$? | |
10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10983 | (exit $ac_status); }; } && | |
10984 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10986 | (eval $ac_try) 2>&5 | |
10987 | ac_status=$? | |
10988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10989 | (exit $ac_status); }; }; then | |
10990 | for ac_declaration in \ | |
ac1cb8d3 | 10991 | '' \ |
a848cd7e SC |
10992 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10993 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10994 | 'extern "C" void exit (int) throw ();' \ | |
10995 | 'extern "C" void exit (int);' \ | |
10996 | 'void exit (int);' | |
10997 | do | |
10998 | cat >conftest.$ac_ext <<_ACEOF | |
10999 | /* confdefs.h. */ | |
11000 | _ACEOF | |
11001 | cat confdefs.h >>conftest.$ac_ext | |
11002 | cat >>conftest.$ac_ext <<_ACEOF | |
11003 | /* end confdefs.h. */ | |
de59c161 | 11004 | $ac_declaration |
ac1cb8d3 | 11005 | #include <stdlib.h> |
a848cd7e SC |
11006 | int |
11007 | main () | |
11008 | { | |
11009 | exit (42); | |
11010 | ; | |
11011 | return 0; | |
11012 | } | |
11013 | _ACEOF | |
11014 | rm -f conftest.$ac_objext | |
11015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11016 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11017 | ac_status=$? |
ac1cb8d3 VS |
11018 | grep -v '^ *+' conftest.er1 >conftest.err |
11019 | rm -f conftest.er1 | |
11020 | cat conftest.err >&5 | |
a848cd7e SC |
11021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11022 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11023 | { ac_try='test -z "$ac_c_werror_flag" |
11024 | || test ! -s conftest.err' | |
11025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11026 | (eval $ac_try) 2>&5 | |
11027 | ac_status=$? | |
11028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11029 | (exit $ac_status); }; } && | |
11030 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11032 | (eval $ac_try) 2>&5 | |
11033 | ac_status=$? | |
11034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11035 | (exit $ac_status); }; }; then | |
11036 | : | |
11037 | else | |
11038 | echo "$as_me: failed program was:" >&5 | |
11039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11040 | ||
11041 | continue | |
11042 | fi | |
ac1cb8d3 | 11043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11044 | cat >conftest.$ac_ext <<_ACEOF |
11045 | /* confdefs.h. */ | |
11046 | _ACEOF | |
11047 | cat confdefs.h >>conftest.$ac_ext | |
11048 | cat >>conftest.$ac_ext <<_ACEOF | |
11049 | /* end confdefs.h. */ | |
11050 | $ac_declaration | |
11051 | int | |
11052 | main () | |
11053 | { | |
11054 | exit (42); | |
11055 | ; | |
11056 | return 0; | |
11057 | } | |
11058 | _ACEOF | |
11059 | rm -f conftest.$ac_objext | |
11060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11061 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11062 | ac_status=$? |
ac1cb8d3 VS |
11063 | grep -v '^ *+' conftest.er1 >conftest.err |
11064 | rm -f conftest.er1 | |
11065 | cat conftest.err >&5 | |
a848cd7e SC |
11066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11067 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11068 | { ac_try='test -z "$ac_c_werror_flag" |
11069 | || test ! -s conftest.err' | |
11070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11071 | (eval $ac_try) 2>&5 | |
11072 | ac_status=$? | |
11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11074 | (exit $ac_status); }; } && | |
11075 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11077 | (eval $ac_try) 2>&5 | |
11078 | ac_status=$? | |
11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11080 | (exit $ac_status); }; }; then | |
11081 | break | |
11082 | else | |
11083 | echo "$as_me: failed program was:" >&5 | |
11084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11085 | ||
11086 | fi | |
ac1cb8d3 | 11087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11088 | done |
11089 | rm -f conftest* | |
11090 | if test -n "$ac_declaration"; then | |
11091 | echo '#ifdef __cplusplus' >>confdefs.h | |
11092 | echo $ac_declaration >>confdefs.h | |
11093 | echo '#endif' >>confdefs.h | |
11094 | fi | |
11095 | ||
11096 | else | |
11097 | echo "$as_me: failed program was:" >&5 | |
11098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11099 | ||
11100 | fi | |
ac1cb8d3 | 11101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11102 | ac_ext=c |
11103 | ac_cpp='$CPP $CPPFLAGS' | |
11104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11107 | ||
11108 | ||
11109 | ||
11110 | ac_ext=c | |
11111 | ac_cpp='$CPP $CPPFLAGS' | |
11112 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11113 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11114 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11115 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11116 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11117 | # On Suns, sometimes $CPP names a directory. | |
11118 | if test -n "$CPP" && test -d "$CPP"; then | |
11119 | CPP= | |
11120 | fi | |
11121 | if test -z "$CPP"; then | |
11122 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11124 | else | |
11125 | # Double quotes because CPP needs to be expanded | |
11126 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11127 | do | |
11128 | ac_preproc_ok=false | |
11129 | for ac_c_preproc_warn_flag in '' yes | |
11130 | do | |
11131 | # Use a header file that comes with gcc, so configuring glibc | |
11132 | # with a fresh cross-compiler works. | |
11133 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11134 | # <limits.h> exists even on freestanding compilers. | |
11135 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11136 | # not just through cpp. "Syntax error" is here to catch this case. | |
11137 | cat >conftest.$ac_ext <<_ACEOF | |
11138 | /* confdefs.h. */ | |
11139 | _ACEOF | |
11140 | cat confdefs.h >>conftest.$ac_ext | |
11141 | cat >>conftest.$ac_ext <<_ACEOF | |
11142 | /* end confdefs.h. */ | |
11143 | #ifdef __STDC__ | |
11144 | # include <limits.h> | |
11145 | #else | |
11146 | # include <assert.h> | |
11147 | #endif | |
ac1cb8d3 | 11148 | Syntax error |
a848cd7e SC |
11149 | _ACEOF |
11150 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11151 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11152 | ac_status=$? | |
11153 | grep -v '^ *+' conftest.er1 >conftest.err | |
11154 | rm -f conftest.er1 | |
11155 | cat conftest.err >&5 | |
11156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11157 | (exit $ac_status); } >/dev/null; then | |
11158 | if test -s conftest.err; then | |
11159 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11160 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11161 | else |
11162 | ac_cpp_err= | |
11163 | fi | |
11164 | else | |
11165 | ac_cpp_err=yes | |
11166 | fi | |
11167 | if test -z "$ac_cpp_err"; then | |
11168 | : | |
11169 | else | |
11170 | echo "$as_me: failed program was:" >&5 | |
11171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11172 | ||
11173 | # Broken: fails on valid input. | |
11174 | continue | |
11175 | fi | |
11176 | rm -f conftest.err conftest.$ac_ext | |
11177 | ||
11178 | # OK, works on sane cases. Now check whether non-existent headers | |
11179 | # can be detected and how. | |
11180 | cat >conftest.$ac_ext <<_ACEOF | |
11181 | /* confdefs.h. */ | |
11182 | _ACEOF | |
11183 | cat confdefs.h >>conftest.$ac_ext | |
11184 | cat >>conftest.$ac_ext <<_ACEOF | |
11185 | /* end confdefs.h. */ | |
11186 | #include <ac_nonexistent.h> | |
11187 | _ACEOF | |
11188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11190 | ac_status=$? | |
11191 | grep -v '^ *+' conftest.er1 >conftest.err | |
11192 | rm -f conftest.er1 | |
11193 | cat conftest.err >&5 | |
11194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11195 | (exit $ac_status); } >/dev/null; then | |
11196 | if test -s conftest.err; then | |
11197 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11198 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11199 | else |
11200 | ac_cpp_err= | |
11201 | fi | |
11202 | else | |
11203 | ac_cpp_err=yes | |
11204 | fi | |
11205 | if test -z "$ac_cpp_err"; then | |
11206 | # Broken: success on invalid input. | |
11207 | continue | |
11208 | else | |
11209 | echo "$as_me: failed program was:" >&5 | |
11210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11211 | ||
11212 | # Passes both tests. | |
11213 | ac_preproc_ok=: | |
11214 | break | |
11215 | fi | |
11216 | rm -f conftest.err conftest.$ac_ext | |
11217 | ||
11218 | done | |
11219 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11220 | rm -f conftest.err conftest.$ac_ext | |
11221 | if $ac_preproc_ok; then | |
11222 | break | |
11223 | fi | |
11224 | ||
11225 | done | |
11226 | ac_cv_prog_CPP=$CPP | |
11227 | ||
11228 | fi | |
11229 | CPP=$ac_cv_prog_CPP | |
11230 | else | |
11231 | ac_cv_prog_CPP=$CPP | |
11232 | fi | |
11233 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11234 | echo "${ECHO_T}$CPP" >&6 | |
11235 | ac_preproc_ok=false | |
11236 | for ac_c_preproc_warn_flag in '' yes | |
11237 | do | |
11238 | # Use a header file that comes with gcc, so configuring glibc | |
11239 | # with a fresh cross-compiler works. | |
11240 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11241 | # <limits.h> exists even on freestanding compilers. | |
11242 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11243 | # not just through cpp. "Syntax error" is here to catch this case. | |
11244 | cat >conftest.$ac_ext <<_ACEOF | |
11245 | /* confdefs.h. */ | |
11246 | _ACEOF | |
11247 | cat confdefs.h >>conftest.$ac_ext | |
11248 | cat >>conftest.$ac_ext <<_ACEOF | |
11249 | /* end confdefs.h. */ | |
11250 | #ifdef __STDC__ | |
11251 | # include <limits.h> | |
11252 | #else | |
11253 | # include <assert.h> | |
11254 | #endif | |
ac1cb8d3 | 11255 | Syntax error |
a848cd7e SC |
11256 | _ACEOF |
11257 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11258 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11259 | ac_status=$? | |
11260 | grep -v '^ *+' conftest.er1 >conftest.err | |
11261 | rm -f conftest.er1 | |
11262 | cat conftest.err >&5 | |
11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11264 | (exit $ac_status); } >/dev/null; then | |
11265 | if test -s conftest.err; then | |
11266 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11267 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11268 | else |
11269 | ac_cpp_err= | |
11270 | fi | |
11271 | else | |
11272 | ac_cpp_err=yes | |
11273 | fi | |
11274 | if test -z "$ac_cpp_err"; then | |
11275 | : | |
11276 | else | |
11277 | echo "$as_me: failed program was:" >&5 | |
11278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11279 | ||
11280 | # Broken: fails on valid input. | |
11281 | continue | |
11282 | fi | |
11283 | rm -f conftest.err conftest.$ac_ext | |
11284 | ||
11285 | # OK, works on sane cases. Now check whether non-existent headers | |
11286 | # can be detected and how. | |
11287 | cat >conftest.$ac_ext <<_ACEOF | |
11288 | /* confdefs.h. */ | |
11289 | _ACEOF | |
11290 | cat confdefs.h >>conftest.$ac_ext | |
11291 | cat >>conftest.$ac_ext <<_ACEOF | |
11292 | /* end confdefs.h. */ | |
11293 | #include <ac_nonexistent.h> | |
11294 | _ACEOF | |
11295 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11296 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11297 | ac_status=$? | |
11298 | grep -v '^ *+' conftest.er1 >conftest.err | |
11299 | rm -f conftest.er1 | |
11300 | cat conftest.err >&5 | |
11301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11302 | (exit $ac_status); } >/dev/null; then | |
11303 | if test -s conftest.err; then | |
11304 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11305 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11306 | else |
11307 | ac_cpp_err= | |
11308 | fi | |
11309 | else | |
11310 | ac_cpp_err=yes | |
11311 | fi | |
11312 | if test -z "$ac_cpp_err"; then | |
11313 | # Broken: success on invalid input. | |
11314 | continue | |
11315 | else | |
11316 | echo "$as_me: failed program was:" >&5 | |
11317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11318 | ||
11319 | # Passes both tests. | |
11320 | ac_preproc_ok=: | |
11321 | break | |
11322 | fi | |
11323 | rm -f conftest.err conftest.$ac_ext | |
11324 | ||
11325 | done | |
11326 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11327 | rm -f conftest.err conftest.$ac_ext | |
11328 | if $ac_preproc_ok; then | |
11329 | : | |
11330 | else | |
11331 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11332 | See \`config.log' for more details." >&5 | |
11333 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11334 | See \`config.log' for more details." >&2;} | |
11335 | { (exit 1); exit 1; }; } | |
11336 | fi | |
11337 | ||
11338 | ac_ext=c | |
11339 | ac_cpp='$CPP $CPPFLAGS' | |
11340 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11341 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11342 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11343 | ||
11344 | ||
11345 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11346 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11347 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11349 | else | |
11350 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11351 | then ac_cv_prog_egrep='grep -E' | |
11352 | else ac_cv_prog_egrep='egrep' | |
11353 | fi | |
11354 | fi | |
11355 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11356 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11357 | EGREP=$ac_cv_prog_egrep | |
11358 | ||
11359 | ||
11360 | if test $ac_cv_c_compiler_gnu = yes; then | |
11361 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11362 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11363 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11365 | else | |
11366 | ac_pattern="Autoconf.*'x'" | |
11367 | cat >conftest.$ac_ext <<_ACEOF | |
11368 | /* confdefs.h. */ | |
11369 | _ACEOF | |
11370 | cat confdefs.h >>conftest.$ac_ext | |
11371 | cat >>conftest.$ac_ext <<_ACEOF | |
11372 | /* end confdefs.h. */ | |
11373 | #include <sgtty.h> | |
11374 | Autoconf TIOCGETP | |
11375 | _ACEOF | |
11376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11377 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11378 | ac_cv_prog_gcc_traditional=yes | |
11379 | else | |
11380 | ac_cv_prog_gcc_traditional=no | |
11381 | fi | |
11382 | rm -f conftest* | |
11383 | ||
11384 | ||
11385 | if test $ac_cv_prog_gcc_traditional = no; then | |
11386 | cat >conftest.$ac_ext <<_ACEOF | |
11387 | /* confdefs.h. */ | |
11388 | _ACEOF | |
11389 | cat confdefs.h >>conftest.$ac_ext | |
11390 | cat >>conftest.$ac_ext <<_ACEOF | |
11391 | /* end confdefs.h. */ | |
11392 | #include <termio.h> | |
11393 | Autoconf TCGETA | |
11394 | _ACEOF | |
11395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11396 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11397 | ac_cv_prog_gcc_traditional=yes | |
11398 | fi | |
11399 | rm -f conftest* | |
11400 | ||
11401 | fi | |
11402 | fi | |
11403 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11404 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11405 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11406 | CC="$CC -traditional" | |
11407 | fi | |
11408 | fi | |
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ac_ext=cc | |
11414 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11415 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11416 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11417 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11418 | ||
11419 | ||
11420 | CXXFLAGS=${CXXFLAGS:=} | |
11421 | ac_ext=cc | |
11422 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11423 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11424 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11425 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11426 | if test -n "$ac_tool_prefix"; then | |
11427 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11428 | do | |
11429 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11430 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11433 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11435 | else | |
11436 | if test -n "$CXX"; then | |
11437 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11438 | else | |
11439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11440 | for as_dir in $PATH | |
11441 | do | |
11442 | IFS=$as_save_IFS | |
11443 | test -z "$as_dir" && as_dir=. | |
11444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11445 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11446 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11448 | break 2 | |
11449 | fi | |
11450 | done | |
11451 | done | |
11452 | ||
11453 | fi | |
11454 | fi | |
11455 | CXX=$ac_cv_prog_CXX | |
11456 | if test -n "$CXX"; then | |
11457 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11458 | echo "${ECHO_T}$CXX" >&6 | |
11459 | else | |
11460 | echo "$as_me:$LINENO: result: no" >&5 | |
11461 | echo "${ECHO_T}no" >&6 | |
11462 | fi | |
11463 | ||
11464 | test -n "$CXX" && break | |
11465 | done | |
11466 | fi | |
11467 | if test -z "$CXX"; then | |
11468 | ac_ct_CXX=$CXX | |
11469 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11470 | do | |
11471 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11472 | set dummy $ac_prog; ac_word=$2 | |
11473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11475 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11477 | else | |
11478 | if test -n "$ac_ct_CXX"; then | |
11479 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11480 | else | |
11481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11482 | for as_dir in $PATH | |
11483 | do | |
11484 | IFS=$as_save_IFS | |
11485 | test -z "$as_dir" && as_dir=. | |
11486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11488 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11490 | break 2 | |
11491 | fi | |
11492 | done | |
11493 | done | |
11494 | ||
11495 | fi | |
11496 | fi | |
11497 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11498 | if test -n "$ac_ct_CXX"; then | |
11499 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11500 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11501 | else | |
11502 | echo "$as_me:$LINENO: result: no" >&5 | |
11503 | echo "${ECHO_T}no" >&6 | |
11504 | fi | |
11505 | ||
11506 | test -n "$ac_ct_CXX" && break | |
11507 | done | |
11508 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11509 | ||
11510 | CXX=$ac_ct_CXX | |
11511 | fi | |
11512 | ||
11513 | ||
11514 | # Provide some information about the compiler. | |
11515 | echo "$as_me:$LINENO:" \ | |
11516 | "checking for C++ compiler version" >&5 | |
11517 | ac_compiler=`set X $ac_compile; echo $2` | |
11518 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11519 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11520 | ac_status=$? | |
11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11522 | (exit $ac_status); } | |
11523 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11524 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11525 | ac_status=$? | |
11526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11527 | (exit $ac_status); } | |
11528 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11529 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11530 | ac_status=$? | |
11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11532 | (exit $ac_status); } | |
11533 | ||
11534 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11535 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11536 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11538 | else | |
11539 | cat >conftest.$ac_ext <<_ACEOF | |
11540 | /* confdefs.h. */ | |
11541 | _ACEOF | |
11542 | cat confdefs.h >>conftest.$ac_ext | |
11543 | cat >>conftest.$ac_ext <<_ACEOF | |
11544 | /* end confdefs.h. */ | |
11545 | ||
11546 | int | |
11547 | main () | |
11548 | { | |
11549 | #ifndef __GNUC__ | |
11550 | choke me | |
11551 | #endif | |
11552 | ||
11553 | ; | |
11554 | return 0; | |
11555 | } | |
11556 | _ACEOF | |
11557 | rm -f conftest.$ac_objext | |
11558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11559 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11560 | ac_status=$? |
ac1cb8d3 VS |
11561 | grep -v '^ *+' conftest.er1 >conftest.err |
11562 | rm -f conftest.er1 | |
11563 | cat conftest.err >&5 | |
a848cd7e SC |
11564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11565 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11566 | { ac_try='test -z "$ac_cxx_werror_flag" |
11567 | || test ! -s conftest.err' | |
11568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11569 | (eval $ac_try) 2>&5 | |
11570 | ac_status=$? | |
11571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11572 | (exit $ac_status); }; } && | |
11573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11575 | (eval $ac_try) 2>&5 | |
11576 | ac_status=$? | |
11577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11578 | (exit $ac_status); }; }; then | |
11579 | ac_compiler_gnu=yes | |
11580 | else | |
11581 | echo "$as_me: failed program was:" >&5 | |
11582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11583 | ||
11584 | ac_compiler_gnu=no | |
11585 | fi | |
ac1cb8d3 | 11586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11587 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11588 | ||
11589 | fi | |
11590 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11591 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11592 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11593 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11594 | ac_save_CXXFLAGS=$CXXFLAGS | |
11595 | CXXFLAGS="-g" | |
11596 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11597 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11598 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11600 | else | |
11601 | cat >conftest.$ac_ext <<_ACEOF | |
11602 | /* confdefs.h. */ | |
11603 | _ACEOF | |
11604 | cat confdefs.h >>conftest.$ac_ext | |
11605 | cat >>conftest.$ac_ext <<_ACEOF | |
11606 | /* end confdefs.h. */ | |
11607 | ||
11608 | int | |
11609 | main () | |
11610 | { | |
11611 | ||
11612 | ; | |
11613 | return 0; | |
11614 | } | |
11615 | _ACEOF | |
11616 | rm -f conftest.$ac_objext | |
11617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11618 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11619 | ac_status=$? |
ac1cb8d3 VS |
11620 | grep -v '^ *+' conftest.er1 >conftest.err |
11621 | rm -f conftest.er1 | |
11622 | cat conftest.err >&5 | |
a848cd7e SC |
11623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11624 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11625 | { ac_try='test -z "$ac_cxx_werror_flag" |
11626 | || test ! -s conftest.err' | |
11627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11628 | (eval $ac_try) 2>&5 | |
11629 | ac_status=$? | |
11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11631 | (exit $ac_status); }; } && | |
11632 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11634 | (eval $ac_try) 2>&5 | |
11635 | ac_status=$? | |
11636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11637 | (exit $ac_status); }; }; then | |
11638 | ac_cv_prog_cxx_g=yes | |
11639 | else | |
11640 | echo "$as_me: failed program was:" >&5 | |
11641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11642 | ||
11643 | ac_cv_prog_cxx_g=no | |
11644 | fi | |
ac1cb8d3 | 11645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11646 | fi |
11647 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11648 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11649 | if test "$ac_test_CXXFLAGS" = set; then | |
11650 | CXXFLAGS=$ac_save_CXXFLAGS | |
11651 | elif test $ac_cv_prog_cxx_g = yes; then | |
11652 | if test "$GXX" = yes; then | |
11653 | CXXFLAGS="-g -O2" | |
11654 | else | |
11655 | CXXFLAGS="-g" | |
11656 | fi | |
11657 | else | |
11658 | if test "$GXX" = yes; then | |
11659 | CXXFLAGS="-O2" | |
11660 | else | |
11661 | CXXFLAGS= | |
11662 | fi | |
11663 | fi | |
11664 | for ac_declaration in \ | |
ac1cb8d3 | 11665 | '' \ |
a848cd7e SC |
11666 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11667 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11668 | 'extern "C" void exit (int) throw ();' \ | |
11669 | 'extern "C" void exit (int);' \ | |
11670 | 'void exit (int);' | |
11671 | do | |
11672 | cat >conftest.$ac_ext <<_ACEOF | |
11673 | /* confdefs.h. */ | |
11674 | _ACEOF | |
11675 | cat confdefs.h >>conftest.$ac_ext | |
11676 | cat >>conftest.$ac_ext <<_ACEOF | |
11677 | /* end confdefs.h. */ | |
de59c161 | 11678 | $ac_declaration |
ac1cb8d3 | 11679 | #include <stdlib.h> |
a848cd7e SC |
11680 | int |
11681 | main () | |
11682 | { | |
11683 | exit (42); | |
11684 | ; | |
11685 | return 0; | |
11686 | } | |
11687 | _ACEOF | |
11688 | rm -f conftest.$ac_objext | |
11689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11690 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11691 | ac_status=$? |
ac1cb8d3 VS |
11692 | grep -v '^ *+' conftest.er1 >conftest.err |
11693 | rm -f conftest.er1 | |
11694 | cat conftest.err >&5 | |
a848cd7e SC |
11695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11696 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11697 | { ac_try='test -z "$ac_cxx_werror_flag" |
11698 | || test ! -s conftest.err' | |
11699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11700 | (eval $ac_try) 2>&5 | |
11701 | ac_status=$? | |
11702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11703 | (exit $ac_status); }; } && | |
11704 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11706 | (eval $ac_try) 2>&5 | |
11707 | ac_status=$? | |
11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11709 | (exit $ac_status); }; }; then | |
11710 | : | |
11711 | else | |
11712 | echo "$as_me: failed program was:" >&5 | |
11713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11714 | ||
11715 | continue | |
11716 | fi | |
ac1cb8d3 | 11717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11718 | cat >conftest.$ac_ext <<_ACEOF |
11719 | /* confdefs.h. */ | |
11720 | _ACEOF | |
11721 | cat confdefs.h >>conftest.$ac_ext | |
11722 | cat >>conftest.$ac_ext <<_ACEOF | |
11723 | /* end confdefs.h. */ | |
11724 | $ac_declaration | |
11725 | int | |
11726 | main () | |
11727 | { | |
11728 | exit (42); | |
11729 | ; | |
11730 | return 0; | |
11731 | } | |
11732 | _ACEOF | |
11733 | rm -f conftest.$ac_objext | |
11734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11735 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11736 | ac_status=$? |
ac1cb8d3 VS |
11737 | grep -v '^ *+' conftest.er1 >conftest.err |
11738 | rm -f conftest.er1 | |
11739 | cat conftest.err >&5 | |
a848cd7e SC |
11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11741 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11742 | { ac_try='test -z "$ac_cxx_werror_flag" |
11743 | || test ! -s conftest.err' | |
11744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11745 | (eval $ac_try) 2>&5 | |
11746 | ac_status=$? | |
11747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11748 | (exit $ac_status); }; } && | |
11749 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11751 | (eval $ac_try) 2>&5 | |
11752 | ac_status=$? | |
11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11754 | (exit $ac_status); }; }; then | |
11755 | break | |
11756 | else | |
11757 | echo "$as_me: failed program was:" >&5 | |
11758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11759 | ||
11760 | fi | |
ac1cb8d3 | 11761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11762 | done |
11763 | rm -f conftest* | |
11764 | if test -n "$ac_declaration"; then | |
11765 | echo '#ifdef __cplusplus' >>confdefs.h | |
11766 | echo $ac_declaration >>confdefs.h | |
11767 | echo '#endif' >>confdefs.h | |
11768 | fi | |
11769 | ||
11770 | ac_ext=cc | |
11771 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11772 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11773 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11774 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11775 | ||
11776 | ||
11777 | ac_ext=c | |
11778 | ac_cpp='$CPP $CPPFLAGS' | |
11779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11782 | ||
11783 | ||
11784 | echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5 | |
11785 | echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6 | |
11786 | GCC_SEARCHES_USR_LOCAL_INCLUDE="no" | |
11787 | if test "$GCC" = "yes" ; then | |
11788 | echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \ | |
11789 | sed -n '1,/End of search list\./p' | \ | |
11790 | grep '^ */usr/local/include$' 2>&1 /dev/null \ | |
11791 | && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes" | |
11792 | fi | |
11793 | echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5 | |
11794 | echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6 | |
11795 | ||
11796 | if test -n "$ac_tool_prefix"; then | |
11797 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11798 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11801 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11803 | else | |
11804 | if test -n "$RANLIB"; then | |
11805 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11806 | else | |
11807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11808 | for as_dir in $PATH | |
11809 | do | |
11810 | IFS=$as_save_IFS | |
11811 | test -z "$as_dir" && as_dir=. | |
11812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11814 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11816 | break 2 | |
11817 | fi | |
11818 | done | |
11819 | done | |
11820 | ||
11821 | fi | |
11822 | fi | |
11823 | RANLIB=$ac_cv_prog_RANLIB | |
11824 | if test -n "$RANLIB"; then | |
11825 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11826 | echo "${ECHO_T}$RANLIB" >&6 | |
11827 | else | |
11828 | echo "$as_me:$LINENO: result: no" >&5 | |
11829 | echo "${ECHO_T}no" >&6 | |
11830 | fi | |
11831 | ||
11832 | fi | |
11833 | if test -z "$ac_cv_prog_RANLIB"; then | |
11834 | ac_ct_RANLIB=$RANLIB | |
11835 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11836 | set dummy ranlib; ac_word=$2 | |
11837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11839 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11841 | else | |
11842 | if test -n "$ac_ct_RANLIB"; then | |
11843 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11844 | else | |
11845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11846 | for as_dir in $PATH | |
11847 | do | |
11848 | IFS=$as_save_IFS | |
11849 | test -z "$as_dir" && as_dir=. | |
11850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11852 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11854 | break 2 | |
11855 | fi | |
11856 | done | |
11857 | done | |
11858 | ||
11859 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11860 | fi | |
11861 | fi | |
11862 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11863 | if test -n "$ac_ct_RANLIB"; then | |
11864 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11865 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11866 | else | |
11867 | echo "$as_me:$LINENO: result: no" >&5 | |
11868 | echo "${ECHO_T}no" >&6 | |
11869 | fi | |
11870 | ||
11871 | RANLIB=$ac_ct_RANLIB | |
11872 | else | |
11873 | RANLIB="$ac_cv_prog_RANLIB" | |
11874 | fi | |
11875 | ||
11876 | ||
11877 | # Extract the first word of "ar", so it can be a program name with args. | |
11878 | set dummy ar; ac_word=$2 | |
11879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11881 | if test "${ac_cv_prog_AR+set}" = set; then | |
11882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11883 | else | |
11884 | if test -n "$AR"; then | |
11885 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11886 | else | |
11887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11888 | for as_dir in $PATH | |
11889 | do | |
11890 | IFS=$as_save_IFS | |
11891 | test -z "$as_dir" && as_dir=. | |
11892 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11893 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11894 | ac_cv_prog_AR="ar" | |
11895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11896 | break 2 | |
11897 | fi | |
11898 | done | |
11899 | done | |
11900 | ||
11901 | fi | |
11902 | fi | |
11903 | AR=$ac_cv_prog_AR | |
11904 | if test -n "$AR"; then | |
11905 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11906 | echo "${ECHO_T}$AR" >&6 | |
11907 | else | |
11908 | echo "$as_me:$LINENO: result: no" >&5 | |
11909 | echo "${ECHO_T}no" >&6 | |
11910 | fi | |
11911 | ||
11912 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
11913 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
11914 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
11915 | { (exit 1); exit 1; }; } |
11916 | fi | |
11917 | ||
11918 | # Find a good install program. We prefer a C program (faster), | |
11919 | # so one script is as good as another. But avoid the broken or | |
11920 | # incompatible versions: | |
11921 | # SysV /etc/install, /usr/sbin/install | |
11922 | # SunOS /usr/etc/install | |
11923 | # IRIX /sbin/install | |
11924 | # AIX /bin/install | |
11925 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11926 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11927 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11928 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 11929 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
11930 | # ./install, which can be erroneously created by make from ./install.sh. |
11931 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
11932 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
11933 | if test -z "$INSTALL"; then | |
11934 | if test "${ac_cv_path_install+set}" = set; then | |
11935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11936 | else | |
11937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11938 | for as_dir in $PATH | |
11939 | do | |
11940 | IFS=$as_save_IFS | |
11941 | test -z "$as_dir" && as_dir=. | |
11942 | # Account for people who put trailing slashes in PATH elements. | |
11943 | case $as_dir/ in | |
11944 | ./ | .// | /cC/* | \ | |
11945 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 11946 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
11947 | /usr/ucb/* ) ;; |
11948 | *) | |
11949 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11950 | # Don't use installbsd from OSF since it installs stuff as root | |
11951 | # by default. | |
11952 | for ac_prog in ginstall scoinst install; do | |
11953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
11954 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11955 | if test $ac_prog = install && | |
11956 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11957 | # AIX install. It has an incompatible calling convention. | |
11958 | : | |
11959 | elif test $ac_prog = install && | |
11960 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11961 | # program-specific install script used by HP pwplus--don't use. | |
11962 | : | |
11963 | else | |
11964 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11965 | break 3 | |
11966 | fi | |
11967 | fi | |
a848cd7e SC |
11968 | done |
11969 | done | |
11970 | ;; | |
11971 | esac | |
11972 | done | |
11973 | ||
11974 | ||
11975 | fi | |
11976 | if test "${ac_cv_path_install+set}" = set; then | |
11977 | INSTALL=$ac_cv_path_install | |
11978 | else | |
11979 | # As a last resort, use the slow shell script. We don't cache a | |
11980 | # path for INSTALL within a source directory, because that will | |
11981 | # break other packages using the cache if that directory is | |
11982 | # removed, or if the path is relative. | |
11983 | INSTALL=$ac_install_sh | |
11984 | fi | |
11985 | fi | |
11986 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
11987 | echo "${ECHO_T}$INSTALL" >&6 | |
11988 | ||
11989 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11990 | # It thinks the first close brace ends the variable substitution. | |
11991 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11992 | ||
11993 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
11994 | ||
11995 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
11996 | ||
11997 | ||
11998 | case ${INSTALL} in | |
11999 | /* ) # Absolute | |
12000 | ;; | |
12001 | ?:* ) # Drive letter, considered as absolute. | |
12002 | ;; | |
12003 | *) | |
12004 | INSTALL=`pwd`/${INSTALL} ;; | |
12005 | esac | |
12006 | ||
12007 | case ${host} in | |
12008 | *-hp-hpux* ) | |
12009 | INSTALL_DIR="mkdir" | |
12010 | ;; | |
12011 | ||
12012 | *) INSTALL_DIR="$INSTALL -d" | |
12013 | ;; | |
12014 | esac | |
12015 | ||
12016 | ||
12017 | case "${host}" in | |
12018 | ||
12019 | powerpc-*-darwin* ) | |
12020 | INSTALL_PROGRAM="cp -fp" | |
12021 | INSTALL_DATA="cp -fp" | |
12022 | ;; | |
12023 | *) | |
12024 | ;; | |
12025 | esac | |
12026 | ||
12027 | # Extract the first word of "strip", so it can be a program name with args. | |
12028 | set dummy strip; ac_word=$2 | |
12029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12031 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12033 | else | |
12034 | if test -n "$STRIP"; then | |
12035 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12036 | else | |
12037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12038 | for as_dir in $PATH | |
12039 | do | |
12040 | IFS=$as_save_IFS | |
12041 | test -z "$as_dir" && as_dir=. | |
12042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12044 | ac_cv_prog_STRIP="strip" | |
12045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12046 | break 2 | |
12047 | fi | |
12048 | done | |
12049 | done | |
12050 | ||
12051 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12052 | fi | |
12053 | fi | |
12054 | STRIP=$ac_cv_prog_STRIP | |
12055 | if test -n "$STRIP"; then | |
12056 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12057 | echo "${ECHO_T}$STRIP" >&6 | |
12058 | else | |
12059 | echo "$as_me:$LINENO: result: no" >&5 | |
12060 | echo "${ECHO_T}no" >&6 | |
12061 | fi | |
12062 | ||
12063 | ||
12064 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12065 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12066 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12068 | else | |
12069 | ||
12070 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12071 | egrep -s GNU > /dev/null); then | |
12072 | wx_cv_prog_makeisgnu="yes" | |
12073 | else | |
12074 | wx_cv_prog_makeisgnu="no" | |
12075 | fi | |
12076 | ||
12077 | fi | |
12078 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12079 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12080 | ||
12081 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12082 | IF_GNU_MAKE="" | |
12083 | else | |
12084 | IF_GNU_MAKE="#" | |
12085 | fi | |
12086 | ||
12087 | ||
12088 | ||
12089 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12090 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12091 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12092 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12094 | else | |
12095 | ||
12096 | cat - << EOF > confMake | |
12097 | check : file | |
12098 | cp \$? \$@ | |
12099 | cp \$? final_file | |
12100 | EOF | |
12101 | ||
12102 | if test ! -d sub ; then | |
12103 | mkdir sub | |
12104 | fi | |
12105 | echo dummy > sub/file | |
12106 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12107 | RESULT=$? | |
12108 | rm -f sub/file check final_file confMake | |
12109 | rmdir sub | |
12110 | if test "$RESULT" = 0; then | |
12111 | wx_cv_prog_makevpath="yes" | |
12112 | else | |
12113 | wx_cv_prog_makevpath="no" | |
12114 | fi | |
12115 | ||
12116 | fi | |
12117 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12118 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12119 | ||
12120 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12121 | { { echo "$as_me:$LINENO: error: | |
12122 | You need a make-utility that is able to use the variable | |
12123 | VPATH correctly. | |
12124 | If your version of make does not support VPATH correctly, | |
12125 | please install GNU-make (possibly as gmake), and start | |
12126 | configure with the following command: | |
12127 | export MAKE=gmake; ./configure for sh-type shells | |
12128 | setenv MAKE gmake; ./configure for csh-type shells | |
12129 | Also please do remember to use gmake in this case every time | |
12130 | you are trying to compile. | |
12131 | " >&5 | |
12132 | echo "$as_me: error: | |
12133 | You need a make-utility that is able to use the variable | |
12134 | VPATH correctly. | |
12135 | If your version of make does not support VPATH correctly, | |
12136 | please install GNU-make (possibly as gmake), and start | |
12137 | configure with the following command: | |
12138 | export MAKE=gmake; ./configure for sh-type shells | |
12139 | setenv MAKE gmake; ./configure for csh-type shells | |
12140 | Also please do remember to use gmake in this case every time | |
12141 | you are trying to compile. | |
12142 | " >&2;} | |
12143 | { (exit 1); exit 1; }; } | |
12144 | fi fi | |
12145 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12146 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12147 | LN_S=$as_ln_s | |
12148 | if test "$LN_S" = "ln -s"; then | |
12149 | echo "$as_me:$LINENO: result: yes" >&5 | |
12150 | echo "${ECHO_T}yes" >&6 | |
12151 | else | |
12152 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12153 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12154 | fi | |
12155 | ||
12156 | ||
12157 | ||
12158 | case "${host}" in | |
12159 | *-pc-os2_emx | *-pc-os2-emx ) | |
12160 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12161 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12162 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12163 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12165 | else | |
12166 | ac_check_lib_save_LIBS=$LIBS | |
12167 | LIBS="-lcExt $LIBS" | |
12168 | cat >conftest.$ac_ext <<_ACEOF | |
12169 | /* confdefs.h. */ | |
12170 | _ACEOF | |
12171 | cat confdefs.h >>conftest.$ac_ext | |
12172 | cat >>conftest.$ac_ext <<_ACEOF | |
12173 | /* end confdefs.h. */ | |
12174 | ||
12175 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12176 | #ifdef __cplusplus | |
12177 | extern "C" | |
12178 | #endif | |
12179 | /* We use char because int might match the return type of a gcc2 | |
12180 | builtin and then its argument prototype would still apply. */ | |
12181 | char drand48 (); | |
12182 | int | |
12183 | main () | |
12184 | { | |
12185 | drand48 (); | |
12186 | ; | |
12187 | return 0; | |
12188 | } | |
12189 | _ACEOF | |
12190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12192 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12193 | ac_status=$? |
ac1cb8d3 VS |
12194 | grep -v '^ *+' conftest.er1 >conftest.err |
12195 | rm -f conftest.er1 | |
12196 | cat conftest.err >&5 | |
a848cd7e SC |
12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12198 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12199 | { ac_try='test -z "$ac_c_werror_flag" |
12200 | || test ! -s conftest.err' | |
12201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12202 | (eval $ac_try) 2>&5 | |
12203 | ac_status=$? | |
12204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12205 | (exit $ac_status); }; } && | |
12206 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12208 | (eval $ac_try) 2>&5 | |
12209 | ac_status=$? | |
12210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12211 | (exit $ac_status); }; }; then | |
12212 | ac_cv_lib_cExt_drand48=yes | |
12213 | else | |
12214 | echo "$as_me: failed program was:" >&5 | |
12215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12216 | ||
12217 | ac_cv_lib_cExt_drand48=no | |
12218 | fi | |
ac1cb8d3 VS |
12219 | rm -f conftest.err conftest.$ac_objext \ |
12220 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12221 | LIBS=$ac_check_lib_save_LIBS |
12222 | fi | |
12223 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12224 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12225 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12226 | LIBS="$LIBS -lcExt" | |
12227 | fi | |
12228 | ||
12229 | else | |
12230 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12231 | fi | |
12232 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12233 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12234 | if test "${wx_cv_gccversion+set}" = set; then | |
12235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12236 | else | |
12237 | ||
12238 | cat >conftest.$ac_ext <<_ACEOF | |
12239 | /* confdefs.h. */ | |
12240 | _ACEOF | |
12241 | cat confdefs.h >>conftest.$ac_ext | |
12242 | cat >>conftest.$ac_ext <<_ACEOF | |
12243 | /* end confdefs.h. */ | |
12244 | ||
12245 | int | |
12246 | main () | |
12247 | { | |
12248 | ||
12249 | #if (__GNUC__ < 3) | |
12250 | #error old gcc | |
12251 | #endif | |
12252 | ||
12253 | ; | |
12254 | return 0; | |
12255 | } | |
12256 | _ACEOF | |
12257 | rm -f conftest.$ac_objext | |
12258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12260 | ac_status=$? |
ac1cb8d3 VS |
12261 | grep -v '^ *+' conftest.er1 >conftest.err |
12262 | rm -f conftest.er1 | |
12263 | cat conftest.err >&5 | |
a848cd7e SC |
12264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12265 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12266 | { ac_try='test -z "$ac_c_werror_flag" |
12267 | || test ! -s conftest.err' | |
12268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12269 | (eval $ac_try) 2>&5 | |
12270 | ac_status=$? | |
12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12272 | (exit $ac_status); }; } && | |
12273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12275 | (eval $ac_try) 2>&5 | |
12276 | ac_status=$? | |
12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12278 | (exit $ac_status); }; }; then | |
12279 | ||
12280 | cat >conftest.$ac_ext <<_ACEOF | |
12281 | /* confdefs.h. */ | |
12282 | _ACEOF | |
12283 | cat confdefs.h >>conftest.$ac_ext | |
12284 | cat >>conftest.$ac_ext <<_ACEOF | |
12285 | /* end confdefs.h. */ | |
12286 | ||
12287 | int | |
12288 | main () | |
12289 | { | |
12290 | ||
12291 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12292 | #error intermediate gcc | |
12293 | #endif | |
12294 | ||
12295 | ; | |
12296 | return 0; | |
12297 | } | |
12298 | _ACEOF | |
12299 | rm -f conftest.$ac_objext | |
12300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12301 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12302 | ac_status=$? |
ac1cb8d3 VS |
12303 | grep -v '^ *+' conftest.er1 >conftest.err |
12304 | rm -f conftest.er1 | |
12305 | cat conftest.err >&5 | |
a848cd7e SC |
12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12307 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12308 | { ac_try='test -z "$ac_c_werror_flag" |
12309 | || test ! -s conftest.err' | |
12310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12311 | (eval $ac_try) 2>&5 | |
12312 | ac_status=$? | |
12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12314 | (exit $ac_status); }; } && | |
12315 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12317 | (eval $ac_try) 2>&5 | |
12318 | ac_status=$? | |
12319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12320 | (exit $ac_status); }; }; then | |
12321 | ||
12322 | wx_cv_gccversion=Innotek | |
12323 | ||
12324 | else | |
12325 | echo "$as_me: failed program was:" >&5 | |
12326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12327 | ||
12328 | ||
12329 | wx_cv_gccversion=3 | |
12330 | ||
12331 | ||
12332 | fi | |
ac1cb8d3 | 12333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12334 | |
12335 | else | |
12336 | echo "$as_me: failed program was:" >&5 | |
12337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12338 | ||
12339 | ||
12340 | wx_cv_gccversion=2 | |
12341 | ||
12342 | ||
12343 | fi | |
ac1cb8d3 | 12344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12345 | |
12346 | fi | |
12347 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12348 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12349 | if test "$wx_cv_gccversion" = "2"; then | |
12350 | LIBS="$LIBS -lstdcpp" | |
12351 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12352 | else | |
12353 | if test "$wx_cv_gccversion" = "3"; then | |
12354 | LIBS="$LIBS -lstdcxx" | |
12355 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12356 | else | |
12357 | LIBS="$LIBS -lstdc++" | |
12358 | fi | |
12359 | fi | |
12360 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12361 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12362 | fi |
12363 | ;; | |
12364 | *) | |
12365 | ||
12366 | ||
12367 | ||
12368 | ac_ext=cc | |
12369 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12370 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12371 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12372 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12373 | ||
12374 | ||
12375 | ||
12376 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12377 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12378 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12380 | else | |
12381 | ||
12382 | cat >conftest.$ac_ext <<_ACEOF | |
12383 | /* confdefs.h. */ | |
12384 | _ACEOF | |
12385 | cat confdefs.h >>conftest.$ac_ext | |
12386 | cat >>conftest.$ac_ext <<_ACEOF | |
12387 | /* end confdefs.h. */ | |
12388 | ||
12389 | #include <string.h> | |
12390 | ||
12391 | int | |
12392 | main () | |
12393 | { | |
12394 | ||
12395 | strcasecmp("foo", "bar"); | |
12396 | ||
12397 | ; | |
12398 | return 0; | |
12399 | } | |
12400 | _ACEOF | |
12401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12403 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12404 | ac_status=$? |
ac1cb8d3 VS |
12405 | grep -v '^ *+' conftest.er1 >conftest.err |
12406 | rm -f conftest.er1 | |
12407 | cat conftest.err >&5 | |
a848cd7e SC |
12408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12409 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12410 | { ac_try='test -z "$ac_cxx_werror_flag" |
12411 | || test ! -s conftest.err' | |
12412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12413 | (eval $ac_try) 2>&5 | |
12414 | ac_status=$? | |
12415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12416 | (exit $ac_status); }; } && | |
12417 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12419 | (eval $ac_try) 2>&5 | |
12420 | ac_status=$? | |
12421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12422 | (exit $ac_status); }; }; then | |
12423 | ac_cv_string_strcasecmp=yes | |
12424 | else | |
12425 | echo "$as_me: failed program was:" >&5 | |
12426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12427 | ||
12428 | ac_cv_string_strcasecmp=no | |
12429 | ||
12430 | fi | |
ac1cb8d3 VS |
12431 | rm -f conftest.err conftest.$ac_objext \ |
12432 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12433 | |
12434 | fi | |
12435 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12436 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12437 | ||
12438 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12439 | cat >>confdefs.h <<\_ACEOF | |
12440 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12441 | _ACEOF | |
12442 | ||
12443 | else | |
12444 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12445 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12446 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12448 | else | |
12449 | ||
12450 | cat >conftest.$ac_ext <<_ACEOF | |
12451 | /* confdefs.h. */ | |
12452 | _ACEOF | |
12453 | cat confdefs.h >>conftest.$ac_ext | |
12454 | cat >>conftest.$ac_ext <<_ACEOF | |
12455 | /* end confdefs.h. */ | |
12456 | ||
12457 | #include <strings.h> | |
12458 | ||
12459 | int | |
12460 | main () | |
12461 | { | |
12462 | ||
12463 | strcasecmp("foo", "bar"); | |
12464 | ||
12465 | ; | |
12466 | return 0; | |
12467 | } | |
12468 | _ACEOF | |
12469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12471 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12472 | ac_status=$? |
ac1cb8d3 VS |
12473 | grep -v '^ *+' conftest.er1 >conftest.err |
12474 | rm -f conftest.er1 | |
12475 | cat conftest.err >&5 | |
a848cd7e SC |
12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12477 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12478 | { ac_try='test -z "$ac_cxx_werror_flag" |
12479 | || test ! -s conftest.err' | |
12480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12481 | (eval $ac_try) 2>&5 | |
12482 | ac_status=$? | |
12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12484 | (exit $ac_status); }; } && | |
12485 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12487 | (eval $ac_try) 2>&5 | |
12488 | ac_status=$? | |
12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12490 | (exit $ac_status); }; }; then | |
12491 | ac_cv_strings_strcasecmp=yes | |
12492 | else | |
12493 | echo "$as_me: failed program was:" >&5 | |
12494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12495 | ||
12496 | ac_cv_strings_strcasecmp=no | |
12497 | ||
12498 | fi | |
ac1cb8d3 VS |
12499 | rm -f conftest.err conftest.$ac_objext \ |
12500 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12501 | |
12502 | fi | |
12503 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12504 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12505 | ||
12506 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12507 | cat >>confdefs.h <<\_ACEOF | |
12508 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12509 | _ACEOF | |
12510 | ||
12511 | else | |
12512 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12513 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12514 | { (exit 1); exit 1; }; } | |
12515 | fi | |
12516 | fi | |
12517 | ||
12518 | ac_ext=c | |
12519 | ac_cpp='$CPP $CPPFLAGS' | |
12520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12523 | ||
12524 | ;; | |
12525 | esac | |
12526 | ||
12527 | ||
12528 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12529 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12530 | if test "${ac_cv_header_stdc+set}" = set; then | |
12531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12532 | else | |
12533 | cat >conftest.$ac_ext <<_ACEOF | |
12534 | /* confdefs.h. */ | |
12535 | _ACEOF | |
12536 | cat confdefs.h >>conftest.$ac_ext | |
12537 | cat >>conftest.$ac_ext <<_ACEOF | |
12538 | /* end confdefs.h. */ | |
12539 | #include <stdlib.h> | |
12540 | #include <stdarg.h> | |
12541 | #include <string.h> | |
12542 | #include <float.h> | |
12543 | ||
12544 | int | |
12545 | main () | |
12546 | { | |
12547 | ||
12548 | ; | |
12549 | return 0; | |
12550 | } | |
12551 | _ACEOF | |
12552 | rm -f conftest.$ac_objext | |
12553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12554 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12555 | ac_status=$? |
ac1cb8d3 VS |
12556 | grep -v '^ *+' conftest.er1 >conftest.err |
12557 | rm -f conftest.er1 | |
12558 | cat conftest.err >&5 | |
a848cd7e SC |
12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12560 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12561 | { ac_try='test -z "$ac_c_werror_flag" |
12562 | || test ! -s conftest.err' | |
12563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12564 | (eval $ac_try) 2>&5 | |
12565 | ac_status=$? | |
12566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12567 | (exit $ac_status); }; } && | |
12568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12570 | (eval $ac_try) 2>&5 | |
12571 | ac_status=$? | |
12572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12573 | (exit $ac_status); }; }; then | |
12574 | ac_cv_header_stdc=yes | |
12575 | else | |
12576 | echo "$as_me: failed program was:" >&5 | |
12577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12578 | ||
12579 | ac_cv_header_stdc=no | |
12580 | fi | |
ac1cb8d3 | 12581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12582 | |
12583 | if test $ac_cv_header_stdc = yes; then | |
12584 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12585 | cat >conftest.$ac_ext <<_ACEOF | |
12586 | /* confdefs.h. */ | |
12587 | _ACEOF | |
12588 | cat confdefs.h >>conftest.$ac_ext | |
12589 | cat >>conftest.$ac_ext <<_ACEOF | |
12590 | /* end confdefs.h. */ | |
12591 | #include <string.h> | |
12592 | ||
12593 | _ACEOF | |
12594 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12595 | $EGREP "memchr" >/dev/null 2>&1; then | |
12596 | : | |
12597 | else | |
12598 | ac_cv_header_stdc=no | |
12599 | fi | |
12600 | rm -f conftest* | |
12601 | ||
12602 | fi | |
12603 | ||
12604 | if test $ac_cv_header_stdc = yes; then | |
12605 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12606 | cat >conftest.$ac_ext <<_ACEOF | |
12607 | /* confdefs.h. */ | |
12608 | _ACEOF | |
12609 | cat confdefs.h >>conftest.$ac_ext | |
12610 | cat >>conftest.$ac_ext <<_ACEOF | |
12611 | /* end confdefs.h. */ | |
12612 | #include <stdlib.h> | |
12613 | ||
12614 | _ACEOF | |
12615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12616 | $EGREP "free" >/dev/null 2>&1; then | |
12617 | : | |
12618 | else | |
12619 | ac_cv_header_stdc=no | |
12620 | fi | |
12621 | rm -f conftest* | |
12622 | ||
12623 | fi | |
12624 | ||
12625 | if test $ac_cv_header_stdc = yes; then | |
12626 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12627 | if test "$cross_compiling" = yes; then | |
12628 | : | |
12629 | else | |
12630 | cat >conftest.$ac_ext <<_ACEOF | |
12631 | /* confdefs.h. */ | |
12632 | _ACEOF | |
12633 | cat confdefs.h >>conftest.$ac_ext | |
12634 | cat >>conftest.$ac_ext <<_ACEOF | |
12635 | /* end confdefs.h. */ | |
12636 | #include <ctype.h> | |
12637 | #if ((' ' & 0x0FF) == 0x020) | |
12638 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12639 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12640 | #else | |
12641 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12642 | (('a' <= (c) && (c) <= 'i') \ |
12643 | || ('j' <= (c) && (c) <= 'r') \ | |
12644 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12645 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12646 | #endif | |
12647 | ||
12648 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12649 | int | |
12650 | main () | |
12651 | { | |
12652 | int i; | |
12653 | for (i = 0; i < 256; i++) | |
12654 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12655 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12656 | exit(2); |
12657 | exit (0); | |
12658 | } | |
12659 | _ACEOF | |
12660 | rm -f conftest$ac_exeext | |
12661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12662 | (eval $ac_link) 2>&5 | |
12663 | ac_status=$? | |
12664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12665 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12667 | (eval $ac_try) 2>&5 | |
12668 | ac_status=$? | |
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12670 | (exit $ac_status); }; }; then | |
12671 | : | |
12672 | else | |
12673 | echo "$as_me: program exited with status $ac_status" >&5 | |
12674 | echo "$as_me: failed program was:" >&5 | |
12675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12676 | ||
12677 | ( exit $ac_status ) | |
12678 | ac_cv_header_stdc=no | |
12679 | fi | |
ac1cb8d3 | 12680 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12681 | fi |
12682 | fi | |
12683 | fi | |
12684 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12685 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12686 | if test $ac_cv_header_stdc = yes; then | |
12687 | ||
12688 | cat >>confdefs.h <<\_ACEOF | |
12689 | #define STDC_HEADERS 1 | |
12690 | _ACEOF | |
12691 | ||
12692 | fi | |
12693 | ||
12694 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12695 | ||
12696 | ||
12697 | ||
12698 | ||
12699 | ||
12700 | ||
12701 | ||
12702 | ||
12703 | ||
12704 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12705 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12706 | do |
12707 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12708 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12710 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12712 | else | |
12713 | cat >conftest.$ac_ext <<_ACEOF | |
12714 | /* confdefs.h. */ | |
12715 | _ACEOF | |
12716 | cat confdefs.h >>conftest.$ac_ext | |
12717 | cat >>conftest.$ac_ext <<_ACEOF | |
12718 | /* end confdefs.h. */ | |
12719 | $ac_includes_default | |
12720 | ||
12721 | #include <$ac_header> | |
12722 | _ACEOF | |
12723 | rm -f conftest.$ac_objext | |
12724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12725 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12726 | ac_status=$? |
ac1cb8d3 VS |
12727 | grep -v '^ *+' conftest.er1 >conftest.err |
12728 | rm -f conftest.er1 | |
12729 | cat conftest.err >&5 | |
a848cd7e SC |
12730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12731 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12732 | { ac_try='test -z "$ac_c_werror_flag" |
12733 | || test ! -s conftest.err' | |
12734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12735 | (eval $ac_try) 2>&5 | |
12736 | ac_status=$? | |
12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12738 | (exit $ac_status); }; } && | |
12739 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12741 | (eval $ac_try) 2>&5 | |
12742 | ac_status=$? | |
12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12744 | (exit $ac_status); }; }; then | |
12745 | eval "$as_ac_Header=yes" | |
12746 | else | |
12747 | echo "$as_me: failed program was:" >&5 | |
12748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12749 | ||
12750 | eval "$as_ac_Header=no" | |
12751 | fi | |
ac1cb8d3 | 12752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12753 | fi |
12754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12756 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12757 | cat >>confdefs.h <<_ACEOF | |
12758 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12759 | _ACEOF | |
12760 | ||
12761 | fi | |
12762 | ||
12763 | done | |
12764 | ||
12765 | ||
12766 | ||
12767 | for ac_header in stdlib.h | |
12768 | do | |
12769 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12770 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12771 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12775 | fi | |
12776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12778 | else | |
12779 | # Is the header compilable? | |
12780 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12781 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12782 | cat >conftest.$ac_ext <<_ACEOF | |
12783 | /* confdefs.h. */ | |
12784 | _ACEOF | |
12785 | cat confdefs.h >>conftest.$ac_ext | |
12786 | cat >>conftest.$ac_ext <<_ACEOF | |
12787 | /* end confdefs.h. */ | |
12788 | $ac_includes_default | |
12789 | #include <$ac_header> | |
12790 | _ACEOF | |
12791 | rm -f conftest.$ac_objext | |
12792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12793 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12794 | ac_status=$? |
ac1cb8d3 VS |
12795 | grep -v '^ *+' conftest.er1 >conftest.err |
12796 | rm -f conftest.er1 | |
12797 | cat conftest.err >&5 | |
a848cd7e SC |
12798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12799 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12800 | { ac_try='test -z "$ac_c_werror_flag" |
12801 | || test ! -s conftest.err' | |
12802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12803 | (eval $ac_try) 2>&5 | |
12804 | ac_status=$? | |
12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12806 | (exit $ac_status); }; } && | |
12807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12809 | (eval $ac_try) 2>&5 | |
12810 | ac_status=$? | |
12811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12812 | (exit $ac_status); }; }; then | |
12813 | ac_header_compiler=yes | |
12814 | else | |
12815 | echo "$as_me: failed program was:" >&5 | |
12816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12817 | ||
12818 | ac_header_compiler=no | |
12819 | fi | |
ac1cb8d3 | 12820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12821 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12822 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12823 | ||
12824 | # Is the header present? | |
12825 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12826 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12827 | cat >conftest.$ac_ext <<_ACEOF | |
12828 | /* confdefs.h. */ | |
12829 | _ACEOF | |
12830 | cat confdefs.h >>conftest.$ac_ext | |
12831 | cat >>conftest.$ac_ext <<_ACEOF | |
12832 | /* end confdefs.h. */ | |
12833 | #include <$ac_header> | |
12834 | _ACEOF | |
12835 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12836 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12837 | ac_status=$? | |
12838 | grep -v '^ *+' conftest.er1 >conftest.err | |
12839 | rm -f conftest.er1 | |
12840 | cat conftest.err >&5 | |
12841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12842 | (exit $ac_status); } >/dev/null; then | |
12843 | if test -s conftest.err; then | |
12844 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12845 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12846 | else |
12847 | ac_cpp_err= | |
12848 | fi | |
12849 | else | |
12850 | ac_cpp_err=yes | |
12851 | fi | |
12852 | if test -z "$ac_cpp_err"; then | |
12853 | ac_header_preproc=yes | |
12854 | else | |
12855 | echo "$as_me: failed program was:" >&5 | |
12856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12857 | ||
12858 | ac_header_preproc=no | |
12859 | fi | |
12860 | rm -f conftest.err conftest.$ac_ext | |
12861 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12862 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12863 | ||
12864 | # So? What about this header? | |
ac1cb8d3 VS |
12865 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12866 | yes:no: ) | |
a848cd7e SC |
12867 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12868 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12869 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12870 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12871 | ac_header_preproc=yes | |
a848cd7e | 12872 | ;; |
ac1cb8d3 | 12873 | no:yes:* ) |
a848cd7e SC |
12874 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12875 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12876 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12877 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12878 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12879 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12880 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12881 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
12882 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12883 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
12884 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12885 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
12886 | ( |
12887 | cat <<\_ASBOX | |
ac1cb8d3 VS |
12888 | ## ----------------------------------------- ## |
12889 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
12890 | ## ----------------------------------------- ## | |
a848cd7e SC |
12891 | _ASBOX |
12892 | ) | | |
12893 | sed "s/^/$as_me: WARNING: /" >&2 | |
12894 | ;; | |
12895 | esac | |
12896 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12897 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12900 | else | |
ac1cb8d3 | 12901 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
12902 | fi |
12903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12905 | ||
12906 | fi | |
12907 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12908 | cat >>confdefs.h <<_ACEOF | |
12909 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12910 | _ACEOF | |
12911 | ||
12912 | fi | |
12913 | ||
12914 | done | |
12915 | ||
12916 | ||
12917 | for ac_header in malloc.h | |
12918 | do | |
12919 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12921 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12925 | fi | |
12926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12927 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12928 | else | |
12929 | # Is the header compilable? | |
12930 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12931 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12932 | cat >conftest.$ac_ext <<_ACEOF | |
12933 | /* confdefs.h. */ | |
12934 | _ACEOF | |
12935 | cat confdefs.h >>conftest.$ac_ext | |
12936 | cat >>conftest.$ac_ext <<_ACEOF | |
12937 | /* end confdefs.h. */ | |
12938 | $ac_includes_default | |
12939 | #include <$ac_header> | |
12940 | _ACEOF | |
12941 | rm -f conftest.$ac_objext | |
12942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12943 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12944 | ac_status=$? |
ac1cb8d3 VS |
12945 | grep -v '^ *+' conftest.er1 >conftest.err |
12946 | rm -f conftest.er1 | |
12947 | cat conftest.err >&5 | |
a848cd7e SC |
12948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12949 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12950 | { ac_try='test -z "$ac_c_werror_flag" |
12951 | || test ! -s conftest.err' | |
12952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12953 | (eval $ac_try) 2>&5 | |
12954 | ac_status=$? | |
12955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12956 | (exit $ac_status); }; } && | |
12957 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12959 | (eval $ac_try) 2>&5 | |
12960 | ac_status=$? | |
12961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12962 | (exit $ac_status); }; }; then | |
12963 | ac_header_compiler=yes | |
12964 | else | |
12965 | echo "$as_me: failed program was:" >&5 | |
12966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12967 | ||
12968 | ac_header_compiler=no | |
12969 | fi | |
ac1cb8d3 | 12970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12971 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12972 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12973 | ||
12974 | # Is the header present? | |
12975 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12976 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12977 | cat >conftest.$ac_ext <<_ACEOF | |
12978 | /* confdefs.h. */ | |
12979 | _ACEOF | |
12980 | cat confdefs.h >>conftest.$ac_ext | |
12981 | cat >>conftest.$ac_ext <<_ACEOF | |
12982 | /* end confdefs.h. */ | |
12983 | #include <$ac_header> | |
12984 | _ACEOF | |
12985 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12987 | ac_status=$? | |
12988 | grep -v '^ *+' conftest.er1 >conftest.err | |
12989 | rm -f conftest.er1 | |
12990 | cat conftest.err >&5 | |
12991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12992 | (exit $ac_status); } >/dev/null; then | |
12993 | if test -s conftest.err; then | |
12994 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12995 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12996 | else |
12997 | ac_cpp_err= | |
12998 | fi | |
12999 | else | |
13000 | ac_cpp_err=yes | |
13001 | fi | |
13002 | if test -z "$ac_cpp_err"; then | |
13003 | ac_header_preproc=yes | |
13004 | else | |
13005 | echo "$as_me: failed program was:" >&5 | |
13006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13007 | ||
13008 | ac_header_preproc=no | |
13009 | fi | |
13010 | rm -f conftest.err conftest.$ac_ext | |
13011 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13012 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13013 | ||
13014 | # So? What about this header? | |
ac1cb8d3 VS |
13015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13016 | yes:no: ) | |
a848cd7e SC |
13017 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13018 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13019 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13020 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13021 | ac_header_preproc=yes | |
a848cd7e | 13022 | ;; |
ac1cb8d3 | 13023 | no:yes:* ) |
a848cd7e SC |
13024 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13025 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13026 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13027 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13028 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13029 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13030 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13031 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13032 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13033 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13034 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13035 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13036 | ( |
13037 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13038 | ## ----------------------------------------- ## |
13039 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13040 | ## ----------------------------------------- ## | |
a848cd7e SC |
13041 | _ASBOX |
13042 | ) | | |
13043 | sed "s/^/$as_me: WARNING: /" >&2 | |
13044 | ;; | |
13045 | esac | |
13046 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13047 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13050 | else | |
ac1cb8d3 | 13051 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13052 | fi |
13053 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13054 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13055 | ||
13056 | fi | |
13057 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13058 | cat >>confdefs.h <<_ACEOF | |
13059 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13060 | _ACEOF | |
13061 | ||
13062 | fi | |
13063 | ||
13064 | done | |
13065 | ||
13066 | ||
13067 | for ac_header in unistd.h | |
13068 | do | |
13069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13071 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13075 | fi | |
13076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13078 | else | |
13079 | # Is the header compilable? | |
13080 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13081 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13082 | cat >conftest.$ac_ext <<_ACEOF | |
13083 | /* confdefs.h. */ | |
13084 | _ACEOF | |
13085 | cat confdefs.h >>conftest.$ac_ext | |
13086 | cat >>conftest.$ac_ext <<_ACEOF | |
13087 | /* end confdefs.h. */ | |
13088 | $ac_includes_default | |
13089 | #include <$ac_header> | |
13090 | _ACEOF | |
13091 | rm -f conftest.$ac_objext | |
13092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13093 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13094 | ac_status=$? |
ac1cb8d3 VS |
13095 | grep -v '^ *+' conftest.er1 >conftest.err |
13096 | rm -f conftest.er1 | |
13097 | cat conftest.err >&5 | |
a848cd7e SC |
13098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13099 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13100 | { ac_try='test -z "$ac_c_werror_flag" |
13101 | || test ! -s conftest.err' | |
13102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13103 | (eval $ac_try) 2>&5 | |
13104 | ac_status=$? | |
13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13106 | (exit $ac_status); }; } && | |
13107 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13109 | (eval $ac_try) 2>&5 | |
13110 | ac_status=$? | |
13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13112 | (exit $ac_status); }; }; then | |
13113 | ac_header_compiler=yes | |
13114 | else | |
13115 | echo "$as_me: failed program was:" >&5 | |
13116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13117 | ||
13118 | ac_header_compiler=no | |
13119 | fi | |
ac1cb8d3 | 13120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13121 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13122 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13123 | ||
13124 | # Is the header present? | |
13125 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13126 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13127 | cat >conftest.$ac_ext <<_ACEOF | |
13128 | /* confdefs.h. */ | |
13129 | _ACEOF | |
13130 | cat confdefs.h >>conftest.$ac_ext | |
13131 | cat >>conftest.$ac_ext <<_ACEOF | |
13132 | /* end confdefs.h. */ | |
13133 | #include <$ac_header> | |
13134 | _ACEOF | |
13135 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13136 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13137 | ac_status=$? | |
13138 | grep -v '^ *+' conftest.er1 >conftest.err | |
13139 | rm -f conftest.er1 | |
13140 | cat conftest.err >&5 | |
13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13142 | (exit $ac_status); } >/dev/null; then | |
13143 | if test -s conftest.err; then | |
13144 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13145 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13146 | else |
13147 | ac_cpp_err= | |
13148 | fi | |
13149 | else | |
13150 | ac_cpp_err=yes | |
13151 | fi | |
13152 | if test -z "$ac_cpp_err"; then | |
13153 | ac_header_preproc=yes | |
13154 | else | |
13155 | echo "$as_me: failed program was:" >&5 | |
13156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13157 | ||
13158 | ac_header_preproc=no | |
13159 | fi | |
13160 | rm -f conftest.err conftest.$ac_ext | |
13161 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13162 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13163 | ||
13164 | # So? What about this header? | |
ac1cb8d3 VS |
13165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13166 | yes:no: ) | |
a848cd7e SC |
13167 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13168 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13170 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13171 | ac_header_preproc=yes | |
a848cd7e | 13172 | ;; |
ac1cb8d3 | 13173 | no:yes:* ) |
a848cd7e SC |
13174 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13175 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13176 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13177 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13178 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13179 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13180 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13181 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13184 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13185 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13186 | ( |
13187 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13188 | ## ----------------------------------------- ## |
13189 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13190 | ## ----------------------------------------- ## | |
a848cd7e SC |
13191 | _ASBOX |
13192 | ) | | |
13193 | sed "s/^/$as_me: WARNING: /" >&2 | |
13194 | ;; | |
13195 | esac | |
13196 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13197 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13198 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13200 | else | |
ac1cb8d3 | 13201 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13202 | fi |
13203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13204 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13205 | ||
13206 | fi | |
13207 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13208 | cat >>confdefs.h <<_ACEOF | |
13209 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13210 | _ACEOF | |
13211 | ||
13212 | fi | |
13213 | ||
13214 | done | |
13215 | ||
13216 | ||
13217 | for ac_header in wchar.h | |
13218 | do | |
13219 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13221 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13225 | fi | |
13226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13228 | else | |
13229 | # Is the header compilable? | |
13230 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13231 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13232 | cat >conftest.$ac_ext <<_ACEOF | |
13233 | /* confdefs.h. */ | |
13234 | _ACEOF | |
13235 | cat confdefs.h >>conftest.$ac_ext | |
13236 | cat >>conftest.$ac_ext <<_ACEOF | |
13237 | /* end confdefs.h. */ | |
13238 | $ac_includes_default | |
13239 | #include <$ac_header> | |
13240 | _ACEOF | |
13241 | rm -f conftest.$ac_objext | |
13242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13243 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13244 | ac_status=$? |
ac1cb8d3 VS |
13245 | grep -v '^ *+' conftest.er1 >conftest.err |
13246 | rm -f conftest.er1 | |
13247 | cat conftest.err >&5 | |
a848cd7e SC |
13248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13249 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13250 | { ac_try='test -z "$ac_c_werror_flag" |
13251 | || test ! -s conftest.err' | |
13252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13253 | (eval $ac_try) 2>&5 | |
13254 | ac_status=$? | |
13255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13256 | (exit $ac_status); }; } && | |
13257 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13259 | (eval $ac_try) 2>&5 | |
13260 | ac_status=$? | |
13261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13262 | (exit $ac_status); }; }; then | |
13263 | ac_header_compiler=yes | |
13264 | else | |
13265 | echo "$as_me: failed program was:" >&5 | |
13266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13267 | ||
13268 | ac_header_compiler=no | |
13269 | fi | |
ac1cb8d3 | 13270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13271 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13272 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13273 | ||
13274 | # Is the header present? | |
13275 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13276 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13277 | cat >conftest.$ac_ext <<_ACEOF | |
13278 | /* confdefs.h. */ | |
13279 | _ACEOF | |
13280 | cat confdefs.h >>conftest.$ac_ext | |
13281 | cat >>conftest.$ac_ext <<_ACEOF | |
13282 | /* end confdefs.h. */ | |
13283 | #include <$ac_header> | |
13284 | _ACEOF | |
13285 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13287 | ac_status=$? | |
13288 | grep -v '^ *+' conftest.er1 >conftest.err | |
13289 | rm -f conftest.er1 | |
13290 | cat conftest.err >&5 | |
13291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13292 | (exit $ac_status); } >/dev/null; then | |
13293 | if test -s conftest.err; then | |
13294 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13295 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13296 | else |
13297 | ac_cpp_err= | |
13298 | fi | |
13299 | else | |
13300 | ac_cpp_err=yes | |
13301 | fi | |
13302 | if test -z "$ac_cpp_err"; then | |
13303 | ac_header_preproc=yes | |
13304 | else | |
13305 | echo "$as_me: failed program was:" >&5 | |
13306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13307 | ||
13308 | ac_header_preproc=no | |
13309 | fi | |
13310 | rm -f conftest.err conftest.$ac_ext | |
13311 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13312 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13313 | ||
13314 | # So? What about this header? | |
ac1cb8d3 VS |
13315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13316 | yes:no: ) | |
a848cd7e SC |
13317 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13318 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13319 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13320 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13321 | ac_header_preproc=yes | |
a848cd7e | 13322 | ;; |
ac1cb8d3 | 13323 | no:yes:* ) |
a848cd7e SC |
13324 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13325 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13326 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13327 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13328 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13329 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13330 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13331 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13332 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13333 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13334 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13335 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13336 | ( |
13337 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13338 | ## ----------------------------------------- ## |
13339 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13340 | ## ----------------------------------------- ## | |
a848cd7e SC |
13341 | _ASBOX |
13342 | ) | | |
13343 | sed "s/^/$as_me: WARNING: /" >&2 | |
13344 | ;; | |
13345 | esac | |
13346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13350 | else | |
ac1cb8d3 | 13351 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13352 | fi |
13353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13354 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13355 | ||
13356 | fi | |
13357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13358 | cat >>confdefs.h <<_ACEOF | |
13359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13360 | _ACEOF | |
13361 | ||
13362 | fi | |
13363 | ||
13364 | done | |
13365 | ||
13366 | ||
13367 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13368 | ||
13369 | for ac_header in wcstr.h | |
13370 | do | |
13371 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13373 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13377 | fi | |
13378 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13379 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13380 | else | |
13381 | # Is the header compilable? | |
13382 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13383 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13384 | cat >conftest.$ac_ext <<_ACEOF | |
13385 | /* confdefs.h. */ | |
13386 | _ACEOF | |
13387 | cat confdefs.h >>conftest.$ac_ext | |
13388 | cat >>conftest.$ac_ext <<_ACEOF | |
13389 | /* end confdefs.h. */ | |
13390 | $ac_includes_default | |
13391 | #include <$ac_header> | |
13392 | _ACEOF | |
13393 | rm -f conftest.$ac_objext | |
13394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13395 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13396 | ac_status=$? |
ac1cb8d3 VS |
13397 | grep -v '^ *+' conftest.er1 >conftest.err |
13398 | rm -f conftest.er1 | |
13399 | cat conftest.err >&5 | |
a848cd7e SC |
13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13401 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13402 | { ac_try='test -z "$ac_c_werror_flag" |
13403 | || test ! -s conftest.err' | |
13404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13405 | (eval $ac_try) 2>&5 | |
13406 | ac_status=$? | |
13407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13408 | (exit $ac_status); }; } && | |
13409 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13411 | (eval $ac_try) 2>&5 | |
13412 | ac_status=$? | |
13413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13414 | (exit $ac_status); }; }; then | |
13415 | ac_header_compiler=yes | |
13416 | else | |
13417 | echo "$as_me: failed program was:" >&5 | |
13418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13419 | ||
13420 | ac_header_compiler=no | |
13421 | fi | |
ac1cb8d3 | 13422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13423 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13424 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13425 | ||
13426 | # Is the header present? | |
13427 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13428 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13429 | cat >conftest.$ac_ext <<_ACEOF | |
13430 | /* confdefs.h. */ | |
13431 | _ACEOF | |
13432 | cat confdefs.h >>conftest.$ac_ext | |
13433 | cat >>conftest.$ac_ext <<_ACEOF | |
13434 | /* end confdefs.h. */ | |
13435 | #include <$ac_header> | |
13436 | _ACEOF | |
13437 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13438 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13439 | ac_status=$? | |
13440 | grep -v '^ *+' conftest.er1 >conftest.err | |
13441 | rm -f conftest.er1 | |
13442 | cat conftest.err >&5 | |
13443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13444 | (exit $ac_status); } >/dev/null; then | |
13445 | if test -s conftest.err; then | |
13446 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13447 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13448 | else |
13449 | ac_cpp_err= | |
13450 | fi | |
13451 | else | |
13452 | ac_cpp_err=yes | |
13453 | fi | |
13454 | if test -z "$ac_cpp_err"; then | |
13455 | ac_header_preproc=yes | |
13456 | else | |
13457 | echo "$as_me: failed program was:" >&5 | |
13458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13459 | ||
13460 | ac_header_preproc=no | |
13461 | fi | |
13462 | rm -f conftest.err conftest.$ac_ext | |
13463 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13464 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13465 | ||
13466 | # So? What about this header? | |
ac1cb8d3 VS |
13467 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13468 | yes:no: ) | |
a848cd7e SC |
13469 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13470 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13472 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13473 | ac_header_preproc=yes | |
a848cd7e | 13474 | ;; |
ac1cb8d3 | 13475 | no:yes:* ) |
a848cd7e SC |
13476 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13477 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13478 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13479 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13480 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13481 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13482 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13483 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13485 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13486 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13487 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13488 | ( |
13489 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13490 | ## ----------------------------------------- ## |
13491 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13492 | ## ----------------------------------------- ## | |
a848cd7e SC |
13493 | _ASBOX |
13494 | ) | | |
13495 | sed "s/^/$as_me: WARNING: /" >&2 | |
13496 | ;; | |
13497 | esac | |
13498 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13499 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13500 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13502 | else | |
ac1cb8d3 | 13503 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13504 | fi |
13505 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13506 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13507 | ||
13508 | fi | |
13509 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13510 | cat >>confdefs.h <<_ACEOF | |
13511 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13512 | _ACEOF | |
13513 | ||
13514 | fi | |
13515 | ||
13516 | done | |
13517 | ||
13518 | fi | |
13519 | ||
13520 | ||
13521 | for ac_header in fnmatch.h | |
13522 | do | |
13523 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13524 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13525 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13529 | fi | |
13530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13531 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13532 | else | |
13533 | # Is the header compilable? | |
13534 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13535 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13536 | cat >conftest.$ac_ext <<_ACEOF | |
13537 | /* confdefs.h. */ | |
13538 | _ACEOF | |
13539 | cat confdefs.h >>conftest.$ac_ext | |
13540 | cat >>conftest.$ac_ext <<_ACEOF | |
13541 | /* end confdefs.h. */ | |
13542 | $ac_includes_default | |
13543 | #include <$ac_header> | |
13544 | _ACEOF | |
13545 | rm -f conftest.$ac_objext | |
13546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13547 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13548 | ac_status=$? |
ac1cb8d3 VS |
13549 | grep -v '^ *+' conftest.er1 >conftest.err |
13550 | rm -f conftest.er1 | |
13551 | cat conftest.err >&5 | |
a848cd7e SC |
13552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13553 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13554 | { ac_try='test -z "$ac_c_werror_flag" |
13555 | || test ! -s conftest.err' | |
13556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13557 | (eval $ac_try) 2>&5 | |
13558 | ac_status=$? | |
13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13560 | (exit $ac_status); }; } && | |
13561 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13563 | (eval $ac_try) 2>&5 | |
13564 | ac_status=$? | |
13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13566 | (exit $ac_status); }; }; then | |
13567 | ac_header_compiler=yes | |
13568 | else | |
13569 | echo "$as_me: failed program was:" >&5 | |
13570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13571 | ||
13572 | ac_header_compiler=no | |
13573 | fi | |
ac1cb8d3 | 13574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13575 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13576 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13577 | ||
13578 | # Is the header present? | |
13579 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13580 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13581 | cat >conftest.$ac_ext <<_ACEOF | |
13582 | /* confdefs.h. */ | |
13583 | _ACEOF | |
13584 | cat confdefs.h >>conftest.$ac_ext | |
13585 | cat >>conftest.$ac_ext <<_ACEOF | |
13586 | /* end confdefs.h. */ | |
13587 | #include <$ac_header> | |
13588 | _ACEOF | |
13589 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13590 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13591 | ac_status=$? | |
13592 | grep -v '^ *+' conftest.er1 >conftest.err | |
13593 | rm -f conftest.er1 | |
13594 | cat conftest.err >&5 | |
13595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13596 | (exit $ac_status); } >/dev/null; then | |
13597 | if test -s conftest.err; then | |
13598 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13599 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13600 | else |
13601 | ac_cpp_err= | |
13602 | fi | |
13603 | else | |
13604 | ac_cpp_err=yes | |
13605 | fi | |
13606 | if test -z "$ac_cpp_err"; then | |
13607 | ac_header_preproc=yes | |
13608 | else | |
13609 | echo "$as_me: failed program was:" >&5 | |
13610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13611 | ||
13612 | ac_header_preproc=no | |
13613 | fi | |
13614 | rm -f conftest.err conftest.$ac_ext | |
13615 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13616 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13617 | ||
13618 | # So? What about this header? | |
ac1cb8d3 VS |
13619 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13620 | yes:no: ) | |
a848cd7e SC |
13621 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13622 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13623 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13624 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13625 | ac_header_preproc=yes | |
a848cd7e | 13626 | ;; |
ac1cb8d3 | 13627 | no:yes:* ) |
a848cd7e SC |
13628 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13629 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13630 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13631 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13632 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13633 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13634 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13635 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13636 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13637 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13638 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13639 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13640 | ( |
13641 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13642 | ## ----------------------------------------- ## |
13643 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13644 | ## ----------------------------------------- ## | |
a848cd7e SC |
13645 | _ASBOX |
13646 | ) | | |
13647 | sed "s/^/$as_me: WARNING: /" >&2 | |
13648 | ;; | |
13649 | esac | |
13650 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13654 | else | |
ac1cb8d3 | 13655 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13656 | fi |
13657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13658 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13659 | ||
13660 | fi | |
13661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13662 | cat >>confdefs.h <<_ACEOF | |
13663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13664 | _ACEOF | |
13665 | ||
13666 | fi | |
13667 | ||
13668 | done | |
13669 | ||
13670 | ||
13671 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13672 | ||
13673 | for ac_func in fnmatch | |
13674 | do | |
13675 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13676 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13677 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13678 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13680 | else | |
13681 | cat >conftest.$ac_ext <<_ACEOF | |
13682 | /* confdefs.h. */ | |
13683 | _ACEOF | |
13684 | cat confdefs.h >>conftest.$ac_ext | |
13685 | cat >>conftest.$ac_ext <<_ACEOF | |
13686 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13687 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13688 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13689 | #define $ac_func innocuous_$ac_func | |
13690 | ||
a848cd7e SC |
13691 | /* System header to define __stub macros and hopefully few prototypes, |
13692 | which can conflict with char $ac_func (); below. | |
13693 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13694 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13695 | |
a848cd7e SC |
13696 | #ifdef __STDC__ |
13697 | # include <limits.h> | |
13698 | #else | |
13699 | # include <assert.h> | |
13700 | #endif | |
ac1cb8d3 VS |
13701 | |
13702 | #undef $ac_func | |
13703 | ||
a848cd7e SC |
13704 | /* Override any gcc2 internal prototype to avoid an error. */ |
13705 | #ifdef __cplusplus | |
13706 | extern "C" | |
13707 | { | |
13708 | #endif | |
13709 | /* We use char because int might match the return type of a gcc2 | |
13710 | builtin and then its argument prototype would still apply. */ | |
13711 | char $ac_func (); | |
13712 | /* The GNU C library defines this for functions which it implements | |
13713 | to always fail with ENOSYS. Some functions are actually named | |
13714 | something starting with __ and the normal name is an alias. */ | |
13715 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13716 | choke me | |
13717 | #else | |
13718 | char (*f) () = $ac_func; | |
13719 | #endif | |
13720 | #ifdef __cplusplus | |
13721 | } | |
13722 | #endif | |
13723 | ||
13724 | int | |
13725 | main () | |
13726 | { | |
13727 | return f != $ac_func; | |
13728 | ; | |
13729 | return 0; | |
13730 | } | |
13731 | _ACEOF | |
13732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13734 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13735 | ac_status=$? |
ac1cb8d3 VS |
13736 | grep -v '^ *+' conftest.er1 >conftest.err |
13737 | rm -f conftest.er1 | |
13738 | cat conftest.err >&5 | |
a848cd7e SC |
13739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13740 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13741 | { ac_try='test -z "$ac_c_werror_flag" |
13742 | || test ! -s conftest.err' | |
13743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13744 | (eval $ac_try) 2>&5 | |
13745 | ac_status=$? | |
13746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13747 | (exit $ac_status); }; } && | |
13748 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13750 | (eval $ac_try) 2>&5 | |
13751 | ac_status=$? | |
13752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13753 | (exit $ac_status); }; }; then | |
13754 | eval "$as_ac_var=yes" | |
13755 | else | |
13756 | echo "$as_me: failed program was:" >&5 | |
13757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13758 | ||
13759 | eval "$as_ac_var=no" | |
13760 | fi | |
ac1cb8d3 VS |
13761 | rm -f conftest.err conftest.$ac_objext \ |
13762 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13763 | fi |
13764 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13765 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13766 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13767 | cat >>confdefs.h <<_ACEOF | |
13768 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13769 | _ACEOF | |
13770 | ||
13771 | fi | |
13772 | done | |
13773 | ||
13774 | fi | |
13775 | ||
13776 | ||
13777 | for ac_header in langinfo.h | |
13778 | do | |
13779 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13781 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13785 | fi | |
13786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13787 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13788 | else | |
13789 | # Is the header compilable? | |
13790 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13791 | echo $ECHO_N "checking $ac_header usability... $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 | $ac_includes_default | |
13799 | #include <$ac_header> | |
13800 | _ACEOF | |
13801 | rm -f conftest.$ac_objext | |
13802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13803 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13804 | ac_status=$? |
ac1cb8d3 VS |
13805 | grep -v '^ *+' conftest.er1 >conftest.err |
13806 | rm -f conftest.er1 | |
13807 | cat conftest.err >&5 | |
a848cd7e SC |
13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13809 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13810 | { ac_try='test -z "$ac_c_werror_flag" |
13811 | || test ! -s conftest.err' | |
13812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13813 | (eval $ac_try) 2>&5 | |
13814 | ac_status=$? | |
13815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13816 | (exit $ac_status); }; } && | |
13817 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13819 | (eval $ac_try) 2>&5 | |
13820 | ac_status=$? | |
13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13822 | (exit $ac_status); }; }; then | |
13823 | ac_header_compiler=yes | |
13824 | else | |
13825 | echo "$as_me: failed program was:" >&5 | |
13826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13827 | ||
13828 | ac_header_compiler=no | |
13829 | fi | |
ac1cb8d3 | 13830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13831 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13832 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13833 | ||
13834 | # Is the header present? | |
13835 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13836 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13837 | cat >conftest.$ac_ext <<_ACEOF | |
13838 | /* confdefs.h. */ | |
13839 | _ACEOF | |
13840 | cat confdefs.h >>conftest.$ac_ext | |
13841 | cat >>conftest.$ac_ext <<_ACEOF | |
13842 | /* end confdefs.h. */ | |
13843 | #include <$ac_header> | |
13844 | _ACEOF | |
13845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13847 | ac_status=$? | |
13848 | grep -v '^ *+' conftest.er1 >conftest.err | |
13849 | rm -f conftest.er1 | |
13850 | cat conftest.err >&5 | |
13851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13852 | (exit $ac_status); } >/dev/null; then | |
13853 | if test -s conftest.err; then | |
13854 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13855 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13856 | else |
13857 | ac_cpp_err= | |
13858 | fi | |
13859 | else | |
13860 | ac_cpp_err=yes | |
13861 | fi | |
13862 | if test -z "$ac_cpp_err"; then | |
13863 | ac_header_preproc=yes | |
13864 | else | |
13865 | echo "$as_me: failed program was:" >&5 | |
13866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13867 | ||
13868 | ac_header_preproc=no | |
13869 | fi | |
13870 | rm -f conftest.err conftest.$ac_ext | |
13871 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13872 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13873 | ||
13874 | # So? What about this header? | |
ac1cb8d3 VS |
13875 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13876 | yes:no: ) | |
a848cd7e SC |
13877 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13878 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13879 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13880 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13881 | ac_header_preproc=yes | |
a848cd7e | 13882 | ;; |
ac1cb8d3 | 13883 | no:yes:* ) |
a848cd7e SC |
13884 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13885 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13886 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13887 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13888 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13889 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13890 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13891 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13893 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13894 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13895 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13896 | ( |
13897 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13898 | ## ----------------------------------------- ## |
13899 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13900 | ## ----------------------------------------- ## | |
a848cd7e SC |
13901 | _ASBOX |
13902 | ) | | |
13903 | sed "s/^/$as_me: WARNING: /" >&2 | |
13904 | ;; | |
13905 | esac | |
13906 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13910 | else | |
ac1cb8d3 | 13911 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13912 | fi |
13913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13914 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13915 | ||
13916 | fi | |
13917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13918 | cat >>confdefs.h <<_ACEOF | |
13919 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13920 | _ACEOF | |
13921 | ||
13922 | fi | |
13923 | ||
13924 | done | |
13925 | ||
13926 | ||
13927 | case "${host}" in | |
13928 | *-pc-os2_emx | *-pc-os2-emx ) | |
13929 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13930 | LIBS="$LIBS -lintl" | |
13931 | fi | |
13932 | ;; | |
13933 | esac | |
13934 | ||
13935 | if test "$wxUSE_GUI" = "yes"; then | |
13936 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
13937 | ||
13938 | for ac_header in X11/Xlib.h | |
13939 | do | |
13940 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13941 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13942 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13943 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13944 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13946 | fi | |
13947 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13948 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13949 | else | |
13950 | # Is the header compilable? | |
13951 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13952 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13953 | cat >conftest.$ac_ext <<_ACEOF | |
13954 | /* confdefs.h. */ | |
13955 | _ACEOF | |
13956 | cat confdefs.h >>conftest.$ac_ext | |
13957 | cat >>conftest.$ac_ext <<_ACEOF | |
13958 | /* end confdefs.h. */ | |
13959 | $ac_includes_default | |
13960 | #include <$ac_header> | |
13961 | _ACEOF | |
13962 | rm -f conftest.$ac_objext | |
13963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13964 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13965 | ac_status=$? |
ac1cb8d3 VS |
13966 | grep -v '^ *+' conftest.er1 >conftest.err |
13967 | rm -f conftest.er1 | |
13968 | cat conftest.err >&5 | |
a848cd7e SC |
13969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13970 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13971 | { ac_try='test -z "$ac_c_werror_flag" |
13972 | || test ! -s conftest.err' | |
13973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13974 | (eval $ac_try) 2>&5 | |
13975 | ac_status=$? | |
13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13977 | (exit $ac_status); }; } && | |
13978 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13980 | (eval $ac_try) 2>&5 | |
13981 | ac_status=$? | |
13982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13983 | (exit $ac_status); }; }; then | |
13984 | ac_header_compiler=yes | |
13985 | else | |
13986 | echo "$as_me: failed program was:" >&5 | |
13987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13988 | ||
13989 | ac_header_compiler=no | |
13990 | fi | |
ac1cb8d3 | 13991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13992 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13993 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13994 | ||
13995 | # Is the header present? | |
13996 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13997 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13998 | cat >conftest.$ac_ext <<_ACEOF | |
13999 | /* confdefs.h. */ | |
14000 | _ACEOF | |
14001 | cat confdefs.h >>conftest.$ac_ext | |
14002 | cat >>conftest.$ac_ext <<_ACEOF | |
14003 | /* end confdefs.h. */ | |
14004 | #include <$ac_header> | |
14005 | _ACEOF | |
14006 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14007 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14008 | ac_status=$? | |
14009 | grep -v '^ *+' conftest.er1 >conftest.err | |
14010 | rm -f conftest.er1 | |
14011 | cat conftest.err >&5 | |
14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14013 | (exit $ac_status); } >/dev/null; then | |
14014 | if test -s conftest.err; then | |
14015 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14016 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14017 | else |
14018 | ac_cpp_err= | |
14019 | fi | |
14020 | else | |
14021 | ac_cpp_err=yes | |
14022 | fi | |
14023 | if test -z "$ac_cpp_err"; then | |
14024 | ac_header_preproc=yes | |
14025 | else | |
14026 | echo "$as_me: failed program was:" >&5 | |
14027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14028 | ||
14029 | ac_header_preproc=no | |
14030 | fi | |
14031 | rm -f conftest.err conftest.$ac_ext | |
14032 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14033 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14034 | ||
14035 | # So? What about this header? | |
ac1cb8d3 VS |
14036 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14037 | yes:no: ) | |
a848cd7e SC |
14038 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14039 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14041 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14042 | ac_header_preproc=yes | |
a848cd7e | 14043 | ;; |
ac1cb8d3 | 14044 | no:yes:* ) |
a848cd7e SC |
14045 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14046 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14047 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14048 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14049 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14050 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14051 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14052 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14053 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14054 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14055 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14056 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14057 | ( |
14058 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14059 | ## ----------------------------------------- ## |
14060 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14061 | ## ----------------------------------------- ## | |
a848cd7e SC |
14062 | _ASBOX |
14063 | ) | | |
14064 | sed "s/^/$as_me: WARNING: /" >&2 | |
14065 | ;; | |
14066 | esac | |
14067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14071 | else | |
ac1cb8d3 | 14072 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14073 | fi |
14074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14076 | ||
14077 | fi | |
14078 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14079 | cat >>confdefs.h <<_ACEOF | |
14080 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14081 | _ACEOF | |
14082 | ||
14083 | fi | |
14084 | ||
14085 | done | |
14086 | ||
14087 | ||
14088 | for ac_header in X11/XKBlib.h | |
14089 | do | |
14090 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14091 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14095 | else | |
14096 | cat >conftest.$ac_ext <<_ACEOF | |
14097 | /* confdefs.h. */ | |
14098 | _ACEOF | |
14099 | cat confdefs.h >>conftest.$ac_ext | |
14100 | cat >>conftest.$ac_ext <<_ACEOF | |
14101 | /* end confdefs.h. */ | |
14102 | ||
14103 | #if HAVE_X11_XLIB_H | |
14104 | #include <X11/Xlib.h> | |
14105 | #endif | |
14106 | ||
14107 | ||
14108 | #include <$ac_header> | |
14109 | _ACEOF | |
14110 | rm -f conftest.$ac_objext | |
14111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14113 | ac_status=$? |
ac1cb8d3 VS |
14114 | grep -v '^ *+' conftest.er1 >conftest.err |
14115 | rm -f conftest.er1 | |
14116 | cat conftest.err >&5 | |
a848cd7e SC |
14117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14118 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14119 | { ac_try='test -z "$ac_c_werror_flag" |
14120 | || test ! -s conftest.err' | |
14121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14122 | (eval $ac_try) 2>&5 | |
14123 | ac_status=$? | |
14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14125 | (exit $ac_status); }; } && | |
14126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14128 | (eval $ac_try) 2>&5 | |
14129 | ac_status=$? | |
14130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14131 | (exit $ac_status); }; }; then | |
14132 | eval "$as_ac_Header=yes" | |
14133 | else | |
14134 | echo "$as_me: failed program was:" >&5 | |
14135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14136 | ||
14137 | eval "$as_ac_Header=no" | |
14138 | fi | |
ac1cb8d3 | 14139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14140 | fi |
14141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14142 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14143 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14144 | cat >>confdefs.h <<_ACEOF | |
14145 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14146 | _ACEOF | |
14147 | ||
14148 | fi | |
14149 | ||
14150 | done | |
14151 | ||
14152 | fi | |
14153 | fi | |
14154 | ||
14155 | ||
14156 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14157 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14158 | if test "${ac_cv_c_const+set}" = set; then | |
14159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14160 | else | |
14161 | cat >conftest.$ac_ext <<_ACEOF | |
14162 | /* confdefs.h. */ | |
14163 | _ACEOF | |
14164 | cat confdefs.h >>conftest.$ac_ext | |
14165 | cat >>conftest.$ac_ext <<_ACEOF | |
14166 | /* end confdefs.h. */ | |
14167 | ||
14168 | int | |
14169 | main () | |
14170 | { | |
14171 | /* FIXME: Include the comments suggested by Paul. */ | |
14172 | #ifndef __cplusplus | |
14173 | /* Ultrix mips cc rejects this. */ | |
14174 | typedef int charset[2]; | |
14175 | const charset x; | |
14176 | /* SunOS 4.1.1 cc rejects this. */ | |
14177 | char const *const *ccp; | |
14178 | char **p; | |
14179 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14180 | struct point {int x, y;}; | |
14181 | static struct point const zero = {0,0}; | |
14182 | /* AIX XL C 1.02.0.0 rejects this. | |
14183 | It does not let you subtract one const X* pointer from another in | |
14184 | an arm of an if-expression whose if-part is not a constant | |
14185 | expression */ | |
14186 | const char *g = "string"; | |
14187 | ccp = &g + (g ? g-g : 0); | |
14188 | /* HPUX 7.0 cc rejects these. */ | |
14189 | ++ccp; | |
14190 | p = (char**) ccp; | |
14191 | ccp = (char const *const *) p; | |
14192 | { /* SCO 3.2v4 cc rejects this. */ | |
14193 | char *t; | |
14194 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14195 | ||
14196 | *t++ = 0; | |
14197 | } | |
14198 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14199 | int x[] = {25, 17}; | |
14200 | const int *foo = &x[0]; | |
14201 | ++foo; | |
14202 | } | |
14203 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14204 | typedef const int *iptr; | |
14205 | iptr p = 0; | |
14206 | ++p; | |
14207 | } | |
14208 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14209 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14210 | struct s { int j; const int *ap[3]; }; | |
14211 | struct s *b; b->j = 5; | |
14212 | } | |
14213 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14214 | const int foo = 10; | |
14215 | } | |
14216 | #endif | |
14217 | ||
14218 | ; | |
14219 | return 0; | |
14220 | } | |
14221 | _ACEOF | |
14222 | rm -f conftest.$ac_objext | |
14223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14224 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14225 | ac_status=$? |
ac1cb8d3 VS |
14226 | grep -v '^ *+' conftest.er1 >conftest.err |
14227 | rm -f conftest.er1 | |
14228 | cat conftest.err >&5 | |
a848cd7e SC |
14229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14230 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14231 | { ac_try='test -z "$ac_c_werror_flag" |
14232 | || test ! -s conftest.err' | |
14233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14234 | (eval $ac_try) 2>&5 | |
14235 | ac_status=$? | |
14236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14237 | (exit $ac_status); }; } && | |
14238 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14240 | (eval $ac_try) 2>&5 | |
14241 | ac_status=$? | |
14242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14243 | (exit $ac_status); }; }; then | |
14244 | ac_cv_c_const=yes | |
14245 | else | |
14246 | echo "$as_me: failed program was:" >&5 | |
14247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14248 | ||
14249 | ac_cv_c_const=no | |
14250 | fi | |
ac1cb8d3 | 14251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14252 | fi |
14253 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14254 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14255 | if test $ac_cv_c_const = no; then | |
14256 | ||
14257 | cat >>confdefs.h <<\_ACEOF | |
14258 | #define const | |
14259 | _ACEOF | |
14260 | ||
14261 | fi | |
14262 | ||
14263 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14264 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14265 | if test "${ac_cv_c_inline+set}" = set; then | |
14266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14267 | else | |
14268 | ac_cv_c_inline=no | |
14269 | for ac_kw in inline __inline__ __inline; do | |
14270 | cat >conftest.$ac_ext <<_ACEOF | |
14271 | /* confdefs.h. */ | |
14272 | _ACEOF | |
14273 | cat confdefs.h >>conftest.$ac_ext | |
14274 | cat >>conftest.$ac_ext <<_ACEOF | |
14275 | /* end confdefs.h. */ | |
14276 | #ifndef __cplusplus | |
14277 | typedef int foo_t; | |
14278 | static $ac_kw foo_t static_foo () {return 0; } | |
14279 | $ac_kw foo_t foo () {return 0; } | |
14280 | #endif | |
14281 | ||
14282 | _ACEOF | |
14283 | rm -f conftest.$ac_objext | |
14284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14286 | ac_status=$? |
ac1cb8d3 VS |
14287 | grep -v '^ *+' conftest.er1 >conftest.err |
14288 | rm -f conftest.er1 | |
14289 | cat conftest.err >&5 | |
a848cd7e SC |
14290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14291 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14292 | { ac_try='test -z "$ac_c_werror_flag" |
14293 | || test ! -s conftest.err' | |
14294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14295 | (eval $ac_try) 2>&5 | |
14296 | ac_status=$? | |
14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14298 | (exit $ac_status); }; } && | |
14299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14301 | (eval $ac_try) 2>&5 | |
14302 | ac_status=$? | |
14303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14304 | (exit $ac_status); }; }; then | |
14305 | ac_cv_c_inline=$ac_kw; break | |
14306 | else | |
14307 | echo "$as_me: failed program was:" >&5 | |
14308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14309 | ||
14310 | fi | |
ac1cb8d3 | 14311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14312 | done |
14313 | ||
14314 | fi | |
14315 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14316 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14317 | |
14318 | ||
a848cd7e SC |
14319 | case $ac_cv_c_inline in |
14320 | inline | yes) ;; | |
ac1cb8d3 VS |
14321 | *) |
14322 | case $ac_cv_c_inline in | |
14323 | no) ac_val=;; | |
14324 | *) ac_val=$ac_cv_c_inline;; | |
14325 | esac | |
14326 | cat >>confdefs.h <<_ACEOF | |
14327 | #ifndef __cplusplus | |
14328 | #define inline $ac_val | |
14329 | #endif | |
de59c161 | 14330 | _ACEOF |
ac1cb8d3 | 14331 | ;; |
a848cd7e SC |
14332 | esac |
14333 | ||
14334 | ||
14335 | echo "$as_me:$LINENO: checking for char" >&5 | |
14336 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14337 | if test "${ac_cv_type_char+set}" = set; then | |
14338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14339 | else | |
14340 | cat >conftest.$ac_ext <<_ACEOF | |
14341 | /* confdefs.h. */ | |
14342 | _ACEOF | |
14343 | cat confdefs.h >>conftest.$ac_ext | |
14344 | cat >>conftest.$ac_ext <<_ACEOF | |
14345 | /* end confdefs.h. */ | |
14346 | $ac_includes_default | |
14347 | int | |
14348 | main () | |
14349 | { | |
14350 | if ((char *) 0) | |
14351 | return 0; | |
14352 | if (sizeof (char)) | |
14353 | return 0; | |
14354 | ; | |
14355 | return 0; | |
14356 | } | |
14357 | _ACEOF | |
14358 | rm -f conftest.$ac_objext | |
14359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14360 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14361 | ac_status=$? |
ac1cb8d3 VS |
14362 | grep -v '^ *+' conftest.er1 >conftest.err |
14363 | rm -f conftest.er1 | |
14364 | cat conftest.err >&5 | |
a848cd7e SC |
14365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14366 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14367 | { ac_try='test -z "$ac_c_werror_flag" |
14368 | || test ! -s conftest.err' | |
14369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14370 | (eval $ac_try) 2>&5 | |
14371 | ac_status=$? | |
14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14373 | (exit $ac_status); }; } && | |
14374 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14376 | (eval $ac_try) 2>&5 | |
14377 | ac_status=$? | |
14378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14379 | (exit $ac_status); }; }; then | |
14380 | ac_cv_type_char=yes | |
14381 | else | |
14382 | echo "$as_me: failed program was:" >&5 | |
14383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14384 | ||
14385 | ac_cv_type_char=no | |
14386 | fi | |
ac1cb8d3 | 14387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14388 | fi |
14389 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14390 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14391 | ||
14392 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14393 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14394 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14396 | else | |
14397 | if test "$ac_cv_type_char" = yes; then | |
14398 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14399 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14400 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14401 | # This bug is HP SR number 8606223364. | |
14402 | if test "$cross_compiling" = yes; then | |
14403 | # Depending upon the size, compute the lo and hi bounds. | |
14404 | cat >conftest.$ac_ext <<_ACEOF | |
14405 | /* confdefs.h. */ | |
14406 | _ACEOF | |
14407 | cat confdefs.h >>conftest.$ac_ext | |
14408 | cat >>conftest.$ac_ext <<_ACEOF | |
14409 | /* end confdefs.h. */ | |
14410 | $ac_includes_default | |
14411 | int | |
14412 | main () | |
14413 | { | |
14414 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14415 | test_array [0] = 0 | |
14416 | ||
14417 | ; | |
14418 | return 0; | |
14419 | } | |
14420 | _ACEOF | |
14421 | rm -f conftest.$ac_objext | |
14422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14423 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14424 | ac_status=$? |
ac1cb8d3 VS |
14425 | grep -v '^ *+' conftest.er1 >conftest.err |
14426 | rm -f conftest.er1 | |
14427 | cat conftest.err >&5 | |
a848cd7e SC |
14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14429 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14430 | { ac_try='test -z "$ac_c_werror_flag" |
14431 | || test ! -s conftest.err' | |
14432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14433 | (eval $ac_try) 2>&5 | |
14434 | ac_status=$? | |
14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14436 | (exit $ac_status); }; } && | |
14437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14439 | (eval $ac_try) 2>&5 | |
14440 | ac_status=$? | |
14441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14442 | (exit $ac_status); }; }; then | |
14443 | ac_lo=0 ac_mid=0 | |
14444 | while :; do | |
14445 | cat >conftest.$ac_ext <<_ACEOF | |
14446 | /* confdefs.h. */ | |
14447 | _ACEOF | |
14448 | cat confdefs.h >>conftest.$ac_ext | |
14449 | cat >>conftest.$ac_ext <<_ACEOF | |
14450 | /* end confdefs.h. */ | |
14451 | $ac_includes_default | |
14452 | int | |
14453 | main () | |
14454 | { | |
14455 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14456 | test_array [0] = 0 | |
14457 | ||
14458 | ; | |
14459 | return 0; | |
14460 | } | |
14461 | _ACEOF | |
14462 | rm -f conftest.$ac_objext | |
14463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14464 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14465 | ac_status=$? |
ac1cb8d3 VS |
14466 | grep -v '^ *+' conftest.er1 >conftest.err |
14467 | rm -f conftest.er1 | |
14468 | cat conftest.err >&5 | |
a848cd7e SC |
14469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14470 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14471 | { ac_try='test -z "$ac_c_werror_flag" |
14472 | || test ! -s conftest.err' | |
14473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14474 | (eval $ac_try) 2>&5 | |
14475 | ac_status=$? | |
14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14477 | (exit $ac_status); }; } && | |
14478 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14480 | (eval $ac_try) 2>&5 | |
14481 | ac_status=$? | |
14482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14483 | (exit $ac_status); }; }; then | |
14484 | ac_hi=$ac_mid; break | |
14485 | else | |
14486 | echo "$as_me: failed program was:" >&5 | |
14487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14488 | ||
14489 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14490 | if test $ac_lo -le $ac_mid; then |
14491 | ac_lo= ac_hi= | |
14492 | break | |
14493 | fi | |
14494 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14495 | fi |
ac1cb8d3 | 14496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14497 | done |
14498 | else | |
14499 | echo "$as_me: failed program was:" >&5 | |
14500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14501 | ||
14502 | cat >conftest.$ac_ext <<_ACEOF | |
14503 | /* confdefs.h. */ | |
14504 | _ACEOF | |
14505 | cat confdefs.h >>conftest.$ac_ext | |
14506 | cat >>conftest.$ac_ext <<_ACEOF | |
14507 | /* end confdefs.h. */ | |
14508 | $ac_includes_default | |
14509 | int | |
14510 | main () | |
14511 | { | |
14512 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14513 | test_array [0] = 0 | |
14514 | ||
14515 | ; | |
14516 | return 0; | |
14517 | } | |
14518 | _ACEOF | |
14519 | rm -f conftest.$ac_objext | |
14520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14521 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14522 | ac_status=$? |
ac1cb8d3 VS |
14523 | grep -v '^ *+' conftest.er1 >conftest.err |
14524 | rm -f conftest.er1 | |
14525 | cat conftest.err >&5 | |
a848cd7e SC |
14526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14527 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14528 | { ac_try='test -z "$ac_c_werror_flag" |
14529 | || test ! -s conftest.err' | |
14530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14531 | (eval $ac_try) 2>&5 | |
14532 | ac_status=$? | |
14533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14534 | (exit $ac_status); }; } && | |
14535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14537 | (eval $ac_try) 2>&5 | |
14538 | ac_status=$? | |
14539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14540 | (exit $ac_status); }; }; then | |
14541 | ac_hi=-1 ac_mid=-1 | |
14542 | while :; do | |
14543 | cat >conftest.$ac_ext <<_ACEOF | |
14544 | /* confdefs.h. */ | |
14545 | _ACEOF | |
14546 | cat confdefs.h >>conftest.$ac_ext | |
14547 | cat >>conftest.$ac_ext <<_ACEOF | |
14548 | /* end confdefs.h. */ | |
14549 | $ac_includes_default | |
14550 | int | |
14551 | main () | |
14552 | { | |
14553 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14554 | test_array [0] = 0 | |
14555 | ||
14556 | ; | |
14557 | return 0; | |
14558 | } | |
14559 | _ACEOF | |
14560 | rm -f conftest.$ac_objext | |
14561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14562 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14563 | ac_status=$? |
ac1cb8d3 VS |
14564 | grep -v '^ *+' conftest.er1 >conftest.err |
14565 | rm -f conftest.er1 | |
14566 | cat conftest.err >&5 | |
a848cd7e SC |
14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14568 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14569 | { ac_try='test -z "$ac_c_werror_flag" |
14570 | || test ! -s conftest.err' | |
14571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14572 | (eval $ac_try) 2>&5 | |
14573 | ac_status=$? | |
14574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14575 | (exit $ac_status); }; } && | |
14576 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14578 | (eval $ac_try) 2>&5 | |
14579 | ac_status=$? | |
14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14581 | (exit $ac_status); }; }; then | |
14582 | ac_lo=$ac_mid; break | |
14583 | else | |
14584 | echo "$as_me: failed program was:" >&5 | |
14585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14586 | ||
14587 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14588 | if test $ac_mid -le $ac_hi; then |
14589 | ac_lo= ac_hi= | |
14590 | break | |
14591 | fi | |
14592 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14593 | fi |
ac1cb8d3 | 14594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14595 | done |
14596 | else | |
14597 | echo "$as_me: failed program was:" >&5 | |
14598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14599 | ||
14600 | ac_lo= ac_hi= | |
14601 | fi | |
ac1cb8d3 | 14602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14603 | fi |
ac1cb8d3 | 14604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14605 | # Binary search between lo and hi bounds. |
14606 | while test "x$ac_lo" != "x$ac_hi"; do | |
14607 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14608 | cat >conftest.$ac_ext <<_ACEOF | |
14609 | /* confdefs.h. */ | |
14610 | _ACEOF | |
14611 | cat confdefs.h >>conftest.$ac_ext | |
14612 | cat >>conftest.$ac_ext <<_ACEOF | |
14613 | /* end confdefs.h. */ | |
14614 | $ac_includes_default | |
14615 | int | |
14616 | main () | |
14617 | { | |
14618 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14619 | test_array [0] = 0 | |
14620 | ||
14621 | ; | |
14622 | return 0; | |
14623 | } | |
14624 | _ACEOF | |
14625 | rm -f conftest.$ac_objext | |
14626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14627 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14628 | ac_status=$? |
ac1cb8d3 VS |
14629 | grep -v '^ *+' conftest.er1 >conftest.err |
14630 | rm -f conftest.er1 | |
14631 | cat conftest.err >&5 | |
a848cd7e SC |
14632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14633 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14634 | { ac_try='test -z "$ac_c_werror_flag" |
14635 | || test ! -s conftest.err' | |
14636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14637 | (eval $ac_try) 2>&5 | |
14638 | ac_status=$? | |
14639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14640 | (exit $ac_status); }; } && | |
14641 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14643 | (eval $ac_try) 2>&5 | |
14644 | ac_status=$? | |
14645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14646 | (exit $ac_status); }; }; then | |
14647 | ac_hi=$ac_mid | |
14648 | else | |
14649 | echo "$as_me: failed program was:" >&5 | |
14650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14651 | ||
14652 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14653 | fi | |
ac1cb8d3 | 14654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14655 | done |
14656 | case $ac_lo in | |
14657 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14658 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14659 | See \`config.log' for more details." >&5 | |
14660 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14661 | See \`config.log' for more details." >&2;} | |
14662 | { (exit 1); exit 1; }; } ;; | |
14663 | esac | |
14664 | else | |
14665 | if test "$cross_compiling" = yes; then | |
14666 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14667 | See \`config.log' for more details." >&5 | |
14668 | echo "$as_me: error: cannot run test program while cross compiling | |
14669 | See \`config.log' for more details." >&2;} | |
14670 | { (exit 1); exit 1; }; } | |
14671 | else | |
14672 | cat >conftest.$ac_ext <<_ACEOF | |
14673 | /* confdefs.h. */ | |
14674 | _ACEOF | |
14675 | cat confdefs.h >>conftest.$ac_ext | |
14676 | cat >>conftest.$ac_ext <<_ACEOF | |
14677 | /* end confdefs.h. */ | |
14678 | $ac_includes_default | |
14679 | long longval () { return (long) (sizeof (char)); } | |
14680 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14681 | #include <stdio.h> | |
14682 | #include <stdlib.h> | |
14683 | int | |
14684 | main () | |
14685 | { | |
14686 | ||
14687 | FILE *f = fopen ("conftest.val", "w"); | |
14688 | if (! f) | |
14689 | exit (1); | |
14690 | if (((long) (sizeof (char))) < 0) | |
14691 | { | |
14692 | long i = longval (); | |
14693 | if (i != ((long) (sizeof (char)))) | |
14694 | exit (1); | |
14695 | fprintf (f, "%ld\n", i); | |
14696 | } | |
14697 | else | |
14698 | { | |
14699 | unsigned long i = ulongval (); | |
14700 | if (i != ((long) (sizeof (char)))) | |
14701 | exit (1); | |
14702 | fprintf (f, "%lu\n", i); | |
14703 | } | |
14704 | exit (ferror (f) || fclose (f) != 0); | |
14705 | ||
14706 | ; | |
14707 | return 0; | |
14708 | } | |
14709 | _ACEOF | |
14710 | rm -f conftest$ac_exeext | |
14711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14712 | (eval $ac_link) 2>&5 | |
14713 | ac_status=$? | |
14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14715 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14717 | (eval $ac_try) 2>&5 | |
14718 | ac_status=$? | |
14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14720 | (exit $ac_status); }; }; then | |
14721 | ac_cv_sizeof_char=`cat conftest.val` | |
14722 | else | |
14723 | echo "$as_me: program exited with status $ac_status" >&5 | |
14724 | echo "$as_me: failed program was:" >&5 | |
14725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14726 | ||
14727 | ( exit $ac_status ) | |
14728 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14729 | See \`config.log' for more details." >&5 | |
14730 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14731 | See \`config.log' for more details." >&2;} | |
14732 | { (exit 1); exit 1; }; } | |
14733 | fi | |
ac1cb8d3 | 14734 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14735 | fi |
14736 | fi | |
14737 | rm -f conftest.val | |
14738 | else | |
14739 | ac_cv_sizeof_char=0 | |
14740 | fi | |
14741 | fi | |
14742 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14743 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14744 | cat >>confdefs.h <<_ACEOF | |
14745 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14746 | _ACEOF | |
14747 | ||
14748 | ||
14749 | echo "$as_me:$LINENO: checking for short" >&5 | |
14750 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14751 | if test "${ac_cv_type_short+set}" = set; then | |
14752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14753 | else | |
14754 | cat >conftest.$ac_ext <<_ACEOF | |
14755 | /* confdefs.h. */ | |
14756 | _ACEOF | |
14757 | cat confdefs.h >>conftest.$ac_ext | |
14758 | cat >>conftest.$ac_ext <<_ACEOF | |
14759 | /* end confdefs.h. */ | |
14760 | $ac_includes_default | |
14761 | int | |
14762 | main () | |
14763 | { | |
14764 | if ((short *) 0) | |
14765 | return 0; | |
14766 | if (sizeof (short)) | |
14767 | return 0; | |
14768 | ; | |
14769 | return 0; | |
14770 | } | |
14771 | _ACEOF | |
14772 | rm -f conftest.$ac_objext | |
14773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14774 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14775 | ac_status=$? |
ac1cb8d3 VS |
14776 | grep -v '^ *+' conftest.er1 >conftest.err |
14777 | rm -f conftest.er1 | |
14778 | cat conftest.err >&5 | |
a848cd7e SC |
14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14780 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14781 | { ac_try='test -z "$ac_c_werror_flag" |
14782 | || test ! -s conftest.err' | |
14783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14784 | (eval $ac_try) 2>&5 | |
14785 | ac_status=$? | |
14786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14787 | (exit $ac_status); }; } && | |
14788 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14790 | (eval $ac_try) 2>&5 | |
14791 | ac_status=$? | |
14792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14793 | (exit $ac_status); }; }; then | |
14794 | ac_cv_type_short=yes | |
14795 | else | |
14796 | echo "$as_me: failed program was:" >&5 | |
14797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14798 | ||
14799 | ac_cv_type_short=no | |
14800 | fi | |
ac1cb8d3 | 14801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14802 | fi |
14803 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14804 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14805 | ||
14806 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14807 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14808 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14810 | else | |
14811 | if test "$ac_cv_type_short" = yes; then | |
14812 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14813 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14814 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14815 | # This bug is HP SR number 8606223364. | |
14816 | if test "$cross_compiling" = yes; then | |
14817 | # Depending upon the size, compute the lo and hi bounds. | |
14818 | cat >conftest.$ac_ext <<_ACEOF | |
14819 | /* confdefs.h. */ | |
14820 | _ACEOF | |
14821 | cat confdefs.h >>conftest.$ac_ext | |
14822 | cat >>conftest.$ac_ext <<_ACEOF | |
14823 | /* end confdefs.h. */ | |
14824 | $ac_includes_default | |
14825 | int | |
14826 | main () | |
14827 | { | |
14828 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14829 | test_array [0] = 0 | |
14830 | ||
14831 | ; | |
14832 | return 0; | |
14833 | } | |
14834 | _ACEOF | |
14835 | rm -f conftest.$ac_objext | |
14836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14837 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14838 | ac_status=$? |
ac1cb8d3 VS |
14839 | grep -v '^ *+' conftest.er1 >conftest.err |
14840 | rm -f conftest.er1 | |
14841 | cat conftest.err >&5 | |
a848cd7e SC |
14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14843 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14844 | { ac_try='test -z "$ac_c_werror_flag" |
14845 | || test ! -s conftest.err' | |
14846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14847 | (eval $ac_try) 2>&5 | |
14848 | ac_status=$? | |
14849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14850 | (exit $ac_status); }; } && | |
14851 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14853 | (eval $ac_try) 2>&5 | |
14854 | ac_status=$? | |
14855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14856 | (exit $ac_status); }; }; then | |
14857 | ac_lo=0 ac_mid=0 | |
14858 | while :; do | |
14859 | cat >conftest.$ac_ext <<_ACEOF | |
14860 | /* confdefs.h. */ | |
14861 | _ACEOF | |
14862 | cat confdefs.h >>conftest.$ac_ext | |
14863 | cat >>conftest.$ac_ext <<_ACEOF | |
14864 | /* end confdefs.h. */ | |
14865 | $ac_includes_default | |
14866 | int | |
14867 | main () | |
14868 | { | |
14869 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14870 | test_array [0] = 0 | |
14871 | ||
14872 | ; | |
14873 | return 0; | |
14874 | } | |
14875 | _ACEOF | |
14876 | rm -f conftest.$ac_objext | |
14877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14878 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14879 | ac_status=$? |
ac1cb8d3 VS |
14880 | grep -v '^ *+' conftest.er1 >conftest.err |
14881 | rm -f conftest.er1 | |
14882 | cat conftest.err >&5 | |
a848cd7e SC |
14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14884 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14885 | { ac_try='test -z "$ac_c_werror_flag" |
14886 | || test ! -s conftest.err' | |
14887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14888 | (eval $ac_try) 2>&5 | |
14889 | ac_status=$? | |
14890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14891 | (exit $ac_status); }; } && | |
14892 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14894 | (eval $ac_try) 2>&5 | |
14895 | ac_status=$? | |
14896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14897 | (exit $ac_status); }; }; then | |
14898 | ac_hi=$ac_mid; break | |
14899 | else | |
14900 | echo "$as_me: failed program was:" >&5 | |
14901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14902 | ||
14903 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14904 | if test $ac_lo -le $ac_mid; then |
14905 | ac_lo= ac_hi= | |
14906 | break | |
14907 | fi | |
14908 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14909 | fi |
ac1cb8d3 | 14910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14911 | done |
14912 | else | |
14913 | echo "$as_me: failed program was:" >&5 | |
14914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14915 | ||
14916 | cat >conftest.$ac_ext <<_ACEOF | |
14917 | /* confdefs.h. */ | |
14918 | _ACEOF | |
14919 | cat confdefs.h >>conftest.$ac_ext | |
14920 | cat >>conftest.$ac_ext <<_ACEOF | |
14921 | /* end confdefs.h. */ | |
14922 | $ac_includes_default | |
14923 | int | |
14924 | main () | |
14925 | { | |
14926 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14927 | test_array [0] = 0 | |
14928 | ||
14929 | ; | |
14930 | return 0; | |
14931 | } | |
14932 | _ACEOF | |
14933 | rm -f conftest.$ac_objext | |
14934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14935 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14936 | ac_status=$? |
ac1cb8d3 VS |
14937 | grep -v '^ *+' conftest.er1 >conftest.err |
14938 | rm -f conftest.er1 | |
14939 | cat conftest.err >&5 | |
a848cd7e SC |
14940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14941 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14942 | { ac_try='test -z "$ac_c_werror_flag" |
14943 | || test ! -s conftest.err' | |
14944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14945 | (eval $ac_try) 2>&5 | |
14946 | ac_status=$? | |
14947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14948 | (exit $ac_status); }; } && | |
14949 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14951 | (eval $ac_try) 2>&5 | |
14952 | ac_status=$? | |
14953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14954 | (exit $ac_status); }; }; then | |
14955 | ac_hi=-1 ac_mid=-1 | |
14956 | while :; do | |
14957 | cat >conftest.$ac_ext <<_ACEOF | |
14958 | /* confdefs.h. */ | |
14959 | _ACEOF | |
14960 | cat confdefs.h >>conftest.$ac_ext | |
14961 | cat >>conftest.$ac_ext <<_ACEOF | |
14962 | /* end confdefs.h. */ | |
14963 | $ac_includes_default | |
14964 | int | |
14965 | main () | |
14966 | { | |
14967 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14968 | test_array [0] = 0 | |
14969 | ||
14970 | ; | |
14971 | return 0; | |
14972 | } | |
14973 | _ACEOF | |
14974 | rm -f conftest.$ac_objext | |
14975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14976 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14977 | ac_status=$? |
ac1cb8d3 VS |
14978 | grep -v '^ *+' conftest.er1 >conftest.err |
14979 | rm -f conftest.er1 | |
14980 | cat conftest.err >&5 | |
a848cd7e SC |
14981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14982 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14983 | { ac_try='test -z "$ac_c_werror_flag" |
14984 | || test ! -s conftest.err' | |
14985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14986 | (eval $ac_try) 2>&5 | |
14987 | ac_status=$? | |
14988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14989 | (exit $ac_status); }; } && | |
14990 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14992 | (eval $ac_try) 2>&5 | |
14993 | ac_status=$? | |
14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14995 | (exit $ac_status); }; }; then | |
14996 | ac_lo=$ac_mid; break | |
14997 | else | |
14998 | echo "$as_me: failed program was:" >&5 | |
14999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15000 | ||
15001 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15002 | if test $ac_mid -le $ac_hi; then |
15003 | ac_lo= ac_hi= | |
15004 | break | |
15005 | fi | |
15006 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15007 | fi |
ac1cb8d3 | 15008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15009 | done |
15010 | else | |
15011 | echo "$as_me: failed program was:" >&5 | |
15012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15013 | ||
15014 | ac_lo= ac_hi= | |
15015 | fi | |
ac1cb8d3 | 15016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15017 | fi |
ac1cb8d3 | 15018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15019 | # Binary search between lo and hi bounds. |
15020 | while test "x$ac_lo" != "x$ac_hi"; do | |
15021 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15022 | cat >conftest.$ac_ext <<_ACEOF | |
15023 | /* confdefs.h. */ | |
15024 | _ACEOF | |
15025 | cat confdefs.h >>conftest.$ac_ext | |
15026 | cat >>conftest.$ac_ext <<_ACEOF | |
15027 | /* end confdefs.h. */ | |
15028 | $ac_includes_default | |
15029 | int | |
15030 | main () | |
15031 | { | |
15032 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15033 | test_array [0] = 0 | |
15034 | ||
15035 | ; | |
15036 | return 0; | |
15037 | } | |
15038 | _ACEOF | |
15039 | rm -f conftest.$ac_objext | |
15040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15041 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15042 | ac_status=$? |
ac1cb8d3 VS |
15043 | grep -v '^ *+' conftest.er1 >conftest.err |
15044 | rm -f conftest.er1 | |
15045 | cat conftest.err >&5 | |
a848cd7e SC |
15046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15047 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15048 | { ac_try='test -z "$ac_c_werror_flag" |
15049 | || test ! -s conftest.err' | |
15050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15051 | (eval $ac_try) 2>&5 | |
15052 | ac_status=$? | |
15053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15054 | (exit $ac_status); }; } && | |
15055 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15057 | (eval $ac_try) 2>&5 | |
15058 | ac_status=$? | |
15059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15060 | (exit $ac_status); }; }; then | |
15061 | ac_hi=$ac_mid | |
15062 | else | |
15063 | echo "$as_me: failed program was:" >&5 | |
15064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15065 | ||
15066 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15067 | fi | |
ac1cb8d3 | 15068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15069 | done |
15070 | case $ac_lo in | |
15071 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15072 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15073 | See \`config.log' for more details." >&5 | |
15074 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15075 | See \`config.log' for more details." >&2;} | |
15076 | { (exit 1); exit 1; }; } ;; | |
15077 | esac | |
15078 | else | |
15079 | if test "$cross_compiling" = yes; then | |
15080 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15081 | See \`config.log' for more details." >&5 | |
15082 | echo "$as_me: error: cannot run test program while cross compiling | |
15083 | See \`config.log' for more details." >&2;} | |
15084 | { (exit 1); exit 1; }; } | |
15085 | else | |
15086 | cat >conftest.$ac_ext <<_ACEOF | |
15087 | /* confdefs.h. */ | |
15088 | _ACEOF | |
15089 | cat confdefs.h >>conftest.$ac_ext | |
15090 | cat >>conftest.$ac_ext <<_ACEOF | |
15091 | /* end confdefs.h. */ | |
15092 | $ac_includes_default | |
15093 | long longval () { return (long) (sizeof (short)); } | |
15094 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15095 | #include <stdio.h> | |
15096 | #include <stdlib.h> | |
15097 | int | |
15098 | main () | |
15099 | { | |
15100 | ||
15101 | FILE *f = fopen ("conftest.val", "w"); | |
15102 | if (! f) | |
15103 | exit (1); | |
15104 | if (((long) (sizeof (short))) < 0) | |
15105 | { | |
15106 | long i = longval (); | |
15107 | if (i != ((long) (sizeof (short)))) | |
15108 | exit (1); | |
15109 | fprintf (f, "%ld\n", i); | |
15110 | } | |
15111 | else | |
15112 | { | |
15113 | unsigned long i = ulongval (); | |
15114 | if (i != ((long) (sizeof (short)))) | |
15115 | exit (1); | |
15116 | fprintf (f, "%lu\n", i); | |
15117 | } | |
15118 | exit (ferror (f) || fclose (f) != 0); | |
15119 | ||
15120 | ; | |
15121 | return 0; | |
15122 | } | |
15123 | _ACEOF | |
15124 | rm -f conftest$ac_exeext | |
15125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15126 | (eval $ac_link) 2>&5 | |
15127 | ac_status=$? | |
15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15129 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15131 | (eval $ac_try) 2>&5 | |
15132 | ac_status=$? | |
15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15134 | (exit $ac_status); }; }; then | |
15135 | ac_cv_sizeof_short=`cat conftest.val` | |
15136 | else | |
15137 | echo "$as_me: program exited with status $ac_status" >&5 | |
15138 | echo "$as_me: failed program was:" >&5 | |
15139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15140 | ||
15141 | ( exit $ac_status ) | |
15142 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15143 | See \`config.log' for more details." >&5 | |
15144 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15145 | See \`config.log' for more details." >&2;} | |
15146 | { (exit 1); exit 1; }; } | |
15147 | fi | |
ac1cb8d3 | 15148 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15149 | fi |
15150 | fi | |
15151 | rm -f conftest.val | |
15152 | else | |
15153 | ac_cv_sizeof_short=0 | |
15154 | fi | |
15155 | fi | |
15156 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15157 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15158 | cat >>confdefs.h <<_ACEOF | |
15159 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15160 | _ACEOF | |
15161 | ||
15162 | ||
15163 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15164 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15165 | if test "${ac_cv_type_void_p+set}" = set; then | |
15166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15167 | else | |
15168 | cat >conftest.$ac_ext <<_ACEOF | |
15169 | /* confdefs.h. */ | |
15170 | _ACEOF | |
15171 | cat confdefs.h >>conftest.$ac_ext | |
15172 | cat >>conftest.$ac_ext <<_ACEOF | |
15173 | /* end confdefs.h. */ | |
15174 | $ac_includes_default | |
15175 | int | |
15176 | main () | |
15177 | { | |
15178 | if ((void * *) 0) | |
15179 | return 0; | |
15180 | if (sizeof (void *)) | |
15181 | return 0; | |
15182 | ; | |
15183 | return 0; | |
15184 | } | |
15185 | _ACEOF | |
15186 | rm -f conftest.$ac_objext | |
15187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15188 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15189 | ac_status=$? |
ac1cb8d3 VS |
15190 | grep -v '^ *+' conftest.er1 >conftest.err |
15191 | rm -f conftest.er1 | |
15192 | cat conftest.err >&5 | |
a848cd7e SC |
15193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15194 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15195 | { ac_try='test -z "$ac_c_werror_flag" |
15196 | || test ! -s conftest.err' | |
15197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15198 | (eval $ac_try) 2>&5 | |
15199 | ac_status=$? | |
15200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15201 | (exit $ac_status); }; } && | |
15202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15204 | (eval $ac_try) 2>&5 | |
15205 | ac_status=$? | |
15206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15207 | (exit $ac_status); }; }; then | |
15208 | ac_cv_type_void_p=yes | |
15209 | else | |
15210 | echo "$as_me: failed program was:" >&5 | |
15211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15212 | ||
15213 | ac_cv_type_void_p=no | |
15214 | fi | |
ac1cb8d3 | 15215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15216 | fi |
15217 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15218 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15219 | ||
15220 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15221 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15222 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15224 | else | |
15225 | if test "$ac_cv_type_void_p" = yes; then | |
15226 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15227 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15228 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15229 | # This bug is HP SR number 8606223364. | |
15230 | if test "$cross_compiling" = yes; then | |
15231 | # Depending upon the size, compute the lo and hi bounds. | |
15232 | cat >conftest.$ac_ext <<_ACEOF | |
15233 | /* confdefs.h. */ | |
15234 | _ACEOF | |
15235 | cat confdefs.h >>conftest.$ac_ext | |
15236 | cat >>conftest.$ac_ext <<_ACEOF | |
15237 | /* end confdefs.h. */ | |
15238 | $ac_includes_default | |
15239 | int | |
15240 | main () | |
15241 | { | |
15242 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15243 | test_array [0] = 0 | |
15244 | ||
15245 | ; | |
15246 | return 0; | |
15247 | } | |
15248 | _ACEOF | |
15249 | rm -f conftest.$ac_objext | |
15250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15252 | ac_status=$? |
ac1cb8d3 VS |
15253 | grep -v '^ *+' conftest.er1 >conftest.err |
15254 | rm -f conftest.er1 | |
15255 | cat conftest.err >&5 | |
a848cd7e SC |
15256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15257 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15258 | { ac_try='test -z "$ac_c_werror_flag" |
15259 | || test ! -s conftest.err' | |
15260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15261 | (eval $ac_try) 2>&5 | |
15262 | ac_status=$? | |
15263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15264 | (exit $ac_status); }; } && | |
15265 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15267 | (eval $ac_try) 2>&5 | |
15268 | ac_status=$? | |
15269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15270 | (exit $ac_status); }; }; then | |
15271 | ac_lo=0 ac_mid=0 | |
15272 | while :; do | |
15273 | cat >conftest.$ac_ext <<_ACEOF | |
15274 | /* confdefs.h. */ | |
15275 | _ACEOF | |
15276 | cat confdefs.h >>conftest.$ac_ext | |
15277 | cat >>conftest.$ac_ext <<_ACEOF | |
15278 | /* end confdefs.h. */ | |
15279 | $ac_includes_default | |
15280 | int | |
15281 | main () | |
15282 | { | |
15283 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15284 | test_array [0] = 0 | |
15285 | ||
15286 | ; | |
15287 | return 0; | |
15288 | } | |
15289 | _ACEOF | |
15290 | rm -f conftest.$ac_objext | |
15291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15292 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15293 | ac_status=$? |
ac1cb8d3 VS |
15294 | grep -v '^ *+' conftest.er1 >conftest.err |
15295 | rm -f conftest.er1 | |
15296 | cat conftest.err >&5 | |
a848cd7e SC |
15297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15298 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15299 | { ac_try='test -z "$ac_c_werror_flag" |
15300 | || test ! -s conftest.err' | |
15301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15302 | (eval $ac_try) 2>&5 | |
15303 | ac_status=$? | |
15304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15305 | (exit $ac_status); }; } && | |
15306 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15308 | (eval $ac_try) 2>&5 | |
15309 | ac_status=$? | |
15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15311 | (exit $ac_status); }; }; then | |
15312 | ac_hi=$ac_mid; break | |
15313 | else | |
15314 | echo "$as_me: failed program was:" >&5 | |
15315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15316 | ||
15317 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15318 | if test $ac_lo -le $ac_mid; then |
15319 | ac_lo= ac_hi= | |
15320 | break | |
15321 | fi | |
15322 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15323 | fi |
ac1cb8d3 | 15324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15325 | done |
15326 | else | |
15327 | echo "$as_me: failed program was:" >&5 | |
15328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15329 | ||
15330 | cat >conftest.$ac_ext <<_ACEOF | |
15331 | /* confdefs.h. */ | |
15332 | _ACEOF | |
15333 | cat confdefs.h >>conftest.$ac_ext | |
15334 | cat >>conftest.$ac_ext <<_ACEOF | |
15335 | /* end confdefs.h. */ | |
15336 | $ac_includes_default | |
15337 | int | |
15338 | main () | |
15339 | { | |
15340 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15341 | test_array [0] = 0 | |
15342 | ||
15343 | ; | |
15344 | return 0; | |
15345 | } | |
15346 | _ACEOF | |
15347 | rm -f conftest.$ac_objext | |
15348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15349 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15350 | ac_status=$? |
ac1cb8d3 VS |
15351 | grep -v '^ *+' conftest.er1 >conftest.err |
15352 | rm -f conftest.er1 | |
15353 | cat conftest.err >&5 | |
a848cd7e SC |
15354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15355 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15356 | { ac_try='test -z "$ac_c_werror_flag" |
15357 | || test ! -s conftest.err' | |
15358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15359 | (eval $ac_try) 2>&5 | |
15360 | ac_status=$? | |
15361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15362 | (exit $ac_status); }; } && | |
15363 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15365 | (eval $ac_try) 2>&5 | |
15366 | ac_status=$? | |
15367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15368 | (exit $ac_status); }; }; then | |
15369 | ac_hi=-1 ac_mid=-1 | |
15370 | while :; do | |
15371 | cat >conftest.$ac_ext <<_ACEOF | |
15372 | /* confdefs.h. */ | |
15373 | _ACEOF | |
15374 | cat confdefs.h >>conftest.$ac_ext | |
15375 | cat >>conftest.$ac_ext <<_ACEOF | |
15376 | /* end confdefs.h. */ | |
15377 | $ac_includes_default | |
15378 | int | |
15379 | main () | |
15380 | { | |
15381 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15382 | test_array [0] = 0 | |
15383 | ||
15384 | ; | |
15385 | return 0; | |
15386 | } | |
15387 | _ACEOF | |
15388 | rm -f conftest.$ac_objext | |
15389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15391 | ac_status=$? |
ac1cb8d3 VS |
15392 | grep -v '^ *+' conftest.er1 >conftest.err |
15393 | rm -f conftest.er1 | |
15394 | cat conftest.err >&5 | |
a848cd7e SC |
15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15396 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15397 | { ac_try='test -z "$ac_c_werror_flag" |
15398 | || test ! -s conftest.err' | |
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); }; } && | |
15404 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15406 | (eval $ac_try) 2>&5 | |
15407 | ac_status=$? | |
15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15409 | (exit $ac_status); }; }; then | |
15410 | ac_lo=$ac_mid; break | |
15411 | else | |
15412 | echo "$as_me: failed program was:" >&5 | |
15413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15414 | ||
15415 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15416 | if test $ac_mid -le $ac_hi; then |
15417 | ac_lo= ac_hi= | |
15418 | break | |
15419 | fi | |
15420 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15421 | fi |
ac1cb8d3 | 15422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15423 | done |
15424 | else | |
15425 | echo "$as_me: failed program was:" >&5 | |
15426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15427 | ||
15428 | ac_lo= ac_hi= | |
15429 | fi | |
ac1cb8d3 | 15430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15431 | fi |
ac1cb8d3 | 15432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15433 | # Binary search between lo and hi bounds. |
15434 | while test "x$ac_lo" != "x$ac_hi"; do | |
15435 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15436 | cat >conftest.$ac_ext <<_ACEOF | |
15437 | /* confdefs.h. */ | |
15438 | _ACEOF | |
15439 | cat confdefs.h >>conftest.$ac_ext | |
15440 | cat >>conftest.$ac_ext <<_ACEOF | |
15441 | /* end confdefs.h. */ | |
15442 | $ac_includes_default | |
15443 | int | |
15444 | main () | |
15445 | { | |
15446 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15447 | test_array [0] = 0 | |
15448 | ||
15449 | ; | |
15450 | return 0; | |
15451 | } | |
15452 | _ACEOF | |
15453 | rm -f conftest.$ac_objext | |
15454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15455 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15456 | ac_status=$? |
ac1cb8d3 VS |
15457 | grep -v '^ *+' conftest.er1 >conftest.err |
15458 | rm -f conftest.er1 | |
15459 | cat conftest.err >&5 | |
a848cd7e SC |
15460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15461 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15462 | { ac_try='test -z "$ac_c_werror_flag" |
15463 | || test ! -s conftest.err' | |
15464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15465 | (eval $ac_try) 2>&5 | |
15466 | ac_status=$? | |
15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15468 | (exit $ac_status); }; } && | |
15469 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15471 | (eval $ac_try) 2>&5 | |
15472 | ac_status=$? | |
15473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15474 | (exit $ac_status); }; }; then | |
15475 | ac_hi=$ac_mid | |
15476 | else | |
15477 | echo "$as_me: failed program was:" >&5 | |
15478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15479 | ||
15480 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15481 | fi | |
ac1cb8d3 | 15482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15483 | done |
15484 | case $ac_lo in | |
15485 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15486 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15487 | See \`config.log' for more details." >&5 | |
15488 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15489 | See \`config.log' for more details." >&2;} | |
15490 | { (exit 1); exit 1; }; } ;; | |
15491 | esac | |
15492 | else | |
15493 | if test "$cross_compiling" = yes; then | |
15494 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15495 | See \`config.log' for more details." >&5 | |
15496 | echo "$as_me: error: cannot run test program while cross compiling | |
15497 | See \`config.log' for more details." >&2;} | |
15498 | { (exit 1); exit 1; }; } | |
15499 | else | |
15500 | cat >conftest.$ac_ext <<_ACEOF | |
15501 | /* confdefs.h. */ | |
15502 | _ACEOF | |
15503 | cat confdefs.h >>conftest.$ac_ext | |
15504 | cat >>conftest.$ac_ext <<_ACEOF | |
15505 | /* end confdefs.h. */ | |
15506 | $ac_includes_default | |
15507 | long longval () { return (long) (sizeof (void *)); } | |
15508 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15509 | #include <stdio.h> | |
15510 | #include <stdlib.h> | |
15511 | int | |
15512 | main () | |
15513 | { | |
15514 | ||
15515 | FILE *f = fopen ("conftest.val", "w"); | |
15516 | if (! f) | |
15517 | exit (1); | |
15518 | if (((long) (sizeof (void *))) < 0) | |
15519 | { | |
15520 | long i = longval (); | |
15521 | if (i != ((long) (sizeof (void *)))) | |
15522 | exit (1); | |
15523 | fprintf (f, "%ld\n", i); | |
15524 | } | |
15525 | else | |
15526 | { | |
15527 | unsigned long i = ulongval (); | |
15528 | if (i != ((long) (sizeof (void *)))) | |
15529 | exit (1); | |
15530 | fprintf (f, "%lu\n", i); | |
15531 | } | |
15532 | exit (ferror (f) || fclose (f) != 0); | |
15533 | ||
15534 | ; | |
15535 | return 0; | |
15536 | } | |
15537 | _ACEOF | |
15538 | rm -f conftest$ac_exeext | |
15539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15540 | (eval $ac_link) 2>&5 | |
15541 | ac_status=$? | |
15542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15545 | (eval $ac_try) 2>&5 | |
15546 | ac_status=$? | |
15547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15548 | (exit $ac_status); }; }; then | |
15549 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15550 | else | |
15551 | echo "$as_me: program exited with status $ac_status" >&5 | |
15552 | echo "$as_me: failed program was:" >&5 | |
15553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15554 | ||
15555 | ( exit $ac_status ) | |
15556 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15557 | See \`config.log' for more details." >&5 | |
15558 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15559 | See \`config.log' for more details." >&2;} | |
15560 | { (exit 1); exit 1; }; } | |
15561 | fi | |
ac1cb8d3 | 15562 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15563 | fi |
15564 | fi | |
15565 | rm -f conftest.val | |
15566 | else | |
15567 | ac_cv_sizeof_void_p=0 | |
15568 | fi | |
15569 | fi | |
15570 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15571 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15572 | cat >>confdefs.h <<_ACEOF | |
15573 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15574 | _ACEOF | |
15575 | ||
15576 | ||
15577 | echo "$as_me:$LINENO: checking for int" >&5 | |
15578 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15579 | if test "${ac_cv_type_int+set}" = set; then | |
15580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15581 | else | |
15582 | cat >conftest.$ac_ext <<_ACEOF | |
15583 | /* confdefs.h. */ | |
15584 | _ACEOF | |
15585 | cat confdefs.h >>conftest.$ac_ext | |
15586 | cat >>conftest.$ac_ext <<_ACEOF | |
15587 | /* end confdefs.h. */ | |
15588 | $ac_includes_default | |
15589 | int | |
15590 | main () | |
15591 | { | |
15592 | if ((int *) 0) | |
15593 | return 0; | |
15594 | if (sizeof (int)) | |
15595 | return 0; | |
15596 | ; | |
15597 | return 0; | |
15598 | } | |
15599 | _ACEOF | |
15600 | rm -f conftest.$ac_objext | |
15601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15602 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15603 | ac_status=$? |
ac1cb8d3 VS |
15604 | grep -v '^ *+' conftest.er1 >conftest.err |
15605 | rm -f conftest.er1 | |
15606 | cat conftest.err >&5 | |
a848cd7e SC |
15607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15608 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15609 | { ac_try='test -z "$ac_c_werror_flag" |
15610 | || test ! -s conftest.err' | |
15611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15612 | (eval $ac_try) 2>&5 | |
15613 | ac_status=$? | |
15614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15615 | (exit $ac_status); }; } && | |
15616 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15618 | (eval $ac_try) 2>&5 | |
15619 | ac_status=$? | |
15620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15621 | (exit $ac_status); }; }; then | |
15622 | ac_cv_type_int=yes | |
15623 | else | |
15624 | echo "$as_me: failed program was:" >&5 | |
15625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15626 | ||
15627 | ac_cv_type_int=no | |
15628 | fi | |
ac1cb8d3 | 15629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15630 | fi |
15631 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15632 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15633 | ||
15634 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15635 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15636 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15638 | else | |
15639 | if test "$ac_cv_type_int" = yes; then | |
15640 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15641 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15642 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15643 | # This bug is HP SR number 8606223364. | |
15644 | if test "$cross_compiling" = yes; then | |
15645 | # Depending upon the size, compute the lo and hi bounds. | |
15646 | cat >conftest.$ac_ext <<_ACEOF | |
15647 | /* confdefs.h. */ | |
15648 | _ACEOF | |
15649 | cat confdefs.h >>conftest.$ac_ext | |
15650 | cat >>conftest.$ac_ext <<_ACEOF | |
15651 | /* end confdefs.h. */ | |
15652 | $ac_includes_default | |
15653 | int | |
15654 | main () | |
15655 | { | |
15656 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15657 | test_array [0] = 0 | |
15658 | ||
15659 | ; | |
15660 | return 0; | |
15661 | } | |
15662 | _ACEOF | |
15663 | rm -f conftest.$ac_objext | |
15664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15665 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15666 | ac_status=$? |
ac1cb8d3 VS |
15667 | grep -v '^ *+' conftest.er1 >conftest.err |
15668 | rm -f conftest.er1 | |
15669 | cat conftest.err >&5 | |
a848cd7e SC |
15670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15671 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15672 | { ac_try='test -z "$ac_c_werror_flag" |
15673 | || test ! -s conftest.err' | |
15674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15675 | (eval $ac_try) 2>&5 | |
15676 | ac_status=$? | |
15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15678 | (exit $ac_status); }; } && | |
15679 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15681 | (eval $ac_try) 2>&5 | |
15682 | ac_status=$? | |
15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15684 | (exit $ac_status); }; }; then | |
15685 | ac_lo=0 ac_mid=0 | |
15686 | while :; do | |
15687 | cat >conftest.$ac_ext <<_ACEOF | |
15688 | /* confdefs.h. */ | |
15689 | _ACEOF | |
15690 | cat confdefs.h >>conftest.$ac_ext | |
15691 | cat >>conftest.$ac_ext <<_ACEOF | |
15692 | /* end confdefs.h. */ | |
15693 | $ac_includes_default | |
15694 | int | |
15695 | main () | |
15696 | { | |
15697 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15698 | test_array [0] = 0 | |
15699 | ||
15700 | ; | |
15701 | return 0; | |
15702 | } | |
15703 | _ACEOF | |
15704 | rm -f conftest.$ac_objext | |
15705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15706 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15707 | ac_status=$? |
ac1cb8d3 VS |
15708 | grep -v '^ *+' conftest.er1 >conftest.err |
15709 | rm -f conftest.er1 | |
15710 | cat conftest.err >&5 | |
a848cd7e SC |
15711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15712 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15713 | { ac_try='test -z "$ac_c_werror_flag" |
15714 | || test ! -s conftest.err' | |
15715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15716 | (eval $ac_try) 2>&5 | |
15717 | ac_status=$? | |
15718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15719 | (exit $ac_status); }; } && | |
15720 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15722 | (eval $ac_try) 2>&5 | |
15723 | ac_status=$? | |
15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15725 | (exit $ac_status); }; }; then | |
15726 | ac_hi=$ac_mid; break | |
15727 | else | |
15728 | echo "$as_me: failed program was:" >&5 | |
15729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15730 | ||
15731 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15732 | if test $ac_lo -le $ac_mid; then |
15733 | ac_lo= ac_hi= | |
15734 | break | |
15735 | fi | |
15736 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15737 | fi |
ac1cb8d3 | 15738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15739 | done |
15740 | else | |
15741 | echo "$as_me: failed program was:" >&5 | |
15742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15743 | ||
15744 | cat >conftest.$ac_ext <<_ACEOF | |
15745 | /* confdefs.h. */ | |
15746 | _ACEOF | |
15747 | cat confdefs.h >>conftest.$ac_ext | |
15748 | cat >>conftest.$ac_ext <<_ACEOF | |
15749 | /* end confdefs.h. */ | |
15750 | $ac_includes_default | |
15751 | int | |
15752 | main () | |
15753 | { | |
15754 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15755 | test_array [0] = 0 | |
15756 | ||
15757 | ; | |
15758 | return 0; | |
15759 | } | |
15760 | _ACEOF | |
15761 | rm -f conftest.$ac_objext | |
15762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15763 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15764 | ac_status=$? |
ac1cb8d3 VS |
15765 | grep -v '^ *+' conftest.er1 >conftest.err |
15766 | rm -f conftest.er1 | |
15767 | cat conftest.err >&5 | |
a848cd7e SC |
15768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15769 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15770 | { ac_try='test -z "$ac_c_werror_flag" |
15771 | || test ! -s conftest.err' | |
15772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15773 | (eval $ac_try) 2>&5 | |
15774 | ac_status=$? | |
15775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15776 | (exit $ac_status); }; } && | |
15777 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15779 | (eval $ac_try) 2>&5 | |
15780 | ac_status=$? | |
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15782 | (exit $ac_status); }; }; then | |
15783 | ac_hi=-1 ac_mid=-1 | |
15784 | while :; do | |
15785 | cat >conftest.$ac_ext <<_ACEOF | |
15786 | /* confdefs.h. */ | |
15787 | _ACEOF | |
15788 | cat confdefs.h >>conftest.$ac_ext | |
15789 | cat >>conftest.$ac_ext <<_ACEOF | |
15790 | /* end confdefs.h. */ | |
15791 | $ac_includes_default | |
15792 | int | |
15793 | main () | |
15794 | { | |
15795 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15796 | test_array [0] = 0 | |
15797 | ||
15798 | ; | |
15799 | return 0; | |
15800 | } | |
15801 | _ACEOF | |
15802 | rm -f conftest.$ac_objext | |
15803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15804 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15805 | ac_status=$? |
ac1cb8d3 VS |
15806 | grep -v '^ *+' conftest.er1 >conftest.err |
15807 | rm -f conftest.er1 | |
15808 | cat conftest.err >&5 | |
a848cd7e SC |
15809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15810 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15811 | { ac_try='test -z "$ac_c_werror_flag" |
15812 | || test ! -s conftest.err' | |
15813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15814 | (eval $ac_try) 2>&5 | |
15815 | ac_status=$? | |
15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15817 | (exit $ac_status); }; } && | |
15818 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15820 | (eval $ac_try) 2>&5 | |
15821 | ac_status=$? | |
15822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15823 | (exit $ac_status); }; }; then | |
15824 | ac_lo=$ac_mid; break | |
15825 | else | |
15826 | echo "$as_me: failed program was:" >&5 | |
15827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15828 | ||
15829 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15830 | if test $ac_mid -le $ac_hi; then |
15831 | ac_lo= ac_hi= | |
15832 | break | |
15833 | fi | |
15834 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15835 | fi |
ac1cb8d3 | 15836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15837 | done |
15838 | else | |
15839 | echo "$as_me: failed program was:" >&5 | |
15840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15841 | ||
15842 | ac_lo= ac_hi= | |
15843 | fi | |
ac1cb8d3 | 15844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15845 | fi |
ac1cb8d3 | 15846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15847 | # Binary search between lo and hi bounds. |
15848 | while test "x$ac_lo" != "x$ac_hi"; do | |
15849 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15850 | cat >conftest.$ac_ext <<_ACEOF | |
15851 | /* confdefs.h. */ | |
15852 | _ACEOF | |
15853 | cat confdefs.h >>conftest.$ac_ext | |
15854 | cat >>conftest.$ac_ext <<_ACEOF | |
15855 | /* end confdefs.h. */ | |
15856 | $ac_includes_default | |
15857 | int | |
15858 | main () | |
15859 | { | |
15860 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15861 | test_array [0] = 0 | |
15862 | ||
15863 | ; | |
15864 | return 0; | |
15865 | } | |
15866 | _ACEOF | |
15867 | rm -f conftest.$ac_objext | |
15868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15869 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15870 | ac_status=$? |
ac1cb8d3 VS |
15871 | grep -v '^ *+' conftest.er1 >conftest.err |
15872 | rm -f conftest.er1 | |
15873 | cat conftest.err >&5 | |
a848cd7e SC |
15874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15875 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15876 | { ac_try='test -z "$ac_c_werror_flag" |
15877 | || test ! -s conftest.err' | |
15878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15879 | (eval $ac_try) 2>&5 | |
15880 | ac_status=$? | |
15881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15882 | (exit $ac_status); }; } && | |
15883 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15885 | (eval $ac_try) 2>&5 | |
15886 | ac_status=$? | |
15887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15888 | (exit $ac_status); }; }; then | |
15889 | ac_hi=$ac_mid | |
15890 | else | |
15891 | echo "$as_me: failed program was:" >&5 | |
15892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15893 | ||
15894 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15895 | fi | |
ac1cb8d3 | 15896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15897 | done |
15898 | case $ac_lo in | |
15899 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15900 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15901 | See \`config.log' for more details." >&5 | |
15902 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15903 | See \`config.log' for more details." >&2;} | |
15904 | { (exit 1); exit 1; }; } ;; | |
15905 | esac | |
15906 | else | |
15907 | if test "$cross_compiling" = yes; then | |
15908 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15909 | See \`config.log' for more details." >&5 | |
15910 | echo "$as_me: error: cannot run test program while cross compiling | |
15911 | See \`config.log' for more details." >&2;} | |
15912 | { (exit 1); exit 1; }; } | |
15913 | else | |
15914 | cat >conftest.$ac_ext <<_ACEOF | |
15915 | /* confdefs.h. */ | |
15916 | _ACEOF | |
15917 | cat confdefs.h >>conftest.$ac_ext | |
15918 | cat >>conftest.$ac_ext <<_ACEOF | |
15919 | /* end confdefs.h. */ | |
15920 | $ac_includes_default | |
15921 | long longval () { return (long) (sizeof (int)); } | |
15922 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15923 | #include <stdio.h> | |
15924 | #include <stdlib.h> | |
15925 | int | |
15926 | main () | |
15927 | { | |
15928 | ||
15929 | FILE *f = fopen ("conftest.val", "w"); | |
15930 | if (! f) | |
15931 | exit (1); | |
15932 | if (((long) (sizeof (int))) < 0) | |
15933 | { | |
15934 | long i = longval (); | |
15935 | if (i != ((long) (sizeof (int)))) | |
15936 | exit (1); | |
15937 | fprintf (f, "%ld\n", i); | |
15938 | } | |
15939 | else | |
15940 | { | |
15941 | unsigned long i = ulongval (); | |
15942 | if (i != ((long) (sizeof (int)))) | |
15943 | exit (1); | |
15944 | fprintf (f, "%lu\n", i); | |
15945 | } | |
15946 | exit (ferror (f) || fclose (f) != 0); | |
15947 | ||
15948 | ; | |
15949 | return 0; | |
15950 | } | |
15951 | _ACEOF | |
15952 | rm -f conftest$ac_exeext | |
15953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15954 | (eval $ac_link) 2>&5 | |
15955 | ac_status=$? | |
15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15957 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15959 | (eval $ac_try) 2>&5 | |
15960 | ac_status=$? | |
15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15962 | (exit $ac_status); }; }; then | |
15963 | ac_cv_sizeof_int=`cat conftest.val` | |
15964 | else | |
15965 | echo "$as_me: program exited with status $ac_status" >&5 | |
15966 | echo "$as_me: failed program was:" >&5 | |
15967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15968 | ||
15969 | ( exit $ac_status ) | |
15970 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15971 | See \`config.log' for more details." >&5 | |
15972 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15973 | See \`config.log' for more details." >&2;} | |
15974 | { (exit 1); exit 1; }; } | |
15975 | fi | |
ac1cb8d3 | 15976 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15977 | fi |
15978 | fi | |
15979 | rm -f conftest.val | |
15980 | else | |
15981 | ac_cv_sizeof_int=0 | |
15982 | fi | |
15983 | fi | |
15984 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
15985 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15986 | cat >>confdefs.h <<_ACEOF | |
15987 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15988 | _ACEOF | |
15989 | ||
15990 | ||
15991 | echo "$as_me:$LINENO: checking for long" >&5 | |
15992 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15993 | if test "${ac_cv_type_long+set}" = set; then | |
15994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15995 | else | |
15996 | cat >conftest.$ac_ext <<_ACEOF | |
15997 | /* confdefs.h. */ | |
15998 | _ACEOF | |
15999 | cat confdefs.h >>conftest.$ac_ext | |
16000 | cat >>conftest.$ac_ext <<_ACEOF | |
16001 | /* end confdefs.h. */ | |
16002 | $ac_includes_default | |
16003 | int | |
16004 | main () | |
16005 | { | |
16006 | if ((long *) 0) | |
16007 | return 0; | |
16008 | if (sizeof (long)) | |
16009 | return 0; | |
16010 | ; | |
16011 | return 0; | |
16012 | } | |
16013 | _ACEOF | |
16014 | rm -f conftest.$ac_objext | |
16015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16016 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16017 | ac_status=$? |
ac1cb8d3 VS |
16018 | grep -v '^ *+' conftest.er1 >conftest.err |
16019 | rm -f conftest.er1 | |
16020 | cat conftest.err >&5 | |
a848cd7e SC |
16021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16022 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16023 | { ac_try='test -z "$ac_c_werror_flag" |
16024 | || test ! -s conftest.err' | |
16025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16026 | (eval $ac_try) 2>&5 | |
16027 | ac_status=$? | |
16028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16029 | (exit $ac_status); }; } && | |
16030 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16032 | (eval $ac_try) 2>&5 | |
16033 | ac_status=$? | |
16034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16035 | (exit $ac_status); }; }; then | |
16036 | ac_cv_type_long=yes | |
16037 | else | |
16038 | echo "$as_me: failed program was:" >&5 | |
16039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16040 | ||
16041 | ac_cv_type_long=no | |
16042 | fi | |
ac1cb8d3 | 16043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16044 | fi |
16045 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16046 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16047 | ||
16048 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16049 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16050 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16052 | else | |
16053 | if test "$ac_cv_type_long" = yes; then | |
16054 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16055 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16056 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16057 | # This bug is HP SR number 8606223364. | |
16058 | if test "$cross_compiling" = yes; then | |
16059 | # Depending upon the size, compute the lo and hi bounds. | |
16060 | cat >conftest.$ac_ext <<_ACEOF | |
16061 | /* confdefs.h. */ | |
16062 | _ACEOF | |
16063 | cat confdefs.h >>conftest.$ac_ext | |
16064 | cat >>conftest.$ac_ext <<_ACEOF | |
16065 | /* end confdefs.h. */ | |
16066 | $ac_includes_default | |
16067 | int | |
16068 | main () | |
16069 | { | |
16070 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16071 | test_array [0] = 0 | |
16072 | ||
16073 | ; | |
16074 | return 0; | |
16075 | } | |
16076 | _ACEOF | |
16077 | rm -f conftest.$ac_objext | |
16078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16079 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16080 | ac_status=$? |
ac1cb8d3 VS |
16081 | grep -v '^ *+' conftest.er1 >conftest.err |
16082 | rm -f conftest.er1 | |
16083 | cat conftest.err >&5 | |
a848cd7e SC |
16084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16085 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16086 | { ac_try='test -z "$ac_c_werror_flag" |
16087 | || test ! -s conftest.err' | |
16088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16089 | (eval $ac_try) 2>&5 | |
16090 | ac_status=$? | |
16091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16092 | (exit $ac_status); }; } && | |
16093 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16095 | (eval $ac_try) 2>&5 | |
16096 | ac_status=$? | |
16097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16098 | (exit $ac_status); }; }; then | |
16099 | ac_lo=0 ac_mid=0 | |
16100 | while :; do | |
16101 | cat >conftest.$ac_ext <<_ACEOF | |
16102 | /* confdefs.h. */ | |
16103 | _ACEOF | |
16104 | cat confdefs.h >>conftest.$ac_ext | |
16105 | cat >>conftest.$ac_ext <<_ACEOF | |
16106 | /* end confdefs.h. */ | |
16107 | $ac_includes_default | |
16108 | int | |
16109 | main () | |
16110 | { | |
16111 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16112 | test_array [0] = 0 | |
16113 | ||
16114 | ; | |
16115 | return 0; | |
16116 | } | |
16117 | _ACEOF | |
16118 | rm -f conftest.$ac_objext | |
16119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16120 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16121 | ac_status=$? |
ac1cb8d3 VS |
16122 | grep -v '^ *+' conftest.er1 >conftest.err |
16123 | rm -f conftest.er1 | |
16124 | cat conftest.err >&5 | |
a848cd7e SC |
16125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16126 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16127 | { ac_try='test -z "$ac_c_werror_flag" |
16128 | || test ! -s conftest.err' | |
16129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16130 | (eval $ac_try) 2>&5 | |
16131 | ac_status=$? | |
16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16133 | (exit $ac_status); }; } && | |
16134 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16136 | (eval $ac_try) 2>&5 | |
16137 | ac_status=$? | |
16138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16139 | (exit $ac_status); }; }; then | |
16140 | ac_hi=$ac_mid; break | |
16141 | else | |
16142 | echo "$as_me: failed program was:" >&5 | |
16143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16144 | ||
16145 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16146 | if test $ac_lo -le $ac_mid; then |
16147 | ac_lo= ac_hi= | |
16148 | break | |
16149 | fi | |
16150 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16151 | fi |
ac1cb8d3 | 16152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16153 | done |
16154 | else | |
16155 | echo "$as_me: failed program was:" >&5 | |
16156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16157 | ||
16158 | cat >conftest.$ac_ext <<_ACEOF | |
16159 | /* confdefs.h. */ | |
16160 | _ACEOF | |
16161 | cat confdefs.h >>conftest.$ac_ext | |
16162 | cat >>conftest.$ac_ext <<_ACEOF | |
16163 | /* end confdefs.h. */ | |
16164 | $ac_includes_default | |
16165 | int | |
16166 | main () | |
16167 | { | |
16168 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16169 | test_array [0] = 0 | |
16170 | ||
16171 | ; | |
16172 | return 0; | |
16173 | } | |
16174 | _ACEOF | |
16175 | rm -f conftest.$ac_objext | |
16176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16177 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16178 | ac_status=$? |
ac1cb8d3 VS |
16179 | grep -v '^ *+' conftest.er1 >conftest.err |
16180 | rm -f conftest.er1 | |
16181 | cat conftest.err >&5 | |
a848cd7e SC |
16182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16183 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16184 | { ac_try='test -z "$ac_c_werror_flag" |
16185 | || test ! -s conftest.err' | |
16186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16187 | (eval $ac_try) 2>&5 | |
16188 | ac_status=$? | |
16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16190 | (exit $ac_status); }; } && | |
16191 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16193 | (eval $ac_try) 2>&5 | |
16194 | ac_status=$? | |
16195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16196 | (exit $ac_status); }; }; then | |
16197 | ac_hi=-1 ac_mid=-1 | |
16198 | while :; do | |
16199 | cat >conftest.$ac_ext <<_ACEOF | |
16200 | /* confdefs.h. */ | |
16201 | _ACEOF | |
16202 | cat confdefs.h >>conftest.$ac_ext | |
16203 | cat >>conftest.$ac_ext <<_ACEOF | |
16204 | /* end confdefs.h. */ | |
16205 | $ac_includes_default | |
16206 | int | |
16207 | main () | |
16208 | { | |
16209 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16210 | test_array [0] = 0 | |
16211 | ||
16212 | ; | |
16213 | return 0; | |
16214 | } | |
16215 | _ACEOF | |
16216 | rm -f conftest.$ac_objext | |
16217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16218 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16219 | ac_status=$? |
ac1cb8d3 VS |
16220 | grep -v '^ *+' conftest.er1 >conftest.err |
16221 | rm -f conftest.er1 | |
16222 | cat conftest.err >&5 | |
a848cd7e SC |
16223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16224 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16225 | { ac_try='test -z "$ac_c_werror_flag" |
16226 | || test ! -s conftest.err' | |
16227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16228 | (eval $ac_try) 2>&5 | |
16229 | ac_status=$? | |
16230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16231 | (exit $ac_status); }; } && | |
16232 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16234 | (eval $ac_try) 2>&5 | |
16235 | ac_status=$? | |
16236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16237 | (exit $ac_status); }; }; then | |
16238 | ac_lo=$ac_mid; break | |
16239 | else | |
16240 | echo "$as_me: failed program was:" >&5 | |
16241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16242 | ||
16243 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16244 | if test $ac_mid -le $ac_hi; then |
16245 | ac_lo= ac_hi= | |
16246 | break | |
16247 | fi | |
16248 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16249 | fi |
ac1cb8d3 | 16250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16251 | done |
16252 | else | |
16253 | echo "$as_me: failed program was:" >&5 | |
16254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16255 | ||
16256 | ac_lo= ac_hi= | |
16257 | fi | |
ac1cb8d3 | 16258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16259 | fi |
ac1cb8d3 | 16260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16261 | # Binary search between lo and hi bounds. |
16262 | while test "x$ac_lo" != "x$ac_hi"; do | |
16263 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16264 | cat >conftest.$ac_ext <<_ACEOF | |
16265 | /* confdefs.h. */ | |
16266 | _ACEOF | |
16267 | cat confdefs.h >>conftest.$ac_ext | |
16268 | cat >>conftest.$ac_ext <<_ACEOF | |
16269 | /* end confdefs.h. */ | |
16270 | $ac_includes_default | |
16271 | int | |
16272 | main () | |
16273 | { | |
16274 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16275 | test_array [0] = 0 | |
16276 | ||
16277 | ; | |
16278 | return 0; | |
16279 | } | |
16280 | _ACEOF | |
16281 | rm -f conftest.$ac_objext | |
16282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16283 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16284 | ac_status=$? |
ac1cb8d3 VS |
16285 | grep -v '^ *+' conftest.er1 >conftest.err |
16286 | rm -f conftest.er1 | |
16287 | cat conftest.err >&5 | |
a848cd7e SC |
16288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16289 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16290 | { ac_try='test -z "$ac_c_werror_flag" |
16291 | || test ! -s conftest.err' | |
16292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16293 | (eval $ac_try) 2>&5 | |
16294 | ac_status=$? | |
16295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16296 | (exit $ac_status); }; } && | |
16297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16299 | (eval $ac_try) 2>&5 | |
16300 | ac_status=$? | |
16301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16302 | (exit $ac_status); }; }; then | |
16303 | ac_hi=$ac_mid | |
16304 | else | |
16305 | echo "$as_me: failed program was:" >&5 | |
16306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16307 | ||
16308 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16309 | fi | |
ac1cb8d3 | 16310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16311 | done |
16312 | case $ac_lo in | |
16313 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16314 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16315 | See \`config.log' for more details." >&5 | |
16316 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16317 | See \`config.log' for more details." >&2;} | |
16318 | { (exit 1); exit 1; }; } ;; | |
16319 | esac | |
16320 | else | |
16321 | if test "$cross_compiling" = yes; then | |
16322 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16323 | See \`config.log' for more details." >&5 | |
16324 | echo "$as_me: error: cannot run test program while cross compiling | |
16325 | See \`config.log' for more details." >&2;} | |
16326 | { (exit 1); exit 1; }; } | |
16327 | else | |
16328 | cat >conftest.$ac_ext <<_ACEOF | |
16329 | /* confdefs.h. */ | |
16330 | _ACEOF | |
16331 | cat confdefs.h >>conftest.$ac_ext | |
16332 | cat >>conftest.$ac_ext <<_ACEOF | |
16333 | /* end confdefs.h. */ | |
16334 | $ac_includes_default | |
16335 | long longval () { return (long) (sizeof (long)); } | |
16336 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16337 | #include <stdio.h> | |
16338 | #include <stdlib.h> | |
16339 | int | |
16340 | main () | |
16341 | { | |
16342 | ||
16343 | FILE *f = fopen ("conftest.val", "w"); | |
16344 | if (! f) | |
16345 | exit (1); | |
16346 | if (((long) (sizeof (long))) < 0) | |
16347 | { | |
16348 | long i = longval (); | |
16349 | if (i != ((long) (sizeof (long)))) | |
16350 | exit (1); | |
16351 | fprintf (f, "%ld\n", i); | |
16352 | } | |
16353 | else | |
16354 | { | |
16355 | unsigned long i = ulongval (); | |
16356 | if (i != ((long) (sizeof (long)))) | |
16357 | exit (1); | |
16358 | fprintf (f, "%lu\n", i); | |
16359 | } | |
16360 | exit (ferror (f) || fclose (f) != 0); | |
16361 | ||
16362 | ; | |
16363 | return 0; | |
16364 | } | |
16365 | _ACEOF | |
16366 | rm -f conftest$ac_exeext | |
16367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16368 | (eval $ac_link) 2>&5 | |
16369 | ac_status=$? | |
16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16373 | (eval $ac_try) 2>&5 | |
16374 | ac_status=$? | |
16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16376 | (exit $ac_status); }; }; then | |
16377 | ac_cv_sizeof_long=`cat conftest.val` | |
16378 | else | |
16379 | echo "$as_me: program exited with status $ac_status" >&5 | |
16380 | echo "$as_me: failed program was:" >&5 | |
16381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16382 | ||
16383 | ( exit $ac_status ) | |
16384 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16385 | See \`config.log' for more details." >&5 | |
16386 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16387 | See \`config.log' for more details." >&2;} | |
16388 | { (exit 1); exit 1; }; } | |
16389 | fi | |
ac1cb8d3 | 16390 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16391 | fi |
16392 | fi | |
16393 | rm -f conftest.val | |
16394 | else | |
16395 | ac_cv_sizeof_long=0 | |
16396 | fi | |
16397 | fi | |
16398 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16399 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16400 | cat >>confdefs.h <<_ACEOF | |
16401 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16402 | _ACEOF | |
16403 | ||
16404 | ||
16405 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16406 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16407 | if test "${ac_cv_type_size_t+set}" = set; then | |
16408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16409 | else | |
16410 | cat >conftest.$ac_ext <<_ACEOF | |
16411 | /* confdefs.h. */ | |
16412 | _ACEOF | |
16413 | cat confdefs.h >>conftest.$ac_ext | |
16414 | cat >>conftest.$ac_ext <<_ACEOF | |
16415 | /* end confdefs.h. */ | |
16416 | $ac_includes_default | |
16417 | int | |
16418 | main () | |
16419 | { | |
16420 | if ((size_t *) 0) | |
16421 | return 0; | |
16422 | if (sizeof (size_t)) | |
16423 | return 0; | |
16424 | ; | |
16425 | return 0; | |
16426 | } | |
16427 | _ACEOF | |
16428 | rm -f conftest.$ac_objext | |
16429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16430 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16431 | ac_status=$? |
ac1cb8d3 VS |
16432 | grep -v '^ *+' conftest.er1 >conftest.err |
16433 | rm -f conftest.er1 | |
16434 | cat conftest.err >&5 | |
a848cd7e SC |
16435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16436 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16437 | { ac_try='test -z "$ac_c_werror_flag" |
16438 | || test ! -s conftest.err' | |
16439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16440 | (eval $ac_try) 2>&5 | |
16441 | ac_status=$? | |
16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16443 | (exit $ac_status); }; } && | |
16444 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16446 | (eval $ac_try) 2>&5 | |
16447 | ac_status=$? | |
16448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16449 | (exit $ac_status); }; }; then | |
16450 | ac_cv_type_size_t=yes | |
16451 | else | |
16452 | echo "$as_me: failed program was:" >&5 | |
16453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16454 | ||
16455 | ac_cv_type_size_t=no | |
16456 | fi | |
ac1cb8d3 | 16457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16458 | fi |
16459 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16460 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16461 | ||
16462 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16463 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16464 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16466 | else | |
16467 | if test "$ac_cv_type_size_t" = yes; then | |
16468 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16469 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16470 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16471 | # This bug is HP SR number 8606223364. | |
16472 | if test "$cross_compiling" = yes; then | |
16473 | # Depending upon the size, compute the lo and hi bounds. | |
16474 | cat >conftest.$ac_ext <<_ACEOF | |
16475 | /* confdefs.h. */ | |
16476 | _ACEOF | |
16477 | cat confdefs.h >>conftest.$ac_ext | |
16478 | cat >>conftest.$ac_ext <<_ACEOF | |
16479 | /* end confdefs.h. */ | |
16480 | $ac_includes_default | |
16481 | int | |
16482 | main () | |
16483 | { | |
16484 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16485 | test_array [0] = 0 | |
16486 | ||
16487 | ; | |
16488 | return 0; | |
16489 | } | |
16490 | _ACEOF | |
16491 | rm -f conftest.$ac_objext | |
16492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16493 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16494 | ac_status=$? |
ac1cb8d3 VS |
16495 | grep -v '^ *+' conftest.er1 >conftest.err |
16496 | rm -f conftest.er1 | |
16497 | cat conftest.err >&5 | |
a848cd7e SC |
16498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16499 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16500 | { ac_try='test -z "$ac_c_werror_flag" |
16501 | || test ! -s conftest.err' | |
16502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16503 | (eval $ac_try) 2>&5 | |
16504 | ac_status=$? | |
16505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16506 | (exit $ac_status); }; } && | |
16507 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16509 | (eval $ac_try) 2>&5 | |
16510 | ac_status=$? | |
16511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16512 | (exit $ac_status); }; }; then | |
16513 | ac_lo=0 ac_mid=0 | |
16514 | while :; do | |
16515 | cat >conftest.$ac_ext <<_ACEOF | |
16516 | /* confdefs.h. */ | |
16517 | _ACEOF | |
16518 | cat confdefs.h >>conftest.$ac_ext | |
16519 | cat >>conftest.$ac_ext <<_ACEOF | |
16520 | /* end confdefs.h. */ | |
16521 | $ac_includes_default | |
16522 | int | |
16523 | main () | |
16524 | { | |
16525 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16526 | test_array [0] = 0 | |
16527 | ||
16528 | ; | |
16529 | return 0; | |
16530 | } | |
16531 | _ACEOF | |
16532 | rm -f conftest.$ac_objext | |
16533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16534 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16535 | ac_status=$? |
ac1cb8d3 VS |
16536 | grep -v '^ *+' conftest.er1 >conftest.err |
16537 | rm -f conftest.er1 | |
16538 | cat conftest.err >&5 | |
a848cd7e SC |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16540 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16541 | { ac_try='test -z "$ac_c_werror_flag" |
16542 | || test ! -s conftest.err' | |
16543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16544 | (eval $ac_try) 2>&5 | |
16545 | ac_status=$? | |
16546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16547 | (exit $ac_status); }; } && | |
16548 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16550 | (eval $ac_try) 2>&5 | |
16551 | ac_status=$? | |
16552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16553 | (exit $ac_status); }; }; then | |
16554 | ac_hi=$ac_mid; break | |
16555 | else | |
16556 | echo "$as_me: failed program was:" >&5 | |
16557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16558 | ||
16559 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16560 | if test $ac_lo -le $ac_mid; then |
16561 | ac_lo= ac_hi= | |
16562 | break | |
16563 | fi | |
16564 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16565 | fi |
ac1cb8d3 | 16566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16567 | done |
16568 | else | |
16569 | echo "$as_me: failed program was:" >&5 | |
16570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16571 | ||
16572 | cat >conftest.$ac_ext <<_ACEOF | |
16573 | /* confdefs.h. */ | |
16574 | _ACEOF | |
16575 | cat confdefs.h >>conftest.$ac_ext | |
16576 | cat >>conftest.$ac_ext <<_ACEOF | |
16577 | /* end confdefs.h. */ | |
16578 | $ac_includes_default | |
16579 | int | |
16580 | main () | |
16581 | { | |
16582 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16583 | test_array [0] = 0 | |
16584 | ||
16585 | ; | |
16586 | return 0; | |
16587 | } | |
16588 | _ACEOF | |
16589 | rm -f conftest.$ac_objext | |
16590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16591 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16592 | ac_status=$? |
ac1cb8d3 VS |
16593 | grep -v '^ *+' conftest.er1 >conftest.err |
16594 | rm -f conftest.er1 | |
16595 | cat conftest.err >&5 | |
a848cd7e SC |
16596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16597 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16598 | { ac_try='test -z "$ac_c_werror_flag" |
16599 | || test ! -s conftest.err' | |
16600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16601 | (eval $ac_try) 2>&5 | |
16602 | ac_status=$? | |
16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16604 | (exit $ac_status); }; } && | |
16605 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16607 | (eval $ac_try) 2>&5 | |
16608 | ac_status=$? | |
16609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16610 | (exit $ac_status); }; }; then | |
16611 | ac_hi=-1 ac_mid=-1 | |
16612 | while :; do | |
16613 | cat >conftest.$ac_ext <<_ACEOF | |
16614 | /* confdefs.h. */ | |
16615 | _ACEOF | |
16616 | cat confdefs.h >>conftest.$ac_ext | |
16617 | cat >>conftest.$ac_ext <<_ACEOF | |
16618 | /* end confdefs.h. */ | |
16619 | $ac_includes_default | |
16620 | int | |
16621 | main () | |
16622 | { | |
16623 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16624 | test_array [0] = 0 | |
16625 | ||
16626 | ; | |
16627 | return 0; | |
16628 | } | |
16629 | _ACEOF | |
16630 | rm -f conftest.$ac_objext | |
16631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16632 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16633 | ac_status=$? |
ac1cb8d3 VS |
16634 | grep -v '^ *+' conftest.er1 >conftest.err |
16635 | rm -f conftest.er1 | |
16636 | cat conftest.err >&5 | |
a848cd7e SC |
16637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16638 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16639 | { ac_try='test -z "$ac_c_werror_flag" |
16640 | || test ! -s conftest.err' | |
16641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16642 | (eval $ac_try) 2>&5 | |
16643 | ac_status=$? | |
16644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16645 | (exit $ac_status); }; } && | |
16646 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16648 | (eval $ac_try) 2>&5 | |
16649 | ac_status=$? | |
16650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16651 | (exit $ac_status); }; }; then | |
16652 | ac_lo=$ac_mid; break | |
16653 | else | |
16654 | echo "$as_me: failed program was:" >&5 | |
16655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16656 | ||
16657 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16658 | if test $ac_mid -le $ac_hi; then |
16659 | ac_lo= ac_hi= | |
16660 | break | |
16661 | fi | |
16662 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16663 | fi |
ac1cb8d3 | 16664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16665 | done |
16666 | else | |
16667 | echo "$as_me: failed program was:" >&5 | |
16668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16669 | ||
16670 | ac_lo= ac_hi= | |
16671 | fi | |
ac1cb8d3 | 16672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16673 | fi |
ac1cb8d3 | 16674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16675 | # Binary search between lo and hi bounds. |
16676 | while test "x$ac_lo" != "x$ac_hi"; do | |
16677 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16678 | cat >conftest.$ac_ext <<_ACEOF | |
16679 | /* confdefs.h. */ | |
16680 | _ACEOF | |
16681 | cat confdefs.h >>conftest.$ac_ext | |
16682 | cat >>conftest.$ac_ext <<_ACEOF | |
16683 | /* end confdefs.h. */ | |
16684 | $ac_includes_default | |
16685 | int | |
16686 | main () | |
16687 | { | |
16688 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16689 | test_array [0] = 0 | |
16690 | ||
16691 | ; | |
16692 | return 0; | |
16693 | } | |
16694 | _ACEOF | |
16695 | rm -f conftest.$ac_objext | |
16696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16697 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16698 | ac_status=$? |
ac1cb8d3 VS |
16699 | grep -v '^ *+' conftest.er1 >conftest.err |
16700 | rm -f conftest.er1 | |
16701 | cat conftest.err >&5 | |
a848cd7e SC |
16702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16703 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16704 | { ac_try='test -z "$ac_c_werror_flag" |
16705 | || test ! -s conftest.err' | |
16706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16707 | (eval $ac_try) 2>&5 | |
16708 | ac_status=$? | |
16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16710 | (exit $ac_status); }; } && | |
16711 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16713 | (eval $ac_try) 2>&5 | |
16714 | ac_status=$? | |
16715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16716 | (exit $ac_status); }; }; then | |
16717 | ac_hi=$ac_mid | |
16718 | else | |
16719 | echo "$as_me: failed program was:" >&5 | |
16720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16721 | ||
16722 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16723 | fi | |
ac1cb8d3 | 16724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16725 | done |
16726 | case $ac_lo in | |
16727 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16728 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16729 | See \`config.log' for more details." >&5 | |
16730 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16731 | See \`config.log' for more details." >&2;} | |
16732 | { (exit 1); exit 1; }; } ;; | |
16733 | esac | |
16734 | else | |
16735 | if test "$cross_compiling" = yes; then | |
16736 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16737 | See \`config.log' for more details." >&5 | |
16738 | echo "$as_me: error: cannot run test program while cross compiling | |
16739 | See \`config.log' for more details." >&2;} | |
16740 | { (exit 1); exit 1; }; } | |
16741 | else | |
16742 | cat >conftest.$ac_ext <<_ACEOF | |
16743 | /* confdefs.h. */ | |
16744 | _ACEOF | |
16745 | cat confdefs.h >>conftest.$ac_ext | |
16746 | cat >>conftest.$ac_ext <<_ACEOF | |
16747 | /* end confdefs.h. */ | |
16748 | $ac_includes_default | |
16749 | long longval () { return (long) (sizeof (size_t)); } | |
16750 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16751 | #include <stdio.h> | |
16752 | #include <stdlib.h> | |
16753 | int | |
16754 | main () | |
16755 | { | |
16756 | ||
16757 | FILE *f = fopen ("conftest.val", "w"); | |
16758 | if (! f) | |
16759 | exit (1); | |
16760 | if (((long) (sizeof (size_t))) < 0) | |
16761 | { | |
16762 | long i = longval (); | |
16763 | if (i != ((long) (sizeof (size_t)))) | |
16764 | exit (1); | |
16765 | fprintf (f, "%ld\n", i); | |
16766 | } | |
16767 | else | |
16768 | { | |
16769 | unsigned long i = ulongval (); | |
16770 | if (i != ((long) (sizeof (size_t)))) | |
16771 | exit (1); | |
16772 | fprintf (f, "%lu\n", i); | |
16773 | } | |
16774 | exit (ferror (f) || fclose (f) != 0); | |
16775 | ||
16776 | ; | |
16777 | return 0; | |
16778 | } | |
16779 | _ACEOF | |
16780 | rm -f conftest$ac_exeext | |
16781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16782 | (eval $ac_link) 2>&5 | |
16783 | ac_status=$? | |
16784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16785 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16787 | (eval $ac_try) 2>&5 | |
16788 | ac_status=$? | |
16789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16790 | (exit $ac_status); }; }; then | |
16791 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16792 | else | |
16793 | echo "$as_me: program exited with status $ac_status" >&5 | |
16794 | echo "$as_me: failed program was:" >&5 | |
16795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16796 | ||
16797 | ( exit $ac_status ) | |
16798 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16799 | See \`config.log' for more details." >&5 | |
16800 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16801 | See \`config.log' for more details." >&2;} | |
16802 | { (exit 1); exit 1; }; } | |
16803 | fi | |
ac1cb8d3 | 16804 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16805 | fi |
16806 | fi | |
16807 | rm -f conftest.val | |
16808 | else | |
16809 | ac_cv_sizeof_size_t=0 | |
16810 | fi | |
16811 | fi | |
16812 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16813 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16814 | cat >>confdefs.h <<_ACEOF | |
16815 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16816 | _ACEOF | |
16817 | ||
16818 | ||
16819 | ||
16820 | case "${host}" in | |
16821 | arm-*-linux* ) | |
16822 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16823 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16824 | if test "${ac_cv_type_long_long+set}" = set; then | |
16825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16826 | else | |
16827 | cat >conftest.$ac_ext <<_ACEOF | |
16828 | /* confdefs.h. */ | |
16829 | _ACEOF | |
16830 | cat confdefs.h >>conftest.$ac_ext | |
16831 | cat >>conftest.$ac_ext <<_ACEOF | |
16832 | /* end confdefs.h. */ | |
16833 | $ac_includes_default | |
16834 | int | |
16835 | main () | |
16836 | { | |
16837 | if ((long long *) 0) | |
16838 | return 0; | |
16839 | if (sizeof (long long)) | |
16840 | return 0; | |
16841 | ; | |
16842 | return 0; | |
16843 | } | |
16844 | _ACEOF | |
16845 | rm -f conftest.$ac_objext | |
16846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16848 | ac_status=$? |
ac1cb8d3 VS |
16849 | grep -v '^ *+' conftest.er1 >conftest.err |
16850 | rm -f conftest.er1 | |
16851 | cat conftest.err >&5 | |
a848cd7e SC |
16852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16853 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16854 | { ac_try='test -z "$ac_c_werror_flag" |
16855 | || test ! -s conftest.err' | |
16856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16857 | (eval $ac_try) 2>&5 | |
16858 | ac_status=$? | |
16859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16860 | (exit $ac_status); }; } && | |
16861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16863 | (eval $ac_try) 2>&5 | |
16864 | ac_status=$? | |
16865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16866 | (exit $ac_status); }; }; then | |
16867 | ac_cv_type_long_long=yes | |
16868 | else | |
16869 | echo "$as_me: failed program was:" >&5 | |
16870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16871 | ||
16872 | ac_cv_type_long_long=no | |
16873 | fi | |
ac1cb8d3 | 16874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16875 | fi |
16876 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16877 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16878 | ||
16879 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16880 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16881 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16883 | else | |
16884 | if test "$ac_cv_type_long_long" = yes; then | |
16885 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16886 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16887 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16888 | # This bug is HP SR number 8606223364. | |
16889 | if test "$cross_compiling" = yes; then | |
16890 | # Depending upon the size, compute the lo and hi bounds. | |
16891 | cat >conftest.$ac_ext <<_ACEOF | |
16892 | /* confdefs.h. */ | |
16893 | _ACEOF | |
16894 | cat confdefs.h >>conftest.$ac_ext | |
16895 | cat >>conftest.$ac_ext <<_ACEOF | |
16896 | /* end confdefs.h. */ | |
16897 | $ac_includes_default | |
16898 | int | |
16899 | main () | |
16900 | { | |
16901 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16902 | test_array [0] = 0 | |
16903 | ||
16904 | ; | |
16905 | return 0; | |
16906 | } | |
16907 | _ACEOF | |
16908 | rm -f conftest.$ac_objext | |
16909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16910 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16911 | ac_status=$? |
ac1cb8d3 VS |
16912 | grep -v '^ *+' conftest.er1 >conftest.err |
16913 | rm -f conftest.er1 | |
16914 | cat conftest.err >&5 | |
a848cd7e SC |
16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16916 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16917 | { ac_try='test -z "$ac_c_werror_flag" |
16918 | || test ! -s conftest.err' | |
16919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16920 | (eval $ac_try) 2>&5 | |
16921 | ac_status=$? | |
16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16923 | (exit $ac_status); }; } && | |
16924 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16926 | (eval $ac_try) 2>&5 | |
16927 | ac_status=$? | |
16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16929 | (exit $ac_status); }; }; then | |
16930 | ac_lo=0 ac_mid=0 | |
16931 | while :; do | |
16932 | cat >conftest.$ac_ext <<_ACEOF | |
16933 | /* confdefs.h. */ | |
16934 | _ACEOF | |
16935 | cat confdefs.h >>conftest.$ac_ext | |
16936 | cat >>conftest.$ac_ext <<_ACEOF | |
16937 | /* end confdefs.h. */ | |
16938 | $ac_includes_default | |
16939 | int | |
16940 | main () | |
16941 | { | |
16942 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16943 | test_array [0] = 0 | |
16944 | ||
16945 | ; | |
16946 | return 0; | |
16947 | } | |
16948 | _ACEOF | |
16949 | rm -f conftest.$ac_objext | |
16950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16951 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16952 | ac_status=$? |
ac1cb8d3 VS |
16953 | grep -v '^ *+' conftest.er1 >conftest.err |
16954 | rm -f conftest.er1 | |
16955 | cat conftest.err >&5 | |
a848cd7e SC |
16956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16957 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16958 | { ac_try='test -z "$ac_c_werror_flag" |
16959 | || test ! -s conftest.err' | |
16960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16961 | (eval $ac_try) 2>&5 | |
16962 | ac_status=$? | |
16963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16964 | (exit $ac_status); }; } && | |
16965 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16967 | (eval $ac_try) 2>&5 | |
16968 | ac_status=$? | |
16969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16970 | (exit $ac_status); }; }; then | |
16971 | ac_hi=$ac_mid; break | |
16972 | else | |
16973 | echo "$as_me: failed program was:" >&5 | |
16974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16975 | ||
16976 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16977 | if test $ac_lo -le $ac_mid; then |
16978 | ac_lo= ac_hi= | |
16979 | break | |
16980 | fi | |
16981 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16982 | fi |
ac1cb8d3 | 16983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16984 | done |
16985 | else | |
16986 | echo "$as_me: failed program was:" >&5 | |
16987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16988 | ||
16989 | cat >conftest.$ac_ext <<_ACEOF | |
16990 | /* confdefs.h. */ | |
16991 | _ACEOF | |
16992 | cat confdefs.h >>conftest.$ac_ext | |
16993 | cat >>conftest.$ac_ext <<_ACEOF | |
16994 | /* end confdefs.h. */ | |
16995 | $ac_includes_default | |
16996 | int | |
16997 | main () | |
16998 | { | |
16999 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17000 | test_array [0] = 0 | |
17001 | ||
17002 | ; | |
17003 | return 0; | |
17004 | } | |
17005 | _ACEOF | |
17006 | rm -f conftest.$ac_objext | |
17007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17008 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17009 | ac_status=$? |
ac1cb8d3 VS |
17010 | grep -v '^ *+' conftest.er1 >conftest.err |
17011 | rm -f conftest.er1 | |
17012 | cat conftest.err >&5 | |
a848cd7e SC |
17013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17014 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17015 | { ac_try='test -z "$ac_c_werror_flag" |
17016 | || test ! -s conftest.err' | |
17017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17018 | (eval $ac_try) 2>&5 | |
17019 | ac_status=$? | |
17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17021 | (exit $ac_status); }; } && | |
17022 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17024 | (eval $ac_try) 2>&5 | |
17025 | ac_status=$? | |
17026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17027 | (exit $ac_status); }; }; then | |
17028 | ac_hi=-1 ac_mid=-1 | |
17029 | while :; do | |
17030 | cat >conftest.$ac_ext <<_ACEOF | |
17031 | /* confdefs.h. */ | |
17032 | _ACEOF | |
17033 | cat confdefs.h >>conftest.$ac_ext | |
17034 | cat >>conftest.$ac_ext <<_ACEOF | |
17035 | /* end confdefs.h. */ | |
17036 | $ac_includes_default | |
17037 | int | |
17038 | main () | |
17039 | { | |
17040 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17041 | test_array [0] = 0 | |
17042 | ||
17043 | ; | |
17044 | return 0; | |
17045 | } | |
17046 | _ACEOF | |
17047 | rm -f conftest.$ac_objext | |
17048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17049 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17050 | ac_status=$? |
ac1cb8d3 VS |
17051 | grep -v '^ *+' conftest.er1 >conftest.err |
17052 | rm -f conftest.er1 | |
17053 | cat conftest.err >&5 | |
a848cd7e SC |
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17055 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17056 | { ac_try='test -z "$ac_c_werror_flag" |
17057 | || test ! -s conftest.err' | |
17058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17059 | (eval $ac_try) 2>&5 | |
17060 | ac_status=$? | |
17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17062 | (exit $ac_status); }; } && | |
17063 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17065 | (eval $ac_try) 2>&5 | |
17066 | ac_status=$? | |
17067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17068 | (exit $ac_status); }; }; then | |
17069 | ac_lo=$ac_mid; break | |
17070 | else | |
17071 | echo "$as_me: failed program was:" >&5 | |
17072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17073 | ||
17074 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17075 | if test $ac_mid -le $ac_hi; then |
17076 | ac_lo= ac_hi= | |
17077 | break | |
17078 | fi | |
17079 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17080 | fi |
ac1cb8d3 | 17081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17082 | done |
17083 | else | |
17084 | echo "$as_me: failed program was:" >&5 | |
17085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17086 | ||
17087 | ac_lo= ac_hi= | |
17088 | fi | |
ac1cb8d3 | 17089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17090 | fi |
ac1cb8d3 | 17091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17092 | # Binary search between lo and hi bounds. |
17093 | while test "x$ac_lo" != "x$ac_hi"; do | |
17094 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17095 | cat >conftest.$ac_ext <<_ACEOF | |
17096 | /* confdefs.h. */ | |
17097 | _ACEOF | |
17098 | cat confdefs.h >>conftest.$ac_ext | |
17099 | cat >>conftest.$ac_ext <<_ACEOF | |
17100 | /* end confdefs.h. */ | |
17101 | $ac_includes_default | |
17102 | int | |
17103 | main () | |
17104 | { | |
17105 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17106 | test_array [0] = 0 | |
17107 | ||
17108 | ; | |
17109 | return 0; | |
17110 | } | |
17111 | _ACEOF | |
17112 | rm -f conftest.$ac_objext | |
17113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17114 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17115 | ac_status=$? |
ac1cb8d3 VS |
17116 | grep -v '^ *+' conftest.er1 >conftest.err |
17117 | rm -f conftest.er1 | |
17118 | cat conftest.err >&5 | |
a848cd7e SC |
17119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17120 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17121 | { ac_try='test -z "$ac_c_werror_flag" |
17122 | || test ! -s conftest.err' | |
17123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17124 | (eval $ac_try) 2>&5 | |
17125 | ac_status=$? | |
17126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17127 | (exit $ac_status); }; } && | |
17128 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17130 | (eval $ac_try) 2>&5 | |
17131 | ac_status=$? | |
17132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17133 | (exit $ac_status); }; }; then | |
17134 | ac_hi=$ac_mid | |
17135 | else | |
17136 | echo "$as_me: failed program was:" >&5 | |
17137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17138 | ||
17139 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17140 | fi | |
ac1cb8d3 | 17141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17142 | done |
17143 | case $ac_lo in | |
17144 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17145 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17146 | See \`config.log' for more details." >&5 | |
17147 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17148 | See \`config.log' for more details." >&2;} | |
17149 | { (exit 1); exit 1; }; } ;; | |
17150 | esac | |
17151 | else | |
17152 | if test "$cross_compiling" = yes; then | |
17153 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17154 | See \`config.log' for more details." >&5 | |
17155 | echo "$as_me: error: cannot run test program while cross compiling | |
17156 | See \`config.log' for more details." >&2;} | |
17157 | { (exit 1); exit 1; }; } | |
17158 | else | |
17159 | cat >conftest.$ac_ext <<_ACEOF | |
17160 | /* confdefs.h. */ | |
17161 | _ACEOF | |
17162 | cat confdefs.h >>conftest.$ac_ext | |
17163 | cat >>conftest.$ac_ext <<_ACEOF | |
17164 | /* end confdefs.h. */ | |
17165 | $ac_includes_default | |
17166 | long longval () { return (long) (sizeof (long long)); } | |
17167 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17168 | #include <stdio.h> | |
17169 | #include <stdlib.h> | |
17170 | int | |
17171 | main () | |
17172 | { | |
17173 | ||
17174 | FILE *f = fopen ("conftest.val", "w"); | |
17175 | if (! f) | |
17176 | exit (1); | |
17177 | if (((long) (sizeof (long long))) < 0) | |
17178 | { | |
17179 | long i = longval (); | |
17180 | if (i != ((long) (sizeof (long long)))) | |
17181 | exit (1); | |
17182 | fprintf (f, "%ld\n", i); | |
17183 | } | |
17184 | else | |
17185 | { | |
17186 | unsigned long i = ulongval (); | |
17187 | if (i != ((long) (sizeof (long long)))) | |
17188 | exit (1); | |
17189 | fprintf (f, "%lu\n", i); | |
17190 | } | |
17191 | exit (ferror (f) || fclose (f) != 0); | |
17192 | ||
17193 | ; | |
17194 | return 0; | |
17195 | } | |
17196 | _ACEOF | |
17197 | rm -f conftest$ac_exeext | |
17198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17199 | (eval $ac_link) 2>&5 | |
17200 | ac_status=$? | |
17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17202 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17204 | (eval $ac_try) 2>&5 | |
17205 | ac_status=$? | |
17206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17207 | (exit $ac_status); }; }; then | |
17208 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17209 | else | |
17210 | echo "$as_me: program exited with status $ac_status" >&5 | |
17211 | echo "$as_me: failed program was:" >&5 | |
17212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17213 | ||
17214 | ( exit $ac_status ) | |
17215 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17216 | See \`config.log' for more details." >&5 | |
17217 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17218 | See \`config.log' for more details." >&2;} | |
17219 | { (exit 1); exit 1; }; } | |
17220 | fi | |
ac1cb8d3 | 17221 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17222 | fi |
17223 | fi | |
17224 | rm -f conftest.val | |
17225 | else | |
17226 | ac_cv_sizeof_long_long=0 | |
17227 | fi | |
17228 | fi | |
17229 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17230 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17231 | cat >>confdefs.h <<_ACEOF | |
17232 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17233 | _ACEOF | |
17234 | ||
17235 | ||
17236 | ;; | |
17237 | *-hp-hpux* ) | |
17238 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17239 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17240 | if test "${ac_cv_type_long_long+set}" = set; then | |
17241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17242 | else | |
17243 | cat >conftest.$ac_ext <<_ACEOF | |
17244 | /* confdefs.h. */ | |
17245 | _ACEOF | |
17246 | cat confdefs.h >>conftest.$ac_ext | |
17247 | cat >>conftest.$ac_ext <<_ACEOF | |
17248 | /* end confdefs.h. */ | |
17249 | $ac_includes_default | |
17250 | int | |
17251 | main () | |
17252 | { | |
17253 | if ((long long *) 0) | |
17254 | return 0; | |
17255 | if (sizeof (long long)) | |
17256 | return 0; | |
17257 | ; | |
17258 | return 0; | |
17259 | } | |
17260 | _ACEOF | |
17261 | rm -f conftest.$ac_objext | |
17262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17263 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17264 | ac_status=$? |
ac1cb8d3 VS |
17265 | grep -v '^ *+' conftest.er1 >conftest.err |
17266 | rm -f conftest.er1 | |
17267 | cat conftest.err >&5 | |
a848cd7e SC |
17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17269 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17270 | { ac_try='test -z "$ac_c_werror_flag" |
17271 | || test ! -s conftest.err' | |
17272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17273 | (eval $ac_try) 2>&5 | |
17274 | ac_status=$? | |
17275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17276 | (exit $ac_status); }; } && | |
17277 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17279 | (eval $ac_try) 2>&5 | |
17280 | ac_status=$? | |
17281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17282 | (exit $ac_status); }; }; then | |
17283 | ac_cv_type_long_long=yes | |
17284 | else | |
17285 | echo "$as_me: failed program was:" >&5 | |
17286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17287 | ||
17288 | ac_cv_type_long_long=no | |
17289 | fi | |
ac1cb8d3 | 17290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17291 | fi |
17292 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17293 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17294 | ||
17295 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17296 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17297 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17299 | else | |
17300 | if test "$ac_cv_type_long_long" = yes; then | |
17301 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17302 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17303 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17304 | # This bug is HP SR number 8606223364. | |
17305 | if test "$cross_compiling" = yes; then | |
17306 | # Depending upon the size, compute the lo and hi bounds. | |
17307 | cat >conftest.$ac_ext <<_ACEOF | |
17308 | /* confdefs.h. */ | |
17309 | _ACEOF | |
17310 | cat confdefs.h >>conftest.$ac_ext | |
17311 | cat >>conftest.$ac_ext <<_ACEOF | |
17312 | /* end confdefs.h. */ | |
17313 | $ac_includes_default | |
17314 | int | |
17315 | main () | |
17316 | { | |
17317 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17318 | test_array [0] = 0 | |
17319 | ||
17320 | ; | |
17321 | return 0; | |
17322 | } | |
17323 | _ACEOF | |
17324 | rm -f conftest.$ac_objext | |
17325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17326 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17327 | ac_status=$? |
ac1cb8d3 VS |
17328 | grep -v '^ *+' conftest.er1 >conftest.err |
17329 | rm -f conftest.er1 | |
17330 | cat conftest.err >&5 | |
a848cd7e SC |
17331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17332 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17333 | { ac_try='test -z "$ac_c_werror_flag" |
17334 | || test ! -s conftest.err' | |
17335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17336 | (eval $ac_try) 2>&5 | |
17337 | ac_status=$? | |
17338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17339 | (exit $ac_status); }; } && | |
17340 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17342 | (eval $ac_try) 2>&5 | |
17343 | ac_status=$? | |
17344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17345 | (exit $ac_status); }; }; then | |
17346 | ac_lo=0 ac_mid=0 | |
17347 | while :; do | |
17348 | cat >conftest.$ac_ext <<_ACEOF | |
17349 | /* confdefs.h. */ | |
17350 | _ACEOF | |
17351 | cat confdefs.h >>conftest.$ac_ext | |
17352 | cat >>conftest.$ac_ext <<_ACEOF | |
17353 | /* end confdefs.h. */ | |
17354 | $ac_includes_default | |
17355 | int | |
17356 | main () | |
17357 | { | |
17358 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17359 | test_array [0] = 0 | |
17360 | ||
17361 | ; | |
17362 | return 0; | |
17363 | } | |
17364 | _ACEOF | |
17365 | rm -f conftest.$ac_objext | |
17366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17367 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17368 | ac_status=$? |
ac1cb8d3 VS |
17369 | grep -v '^ *+' conftest.er1 >conftest.err |
17370 | rm -f conftest.er1 | |
17371 | cat conftest.err >&5 | |
a848cd7e SC |
17372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17373 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17374 | { ac_try='test -z "$ac_c_werror_flag" |
17375 | || test ! -s conftest.err' | |
17376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17377 | (eval $ac_try) 2>&5 | |
17378 | ac_status=$? | |
17379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17380 | (exit $ac_status); }; } && | |
17381 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17383 | (eval $ac_try) 2>&5 | |
17384 | ac_status=$? | |
17385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17386 | (exit $ac_status); }; }; then | |
17387 | ac_hi=$ac_mid; break | |
17388 | else | |
17389 | echo "$as_me: failed program was:" >&5 | |
17390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17391 | ||
17392 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17393 | if test $ac_lo -le $ac_mid; then |
17394 | ac_lo= ac_hi= | |
17395 | break | |
17396 | fi | |
17397 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17398 | fi |
ac1cb8d3 | 17399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17400 | done |
17401 | else | |
17402 | echo "$as_me: failed program was:" >&5 | |
17403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17404 | ||
17405 | cat >conftest.$ac_ext <<_ACEOF | |
17406 | /* confdefs.h. */ | |
17407 | _ACEOF | |
17408 | cat confdefs.h >>conftest.$ac_ext | |
17409 | cat >>conftest.$ac_ext <<_ACEOF | |
17410 | /* end confdefs.h. */ | |
17411 | $ac_includes_default | |
17412 | int | |
17413 | main () | |
17414 | { | |
17415 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17416 | test_array [0] = 0 | |
17417 | ||
17418 | ; | |
17419 | return 0; | |
17420 | } | |
17421 | _ACEOF | |
17422 | rm -f conftest.$ac_objext | |
17423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17425 | ac_status=$? |
ac1cb8d3 VS |
17426 | grep -v '^ *+' conftest.er1 >conftest.err |
17427 | rm -f conftest.er1 | |
17428 | cat conftest.err >&5 | |
a848cd7e SC |
17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17430 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17431 | { ac_try='test -z "$ac_c_werror_flag" |
17432 | || test ! -s conftest.err' | |
17433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17434 | (eval $ac_try) 2>&5 | |
17435 | ac_status=$? | |
17436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17437 | (exit $ac_status); }; } && | |
17438 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17440 | (eval $ac_try) 2>&5 | |
17441 | ac_status=$? | |
17442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17443 | (exit $ac_status); }; }; then | |
17444 | ac_hi=-1 ac_mid=-1 | |
17445 | while :; do | |
17446 | cat >conftest.$ac_ext <<_ACEOF | |
17447 | /* confdefs.h. */ | |
17448 | _ACEOF | |
17449 | cat confdefs.h >>conftest.$ac_ext | |
17450 | cat >>conftest.$ac_ext <<_ACEOF | |
17451 | /* end confdefs.h. */ | |
17452 | $ac_includes_default | |
17453 | int | |
17454 | main () | |
17455 | { | |
17456 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17457 | test_array [0] = 0 | |
17458 | ||
17459 | ; | |
17460 | return 0; | |
17461 | } | |
17462 | _ACEOF | |
17463 | rm -f conftest.$ac_objext | |
17464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17465 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17466 | ac_status=$? |
ac1cb8d3 VS |
17467 | grep -v '^ *+' conftest.er1 >conftest.err |
17468 | rm -f conftest.er1 | |
17469 | cat conftest.err >&5 | |
a848cd7e SC |
17470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17471 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17472 | { ac_try='test -z "$ac_c_werror_flag" |
17473 | || test ! -s conftest.err' | |
17474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17475 | (eval $ac_try) 2>&5 | |
17476 | ac_status=$? | |
17477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17478 | (exit $ac_status); }; } && | |
17479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17481 | (eval $ac_try) 2>&5 | |
17482 | ac_status=$? | |
17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17484 | (exit $ac_status); }; }; then | |
17485 | ac_lo=$ac_mid; break | |
17486 | else | |
17487 | echo "$as_me: failed program was:" >&5 | |
17488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17489 | ||
17490 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17491 | if test $ac_mid -le $ac_hi; then |
17492 | ac_lo= ac_hi= | |
17493 | break | |
17494 | fi | |
17495 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17496 | fi |
ac1cb8d3 | 17497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17498 | done |
17499 | else | |
17500 | echo "$as_me: failed program was:" >&5 | |
17501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17502 | ||
17503 | ac_lo= ac_hi= | |
17504 | fi | |
ac1cb8d3 | 17505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17506 | fi |
ac1cb8d3 | 17507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17508 | # Binary search between lo and hi bounds. |
17509 | while test "x$ac_lo" != "x$ac_hi"; do | |
17510 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17511 | cat >conftest.$ac_ext <<_ACEOF | |
17512 | /* confdefs.h. */ | |
17513 | _ACEOF | |
17514 | cat confdefs.h >>conftest.$ac_ext | |
17515 | cat >>conftest.$ac_ext <<_ACEOF | |
17516 | /* end confdefs.h. */ | |
17517 | $ac_includes_default | |
17518 | int | |
17519 | main () | |
17520 | { | |
17521 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17522 | test_array [0] = 0 | |
17523 | ||
17524 | ; | |
17525 | return 0; | |
17526 | } | |
17527 | _ACEOF | |
17528 | rm -f conftest.$ac_objext | |
17529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17530 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17531 | ac_status=$? |
ac1cb8d3 VS |
17532 | grep -v '^ *+' conftest.er1 >conftest.err |
17533 | rm -f conftest.er1 | |
17534 | cat conftest.err >&5 | |
a848cd7e SC |
17535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17536 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17537 | { ac_try='test -z "$ac_c_werror_flag" |
17538 | || test ! -s conftest.err' | |
17539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17540 | (eval $ac_try) 2>&5 | |
17541 | ac_status=$? | |
17542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17543 | (exit $ac_status); }; } && | |
17544 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17546 | (eval $ac_try) 2>&5 | |
17547 | ac_status=$? | |
17548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17549 | (exit $ac_status); }; }; then | |
17550 | ac_hi=$ac_mid | |
17551 | else | |
17552 | echo "$as_me: failed program was:" >&5 | |
17553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17554 | ||
17555 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17556 | fi | |
ac1cb8d3 | 17557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17558 | done |
17559 | case $ac_lo in | |
17560 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17561 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17562 | See \`config.log' for more details." >&5 | |
17563 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17564 | See \`config.log' for more details." >&2;} | |
17565 | { (exit 1); exit 1; }; } ;; | |
17566 | esac | |
17567 | else | |
17568 | if test "$cross_compiling" = yes; then | |
17569 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17570 | See \`config.log' for more details." >&5 | |
17571 | echo "$as_me: error: cannot run test program while cross compiling | |
17572 | See \`config.log' for more details." >&2;} | |
17573 | { (exit 1); exit 1; }; } | |
17574 | else | |
17575 | cat >conftest.$ac_ext <<_ACEOF | |
17576 | /* confdefs.h. */ | |
17577 | _ACEOF | |
17578 | cat confdefs.h >>conftest.$ac_ext | |
17579 | cat >>conftest.$ac_ext <<_ACEOF | |
17580 | /* end confdefs.h. */ | |
17581 | $ac_includes_default | |
17582 | long longval () { return (long) (sizeof (long long)); } | |
17583 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17584 | #include <stdio.h> | |
17585 | #include <stdlib.h> | |
17586 | int | |
17587 | main () | |
17588 | { | |
17589 | ||
17590 | FILE *f = fopen ("conftest.val", "w"); | |
17591 | if (! f) | |
17592 | exit (1); | |
17593 | if (((long) (sizeof (long long))) < 0) | |
17594 | { | |
17595 | long i = longval (); | |
17596 | if (i != ((long) (sizeof (long long)))) | |
17597 | exit (1); | |
17598 | fprintf (f, "%ld\n", i); | |
17599 | } | |
17600 | else | |
17601 | { | |
17602 | unsigned long i = ulongval (); | |
17603 | if (i != ((long) (sizeof (long long)))) | |
17604 | exit (1); | |
17605 | fprintf (f, "%lu\n", i); | |
17606 | } | |
17607 | exit (ferror (f) || fclose (f) != 0); | |
17608 | ||
17609 | ; | |
17610 | return 0; | |
17611 | } | |
17612 | _ACEOF | |
17613 | rm -f conftest$ac_exeext | |
17614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17615 | (eval $ac_link) 2>&5 | |
17616 | ac_status=$? | |
17617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17618 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17620 | (eval $ac_try) 2>&5 | |
17621 | ac_status=$? | |
17622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17623 | (exit $ac_status); }; }; then | |
17624 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17625 | else | |
17626 | echo "$as_me: program exited with status $ac_status" >&5 | |
17627 | echo "$as_me: failed program was:" >&5 | |
17628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17629 | ||
17630 | ( exit $ac_status ) | |
17631 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17632 | See \`config.log' for more details." >&5 | |
17633 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17634 | See \`config.log' for more details." >&2;} | |
17635 | { (exit 1); exit 1; }; } | |
17636 | fi | |
ac1cb8d3 | 17637 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17638 | fi |
17639 | fi | |
17640 | rm -f conftest.val | |
17641 | else | |
17642 | ac_cv_sizeof_long_long=0 | |
17643 | fi | |
17644 | fi | |
17645 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17646 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17647 | cat >>confdefs.h <<_ACEOF | |
17648 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17649 | _ACEOF | |
17650 | ||
17651 | ||
17652 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17653 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17654 | fi | |
17655 | ;; | |
17656 | * ) | |
17657 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17658 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17659 | if test "${ac_cv_type_long_long+set}" = set; then | |
17660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17661 | else | |
17662 | cat >conftest.$ac_ext <<_ACEOF | |
17663 | /* confdefs.h. */ | |
17664 | _ACEOF | |
17665 | cat confdefs.h >>conftest.$ac_ext | |
17666 | cat >>conftest.$ac_ext <<_ACEOF | |
17667 | /* end confdefs.h. */ | |
17668 | $ac_includes_default | |
17669 | int | |
17670 | main () | |
17671 | { | |
17672 | if ((long long *) 0) | |
17673 | return 0; | |
17674 | if (sizeof (long long)) | |
17675 | return 0; | |
17676 | ; | |
17677 | return 0; | |
17678 | } | |
17679 | _ACEOF | |
17680 | rm -f conftest.$ac_objext | |
17681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17682 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17683 | ac_status=$? |
ac1cb8d3 VS |
17684 | grep -v '^ *+' conftest.er1 >conftest.err |
17685 | rm -f conftest.er1 | |
17686 | cat conftest.err >&5 | |
a848cd7e SC |
17687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17688 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17689 | { ac_try='test -z "$ac_c_werror_flag" |
17690 | || test ! -s conftest.err' | |
17691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17692 | (eval $ac_try) 2>&5 | |
17693 | ac_status=$? | |
17694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17695 | (exit $ac_status); }; } && | |
17696 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17698 | (eval $ac_try) 2>&5 | |
17699 | ac_status=$? | |
17700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17701 | (exit $ac_status); }; }; then | |
17702 | ac_cv_type_long_long=yes | |
17703 | else | |
17704 | echo "$as_me: failed program was:" >&5 | |
17705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17706 | ||
17707 | ac_cv_type_long_long=no | |
17708 | fi | |
ac1cb8d3 | 17709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17710 | fi |
17711 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17712 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17713 | ||
17714 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17715 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17716 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17718 | else | |
17719 | if test "$ac_cv_type_long_long" = yes; then | |
17720 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17721 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17722 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17723 | # This bug is HP SR number 8606223364. | |
17724 | if test "$cross_compiling" = yes; then | |
17725 | # Depending upon the size, compute the lo and hi bounds. | |
17726 | cat >conftest.$ac_ext <<_ACEOF | |
17727 | /* confdefs.h. */ | |
17728 | _ACEOF | |
17729 | cat confdefs.h >>conftest.$ac_ext | |
17730 | cat >>conftest.$ac_ext <<_ACEOF | |
17731 | /* end confdefs.h. */ | |
17732 | $ac_includes_default | |
17733 | int | |
17734 | main () | |
17735 | { | |
17736 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17737 | test_array [0] = 0 | |
17738 | ||
17739 | ; | |
17740 | return 0; | |
17741 | } | |
17742 | _ACEOF | |
17743 | rm -f conftest.$ac_objext | |
17744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17745 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17746 | ac_status=$? |
ac1cb8d3 VS |
17747 | grep -v '^ *+' conftest.er1 >conftest.err |
17748 | rm -f conftest.er1 | |
17749 | cat conftest.err >&5 | |
a848cd7e SC |
17750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17751 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17752 | { ac_try='test -z "$ac_c_werror_flag" |
17753 | || test ! -s conftest.err' | |
17754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17755 | (eval $ac_try) 2>&5 | |
17756 | ac_status=$? | |
17757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17758 | (exit $ac_status); }; } && | |
17759 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17761 | (eval $ac_try) 2>&5 | |
17762 | ac_status=$? | |
17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17764 | (exit $ac_status); }; }; then | |
17765 | ac_lo=0 ac_mid=0 | |
17766 | while :; do | |
17767 | cat >conftest.$ac_ext <<_ACEOF | |
17768 | /* confdefs.h. */ | |
17769 | _ACEOF | |
17770 | cat confdefs.h >>conftest.$ac_ext | |
17771 | cat >>conftest.$ac_ext <<_ACEOF | |
17772 | /* end confdefs.h. */ | |
17773 | $ac_includes_default | |
17774 | int | |
17775 | main () | |
17776 | { | |
17777 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17778 | test_array [0] = 0 | |
17779 | ||
17780 | ; | |
17781 | return 0; | |
17782 | } | |
17783 | _ACEOF | |
17784 | rm -f conftest.$ac_objext | |
17785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17786 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17787 | ac_status=$? |
ac1cb8d3 VS |
17788 | grep -v '^ *+' conftest.er1 >conftest.err |
17789 | rm -f conftest.er1 | |
17790 | cat conftest.err >&5 | |
a848cd7e SC |
17791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17792 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17793 | { ac_try='test -z "$ac_c_werror_flag" |
17794 | || test ! -s conftest.err' | |
17795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17796 | (eval $ac_try) 2>&5 | |
17797 | ac_status=$? | |
17798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17799 | (exit $ac_status); }; } && | |
17800 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17802 | (eval $ac_try) 2>&5 | |
17803 | ac_status=$? | |
17804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17805 | (exit $ac_status); }; }; then | |
17806 | ac_hi=$ac_mid; break | |
17807 | else | |
17808 | echo "$as_me: failed program was:" >&5 | |
17809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17810 | ||
17811 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17812 | if test $ac_lo -le $ac_mid; then |
17813 | ac_lo= ac_hi= | |
17814 | break | |
17815 | fi | |
17816 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17817 | fi |
ac1cb8d3 | 17818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17819 | done |
17820 | else | |
17821 | echo "$as_me: failed program was:" >&5 | |
17822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17823 | ||
17824 | cat >conftest.$ac_ext <<_ACEOF | |
17825 | /* confdefs.h. */ | |
17826 | _ACEOF | |
17827 | cat confdefs.h >>conftest.$ac_ext | |
17828 | cat >>conftest.$ac_ext <<_ACEOF | |
17829 | /* end confdefs.h. */ | |
17830 | $ac_includes_default | |
17831 | int | |
17832 | main () | |
17833 | { | |
17834 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17835 | test_array [0] = 0 | |
17836 | ||
17837 | ; | |
17838 | return 0; | |
17839 | } | |
17840 | _ACEOF | |
17841 | rm -f conftest.$ac_objext | |
17842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17843 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17844 | ac_status=$? |
ac1cb8d3 VS |
17845 | grep -v '^ *+' conftest.er1 >conftest.err |
17846 | rm -f conftest.er1 | |
17847 | cat conftest.err >&5 | |
a848cd7e SC |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17849 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17850 | { ac_try='test -z "$ac_c_werror_flag" |
17851 | || test ! -s conftest.err' | |
17852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17853 | (eval $ac_try) 2>&5 | |
17854 | ac_status=$? | |
17855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17856 | (exit $ac_status); }; } && | |
17857 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17859 | (eval $ac_try) 2>&5 | |
17860 | ac_status=$? | |
17861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17862 | (exit $ac_status); }; }; then | |
17863 | ac_hi=-1 ac_mid=-1 | |
17864 | while :; do | |
17865 | cat >conftest.$ac_ext <<_ACEOF | |
17866 | /* confdefs.h. */ | |
17867 | _ACEOF | |
17868 | cat confdefs.h >>conftest.$ac_ext | |
17869 | cat >>conftest.$ac_ext <<_ACEOF | |
17870 | /* end confdefs.h. */ | |
17871 | $ac_includes_default | |
17872 | int | |
17873 | main () | |
17874 | { | |
17875 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17876 | test_array [0] = 0 | |
17877 | ||
17878 | ; | |
17879 | return 0; | |
17880 | } | |
17881 | _ACEOF | |
17882 | rm -f conftest.$ac_objext | |
17883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17884 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17885 | ac_status=$? |
ac1cb8d3 VS |
17886 | grep -v '^ *+' conftest.er1 >conftest.err |
17887 | rm -f conftest.er1 | |
17888 | cat conftest.err >&5 | |
a848cd7e SC |
17889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17890 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17891 | { ac_try='test -z "$ac_c_werror_flag" |
17892 | || test ! -s conftest.err' | |
17893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17894 | (eval $ac_try) 2>&5 | |
17895 | ac_status=$? | |
17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17897 | (exit $ac_status); }; } && | |
17898 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17900 | (eval $ac_try) 2>&5 | |
17901 | ac_status=$? | |
17902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17903 | (exit $ac_status); }; }; then | |
17904 | ac_lo=$ac_mid; break | |
17905 | else | |
17906 | echo "$as_me: failed program was:" >&5 | |
17907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17908 | ||
17909 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17910 | if test $ac_mid -le $ac_hi; then |
17911 | ac_lo= ac_hi= | |
17912 | break | |
17913 | fi | |
17914 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17915 | fi |
ac1cb8d3 | 17916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17917 | done |
17918 | else | |
17919 | echo "$as_me: failed program was:" >&5 | |
17920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17921 | ||
17922 | ac_lo= ac_hi= | |
17923 | fi | |
ac1cb8d3 | 17924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17925 | fi |
ac1cb8d3 | 17926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17927 | # Binary search between lo and hi bounds. |
17928 | while test "x$ac_lo" != "x$ac_hi"; do | |
17929 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17930 | cat >conftest.$ac_ext <<_ACEOF | |
17931 | /* confdefs.h. */ | |
17932 | _ACEOF | |
17933 | cat confdefs.h >>conftest.$ac_ext | |
17934 | cat >>conftest.$ac_ext <<_ACEOF | |
17935 | /* end confdefs.h. */ | |
17936 | $ac_includes_default | |
17937 | int | |
17938 | main () | |
17939 | { | |
17940 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17941 | test_array [0] = 0 | |
17942 | ||
17943 | ; | |
17944 | return 0; | |
17945 | } | |
17946 | _ACEOF | |
17947 | rm -f conftest.$ac_objext | |
17948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17949 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17950 | ac_status=$? |
ac1cb8d3 VS |
17951 | grep -v '^ *+' conftest.er1 >conftest.err |
17952 | rm -f conftest.er1 | |
17953 | cat conftest.err >&5 | |
a848cd7e SC |
17954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17955 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17956 | { ac_try='test -z "$ac_c_werror_flag" |
17957 | || test ! -s conftest.err' | |
17958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17959 | (eval $ac_try) 2>&5 | |
17960 | ac_status=$? | |
17961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17962 | (exit $ac_status); }; } && | |
17963 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17965 | (eval $ac_try) 2>&5 | |
17966 | ac_status=$? | |
17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17968 | (exit $ac_status); }; }; then | |
17969 | ac_hi=$ac_mid | |
17970 | else | |
17971 | echo "$as_me: failed program was:" >&5 | |
17972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17973 | ||
17974 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17975 | fi | |
ac1cb8d3 | 17976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17977 | done |
17978 | case $ac_lo in | |
17979 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17980 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17981 | See \`config.log' for more details." >&5 | |
17982 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17983 | See \`config.log' for more details." >&2;} | |
17984 | { (exit 1); exit 1; }; } ;; | |
17985 | esac | |
17986 | else | |
17987 | if test "$cross_compiling" = yes; then | |
17988 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17989 | See \`config.log' for more details." >&5 | |
17990 | echo "$as_me: error: cannot run test program while cross compiling | |
17991 | See \`config.log' for more details." >&2;} | |
17992 | { (exit 1); exit 1; }; } | |
17993 | else | |
17994 | cat >conftest.$ac_ext <<_ACEOF | |
17995 | /* confdefs.h. */ | |
17996 | _ACEOF | |
17997 | cat confdefs.h >>conftest.$ac_ext | |
17998 | cat >>conftest.$ac_ext <<_ACEOF | |
17999 | /* end confdefs.h. */ | |
18000 | $ac_includes_default | |
18001 | long longval () { return (long) (sizeof (long long)); } | |
18002 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18003 | #include <stdio.h> | |
18004 | #include <stdlib.h> | |
18005 | int | |
18006 | main () | |
18007 | { | |
18008 | ||
18009 | FILE *f = fopen ("conftest.val", "w"); | |
18010 | if (! f) | |
18011 | exit (1); | |
18012 | if (((long) (sizeof (long long))) < 0) | |
18013 | { | |
18014 | long i = longval (); | |
18015 | if (i != ((long) (sizeof (long long)))) | |
18016 | exit (1); | |
18017 | fprintf (f, "%ld\n", i); | |
18018 | } | |
18019 | else | |
18020 | { | |
18021 | unsigned long i = ulongval (); | |
18022 | if (i != ((long) (sizeof (long long)))) | |
18023 | exit (1); | |
18024 | fprintf (f, "%lu\n", i); | |
18025 | } | |
18026 | exit (ferror (f) || fclose (f) != 0); | |
18027 | ||
18028 | ; | |
18029 | return 0; | |
18030 | } | |
18031 | _ACEOF | |
18032 | rm -f conftest$ac_exeext | |
18033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18034 | (eval $ac_link) 2>&5 | |
18035 | ac_status=$? | |
18036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18039 | (eval $ac_try) 2>&5 | |
18040 | ac_status=$? | |
18041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18042 | (exit $ac_status); }; }; then | |
18043 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18044 | else | |
18045 | echo "$as_me: program exited with status $ac_status" >&5 | |
18046 | echo "$as_me: failed program was:" >&5 | |
18047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18048 | ||
18049 | ( exit $ac_status ) | |
18050 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18051 | See \`config.log' for more details." >&5 | |
18052 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18053 | See \`config.log' for more details." >&2;} | |
18054 | { (exit 1); exit 1; }; } | |
18055 | fi | |
ac1cb8d3 | 18056 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18057 | fi |
18058 | fi | |
18059 | rm -f conftest.val | |
18060 | else | |
18061 | ac_cv_sizeof_long_long=0 | |
18062 | fi | |
18063 | fi | |
18064 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18065 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18066 | cat >>confdefs.h <<_ACEOF | |
18067 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18068 | _ACEOF | |
18069 | ||
18070 | ||
18071 | esac | |
18072 | ||
18073 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18074 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18075 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18077 | else | |
18078 | ||
18079 | if test "$cross_compiling" = yes; then | |
18080 | ||
18081 | case "${host}" in | |
18082 | *-pc-msdosdjgpp ) | |
18083 | wx_cv_sizeof_wchar_t=0 | |
18084 | ;; | |
18085 | * ) | |
18086 | wx_cv_sizeof_wchar_t=4 | |
18087 | ;; | |
18088 | esac | |
18089 | ||
18090 | ||
18091 | else | |
18092 | cat >conftest.$ac_ext <<_ACEOF | |
18093 | /* confdefs.h. */ | |
18094 | _ACEOF | |
18095 | cat confdefs.h >>conftest.$ac_ext | |
18096 | cat >>conftest.$ac_ext <<_ACEOF | |
18097 | /* end confdefs.h. */ | |
18098 | ||
18099 | /* DJGPP only has fake wchar_t: */ | |
18100 | #ifdef __DJGPP__ | |
18101 | # error "fake wchar_t" | |
18102 | #endif | |
18103 | #ifdef HAVE_WCHAR_H | |
18104 | # ifdef __CYGWIN__ | |
18105 | # include <stddef.h> | |
18106 | # endif | |
18107 | # include <wchar.h> | |
18108 | #endif | |
18109 | #ifdef HAVE_STDLIB_H | |
18110 | # include <stdlib.h> | |
18111 | #endif | |
18112 | #include <stdio.h> | |
18113 | int main() | |
18114 | { | |
18115 | FILE *f=fopen("conftestval", "w"); | |
18116 | if (!f) exit(1); | |
18117 | fprintf(f, "%i", sizeof(wchar_t)); | |
18118 | exit(0); | |
18119 | } | |
18120 | ||
18121 | _ACEOF | |
18122 | rm -f conftest$ac_exeext | |
18123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18124 | (eval $ac_link) 2>&5 | |
18125 | ac_status=$? | |
18126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18127 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18129 | (eval $ac_try) 2>&5 | |
18130 | ac_status=$? | |
18131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18132 | (exit $ac_status); }; }; then | |
18133 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18134 | else | |
18135 | echo "$as_me: program exited with status $ac_status" >&5 | |
18136 | echo "$as_me: failed program was:" >&5 | |
18137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18138 | ||
18139 | ( exit $ac_status ) | |
18140 | wx_cv_sizeof_wchar_t=0 | |
18141 | fi | |
ac1cb8d3 | 18142 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18143 | fi |
18144 | ||
18145 | fi | |
18146 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18147 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18148 | ||
18149 | cat >>confdefs.h <<_ACEOF | |
18150 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18151 | _ACEOF | |
18152 | ||
18153 | ||
18154 | # Check whether --enable-largefile or --disable-largefile was given. | |
18155 | if test "${enable_largefile+set}" = set; then | |
18156 | enableval="$enable_largefile" | |
18157 | ||
18158 | fi; | |
18159 | if test "$enable_largefile" != no; then | |
18160 | wx_largefile=no | |
18161 | ||
18162 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18163 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18164 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18166 | else | |
18167 | ||
18168 | cat >conftest.$ac_ext <<_ACEOF | |
18169 | /* confdefs.h. */ | |
18170 | _ACEOF | |
18171 | cat confdefs.h >>conftest.$ac_ext | |
18172 | cat >>conftest.$ac_ext <<_ACEOF | |
18173 | /* end confdefs.h. */ | |
18174 | #define _FILE_OFFSET_BITS 64 | |
18175 | #include <sys/types.h> | |
18176 | int | |
18177 | main () | |
18178 | { | |
18179 | typedef struct { | |
18180 | unsigned int field: sizeof(off_t) == 8; | |
18181 | } wxlf; | |
18182 | ||
18183 | ; | |
18184 | return 0; | |
18185 | } | |
18186 | _ACEOF | |
18187 | rm -f conftest.$ac_objext | |
18188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18190 | ac_status=$? |
ac1cb8d3 VS |
18191 | grep -v '^ *+' conftest.er1 >conftest.err |
18192 | rm -f conftest.er1 | |
18193 | cat conftest.err >&5 | |
a848cd7e SC |
18194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18195 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18196 | { ac_try='test -z "$ac_c_werror_flag" |
18197 | || test ! -s conftest.err' | |
18198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18199 | (eval $ac_try) 2>&5 | |
18200 | ac_status=$? | |
18201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18202 | (exit $ac_status); }; } && | |
18203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18205 | (eval $ac_try) 2>&5 | |
18206 | ac_status=$? | |
18207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18208 | (exit $ac_status); }; }; then | |
18209 | ac_cv_sys_file_offset_bits=64 | |
18210 | else | |
18211 | echo "$as_me: failed program was:" >&5 | |
18212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18213 | ||
18214 | ac_cv_sys_file_offset_bits=no | |
18215 | fi | |
ac1cb8d3 | 18216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18217 | |
18218 | ||
18219 | fi | |
18220 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18221 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18222 | ||
18223 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18224 | wx_largefile=yes | |
18225 | cat >>confdefs.h <<_ACEOF | |
18226 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18227 | _ACEOF | |
18228 | ||
18229 | fi | |
18230 | ||
18231 | if test "x$wx_largefile" != "xyes"; then | |
18232 | ||
18233 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18234 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18235 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18237 | else | |
18238 | ||
18239 | cat >conftest.$ac_ext <<_ACEOF | |
18240 | /* confdefs.h. */ | |
18241 | _ACEOF | |
18242 | cat confdefs.h >>conftest.$ac_ext | |
18243 | cat >>conftest.$ac_ext <<_ACEOF | |
18244 | /* end confdefs.h. */ | |
18245 | #define _LARGE_FILES 1 | |
18246 | #include <sys/types.h> | |
18247 | int | |
18248 | main () | |
18249 | { | |
18250 | typedef struct { | |
18251 | unsigned int field: sizeof(off_t) == 8; | |
18252 | } wxlf; | |
18253 | ||
18254 | ; | |
18255 | return 0; | |
18256 | } | |
18257 | _ACEOF | |
18258 | rm -f conftest.$ac_objext | |
18259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18261 | ac_status=$? |
ac1cb8d3 VS |
18262 | grep -v '^ *+' conftest.er1 >conftest.err |
18263 | rm -f conftest.er1 | |
18264 | cat conftest.err >&5 | |
a848cd7e SC |
18265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18266 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18267 | { ac_try='test -z "$ac_c_werror_flag" |
18268 | || test ! -s conftest.err' | |
18269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18270 | (eval $ac_try) 2>&5 | |
18271 | ac_status=$? | |
18272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18273 | (exit $ac_status); }; } && | |
18274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18276 | (eval $ac_try) 2>&5 | |
18277 | ac_status=$? | |
18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18279 | (exit $ac_status); }; }; then | |
18280 | ac_cv_sys_large_files=1 | |
18281 | else | |
18282 | echo "$as_me: failed program was:" >&5 | |
18283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18284 | ||
18285 | ac_cv_sys_large_files=no | |
18286 | fi | |
ac1cb8d3 | 18287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18288 | |
18289 | ||
18290 | fi | |
18291 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18292 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18293 | ||
18294 | if test "$ac_cv_sys_large_files" != no; then | |
18295 | wx_largefile=yes | |
18296 | cat >>confdefs.h <<_ACEOF | |
18297 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18298 | _ACEOF | |
18299 | ||
18300 | fi | |
18301 | ||
18302 | fi | |
18303 | ||
18304 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18305 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18306 | if test "x$wx_largefile" = "xyes"; then | |
18307 | cat >>confdefs.h <<\_ACEOF | |
18308 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18309 | _ACEOF | |
18310 | ||
18311 | fi | |
18312 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18313 | echo "${ECHO_T}$wx_largefile" >&6 | |
18314 | fi | |
18315 | ||
18316 | ||
18317 | if test "x$wx_largefile" = "xyes"; then | |
18318 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18319 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18320 | else | |
18321 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18322 | fi | |
18323 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18324 | fi | |
18325 | ||
18326 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18327 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18328 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18330 | else | |
18331 | ac_cv_c_bigendian=unknown | |
18332 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18333 | cat >conftest.$ac_ext <<_ACEOF | |
18334 | /* confdefs.h. */ | |
18335 | _ACEOF | |
18336 | cat confdefs.h >>conftest.$ac_ext | |
18337 | cat >>conftest.$ac_ext <<_ACEOF | |
18338 | /* end confdefs.h. */ | |
18339 | #include <sys/types.h> | |
18340 | #include <sys/param.h> | |
18341 | int | |
18342 | main () | |
18343 | { | |
18344 | ||
18345 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18346 | bogus endian macros | |
18347 | #endif | |
18348 | ; | |
18349 | return 0; | |
18350 | } | |
18351 | _ACEOF | |
18352 | rm -f conftest.$ac_objext | |
18353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18354 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18355 | ac_status=$? |
ac1cb8d3 VS |
18356 | grep -v '^ *+' conftest.er1 >conftest.err |
18357 | rm -f conftest.er1 | |
18358 | cat conftest.err >&5 | |
a848cd7e SC |
18359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18360 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18361 | { ac_try='test -z "$ac_c_werror_flag" |
18362 | || test ! -s conftest.err' | |
18363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18364 | (eval $ac_try) 2>&5 | |
18365 | ac_status=$? | |
18366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18367 | (exit $ac_status); }; } && | |
18368 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18370 | (eval $ac_try) 2>&5 | |
18371 | ac_status=$? | |
18372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18373 | (exit $ac_status); }; }; then | |
18374 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18375 | cat >conftest.$ac_ext <<_ACEOF | |
18376 | /* confdefs.h. */ | |
18377 | _ACEOF | |
18378 | cat confdefs.h >>conftest.$ac_ext | |
18379 | cat >>conftest.$ac_ext <<_ACEOF | |
18380 | /* end confdefs.h. */ | |
18381 | #include <sys/types.h> | |
18382 | #include <sys/param.h> | |
18383 | int | |
18384 | main () | |
18385 | { | |
18386 | ||
18387 | #if BYTE_ORDER != BIG_ENDIAN | |
18388 | not big endian | |
18389 | #endif | |
18390 | ; | |
18391 | return 0; | |
18392 | } | |
18393 | _ACEOF | |
18394 | rm -f conftest.$ac_objext | |
18395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18396 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18397 | ac_status=$? |
ac1cb8d3 VS |
18398 | grep -v '^ *+' conftest.er1 >conftest.err |
18399 | rm -f conftest.er1 | |
18400 | cat conftest.err >&5 | |
a848cd7e SC |
18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18402 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18403 | { ac_try='test -z "$ac_c_werror_flag" |
18404 | || test ! -s conftest.err' | |
18405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18406 | (eval $ac_try) 2>&5 | |
18407 | ac_status=$? | |
18408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18409 | (exit $ac_status); }; } && | |
18410 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18412 | (eval $ac_try) 2>&5 | |
18413 | ac_status=$? | |
18414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18415 | (exit $ac_status); }; }; then | |
18416 | ac_cv_c_bigendian=yes | |
18417 | else | |
18418 | echo "$as_me: failed program was:" >&5 | |
18419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18420 | ||
18421 | ac_cv_c_bigendian=no | |
18422 | fi | |
ac1cb8d3 | 18423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18424 | else |
18425 | echo "$as_me: failed program was:" >&5 | |
18426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18427 | ||
18428 | fi | |
ac1cb8d3 | 18429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18430 | if test $ac_cv_c_bigendian = unknown; then |
18431 | if test "$cross_compiling" = yes; then | |
18432 | ac_cv_c_bigendian=unknown | |
18433 | else | |
18434 | cat >conftest.$ac_ext <<_ACEOF | |
18435 | /* confdefs.h. */ | |
18436 | _ACEOF | |
18437 | cat confdefs.h >>conftest.$ac_ext | |
18438 | cat >>conftest.$ac_ext <<_ACEOF | |
18439 | /* end confdefs.h. */ | |
18440 | main () { | |
18441 | /* Are we little or big endian? From Harbison&Steele. */ | |
18442 | union | |
18443 | { | |
18444 | long l; | |
18445 | char c[sizeof (long)]; | |
18446 | } u; | |
18447 | u.l = 1; | |
18448 | exit (u.c[sizeof (long) - 1] == 1); | |
18449 | } | |
18450 | _ACEOF | |
18451 | rm -f conftest$ac_exeext | |
18452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18453 | (eval $ac_link) 2>&5 | |
18454 | ac_status=$? | |
18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18456 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18458 | (eval $ac_try) 2>&5 | |
18459 | ac_status=$? | |
18460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18461 | (exit $ac_status); }; }; then | |
18462 | ac_cv_c_bigendian=no | |
18463 | else | |
18464 | echo "$as_me: program exited with status $ac_status" >&5 | |
18465 | echo "$as_me: failed program was:" >&5 | |
18466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18467 | ||
18468 | ( exit $ac_status ) | |
18469 | ac_cv_c_bigendian=yes | |
18470 | fi | |
ac1cb8d3 | 18471 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18472 | fi |
18473 | fi | |
18474 | fi | |
18475 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18476 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18477 | if test $ac_cv_c_bigendian = unknown; then | |
18478 | { 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 | |
18479 | 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;} | |
18480 | fi | |
18481 | if test $ac_cv_c_bigendian = yes; then | |
18482 | cat >>confdefs.h <<\_ACEOF | |
18483 | #define WORDS_BIGENDIAN 1 | |
18484 | _ACEOF | |
18485 | ||
18486 | fi | |
18487 | ||
18488 | ||
18489 | ac_ext=cc | |
18490 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18491 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18492 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18493 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18494 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18495 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18496 | if test -z "$CXXCPP"; then | |
18497 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18499 | else | |
18500 | # Double quotes because CXXCPP needs to be expanded | |
18501 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18502 | do | |
18503 | ac_preproc_ok=false | |
18504 | for ac_cxx_preproc_warn_flag in '' yes | |
18505 | do | |
18506 | # Use a header file that comes with gcc, so configuring glibc | |
18507 | # with a fresh cross-compiler works. | |
18508 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18509 | # <limits.h> exists even on freestanding compilers. | |
18510 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18511 | # not just through cpp. "Syntax error" is here to catch this case. | |
18512 | cat >conftest.$ac_ext <<_ACEOF | |
18513 | /* confdefs.h. */ | |
18514 | _ACEOF | |
18515 | cat confdefs.h >>conftest.$ac_ext | |
18516 | cat >>conftest.$ac_ext <<_ACEOF | |
18517 | /* end confdefs.h. */ | |
18518 | #ifdef __STDC__ | |
18519 | # include <limits.h> | |
18520 | #else | |
18521 | # include <assert.h> | |
18522 | #endif | |
ac1cb8d3 | 18523 | Syntax error |
a848cd7e SC |
18524 | _ACEOF |
18525 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18526 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18527 | ac_status=$? | |
18528 | grep -v '^ *+' conftest.er1 >conftest.err | |
18529 | rm -f conftest.er1 | |
18530 | cat conftest.err >&5 | |
18531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18532 | (exit $ac_status); } >/dev/null; then | |
18533 | if test -s conftest.err; then | |
18534 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18535 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18536 | else |
18537 | ac_cpp_err= | |
18538 | fi | |
18539 | else | |
18540 | ac_cpp_err=yes | |
18541 | fi | |
18542 | if test -z "$ac_cpp_err"; then | |
18543 | : | |
18544 | else | |
18545 | echo "$as_me: failed program was:" >&5 | |
18546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18547 | ||
18548 | # Broken: fails on valid input. | |
18549 | continue | |
18550 | fi | |
18551 | rm -f conftest.err conftest.$ac_ext | |
18552 | ||
18553 | # OK, works on sane cases. Now check whether non-existent headers | |
18554 | # can be detected and how. | |
18555 | cat >conftest.$ac_ext <<_ACEOF | |
18556 | /* confdefs.h. */ | |
18557 | _ACEOF | |
18558 | cat confdefs.h >>conftest.$ac_ext | |
18559 | cat >>conftest.$ac_ext <<_ACEOF | |
18560 | /* end confdefs.h. */ | |
18561 | #include <ac_nonexistent.h> | |
18562 | _ACEOF | |
18563 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18564 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18565 | ac_status=$? | |
18566 | grep -v '^ *+' conftest.er1 >conftest.err | |
18567 | rm -f conftest.er1 | |
18568 | cat conftest.err >&5 | |
18569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18570 | (exit $ac_status); } >/dev/null; then | |
18571 | if test -s conftest.err; then | |
18572 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18573 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18574 | else |
18575 | ac_cpp_err= | |
18576 | fi | |
18577 | else | |
18578 | ac_cpp_err=yes | |
18579 | fi | |
18580 | if test -z "$ac_cpp_err"; then | |
18581 | # Broken: success on invalid input. | |
18582 | continue | |
18583 | else | |
18584 | echo "$as_me: failed program was:" >&5 | |
18585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18586 | ||
18587 | # Passes both tests. | |
18588 | ac_preproc_ok=: | |
18589 | break | |
18590 | fi | |
18591 | rm -f conftest.err conftest.$ac_ext | |
18592 | ||
18593 | done | |
18594 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18595 | rm -f conftest.err conftest.$ac_ext | |
18596 | if $ac_preproc_ok; then | |
18597 | break | |
18598 | fi | |
18599 | ||
18600 | done | |
18601 | ac_cv_prog_CXXCPP=$CXXCPP | |
18602 | ||
18603 | fi | |
18604 | CXXCPP=$ac_cv_prog_CXXCPP | |
18605 | else | |
18606 | ac_cv_prog_CXXCPP=$CXXCPP | |
18607 | fi | |
18608 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18609 | echo "${ECHO_T}$CXXCPP" >&6 | |
18610 | ac_preproc_ok=false | |
18611 | for ac_cxx_preproc_warn_flag in '' yes | |
18612 | do | |
18613 | # Use a header file that comes with gcc, so configuring glibc | |
18614 | # with a fresh cross-compiler works. | |
18615 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18616 | # <limits.h> exists even on freestanding compilers. | |
18617 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18618 | # not just through cpp. "Syntax error" is here to catch this case. | |
18619 | cat >conftest.$ac_ext <<_ACEOF | |
18620 | /* confdefs.h. */ | |
18621 | _ACEOF | |
18622 | cat confdefs.h >>conftest.$ac_ext | |
18623 | cat >>conftest.$ac_ext <<_ACEOF | |
18624 | /* end confdefs.h. */ | |
18625 | #ifdef __STDC__ | |
18626 | # include <limits.h> | |
18627 | #else | |
18628 | # include <assert.h> | |
18629 | #endif | |
ac1cb8d3 | 18630 | Syntax error |
a848cd7e SC |
18631 | _ACEOF |
18632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18634 | ac_status=$? | |
18635 | grep -v '^ *+' conftest.er1 >conftest.err | |
18636 | rm -f conftest.er1 | |
18637 | cat conftest.err >&5 | |
18638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18639 | (exit $ac_status); } >/dev/null; then | |
18640 | if test -s conftest.err; then | |
18641 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18642 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18643 | else |
18644 | ac_cpp_err= | |
18645 | fi | |
18646 | else | |
18647 | ac_cpp_err=yes | |
18648 | fi | |
18649 | if test -z "$ac_cpp_err"; then | |
18650 | : | |
18651 | else | |
18652 | echo "$as_me: failed program was:" >&5 | |
18653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18654 | ||
18655 | # Broken: fails on valid input. | |
18656 | continue | |
18657 | fi | |
18658 | rm -f conftest.err conftest.$ac_ext | |
18659 | ||
18660 | # OK, works on sane cases. Now check whether non-existent headers | |
18661 | # can be detected and how. | |
18662 | cat >conftest.$ac_ext <<_ACEOF | |
18663 | /* confdefs.h. */ | |
18664 | _ACEOF | |
18665 | cat confdefs.h >>conftest.$ac_ext | |
18666 | cat >>conftest.$ac_ext <<_ACEOF | |
18667 | /* end confdefs.h. */ | |
18668 | #include <ac_nonexistent.h> | |
18669 | _ACEOF | |
18670 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18671 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18672 | ac_status=$? | |
18673 | grep -v '^ *+' conftest.er1 >conftest.err | |
18674 | rm -f conftest.er1 | |
18675 | cat conftest.err >&5 | |
18676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18677 | (exit $ac_status); } >/dev/null; then | |
18678 | if test -s conftest.err; then | |
18679 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18680 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18681 | else |
18682 | ac_cpp_err= | |
18683 | fi | |
18684 | else | |
18685 | ac_cpp_err=yes | |
18686 | fi | |
18687 | if test -z "$ac_cpp_err"; then | |
18688 | # Broken: success on invalid input. | |
18689 | continue | |
18690 | else | |
18691 | echo "$as_me: failed program was:" >&5 | |
18692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18693 | ||
18694 | # Passes both tests. | |
18695 | ac_preproc_ok=: | |
18696 | break | |
18697 | fi | |
18698 | rm -f conftest.err conftest.$ac_ext | |
18699 | ||
18700 | done | |
18701 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18702 | rm -f conftest.err conftest.$ac_ext | |
18703 | if $ac_preproc_ok; then | |
18704 | : | |
18705 | else | |
18706 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18707 | See \`config.log' for more details." >&5 | |
18708 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18709 | See \`config.log' for more details." >&2;} | |
18710 | { (exit 1); exit 1; }; } | |
18711 | fi | |
18712 | ||
18713 | ac_ext=cc | |
18714 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18718 | ||
18719 | ||
18720 | ||
18721 | ||
18722 | ||
18723 | ac_ext=cc | |
18724 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18725 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18726 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18727 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18728 | ||
18729 | ||
18730 | ||
18731 | for ac_header in iostream | |
18732 | do | |
18733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18739 | fi | |
18740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18741 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18742 | else | |
18743 | # Is the header compilable? | |
18744 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18745 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18746 | cat >conftest.$ac_ext <<_ACEOF | |
18747 | /* confdefs.h. */ | |
18748 | _ACEOF | |
18749 | cat confdefs.h >>conftest.$ac_ext | |
18750 | cat >>conftest.$ac_ext <<_ACEOF | |
18751 | /* end confdefs.h. */ | |
18752 | $ac_includes_default | |
18753 | #include <$ac_header> | |
18754 | _ACEOF | |
18755 | rm -f conftest.$ac_objext | |
18756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18757 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18758 | ac_status=$? |
ac1cb8d3 VS |
18759 | grep -v '^ *+' conftest.er1 >conftest.err |
18760 | rm -f conftest.er1 | |
18761 | cat conftest.err >&5 | |
a848cd7e SC |
18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18763 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18764 | { ac_try='test -z "$ac_cxx_werror_flag" |
18765 | || test ! -s conftest.err' | |
18766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18767 | (eval $ac_try) 2>&5 | |
18768 | ac_status=$? | |
18769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18770 | (exit $ac_status); }; } && | |
18771 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18773 | (eval $ac_try) 2>&5 | |
18774 | ac_status=$? | |
18775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18776 | (exit $ac_status); }; }; then | |
18777 | ac_header_compiler=yes | |
18778 | else | |
18779 | echo "$as_me: failed program was:" >&5 | |
18780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18781 | ||
18782 | ac_header_compiler=no | |
18783 | fi | |
ac1cb8d3 | 18784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18785 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18786 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18787 | ||
18788 | # Is the header present? | |
18789 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18790 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18791 | cat >conftest.$ac_ext <<_ACEOF | |
18792 | /* confdefs.h. */ | |
18793 | _ACEOF | |
18794 | cat confdefs.h >>conftest.$ac_ext | |
18795 | cat >>conftest.$ac_ext <<_ACEOF | |
18796 | /* end confdefs.h. */ | |
18797 | #include <$ac_header> | |
18798 | _ACEOF | |
18799 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18800 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18801 | ac_status=$? | |
18802 | grep -v '^ *+' conftest.er1 >conftest.err | |
18803 | rm -f conftest.er1 | |
18804 | cat conftest.err >&5 | |
18805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18806 | (exit $ac_status); } >/dev/null; then | |
18807 | if test -s conftest.err; then | |
18808 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18809 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18810 | else |
18811 | ac_cpp_err= | |
18812 | fi | |
18813 | else | |
18814 | ac_cpp_err=yes | |
18815 | fi | |
18816 | if test -z "$ac_cpp_err"; then | |
18817 | ac_header_preproc=yes | |
18818 | else | |
18819 | echo "$as_me: failed program was:" >&5 | |
18820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18821 | ||
18822 | ac_header_preproc=no | |
18823 | fi | |
18824 | rm -f conftest.err conftest.$ac_ext | |
18825 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18826 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18827 | ||
18828 | # So? What about this header? | |
ac1cb8d3 VS |
18829 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18830 | yes:no: ) | |
a848cd7e SC |
18831 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18832 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
18833 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18834 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18835 | ac_header_preproc=yes | |
a848cd7e | 18836 | ;; |
ac1cb8d3 | 18837 | no:yes:* ) |
a848cd7e SC |
18838 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18839 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
18840 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18841 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18842 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18843 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18844 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18845 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
18846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18847 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
18848 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18849 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
18850 | ( |
18851 | cat <<\_ASBOX | |
ac1cb8d3 VS |
18852 | ## ----------------------------------------- ## |
18853 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
18854 | ## ----------------------------------------- ## | |
a848cd7e SC |
18855 | _ASBOX |
18856 | ) | | |
18857 | sed "s/^/$as_me: WARNING: /" >&2 | |
18858 | ;; | |
18859 | esac | |
18860 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18861 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18862 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18864 | else | |
ac1cb8d3 | 18865 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
18866 | fi |
18867 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18868 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18869 | ||
18870 | fi | |
18871 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18872 | cat >>confdefs.h <<_ACEOF | |
18873 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18874 | _ACEOF | |
18875 | ||
18876 | fi | |
18877 | ||
18878 | done | |
18879 | ||
18880 | ||
18881 | if test "$ac_cv_header_iostream" = "yes" ; then | |
18882 | : | |
18883 | else | |
18884 | cat >>confdefs.h <<\_ACEOF | |
18885 | #define wxUSE_IOSTREAMH 1 | |
18886 | _ACEOF | |
18887 | ||
18888 | fi | |
18889 | ||
18890 | ac_ext=c | |
18891 | ac_cpp='$CPP $CPPFLAGS' | |
18892 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18893 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18894 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18895 | ||
18896 | ||
18897 | ||
18898 | ||
18899 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
18900 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18901 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18903 | else | |
18904 | ||
18905 | ||
18906 | ||
18907 | ac_ext=cc | |
18908 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18909 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18910 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18911 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18912 | ||
18913 | ||
18914 | cat >conftest.$ac_ext <<_ACEOF | |
18915 | /* confdefs.h. */ | |
18916 | _ACEOF | |
18917 | cat confdefs.h >>conftest.$ac_ext | |
18918 | cat >>conftest.$ac_ext <<_ACEOF | |
18919 | /* end confdefs.h. */ | |
18920 | ||
18921 | ||
18922 | int | |
18923 | main () | |
18924 | { | |
18925 | ||
18926 | bool b = true; | |
18927 | ||
18928 | return 0; | |
18929 | ||
18930 | ; | |
18931 | return 0; | |
18932 | } | |
18933 | _ACEOF | |
18934 | rm -f conftest.$ac_objext | |
18935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18936 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18937 | ac_status=$? |
ac1cb8d3 VS |
18938 | grep -v '^ *+' conftest.er1 >conftest.err |
18939 | rm -f conftest.er1 | |
18940 | cat conftest.err >&5 | |
a848cd7e SC |
18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18942 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18943 | { ac_try='test -z "$ac_cxx_werror_flag" |
18944 | || test ! -s conftest.err' | |
18945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18946 | (eval $ac_try) 2>&5 | |
18947 | ac_status=$? | |
18948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18949 | (exit $ac_status); }; } && | |
18950 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18952 | (eval $ac_try) 2>&5 | |
18953 | ac_status=$? | |
18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18955 | (exit $ac_status); }; }; then | |
18956 | ||
18957 | wx_cv_cpp_bool=yes | |
18958 | ||
18959 | else | |
18960 | echo "$as_me: failed program was:" >&5 | |
18961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18962 | ||
18963 | ||
18964 | wx_cv_cpp_bool=no | |
18965 | ||
18966 | ||
18967 | fi | |
ac1cb8d3 | 18968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18969 | |
18970 | ac_ext=c | |
18971 | ac_cpp='$CPP $CPPFLAGS' | |
18972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18975 | ||
18976 | ||
18977 | fi | |
18978 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18979 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
18980 | ||
18981 | if test "$wx_cv_cpp_bool" = "yes"; then | |
18982 | cat >>confdefs.h <<\_ACEOF | |
18983 | #define HAVE_BOOL 1 | |
18984 | _ACEOF | |
18985 | ||
18986 | fi | |
18987 | ||
18988 | ||
18989 | ||
18990 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
18991 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18992 | if test "${wx_cv_explicit+set}" = set; then | |
18993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18994 | else | |
18995 | ||
18996 | ||
18997 | ||
18998 | ac_ext=cc | |
18999 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19000 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19001 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19002 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19003 | ||
19004 | ||
19005 | cat >conftest.$ac_ext <<_ACEOF | |
19006 | /* confdefs.h. */ | |
19007 | _ACEOF | |
19008 | cat confdefs.h >>conftest.$ac_ext | |
19009 | cat >>conftest.$ac_ext <<_ACEOF | |
19010 | /* end confdefs.h. */ | |
19011 | ||
19012 | class Foo { public: explicit Foo(int) {} }; | |
19013 | ||
19014 | int | |
19015 | main () | |
19016 | { | |
19017 | ||
19018 | return 0; | |
19019 | ||
19020 | ; | |
19021 | return 0; | |
19022 | } | |
19023 | _ACEOF | |
19024 | rm -f conftest.$ac_objext | |
19025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19026 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19027 | ac_status=$? |
ac1cb8d3 VS |
19028 | grep -v '^ *+' conftest.er1 >conftest.err |
19029 | rm -f conftest.er1 | |
19030 | cat conftest.err >&5 | |
a848cd7e SC |
19031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19032 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19033 | { ac_try='test -z "$ac_cxx_werror_flag" |
19034 | || test ! -s conftest.err' | |
19035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19036 | (eval $ac_try) 2>&5 | |
19037 | ac_status=$? | |
19038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19039 | (exit $ac_status); }; } && | |
19040 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19042 | (eval $ac_try) 2>&5 | |
19043 | ac_status=$? | |
19044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19045 | (exit $ac_status); }; }; then | |
19046 | ||
19047 | cat >conftest.$ac_ext <<_ACEOF | |
19048 | /* confdefs.h. */ | |
19049 | _ACEOF | |
19050 | cat confdefs.h >>conftest.$ac_ext | |
19051 | cat >>conftest.$ac_ext <<_ACEOF | |
19052 | /* end confdefs.h. */ | |
19053 | ||
19054 | class Foo { public: explicit Foo(int) {} }; | |
19055 | static void TakeFoo(const Foo& foo) { } | |
19056 | ||
19057 | int | |
19058 | main () | |
19059 | { | |
19060 | ||
19061 | TakeFoo(17); | |
19062 | return 0; | |
19063 | ||
19064 | ; | |
19065 | return 0; | |
19066 | } | |
19067 | _ACEOF | |
19068 | rm -f conftest.$ac_objext | |
19069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19070 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19071 | ac_status=$? |
ac1cb8d3 VS |
19072 | grep -v '^ *+' conftest.er1 >conftest.err |
19073 | rm -f conftest.er1 | |
19074 | cat conftest.err >&5 | |
a848cd7e SC |
19075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19076 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19077 | { ac_try='test -z "$ac_cxx_werror_flag" |
19078 | || test ! -s conftest.err' | |
19079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19080 | (eval $ac_try) 2>&5 | |
19081 | ac_status=$? | |
19082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19083 | (exit $ac_status); }; } && | |
19084 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19086 | (eval $ac_try) 2>&5 | |
19087 | ac_status=$? | |
19088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19089 | (exit $ac_status); }; }; then | |
19090 | wx_cv_explicit=no | |
19091 | else | |
19092 | echo "$as_me: failed program was:" >&5 | |
19093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19094 | ||
19095 | wx_cv_explicit=yes | |
19096 | ||
19097 | fi | |
ac1cb8d3 | 19098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19099 | |
19100 | else | |
19101 | echo "$as_me: failed program was:" >&5 | |
19102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19103 | ||
19104 | wx_cv_explicit=no | |
19105 | ||
19106 | fi | |
ac1cb8d3 | 19107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19108 | |
19109 | ac_ext=c | |
19110 | ac_cpp='$CPP $CPPFLAGS' | |
19111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19114 | ||
19115 | ||
19116 | fi | |
19117 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19118 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19119 | ||
19120 | if test "$wx_cv_explicit" = "yes"; then | |
19121 | cat >>confdefs.h <<\_ACEOF | |
19122 | #define HAVE_EXPLICIT 1 | |
19123 | _ACEOF | |
19124 | ||
19125 | fi | |
19126 | ||
19127 | ||
19128 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19129 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19130 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19132 | else | |
19133 | ||
19134 | ||
19135 | ac_ext=cc | |
19136 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19137 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19138 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19139 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19140 | ||
19141 | cat >conftest.$ac_ext <<_ACEOF | |
19142 | /* confdefs.h. */ | |
19143 | _ACEOF | |
19144 | cat confdefs.h >>conftest.$ac_ext | |
19145 | cat >>conftest.$ac_ext <<_ACEOF | |
19146 | /* end confdefs.h. */ | |
19147 | ||
19148 | int | |
19149 | main () | |
19150 | { | |
19151 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19152 | ; | |
19153 | return 0; | |
19154 | } | |
19155 | _ACEOF | |
19156 | rm -f conftest.$ac_objext | |
19157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19158 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19159 | ac_status=$? |
ac1cb8d3 VS |
19160 | grep -v '^ *+' conftest.er1 >conftest.err |
19161 | rm -f conftest.er1 | |
19162 | cat conftest.err >&5 | |
a848cd7e SC |
19163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19164 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19165 | { ac_try='test -z "$ac_cxx_werror_flag" |
19166 | || test ! -s conftest.err' | |
19167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19168 | (eval $ac_try) 2>&5 | |
19169 | ac_status=$? | |
19170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19171 | (exit $ac_status); }; } && | |
19172 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19174 | (eval $ac_try) 2>&5 | |
19175 | ac_status=$? | |
19176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19177 | (exit $ac_status); }; }; then | |
19178 | ac_cv_cxx_const_cast=yes | |
19179 | else | |
19180 | echo "$as_me: failed program was:" >&5 | |
19181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19182 | ||
19183 | ac_cv_cxx_const_cast=no | |
19184 | fi | |
ac1cb8d3 | 19185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19186 | ac_ext=c |
19187 | ac_cpp='$CPP $CPPFLAGS' | |
19188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19191 | ||
19192 | ||
19193 | fi | |
19194 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19195 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19196 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19197 | ||
19198 | cat >>confdefs.h <<\_ACEOF | |
19199 | #define HAVE_CONST_CAST | |
19200 | _ACEOF | |
19201 | ||
19202 | fi | |
19203 | ||
19204 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 | |
19205 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19206 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19208 | else | |
19209 | ||
19210 | ||
19211 | ac_ext=cc | |
19212 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19213 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19214 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19215 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19216 | ||
19217 | cat >conftest.$ac_ext <<_ACEOF | |
19218 | /* confdefs.h. */ | |
19219 | _ACEOF | |
19220 | cat confdefs.h >>conftest.$ac_ext | |
19221 | cat >>conftest.$ac_ext <<_ACEOF | |
19222 | /* end confdefs.h. */ | |
19223 | #include <typeinfo> | |
19224 | class Base { public : Base () {} virtual void f () = 0; }; | |
19225 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19226 | int g (Derived&) { return 0; } | |
19227 | int | |
19228 | main () | |
19229 | { | |
19230 | ||
19231 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19232 | ; | |
19233 | return 0; | |
19234 | } | |
19235 | _ACEOF | |
19236 | rm -f conftest.$ac_objext | |
19237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19238 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19239 | ac_status=$? |
ac1cb8d3 VS |
19240 | grep -v '^ *+' conftest.er1 >conftest.err |
19241 | rm -f conftest.er1 | |
19242 | cat conftest.err >&5 | |
a848cd7e SC |
19243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19244 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19245 | { ac_try='test -z "$ac_cxx_werror_flag" |
19246 | || test ! -s conftest.err' | |
19247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19248 | (eval $ac_try) 2>&5 | |
19249 | ac_status=$? | |
19250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19251 | (exit $ac_status); }; } && | |
19252 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19254 | (eval $ac_try) 2>&5 | |
19255 | ac_status=$? | |
19256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19257 | (exit $ac_status); }; }; then | |
19258 | ac_cv_cxx_static_cast=yes | |
19259 | else | |
19260 | echo "$as_me: failed program was:" >&5 | |
19261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19262 | ||
19263 | ac_cv_cxx_static_cast=no | |
19264 | fi | |
ac1cb8d3 | 19265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19266 | ac_ext=c |
19267 | ac_cpp='$CPP $CPPFLAGS' | |
19268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19271 | ||
19272 | ||
19273 | fi | |
19274 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19275 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19276 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19277 | ||
19278 | cat >>confdefs.h <<\_ACEOF | |
19279 | #define HAVE_STATIC_CAST | |
19280 | _ACEOF | |
19281 | ||
19282 | fi | |
19283 | ||
19284 | ||
19285 | if test "$wxUSE_STL" = "yes"; then | |
19286 | ac_ext=cc | |
19287 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19288 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19289 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19290 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19291 | ||
19292 | ||
19293 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19294 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19295 | cat >conftest.$ac_ext <<_ACEOF | |
19296 | /* confdefs.h. */ | |
19297 | _ACEOF | |
19298 | cat confdefs.h >>conftest.$ac_ext | |
19299 | cat >>conftest.$ac_ext <<_ACEOF | |
19300 | /* end confdefs.h. */ | |
19301 | #include <string> | |
19302 | #include <functional> | |
19303 | #include <algorithm> | |
19304 | #include <vector> | |
19305 | #include <list> | |
19306 | int | |
19307 | main () | |
19308 | { | |
19309 | std::vector<int> moo; | |
19310 | std::list<int> foo; | |
19311 | std::vector<int>::iterator it = | |
19312 | std::find_if(moo.begin(), moo.end(), | |
19313 | std::bind2nd(std::less<int>(), 3)); | |
19314 | ; | |
19315 | return 0; | |
19316 | } | |
19317 | _ACEOF | |
19318 | rm -f conftest.$ac_objext | |
19319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19320 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19321 | ac_status=$? |
ac1cb8d3 VS |
19322 | grep -v '^ *+' conftest.er1 >conftest.err |
19323 | rm -f conftest.er1 | |
19324 | cat conftest.err >&5 | |
a848cd7e SC |
19325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19326 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19327 | { ac_try='test -z "$ac_cxx_werror_flag" |
19328 | || test ! -s conftest.err' | |
19329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19330 | (eval $ac_try) 2>&5 | |
19331 | ac_status=$? | |
19332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19333 | (exit $ac_status); }; } && | |
19334 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19336 | (eval $ac_try) 2>&5 | |
19337 | ac_status=$? | |
19338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19339 | (exit $ac_status); }; }; then | |
19340 | echo "$as_me:$LINENO: result: yes" >&5 | |
19341 | echo "${ECHO_T}yes" >&6 | |
19342 | else | |
19343 | echo "$as_me: failed program was:" >&5 | |
19344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19345 | ||
19346 | echo "$as_me:$LINENO: result: no" >&5 | |
19347 | echo "${ECHO_T}no" >&6 | |
19348 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19349 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19350 | { (exit 1); exit 1; }; } | |
19351 | fi | |
ac1cb8d3 | 19352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19353 | |
19354 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19355 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19356 | cat >conftest.$ac_ext <<_ACEOF | |
19357 | /* confdefs.h. */ | |
19358 | _ACEOF | |
19359 | cat confdefs.h >>conftest.$ac_ext | |
19360 | cat >>conftest.$ac_ext <<_ACEOF | |
19361 | /* end confdefs.h. */ | |
19362 | #include <string> | |
19363 | int | |
19364 | main () | |
19365 | { | |
19366 | std::wstring foo; | |
19367 | ; | |
19368 | return 0; | |
19369 | } | |
19370 | _ACEOF | |
19371 | rm -f conftest.$ac_objext | |
19372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19373 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19374 | ac_status=$? |
ac1cb8d3 VS |
19375 | grep -v '^ *+' conftest.er1 >conftest.err |
19376 | rm -f conftest.er1 | |
19377 | cat conftest.err >&5 | |
a848cd7e SC |
19378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19379 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19380 | { ac_try='test -z "$ac_cxx_werror_flag" |
19381 | || test ! -s conftest.err' | |
19382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19383 | (eval $ac_try) 2>&5 | |
19384 | ac_status=$? | |
19385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19386 | (exit $ac_status); }; } && | |
19387 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19389 | (eval $ac_try) 2>&5 | |
19390 | ac_status=$? | |
19391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19392 | (exit $ac_status); }; }; then | |
19393 | echo "$as_me:$LINENO: result: yes" >&5 | |
19394 | echo "${ECHO_T}yes" >&6 | |
19395 | cat >>confdefs.h <<\_ACEOF | |
19396 | #define HAVE_STD_WSTRING 1 | |
19397 | _ACEOF | |
19398 | ||
19399 | else | |
19400 | echo "$as_me: failed program was:" >&5 | |
19401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19402 | ||
19403 | echo "$as_me:$LINENO: result: no" >&5 | |
19404 | echo "${ECHO_T}no" >&6 | |
19405 | fi | |
ac1cb8d3 | 19406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19407 | |
19408 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19409 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19410 | cat >conftest.$ac_ext <<_ACEOF | |
19411 | /* confdefs.h. */ | |
19412 | _ACEOF | |
19413 | cat confdefs.h >>conftest.$ac_ext | |
19414 | cat >>conftest.$ac_ext <<_ACEOF | |
19415 | /* end confdefs.h. */ | |
19416 | #include <string> | |
19417 | int | |
19418 | main () | |
19419 | { | |
19420 | std::string foo, bar; | |
19421 | foo.compare(bar); | |
19422 | foo.compare(1, 1, bar); | |
19423 | foo.compare(1, 1, bar, 1, 1); | |
19424 | foo.compare(""); | |
19425 | foo.compare(1, 1, ""); | |
19426 | foo.compare(1, 1, "", 2); | |
19427 | ; | |
19428 | return 0; | |
19429 | } | |
19430 | _ACEOF | |
19431 | rm -f conftest.$ac_objext | |
19432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19433 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19434 | ac_status=$? |
ac1cb8d3 VS |
19435 | grep -v '^ *+' conftest.er1 >conftest.err |
19436 | rm -f conftest.er1 | |
19437 | cat conftest.err >&5 | |
a848cd7e SC |
19438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19439 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19440 | { ac_try='test -z "$ac_cxx_werror_flag" |
19441 | || test ! -s conftest.err' | |
19442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19443 | (eval $ac_try) 2>&5 | |
19444 | ac_status=$? | |
19445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19446 | (exit $ac_status); }; } && | |
19447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19449 | (eval $ac_try) 2>&5 | |
19450 | ac_status=$? | |
19451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19452 | (exit $ac_status); }; }; then | |
19453 | echo "$as_me:$LINENO: result: yes" >&5 | |
19454 | echo "${ECHO_T}yes" >&6 | |
19455 | cat >>confdefs.h <<\_ACEOF | |
19456 | #define HAVE_STD_STRING_COMPARE 1 | |
19457 | _ACEOF | |
19458 | ||
19459 | else | |
19460 | echo "$as_me: failed program was:" >&5 | |
19461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19462 | ||
19463 | echo "$as_me:$LINENO: result: no" >&5 | |
19464 | echo "${ECHO_T}no" >&6 | |
19465 | fi | |
ac1cb8d3 | 19466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19467 | |
19468 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19469 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19470 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19471 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19473 | fi | |
19474 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19475 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19476 | else | |
19477 | # Is the header compilable? | |
19478 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19479 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19480 | cat >conftest.$ac_ext <<_ACEOF | |
19481 | /* confdefs.h. */ | |
19482 | _ACEOF | |
19483 | cat confdefs.h >>conftest.$ac_ext | |
19484 | cat >>conftest.$ac_ext <<_ACEOF | |
19485 | /* end confdefs.h. */ | |
19486 | $ac_includes_default | |
19487 | #include <hash_map> | |
19488 | _ACEOF | |
19489 | rm -f conftest.$ac_objext | |
19490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19491 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19492 | ac_status=$? |
ac1cb8d3 VS |
19493 | grep -v '^ *+' conftest.er1 >conftest.err |
19494 | rm -f conftest.er1 | |
19495 | cat conftest.err >&5 | |
bdcade0a MB |
19496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19497 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19498 | { ac_try='test -z "$ac_cxx_werror_flag" |
19499 | || test ! -s conftest.err' | |
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 | ac_header_compiler=yes | |
19512 | else | |
19513 | echo "$as_me: failed program was:" >&5 | |
19514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19515 | ||
19516 | ac_header_compiler=no | |
19517 | fi | |
ac1cb8d3 | 19518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19519 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19520 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19521 | ||
19522 | # Is the header present? | |
19523 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19524 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19525 | cat >conftest.$ac_ext <<_ACEOF | |
19526 | /* confdefs.h. */ | |
19527 | _ACEOF | |
19528 | cat confdefs.h >>conftest.$ac_ext | |
19529 | cat >>conftest.$ac_ext <<_ACEOF | |
19530 | /* end confdefs.h. */ | |
19531 | #include <hash_map> | |
19532 | _ACEOF | |
19533 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19534 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19535 | ac_status=$? | |
19536 | grep -v '^ *+' conftest.er1 >conftest.err | |
19537 | rm -f conftest.er1 | |
19538 | cat conftest.err >&5 | |
19539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19540 | (exit $ac_status); } >/dev/null; then | |
19541 | if test -s conftest.err; then | |
19542 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19543 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19544 | else |
19545 | ac_cpp_err= | |
19546 | fi | |
19547 | else | |
19548 | ac_cpp_err=yes | |
19549 | fi | |
19550 | if test -z "$ac_cpp_err"; then | |
19551 | ac_header_preproc=yes | |
19552 | else | |
19553 | echo "$as_me: failed program was:" >&5 | |
19554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19555 | ||
19556 | ac_header_preproc=no | |
19557 | fi | |
19558 | rm -f conftest.err conftest.$ac_ext | |
19559 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19560 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19561 | ||
19562 | # So? What about this header? | |
ac1cb8d3 VS |
19563 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19564 | yes:no: ) | |
bdcade0a MB |
19565 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19566 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19567 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19568 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19569 | ac_header_preproc=yes | |
bdcade0a | 19570 | ;; |
ac1cb8d3 | 19571 | no:yes:* ) |
bdcade0a MB |
19572 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19573 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19574 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19575 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19576 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19577 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19578 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19579 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19580 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19581 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19582 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19583 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19584 | ( |
19585 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19586 | ## ----------------------------------------- ## |
19587 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19588 | ## ----------------------------------------- ## | |
bdcade0a MB |
19589 | _ASBOX |
19590 | ) | | |
19591 | sed "s/^/$as_me: WARNING: /" >&2 | |
19592 | ;; | |
19593 | esac | |
19594 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19595 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19596 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19598 | else | |
19599 | ac_cv_header_hash_map=$ac_header_preproc | |
19600 | fi | |
19601 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19602 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19603 | ||
19604 | fi | |
19605 | if test $ac_cv_header_hash_map = yes; then | |
19606 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19607 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19608 | cat >conftest.$ac_ext <<_ACEOF | |
19609 | /* confdefs.h. */ | |
19610 | _ACEOF | |
19611 | cat confdefs.h >>conftest.$ac_ext | |
19612 | cat >>conftest.$ac_ext <<_ACEOF | |
19613 | /* end confdefs.h. */ | |
19614 | #include <hash_map> | |
19615 | #include <hash_set> | |
19616 | int | |
19617 | main () | |
19618 | { | |
19619 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19620 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19621 | ; | |
19622 | return 0; | |
19623 | } | |
19624 | _ACEOF | |
19625 | rm -f conftest.$ac_objext | |
19626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19627 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19628 | ac_status=$? |
ac1cb8d3 VS |
19629 | grep -v '^ *+' conftest.er1 >conftest.err |
19630 | rm -f conftest.er1 | |
19631 | cat conftest.err >&5 | |
bdcade0a MB |
19632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19633 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19634 | { ac_try='test -z "$ac_cxx_werror_flag" |
19635 | || test ! -s conftest.err' | |
19636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19637 | (eval $ac_try) 2>&5 | |
19638 | ac_status=$? | |
19639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19640 | (exit $ac_status); }; } && | |
19641 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19643 | (eval $ac_try) 2>&5 | |
19644 | ac_status=$? | |
19645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19646 | (exit $ac_status); }; }; then | |
19647 | echo "$as_me:$LINENO: result: yes" >&5 | |
19648 | echo "${ECHO_T}yes" >&6 | |
19649 | cat >>confdefs.h <<\_ACEOF | |
19650 | #define HAVE_HASH_MAP 1 | |
19651 | _ACEOF | |
19652 | ||
19653 | cat >>confdefs.h <<\_ACEOF | |
19654 | #define HAVE_STD_HASH_MAP 1 | |
19655 | _ACEOF | |
19656 | ||
19657 | else | |
19658 | echo "$as_me: failed program was:" >&5 | |
19659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19660 | ||
19661 | echo "$as_me:$LINENO: result: no" >&5 | |
19662 | echo "${ECHO_T}no" >&6 | |
19663 | fi | |
ac1cb8d3 | 19664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19665 | |
19666 | fi | |
19667 | ||
19668 | ||
19669 | ||
19670 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19671 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19672 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19673 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19675 | fi | |
19676 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19677 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19678 | else | |
19679 | # Is the header compilable? | |
19680 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19681 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19682 | cat >conftest.$ac_ext <<_ACEOF | |
19683 | /* confdefs.h. */ | |
19684 | _ACEOF | |
19685 | cat confdefs.h >>conftest.$ac_ext | |
19686 | cat >>conftest.$ac_ext <<_ACEOF | |
19687 | /* end confdefs.h. */ | |
19688 | $ac_includes_default | |
19689 | #include <ext/hash_map> | |
19690 | _ACEOF | |
19691 | rm -f conftest.$ac_objext | |
19692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19693 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19694 | ac_status=$? |
ac1cb8d3 VS |
19695 | grep -v '^ *+' conftest.er1 >conftest.err |
19696 | rm -f conftest.er1 | |
19697 | cat conftest.err >&5 | |
bdcade0a MB |
19698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19699 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19700 | { ac_try='test -z "$ac_cxx_werror_flag" |
19701 | || test ! -s conftest.err' | |
19702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19703 | (eval $ac_try) 2>&5 | |
19704 | ac_status=$? | |
19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19706 | (exit $ac_status); }; } && | |
19707 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19709 | (eval $ac_try) 2>&5 | |
19710 | ac_status=$? | |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 | (exit $ac_status); }; }; then | |
19713 | ac_header_compiler=yes | |
19714 | else | |
19715 | echo "$as_me: failed program was:" >&5 | |
19716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19717 | ||
19718 | ac_header_compiler=no | |
19719 | fi | |
ac1cb8d3 | 19720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19721 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19722 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19723 | ||
19724 | # Is the header present? | |
19725 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
19726 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
19727 | cat >conftest.$ac_ext <<_ACEOF | |
19728 | /* confdefs.h. */ | |
19729 | _ACEOF | |
19730 | cat confdefs.h >>conftest.$ac_ext | |
19731 | cat >>conftest.$ac_ext <<_ACEOF | |
19732 | /* end confdefs.h. */ | |
19733 | #include <ext/hash_map> | |
19734 | _ACEOF | |
19735 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19736 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19737 | ac_status=$? | |
19738 | grep -v '^ *+' conftest.er1 >conftest.err | |
19739 | rm -f conftest.er1 | |
19740 | cat conftest.err >&5 | |
19741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19742 | (exit $ac_status); } >/dev/null; then | |
19743 | if test -s conftest.err; then | |
19744 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19745 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19746 | else |
19747 | ac_cpp_err= | |
19748 | fi | |
19749 | else | |
19750 | ac_cpp_err=yes | |
19751 | fi | |
19752 | if test -z "$ac_cpp_err"; then | |
19753 | ac_header_preproc=yes | |
19754 | else | |
19755 | echo "$as_me: failed program was:" >&5 | |
19756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19757 | ||
19758 | ac_header_preproc=no | |
19759 | fi | |
19760 | rm -f conftest.err conftest.$ac_ext | |
19761 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19762 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19763 | ||
19764 | # So? What about this header? | |
ac1cb8d3 VS |
19765 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19766 | yes:no: ) | |
bdcade0a MB |
19767 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19768 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19769 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
19770 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
19771 | ac_header_preproc=yes | |
bdcade0a | 19772 | ;; |
ac1cb8d3 | 19773 | no:yes:* ) |
bdcade0a MB |
19774 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
19775 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19776 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
19777 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
19778 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
19779 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
19780 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19781 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19782 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
19783 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19784 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
19785 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19786 | ( |
19787 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19788 | ## ----------------------------------------- ## |
19789 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19790 | ## ----------------------------------------- ## | |
bdcade0a MB |
19791 | _ASBOX |
19792 | ) | | |
19793 | sed "s/^/$as_me: WARNING: /" >&2 | |
19794 | ;; | |
19795 | esac | |
19796 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19797 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19798 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19800 | else | |
19801 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
19802 | fi | |
19803 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19804 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19805 | ||
19806 | fi | |
19807 | if test $ac_cv_header_ext_hash_map = yes; then | |
19808 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19809 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19810 | cat >conftest.$ac_ext <<_ACEOF | |
19811 | /* confdefs.h. */ | |
19812 | _ACEOF | |
19813 | cat confdefs.h >>conftest.$ac_ext | |
19814 | cat >>conftest.$ac_ext <<_ACEOF | |
19815 | /* end confdefs.h. */ | |
19816 | #include <ext/hash_map> | |
19817 | #include <ext/hash_set> | |
19818 | int | |
19819 | main () | |
19820 | { | |
19821 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
19822 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
19823 | ; | |
19824 | return 0; | |
19825 | } | |
19826 | _ACEOF | |
19827 | rm -f conftest.$ac_objext | |
19828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19829 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19830 | ac_status=$? |
ac1cb8d3 VS |
19831 | grep -v '^ *+' conftest.er1 >conftest.err |
19832 | rm -f conftest.er1 | |
19833 | cat conftest.err >&5 | |
bdcade0a MB |
19834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19835 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19836 | { ac_try='test -z "$ac_cxx_werror_flag" |
19837 | || test ! -s conftest.err' | |
19838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19839 | (eval $ac_try) 2>&5 | |
19840 | ac_status=$? | |
19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19842 | (exit $ac_status); }; } && | |
19843 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19845 | (eval $ac_try) 2>&5 | |
19846 | ac_status=$? | |
19847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19848 | (exit $ac_status); }; }; then | |
19849 | echo "$as_me:$LINENO: result: yes" >&5 | |
19850 | echo "${ECHO_T}yes" >&6 | |
19851 | cat >>confdefs.h <<\_ACEOF | |
19852 | #define HAVE_EXT_HASH_MAP 1 | |
19853 | _ACEOF | |
19854 | ||
19855 | cat >>confdefs.h <<\_ACEOF | |
19856 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
19857 | _ACEOF | |
19858 | ||
19859 | else | |
19860 | echo "$as_me: failed program was:" >&5 | |
19861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19862 | ||
19863 | echo "$as_me:$LINENO: result: no" >&5 | |
19864 | echo "${ECHO_T}no" >&6 | |
19865 | fi | |
ac1cb8d3 | 19866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19867 | |
19868 | fi | |
19869 | ||
19870 | ||
a848cd7e SC |
19871 | |
19872 | ac_ext=c | |
19873 | ac_cpp='$CPP $CPPFLAGS' | |
19874 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19875 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19876 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19877 | ||
19878 | fi | |
19879 | ||
19880 | ||
19881 | SEARCH_INCLUDE="\ | |
19882 | /usr/local/include \ | |
19883 | \ | |
19884 | /usr/Motif-2.1/include \ | |
19885 | /usr/Motif-1.2/include \ | |
19886 | /usr/include/Motif1.2 \ | |
19887 | /opt/xpm/include/X11 \ | |
19888 | /opt/GBxpm/include/ \ | |
19889 | /opt/GBxpm/X11/include/ \ | |
19890 | \ | |
19891 | /usr/dt/include \ | |
19892 | /usr/openwin/include \ | |
19893 | \ | |
19894 | /usr/include/Xm \ | |
19895 | \ | |
19896 | /usr/X11R6/include \ | |
19897 | /usr/X11R6.4/include \ | |
19898 | /usr/X11R5/include \ | |
19899 | /usr/X11R4/include \ | |
19900 | \ | |
19901 | /usr/include/X11R6 \ | |
19902 | /usr/include/X11R5 \ | |
19903 | /usr/include/X11R4 \ | |
19904 | \ | |
19905 | /usr/local/X11R6/include \ | |
19906 | /usr/local/X11R5/include \ | |
19907 | /usr/local/X11R4/include \ | |
19908 | \ | |
19909 | /usr/local/include/X11R6 \ | |
19910 | /usr/local/include/X11R5 \ | |
19911 | /usr/local/include/X11R4 \ | |
19912 | \ | |
19913 | /usr/X11/include \ | |
19914 | /usr/include/X11 \ | |
19915 | /usr/local/X11/include \ | |
19916 | /usr/local/include/X11 \ | |
19917 | \ | |
19918 | /usr/X386/include \ | |
19919 | /usr/x386/include \ | |
19920 | /usr/XFree86/include/X11 \ | |
19921 | \ | |
19922 | X:/XFree86/include \ | |
19923 | X:/XFree86/include/X11 \ | |
19924 | \ | |
19925 | /usr/include/gtk \ | |
19926 | /usr/local/include/gtk \ | |
19927 | /usr/include/glib \ | |
19928 | /usr/local/include/glib \ | |
19929 | \ | |
19930 | /usr/include/qt \ | |
19931 | /usr/local/include/qt \ | |
19932 | \ | |
19933 | /usr/local/arm/3.3.2/include \ | |
19934 | \ | |
19935 | /usr/include/windows \ | |
19936 | /usr/include/wine \ | |
19937 | /usr/local/include/wine \ | |
19938 | \ | |
19939 | /usr/unsupported/include \ | |
19940 | /usr/athena/include \ | |
19941 | /usr/local/x11r5/include \ | |
19942 | /usr/lpp/Xamples/include \ | |
19943 | \ | |
19944 | /usr/openwin/share/include" | |
19945 | ||
19946 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
19947 | ||
19948 | ||
19949 | cat >confcache <<\_ACEOF | |
19950 | # This file is a shell script that caches the results of configure | |
19951 | # tests run on this system so they can be shared between configure | |
19952 | # scripts and configure runs, see configure's option --config-cache. | |
19953 | # It is not useful on other systems. If it contains results you don't | |
19954 | # want to keep, you may remove or edit it. | |
19955 | # | |
19956 | # config.status only pays attention to the cache file if you give it | |
19957 | # the --recheck option to rerun configure. | |
19958 | # | |
19959 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19960 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19961 | # following values. | |
19962 | ||
19963 | _ACEOF | |
19964 | ||
19965 | # The following way of writing the cache mishandles newlines in values, | |
19966 | # but we know of no workaround that is simple, portable, and efficient. | |
19967 | # So, don't put newlines in cache variables' values. | |
19968 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19969 | # and sets the high bit in the cache file unless we assign to the vars. | |
19970 | { | |
19971 | (set) 2>&1 | | |
19972 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19973 | *ac_space=\ *) | |
19974 | # `set' does not quote correctly, so add quotes (double-quote | |
19975 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19976 | sed -n \ | |
ac1cb8d3 VS |
19977 | "s/'/'\\\\''/g; |
19978 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
19979 | ;; |
19980 | *) | |
19981 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19982 | sed -n \ | |
ac1cb8d3 | 19983 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
19984 | ;; |
19985 | esac; | |
19986 | } | | |
19987 | sed ' | |
19988 | t clear | |
19989 | : clear | |
19990 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19991 | t end | |
19992 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19993 | : end' >>confcache | |
19994 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
19995 | if test -w $cache_file; then | |
19996 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
19997 | cat confcache >$cache_file | |
19998 | else | |
19999 | echo "not updating unwritable cache $cache_file" | |
20000 | fi | |
20001 | fi | |
20002 | rm -f confcache | |
20003 | ||
20004 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20005 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20006 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20007 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20009 | else | |
20010 | ||
20011 | cat >conftest.$ac_ext <<_ACEOF | |
20012 | /* confdefs.h. */ | |
20013 | _ACEOF | |
20014 | cat confdefs.h >>conftest.$ac_ext | |
20015 | cat >>conftest.$ac_ext <<_ACEOF | |
20016 | /* end confdefs.h. */ | |
20017 | #include <features.h> | |
20018 | int | |
20019 | main () | |
20020 | { | |
20021 | ||
20022 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20023 | #error not glibc2.1 | |
20024 | #endif | |
20025 | ||
20026 | ; | |
20027 | return 0; | |
20028 | } | |
20029 | _ACEOF | |
20030 | rm -f conftest.$ac_objext | |
20031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20032 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20033 | ac_status=$? |
ac1cb8d3 VS |
20034 | grep -v '^ *+' conftest.er1 >conftest.err |
20035 | rm -f conftest.er1 | |
20036 | cat conftest.err >&5 | |
a848cd7e SC |
20037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20038 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20039 | { ac_try='test -z "$ac_c_werror_flag" |
20040 | || test ! -s conftest.err' | |
20041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20042 | (eval $ac_try) 2>&5 | |
20043 | ac_status=$? | |
20044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20045 | (exit $ac_status); }; } && | |
20046 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20048 | (eval $ac_try) 2>&5 | |
20049 | ac_status=$? | |
20050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20051 | (exit $ac_status); }; }; then | |
20052 | ||
20053 | wx_cv_lib_glibc21=yes | |
20054 | ||
20055 | else | |
20056 | echo "$as_me: failed program was:" >&5 | |
20057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20058 | ||
20059 | ||
20060 | wx_cv_lib_glibc21=no | |
20061 | ||
20062 | ||
20063 | fi | |
ac1cb8d3 | 20064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20065 | |
20066 | fi | |
20067 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20068 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20069 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20070 | cat >>confdefs.h <<\_ACEOF | |
20071 | #define wxHAVE_GLIBC2 1 | |
20072 | _ACEOF | |
20073 | ||
20074 | fi | |
20075 | fi | |
20076 | ||
20077 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20078 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20079 | cat >>confdefs.h <<\_ACEOF | |
20080 | #define _GNU_SOURCE 1 | |
20081 | _ACEOF | |
20082 | ||
20083 | fi | |
20084 | fi | |
20085 | ||
20086 | ||
20087 | ||
20088 | if test "$wxUSE_REGEX" != "no"; then | |
20089 | cat >>confdefs.h <<\_ACEOF | |
20090 | #define wxUSE_REGEX 1 | |
20091 | _ACEOF | |
20092 | ||
20093 | ||
20094 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20095 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20096 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20097 | wxUSE_REGEX=builtin | |
20098 | fi | |
20099 | ||
20100 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20101 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20102 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20103 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20104 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20106 | fi | |
20107 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20108 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20109 | else | |
20110 | # Is the header compilable? | |
20111 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20112 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20113 | cat >conftest.$ac_ext <<_ACEOF | |
20114 | /* confdefs.h. */ | |
20115 | _ACEOF | |
20116 | cat confdefs.h >>conftest.$ac_ext | |
20117 | cat >>conftest.$ac_ext <<_ACEOF | |
20118 | /* end confdefs.h. */ | |
20119 | $ac_includes_default | |
20120 | #include <regex.h> | |
20121 | _ACEOF | |
20122 | rm -f conftest.$ac_objext | |
20123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20124 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20125 | ac_status=$? |
ac1cb8d3 VS |
20126 | grep -v '^ *+' conftest.er1 >conftest.err |
20127 | rm -f conftest.er1 | |
20128 | cat conftest.err >&5 | |
a848cd7e SC |
20129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20130 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20131 | { ac_try='test -z "$ac_c_werror_flag" |
20132 | || test ! -s conftest.err' | |
20133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20134 | (eval $ac_try) 2>&5 | |
20135 | ac_status=$? | |
20136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20137 | (exit $ac_status); }; } && | |
20138 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20140 | (eval $ac_try) 2>&5 | |
20141 | ac_status=$? | |
20142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20143 | (exit $ac_status); }; }; then | |
20144 | ac_header_compiler=yes | |
20145 | else | |
20146 | echo "$as_me: failed program was:" >&5 | |
20147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20148 | ||
20149 | ac_header_compiler=no | |
20150 | fi | |
ac1cb8d3 | 20151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20152 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20153 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20154 | ||
20155 | # Is the header present? | |
20156 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20157 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20158 | cat >conftest.$ac_ext <<_ACEOF | |
20159 | /* confdefs.h. */ | |
20160 | _ACEOF | |
20161 | cat confdefs.h >>conftest.$ac_ext | |
20162 | cat >>conftest.$ac_ext <<_ACEOF | |
20163 | /* end confdefs.h. */ | |
20164 | #include <regex.h> | |
20165 | _ACEOF | |
20166 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20167 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20168 | ac_status=$? | |
20169 | grep -v '^ *+' conftest.er1 >conftest.err | |
20170 | rm -f conftest.er1 | |
20171 | cat conftest.err >&5 | |
20172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20173 | (exit $ac_status); } >/dev/null; then | |
20174 | if test -s conftest.err; then | |
20175 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20176 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20177 | else |
20178 | ac_cpp_err= | |
20179 | fi | |
20180 | else | |
20181 | ac_cpp_err=yes | |
20182 | fi | |
20183 | if test -z "$ac_cpp_err"; then | |
20184 | ac_header_preproc=yes | |
20185 | else | |
20186 | echo "$as_me: failed program was:" >&5 | |
20187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20188 | ||
20189 | ac_header_preproc=no | |
20190 | fi | |
20191 | rm -f conftest.err conftest.$ac_ext | |
20192 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20193 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20194 | ||
20195 | # So? What about this header? | |
ac1cb8d3 VS |
20196 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20197 | yes:no: ) | |
a848cd7e SC |
20198 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20199 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20200 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20201 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20202 | ac_header_preproc=yes | |
a848cd7e | 20203 | ;; |
ac1cb8d3 | 20204 | no:yes:* ) |
a848cd7e SC |
20205 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20206 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20207 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20208 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20209 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20210 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20211 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20212 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20213 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20214 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20215 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20216 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20217 | ( |
20218 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20219 | ## ----------------------------------------- ## |
20220 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20221 | ## ----------------------------------------- ## | |
a848cd7e SC |
20222 | _ASBOX |
20223 | ) | | |
20224 | sed "s/^/$as_me: WARNING: /" >&2 | |
20225 | ;; | |
20226 | esac | |
20227 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20228 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20229 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20231 | else | |
20232 | ac_cv_header_regex_h=$ac_header_preproc | |
20233 | fi | |
20234 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20235 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20236 | ||
20237 | fi | |
20238 | if test $ac_cv_header_regex_h = yes; then | |
20239 | ||
20240 | for ac_func in regcomp | |
20241 | do | |
20242 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20243 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20245 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20247 | else | |
20248 | cat >conftest.$ac_ext <<_ACEOF | |
20249 | /* confdefs.h. */ | |
20250 | _ACEOF | |
20251 | cat confdefs.h >>conftest.$ac_ext | |
20252 | cat >>conftest.$ac_ext <<_ACEOF | |
20253 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20256 | #define $ac_func innocuous_$ac_func | |
20257 | ||
a848cd7e SC |
20258 | /* System header to define __stub macros and hopefully few prototypes, |
20259 | which can conflict with char $ac_func (); below. | |
20260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20261 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20262 | |
a848cd7e SC |
20263 | #ifdef __STDC__ |
20264 | # include <limits.h> | |
20265 | #else | |
20266 | # include <assert.h> | |
20267 | #endif | |
ac1cb8d3 VS |
20268 | |
20269 | #undef $ac_func | |
20270 | ||
a848cd7e SC |
20271 | /* Override any gcc2 internal prototype to avoid an error. */ |
20272 | #ifdef __cplusplus | |
20273 | extern "C" | |
20274 | { | |
20275 | #endif | |
20276 | /* We use char because int might match the return type of a gcc2 | |
20277 | builtin and then its argument prototype would still apply. */ | |
20278 | char $ac_func (); | |
20279 | /* The GNU C library defines this for functions which it implements | |
20280 | to always fail with ENOSYS. Some functions are actually named | |
20281 | something starting with __ and the normal name is an alias. */ | |
20282 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20283 | choke me | |
20284 | #else | |
20285 | char (*f) () = $ac_func; | |
20286 | #endif | |
20287 | #ifdef __cplusplus | |
20288 | } | |
20289 | #endif | |
20290 | ||
20291 | int | |
20292 | main () | |
20293 | { | |
20294 | return f != $ac_func; | |
20295 | ; | |
20296 | return 0; | |
20297 | } | |
20298 | _ACEOF | |
20299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20301 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20302 | ac_status=$? |
ac1cb8d3 VS |
20303 | grep -v '^ *+' conftest.er1 >conftest.err |
20304 | rm -f conftest.er1 | |
20305 | cat conftest.err >&5 | |
a848cd7e SC |
20306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20307 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20308 | { ac_try='test -z "$ac_c_werror_flag" |
20309 | || test ! -s conftest.err' | |
20310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20311 | (eval $ac_try) 2>&5 | |
20312 | ac_status=$? | |
20313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20314 | (exit $ac_status); }; } && | |
20315 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20317 | (eval $ac_try) 2>&5 | |
20318 | ac_status=$? | |
20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20320 | (exit $ac_status); }; }; then | |
20321 | eval "$as_ac_var=yes" | |
20322 | else | |
20323 | echo "$as_me: failed program was:" >&5 | |
20324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20325 | ||
20326 | eval "$as_ac_var=no" | |
20327 | fi | |
ac1cb8d3 VS |
20328 | rm -f conftest.err conftest.$ac_objext \ |
20329 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20330 | fi |
20331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20332 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20333 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20334 | cat >>confdefs.h <<_ACEOF | |
20335 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20336 | _ACEOF | |
20337 | ||
20338 | fi | |
20339 | done | |
20340 | ||
20341 | fi | |
20342 | ||
20343 | ||
20344 | ||
20345 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20346 | if test "$wxUSE_REGEX" = "sys" ; then | |
20347 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20348 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20349 | { (exit 1); exit 1; }; } | |
20350 | else | |
20351 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20352 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20353 | wxUSE_REGEX=builtin | |
20354 | fi | |
20355 | else | |
20356 | wxUSE_REGEX=sys | |
20357 | cat >>confdefs.h <<\_ACEOF | |
20358 | #define WX_NO_REGEX_ADVANCED 1 | |
20359 | _ACEOF | |
20360 | ||
20361 | fi | |
20362 | fi | |
20363 | fi | |
20364 | ||
20365 | ||
20366 | ZLIB_LINK= | |
20367 | if test "$wxUSE_ZLIB" != "no" ; then | |
20368 | cat >>confdefs.h <<\_ACEOF | |
20369 | #define wxUSE_ZLIB 1 | |
20370 | _ACEOF | |
20371 | ||
20372 | ||
20373 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20374 | if test "$USE_DARWIN" = 1; then | |
20375 | system_zlib_h_ok="yes" | |
20376 | else | |
20377 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20378 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20379 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20381 | else | |
20382 | if test "$cross_compiling" = yes; then | |
20383 | unset ac_cv_header_zlib_h | |
20384 | ||
20385 | else | |
20386 | cat >conftest.$ac_ext <<_ACEOF | |
20387 | /* confdefs.h. */ | |
20388 | _ACEOF | |
20389 | cat confdefs.h >>conftest.$ac_ext | |
20390 | cat >>conftest.$ac_ext <<_ACEOF | |
20391 | /* end confdefs.h. */ | |
20392 | ||
20393 | #include <zlib.h> | |
20394 | #include <stdio.h> | |
20395 | ||
20396 | int main() | |
20397 | { | |
20398 | FILE *f=fopen("conftestval", "w"); | |
20399 | if (!f) exit(1); | |
20400 | fprintf(f, "%s", | |
20401 | ZLIB_VERSION[0] == '1' && | |
20402 | (ZLIB_VERSION[2] > '1' || | |
20403 | (ZLIB_VERSION[2] == '1' && | |
20404 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20405 | exit(0); | |
20406 | } | |
20407 | ||
20408 | _ACEOF | |
20409 | rm -f conftest$ac_exeext | |
20410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20411 | (eval $ac_link) 2>&5 | |
20412 | ac_status=$? | |
20413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20414 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20416 | (eval $ac_try) 2>&5 | |
20417 | ac_status=$? | |
20418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20419 | (exit $ac_status); }; }; then | |
20420 | ac_cv_header_zlib_h=`cat conftestval` | |
20421 | else | |
20422 | echo "$as_me: program exited with status $ac_status" >&5 | |
20423 | echo "$as_me: failed program was:" >&5 | |
20424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20425 | ||
20426 | ( exit $ac_status ) | |
20427 | ac_cv_header_zlib_h=no | |
20428 | fi | |
ac1cb8d3 | 20429 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20430 | fi |
20431 | ||
20432 | fi | |
20433 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20434 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20435 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20436 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20437 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20438 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20440 | fi | |
20441 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20442 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20443 | else | |
20444 | # Is the header compilable? | |
20445 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20446 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20447 | cat >conftest.$ac_ext <<_ACEOF | |
20448 | /* confdefs.h. */ | |
20449 | _ACEOF | |
20450 | cat confdefs.h >>conftest.$ac_ext | |
20451 | cat >>conftest.$ac_ext <<_ACEOF | |
20452 | /* end confdefs.h. */ | |
20453 | $ac_includes_default | |
20454 | #include <zlib.h> | |
20455 | _ACEOF | |
20456 | rm -f conftest.$ac_objext | |
20457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20458 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20459 | ac_status=$? |
ac1cb8d3 VS |
20460 | grep -v '^ *+' conftest.er1 >conftest.err |
20461 | rm -f conftest.er1 | |
20462 | cat conftest.err >&5 | |
a848cd7e SC |
20463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20464 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20465 | { ac_try='test -z "$ac_c_werror_flag" |
20466 | || test ! -s conftest.err' | |
20467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20468 | (eval $ac_try) 2>&5 | |
20469 | ac_status=$? | |
20470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20471 | (exit $ac_status); }; } && | |
20472 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20474 | (eval $ac_try) 2>&5 | |
20475 | ac_status=$? | |
20476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20477 | (exit $ac_status); }; }; then | |
20478 | ac_header_compiler=yes | |
20479 | else | |
20480 | echo "$as_me: failed program was:" >&5 | |
20481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20482 | ||
20483 | ac_header_compiler=no | |
20484 | fi | |
ac1cb8d3 | 20485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20486 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20487 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20488 | ||
20489 | # Is the header present? | |
20490 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20491 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20492 | cat >conftest.$ac_ext <<_ACEOF | |
20493 | /* confdefs.h. */ | |
20494 | _ACEOF | |
20495 | cat confdefs.h >>conftest.$ac_ext | |
20496 | cat >>conftest.$ac_ext <<_ACEOF | |
20497 | /* end confdefs.h. */ | |
20498 | #include <zlib.h> | |
20499 | _ACEOF | |
20500 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20501 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20502 | ac_status=$? | |
20503 | grep -v '^ *+' conftest.er1 >conftest.err | |
20504 | rm -f conftest.er1 | |
20505 | cat conftest.err >&5 | |
20506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20507 | (exit $ac_status); } >/dev/null; then | |
20508 | if test -s conftest.err; then | |
20509 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20510 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20511 | else |
20512 | ac_cpp_err= | |
20513 | fi | |
20514 | else | |
20515 | ac_cpp_err=yes | |
20516 | fi | |
20517 | if test -z "$ac_cpp_err"; then | |
20518 | ac_header_preproc=yes | |
20519 | else | |
20520 | echo "$as_me: failed program was:" >&5 | |
20521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20522 | ||
20523 | ac_header_preproc=no | |
20524 | fi | |
20525 | rm -f conftest.err conftest.$ac_ext | |
20526 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20527 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20528 | ||
20529 | # So? What about this header? | |
ac1cb8d3 VS |
20530 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20531 | yes:no: ) | |
a848cd7e SC |
20532 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20533 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20534 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20535 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20536 | ac_header_preproc=yes | |
a848cd7e | 20537 | ;; |
ac1cb8d3 | 20538 | no:yes:* ) |
a848cd7e SC |
20539 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20540 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20541 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20542 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20543 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20544 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20545 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20546 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20547 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20548 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20549 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20550 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20551 | ( |
20552 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20553 | ## ----------------------------------------- ## |
20554 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20555 | ## ----------------------------------------- ## | |
a848cd7e SC |
20556 | _ASBOX |
20557 | ) | | |
20558 | sed "s/^/$as_me: WARNING: /" >&2 | |
20559 | ;; | |
20560 | esac | |
20561 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20562 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20563 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20565 | else | |
20566 | ac_cv_header_zlib_h=$ac_header_preproc | |
20567 | fi | |
20568 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20569 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20570 | ||
20571 | fi | |
20572 | ||
20573 | ||
20574 | ||
20575 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20576 | fi | |
20577 | ||
20578 | if test "$system_zlib_h_ok" = "yes"; then | |
20579 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20580 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20581 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20583 | else | |
20584 | ac_check_lib_save_LIBS=$LIBS | |
20585 | LIBS="-lz $LIBS" | |
20586 | cat >conftest.$ac_ext <<_ACEOF | |
20587 | /* confdefs.h. */ | |
20588 | _ACEOF | |
20589 | cat confdefs.h >>conftest.$ac_ext | |
20590 | cat >>conftest.$ac_ext <<_ACEOF | |
20591 | /* end confdefs.h. */ | |
20592 | ||
20593 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20594 | #ifdef __cplusplus | |
20595 | extern "C" | |
20596 | #endif | |
20597 | /* We use char because int might match the return type of a gcc2 | |
20598 | builtin and then its argument prototype would still apply. */ | |
20599 | char deflate (); | |
20600 | int | |
20601 | main () | |
20602 | { | |
20603 | deflate (); | |
20604 | ; | |
20605 | return 0; | |
20606 | } | |
20607 | _ACEOF | |
20608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20610 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20611 | ac_status=$? |
ac1cb8d3 VS |
20612 | grep -v '^ *+' conftest.er1 >conftest.err |
20613 | rm -f conftest.er1 | |
20614 | cat conftest.err >&5 | |
a848cd7e SC |
20615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20616 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20617 | { ac_try='test -z "$ac_c_werror_flag" |
20618 | || test ! -s conftest.err' | |
20619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20620 | (eval $ac_try) 2>&5 | |
20621 | ac_status=$? | |
20622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20623 | (exit $ac_status); }; } && | |
20624 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20626 | (eval $ac_try) 2>&5 | |
20627 | ac_status=$? | |
20628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20629 | (exit $ac_status); }; }; then | |
20630 | ac_cv_lib_z_deflate=yes | |
20631 | else | |
20632 | echo "$as_me: failed program was:" >&5 | |
20633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20634 | ||
20635 | ac_cv_lib_z_deflate=no | |
20636 | fi | |
ac1cb8d3 VS |
20637 | rm -f conftest.err conftest.$ac_objext \ |
20638 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20639 | LIBS=$ac_check_lib_save_LIBS |
20640 | fi | |
20641 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20642 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20643 | if test $ac_cv_lib_z_deflate = yes; then | |
20644 | ZLIB_LINK=" -lz" | |
20645 | fi | |
20646 | ||
20647 | fi | |
20648 | ||
20649 | if test "x$ZLIB_LINK" = "x" ; then | |
20650 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20651 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20652 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20653 | { (exit 1); exit 1; }; } | |
20654 | else | |
20655 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20656 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20657 | wxUSE_ZLIB=builtin | |
20658 | fi | |
20659 | else | |
20660 | wxUSE_ZLIB=sys | |
20661 | fi | |
20662 | fi | |
20663 | fi | |
20664 | ||
20665 | ||
20666 | PNG_LINK= | |
20667 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20668 | cat >>confdefs.h <<\_ACEOF | |
20669 | #define wxUSE_LIBPNG 1 | |
20670 | _ACEOF | |
20671 | ||
20672 | ||
20673 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20674 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20675 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20676 | wxUSE_LIBPNG=sys | |
20677 | fi | |
20678 | ||
20679 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20680 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20681 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20682 | wxUSE_LIBPNG=builtin | |
20683 | fi | |
20684 | ||
20685 | if test "$wxUSE_MGL" != 1 ; then | |
20686 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20687 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20688 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20689 | if test "${ac_cv_header_png_h+set}" = set; then | |
20690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20691 | else | |
20692 | if test "$cross_compiling" = yes; then | |
20693 | unset ac_cv_header_png_h | |
20694 | ||
20695 | else | |
20696 | cat >conftest.$ac_ext <<_ACEOF | |
20697 | /* confdefs.h. */ | |
20698 | _ACEOF | |
20699 | cat confdefs.h >>conftest.$ac_ext | |
20700 | cat >>conftest.$ac_ext <<_ACEOF | |
20701 | /* end confdefs.h. */ | |
20702 | ||
20703 | #include <png.h> | |
20704 | #include <stdio.h> | |
20705 | ||
20706 | int main() | |
20707 | { | |
20708 | FILE *f=fopen("conftestval", "w"); | |
20709 | if (!f) exit(1); | |
20710 | fprintf(f, "%s", | |
20711 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20712 | exit(0); | |
20713 | } | |
20714 | ||
20715 | _ACEOF | |
20716 | rm -f conftest$ac_exeext | |
20717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20718 | (eval $ac_link) 2>&5 | |
20719 | ac_status=$? | |
20720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20721 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20723 | (eval $ac_try) 2>&5 | |
20724 | ac_status=$? | |
20725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20726 | (exit $ac_status); }; }; then | |
20727 | ac_cv_header_png_h=`cat conftestval` | |
20728 | else | |
20729 | echo "$as_me: program exited with status $ac_status" >&5 | |
20730 | echo "$as_me: failed program was:" >&5 | |
20731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20732 | ||
20733 | ( exit $ac_status ) | |
20734 | ac_cv_header_png_h=no | |
20735 | fi | |
ac1cb8d3 | 20736 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20737 | fi |
20738 | ||
20739 | fi | |
20740 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20741 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20742 | if test "${ac_cv_header_png_h+set}" = set; then | |
20743 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20744 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20745 | if test "${ac_cv_header_png_h+set}" = set; then | |
20746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20747 | fi | |
20748 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20749 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20750 | else | |
20751 | # Is the header compilable? | |
20752 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20753 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20754 | cat >conftest.$ac_ext <<_ACEOF | |
20755 | /* confdefs.h. */ | |
20756 | _ACEOF | |
20757 | cat confdefs.h >>conftest.$ac_ext | |
20758 | cat >>conftest.$ac_ext <<_ACEOF | |
20759 | /* end confdefs.h. */ | |
20760 | $ac_includes_default | |
20761 | #include <png.h> | |
20762 | _ACEOF | |
20763 | rm -f conftest.$ac_objext | |
20764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20765 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20766 | ac_status=$? |
ac1cb8d3 VS |
20767 | grep -v '^ *+' conftest.er1 >conftest.err |
20768 | rm -f conftest.er1 | |
20769 | cat conftest.err >&5 | |
a848cd7e SC |
20770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20771 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20772 | { ac_try='test -z "$ac_c_werror_flag" |
20773 | || test ! -s conftest.err' | |
20774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20775 | (eval $ac_try) 2>&5 | |
20776 | ac_status=$? | |
20777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20778 | (exit $ac_status); }; } && | |
20779 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20781 | (eval $ac_try) 2>&5 | |
20782 | ac_status=$? | |
20783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20784 | (exit $ac_status); }; }; then | |
20785 | ac_header_compiler=yes | |
20786 | else | |
20787 | echo "$as_me: failed program was:" >&5 | |
20788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20789 | ||
20790 | ac_header_compiler=no | |
20791 | fi | |
ac1cb8d3 | 20792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20793 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20794 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20795 | ||
20796 | # Is the header present? | |
20797 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20798 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20799 | cat >conftest.$ac_ext <<_ACEOF | |
20800 | /* confdefs.h. */ | |
20801 | _ACEOF | |
20802 | cat confdefs.h >>conftest.$ac_ext | |
20803 | cat >>conftest.$ac_ext <<_ACEOF | |
20804 | /* end confdefs.h. */ | |
20805 | #include <png.h> | |
20806 | _ACEOF | |
20807 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20808 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20809 | ac_status=$? | |
20810 | grep -v '^ *+' conftest.er1 >conftest.err | |
20811 | rm -f conftest.er1 | |
20812 | cat conftest.err >&5 | |
20813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20814 | (exit $ac_status); } >/dev/null; then | |
20815 | if test -s conftest.err; then | |
20816 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20817 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20818 | else |
20819 | ac_cpp_err= | |
20820 | fi | |
20821 | else | |
20822 | ac_cpp_err=yes | |
20823 | fi | |
20824 | if test -z "$ac_cpp_err"; then | |
20825 | ac_header_preproc=yes | |
20826 | else | |
20827 | echo "$as_me: failed program was:" >&5 | |
20828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20829 | ||
20830 | ac_header_preproc=no | |
20831 | fi | |
20832 | rm -f conftest.err conftest.$ac_ext | |
20833 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20834 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20835 | ||
20836 | # So? What about this header? | |
ac1cb8d3 VS |
20837 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20838 | yes:no: ) | |
a848cd7e SC |
20839 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20840 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20841 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20842 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20843 | ac_header_preproc=yes | |
a848cd7e | 20844 | ;; |
ac1cb8d3 | 20845 | no:yes:* ) |
a848cd7e SC |
20846 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20847 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20848 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
20849 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
20850 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
20851 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
20852 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20853 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20854 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
20855 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20856 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
20857 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20858 | ( |
20859 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20860 | ## ----------------------------------------- ## |
20861 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20862 | ## ----------------------------------------- ## | |
a848cd7e SC |
20863 | _ASBOX |
20864 | ) | | |
20865 | sed "s/^/$as_me: WARNING: /" >&2 | |
20866 | ;; | |
20867 | esac | |
20868 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20869 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20870 | if test "${ac_cv_header_png_h+set}" = set; then | |
20871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20872 | else | |
20873 | ac_cv_header_png_h=$ac_header_preproc | |
20874 | fi | |
20875 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20876 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20877 | ||
20878 | fi | |
20879 | ||
20880 | ||
20881 | ||
20882 | if test "$ac_cv_header_png_h" = "yes"; then | |
20883 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
20884 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
20885 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
20886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20887 | else | |
20888 | ac_check_lib_save_LIBS=$LIBS | |
20889 | LIBS="-lpng -lz -lm $LIBS" | |
20890 | cat >conftest.$ac_ext <<_ACEOF | |
20891 | /* confdefs.h. */ | |
20892 | _ACEOF | |
20893 | cat confdefs.h >>conftest.$ac_ext | |
20894 | cat >>conftest.$ac_ext <<_ACEOF | |
20895 | /* end confdefs.h. */ | |
20896 | ||
20897 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20898 | #ifdef __cplusplus | |
20899 | extern "C" | |
20900 | #endif | |
20901 | /* We use char because int might match the return type of a gcc2 | |
20902 | builtin and then its argument prototype would still apply. */ | |
20903 | char png_check_sig (); | |
20904 | int | |
20905 | main () | |
20906 | { | |
20907 | png_check_sig (); | |
20908 | ; | |
20909 | return 0; | |
20910 | } | |
20911 | _ACEOF | |
20912 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20914 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20915 | ac_status=$? |
ac1cb8d3 VS |
20916 | grep -v '^ *+' conftest.er1 >conftest.err |
20917 | rm -f conftest.er1 | |
20918 | cat conftest.err >&5 | |
a848cd7e SC |
20919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20920 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20921 | { ac_try='test -z "$ac_c_werror_flag" |
20922 | || test ! -s conftest.err' | |
20923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20924 | (eval $ac_try) 2>&5 | |
20925 | ac_status=$? | |
20926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20927 | (exit $ac_status); }; } && | |
20928 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20930 | (eval $ac_try) 2>&5 | |
20931 | ac_status=$? | |
20932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20933 | (exit $ac_status); }; }; then | |
20934 | ac_cv_lib_png_png_check_sig=yes | |
20935 | else | |
20936 | echo "$as_me: failed program was:" >&5 | |
20937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20938 | ||
20939 | ac_cv_lib_png_png_check_sig=no | |
20940 | fi | |
ac1cb8d3 VS |
20941 | rm -f conftest.err conftest.$ac_objext \ |
20942 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20943 | LIBS=$ac_check_lib_save_LIBS |
20944 | fi | |
20945 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
20946 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
20947 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
20948 | PNG_LINK=" -lpng -lz" | |
20949 | fi | |
20950 | ||
20951 | fi | |
20952 | ||
20953 | if test "x$PNG_LINK" = "x" ; then | |
20954 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
20955 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
20956 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
20957 | { (exit 1); exit 1; }; } | |
20958 | else | |
20959 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
20960 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
20961 | wxUSE_LIBPNG=builtin | |
20962 | fi | |
20963 | else | |
20964 | wxUSE_LIBPNG=sys | |
20965 | fi | |
20966 | fi | |
20967 | fi | |
20968 | ||
20969 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
20970 | fi | |
20971 | ||
20972 | ||
20973 | JPEG_LINK= | |
20974 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
20975 | cat >>confdefs.h <<\_ACEOF | |
20976 | #define wxUSE_LIBJPEG 1 | |
20977 | _ACEOF | |
20978 | ||
20979 | ||
20980 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
20981 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
20982 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
20983 | wxUSE_LIBJPEG=sys | |
20984 | fi | |
20985 | ||
20986 | if test "$wxUSE_MGL" != 1 ; then | |
20987 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
20988 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
20989 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
20990 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
20991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20992 | else | |
20993 | cat >conftest.$ac_ext <<_ACEOF | |
20994 | /* confdefs.h. */ | |
20995 | _ACEOF | |
20996 | cat confdefs.h >>conftest.$ac_ext | |
20997 | cat >>conftest.$ac_ext <<_ACEOF | |
20998 | /* end confdefs.h. */ | |
20999 | ||
21000 | #undef HAVE_STDLIB_H | |
21001 | #include <stdio.h> | |
21002 | #include <jpeglib.h> | |
21003 | ||
21004 | int | |
21005 | main () | |
21006 | { | |
21007 | ||
21008 | ||
21009 | ; | |
21010 | return 0; | |
21011 | } | |
21012 | _ACEOF | |
21013 | rm -f conftest.$ac_objext | |
21014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21016 | ac_status=$? |
ac1cb8d3 VS |
21017 | grep -v '^ *+' conftest.er1 >conftest.err |
21018 | rm -f conftest.er1 | |
21019 | cat conftest.err >&5 | |
a848cd7e SC |
21020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21021 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21022 | { ac_try='test -z "$ac_c_werror_flag" |
21023 | || test ! -s conftest.err' | |
21024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21025 | (eval $ac_try) 2>&5 | |
21026 | ac_status=$? | |
21027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21028 | (exit $ac_status); }; } && | |
21029 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21031 | (eval $ac_try) 2>&5 | |
21032 | ac_status=$? | |
21033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21034 | (exit $ac_status); }; }; then | |
21035 | ac_cv_header_jpeglib_h=yes | |
21036 | else | |
21037 | echo "$as_me: failed program was:" >&5 | |
21038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21039 | ||
21040 | ac_cv_header_jpeglib_h=no | |
21041 | ||
21042 | fi | |
ac1cb8d3 | 21043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21044 | |
21045 | fi | |
21046 | ||
21047 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21048 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21049 | ||
21050 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21051 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21052 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21053 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21055 | else | |
21056 | ac_check_lib_save_LIBS=$LIBS | |
21057 | LIBS="-ljpeg $LIBS" | |
21058 | cat >conftest.$ac_ext <<_ACEOF | |
21059 | /* confdefs.h. */ | |
21060 | _ACEOF | |
21061 | cat confdefs.h >>conftest.$ac_ext | |
21062 | cat >>conftest.$ac_ext <<_ACEOF | |
21063 | /* end confdefs.h. */ | |
21064 | ||
21065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21066 | #ifdef __cplusplus | |
21067 | extern "C" | |
21068 | #endif | |
21069 | /* We use char because int might match the return type of a gcc2 | |
21070 | builtin and then its argument prototype would still apply. */ | |
21071 | char jpeg_read_header (); | |
21072 | int | |
21073 | main () | |
21074 | { | |
21075 | jpeg_read_header (); | |
21076 | ; | |
21077 | return 0; | |
21078 | } | |
21079 | _ACEOF | |
21080 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21082 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21083 | ac_status=$? |
ac1cb8d3 VS |
21084 | grep -v '^ *+' conftest.er1 >conftest.err |
21085 | rm -f conftest.er1 | |
21086 | cat conftest.err >&5 | |
a848cd7e SC |
21087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21088 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21089 | { ac_try='test -z "$ac_c_werror_flag" |
21090 | || test ! -s conftest.err' | |
21091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21092 | (eval $ac_try) 2>&5 | |
21093 | ac_status=$? | |
21094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21095 | (exit $ac_status); }; } && | |
21096 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21098 | (eval $ac_try) 2>&5 | |
21099 | ac_status=$? | |
21100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21101 | (exit $ac_status); }; }; then | |
21102 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21103 | else | |
21104 | echo "$as_me: failed program was:" >&5 | |
21105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21106 | ||
21107 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21108 | fi | |
ac1cb8d3 VS |
21109 | rm -f conftest.err conftest.$ac_objext \ |
21110 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21111 | LIBS=$ac_check_lib_save_LIBS |
21112 | fi | |
21113 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21114 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21115 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21116 | JPEG_LINK=" -ljpeg" | |
21117 | fi | |
21118 | ||
21119 | fi | |
21120 | ||
21121 | if test "x$JPEG_LINK" = "x" ; then | |
21122 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21123 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21124 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21125 | { (exit 1); exit 1; }; } | |
21126 | else | |
21127 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21128 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21129 | wxUSE_LIBJPEG=builtin | |
21130 | fi | |
21131 | else | |
21132 | wxUSE_LIBJPEG=sys | |
21133 | fi | |
21134 | fi | |
21135 | fi | |
21136 | fi | |
21137 | ||
21138 | ||
21139 | TIFF_LINK= | |
21140 | TIFF_PREREQ_LINKS=-lm | |
21141 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21142 | cat >>confdefs.h <<\_ACEOF | |
21143 | #define wxUSE_LIBTIFF 1 | |
21144 | _ACEOF | |
21145 | ||
21146 | ||
21147 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21148 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21149 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21150 | fi | |
21151 | if test "$wxUSE_ZLIB" = "sys"; then | |
21152 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21153 | fi | |
21154 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21155 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21156 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21157 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21159 | fi | |
21160 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21161 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21162 | else | |
21163 | # Is the header compilable? | |
21164 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21165 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21166 | cat >conftest.$ac_ext <<_ACEOF | |
21167 | /* confdefs.h. */ | |
21168 | _ACEOF | |
21169 | cat confdefs.h >>conftest.$ac_ext | |
21170 | cat >>conftest.$ac_ext <<_ACEOF | |
21171 | /* end confdefs.h. */ | |
21172 | $ac_includes_default | |
21173 | #include <tiffio.h> | |
21174 | _ACEOF | |
21175 | rm -f conftest.$ac_objext | |
21176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21177 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21178 | ac_status=$? |
ac1cb8d3 VS |
21179 | grep -v '^ *+' conftest.er1 >conftest.err |
21180 | rm -f conftest.er1 | |
21181 | cat conftest.err >&5 | |
a848cd7e SC |
21182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21183 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21184 | { ac_try='test -z "$ac_c_werror_flag" |
21185 | || test ! -s conftest.err' | |
21186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21187 | (eval $ac_try) 2>&5 | |
21188 | ac_status=$? | |
21189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21190 | (exit $ac_status); }; } && | |
21191 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21193 | (eval $ac_try) 2>&5 | |
21194 | ac_status=$? | |
21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21196 | (exit $ac_status); }; }; then | |
21197 | ac_header_compiler=yes | |
21198 | else | |
21199 | echo "$as_me: failed program was:" >&5 | |
21200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21201 | ||
21202 | ac_header_compiler=no | |
21203 | fi | |
ac1cb8d3 | 21204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21205 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21206 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21207 | ||
21208 | # Is the header present? | |
21209 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21210 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21211 | cat >conftest.$ac_ext <<_ACEOF | |
21212 | /* confdefs.h. */ | |
21213 | _ACEOF | |
21214 | cat confdefs.h >>conftest.$ac_ext | |
21215 | cat >>conftest.$ac_ext <<_ACEOF | |
21216 | /* end confdefs.h. */ | |
21217 | #include <tiffio.h> | |
21218 | _ACEOF | |
21219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21221 | ac_status=$? | |
21222 | grep -v '^ *+' conftest.er1 >conftest.err | |
21223 | rm -f conftest.er1 | |
21224 | cat conftest.err >&5 | |
21225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21226 | (exit $ac_status); } >/dev/null; then | |
21227 | if test -s conftest.err; then | |
21228 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21230 | else |
21231 | ac_cpp_err= | |
21232 | fi | |
21233 | else | |
21234 | ac_cpp_err=yes | |
21235 | fi | |
21236 | if test -z "$ac_cpp_err"; then | |
21237 | ac_header_preproc=yes | |
21238 | else | |
21239 | echo "$as_me: failed program was:" >&5 | |
21240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21241 | ||
21242 | ac_header_preproc=no | |
21243 | fi | |
21244 | rm -f conftest.err conftest.$ac_ext | |
21245 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21246 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21247 | ||
21248 | # So? What about this header? | |
ac1cb8d3 VS |
21249 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21250 | yes:no: ) | |
a848cd7e SC |
21251 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21252 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21253 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21254 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21255 | ac_header_preproc=yes | |
a848cd7e | 21256 | ;; |
ac1cb8d3 | 21257 | no:yes:* ) |
a848cd7e SC |
21258 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21259 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21260 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21261 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21262 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21263 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21264 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21265 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21266 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21267 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21268 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21269 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21270 | ( |
21271 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21272 | ## ----------------------------------------- ## |
21273 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21274 | ## ----------------------------------------- ## | |
a848cd7e SC |
21275 | _ASBOX |
21276 | ) | | |
21277 | sed "s/^/$as_me: WARNING: /" >&2 | |
21278 | ;; | |
21279 | esac | |
21280 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21281 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21282 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21284 | else | |
21285 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21286 | fi | |
21287 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21288 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21289 | ||
21290 | fi | |
21291 | if test $ac_cv_header_tiffio_h = yes; then | |
21292 | ||
21293 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21294 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21295 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21297 | else | |
21298 | ac_check_lib_save_LIBS=$LIBS | |
21299 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21300 | cat >conftest.$ac_ext <<_ACEOF | |
21301 | /* confdefs.h. */ | |
21302 | _ACEOF | |
21303 | cat confdefs.h >>conftest.$ac_ext | |
21304 | cat >>conftest.$ac_ext <<_ACEOF | |
21305 | /* end confdefs.h. */ | |
21306 | ||
21307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21308 | #ifdef __cplusplus | |
21309 | extern "C" | |
21310 | #endif | |
21311 | /* We use char because int might match the return type of a gcc2 | |
21312 | builtin and then its argument prototype would still apply. */ | |
21313 | char TIFFError (); | |
21314 | int | |
21315 | main () | |
21316 | { | |
21317 | TIFFError (); | |
21318 | ; | |
21319 | return 0; | |
21320 | } | |
21321 | _ACEOF | |
21322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21324 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21325 | ac_status=$? |
ac1cb8d3 VS |
21326 | grep -v '^ *+' conftest.er1 >conftest.err |
21327 | rm -f conftest.er1 | |
21328 | cat conftest.err >&5 | |
a848cd7e SC |
21329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21330 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21331 | { ac_try='test -z "$ac_c_werror_flag" |
21332 | || test ! -s conftest.err' | |
21333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21334 | (eval $ac_try) 2>&5 | |
21335 | ac_status=$? | |
21336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21337 | (exit $ac_status); }; } && | |
21338 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21340 | (eval $ac_try) 2>&5 | |
21341 | ac_status=$? | |
21342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21343 | (exit $ac_status); }; }; then | |
21344 | ac_cv_lib_tiff_TIFFError=yes | |
21345 | else | |
21346 | echo "$as_me: failed program was:" >&5 | |
21347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21348 | ||
21349 | ac_cv_lib_tiff_TIFFError=no | |
21350 | fi | |
ac1cb8d3 VS |
21351 | rm -f conftest.err conftest.$ac_objext \ |
21352 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21353 | LIBS=$ac_check_lib_save_LIBS |
21354 | fi | |
21355 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21356 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21357 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21358 | TIFF_LINK=" -ltiff" | |
21359 | fi | |
21360 | ||
21361 | ||
21362 | ||
21363 | fi | |
21364 | ||
21365 | ||
21366 | ||
21367 | if test "x$TIFF_LINK" = "x" ; then | |
21368 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21369 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21370 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21371 | { (exit 1); exit 1; }; } | |
21372 | else | |
21373 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21374 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21375 | wxUSE_LIBTIFF=builtin | |
21376 | fi | |
21377 | else | |
21378 | wxUSE_LIBTIFF=sys | |
21379 | fi | |
21380 | fi | |
21381 | fi | |
21382 | ||
21383 | ||
21384 | if test "$wxUSE_EXPAT" != "no"; then | |
21385 | wxUSE_XML=yes | |
21386 | cat >>confdefs.h <<\_ACEOF | |
21387 | #define wxUSE_EXPAT 1 | |
21388 | _ACEOF | |
21389 | ||
21390 | cat >>confdefs.h <<\_ACEOF | |
21391 | #define wxUSE_XML 1 | |
21392 | _ACEOF | |
21393 | ||
21394 | ||
21395 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21396 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21397 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21398 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21399 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21401 | fi | |
21402 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21403 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21404 | else | |
21405 | # Is the header compilable? | |
21406 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21407 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21408 | cat >conftest.$ac_ext <<_ACEOF | |
21409 | /* confdefs.h. */ | |
21410 | _ACEOF | |
21411 | cat confdefs.h >>conftest.$ac_ext | |
21412 | cat >>conftest.$ac_ext <<_ACEOF | |
21413 | /* end confdefs.h. */ | |
21414 | $ac_includes_default | |
21415 | #include <expat.h> | |
21416 | _ACEOF | |
21417 | rm -f conftest.$ac_objext | |
21418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21419 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21420 | ac_status=$? |
ac1cb8d3 VS |
21421 | grep -v '^ *+' conftest.er1 >conftest.err |
21422 | rm -f conftest.er1 | |
21423 | cat conftest.err >&5 | |
a848cd7e SC |
21424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21425 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21426 | { ac_try='test -z "$ac_c_werror_flag" |
21427 | || test ! -s conftest.err' | |
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 | ac_header_compiler=yes | |
21440 | else | |
21441 | echo "$as_me: failed program was:" >&5 | |
21442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21443 | ||
21444 | ac_header_compiler=no | |
21445 | fi | |
ac1cb8d3 | 21446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21447 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21448 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21449 | ||
21450 | # Is the header present? | |
21451 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21452 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21453 | cat >conftest.$ac_ext <<_ACEOF | |
21454 | /* confdefs.h. */ | |
21455 | _ACEOF | |
21456 | cat confdefs.h >>conftest.$ac_ext | |
21457 | cat >>conftest.$ac_ext <<_ACEOF | |
21458 | /* end confdefs.h. */ | |
21459 | #include <expat.h> | |
21460 | _ACEOF | |
21461 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21462 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21463 | ac_status=$? | |
21464 | grep -v '^ *+' conftest.er1 >conftest.err | |
21465 | rm -f conftest.er1 | |
21466 | cat conftest.err >&5 | |
21467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21468 | (exit $ac_status); } >/dev/null; then | |
21469 | if test -s conftest.err; then | |
21470 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21471 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21472 | else |
21473 | ac_cpp_err= | |
21474 | fi | |
21475 | else | |
21476 | ac_cpp_err=yes | |
21477 | fi | |
21478 | if test -z "$ac_cpp_err"; then | |
21479 | ac_header_preproc=yes | |
21480 | else | |
21481 | echo "$as_me: failed program was:" >&5 | |
21482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21483 | ||
21484 | ac_header_preproc=no | |
21485 | fi | |
21486 | rm -f conftest.err conftest.$ac_ext | |
21487 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21488 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21489 | ||
21490 | # So? What about this header? | |
ac1cb8d3 VS |
21491 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21492 | yes:no: ) | |
a848cd7e SC |
21493 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21494 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21495 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21496 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21497 | ac_header_preproc=yes | |
a848cd7e | 21498 | ;; |
ac1cb8d3 | 21499 | no:yes:* ) |
a848cd7e SC |
21500 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21501 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21502 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21503 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21504 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21505 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21506 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21507 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21508 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21509 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21510 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21511 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21512 | ( |
21513 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21514 | ## ----------------------------------------- ## |
21515 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21516 | ## ----------------------------------------- ## | |
a848cd7e SC |
21517 | _ASBOX |
21518 | ) | | |
21519 | sed "s/^/$as_me: WARNING: /" >&2 | |
21520 | ;; | |
21521 | esac | |
21522 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21523 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21524 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21526 | else | |
21527 | ac_cv_header_expat_h=$ac_header_preproc | |
21528 | fi | |
21529 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21530 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21531 | ||
21532 | fi | |
21533 | if test $ac_cv_header_expat_h = yes; then | |
21534 | found_expat_h=1 | |
21535 | fi | |
21536 | ||
21537 | ||
21538 | if test "x$found_expat_h" = "x1"; then | |
21539 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21540 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21541 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21543 | else | |
21544 | ||
21545 | ||
21546 | ||
21547 | ac_ext=cc | |
21548 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21549 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21550 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21551 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21552 | ||
21553 | cat >conftest.$ac_ext <<_ACEOF | |
21554 | /* confdefs.h. */ | |
21555 | _ACEOF | |
21556 | cat confdefs.h >>conftest.$ac_ext | |
21557 | cat >>conftest.$ac_ext <<_ACEOF | |
21558 | /* end confdefs.h. */ | |
21559 | #include <expat.h> | |
21560 | int | |
21561 | main () | |
21562 | { | |
21563 | ||
21564 | ; | |
21565 | return 0; | |
21566 | } | |
21567 | _ACEOF | |
21568 | rm -f conftest.$ac_objext | |
21569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21570 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21571 | ac_status=$? |
ac1cb8d3 VS |
21572 | grep -v '^ *+' conftest.er1 >conftest.err |
21573 | rm -f conftest.er1 | |
21574 | cat conftest.err >&5 | |
a848cd7e SC |
21575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21576 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21577 | { ac_try='test -z "$ac_cxx_werror_flag" |
21578 | || test ! -s conftest.err' | |
21579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21580 | (eval $ac_try) 2>&5 | |
21581 | ac_status=$? | |
21582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21583 | (exit $ac_status); }; } && | |
21584 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21586 | (eval $ac_try) 2>&5 | |
21587 | ac_status=$? | |
21588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21589 | (exit $ac_status); }; }; then | |
21590 | wx_cv_expat_is_not_broken=yes | |
21591 | else | |
21592 | echo "$as_me: failed program was:" >&5 | |
21593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21594 | ||
21595 | wx_cv_expat_is_not_broken=no | |
21596 | ||
21597 | fi | |
ac1cb8d3 | 21598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21599 | ac_ext=c |
21600 | ac_cpp='$CPP $CPPFLAGS' | |
21601 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21602 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21603 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21604 | ||
21605 | ||
21606 | ||
21607 | fi | |
21608 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21609 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21610 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21611 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21612 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21613 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21615 | else | |
21616 | ac_check_lib_save_LIBS=$LIBS | |
21617 | LIBS="-lexpat $LIBS" | |
21618 | cat >conftest.$ac_ext <<_ACEOF | |
21619 | /* confdefs.h. */ | |
21620 | _ACEOF | |
21621 | cat confdefs.h >>conftest.$ac_ext | |
21622 | cat >>conftest.$ac_ext <<_ACEOF | |
21623 | /* end confdefs.h. */ | |
21624 | ||
21625 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21626 | #ifdef __cplusplus | |
21627 | extern "C" | |
21628 | #endif | |
21629 | /* We use char because int might match the return type of a gcc2 | |
21630 | builtin and then its argument prototype would still apply. */ | |
21631 | char XML_ParserCreate (); | |
21632 | int | |
21633 | main () | |
21634 | { | |
21635 | XML_ParserCreate (); | |
21636 | ; | |
21637 | return 0; | |
21638 | } | |
21639 | _ACEOF | |
21640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21642 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21643 | ac_status=$? |
ac1cb8d3 VS |
21644 | grep -v '^ *+' conftest.er1 >conftest.err |
21645 | rm -f conftest.er1 | |
21646 | cat conftest.err >&5 | |
a848cd7e SC |
21647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21648 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21649 | { ac_try='test -z "$ac_c_werror_flag" |
21650 | || test ! -s conftest.err' | |
21651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21652 | (eval $ac_try) 2>&5 | |
21653 | ac_status=$? | |
21654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21655 | (exit $ac_status); }; } && | |
21656 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21658 | (eval $ac_try) 2>&5 | |
21659 | ac_status=$? | |
21660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21661 | (exit $ac_status); }; }; then | |
21662 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21663 | else | |
21664 | echo "$as_me: failed program was:" >&5 | |
21665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21666 | ||
21667 | ac_cv_lib_expat_XML_ParserCreate=no | |
21668 | fi | |
ac1cb8d3 VS |
21669 | rm -f conftest.err conftest.$ac_objext \ |
21670 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21671 | LIBS=$ac_check_lib_save_LIBS |
21672 | fi | |
21673 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21674 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21675 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21676 | EXPAT_LINK=" -lexpat" | |
21677 | fi | |
21678 | ||
21679 | fi | |
21680 | fi | |
21681 | if test "x$EXPAT_LINK" = "x" ; then | |
21682 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21683 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21684 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21685 | { (exit 1); exit 1; }; } | |
21686 | else | |
21687 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21688 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21689 | wxUSE_EXPAT=builtin | |
21690 | fi | |
21691 | else | |
21692 | wxUSE_EXPAT=sys | |
21693 | fi | |
21694 | fi | |
21695 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21696 | ||
21697 | ||
21698 | subdirs="$subdirs src/expat" | |
21699 | ||
21700 | fi | |
21701 | fi | |
21702 | ||
21703 | ||
21704 | ||
21705 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21706 | ||
21707 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21708 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21709 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21710 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21712 | fi | |
21713 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21714 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21715 | else | |
21716 | # Is the header compilable? | |
21717 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21718 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21719 | cat >conftest.$ac_ext <<_ACEOF | |
21720 | /* confdefs.h. */ | |
21721 | _ACEOF | |
21722 | cat confdefs.h >>conftest.$ac_ext | |
21723 | cat >>conftest.$ac_ext <<_ACEOF | |
21724 | /* end confdefs.h. */ | |
21725 | $ac_includes_default | |
21726 | #include <mspack.h> | |
21727 | _ACEOF | |
21728 | rm -f conftest.$ac_objext | |
21729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21730 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21731 | ac_status=$? |
ac1cb8d3 VS |
21732 | grep -v '^ *+' conftest.er1 >conftest.err |
21733 | rm -f conftest.er1 | |
21734 | cat conftest.err >&5 | |
a848cd7e SC |
21735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21736 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21737 | { ac_try='test -z "$ac_c_werror_flag" |
21738 | || test ! -s conftest.err' | |
21739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21740 | (eval $ac_try) 2>&5 | |
21741 | ac_status=$? | |
21742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21743 | (exit $ac_status); }; } && | |
21744 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21746 | (eval $ac_try) 2>&5 | |
21747 | ac_status=$? | |
21748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21749 | (exit $ac_status); }; }; then | |
21750 | ac_header_compiler=yes | |
21751 | else | |
21752 | echo "$as_me: failed program was:" >&5 | |
21753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21754 | ||
21755 | ac_header_compiler=no | |
21756 | fi | |
ac1cb8d3 | 21757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21758 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21759 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21760 | ||
21761 | # Is the header present? | |
21762 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21763 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21764 | cat >conftest.$ac_ext <<_ACEOF | |
21765 | /* confdefs.h. */ | |
21766 | _ACEOF | |
21767 | cat confdefs.h >>conftest.$ac_ext | |
21768 | cat >>conftest.$ac_ext <<_ACEOF | |
21769 | /* end confdefs.h. */ | |
21770 | #include <mspack.h> | |
21771 | _ACEOF | |
21772 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21773 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21774 | ac_status=$? | |
21775 | grep -v '^ *+' conftest.er1 >conftest.err | |
21776 | rm -f conftest.er1 | |
21777 | cat conftest.err >&5 | |
21778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21779 | (exit $ac_status); } >/dev/null; then | |
21780 | if test -s conftest.err; then | |
21781 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21782 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21783 | else |
21784 | ac_cpp_err= | |
21785 | fi | |
21786 | else | |
21787 | ac_cpp_err=yes | |
21788 | fi | |
21789 | if test -z "$ac_cpp_err"; then | |
21790 | ac_header_preproc=yes | |
21791 | else | |
21792 | echo "$as_me: failed program was:" >&5 | |
21793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21794 | ||
21795 | ac_header_preproc=no | |
21796 | fi | |
21797 | rm -f conftest.err conftest.$ac_ext | |
21798 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21799 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21800 | ||
21801 | # So? What about this header? | |
ac1cb8d3 VS |
21802 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21803 | yes:no: ) | |
a848cd7e SC |
21804 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21805 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21806 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21807 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21808 | ac_header_preproc=yes | |
a848cd7e | 21809 | ;; |
ac1cb8d3 | 21810 | no:yes:* ) |
a848cd7e SC |
21811 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21812 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21813 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21814 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21815 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21816 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21817 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21818 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21819 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21820 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21821 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21822 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21823 | ( |
21824 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21825 | ## ----------------------------------------- ## |
21826 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21827 | ## ----------------------------------------- ## | |
a848cd7e SC |
21828 | _ASBOX |
21829 | ) | | |
21830 | sed "s/^/$as_me: WARNING: /" >&2 | |
21831 | ;; | |
21832 | esac | |
21833 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21834 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21835 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21837 | else | |
21838 | ac_cv_header_mspack_h=$ac_header_preproc | |
21839 | fi | |
21840 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21841 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21842 | ||
21843 | fi | |
21844 | if test $ac_cv_header_mspack_h = yes; then | |
21845 | found_mspack_h=1 | |
21846 | fi | |
21847 | ||
21848 | ||
21849 | if test "x$found_mspack_h" = "x1"; then | |
21850 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21851 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21852 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21854 | else | |
21855 | ac_check_lib_save_LIBS=$LIBS | |
21856 | LIBS="-lmspack $LIBS" | |
21857 | cat >conftest.$ac_ext <<_ACEOF | |
21858 | /* confdefs.h. */ | |
21859 | _ACEOF | |
21860 | cat confdefs.h >>conftest.$ac_ext | |
21861 | cat >>conftest.$ac_ext <<_ACEOF | |
21862 | /* end confdefs.h. */ | |
21863 | ||
21864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21865 | #ifdef __cplusplus | |
21866 | extern "C" | |
21867 | #endif | |
21868 | /* We use char because int might match the return type of a gcc2 | |
21869 | builtin and then its argument prototype would still apply. */ | |
21870 | char mspack_create_chm_decompressor (); | |
21871 | int | |
21872 | main () | |
21873 | { | |
21874 | mspack_create_chm_decompressor (); | |
21875 | ; | |
21876 | return 0; | |
21877 | } | |
21878 | _ACEOF | |
21879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21881 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21882 | ac_status=$? |
ac1cb8d3 VS |
21883 | grep -v '^ *+' conftest.er1 >conftest.err |
21884 | rm -f conftest.er1 | |
21885 | cat conftest.err >&5 | |
a848cd7e SC |
21886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21887 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21888 | { ac_try='test -z "$ac_c_werror_flag" |
21889 | || test ! -s conftest.err' | |
21890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21891 | (eval $ac_try) 2>&5 | |
21892 | ac_status=$? | |
21893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21894 | (exit $ac_status); }; } && | |
21895 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21897 | (eval $ac_try) 2>&5 | |
21898 | ac_status=$? | |
21899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21900 | (exit $ac_status); }; }; then | |
21901 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
21902 | else | |
21903 | echo "$as_me: failed program was:" >&5 | |
21904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21905 | ||
21906 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
21907 | fi | |
ac1cb8d3 VS |
21908 | rm -f conftest.err conftest.$ac_objext \ |
21909 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21910 | LIBS=$ac_check_lib_save_LIBS |
21911 | fi | |
21912 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
21913 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
21914 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
21915 | MSPACK_LINK=" -lmspack" | |
21916 | fi | |
21917 | ||
21918 | fi | |
21919 | if test "x$MSPACK_LINK" = "x" ; then | |
21920 | wxUSE_LIBMSPACK=no | |
21921 | else | |
21922 | cat >>confdefs.h <<\_ACEOF | |
21923 | #define wxUSE_LIBMSPACK 1 | |
21924 | _ACEOF | |
21925 | ||
21926 | fi | |
21927 | fi | |
21928 | ||
21929 | ||
21930 | ||
21931 | AFMINSTALL= | |
21932 | WIN32INSTALL= | |
21933 | ||
21934 | TOOLKIT= | |
21935 | TOOLKIT_INCLUDE= | |
21936 | WIDGET_SET= | |
21937 | ||
21938 | if test "$USE_WIN32" = 1 ; then | |
21939 | ||
21940 | for ac_header in w32api.h | |
21941 | do | |
21942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21948 | fi | |
21949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21951 | else | |
21952 | # Is the header compilable? | |
21953 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21954 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21955 | cat >conftest.$ac_ext <<_ACEOF | |
21956 | /* confdefs.h. */ | |
21957 | _ACEOF | |
21958 | cat confdefs.h >>conftest.$ac_ext | |
21959 | cat >>conftest.$ac_ext <<_ACEOF | |
21960 | /* end confdefs.h. */ | |
21961 | $ac_includes_default | |
21962 | #include <$ac_header> | |
21963 | _ACEOF | |
21964 | rm -f conftest.$ac_objext | |
21965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21966 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21967 | ac_status=$? |
ac1cb8d3 VS |
21968 | grep -v '^ *+' conftest.er1 >conftest.err |
21969 | rm -f conftest.er1 | |
21970 | cat conftest.err >&5 | |
a848cd7e SC |
21971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21972 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21973 | { ac_try='test -z "$ac_c_werror_flag" |
21974 | || test ! -s conftest.err' | |
21975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21976 | (eval $ac_try) 2>&5 | |
21977 | ac_status=$? | |
21978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21979 | (exit $ac_status); }; } && | |
21980 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21982 | (eval $ac_try) 2>&5 | |
21983 | ac_status=$? | |
21984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21985 | (exit $ac_status); }; }; then | |
21986 | ac_header_compiler=yes | |
21987 | else | |
21988 | echo "$as_me: failed program was:" >&5 | |
21989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21990 | ||
21991 | ac_header_compiler=no | |
21992 | fi | |
ac1cb8d3 | 21993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21994 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21995 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21996 | ||
21997 | # Is the header present? | |
21998 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21999 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22000 | cat >conftest.$ac_ext <<_ACEOF | |
22001 | /* confdefs.h. */ | |
22002 | _ACEOF | |
22003 | cat confdefs.h >>conftest.$ac_ext | |
22004 | cat >>conftest.$ac_ext <<_ACEOF | |
22005 | /* end confdefs.h. */ | |
22006 | #include <$ac_header> | |
22007 | _ACEOF | |
22008 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22009 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22010 | ac_status=$? | |
22011 | grep -v '^ *+' conftest.er1 >conftest.err | |
22012 | rm -f conftest.er1 | |
22013 | cat conftest.err >&5 | |
22014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22015 | (exit $ac_status); } >/dev/null; then | |
22016 | if test -s conftest.err; then | |
22017 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22018 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22019 | else |
22020 | ac_cpp_err= | |
22021 | fi | |
22022 | else | |
22023 | ac_cpp_err=yes | |
22024 | fi | |
22025 | if test -z "$ac_cpp_err"; then | |
22026 | ac_header_preproc=yes | |
22027 | else | |
22028 | echo "$as_me: failed program was:" >&5 | |
22029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22030 | ||
22031 | ac_header_preproc=no | |
22032 | fi | |
22033 | rm -f conftest.err conftest.$ac_ext | |
22034 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22035 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22036 | ||
22037 | # So? What about this header? | |
ac1cb8d3 VS |
22038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22039 | yes:no: ) | |
a848cd7e SC |
22040 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22041 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22043 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22044 | ac_header_preproc=yes | |
a848cd7e | 22045 | ;; |
ac1cb8d3 | 22046 | no:yes:* ) |
a848cd7e SC |
22047 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22048 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22049 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22050 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22051 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22052 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22053 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22054 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22056 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22057 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22058 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22059 | ( |
22060 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22061 | ## ----------------------------------------- ## |
22062 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22063 | ## ----------------------------------------- ## | |
a848cd7e SC |
22064 | _ASBOX |
22065 | ) | | |
22066 | sed "s/^/$as_me: WARNING: /" >&2 | |
22067 | ;; | |
22068 | esac | |
22069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22073 | else | |
ac1cb8d3 | 22074 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22075 | fi |
22076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22078 | ||
22079 | fi | |
22080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22081 | cat >>confdefs.h <<_ACEOF | |
22082 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22083 | _ACEOF | |
22084 | ||
22085 | fi | |
22086 | ||
22087 | done | |
22088 | ||
22089 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22090 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22091 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22092 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22094 | fi | |
22095 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22096 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22097 | else | |
22098 | # Is the header compilable? | |
22099 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22100 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22101 | cat >conftest.$ac_ext <<_ACEOF | |
22102 | /* confdefs.h. */ | |
22103 | _ACEOF | |
22104 | cat confdefs.h >>conftest.$ac_ext | |
22105 | cat >>conftest.$ac_ext <<_ACEOF | |
22106 | /* end confdefs.h. */ | |
22107 | $ac_includes_default | |
22108 | #include <windows.h> | |
22109 | _ACEOF | |
22110 | rm -f conftest.$ac_objext | |
22111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22113 | ac_status=$? |
ac1cb8d3 VS |
22114 | grep -v '^ *+' conftest.er1 >conftest.err |
22115 | rm -f conftest.er1 | |
22116 | cat conftest.err >&5 | |
a848cd7e SC |
22117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22118 | (exit $ac_status); } && | |
ac1cb8d3 VS |
22119 | { ac_try='test -z "$ac_c_werror_flag" |
22120 | || test ! -s conftest.err' | |
22121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22122 | (eval $ac_try) 2>&5 | |
22123 | ac_status=$? | |
22124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22125 | (exit $ac_status); }; } && | |
22126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22128 | (eval $ac_try) 2>&5 | |
22129 | ac_status=$? | |
22130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22131 | (exit $ac_status); }; }; then | |
22132 | ac_header_compiler=yes | |
22133 | else | |
22134 | echo "$as_me: failed program was:" >&5 | |
22135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22136 | ||
22137 | ac_header_compiler=no | |
22138 | fi | |
ac1cb8d3 | 22139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22140 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22141 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22142 | ||
22143 | # Is the header present? | |
22144 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22145 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22146 | cat >conftest.$ac_ext <<_ACEOF | |
22147 | /* confdefs.h. */ | |
22148 | _ACEOF | |
22149 | cat confdefs.h >>conftest.$ac_ext | |
22150 | cat >>conftest.$ac_ext <<_ACEOF | |
22151 | /* end confdefs.h. */ | |
22152 | #include <windows.h> | |
22153 | _ACEOF | |
22154 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22155 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22156 | ac_status=$? | |
22157 | grep -v '^ *+' conftest.er1 >conftest.err | |
22158 | rm -f conftest.er1 | |
22159 | cat conftest.err >&5 | |
22160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22161 | (exit $ac_status); } >/dev/null; then | |
22162 | if test -s conftest.err; then | |
22163 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22164 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22165 | else |
22166 | ac_cpp_err= | |
22167 | fi | |
22168 | else | |
22169 | ac_cpp_err=yes | |
22170 | fi | |
22171 | if test -z "$ac_cpp_err"; then | |
22172 | ac_header_preproc=yes | |
22173 | else | |
22174 | echo "$as_me: failed program was:" >&5 | |
22175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22176 | ||
22177 | ac_header_preproc=no | |
22178 | fi | |
22179 | rm -f conftest.err conftest.$ac_ext | |
22180 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22181 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22182 | ||
22183 | # So? What about this header? | |
ac1cb8d3 VS |
22184 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22185 | yes:no: ) | |
a848cd7e SC |
22186 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22187 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22188 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22189 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22190 | ac_header_preproc=yes | |
a848cd7e | 22191 | ;; |
ac1cb8d3 | 22192 | no:yes:* ) |
a848cd7e SC |
22193 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22194 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22195 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22196 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22197 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22198 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22199 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22200 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22201 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22202 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22203 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22204 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22205 | ( |
22206 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22207 | ## ----------------------------------------- ## |
22208 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22209 | ## ----------------------------------------- ## | |
a848cd7e SC |
22210 | _ASBOX |
22211 | ) | | |
22212 | sed "s/^/$as_me: WARNING: /" >&2 | |
22213 | ;; | |
22214 | esac | |
22215 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22216 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22217 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22219 | else | |
22220 | ac_cv_header_windows_h=$ac_header_preproc | |
22221 | fi | |
22222 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22223 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22224 | ||
22225 | fi | |
22226 | if test $ac_cv_header_windows_h = yes; then | |
22227 | : | |
22228 | else | |
22229 | ||
22230 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22231 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22232 | { (exit 1); exit 1; }; } | |
22233 | ||
22234 | fi | |
22235 | ||
22236 | ||
22237 | ||
22238 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22239 | ||
22240 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22241 | LIBS="$LIBS -loleacc" | |
22242 | fi | |
22243 | ||
22244 | case "${host}" in | |
22245 | *-*-cygwin* ) | |
22246 | LIBS="$LIBS -lkernel32 -luser32" | |
22247 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22248 | esac | |
22249 | ||
22250 | if test "$wxUSE_ODBC" = "sys" ; then | |
22251 | wxUSE_ODBC = "yes" | |
22252 | fi | |
22253 | if test "$wxUSE_ODBC" = "yes" ; then | |
22254 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22255 | cat >>confdefs.h <<\_ACEOF | |
22256 | #define wxUSE_ODBC 1 | |
22257 | _ACEOF | |
22258 | ||
22259 | fi | |
22260 | ||
22261 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22262 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22263 | ||
22264 | WIN32INSTALL=win32install | |
22265 | fi | |
22266 | ||
22267 | if test "$wxUSE_GUI" = "yes"; then | |
22268 | USE_GUI=1 | |
22269 | ||
22270 | GUI_TK_LIBRARY= | |
22271 | ||
22272 | WXGTK12= | |
22273 | WXGTK127= | |
22274 | WXGTK20= | |
22275 | WXGPE= | |
22276 | ||
22277 | if test "$wxUSE_MSW" = 1 ; then | |
22278 | TOOLKIT=MSW | |
22279 | GUIDIST=MSW_DIST | |
22280 | ||
22281 | case "${host}" in | |
22282 | *-*-mingw32* ) | |
22283 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22284 | esac | |
22285 | fi | |
22286 | ||
22287 | if test "$wxUSE_GTK" = 1; then | |
22288 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22289 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22290 | ||
22291 | gtk_version_cached=1 | |
22292 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22294 | else | |
22295 | ||
22296 | gtk_version_cached=0 | |
22297 | echo "$as_me:$LINENO: result: " >&5 | |
22298 | echo "${ECHO_T}" >&6 | |
22299 | ||
22300 | GTK_MODULES= | |
22301 | if test "$wxUSE_THREADS" = "yes"; then | |
22302 | GTK_MODULES=gthread | |
22303 | fi | |
22304 | ||
22305 | wx_cv_lib_gtk= | |
22306 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22307 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22308 | if test "${enable_gtktest+set}" = set; then | |
22309 | enableval="$enable_gtktest" | |
22310 | ||
22311 | else | |
22312 | enable_gtktest=yes | |
22313 | fi; | |
22314 | ||
22315 | pkg_config_args=gtk+-2.0 | |
22316 | for module in . $GTK_MODULES | |
22317 | do | |
22318 | case "$module" in | |
22319 | gthread) | |
22320 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22321 | ;; | |
22322 | esac | |
22323 | done | |
22324 | ||
22325 | no_gtk="" | |
22326 | ||
22327 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22328 | set dummy pkg-config; ac_word=$2 | |
22329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22331 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22333 | else | |
22334 | case $PKG_CONFIG in | |
22335 | [\\/]* | ?:[\\/]*) | |
22336 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22337 | ;; | |
22338 | *) | |
22339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22340 | for as_dir in $PATH | |
22341 | do | |
22342 | IFS=$as_save_IFS | |
22343 | test -z "$as_dir" && as_dir=. | |
22344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22346 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22348 | break 2 | |
22349 | fi | |
22350 | done | |
22351 | done | |
22352 | ||
22353 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22354 | ;; | |
22355 | esac | |
22356 | fi | |
22357 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22358 | ||
22359 | if test -n "$PKG_CONFIG"; then | |
22360 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22361 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22362 | else | |
22363 | echo "$as_me:$LINENO: result: no" >&5 | |
22364 | echo "${ECHO_T}no" >&6 | |
22365 | fi | |
22366 | ||
22367 | ||
22368 | if test x$PKG_CONFIG != xno ; then | |
22369 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22370 | : | |
22371 | else | |
c2218763 | 22372 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22373 | no_gtk=yes |
22374 | PKG_CONFIG=no | |
22375 | fi | |
22376 | else | |
22377 | no_gtk=yes | |
22378 | fi | |
22379 | ||
22380 | min_gtk_version=2.0.0 | |
22381 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22382 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22383 | ||
22384 | if test x$PKG_CONFIG != xno ; then | |
22385 | ## don't try to run the test against uninstalled libtool libs | |
22386 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22387 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22388 | enable_gtktest=no | |
22389 | fi | |
22390 | ||
22391 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22392 | : | |
22393 | else | |
22394 | no_gtk=yes | |
22395 | fi | |
22396 | fi | |
22397 | ||
22398 | if test x"$no_gtk" = x ; then | |
22399 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22400 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22401 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22402 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22403 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22404 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22405 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22406 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22407 | if test "x$enable_gtktest" = "xyes" ; then | |
22408 | ac_save_CFLAGS="$CFLAGS" | |
22409 | ac_save_LIBS="$LIBS" | |
22410 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22411 | LIBS="$GTK_LIBS $LIBS" | |
22412 | rm -f conf.gtktest | |
22413 | if test "$cross_compiling" = yes; then | |
22414 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22415 | else | |
22416 | cat >conftest.$ac_ext <<_ACEOF | |
22417 | /* confdefs.h. */ | |
22418 | _ACEOF | |
22419 | cat confdefs.h >>conftest.$ac_ext | |
22420 | cat >>conftest.$ac_ext <<_ACEOF | |
22421 | /* end confdefs.h. */ | |
22422 | ||
22423 | #include <gtk/gtk.h> | |
22424 | #include <stdio.h> | |
22425 | #include <stdlib.h> | |
22426 | ||
22427 | int | |
22428 | main () | |
22429 | { | |
22430 | int major, minor, micro; | |
22431 | char *tmp_version; | |
22432 | ||
22433 | system ("touch conf.gtktest"); | |
22434 | ||
22435 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22436 | tmp_version = g_strdup("$min_gtk_version"); | |
22437 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22438 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22439 | exit(1); | |
22440 | } | |
22441 | ||
22442 | if ((gtk_major_version != $gtk_config_major_version) || | |
22443 | (gtk_minor_version != $gtk_config_minor_version) || | |
22444 | (gtk_micro_version != $gtk_config_micro_version)) | |
22445 | { | |
22446 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22447 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22448 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22449 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22450 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22451 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22452 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22453 | printf("*** required on your system.\n"); | |
22454 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22455 | printf("*** to point to the correct configuration files\n"); | |
22456 | } | |
22457 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22458 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22459 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22460 | { | |
22461 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22462 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22463 | printf("*** library (version %d.%d.%d)\n", | |
22464 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22465 | } | |
22466 | else | |
22467 | { | |
22468 | if ((gtk_major_version > major) || | |
22469 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22470 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22471 | { | |
22472 | return 0; | |
22473 | } | |
22474 | else | |
22475 | { | |
22476 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22477 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22478 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22479 | major, minor, micro); | |
22480 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22481 | printf("***\n"); | |
22482 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22483 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22484 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22485 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22486 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22487 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22488 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22489 | } | |
22490 | } | |
22491 | return 1; | |
22492 | } | |
22493 | ||
22494 | _ACEOF | |
22495 | rm -f conftest$ac_exeext | |
22496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22497 | (eval $ac_link) 2>&5 | |
22498 | ac_status=$? | |
22499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22500 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22502 | (eval $ac_try) 2>&5 | |
22503 | ac_status=$? | |
22504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22505 | (exit $ac_status); }; }; then | |
22506 | : | |
22507 | else | |
22508 | echo "$as_me: program exited with status $ac_status" >&5 | |
22509 | echo "$as_me: failed program was:" >&5 | |
22510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22511 | ||
22512 | ( exit $ac_status ) | |
22513 | no_gtk=yes | |
22514 | fi | |
ac1cb8d3 | 22515 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22516 | fi |
22517 | CFLAGS="$ac_save_CFLAGS" | |
22518 | LIBS="$ac_save_LIBS" | |
22519 | fi | |
22520 | fi | |
22521 | if test "x$no_gtk" = x ; then | |
22522 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22523 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22524 | wx_cv_lib_gtk=2.0 | |
22525 | else | |
22526 | echo "$as_me:$LINENO: result: no" >&5 | |
22527 | echo "${ECHO_T}no" >&6 | |
22528 | if test "$PKG_CONFIG" = "no" ; then | |
22529 | echo "*** A new enough version of pkg-config was not found." | |
22530 | echo "*** See http://pkgconfig.sourceforge.net" | |
22531 | else | |
22532 | if test -f conf.gtktest ; then | |
22533 | : | |
22534 | else | |
22535 | echo "*** Could not run GTK+ test program, checking why..." | |
22536 | ac_save_CFLAGS="$CFLAGS" | |
22537 | ac_save_LIBS="$LIBS" | |
22538 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22539 | LIBS="$LIBS $GTK_LIBS" | |
22540 | cat >conftest.$ac_ext <<_ACEOF | |
22541 | /* confdefs.h. */ | |
22542 | _ACEOF | |
22543 | cat confdefs.h >>conftest.$ac_ext | |
22544 | cat >>conftest.$ac_ext <<_ACEOF | |
22545 | /* end confdefs.h. */ | |
22546 | ||
22547 | #include <gtk/gtk.h> | |
22548 | #include <stdio.h> | |
22549 | ||
22550 | int | |
22551 | main () | |
22552 | { | |
22553 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22554 | ; | |
22555 | return 0; | |
22556 | } | |
22557 | _ACEOF | |
22558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22560 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22561 | ac_status=$? |
ac1cb8d3 VS |
22562 | grep -v '^ *+' conftest.er1 >conftest.err |
22563 | rm -f conftest.er1 | |
22564 | cat conftest.err >&5 | |
a848cd7e SC |
22565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22566 | (exit $ac_status); } && | |
ac1cb8d3 VS |
22567 | { ac_try='test -z "$ac_c_werror_flag" |
22568 | || test ! -s conftest.err' | |
22569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22570 | (eval $ac_try) 2>&5 | |
22571 | ac_status=$? | |
22572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22573 | (exit $ac_status); }; } && | |
22574 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22576 | (eval $ac_try) 2>&5 | |
22577 | ac_status=$? | |
22578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22579 | (exit $ac_status); }; }; then | |
22580 | echo "*** The test program compiled, but did not run. This usually means" | |
22581 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22582 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22583 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22584 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22585 | echo "*** is required on your system" | |
22586 | echo "***" | |
22587 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22588 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22589 | else | |
22590 | echo "$as_me: failed program was:" >&5 | |
22591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22592 | ||
22593 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22594 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22595 | fi | |
ac1cb8d3 VS |
22596 | rm -f conftest.err conftest.$ac_objext \ |
22597 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22598 | CFLAGS="$ac_save_CFLAGS" |
22599 | LIBS="$ac_save_LIBS" | |
22600 | fi | |
22601 | fi | |
22602 | GTK_CFLAGS="" | |
22603 | GTK_LIBS="" | |
22604 | : | |
22605 | fi | |
22606 | ||
22607 | ||
22608 | rm -f conf.gtktest | |
22609 | ||
22610 | else | |
22611 | ||
22612 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22613 | if test "${with_gtk_prefix+set}" = set; then | |
22614 | withval="$with_gtk_prefix" | |
22615 | gtk_config_prefix="$withval" | |
22616 | else | |
22617 | gtk_config_prefix="" | |
22618 | fi; | |
22619 | ||
22620 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22621 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22622 | withval="$with_gtk_exec_prefix" | |
22623 | gtk_config_exec_prefix="$withval" | |
22624 | else | |
22625 | gtk_config_exec_prefix="" | |
22626 | fi; | |
22627 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22628 | if test "${enable_gtktest+set}" = set; then | |
22629 | enableval="$enable_gtktest" | |
22630 | ||
22631 | else | |
22632 | enable_gtktest=yes | |
22633 | fi; | |
22634 | ||
22635 | for module in . $GTK_MODULES | |
22636 | do | |
22637 | case "$module" in | |
22638 | gthread) | |
22639 | gtk_config_args="$gtk_config_args gthread" | |
22640 | ;; | |
22641 | esac | |
22642 | done | |
22643 | ||
22644 | if test x$gtk_config_exec_prefix != x ; then | |
22645 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22646 | if test x${GTK_CONFIG+set} != xset ; then | |
22647 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22648 | fi | |
22649 | fi | |
22650 | if test x$gtk_config_prefix != x ; then | |
22651 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22652 | if test x${GTK_CONFIG+set} != xset ; then | |
22653 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22654 | fi | |
22655 | fi | |
22656 | ||
22657 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22658 | set dummy gtk-config; ac_word=$2 | |
22659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22661 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22663 | else | |
22664 | case $GTK_CONFIG in | |
22665 | [\\/]* | ?:[\\/]*) | |
22666 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22667 | ;; | |
22668 | *) | |
22669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22670 | for as_dir in $PATH | |
22671 | do | |
22672 | IFS=$as_save_IFS | |
22673 | test -z "$as_dir" && as_dir=. | |
22674 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22675 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22676 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22678 | break 2 | |
22679 | fi | |
22680 | done | |
22681 | done | |
22682 | ||
22683 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22684 | ;; | |
22685 | esac | |
22686 | fi | |
22687 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22688 | ||
22689 | if test -n "$GTK_CONFIG"; then | |
22690 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22691 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22692 | else | |
22693 | echo "$as_me:$LINENO: result: no" >&5 | |
22694 | echo "${ECHO_T}no" >&6 | |
22695 | fi | |
22696 | ||
22697 | min_gtk_version=1.2.7 | |
22698 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22699 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22700 | no_gtk="" | |
22701 | if test "$GTK_CONFIG" = "no" ; then | |
22702 | no_gtk=yes | |
22703 | else | |
22704 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22705 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22706 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22707 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22708 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22709 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22710 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22711 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22712 | if test "x$enable_gtktest" = "xyes" ; then | |
22713 | ac_save_CFLAGS="$CFLAGS" | |
22714 | ac_save_LIBS="$LIBS" | |
22715 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22716 | LIBS="$GTK_LIBS $LIBS" | |
22717 | rm -f conf.gtktest | |
22718 | if test "$cross_compiling" = yes; then | |
22719 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22720 | else | |
22721 | cat >conftest.$ac_ext <<_ACEOF | |
22722 | /* confdefs.h. */ | |
22723 | _ACEOF | |
22724 | cat confdefs.h >>conftest.$ac_ext | |
22725 | cat >>conftest.$ac_ext <<_ACEOF | |
22726 | /* end confdefs.h. */ | |
22727 | ||
22728 | #include <gtk/gtk.h> | |
22729 | #include <stdio.h> | |
22730 | #include <stdlib.h> | |
22731 | ||
22732 | int | |
22733 | main () | |
22734 | { | |
22735 | int major, minor, micro; | |
22736 | char *tmp_version; | |
22737 | ||
22738 | system ("touch conf.gtktest"); | |
22739 | ||
22740 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22741 | tmp_version = g_strdup("$min_gtk_version"); | |
22742 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22743 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22744 | exit(1); | |
22745 | } | |
22746 | ||
22747 | if ((gtk_major_version != $gtk_config_major_version) || | |
22748 | (gtk_minor_version != $gtk_config_minor_version) || | |
22749 | (gtk_micro_version != $gtk_config_micro_version)) | |
22750 | { | |
22751 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22752 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22753 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22754 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22755 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22756 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22757 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22758 | printf("*** required on your system.\n"); | |
22759 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22760 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22761 | printf("*** before re-running configure\n"); | |
22762 | } | |
22763 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22764 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22765 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22766 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22767 | { | |
22768 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22769 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22770 | printf("*** library (version %d.%d.%d)\n", | |
22771 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22772 | } | |
22773 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22774 | else | |
22775 | { | |
22776 | if ((gtk_major_version > major) || | |
22777 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22778 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22779 | { | |
22780 | return 0; | |
22781 | } | |
22782 | else | |
22783 | { | |
22784 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22785 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22786 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22787 | major, minor, micro); | |
22788 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22789 | printf("***\n"); | |
22790 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22791 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22792 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22793 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22794 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22795 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22796 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22797 | } | |
22798 | } | |
22799 | return 1; | |
22800 | } | |
22801 | ||
22802 | _ACEOF | |
22803 | rm -f conftest$ac_exeext | |
22804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22805 | (eval $ac_link) 2>&5 | |
22806 | ac_status=$? | |
22807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22808 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22810 | (eval $ac_try) 2>&5 | |
22811 | ac_status=$? | |
22812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22813 | (exit $ac_status); }; }; then | |
22814 | : | |
22815 | else | |
22816 | echo "$as_me: program exited with status $ac_status" >&5 | |
22817 | echo "$as_me: failed program was:" >&5 | |
22818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22819 | ||
22820 | ( exit $ac_status ) | |
22821 | no_gtk=yes | |
22822 | fi | |
ac1cb8d3 | 22823 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22824 | fi |
22825 | CFLAGS="$ac_save_CFLAGS" | |
22826 | LIBS="$ac_save_LIBS" | |
22827 | fi | |
22828 | fi | |
22829 | if test "x$no_gtk" = x ; then | |
22830 | echo "$as_me:$LINENO: result: yes" >&5 | |
22831 | echo "${ECHO_T}yes" >&6 | |
22832 | wx_cv_lib_gtk=1.2.7 | |
22833 | else | |
22834 | echo "$as_me:$LINENO: result: no" >&5 | |
22835 | echo "${ECHO_T}no" >&6 | |
22836 | if test "$GTK_CONFIG" = "no" ; then | |
22837 | echo "*** The gtk-config script installed by GTK could not be found" | |
22838 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22839 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22840 | echo "*** full path to gtk-config." | |
22841 | else | |
22842 | if test -f conf.gtktest ; then | |
22843 | : | |
22844 | else | |
22845 | echo "*** Could not run GTK test program, checking why..." | |
22846 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22847 | LIBS="$LIBS $GTK_LIBS" | |
22848 | cat >conftest.$ac_ext <<_ACEOF | |
22849 | /* confdefs.h. */ | |
22850 | _ACEOF | |
22851 | cat confdefs.h >>conftest.$ac_ext | |
22852 | cat >>conftest.$ac_ext <<_ACEOF | |
22853 | /* end confdefs.h. */ | |
22854 | ||
22855 | #include <gtk/gtk.h> | |
22856 | #include <stdio.h> | |
22857 | ||
22858 | int | |
22859 | main () | |
22860 | { | |
22861 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22862 | ; | |
22863 | return 0; | |
22864 | } | |
22865 | _ACEOF | |
22866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22868 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22869 | ac_status=$? |
ac1cb8d3 VS |
22870 | grep -v '^ *+' conftest.er1 >conftest.err |
22871 | rm -f conftest.er1 | |
22872 | cat conftest.err >&5 | |
a848cd7e SC |
22873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22874 | (exit $ac_status); } && | |
ac1cb8d3 VS |
22875 | { ac_try='test -z "$ac_c_werror_flag" |
22876 | || test ! -s conftest.err' | |
22877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22878 | (eval $ac_try) 2>&5 | |
22879 | ac_status=$? | |
22880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22881 | (exit $ac_status); }; } && | |
22882 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22884 | (eval $ac_try) 2>&5 | |
22885 | ac_status=$? | |
22886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22887 | (exit $ac_status); }; }; then | |
22888 | echo "*** The test program compiled, but did not run. This usually means" | |
22889 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22890 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22891 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22892 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22893 | echo "*** is required on your system" | |
22894 | echo "***" | |
22895 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22896 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22897 | echo "***" | |
22898 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22899 | echo "*** came with the system with the command" | |
22900 | echo "***" | |
22901 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
22902 | else | |
22903 | echo "$as_me: failed program was:" >&5 | |
22904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22905 | ||
22906 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22907 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
22908 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
22909 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
22910 | fi | |
ac1cb8d3 VS |
22911 | rm -f conftest.err conftest.$ac_objext \ |
22912 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22913 | CFLAGS="$ac_save_CFLAGS" |
22914 | LIBS="$ac_save_LIBS" | |
22915 | fi | |
22916 | fi | |
22917 | GTK_CFLAGS="" | |
22918 | GTK_LIBS="" | |
22919 | : | |
22920 | fi | |
22921 | ||
22922 | ||
22923 | rm -f conf.gtktest | |
22924 | ||
22925 | ||
22926 | if test -z "$wx_cv_lib_gtk"; then | |
22927 | ||
22928 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22929 | if test "${with_gtk_prefix+set}" = set; then | |
22930 | withval="$with_gtk_prefix" | |
22931 | gtk_config_prefix="$withval" | |
22932 | else | |
22933 | gtk_config_prefix="" | |
22934 | fi; | |
22935 | ||
22936 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22937 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22938 | withval="$with_gtk_exec_prefix" | |
22939 | gtk_config_exec_prefix="$withval" | |
22940 | else | |
22941 | gtk_config_exec_prefix="" | |
22942 | fi; | |
22943 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22944 | if test "${enable_gtktest+set}" = set; then | |
22945 | enableval="$enable_gtktest" | |
22946 | ||
22947 | else | |
22948 | enable_gtktest=yes | |
22949 | fi; | |
22950 | ||
22951 | for module in . $GTK_MODULES | |
22952 | do | |
22953 | case "$module" in | |
22954 | gthread) | |
22955 | gtk_config_args="$gtk_config_args gthread" | |
22956 | ;; | |
22957 | esac | |
22958 | done | |
22959 | ||
22960 | if test x$gtk_config_exec_prefix != x ; then | |
22961 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22962 | if test x${GTK_CONFIG+set} != xset ; then | |
22963 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22964 | fi | |
22965 | fi | |
22966 | if test x$gtk_config_prefix != x ; then | |
22967 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22968 | if test x${GTK_CONFIG+set} != xset ; then | |
22969 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22970 | fi | |
22971 | fi | |
22972 | ||
22973 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22974 | set dummy gtk-config; ac_word=$2 | |
22975 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22977 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22979 | else | |
22980 | case $GTK_CONFIG in | |
22981 | [\\/]* | ?:[\\/]*) | |
22982 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22983 | ;; | |
22984 | *) | |
22985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22986 | for as_dir in $PATH | |
22987 | do | |
22988 | IFS=$as_save_IFS | |
22989 | test -z "$as_dir" && as_dir=. | |
22990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22991 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22992 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22994 | break 2 | |
22995 | fi | |
22996 | done | |
22997 | done | |
22998 | ||
22999 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23000 | ;; | |
23001 | esac | |
23002 | fi | |
23003 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23004 | ||
23005 | if test -n "$GTK_CONFIG"; then | |
23006 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23007 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23008 | else | |
23009 | echo "$as_me:$LINENO: result: no" >&5 | |
23010 | echo "${ECHO_T}no" >&6 | |
23011 | fi | |
23012 | ||
23013 | min_gtk_version=1.2.3 | |
23014 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23015 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23016 | no_gtk="" | |
23017 | if test "$GTK_CONFIG" = "no" ; then | |
23018 | no_gtk=yes | |
23019 | else | |
23020 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23021 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23022 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23023 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23024 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23025 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23026 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23027 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23028 | if test "x$enable_gtktest" = "xyes" ; then | |
23029 | ac_save_CFLAGS="$CFLAGS" | |
23030 | ac_save_LIBS="$LIBS" | |
23031 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23032 | LIBS="$GTK_LIBS $LIBS" | |
23033 | rm -f conf.gtktest | |
23034 | if test "$cross_compiling" = yes; then | |
23035 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23036 | else | |
23037 | cat >conftest.$ac_ext <<_ACEOF | |
23038 | /* confdefs.h. */ | |
23039 | _ACEOF | |
23040 | cat confdefs.h >>conftest.$ac_ext | |
23041 | cat >>conftest.$ac_ext <<_ACEOF | |
23042 | /* end confdefs.h. */ | |
23043 | ||
23044 | #include <gtk/gtk.h> | |
23045 | #include <stdio.h> | |
23046 | #include <stdlib.h> | |
23047 | ||
23048 | int | |
23049 | main () | |
23050 | { | |
23051 | int major, minor, micro; | |
23052 | char *tmp_version; | |
23053 | ||
23054 | system ("touch conf.gtktest"); | |
23055 | ||
23056 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23057 | tmp_version = g_strdup("$min_gtk_version"); | |
23058 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23059 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23060 | exit(1); | |
23061 | } | |
23062 | ||
23063 | if ((gtk_major_version != $gtk_config_major_version) || | |
23064 | (gtk_minor_version != $gtk_config_minor_version) || | |
23065 | (gtk_micro_version != $gtk_config_micro_version)) | |
23066 | { | |
23067 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23068 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23069 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23070 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23071 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23072 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23073 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23074 | printf("*** required on your system.\n"); | |
23075 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23076 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23077 | printf("*** before re-running configure\n"); | |
23078 | } | |
23079 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23080 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23081 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23082 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23083 | { | |
23084 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23085 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23086 | printf("*** library (version %d.%d.%d)\n", | |
23087 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23088 | } | |
23089 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23090 | else | |
23091 | { | |
23092 | if ((gtk_major_version > major) || | |
23093 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23094 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23095 | { | |
23096 | return 0; | |
23097 | } | |
23098 | else | |
23099 | { | |
23100 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23101 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23102 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23103 | major, minor, micro); | |
23104 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23105 | printf("***\n"); | |
23106 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23107 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23108 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23109 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23110 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23111 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23112 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23113 | } | |
23114 | } | |
23115 | return 1; | |
23116 | } | |
23117 | ||
23118 | _ACEOF | |
23119 | rm -f conftest$ac_exeext | |
23120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23121 | (eval $ac_link) 2>&5 | |
23122 | ac_status=$? | |
23123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23124 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23126 | (eval $ac_try) 2>&5 | |
23127 | ac_status=$? | |
23128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23129 | (exit $ac_status); }; }; then | |
23130 | : | |
23131 | else | |
23132 | echo "$as_me: program exited with status $ac_status" >&5 | |
23133 | echo "$as_me: failed program was:" >&5 | |
23134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23135 | ||
23136 | ( exit $ac_status ) | |
23137 | no_gtk=yes | |
23138 | fi | |
ac1cb8d3 | 23139 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23140 | fi |
23141 | CFLAGS="$ac_save_CFLAGS" | |
23142 | LIBS="$ac_save_LIBS" | |
23143 | fi | |
23144 | fi | |
23145 | if test "x$no_gtk" = x ; then | |
23146 | echo "$as_me:$LINENO: result: yes" >&5 | |
23147 | echo "${ECHO_T}yes" >&6 | |
23148 | wx_cv_lib_gtk=1.2.3 | |
23149 | else | |
23150 | echo "$as_me:$LINENO: result: no" >&5 | |
23151 | echo "${ECHO_T}no" >&6 | |
23152 | if test "$GTK_CONFIG" = "no" ; then | |
23153 | echo "*** The gtk-config script installed by GTK could not be found" | |
23154 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23155 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23156 | echo "*** full path to gtk-config." | |
23157 | else | |
23158 | if test -f conf.gtktest ; then | |
23159 | : | |
23160 | else | |
23161 | echo "*** Could not run GTK test program, checking why..." | |
23162 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23163 | LIBS="$LIBS $GTK_LIBS" | |
23164 | cat >conftest.$ac_ext <<_ACEOF | |
23165 | /* confdefs.h. */ | |
23166 | _ACEOF | |
23167 | cat confdefs.h >>conftest.$ac_ext | |
23168 | cat >>conftest.$ac_ext <<_ACEOF | |
23169 | /* end confdefs.h. */ | |
23170 | ||
23171 | #include <gtk/gtk.h> | |
23172 | #include <stdio.h> | |
23173 | ||
23174 | int | |
23175 | main () | |
23176 | { | |
23177 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23178 | ; | |
23179 | return 0; | |
23180 | } | |
23181 | _ACEOF | |
23182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23184 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23185 | ac_status=$? |
ac1cb8d3 VS |
23186 | grep -v '^ *+' conftest.er1 >conftest.err |
23187 | rm -f conftest.er1 | |
23188 | cat conftest.err >&5 | |
a848cd7e SC |
23189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23190 | (exit $ac_status); } && | |
ac1cb8d3 VS |
23191 | { ac_try='test -z "$ac_c_werror_flag" |
23192 | || test ! -s conftest.err' | |
23193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23194 | (eval $ac_try) 2>&5 | |
23195 | ac_status=$? | |
23196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23197 | (exit $ac_status); }; } && | |
23198 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23200 | (eval $ac_try) 2>&5 | |
23201 | ac_status=$? | |
23202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23203 | (exit $ac_status); }; }; then | |
23204 | echo "*** The test program compiled, but did not run. This usually means" | |
23205 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23206 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23207 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23208 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23209 | echo "*** is required on your system" | |
23210 | echo "***" | |
23211 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23212 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23213 | echo "***" | |
23214 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23215 | echo "*** came with the system with the command" | |
23216 | echo "***" | |
23217 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23218 | else | |
23219 | echo "$as_me: failed program was:" >&5 | |
23220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23221 | ||
23222 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23223 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23224 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23225 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23226 | fi | |
ac1cb8d3 VS |
23227 | rm -f conftest.err conftest.$ac_objext \ |
23228 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23229 | CFLAGS="$ac_save_CFLAGS" |
23230 | LIBS="$ac_save_LIBS" | |
23231 | fi | |
23232 | fi | |
23233 | GTK_CFLAGS="" | |
23234 | GTK_LIBS="" | |
23235 | : | |
23236 | fi | |
23237 | ||
23238 | ||
23239 | rm -f conf.gtktest | |
23240 | ||
23241 | fi | |
23242 | fi | |
23243 | ||
23244 | if test -z "$wx_cv_lib_gtk"; then | |
23245 | wx_cv_lib_gtk=none | |
23246 | else | |
23247 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23248 | wx_cv_libs_gtk=$GTK_LIBS | |
23249 | fi | |
23250 | ||
23251 | ||
23252 | fi | |
23253 | ||
23254 | ||
23255 | if test "$gtk_version_cached" = 1; then | |
23256 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23257 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23258 | fi | |
23259 | ||
23260 | case "$wx_cv_lib_gtk" in | |
23261 | 2.0) WXGTK20=1 | |
23262 | TOOLKIT_VERSION=2 | |
23263 | ;; | |
23264 | 1.2.7) WXGTK127=1 | |
23265 | WXGTK12=1 | |
23266 | ;; | |
23267 | 1.2.3) WXGTK12=1 | |
23268 | ;; | |
23269 | *) { { echo "$as_me:$LINENO: error: | |
23270 | Please check that gtk-config is in path, the directory | |
23271 | where GTK+ libraries are installed (returned by | |
23272 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23273 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23274 | " >&5 | |
23275 | echo "$as_me: error: | |
23276 | Please check that gtk-config is in path, the directory | |
23277 | where GTK+ libraries are installed (returned by | |
23278 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23279 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23280 | " >&2;} | |
23281 | { (exit 1); exit 1; }; } | |
23282 | ;; | |
23283 | esac | |
23284 | ||
23285 | if test "$WXGTK20" = 1; then | |
23286 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
23287 | ||
23288 | succeeded=no | |
23289 | ||
23290 | if test -z "$PKG_CONFIG"; then | |
23291 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23292 | set dummy pkg-config; ac_word=$2 | |
23293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23295 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23297 | else | |
23298 | case $PKG_CONFIG in | |
23299 | [\\/]* | ?:[\\/]*) | |
23300 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23301 | ;; | |
23302 | *) | |
23303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23304 | for as_dir in $PATH | |
23305 | do | |
23306 | IFS=$as_save_IFS | |
23307 | test -z "$as_dir" && as_dir=. | |
23308 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23309 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23310 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23311 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23312 | break 2 | |
23313 | fi | |
23314 | done | |
23315 | done | |
23316 | ||
23317 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23318 | ;; | |
23319 | esac | |
23320 | fi | |
23321 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23322 | ||
23323 | if test -n "$PKG_CONFIG"; then | |
23324 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23325 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23326 | else | |
23327 | echo "$as_me:$LINENO: result: no" >&5 | |
23328 | echo "${ECHO_T}no" >&6 | |
23329 | fi | |
23330 | ||
23331 | fi | |
23332 | ||
23333 | if test "$PKG_CONFIG" = "no" ; then | |
23334 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23335 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23336 | echo "*** to the full path to pkg-config." | |
23337 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23338 | else | |
23339 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23340 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23341 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
23342 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
23343 | ||
23344 | if $PKG_CONFIG --exists "pangoft2" ; then | |
23345 | echo "$as_me:$LINENO: result: yes" >&5 | |
23346 | echo "${ECHO_T}yes" >&6 | |
23347 | succeeded=yes | |
23348 | ||
23349 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
23350 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
23351 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
23352 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
23353 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
23354 | ||
23355 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
23356 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
23357 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
23358 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
23359 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
23360 | else | |
23361 | PANGOFT2_CFLAGS="" | |
23362 | PANGOFT2_LIBS="" | |
23363 | ## If we have a custom action on failure, don't print errors, but | |
23364 | ## do set a variable so people can do so. | |
23365 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
23366 | ||
23367 | fi | |
23368 | ||
23369 | ||
23370 | ||
23371 | else | |
23372 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23373 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23374 | fi | |
23375 | fi | |
23376 | ||
23377 | if test $succeeded = yes; then | |
23378 | ||
23379 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
23380 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
23381 | ||
23382 | else | |
23383 | ||
23384 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23385 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
23386 | wxUSE_PRINTING_ARCHITECTURE="no" | |
23387 | ||
23388 | ||
23389 | fi | |
23390 | ||
23391 | fi | |
304205f1 VS |
23392 | |
23393 | save_CFLAGS="$CFLAGS" | |
23394 | save_LIBS="$LIBS" | |
23395 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23396 | LIBS="$LIBS $GTK_LIBS" | |
23397 | ||
23398 | for ac_func in pango_font_family_is_monospace | |
23399 | do | |
23400 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23401 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23402 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23403 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23405 | else | |
23406 | cat >conftest.$ac_ext <<_ACEOF | |
23407 | /* confdefs.h. */ | |
23408 | _ACEOF | |
23409 | cat confdefs.h >>conftest.$ac_ext | |
23410 | cat >>conftest.$ac_ext <<_ACEOF | |
23411 | /* end confdefs.h. */ | |
23412 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23413 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23414 | #define $ac_func innocuous_$ac_func | |
23415 | ||
23416 | /* System header to define __stub macros and hopefully few prototypes, | |
23417 | which can conflict with char $ac_func (); below. | |
23418 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23419 | <limits.h> exists even on freestanding compilers. */ | |
23420 | ||
23421 | #ifdef __STDC__ | |
23422 | # include <limits.h> | |
23423 | #else | |
23424 | # include <assert.h> | |
23425 | #endif | |
23426 | ||
23427 | #undef $ac_func | |
23428 | ||
23429 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23430 | #ifdef __cplusplus | |
23431 | extern "C" | |
23432 | { | |
23433 | #endif | |
23434 | /* We use char because int might match the return type of a gcc2 | |
23435 | builtin and then its argument prototype would still apply. */ | |
23436 | char $ac_func (); | |
23437 | /* The GNU C library defines this for functions which it implements | |
23438 | to always fail with ENOSYS. Some functions are actually named | |
23439 | something starting with __ and the normal name is an alias. */ | |
23440 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23441 | choke me | |
23442 | #else | |
23443 | char (*f) () = $ac_func; | |
23444 | #endif | |
23445 | #ifdef __cplusplus | |
23446 | } | |
23447 | #endif | |
23448 | ||
23449 | int | |
23450 | main () | |
23451 | { | |
23452 | return f != $ac_func; | |
23453 | ; | |
23454 | return 0; | |
23455 | } | |
23456 | _ACEOF | |
23457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23459 | (eval $ac_link) 2>conftest.er1 | |
23460 | ac_status=$? | |
23461 | grep -v '^ *+' conftest.er1 >conftest.err | |
23462 | rm -f conftest.er1 | |
23463 | cat conftest.err >&5 | |
23464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23465 | (exit $ac_status); } && | |
23466 | { ac_try='test -z "$ac_c_werror_flag" | |
23467 | || test ! -s conftest.err' | |
23468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23469 | (eval $ac_try) 2>&5 | |
23470 | ac_status=$? | |
23471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23472 | (exit $ac_status); }; } && | |
23473 | { ac_try='test -s conftest$ac_exeext' | |
23474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23475 | (eval $ac_try) 2>&5 | |
23476 | ac_status=$? | |
23477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23478 | (exit $ac_status); }; }; then | |
23479 | eval "$as_ac_var=yes" | |
23480 | else | |
23481 | echo "$as_me: failed program was:" >&5 | |
23482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23483 | ||
23484 | eval "$as_ac_var=no" | |
23485 | fi | |
23486 | rm -f conftest.err conftest.$ac_objext \ | |
23487 | conftest$ac_exeext conftest.$ac_ext | |
23488 | fi | |
23489 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23490 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23491 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23492 | cat >>confdefs.h <<_ACEOF | |
23493 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23494 | _ACEOF | |
23495 | ||
23496 | fi | |
23497 | done | |
23498 | ||
23499 | CFLAGS="$save_CFLAGS" | |
23500 | LIBS="$save_LIBS" | |
a848cd7e SC |
23501 | else |
23502 | if test "$wxUSE_UNICODE" = "yes"; then | |
23503 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23504 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23505 | wxUSE_UNICODE=no | |
23506 | fi | |
23507 | fi | |
23508 | ||
23509 | if test "$USE_DARWIN" != 1; then | |
23510 | ||
23511 | for ac_func in poll | |
23512 | do | |
23513 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23514 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23516 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23518 | else | |
23519 | cat >conftest.$ac_ext <<_ACEOF | |
23520 | /* confdefs.h. */ | |
23521 | _ACEOF | |
23522 | cat confdefs.h >>conftest.$ac_ext | |
23523 | cat >>conftest.$ac_ext <<_ACEOF | |
23524 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23525 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23527 | #define $ac_func innocuous_$ac_func | |
23528 | ||
a848cd7e SC |
23529 | /* System header to define __stub macros and hopefully few prototypes, |
23530 | which can conflict with char $ac_func (); below. | |
23531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23532 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23533 | |
a848cd7e SC |
23534 | #ifdef __STDC__ |
23535 | # include <limits.h> | |
23536 | #else | |
23537 | # include <assert.h> | |
23538 | #endif | |
ac1cb8d3 VS |
23539 | |
23540 | #undef $ac_func | |
23541 | ||
a848cd7e SC |
23542 | /* Override any gcc2 internal prototype to avoid an error. */ |
23543 | #ifdef __cplusplus | |
23544 | extern "C" | |
23545 | { | |
23546 | #endif | |
23547 | /* We use char because int might match the return type of a gcc2 | |
23548 | builtin and then its argument prototype would still apply. */ | |
23549 | char $ac_func (); | |
23550 | /* The GNU C library defines this for functions which it implements | |
23551 | to always fail with ENOSYS. Some functions are actually named | |
23552 | something starting with __ and the normal name is an alias. */ | |
23553 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23554 | choke me | |
23555 | #else | |
23556 | char (*f) () = $ac_func; | |
23557 | #endif | |
23558 | #ifdef __cplusplus | |
23559 | } | |
23560 | #endif | |
23561 | ||
23562 | int | |
23563 | main () | |
23564 | { | |
23565 | return f != $ac_func; | |
23566 | ; | |
23567 | return 0; | |
23568 | } | |
23569 | _ACEOF | |
23570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23572 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23573 | ac_status=$? |
ac1cb8d3 VS |
23574 | grep -v '^ *+' conftest.er1 >conftest.err |
23575 | rm -f conftest.er1 | |
23576 | cat conftest.err >&5 | |
a848cd7e SC |
23577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23578 | (exit $ac_status); } && | |
ac1cb8d3 VS |
23579 | { ac_try='test -z "$ac_c_werror_flag" |
23580 | || test ! -s conftest.err' | |
23581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23582 | (eval $ac_try) 2>&5 | |
23583 | ac_status=$? | |
23584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23585 | (exit $ac_status); }; } && | |
23586 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23588 | (eval $ac_try) 2>&5 | |
23589 | ac_status=$? | |
23590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23591 | (exit $ac_status); }; }; then | |
23592 | eval "$as_ac_var=yes" | |
23593 | else | |
23594 | echo "$as_me: failed program was:" >&5 | |
23595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23596 | ||
23597 | eval "$as_ac_var=no" | |
23598 | fi | |
ac1cb8d3 VS |
23599 | rm -f conftest.err conftest.$ac_objext \ |
23600 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23601 | fi |
23602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23603 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23604 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23605 | cat >>confdefs.h <<_ACEOF | |
23606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23607 | _ACEOF | |
23608 | ||
23609 | fi | |
23610 | done | |
23611 | ||
23612 | fi | |
23613 | ||
23614 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23615 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23616 | ||
23617 | AFMINSTALL=afminstall | |
23618 | TOOLKIT=GTK | |
23619 | GUIDIST=GTK_DIST | |
23620 | ||
23621 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23622 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23623 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23625 | else | |
23626 | ac_check_lib_save_LIBS=$LIBS | |
23627 | LIBS="-lgdk $LIBS" | |
23628 | cat >conftest.$ac_ext <<_ACEOF | |
23629 | /* confdefs.h. */ | |
23630 | _ACEOF | |
23631 | cat confdefs.h >>conftest.$ac_ext | |
23632 | cat >>conftest.$ac_ext <<_ACEOF | |
23633 | /* end confdefs.h. */ | |
23634 | ||
23635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23636 | #ifdef __cplusplus | |
23637 | extern "C" | |
23638 | #endif | |
23639 | /* We use char because int might match the return type of a gcc2 | |
23640 | builtin and then its argument prototype would still apply. */ | |
23641 | char gdk_im_open (); | |
23642 | int | |
23643 | main () | |
23644 | { | |
23645 | gdk_im_open (); | |
23646 | ; | |
23647 | return 0; | |
23648 | } | |
23649 | _ACEOF | |
23650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23652 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23653 | ac_status=$? |
ac1cb8d3 VS |
23654 | grep -v '^ *+' conftest.er1 >conftest.err |
23655 | rm -f conftest.er1 | |
23656 | cat conftest.err >&5 | |
a848cd7e SC |
23657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23658 | (exit $ac_status); } && | |
ac1cb8d3 VS |
23659 | { ac_try='test -z "$ac_c_werror_flag" |
23660 | || test ! -s conftest.err' | |
23661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23662 | (eval $ac_try) 2>&5 | |
23663 | ac_status=$? | |
23664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23665 | (exit $ac_status); }; } && | |
23666 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23668 | (eval $ac_try) 2>&5 | |
23669 | ac_status=$? | |
23670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23671 | (exit $ac_status); }; }; then | |
23672 | ac_cv_lib_gdk_gdk_im_open=yes | |
23673 | else | |
23674 | echo "$as_me: failed program was:" >&5 | |
23675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23676 | ||
23677 | ac_cv_lib_gdk_gdk_im_open=no | |
23678 | fi | |
ac1cb8d3 VS |
23679 | rm -f conftest.err conftest.$ac_objext \ |
23680 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23681 | LIBS=$ac_check_lib_save_LIBS |
23682 | fi | |
23683 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23684 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23685 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23686 | cat >>confdefs.h <<\_ACEOF | |
23687 | #define HAVE_XIM 1 | |
23688 | _ACEOF | |
23689 | ||
23690 | fi | |
23691 | ||
23692 | ||
23693 | ||
23694 | if test "$wxUSE_GPE" = "yes"; then | |
23695 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23696 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23697 | ||
23698 | ac_find_libraries= | |
23699 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23700 | do | |
23701 | for ac_extension in a so sl dylib; do | |
23702 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23703 | ac_find_libraries=$ac_dir | |
23704 | break 2 | |
23705 | fi | |
23706 | done | |
23707 | done | |
23708 | ||
23709 | if test "$ac_find_libraries" != "" ; then | |
23710 | ||
23711 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23712 | result=$? | |
23713 | if test $result = 0; then | |
23714 | ac_path_to_link="" | |
23715 | else | |
23716 | ac_path_to_link=" -L$ac_find_libraries" | |
23717 | fi | |
23718 | ||
23719 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23720 | WXGPE=1 | |
23721 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23722 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23723 | else | |
23724 | echo "$as_me:$LINENO: result: not found" >&5 | |
23725 | echo "${ECHO_T}not found" >&6 | |
23726 | fi | |
23727 | ||
23728 | fi | |
23729 | fi | |
23730 | ||
23731 | if test "$wxUSE_MGL" = 1; then | |
23732 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23733 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23734 | if test "x$MGL_ROOT" = x ; then | |
23735 | echo "$as_me:$LINENO: result: not found" >&5 | |
23736 | echo "${ECHO_T}not found" >&6 | |
23737 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23738 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23739 | { (exit 1); exit 1; }; } | |
23740 | else | |
23741 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
23742 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
23743 | fi | |
23744 | ||
23745 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
23746 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
23747 | case "${host}" in | |
23748 | *-*-linux* ) | |
23749 | if test "x$wxUSE_SHARED" = xyes ; then | |
23750 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
23751 | else | |
23752 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
23753 | fi | |
23754 | ;; | |
23755 | *-pc-msdosdjgpp ) | |
23756 | mgl_os_candidates="dos32/dj2" | |
23757 | ;; | |
23758 | *) | |
23759 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
23760 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23761 | { (exit 1); exit 1; }; } | |
23762 | esac | |
23763 | ||
23764 | mgl_lib_type="" | |
23765 | mgl_os="" | |
23766 | ||
23767 | for mgl_os_i in $mgl_os_candidates ; do | |
23768 | if test "x$mgl_os" = x ; then | |
23769 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23770 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23771 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23772 | mgl_lib_type=debug | |
23773 | mgl_os=$mgl_os_i | |
23774 | fi | |
23775 | fi | |
23776 | if test "x$mgl_lib_type" = x ; then | |
23777 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23778 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23779 | mgl_lib_type=release | |
23780 | mgl_os=$mgl_os_i | |
23781 | fi | |
23782 | fi | |
23783 | fi | |
23784 | done | |
23785 | ||
23786 | if test "x$mgl_os" = x ; then | |
23787 | echo "$as_me:$LINENO: result: not found" >&5 | |
23788 | echo "${ECHO_T}not found" >&6 | |
23789 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23790 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23791 | { (exit 1); exit 1; }; } | |
23792 | fi | |
23793 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
23794 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
23795 | ||
23796 | wxUSE_UNIVERSAL="yes" | |
23797 | ||
23798 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
23799 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23800 | ||
23801 | AFMINSTALL=afminstall | |
23802 | TOOLKIT=MGL | |
23803 | GUIDIST=MGL_DIST | |
23804 | fi | |
23805 | ||
23806 | if test "$wxUSE_MICROWIN" = 1; then | |
23807 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
23808 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
23809 | if test "x$MICROWINDOWS" = x ; then | |
23810 | echo "$as_me:$LINENO: result: not found" >&5 | |
23811 | echo "${ECHO_T}not found" >&6 | |
23812 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23813 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23814 | { (exit 1); exit 1; }; } | |
23815 | else | |
23816 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
23817 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
23818 | fi | |
23819 | ||
23820 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
23821 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
23822 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
23823 | else | |
23824 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
23825 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23826 | { (exit 1); exit 1; }; } | |
23827 | fi | |
23828 | ||
23829 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
23830 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23831 | ||
23832 | wxUSE_UNIVERSAL="yes" | |
23833 | ||
23834 | AFMINSTALL=afminstall | |
23835 | TOOLKIT=MICROWIN | |
23836 | GUIDIST=MICROWIN_DIST | |
23837 | ||
23838 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
23839 | fi | |
23840 | ||
23841 | if test "$wxUSE_X11" = 1; then | |
23842 | echo "$as_me:$LINENO: checking for X" >&5 | |
23843 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
23844 | ||
23845 | ||
23846 | # Check whether --with-x or --without-x was given. | |
23847 | if test "${with_x+set}" = set; then | |
23848 | withval="$with_x" | |
23849 | ||
23850 | fi; | |
23851 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
23852 | if test "x$with_x" = xno; then | |
23853 | # The user explicitly disabled X. | |
23854 | have_x=disabled | |
23855 | else | |
23856 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23857 | # Both variables are already set. | |
23858 | have_x=yes | |
23859 | else | |
23860 | if test "${ac_cv_have_x+set}" = set; then | |
23861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23862 | else | |
23863 | # One or both of the vars are not set, and there is no cached value. | |
23864 | ac_x_includes=no ac_x_libraries=no | |
23865 | rm -fr conftest.dir | |
23866 | if mkdir conftest.dir; then | |
23867 | cd conftest.dir | |
23868 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
23869 | cat >Imakefile <<'_ACEOF' | |
23870 | acfindx: | |
23871 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
23872 | _ACEOF | |
23873 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
23874 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23875 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23876 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23877 | for ac_extension in a so sl; do | |
23878 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
23879 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23880 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
23881 | fi |
23882 | done | |
23883 | # Screen out bogus values from the imake configuration. They are | |
23884 | # bogus both because they are the default anyway, and because | |
23885 | # using them would break gcc on systems where it needs fixed includes. | |
23886 | case $ac_im_incroot in | |
23887 | /usr/include) ;; | |
23888 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
23889 | esac | |
23890 | case $ac_im_usrlibdir in | |
23891 | /usr/lib | /lib) ;; | |
23892 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
23893 | esac | |
23894 | fi | |
23895 | cd .. | |
23896 | rm -fr conftest.dir | |
23897 | fi | |
23898 | ||
23899 | # Standard set of common directories for X headers. | |
23900 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23901 | ac_x_header_dirs=' | |
23902 | /usr/X11/include | |
23903 | /usr/X11R6/include | |
23904 | /usr/X11R5/include | |
23905 | /usr/X11R4/include | |
23906 | ||
23907 | /usr/include/X11 | |
23908 | /usr/include/X11R6 | |
23909 | /usr/include/X11R5 | |
23910 | /usr/include/X11R4 | |
23911 | ||
23912 | /usr/local/X11/include | |
23913 | /usr/local/X11R6/include | |
23914 | /usr/local/X11R5/include | |
23915 | /usr/local/X11R4/include | |
23916 | ||
23917 | /usr/local/include/X11 | |
23918 | /usr/local/include/X11R6 | |
23919 | /usr/local/include/X11R5 | |
23920 | /usr/local/include/X11R4 | |
23921 | ||
23922 | /usr/X386/include | |
23923 | /usr/x386/include | |
23924 | /usr/XFree86/include/X11 | |
23925 | ||
23926 | /usr/include | |
23927 | /usr/local/include | |
23928 | /usr/unsupported/include | |
23929 | /usr/athena/include | |
23930 | /usr/local/x11r5/include | |
23931 | /usr/lpp/Xamples/include | |
23932 | ||
23933 | /usr/openwin/include | |
23934 | /usr/openwin/share/include' | |
23935 | ||
23936 | if test "$ac_x_includes" = no; then | |
23937 | # Guess where to find include files, by looking for Intrinsic.h. | |
23938 | # First, try using that file with no special directory specified. | |
23939 | cat >conftest.$ac_ext <<_ACEOF | |
23940 | /* confdefs.h. */ | |
23941 | _ACEOF | |
23942 | cat confdefs.h >>conftest.$ac_ext | |
23943 | cat >>conftest.$ac_ext <<_ACEOF | |
23944 | /* end confdefs.h. */ | |
23945 | #include <X11/Intrinsic.h> | |
23946 | _ACEOF | |
23947 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23948 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23949 | ac_status=$? | |
23950 | grep -v '^ *+' conftest.er1 >conftest.err | |
23951 | rm -f conftest.er1 | |
23952 | cat conftest.err >&5 | |
23953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23954 | (exit $ac_status); } >/dev/null; then | |
23955 | if test -s conftest.err; then | |
23956 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23957 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23958 | else |
23959 | ac_cpp_err= | |
23960 | fi | |
23961 | else | |
23962 | ac_cpp_err=yes | |
23963 | fi | |
23964 | if test -z "$ac_cpp_err"; then | |
23965 | # We can compile using X headers with no special include directory. | |
23966 | ac_x_includes= | |
23967 | else | |
23968 | echo "$as_me: failed program was:" >&5 | |
23969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23970 | ||
23971 | for ac_dir in $ac_x_header_dirs; do | |
23972 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
23973 | ac_x_includes=$ac_dir | |
23974 | break | |
23975 | fi | |
23976 | done | |
23977 | fi | |
23978 | rm -f conftest.err conftest.$ac_ext | |
23979 | fi # $ac_x_includes = no | |
23980 | ||
23981 | if test "$ac_x_libraries" = no; then | |
23982 | # Check for the libraries. | |
23983 | # See if we find them without any special options. | |
23984 | # Don't add to $LIBS permanently. | |
23985 | ac_save_LIBS=$LIBS | |
23986 | LIBS="-lXt $LIBS" | |
23987 | cat >conftest.$ac_ext <<_ACEOF | |
23988 | /* confdefs.h. */ | |
23989 | _ACEOF | |
23990 | cat confdefs.h >>conftest.$ac_ext | |
23991 | cat >>conftest.$ac_ext <<_ACEOF | |
23992 | /* end confdefs.h. */ | |
23993 | #include <X11/Intrinsic.h> | |
23994 | int | |
23995 | main () | |
23996 | { | |
23997 | XtMalloc (0) | |
23998 | ; | |
23999 | return 0; | |
24000 | } | |
24001 | _ACEOF | |
24002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24004 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24005 | ac_status=$? |
ac1cb8d3 VS |
24006 | grep -v '^ *+' conftest.er1 >conftest.err |
24007 | rm -f conftest.er1 | |
24008 | cat conftest.err >&5 | |
a848cd7e SC |
24009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24010 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24011 | { ac_try='test -z "$ac_c_werror_flag" |
24012 | || test ! -s conftest.err' | |
24013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24014 | (eval $ac_try) 2>&5 | |
24015 | ac_status=$? | |
24016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24017 | (exit $ac_status); }; } && | |
24018 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24020 | (eval $ac_try) 2>&5 | |
24021 | ac_status=$? | |
24022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24023 | (exit $ac_status); }; }; then | |
24024 | LIBS=$ac_save_LIBS | |
24025 | # We can link X programs with no special library path. | |
24026 | ac_x_libraries= | |
24027 | else | |
24028 | echo "$as_me: failed program was:" >&5 | |
24029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24030 | ||
24031 | LIBS=$ac_save_LIBS | |
24032 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24033 | do | |
24034 | # Don't even attempt the hair of trying to link an X program! | |
24035 | for ac_extension in a so sl; do | |
24036 | if test -r $ac_dir/libXt.$ac_extension; then | |
24037 | ac_x_libraries=$ac_dir | |
24038 | break 2 | |
24039 | fi | |
24040 | done | |
24041 | done | |
24042 | fi | |
ac1cb8d3 VS |
24043 | rm -f conftest.err conftest.$ac_objext \ |
24044 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24045 | fi # $ac_x_libraries = no |
24046 | ||
24047 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24048 | # Didn't find X anywhere. Cache the known absence of X. | |
24049 | ac_cv_have_x="have_x=no" | |
24050 | else | |
24051 | # Record where we found X for the cache. | |
24052 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24053 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24054 | fi |
24055 | fi | |
24056 | ||
24057 | fi | |
24058 | eval "$ac_cv_have_x" | |
24059 | fi # $with_x != no | |
24060 | ||
24061 | if test "$have_x" != yes; then | |
24062 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24063 | echo "${ECHO_T}$have_x" >&6 | |
24064 | no_x=yes | |
24065 | else | |
24066 | # If each of the values was on the command line, it overrides each guess. | |
24067 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24068 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24069 | # Update the cache value to reflect the command line values. | |
24070 | ac_cv_have_x="have_x=yes \ | |
24071 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
24072 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
24073 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
24074 | fi | |
24075 | ||
24076 | if test "$no_x" = yes; then | |
24077 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24078 | ||
24079 | cat >>confdefs.h <<\_ACEOF | |
24080 | #define X_DISPLAY_MISSING 1 | |
24081 | _ACEOF | |
24082 | ||
24083 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24084 | else | |
24085 | if test -n "$x_includes"; then | |
24086 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24087 | fi | |
24088 | ||
24089 | # It would also be nice to do this for all -L options, not just this one. | |
24090 | if test -n "$x_libraries"; then | |
24091 | X_LIBS="$X_LIBS -L$x_libraries" | |
24092 | # For Solaris; some versions of Sun CC require a space after -R and | |
24093 | # others require no space. Words are not sufficient . . . . | |
24094 | case `(uname -sr) 2>/dev/null` in | |
24095 | "SunOS 5"*) | |
24096 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24097 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24098 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24099 | cat >conftest.$ac_ext <<_ACEOF | |
24100 | /* confdefs.h. */ | |
24101 | _ACEOF | |
24102 | cat confdefs.h >>conftest.$ac_ext | |
24103 | cat >>conftest.$ac_ext <<_ACEOF | |
24104 | /* end confdefs.h. */ | |
24105 | ||
24106 | int | |
24107 | main () | |
24108 | { | |
24109 | ||
24110 | ; | |
24111 | return 0; | |
24112 | } | |
24113 | _ACEOF | |
24114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24116 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24117 | ac_status=$? |
ac1cb8d3 VS |
24118 | grep -v '^ *+' conftest.er1 >conftest.err |
24119 | rm -f conftest.er1 | |
24120 | cat conftest.err >&5 | |
a848cd7e SC |
24121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24122 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24123 | { ac_try='test -z "$ac_c_werror_flag" |
24124 | || test ! -s conftest.err' | |
24125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24126 | (eval $ac_try) 2>&5 | |
24127 | ac_status=$? | |
24128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24129 | (exit $ac_status); }; } && | |
24130 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24132 | (eval $ac_try) 2>&5 | |
24133 | ac_status=$? | |
24134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24135 | (exit $ac_status); }; }; then | |
24136 | ac_R_nospace=yes | |
24137 | else | |
24138 | echo "$as_me: failed program was:" >&5 | |
24139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24140 | ||
24141 | ac_R_nospace=no | |
24142 | fi | |
ac1cb8d3 VS |
24143 | rm -f conftest.err conftest.$ac_objext \ |
24144 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24145 | if test $ac_R_nospace = yes; then |
24146 | echo "$as_me:$LINENO: result: no" >&5 | |
24147 | echo "${ECHO_T}no" >&6 | |
24148 | X_LIBS="$X_LIBS -R$x_libraries" | |
24149 | else | |
24150 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24151 | cat >conftest.$ac_ext <<_ACEOF | |
24152 | /* confdefs.h. */ | |
24153 | _ACEOF | |
24154 | cat confdefs.h >>conftest.$ac_ext | |
24155 | cat >>conftest.$ac_ext <<_ACEOF | |
24156 | /* end confdefs.h. */ | |
24157 | ||
24158 | int | |
24159 | main () | |
24160 | { | |
24161 | ||
24162 | ; | |
24163 | return 0; | |
24164 | } | |
24165 | _ACEOF | |
24166 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24168 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24169 | ac_status=$? |
ac1cb8d3 VS |
24170 | grep -v '^ *+' conftest.er1 >conftest.err |
24171 | rm -f conftest.er1 | |
24172 | cat conftest.err >&5 | |
a848cd7e SC |
24173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24174 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24175 | { ac_try='test -z "$ac_c_werror_flag" |
24176 | || test ! -s conftest.err' | |
24177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24178 | (eval $ac_try) 2>&5 | |
24179 | ac_status=$? | |
24180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24181 | (exit $ac_status); }; } && | |
24182 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24184 | (eval $ac_try) 2>&5 | |
24185 | ac_status=$? | |
24186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24187 | (exit $ac_status); }; }; then | |
24188 | ac_R_space=yes | |
24189 | else | |
24190 | echo "$as_me: failed program was:" >&5 | |
24191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24192 | ||
24193 | ac_R_space=no | |
24194 | fi | |
ac1cb8d3 VS |
24195 | rm -f conftest.err conftest.$ac_objext \ |
24196 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24197 | if test $ac_R_space = yes; then |
24198 | echo "$as_me:$LINENO: result: yes" >&5 | |
24199 | echo "${ECHO_T}yes" >&6 | |
24200 | X_LIBS="$X_LIBS -R $x_libraries" | |
24201 | else | |
24202 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24203 | echo "${ECHO_T}neither works" >&6 | |
24204 | fi | |
24205 | fi | |
24206 | LIBS=$ac_xsave_LIBS | |
24207 | esac | |
24208 | fi | |
24209 | ||
24210 | # Check for system-dependent libraries X programs must link with. | |
24211 | # Do this before checking for the system-independent R6 libraries | |
24212 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24213 | ||
24214 | if test "$ISC" = yes; then | |
24215 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24216 | else | |
24217 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24218 | # libraries were built with DECnet support. And Karl Berry says | |
24219 | # the Alpha needs dnet_stub (dnet does not exist). | |
24220 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24221 | cat >conftest.$ac_ext <<_ACEOF | |
24222 | /* confdefs.h. */ | |
24223 | _ACEOF | |
24224 | cat confdefs.h >>conftest.$ac_ext | |
24225 | cat >>conftest.$ac_ext <<_ACEOF | |
24226 | /* end confdefs.h. */ | |
24227 | ||
24228 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24229 | #ifdef __cplusplus | |
24230 | extern "C" | |
24231 | #endif | |
24232 | /* We use char because int might match the return type of a gcc2 | |
24233 | builtin and then its argument prototype would still apply. */ | |
24234 | char XOpenDisplay (); | |
24235 | int | |
24236 | main () | |
24237 | { | |
24238 | XOpenDisplay (); | |
24239 | ; | |
24240 | return 0; | |
24241 | } | |
24242 | _ACEOF | |
24243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24245 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24246 | ac_status=$? |
ac1cb8d3 VS |
24247 | grep -v '^ *+' conftest.er1 >conftest.err |
24248 | rm -f conftest.er1 | |
24249 | cat conftest.err >&5 | |
a848cd7e SC |
24250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24251 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24252 | { ac_try='test -z "$ac_c_werror_flag" |
24253 | || test ! -s conftest.err' | |
24254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24255 | (eval $ac_try) 2>&5 | |
24256 | ac_status=$? | |
24257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24258 | (exit $ac_status); }; } && | |
24259 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24261 | (eval $ac_try) 2>&5 | |
24262 | ac_status=$? | |
24263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24264 | (exit $ac_status); }; }; then | |
24265 | : | |
24266 | else | |
24267 | echo "$as_me: failed program was:" >&5 | |
24268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24269 | ||
24270 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24271 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24272 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24274 | else | |
24275 | ac_check_lib_save_LIBS=$LIBS | |
24276 | LIBS="-ldnet $LIBS" | |
24277 | cat >conftest.$ac_ext <<_ACEOF | |
24278 | /* confdefs.h. */ | |
24279 | _ACEOF | |
24280 | cat confdefs.h >>conftest.$ac_ext | |
24281 | cat >>conftest.$ac_ext <<_ACEOF | |
24282 | /* end confdefs.h. */ | |
24283 | ||
24284 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24285 | #ifdef __cplusplus | |
24286 | extern "C" | |
24287 | #endif | |
24288 | /* We use char because int might match the return type of a gcc2 | |
24289 | builtin and then its argument prototype would still apply. */ | |
24290 | char dnet_ntoa (); | |
24291 | int | |
24292 | main () | |
24293 | { | |
24294 | dnet_ntoa (); | |
24295 | ; | |
24296 | return 0; | |
24297 | } | |
24298 | _ACEOF | |
24299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24301 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24302 | ac_status=$? |
ac1cb8d3 VS |
24303 | grep -v '^ *+' conftest.er1 >conftest.err |
24304 | rm -f conftest.er1 | |
24305 | cat conftest.err >&5 | |
a848cd7e SC |
24306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24307 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24308 | { ac_try='test -z "$ac_c_werror_flag" |
24309 | || test ! -s conftest.err' | |
24310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24311 | (eval $ac_try) 2>&5 | |
24312 | ac_status=$? | |
24313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24314 | (exit $ac_status); }; } && | |
24315 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24317 | (eval $ac_try) 2>&5 | |
24318 | ac_status=$? | |
24319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24320 | (exit $ac_status); }; }; then | |
24321 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24322 | else | |
24323 | echo "$as_me: failed program was:" >&5 | |
24324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24325 | ||
24326 | ac_cv_lib_dnet_dnet_ntoa=no | |
24327 | fi | |
ac1cb8d3 VS |
24328 | rm -f conftest.err conftest.$ac_objext \ |
24329 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24330 | LIBS=$ac_check_lib_save_LIBS |
24331 | fi | |
24332 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24333 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24334 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24335 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24336 | fi | |
24337 | ||
24338 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24339 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24340 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24341 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24343 | else | |
24344 | ac_check_lib_save_LIBS=$LIBS | |
24345 | LIBS="-ldnet_stub $LIBS" | |
24346 | cat >conftest.$ac_ext <<_ACEOF | |
24347 | /* confdefs.h. */ | |
24348 | _ACEOF | |
24349 | cat confdefs.h >>conftest.$ac_ext | |
24350 | cat >>conftest.$ac_ext <<_ACEOF | |
24351 | /* end confdefs.h. */ | |
24352 | ||
24353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24354 | #ifdef __cplusplus | |
24355 | extern "C" | |
24356 | #endif | |
24357 | /* We use char because int might match the return type of a gcc2 | |
24358 | builtin and then its argument prototype would still apply. */ | |
24359 | char dnet_ntoa (); | |
24360 | int | |
24361 | main () | |
24362 | { | |
24363 | dnet_ntoa (); | |
24364 | ; | |
24365 | return 0; | |
24366 | } | |
24367 | _ACEOF | |
24368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24370 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24371 | ac_status=$? |
ac1cb8d3 VS |
24372 | grep -v '^ *+' conftest.er1 >conftest.err |
24373 | rm -f conftest.er1 | |
24374 | cat conftest.err >&5 | |
a848cd7e SC |
24375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24376 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24377 | { ac_try='test -z "$ac_c_werror_flag" |
24378 | || test ! -s conftest.err' | |
24379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24380 | (eval $ac_try) 2>&5 | |
24381 | ac_status=$? | |
24382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24383 | (exit $ac_status); }; } && | |
24384 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24386 | (eval $ac_try) 2>&5 | |
24387 | ac_status=$? | |
24388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24389 | (exit $ac_status); }; }; then | |
24390 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24391 | else | |
24392 | echo "$as_me: failed program was:" >&5 | |
24393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24394 | ||
24395 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24396 | fi | |
ac1cb8d3 VS |
24397 | rm -f conftest.err conftest.$ac_objext \ |
24398 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24399 | LIBS=$ac_check_lib_save_LIBS |
24400 | fi | |
24401 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24402 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24403 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24404 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24405 | fi | |
24406 | ||
24407 | fi | |
24408 | fi | |
ac1cb8d3 VS |
24409 | rm -f conftest.err conftest.$ac_objext \ |
24410 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24411 | LIBS="$ac_xsave_LIBS" |
24412 | ||
24413 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24414 | # to get the SysV transport functions. | |
24415 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24416 | # needs -lnsl. | |
24417 | # The nsl library prevents programs from opening the X display | |
24418 | # on Irix 5.2, according to T.E. Dickey. | |
24419 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24420 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24421 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24422 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24423 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24425 | else | |
24426 | cat >conftest.$ac_ext <<_ACEOF | |
24427 | /* confdefs.h. */ | |
24428 | _ACEOF | |
24429 | cat confdefs.h >>conftest.$ac_ext | |
24430 | cat >>conftest.$ac_ext <<_ACEOF | |
24431 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24432 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24433 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24434 | #define gethostbyname innocuous_gethostbyname | |
24435 | ||
a848cd7e SC |
24436 | /* System header to define __stub macros and hopefully few prototypes, |
24437 | which can conflict with char gethostbyname (); below. | |
24438 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24439 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24440 | |
a848cd7e SC |
24441 | #ifdef __STDC__ |
24442 | # include <limits.h> | |
24443 | #else | |
24444 | # include <assert.h> | |
24445 | #endif | |
ac1cb8d3 VS |
24446 | |
24447 | #undef gethostbyname | |
24448 | ||
a848cd7e SC |
24449 | /* Override any gcc2 internal prototype to avoid an error. */ |
24450 | #ifdef __cplusplus | |
24451 | extern "C" | |
24452 | { | |
24453 | #endif | |
24454 | /* We use char because int might match the return type of a gcc2 | |
24455 | builtin and then its argument prototype would still apply. */ | |
24456 | char gethostbyname (); | |
24457 | /* The GNU C library defines this for functions which it implements | |
24458 | to always fail with ENOSYS. Some functions are actually named | |
24459 | something starting with __ and the normal name is an alias. */ | |
24460 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24461 | choke me | |
24462 | #else | |
24463 | char (*f) () = gethostbyname; | |
24464 | #endif | |
24465 | #ifdef __cplusplus | |
24466 | } | |
24467 | #endif | |
24468 | ||
24469 | int | |
24470 | main () | |
24471 | { | |
24472 | return f != gethostbyname; | |
24473 | ; | |
24474 | return 0; | |
24475 | } | |
24476 | _ACEOF | |
24477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24479 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24480 | ac_status=$? |
ac1cb8d3 VS |
24481 | grep -v '^ *+' conftest.er1 >conftest.err |
24482 | rm -f conftest.er1 | |
24483 | cat conftest.err >&5 | |
a848cd7e SC |
24484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24485 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24486 | { ac_try='test -z "$ac_c_werror_flag" |
24487 | || test ! -s conftest.err' | |
24488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24489 | (eval $ac_try) 2>&5 | |
24490 | ac_status=$? | |
24491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24492 | (exit $ac_status); }; } && | |
24493 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24495 | (eval $ac_try) 2>&5 | |
24496 | ac_status=$? | |
24497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24498 | (exit $ac_status); }; }; then | |
24499 | ac_cv_func_gethostbyname=yes | |
24500 | else | |
24501 | echo "$as_me: failed program was:" >&5 | |
24502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24503 | ||
24504 | ac_cv_func_gethostbyname=no | |
24505 | fi | |
ac1cb8d3 VS |
24506 | rm -f conftest.err conftest.$ac_objext \ |
24507 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24508 | fi |
24509 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24510 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24511 | ||
24512 | if test $ac_cv_func_gethostbyname = no; then | |
24513 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24514 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24515 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24517 | else | |
24518 | ac_check_lib_save_LIBS=$LIBS | |
24519 | LIBS="-lnsl $LIBS" | |
24520 | cat >conftest.$ac_ext <<_ACEOF | |
24521 | /* confdefs.h. */ | |
24522 | _ACEOF | |
24523 | cat confdefs.h >>conftest.$ac_ext | |
24524 | cat >>conftest.$ac_ext <<_ACEOF | |
24525 | /* end confdefs.h. */ | |
24526 | ||
24527 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24528 | #ifdef __cplusplus | |
24529 | extern "C" | |
24530 | #endif | |
24531 | /* We use char because int might match the return type of a gcc2 | |
24532 | builtin and then its argument prototype would still apply. */ | |
24533 | char gethostbyname (); | |
24534 | int | |
24535 | main () | |
24536 | { | |
24537 | gethostbyname (); | |
24538 | ; | |
24539 | return 0; | |
24540 | } | |
24541 | _ACEOF | |
24542 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24544 | (eval $ac_link) 2>conftest.er1 |
24545 | ac_status=$? | |
24546 | grep -v '^ *+' conftest.er1 >conftest.err | |
24547 | rm -f conftest.er1 | |
24548 | cat conftest.err >&5 | |
24549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24550 | (exit $ac_status); } && | |
24551 | { ac_try='test -z "$ac_c_werror_flag" | |
24552 | || test ! -s conftest.err' | |
24553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24554 | (eval $ac_try) 2>&5 | |
24555 | ac_status=$? | |
24556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24557 | (exit $ac_status); }; } && | |
24558 | { ac_try='test -s conftest$ac_exeext' | |
24559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24560 | (eval $ac_try) 2>&5 | |
24561 | ac_status=$? | |
24562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24563 | (exit $ac_status); }; }; then | |
24564 | ac_cv_lib_nsl_gethostbyname=yes | |
24565 | else | |
24566 | echo "$as_me: failed program was:" >&5 | |
24567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24568 | ||
24569 | ac_cv_lib_nsl_gethostbyname=no | |
24570 | fi | |
24571 | rm -f conftest.err conftest.$ac_objext \ | |
24572 | conftest$ac_exeext conftest.$ac_ext | |
24573 | LIBS=$ac_check_lib_save_LIBS | |
24574 | fi | |
24575 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24576 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24577 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24578 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24579 | fi | |
24580 | ||
24581 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24582 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24583 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24584 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24586 | else | |
24587 | ac_check_lib_save_LIBS=$LIBS | |
24588 | LIBS="-lbsd $LIBS" | |
24589 | cat >conftest.$ac_ext <<_ACEOF | |
24590 | /* confdefs.h. */ | |
24591 | _ACEOF | |
24592 | cat confdefs.h >>conftest.$ac_ext | |
24593 | cat >>conftest.$ac_ext <<_ACEOF | |
24594 | /* end confdefs.h. */ | |
24595 | ||
24596 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24597 | #ifdef __cplusplus | |
24598 | extern "C" | |
24599 | #endif | |
24600 | /* We use char because int might match the return type of a gcc2 | |
24601 | builtin and then its argument prototype would still apply. */ | |
24602 | char gethostbyname (); | |
24603 | int | |
24604 | main () | |
24605 | { | |
24606 | gethostbyname (); | |
24607 | ; | |
24608 | return 0; | |
24609 | } | |
24610 | _ACEOF | |
24611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24613 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24614 | ac_status=$? |
ac1cb8d3 VS |
24615 | grep -v '^ *+' conftest.er1 >conftest.err |
24616 | rm -f conftest.er1 | |
24617 | cat conftest.err >&5 | |
a848cd7e SC |
24618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24619 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24620 | { ac_try='test -z "$ac_c_werror_flag" |
24621 | || test ! -s conftest.err' | |
a848cd7e SC |
24622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24623 | (eval $ac_try) 2>&5 | |
24624 | ac_status=$? | |
24625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24626 | (exit $ac_status); }; } && |
24627 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24629 | (eval $ac_try) 2>&5 | |
24630 | ac_status=$? | |
24631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24632 | (exit $ac_status); }; }; then | |
24633 | ac_cv_lib_bsd_gethostbyname=yes | |
24634 | else | |
24635 | echo "$as_me: failed program was:" >&5 | |
24636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24637 | ||
24638 | ac_cv_lib_bsd_gethostbyname=no | |
24639 | fi | |
ac1cb8d3 VS |
24640 | rm -f conftest.err conftest.$ac_objext \ |
24641 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24642 | LIBS=$ac_check_lib_save_LIBS |
24643 | fi | |
24644 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24645 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24646 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24647 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24648 | fi | |
24649 | ||
24650 | fi | |
24651 | fi | |
24652 | ||
24653 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24654 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24655 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24656 | # on later versions), says Simon Leinen: it contains gethostby* | |
24657 | # variants that don't use the name server (or something). -lsocket | |
24658 | # must be given before -lnsl if both are needed. We assume that | |
24659 | # if connect needs -lnsl, so does gethostbyname. | |
24660 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24661 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24662 | if test "${ac_cv_func_connect+set}" = set; then | |
24663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24664 | else | |
24665 | cat >conftest.$ac_ext <<_ACEOF | |
24666 | /* confdefs.h. */ | |
24667 | _ACEOF | |
24668 | cat confdefs.h >>conftest.$ac_ext | |
24669 | cat >>conftest.$ac_ext <<_ACEOF | |
24670 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24671 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24672 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24673 | #define connect innocuous_connect | |
24674 | ||
a848cd7e SC |
24675 | /* System header to define __stub macros and hopefully few prototypes, |
24676 | which can conflict with char connect (); below. | |
24677 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24678 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24679 | |
a848cd7e SC |
24680 | #ifdef __STDC__ |
24681 | # include <limits.h> | |
24682 | #else | |
24683 | # include <assert.h> | |
24684 | #endif | |
ac1cb8d3 VS |
24685 | |
24686 | #undef connect | |
24687 | ||
a848cd7e SC |
24688 | /* Override any gcc2 internal prototype to avoid an error. */ |
24689 | #ifdef __cplusplus | |
24690 | extern "C" | |
24691 | { | |
24692 | #endif | |
24693 | /* We use char because int might match the return type of a gcc2 | |
24694 | builtin and then its argument prototype would still apply. */ | |
24695 | char connect (); | |
24696 | /* The GNU C library defines this for functions which it implements | |
24697 | to always fail with ENOSYS. Some functions are actually named | |
24698 | something starting with __ and the normal name is an alias. */ | |
24699 | #if defined (__stub_connect) || defined (__stub___connect) | |
24700 | choke me | |
24701 | #else | |
24702 | char (*f) () = connect; | |
24703 | #endif | |
24704 | #ifdef __cplusplus | |
24705 | } | |
24706 | #endif | |
24707 | ||
24708 | int | |
24709 | main () | |
24710 | { | |
24711 | return f != connect; | |
24712 | ; | |
24713 | return 0; | |
24714 | } | |
24715 | _ACEOF | |
24716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24718 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24719 | ac_status=$? |
ac1cb8d3 VS |
24720 | grep -v '^ *+' conftest.er1 >conftest.err |
24721 | rm -f conftest.er1 | |
24722 | cat conftest.err >&5 | |
a848cd7e SC |
24723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24724 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24725 | { ac_try='test -z "$ac_c_werror_flag" |
24726 | || test ! -s conftest.err' | |
24727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24728 | (eval $ac_try) 2>&5 | |
24729 | ac_status=$? | |
24730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24731 | (exit $ac_status); }; } && | |
24732 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24734 | (eval $ac_try) 2>&5 | |
24735 | ac_status=$? | |
24736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24737 | (exit $ac_status); }; }; then | |
24738 | ac_cv_func_connect=yes | |
24739 | else | |
24740 | echo "$as_me: failed program was:" >&5 | |
24741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24742 | ||
24743 | ac_cv_func_connect=no | |
24744 | fi | |
ac1cb8d3 VS |
24745 | rm -f conftest.err conftest.$ac_objext \ |
24746 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24747 | fi |
24748 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24749 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24750 | ||
24751 | if test $ac_cv_func_connect = no; then | |
24752 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24753 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24754 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24756 | else | |
24757 | ac_check_lib_save_LIBS=$LIBS | |
24758 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
24759 | cat >conftest.$ac_ext <<_ACEOF | |
24760 | /* confdefs.h. */ | |
24761 | _ACEOF | |
24762 | cat confdefs.h >>conftest.$ac_ext | |
24763 | cat >>conftest.$ac_ext <<_ACEOF | |
24764 | /* end confdefs.h. */ | |
24765 | ||
24766 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24767 | #ifdef __cplusplus | |
24768 | extern "C" | |
24769 | #endif | |
24770 | /* We use char because int might match the return type of a gcc2 | |
24771 | builtin and then its argument prototype would still apply. */ | |
24772 | char connect (); | |
24773 | int | |
24774 | main () | |
24775 | { | |
24776 | connect (); | |
24777 | ; | |
24778 | return 0; | |
24779 | } | |
24780 | _ACEOF | |
24781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24783 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24784 | ac_status=$? |
ac1cb8d3 VS |
24785 | grep -v '^ *+' conftest.er1 >conftest.err |
24786 | rm -f conftest.er1 | |
24787 | cat conftest.err >&5 | |
a848cd7e SC |
24788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24789 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24790 | { ac_try='test -z "$ac_c_werror_flag" |
24791 | || test ! -s conftest.err' | |
24792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24793 | (eval $ac_try) 2>&5 | |
24794 | ac_status=$? | |
24795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24796 | (exit $ac_status); }; } && | |
24797 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24799 | (eval $ac_try) 2>&5 | |
24800 | ac_status=$? | |
24801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24802 | (exit $ac_status); }; }; then | |
24803 | ac_cv_lib_socket_connect=yes | |
24804 | else | |
24805 | echo "$as_me: failed program was:" >&5 | |
24806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24807 | ||
24808 | ac_cv_lib_socket_connect=no | |
24809 | fi | |
ac1cb8d3 VS |
24810 | rm -f conftest.err conftest.$ac_objext \ |
24811 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24812 | LIBS=$ac_check_lib_save_LIBS |
24813 | fi | |
24814 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24815 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24816 | if test $ac_cv_lib_socket_connect = yes; then | |
24817 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24818 | fi | |
24819 | ||
24820 | fi | |
24821 | ||
24822 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24823 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24824 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24825 | if test "${ac_cv_func_remove+set}" = set; then | |
24826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24827 | else | |
24828 | cat >conftest.$ac_ext <<_ACEOF | |
24829 | /* confdefs.h. */ | |
24830 | _ACEOF | |
24831 | cat confdefs.h >>conftest.$ac_ext | |
24832 | cat >>conftest.$ac_ext <<_ACEOF | |
24833 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24834 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24836 | #define remove innocuous_remove | |
24837 | ||
a848cd7e SC |
24838 | /* System header to define __stub macros and hopefully few prototypes, |
24839 | which can conflict with char remove (); below. | |
24840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24841 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24842 | |
a848cd7e SC |
24843 | #ifdef __STDC__ |
24844 | # include <limits.h> | |
24845 | #else | |
24846 | # include <assert.h> | |
24847 | #endif | |
ac1cb8d3 VS |
24848 | |
24849 | #undef remove | |
24850 | ||
a848cd7e SC |
24851 | /* Override any gcc2 internal prototype to avoid an error. */ |
24852 | #ifdef __cplusplus | |
24853 | extern "C" | |
24854 | { | |
24855 | #endif | |
24856 | /* We use char because int might match the return type of a gcc2 | |
24857 | builtin and then its argument prototype would still apply. */ | |
24858 | char remove (); | |
24859 | /* The GNU C library defines this for functions which it implements | |
24860 | to always fail with ENOSYS. Some functions are actually named | |
24861 | something starting with __ and the normal name is an alias. */ | |
24862 | #if defined (__stub_remove) || defined (__stub___remove) | |
24863 | choke me | |
24864 | #else | |
24865 | char (*f) () = remove; | |
24866 | #endif | |
24867 | #ifdef __cplusplus | |
24868 | } | |
24869 | #endif | |
24870 | ||
24871 | int | |
24872 | main () | |
24873 | { | |
24874 | return f != remove; | |
24875 | ; | |
24876 | return 0; | |
24877 | } | |
24878 | _ACEOF | |
24879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24881 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24882 | ac_status=$? |
ac1cb8d3 VS |
24883 | grep -v '^ *+' conftest.er1 >conftest.err |
24884 | rm -f conftest.er1 | |
24885 | cat conftest.err >&5 | |
a848cd7e SC |
24886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24887 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24888 | { ac_try='test -z "$ac_c_werror_flag" |
24889 | || test ! -s conftest.err' | |
24890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24891 | (eval $ac_try) 2>&5 | |
24892 | ac_status=$? | |
24893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24894 | (exit $ac_status); }; } && | |
24895 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24897 | (eval $ac_try) 2>&5 | |
24898 | ac_status=$? | |
24899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24900 | (exit $ac_status); }; }; then | |
24901 | ac_cv_func_remove=yes | |
24902 | else | |
24903 | echo "$as_me: failed program was:" >&5 | |
24904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24905 | ||
24906 | ac_cv_func_remove=no | |
24907 | fi | |
ac1cb8d3 VS |
24908 | rm -f conftest.err conftest.$ac_objext \ |
24909 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24910 | fi |
24911 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24912 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
24913 | ||
24914 | if test $ac_cv_func_remove = no; then | |
24915 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
24916 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24917 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24919 | else | |
24920 | ac_check_lib_save_LIBS=$LIBS | |
24921 | LIBS="-lposix $LIBS" | |
24922 | cat >conftest.$ac_ext <<_ACEOF | |
24923 | /* confdefs.h. */ | |
24924 | _ACEOF | |
24925 | cat confdefs.h >>conftest.$ac_ext | |
24926 | cat >>conftest.$ac_ext <<_ACEOF | |
24927 | /* end confdefs.h. */ | |
24928 | ||
24929 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24930 | #ifdef __cplusplus | |
24931 | extern "C" | |
24932 | #endif | |
24933 | /* We use char because int might match the return type of a gcc2 | |
24934 | builtin and then its argument prototype would still apply. */ | |
24935 | char remove (); | |
24936 | int | |
24937 | main () | |
24938 | { | |
24939 | remove (); | |
24940 | ; | |
24941 | return 0; | |
24942 | } | |
24943 | _ACEOF | |
24944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24946 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24947 | ac_status=$? |
ac1cb8d3 VS |
24948 | grep -v '^ *+' conftest.er1 >conftest.err |
24949 | rm -f conftest.er1 | |
24950 | cat conftest.err >&5 | |
a848cd7e SC |
24951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24952 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24953 | { ac_try='test -z "$ac_c_werror_flag" |
24954 | || test ! -s conftest.err' | |
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); }; } && | |
24960 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24962 | (eval $ac_try) 2>&5 | |
24963 | ac_status=$? | |
24964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24965 | (exit $ac_status); }; }; then | |
24966 | ac_cv_lib_posix_remove=yes | |
24967 | else | |
24968 | echo "$as_me: failed program was:" >&5 | |
24969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24970 | ||
24971 | ac_cv_lib_posix_remove=no | |
24972 | fi | |
ac1cb8d3 VS |
24973 | rm -f conftest.err conftest.$ac_objext \ |
24974 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24975 | LIBS=$ac_check_lib_save_LIBS |
24976 | fi | |
24977 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24978 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24979 | if test $ac_cv_lib_posix_remove = yes; then | |
24980 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
24981 | fi | |
24982 | ||
24983 | fi | |
24984 | ||
24985 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
24986 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
24987 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24988 | if test "${ac_cv_func_shmat+set}" = set; then | |
24989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24990 | else | |
24991 | cat >conftest.$ac_ext <<_ACEOF | |
24992 | /* confdefs.h. */ | |
24993 | _ACEOF | |
24994 | cat confdefs.h >>conftest.$ac_ext | |
24995 | cat >>conftest.$ac_ext <<_ACEOF | |
24996 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24997 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
24998 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24999 | #define shmat innocuous_shmat | |
25000 | ||
a848cd7e SC |
25001 | /* System header to define __stub macros and hopefully few prototypes, |
25002 | which can conflict with char shmat (); below. | |
25003 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25004 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25005 | |
a848cd7e SC |
25006 | #ifdef __STDC__ |
25007 | # include <limits.h> | |
25008 | #else | |
25009 | # include <assert.h> | |
25010 | #endif | |
ac1cb8d3 VS |
25011 | |
25012 | #undef shmat | |
25013 | ||
a848cd7e SC |
25014 | /* Override any gcc2 internal prototype to avoid an error. */ |
25015 | #ifdef __cplusplus | |
25016 | extern "C" | |
25017 | { | |
25018 | #endif | |
25019 | /* We use char because int might match the return type of a gcc2 | |
25020 | builtin and then its argument prototype would still apply. */ | |
25021 | char shmat (); | |
25022 | /* The GNU C library defines this for functions which it implements | |
25023 | to always fail with ENOSYS. Some functions are actually named | |
25024 | something starting with __ and the normal name is an alias. */ | |
25025 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25026 | choke me | |
25027 | #else | |
25028 | char (*f) () = shmat; | |
25029 | #endif | |
25030 | #ifdef __cplusplus | |
25031 | } | |
25032 | #endif | |
25033 | ||
25034 | int | |
25035 | main () | |
25036 | { | |
25037 | return f != shmat; | |
25038 | ; | |
25039 | return 0; | |
25040 | } | |
25041 | _ACEOF | |
25042 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25044 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25045 | ac_status=$? |
ac1cb8d3 VS |
25046 | grep -v '^ *+' conftest.er1 >conftest.err |
25047 | rm -f conftest.er1 | |
25048 | cat conftest.err >&5 | |
a848cd7e SC |
25049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25050 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25051 | { ac_try='test -z "$ac_c_werror_flag" |
25052 | || test ! -s conftest.err' | |
25053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25054 | (eval $ac_try) 2>&5 | |
25055 | ac_status=$? | |
25056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25057 | (exit $ac_status); }; } && | |
25058 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25060 | (eval $ac_try) 2>&5 | |
25061 | ac_status=$? | |
25062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25063 | (exit $ac_status); }; }; then | |
25064 | ac_cv_func_shmat=yes | |
25065 | else | |
25066 | echo "$as_me: failed program was:" >&5 | |
25067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25068 | ||
25069 | ac_cv_func_shmat=no | |
25070 | fi | |
ac1cb8d3 VS |
25071 | rm -f conftest.err conftest.$ac_objext \ |
25072 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25073 | fi |
25074 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25075 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25076 | ||
25077 | if test $ac_cv_func_shmat = no; then | |
25078 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25079 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25080 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25082 | else | |
25083 | ac_check_lib_save_LIBS=$LIBS | |
25084 | LIBS="-lipc $LIBS" | |
25085 | cat >conftest.$ac_ext <<_ACEOF | |
25086 | /* confdefs.h. */ | |
25087 | _ACEOF | |
25088 | cat confdefs.h >>conftest.$ac_ext | |
25089 | cat >>conftest.$ac_ext <<_ACEOF | |
25090 | /* end confdefs.h. */ | |
25091 | ||
25092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25093 | #ifdef __cplusplus | |
25094 | extern "C" | |
25095 | #endif | |
25096 | /* We use char because int might match the return type of a gcc2 | |
25097 | builtin and then its argument prototype would still apply. */ | |
25098 | char shmat (); | |
25099 | int | |
25100 | main () | |
25101 | { | |
25102 | shmat (); | |
25103 | ; | |
25104 | return 0; | |
25105 | } | |
25106 | _ACEOF | |
25107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25109 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25110 | ac_status=$? |
ac1cb8d3 VS |
25111 | grep -v '^ *+' conftest.er1 >conftest.err |
25112 | rm -f conftest.er1 | |
25113 | cat conftest.err >&5 | |
a848cd7e SC |
25114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25115 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25116 | { ac_try='test -z "$ac_c_werror_flag" |
25117 | || test ! -s conftest.err' | |
25118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25119 | (eval $ac_try) 2>&5 | |
25120 | ac_status=$? | |
25121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25122 | (exit $ac_status); }; } && | |
25123 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25125 | (eval $ac_try) 2>&5 | |
25126 | ac_status=$? | |
25127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25128 | (exit $ac_status); }; }; then | |
25129 | ac_cv_lib_ipc_shmat=yes | |
25130 | else | |
25131 | echo "$as_me: failed program was:" >&5 | |
25132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25133 | ||
25134 | ac_cv_lib_ipc_shmat=no | |
25135 | fi | |
ac1cb8d3 VS |
25136 | rm -f conftest.err conftest.$ac_objext \ |
25137 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25138 | LIBS=$ac_check_lib_save_LIBS |
25139 | fi | |
25140 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25141 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25142 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25143 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25144 | fi | |
25145 | ||
25146 | fi | |
25147 | fi | |
25148 | ||
25149 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25150 | ac_save_LDFLAGS=$LDFLAGS | |
25151 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25152 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25153 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25154 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25155 | # These have to be linked with before -lX11, unlike the other | |
25156 | # libraries we check for below, so use a different variable. | |
25157 | # John Interrante, Karl Berry | |
25158 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25159 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25160 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25162 | else | |
25163 | ac_check_lib_save_LIBS=$LIBS | |
25164 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25165 | cat >conftest.$ac_ext <<_ACEOF | |
25166 | /* confdefs.h. */ | |
25167 | _ACEOF | |
25168 | cat confdefs.h >>conftest.$ac_ext | |
25169 | cat >>conftest.$ac_ext <<_ACEOF | |
25170 | /* end confdefs.h. */ | |
25171 | ||
25172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25173 | #ifdef __cplusplus | |
25174 | extern "C" | |
25175 | #endif | |
25176 | /* We use char because int might match the return type of a gcc2 | |
25177 | builtin and then its argument prototype would still apply. */ | |
25178 | char IceConnectionNumber (); | |
25179 | int | |
25180 | main () | |
25181 | { | |
25182 | IceConnectionNumber (); | |
25183 | ; | |
25184 | return 0; | |
25185 | } | |
25186 | _ACEOF | |
25187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25190 | ac_status=$? |
ac1cb8d3 VS |
25191 | grep -v '^ *+' conftest.er1 >conftest.err |
25192 | rm -f conftest.er1 | |
25193 | cat conftest.err >&5 | |
a848cd7e SC |
25194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25195 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25196 | { ac_try='test -z "$ac_c_werror_flag" |
25197 | || test ! -s conftest.err' | |
25198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25199 | (eval $ac_try) 2>&5 | |
25200 | ac_status=$? | |
25201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25202 | (exit $ac_status); }; } && | |
25203 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25205 | (eval $ac_try) 2>&5 | |
25206 | ac_status=$? | |
25207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25208 | (exit $ac_status); }; }; then | |
25209 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25210 | else | |
25211 | echo "$as_me: failed program was:" >&5 | |
25212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25213 | ||
25214 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25215 | fi | |
ac1cb8d3 VS |
25216 | rm -f conftest.err conftest.$ac_objext \ |
25217 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25218 | LIBS=$ac_check_lib_save_LIBS |
25219 | fi | |
25220 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25221 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25222 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25223 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25224 | fi | |
25225 | ||
25226 | LDFLAGS=$ac_save_LDFLAGS | |
25227 | ||
25228 | fi | |
25229 | ||
25230 | ||
25231 | if test "$no_x" = "yes"; then | |
25232 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25233 | echo "$as_me: error: X11 not found" >&2;} | |
25234 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25235 | fi | |
25236 | ||
25237 | GUI_TK_LIBRARY="$X_LIBS" | |
25238 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
25239 | AFMINSTALL=afminstall | |
25240 | COMPILED_X_PROGRAM=0 | |
25241 | ||
25242 | if test "$wxUSE_NANOX" = "yes"; then | |
25243 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25244 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25245 | if test "x$MICROWIN" = x ; then | |
25246 | echo "$as_me:$LINENO: result: not found" >&5 | |
25247 | echo "${ECHO_T}not found" >&6 | |
25248 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25249 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25250 | { (exit 1); exit 1; }; } | |
25251 | else | |
25252 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25253 | echo "${ECHO_T}$MICROWIN" >&6 | |
25254 | cat >>confdefs.h <<\_ACEOF | |
25255 | #define wxUSE_NANOX 1 | |
25256 | _ACEOF | |
25257 | ||
25258 | fi | |
25259 | fi | |
25260 | ||
25261 | if test "$wxUSE_UNICODE" = "yes"; then | |
25262 | ||
25263 | succeeded=no | |
25264 | ||
25265 | if test -z "$PKG_CONFIG"; then | |
25266 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25267 | set dummy pkg-config; ac_word=$2 | |
25268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25270 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25272 | else | |
25273 | case $PKG_CONFIG in | |
25274 | [\\/]* | ?:[\\/]*) | |
25275 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25276 | ;; | |
25277 | *) | |
25278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25279 | for as_dir in $PATH | |
25280 | do | |
25281 | IFS=$as_save_IFS | |
25282 | test -z "$as_dir" && as_dir=. | |
25283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25285 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25287 | break 2 | |
25288 | fi | |
25289 | done | |
25290 | done | |
25291 | ||
25292 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25293 | ;; | |
25294 | esac | |
25295 | fi | |
25296 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25297 | ||
25298 | if test -n "$PKG_CONFIG"; then | |
25299 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25300 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25301 | else | |
25302 | echo "$as_me:$LINENO: result: no" >&5 | |
25303 | echo "${ECHO_T}no" >&6 | |
25304 | fi | |
25305 | ||
25306 | fi | |
25307 | ||
25308 | if test "$PKG_CONFIG" = "no" ; then | |
25309 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25310 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25311 | echo "*** to the full path to pkg-config." | |
25312 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25313 | else | |
25314 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25315 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25316 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25317 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25318 | ||
25319 | if $PKG_CONFIG --exists "pangox" ; then | |
25320 | echo "$as_me:$LINENO: result: yes" >&5 | |
25321 | echo "${ECHO_T}yes" >&6 | |
25322 | succeeded=yes | |
25323 | ||
25324 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25325 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25326 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25327 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25328 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25329 | ||
25330 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25331 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25332 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25333 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25334 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25335 | else | |
25336 | PANGOX_CFLAGS="" | |
25337 | PANGOX_LIBS="" | |
25338 | ## If we have a custom action on failure, don't print errors, but | |
25339 | ## do set a variable so people can do so. | |
25340 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25341 | ||
25342 | fi | |
25343 | ||
25344 | ||
25345 | ||
25346 | else | |
25347 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25348 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25349 | fi | |
25350 | fi | |
25351 | ||
25352 | if test $succeeded = yes; then | |
25353 | ||
25354 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25355 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25356 | ||
25357 | else | |
25358 | ||
25359 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25360 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25361 | { (exit 1); exit 1; }; } | |
25362 | ||
25363 | ||
25364 | fi | |
25365 | ||
25366 | ||
25367 | succeeded=no | |
25368 | ||
25369 | if test -z "$PKG_CONFIG"; then | |
25370 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25371 | set dummy pkg-config; ac_word=$2 | |
25372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25374 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25376 | else | |
25377 | case $PKG_CONFIG in | |
25378 | [\\/]* | ?:[\\/]*) | |
25379 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25380 | ;; | |
25381 | *) | |
25382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25383 | for as_dir in $PATH | |
25384 | do | |
25385 | IFS=$as_save_IFS | |
25386 | test -z "$as_dir" && as_dir=. | |
25387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25389 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25391 | break 2 | |
25392 | fi | |
25393 | done | |
25394 | done | |
25395 | ||
25396 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25397 | ;; | |
25398 | esac | |
25399 | fi | |
25400 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25401 | ||
25402 | if test -n "$PKG_CONFIG"; then | |
25403 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25404 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25405 | else | |
25406 | echo "$as_me:$LINENO: result: no" >&5 | |
25407 | echo "${ECHO_T}no" >&6 | |
25408 | fi | |
25409 | ||
25410 | fi | |
25411 | ||
25412 | if test "$PKG_CONFIG" = "no" ; then | |
25413 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25414 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25415 | echo "*** to the full path to pkg-config." | |
25416 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25417 | else | |
25418 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25419 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25420 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25421 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25422 | ||
25423 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25424 | echo "$as_me:$LINENO: result: yes" >&5 | |
25425 | echo "${ECHO_T}yes" >&6 | |
25426 | succeeded=yes | |
25427 | ||
25428 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25429 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25430 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25431 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25432 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25433 | ||
25434 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25435 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25436 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25437 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25438 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25439 | else | |
25440 | PANGOFT2_CFLAGS="" | |
25441 | PANGOFT2_LIBS="" | |
25442 | ## If we have a custom action on failure, don't print errors, but | |
25443 | ## do set a variable so people can do so. | |
25444 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25445 | ||
25446 | fi | |
25447 | ||
25448 | ||
25449 | ||
25450 | else | |
25451 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25452 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25453 | fi | |
25454 | fi | |
25455 | ||
25456 | if test $succeeded = yes; then | |
25457 | ||
25458 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25459 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25460 | ||
25461 | else | |
25462 | ||
25463 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25464 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25465 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25466 | ||
25467 | ||
25468 | fi | |
25469 | ||
25470 | ||
25471 | succeeded=no | |
25472 | ||
25473 | if test -z "$PKG_CONFIG"; then | |
25474 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25475 | set dummy pkg-config; ac_word=$2 | |
25476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25478 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25480 | else | |
25481 | case $PKG_CONFIG in | |
25482 | [\\/]* | ?:[\\/]*) | |
25483 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25484 | ;; | |
25485 | *) | |
25486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25487 | for as_dir in $PATH | |
25488 | do | |
25489 | IFS=$as_save_IFS | |
25490 | test -z "$as_dir" && as_dir=. | |
25491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25493 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25495 | break 2 | |
25496 | fi | |
25497 | done | |
25498 | done | |
25499 | ||
25500 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25501 | ;; | |
25502 | esac | |
25503 | fi | |
25504 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25505 | ||
25506 | if test -n "$PKG_CONFIG"; then | |
25507 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25508 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25509 | else | |
25510 | echo "$as_me:$LINENO: result: no" >&5 | |
25511 | echo "${ECHO_T}no" >&6 | |
25512 | fi | |
25513 | ||
25514 | fi | |
25515 | ||
25516 | if test "$PKG_CONFIG" = "no" ; then | |
25517 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25518 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25519 | echo "*** to the full path to pkg-config." | |
25520 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25521 | else | |
25522 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25523 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25524 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25525 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25526 | ||
25527 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25528 | echo "$as_me:$LINENO: result: yes" >&5 | |
25529 | echo "${ECHO_T}yes" >&6 | |
25530 | succeeded=yes | |
25531 | ||
25532 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25533 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25534 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25535 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25536 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25537 | ||
25538 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25539 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25540 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25541 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25542 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25543 | else | |
25544 | PANGOXFT_CFLAGS="" | |
25545 | PANGOXFT_LIBS="" | |
25546 | ## If we have a custom action on failure, don't print errors, but | |
25547 | ## do set a variable so people can do so. | |
25548 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25549 | ||
25550 | fi | |
25551 | ||
25552 | ||
25553 | ||
25554 | else | |
25555 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25556 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25557 | fi | |
25558 | fi | |
25559 | ||
25560 | if test $succeeded = yes; then | |
25561 | ||
25562 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25563 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25564 | ||
25565 | else | |
25566 | ||
25567 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25568 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25569 | ||
25570 | ||
25571 | fi | |
25572 | ||
304205f1 VS |
25573 | save_CFLAGS="$CFLAGS" |
25574 | save_LIBS="$LIBS" | |
25575 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25576 | LIBS="$LIBS $PANGOX_LIBS" | |
25577 | ||
25578 | for ac_func in pango_font_family_is_monospace | |
25579 | do | |
25580 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25581 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25582 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25583 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25585 | else | |
25586 | cat >conftest.$ac_ext <<_ACEOF | |
25587 | /* confdefs.h. */ | |
25588 | _ACEOF | |
25589 | cat confdefs.h >>conftest.$ac_ext | |
25590 | cat >>conftest.$ac_ext <<_ACEOF | |
25591 | /* end confdefs.h. */ | |
25592 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25593 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25594 | #define $ac_func innocuous_$ac_func | |
25595 | ||
25596 | /* System header to define __stub macros and hopefully few prototypes, | |
25597 | which can conflict with char $ac_func (); below. | |
25598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25599 | <limits.h> exists even on freestanding compilers. */ | |
25600 | ||
25601 | #ifdef __STDC__ | |
25602 | # include <limits.h> | |
25603 | #else | |
25604 | # include <assert.h> | |
25605 | #endif | |
25606 | ||
25607 | #undef $ac_func | |
25608 | ||
25609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25610 | #ifdef __cplusplus | |
25611 | extern "C" | |
25612 | { | |
25613 | #endif | |
25614 | /* We use char because int might match the return type of a gcc2 | |
25615 | builtin and then its argument prototype would still apply. */ | |
25616 | char $ac_func (); | |
25617 | /* The GNU C library defines this for functions which it implements | |
25618 | to always fail with ENOSYS. Some functions are actually named | |
25619 | something starting with __ and the normal name is an alias. */ | |
25620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25621 | choke me | |
25622 | #else | |
25623 | char (*f) () = $ac_func; | |
25624 | #endif | |
25625 | #ifdef __cplusplus | |
25626 | } | |
25627 | #endif | |
25628 | ||
25629 | int | |
25630 | main () | |
25631 | { | |
25632 | return f != $ac_func; | |
25633 | ; | |
25634 | return 0; | |
25635 | } | |
25636 | _ACEOF | |
25637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25639 | (eval $ac_link) 2>conftest.er1 | |
25640 | ac_status=$? | |
25641 | grep -v '^ *+' conftest.er1 >conftest.err | |
25642 | rm -f conftest.er1 | |
25643 | cat conftest.err >&5 | |
25644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25645 | (exit $ac_status); } && | |
25646 | { ac_try='test -z "$ac_c_werror_flag" | |
25647 | || test ! -s conftest.err' | |
25648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25649 | (eval $ac_try) 2>&5 | |
25650 | ac_status=$? | |
25651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25652 | (exit $ac_status); }; } && | |
25653 | { ac_try='test -s conftest$ac_exeext' | |
25654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25655 | (eval $ac_try) 2>&5 | |
25656 | ac_status=$? | |
25657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25658 | (exit $ac_status); }; }; then | |
25659 | eval "$as_ac_var=yes" | |
25660 | else | |
25661 | echo "$as_me: failed program was:" >&5 | |
25662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25663 | ||
25664 | eval "$as_ac_var=no" | |
25665 | fi | |
25666 | rm -f conftest.err conftest.$ac_objext \ | |
25667 | conftest$ac_exeext conftest.$ac_ext | |
25668 | fi | |
25669 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25670 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25671 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25672 | cat >>confdefs.h <<_ACEOF | |
25673 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25674 | _ACEOF | |
25675 | ||
25676 | fi | |
25677 | done | |
25678 | ||
25679 | CFLAGS="$save_CFLAGS" | |
25680 | LIBS="$save_LIBS" | |
a848cd7e SC |
25681 | fi |
25682 | ||
25683 | wxUSE_UNIVERSAL="yes" | |
25684 | ||
25685 | if test "$wxUSE_NANOX" = "yes"; then | |
25686 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25687 | 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" | |
25688 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25689 | else | |
25690 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25691 | fi | |
25692 | ||
25693 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
25694 | TOOLKIT=X11 | |
25695 | GUIDIST=X11_DIST | |
25696 | fi | |
25697 | ||
25698 | if test "$wxUSE_MOTIF" = 1; then | |
25699 | if test "$no_x" = yes; then | |
25700 | # Not all programs may use this symbol, but it does not hurt to define it. | |
25701 | ||
25702 | cat >>confdefs.h <<\_ACEOF | |
25703 | #define X_DISPLAY_MISSING 1 | |
25704 | _ACEOF | |
25705 | ||
25706 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
25707 | else | |
25708 | if test -n "$x_includes"; then | |
25709 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
25710 | fi | |
25711 | ||
25712 | # It would also be nice to do this for all -L options, not just this one. | |
25713 | if test -n "$x_libraries"; then | |
25714 | X_LIBS="$X_LIBS -L$x_libraries" | |
25715 | # For Solaris; some versions of Sun CC require a space after -R and | |
25716 | # others require no space. Words are not sufficient . . . . | |
25717 | case `(uname -sr) 2>/dev/null` in | |
25718 | "SunOS 5"*) | |
25719 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
25720 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
25721 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
25722 | cat >conftest.$ac_ext <<_ACEOF | |
25723 | /* confdefs.h. */ | |
25724 | _ACEOF | |
25725 | cat confdefs.h >>conftest.$ac_ext | |
25726 | cat >>conftest.$ac_ext <<_ACEOF | |
25727 | /* end confdefs.h. */ | |
25728 | ||
25729 | int | |
25730 | main () | |
25731 | { | |
25732 | ||
25733 | ; | |
25734 | return 0; | |
25735 | } | |
25736 | _ACEOF | |
25737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25739 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25740 | ac_status=$? |
ac1cb8d3 VS |
25741 | grep -v '^ *+' conftest.er1 >conftest.err |
25742 | rm -f conftest.er1 | |
25743 | cat conftest.err >&5 | |
a848cd7e SC |
25744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25745 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25746 | { ac_try='test -z "$ac_c_werror_flag" |
25747 | || test ! -s conftest.err' | |
25748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25749 | (eval $ac_try) 2>&5 | |
25750 | ac_status=$? | |
25751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25752 | (exit $ac_status); }; } && | |
25753 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25755 | (eval $ac_try) 2>&5 | |
25756 | ac_status=$? | |
25757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25758 | (exit $ac_status); }; }; then | |
25759 | ac_R_nospace=yes | |
25760 | else | |
25761 | echo "$as_me: failed program was:" >&5 | |
25762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25763 | ||
25764 | ac_R_nospace=no | |
25765 | fi | |
ac1cb8d3 VS |
25766 | rm -f conftest.err conftest.$ac_objext \ |
25767 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25768 | if test $ac_R_nospace = yes; then |
25769 | echo "$as_me:$LINENO: result: no" >&5 | |
25770 | echo "${ECHO_T}no" >&6 | |
25771 | X_LIBS="$X_LIBS -R$x_libraries" | |
25772 | else | |
25773 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
25774 | cat >conftest.$ac_ext <<_ACEOF | |
25775 | /* confdefs.h. */ | |
25776 | _ACEOF | |
25777 | cat confdefs.h >>conftest.$ac_ext | |
25778 | cat >>conftest.$ac_ext <<_ACEOF | |
25779 | /* end confdefs.h. */ | |
25780 | ||
25781 | int | |
25782 | main () | |
25783 | { | |
25784 | ||
25785 | ; | |
25786 | return 0; | |
25787 | } | |
25788 | _ACEOF | |
25789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25791 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25792 | ac_status=$? |
ac1cb8d3 VS |
25793 | grep -v '^ *+' conftest.er1 >conftest.err |
25794 | rm -f conftest.er1 | |
25795 | cat conftest.err >&5 | |
a848cd7e SC |
25796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25797 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25798 | { ac_try='test -z "$ac_c_werror_flag" |
25799 | || test ! -s conftest.err' | |
25800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25801 | (eval $ac_try) 2>&5 | |
25802 | ac_status=$? | |
25803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25804 | (exit $ac_status); }; } && | |
25805 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25807 | (eval $ac_try) 2>&5 | |
25808 | ac_status=$? | |
25809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25810 | (exit $ac_status); }; }; then | |
25811 | ac_R_space=yes | |
25812 | else | |
25813 | echo "$as_me: failed program was:" >&5 | |
25814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25815 | ||
25816 | ac_R_space=no | |
25817 | fi | |
ac1cb8d3 VS |
25818 | rm -f conftest.err conftest.$ac_objext \ |
25819 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25820 | if test $ac_R_space = yes; then |
25821 | echo "$as_me:$LINENO: result: yes" >&5 | |
25822 | echo "${ECHO_T}yes" >&6 | |
25823 | X_LIBS="$X_LIBS -R $x_libraries" | |
25824 | else | |
25825 | echo "$as_me:$LINENO: result: neither works" >&5 | |
25826 | echo "${ECHO_T}neither works" >&6 | |
25827 | fi | |
25828 | fi | |
25829 | LIBS=$ac_xsave_LIBS | |
25830 | esac | |
25831 | fi | |
25832 | ||
25833 | # Check for system-dependent libraries X programs must link with. | |
25834 | # Do this before checking for the system-independent R6 libraries | |
25835 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
25836 | ||
25837 | if test "$ISC" = yes; then | |
25838 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
25839 | else | |
25840 | # Martyn Johnson says this is needed for Ultrix, if the X | |
25841 | # libraries were built with DECnet support. And Karl Berry says | |
25842 | # the Alpha needs dnet_stub (dnet does not exist). | |
25843 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
25844 | cat >conftest.$ac_ext <<_ACEOF | |
25845 | /* confdefs.h. */ | |
25846 | _ACEOF | |
25847 | cat confdefs.h >>conftest.$ac_ext | |
25848 | cat >>conftest.$ac_ext <<_ACEOF | |
25849 | /* end confdefs.h. */ | |
25850 | ||
25851 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25852 | #ifdef __cplusplus | |
25853 | extern "C" | |
25854 | #endif | |
25855 | /* We use char because int might match the return type of a gcc2 | |
25856 | builtin and then its argument prototype would still apply. */ | |
25857 | char XOpenDisplay (); | |
25858 | int | |
25859 | main () | |
25860 | { | |
25861 | XOpenDisplay (); | |
25862 | ; | |
25863 | return 0; | |
25864 | } | |
25865 | _ACEOF | |
25866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25868 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25869 | ac_status=$? |
ac1cb8d3 VS |
25870 | grep -v '^ *+' conftest.er1 >conftest.err |
25871 | rm -f conftest.er1 | |
25872 | cat conftest.err >&5 | |
a848cd7e SC |
25873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25874 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25875 | { ac_try='test -z "$ac_c_werror_flag" |
25876 | || test ! -s conftest.err' | |
25877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25878 | (eval $ac_try) 2>&5 | |
25879 | ac_status=$? | |
25880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25881 | (exit $ac_status); }; } && | |
25882 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25884 | (eval $ac_try) 2>&5 | |
25885 | ac_status=$? | |
25886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25887 | (exit $ac_status); }; }; then | |
25888 | : | |
25889 | else | |
25890 | echo "$as_me: failed program was:" >&5 | |
25891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25892 | ||
25893 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
25894 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
25895 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
25896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | else | |
25898 | ac_check_lib_save_LIBS=$LIBS | |
25899 | LIBS="-ldnet $LIBS" | |
25900 | cat >conftest.$ac_ext <<_ACEOF | |
25901 | /* confdefs.h. */ | |
25902 | _ACEOF | |
25903 | cat confdefs.h >>conftest.$ac_ext | |
25904 | cat >>conftest.$ac_ext <<_ACEOF | |
25905 | /* end confdefs.h. */ | |
25906 | ||
25907 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25908 | #ifdef __cplusplus | |
25909 | extern "C" | |
25910 | #endif | |
25911 | /* We use char because int might match the return type of a gcc2 | |
25912 | builtin and then its argument prototype would still apply. */ | |
25913 | char dnet_ntoa (); | |
25914 | int | |
25915 | main () | |
25916 | { | |
25917 | dnet_ntoa (); | |
25918 | ; | |
25919 | return 0; | |
25920 | } | |
25921 | _ACEOF | |
25922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25924 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25925 | ac_status=$? |
ac1cb8d3 VS |
25926 | grep -v '^ *+' conftest.er1 >conftest.err |
25927 | rm -f conftest.er1 | |
25928 | cat conftest.err >&5 | |
a848cd7e SC |
25929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25930 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25931 | { ac_try='test -z "$ac_c_werror_flag" |
25932 | || test ! -s conftest.err' | |
25933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25934 | (eval $ac_try) 2>&5 | |
25935 | ac_status=$? | |
25936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25937 | (exit $ac_status); }; } && | |
25938 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25940 | (eval $ac_try) 2>&5 | |
25941 | ac_status=$? | |
25942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25943 | (exit $ac_status); }; }; then | |
25944 | ac_cv_lib_dnet_dnet_ntoa=yes | |
25945 | else | |
25946 | echo "$as_me: failed program was:" >&5 | |
25947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25948 | ||
25949 | ac_cv_lib_dnet_dnet_ntoa=no | |
25950 | fi | |
ac1cb8d3 VS |
25951 | rm -f conftest.err conftest.$ac_objext \ |
25952 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25953 | LIBS=$ac_check_lib_save_LIBS |
25954 | fi | |
25955 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
25956 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
25957 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
25958 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
25959 | fi | |
25960 | ||
25961 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
25962 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
25963 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
25964 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
25965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25966 | else | |
25967 | ac_check_lib_save_LIBS=$LIBS | |
25968 | LIBS="-ldnet_stub $LIBS" | |
25969 | cat >conftest.$ac_ext <<_ACEOF | |
25970 | /* confdefs.h. */ | |
25971 | _ACEOF | |
25972 | cat confdefs.h >>conftest.$ac_ext | |
25973 | cat >>conftest.$ac_ext <<_ACEOF | |
25974 | /* end confdefs.h. */ | |
25975 | ||
25976 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25977 | #ifdef __cplusplus | |
25978 | extern "C" | |
25979 | #endif | |
25980 | /* We use char because int might match the return type of a gcc2 | |
25981 | builtin and then its argument prototype would still apply. */ | |
25982 | char dnet_ntoa (); | |
25983 | int | |
25984 | main () | |
25985 | { | |
25986 | dnet_ntoa (); | |
25987 | ; | |
25988 | return 0; | |
25989 | } | |
25990 | _ACEOF | |
25991 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25993 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25994 | ac_status=$? |
ac1cb8d3 VS |
25995 | grep -v '^ *+' conftest.er1 >conftest.err |
25996 | rm -f conftest.er1 | |
25997 | cat conftest.err >&5 | |
a848cd7e SC |
25998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25999 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26000 | { ac_try='test -z "$ac_c_werror_flag" |
26001 | || test ! -s conftest.err' | |
26002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26003 | (eval $ac_try) 2>&5 | |
26004 | ac_status=$? | |
26005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26006 | (exit $ac_status); }; } && | |
26007 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26009 | (eval $ac_try) 2>&5 | |
26010 | ac_status=$? | |
26011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26012 | (exit $ac_status); }; }; then | |
26013 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
26014 | else | |
26015 | echo "$as_me: failed program was:" >&5 | |
26016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26017 | ||
26018 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
26019 | fi | |
ac1cb8d3 VS |
26020 | rm -f conftest.err conftest.$ac_objext \ |
26021 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26022 | LIBS=$ac_check_lib_save_LIBS |
26023 | fi | |
26024 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
26025 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
26026 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
26027 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
26028 | fi | |
26029 | ||
26030 | fi | |
26031 | fi | |
ac1cb8d3 VS |
26032 | rm -f conftest.err conftest.$ac_objext \ |
26033 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26034 | LIBS="$ac_xsave_LIBS" |
26035 | ||
26036 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
26037 | # to get the SysV transport functions. | |
26038 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
26039 | # needs -lnsl. | |
26040 | # The nsl library prevents programs from opening the X display | |
26041 | # on Irix 5.2, according to T.E. Dickey. | |
26042 | # The functions gethostbyname, getservbyname, and inet_addr are | |
26043 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
26044 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
26045 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
26046 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
26047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26048 | else | |
26049 | cat >conftest.$ac_ext <<_ACEOF | |
26050 | /* confdefs.h. */ | |
26051 | _ACEOF | |
26052 | cat confdefs.h >>conftest.$ac_ext | |
26053 | cat >>conftest.$ac_ext <<_ACEOF | |
26054 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26055 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
26056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26057 | #define gethostbyname innocuous_gethostbyname | |
26058 | ||
a848cd7e SC |
26059 | /* System header to define __stub macros and hopefully few prototypes, |
26060 | which can conflict with char gethostbyname (); below. | |
26061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26062 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26063 | |
a848cd7e SC |
26064 | #ifdef __STDC__ |
26065 | # include <limits.h> | |
26066 | #else | |
26067 | # include <assert.h> | |
26068 | #endif | |
ac1cb8d3 VS |
26069 | |
26070 | #undef gethostbyname | |
26071 | ||
a848cd7e SC |
26072 | /* Override any gcc2 internal prototype to avoid an error. */ |
26073 | #ifdef __cplusplus | |
26074 | extern "C" | |
26075 | { | |
26076 | #endif | |
26077 | /* We use char because int might match the return type of a gcc2 | |
26078 | builtin and then its argument prototype would still apply. */ | |
26079 | char gethostbyname (); | |
26080 | /* The GNU C library defines this for functions which it implements | |
26081 | to always fail with ENOSYS. Some functions are actually named | |
26082 | something starting with __ and the normal name is an alias. */ | |
26083 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
26084 | choke me | |
26085 | #else | |
26086 | char (*f) () = gethostbyname; | |
26087 | #endif | |
26088 | #ifdef __cplusplus | |
26089 | } | |
26090 | #endif | |
26091 | ||
26092 | int | |
26093 | main () | |
26094 | { | |
26095 | return f != gethostbyname; | |
26096 | ; | |
26097 | return 0; | |
26098 | } | |
26099 | _ACEOF | |
26100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26102 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26103 | ac_status=$? |
ac1cb8d3 VS |
26104 | grep -v '^ *+' conftest.er1 >conftest.err |
26105 | rm -f conftest.er1 | |
26106 | cat conftest.err >&5 | |
a848cd7e SC |
26107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26108 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26109 | { ac_try='test -z "$ac_c_werror_flag" |
26110 | || test ! -s conftest.err' | |
26111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26112 | (eval $ac_try) 2>&5 | |
26113 | ac_status=$? | |
26114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26115 | (exit $ac_status); }; } && | |
26116 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26118 | (eval $ac_try) 2>&5 | |
26119 | ac_status=$? | |
26120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26121 | (exit $ac_status); }; }; then | |
26122 | ac_cv_func_gethostbyname=yes | |
26123 | else | |
26124 | echo "$as_me: failed program was:" >&5 | |
26125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26126 | ||
26127 | ac_cv_func_gethostbyname=no | |
26128 | fi | |
ac1cb8d3 VS |
26129 | rm -f conftest.err conftest.$ac_objext \ |
26130 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26131 | fi |
26132 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
26133 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
26134 | ||
26135 | if test $ac_cv_func_gethostbyname = no; then | |
26136 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
26137 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
26138 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
26139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26140 | else | |
26141 | ac_check_lib_save_LIBS=$LIBS | |
26142 | LIBS="-lnsl $LIBS" | |
26143 | cat >conftest.$ac_ext <<_ACEOF | |
26144 | /* confdefs.h. */ | |
26145 | _ACEOF | |
26146 | cat confdefs.h >>conftest.$ac_ext | |
26147 | cat >>conftest.$ac_ext <<_ACEOF | |
26148 | /* end confdefs.h. */ | |
26149 | ||
26150 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26151 | #ifdef __cplusplus | |
26152 | extern "C" | |
26153 | #endif | |
26154 | /* We use char because int might match the return type of a gcc2 | |
26155 | builtin and then its argument prototype would still apply. */ | |
26156 | char gethostbyname (); | |
26157 | int | |
26158 | main () | |
26159 | { | |
26160 | gethostbyname (); | |
26161 | ; | |
26162 | return 0; | |
26163 | } | |
26164 | _ACEOF | |
26165 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26167 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26168 | ac_status=$? |
ac1cb8d3 VS |
26169 | grep -v '^ *+' conftest.er1 >conftest.err |
26170 | rm -f conftest.er1 | |
26171 | cat conftest.err >&5 | |
a848cd7e SC |
26172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26173 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26174 | { ac_try='test -z "$ac_c_werror_flag" |
26175 | || test ! -s conftest.err' | |
26176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26177 | (eval $ac_try) 2>&5 | |
26178 | ac_status=$? | |
26179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26180 | (exit $ac_status); }; } && | |
26181 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26183 | (eval $ac_try) 2>&5 | |
26184 | ac_status=$? | |
26185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26186 | (exit $ac_status); }; }; then | |
26187 | ac_cv_lib_nsl_gethostbyname=yes | |
26188 | else | |
26189 | echo "$as_me: failed program was:" >&5 | |
26190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26191 | ||
26192 | ac_cv_lib_nsl_gethostbyname=no | |
26193 | fi | |
ac1cb8d3 VS |
26194 | rm -f conftest.err conftest.$ac_objext \ |
26195 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26196 | LIBS=$ac_check_lib_save_LIBS |
26197 | fi | |
26198 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
26199 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
26200 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
26201 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
26202 | fi | |
26203 | ||
26204 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
ac1cb8d3 | 26205 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
a848cd7e SC |
26206 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
26207 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
26208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26209 | else | |
26210 | ac_check_lib_save_LIBS=$LIBS | |
26211 | LIBS="-lbsd $LIBS" | |
26212 | cat >conftest.$ac_ext <<_ACEOF | |
26213 | /* confdefs.h. */ | |
26214 | _ACEOF | |
26215 | cat confdefs.h >>conftest.$ac_ext | |
26216 | cat >>conftest.$ac_ext <<_ACEOF | |
26217 | /* end confdefs.h. */ | |
26218 | ||
26219 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26220 | #ifdef __cplusplus | |
26221 | extern "C" | |
26222 | #endif | |
26223 | /* We use char because int might match the return type of a gcc2 | |
26224 | builtin and then its argument prototype would still apply. */ | |
26225 | char gethostbyname (); | |
26226 | int | |
26227 | main () | |
26228 | { | |
26229 | gethostbyname (); | |
26230 | ; | |
26231 | return 0; | |
26232 | } | |
26233 | _ACEOF | |
26234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26236 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26237 | ac_status=$? |
ac1cb8d3 VS |
26238 | grep -v '^ *+' conftest.er1 >conftest.err |
26239 | rm -f conftest.er1 | |
26240 | cat conftest.err >&5 | |
a848cd7e SC |
26241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26242 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26243 | { ac_try='test -z "$ac_c_werror_flag" |
26244 | || test ! -s conftest.err' | |
26245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26246 | (eval $ac_try) 2>&5 | |
26247 | ac_status=$? | |
26248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26249 | (exit $ac_status); }; } && | |
26250 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26252 | (eval $ac_try) 2>&5 | |
26253 | ac_status=$? | |
26254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26255 | (exit $ac_status); }; }; then | |
26256 | ac_cv_lib_bsd_gethostbyname=yes | |
26257 | else | |
26258 | echo "$as_me: failed program was:" >&5 | |
26259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26260 | ||
26261 | ac_cv_lib_bsd_gethostbyname=no | |
26262 | fi | |
ac1cb8d3 VS |
26263 | rm -f conftest.err conftest.$ac_objext \ |
26264 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26265 | LIBS=$ac_check_lib_save_LIBS |
26266 | fi | |
26267 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
26268 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
26269 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
26270 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
26271 | fi | |
26272 | ||
26273 | fi | |
26274 | fi | |
26275 | ||
26276 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
26277 | # socket/setsockopt and other routines are undefined under SCO ODT | |
26278 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
26279 | # on later versions), says Simon Leinen: it contains gethostby* | |
26280 | # variants that don't use the name server (or something). -lsocket | |
26281 | # must be given before -lnsl if both are needed. We assume that | |
26282 | # if connect needs -lnsl, so does gethostbyname. | |
26283 | echo "$as_me:$LINENO: checking for connect" >&5 | |
26284 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
26285 | if test "${ac_cv_func_connect+set}" = set; then | |
26286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26287 | else | |
26288 | cat >conftest.$ac_ext <<_ACEOF | |
26289 | /* confdefs.h. */ | |
26290 | _ACEOF | |
26291 | cat confdefs.h >>conftest.$ac_ext | |
26292 | cat >>conftest.$ac_ext <<_ACEOF | |
26293 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26294 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
26295 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26296 | #define connect innocuous_connect | |
26297 | ||
a848cd7e SC |
26298 | /* System header to define __stub macros and hopefully few prototypes, |
26299 | which can conflict with char connect (); below. | |
26300 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26301 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26302 | |
a848cd7e SC |
26303 | #ifdef __STDC__ |
26304 | # include <limits.h> | |
26305 | #else | |
26306 | # include <assert.h> | |
26307 | #endif | |
ac1cb8d3 VS |
26308 | |
26309 | #undef connect | |
26310 | ||
a848cd7e SC |
26311 | /* Override any gcc2 internal prototype to avoid an error. */ |
26312 | #ifdef __cplusplus | |
26313 | extern "C" | |
26314 | { | |
26315 | #endif | |
26316 | /* We use char because int might match the return type of a gcc2 | |
26317 | builtin and then its argument prototype would still apply. */ | |
26318 | char connect (); | |
26319 | /* The GNU C library defines this for functions which it implements | |
26320 | to always fail with ENOSYS. Some functions are actually named | |
26321 | something starting with __ and the normal name is an alias. */ | |
26322 | #if defined (__stub_connect) || defined (__stub___connect) | |
26323 | choke me | |
26324 | #else | |
26325 | char (*f) () = connect; | |
26326 | #endif | |
26327 | #ifdef __cplusplus | |
26328 | } | |
26329 | #endif | |
26330 | ||
26331 | int | |
26332 | main () | |
26333 | { | |
26334 | return f != connect; | |
26335 | ; | |
26336 | return 0; | |
26337 | } | |
26338 | _ACEOF | |
26339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26341 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26342 | ac_status=$? |
ac1cb8d3 VS |
26343 | grep -v '^ *+' conftest.er1 >conftest.err |
26344 | rm -f conftest.er1 | |
26345 | cat conftest.err >&5 | |
a848cd7e SC |
26346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26347 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26348 | { ac_try='test -z "$ac_c_werror_flag" |
26349 | || test ! -s conftest.err' | |
26350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26351 | (eval $ac_try) 2>&5 | |
26352 | ac_status=$? | |
26353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26354 | (exit $ac_status); }; } && | |
26355 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26357 | (eval $ac_try) 2>&5 | |
26358 | ac_status=$? | |
26359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26360 | (exit $ac_status); }; }; then | |
26361 | ac_cv_func_connect=yes | |
26362 | else | |
26363 | echo "$as_me: failed program was:" >&5 | |
26364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26365 | ||
26366 | ac_cv_func_connect=no | |
26367 | fi | |
ac1cb8d3 VS |
26368 | rm -f conftest.err conftest.$ac_objext \ |
26369 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26370 | fi |
26371 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
26372 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
26373 | ||
26374 | if test $ac_cv_func_connect = no; then | |
26375 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
26376 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
26377 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
26378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26379 | else | |
26380 | ac_check_lib_save_LIBS=$LIBS | |
26381 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
26382 | cat >conftest.$ac_ext <<_ACEOF | |
26383 | /* confdefs.h. */ | |
26384 | _ACEOF | |
26385 | cat confdefs.h >>conftest.$ac_ext | |
26386 | cat >>conftest.$ac_ext <<_ACEOF | |
26387 | /* end confdefs.h. */ | |
26388 | ||
26389 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26390 | #ifdef __cplusplus | |
26391 | extern "C" | |
26392 | #endif | |
26393 | /* We use char because int might match the return type of a gcc2 | |
26394 | builtin and then its argument prototype would still apply. */ | |
26395 | char connect (); | |
26396 | int | |
26397 | main () | |
26398 | { | |
26399 | connect (); | |
26400 | ; | |
26401 | return 0; | |
26402 | } | |
26403 | _ACEOF | |
26404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26406 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26407 | ac_status=$? |
ac1cb8d3 VS |
26408 | grep -v '^ *+' conftest.er1 >conftest.err |
26409 | rm -f conftest.er1 | |
26410 | cat conftest.err >&5 | |
a848cd7e SC |
26411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26412 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26413 | { ac_try='test -z "$ac_c_werror_flag" |
26414 | || test ! -s conftest.err' | |
26415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26416 | (eval $ac_try) 2>&5 | |
26417 | ac_status=$? | |
26418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26419 | (exit $ac_status); }; } && | |
26420 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26422 | (eval $ac_try) 2>&5 | |
26423 | ac_status=$? | |
26424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26425 | (exit $ac_status); }; }; then | |
26426 | ac_cv_lib_socket_connect=yes | |
26427 | else | |
26428 | echo "$as_me: failed program was:" >&5 | |
26429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26430 | ||
26431 | ac_cv_lib_socket_connect=no | |
26432 | fi | |
ac1cb8d3 VS |
26433 | rm -f conftest.err conftest.$ac_objext \ |
26434 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26435 | LIBS=$ac_check_lib_save_LIBS |
26436 | fi | |
26437 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
26438 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
26439 | if test $ac_cv_lib_socket_connect = yes; then | |
26440 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
26441 | fi | |
26442 | ||
26443 | fi | |
26444 | ||
26445 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
26446 | echo "$as_me:$LINENO: checking for remove" >&5 | |
26447 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
26448 | if test "${ac_cv_func_remove+set}" = set; then | |
26449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26450 | else | |
26451 | cat >conftest.$ac_ext <<_ACEOF | |
26452 | /* confdefs.h. */ | |
26453 | _ACEOF | |
26454 | cat confdefs.h >>conftest.$ac_ext | |
26455 | cat >>conftest.$ac_ext <<_ACEOF | |
26456 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26457 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
26458 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26459 | #define remove innocuous_remove | |
26460 | ||
a848cd7e SC |
26461 | /* System header to define __stub macros and hopefully few prototypes, |
26462 | which can conflict with char remove (); below. | |
26463 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26464 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26465 | |
a848cd7e SC |
26466 | #ifdef __STDC__ |
26467 | # include <limits.h> | |
26468 | #else | |
26469 | # include <assert.h> | |
26470 | #endif | |
ac1cb8d3 VS |
26471 | |
26472 | #undef remove | |
26473 | ||
a848cd7e SC |
26474 | /* Override any gcc2 internal prototype to avoid an error. */ |
26475 | #ifdef __cplusplus | |
26476 | extern "C" | |
26477 | { | |
26478 | #endif | |
26479 | /* We use char because int might match the return type of a gcc2 | |
26480 | builtin and then its argument prototype would still apply. */ | |
26481 | char remove (); | |
26482 | /* The GNU C library defines this for functions which it implements | |
26483 | to always fail with ENOSYS. Some functions are actually named | |
26484 | something starting with __ and the normal name is an alias. */ | |
26485 | #if defined (__stub_remove) || defined (__stub___remove) | |
26486 | choke me | |
26487 | #else | |
26488 | char (*f) () = remove; | |
26489 | #endif | |
26490 | #ifdef __cplusplus | |
26491 | } | |
26492 | #endif | |
26493 | ||
26494 | int | |
26495 | main () | |
26496 | { | |
26497 | return f != remove; | |
26498 | ; | |
26499 | return 0; | |
26500 | } | |
26501 | _ACEOF | |
26502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26504 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26505 | ac_status=$? |
ac1cb8d3 VS |
26506 | grep -v '^ *+' conftest.er1 >conftest.err |
26507 | rm -f conftest.er1 | |
26508 | cat conftest.err >&5 | |
a848cd7e SC |
26509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26510 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26511 | { ac_try='test -z "$ac_c_werror_flag" |
26512 | || test ! -s conftest.err' | |
26513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26514 | (eval $ac_try) 2>&5 | |
26515 | ac_status=$? | |
26516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26517 | (exit $ac_status); }; } && | |
26518 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26520 | (eval $ac_try) 2>&5 | |
26521 | ac_status=$? | |
26522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26523 | (exit $ac_status); }; }; then | |
26524 | ac_cv_func_remove=yes | |
26525 | else | |
26526 | echo "$as_me: failed program was:" >&5 | |
26527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26528 | ||
26529 | ac_cv_func_remove=no | |
26530 | fi | |
ac1cb8d3 VS |
26531 | rm -f conftest.err conftest.$ac_objext \ |
26532 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26533 | fi |
26534 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
26535 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
26536 | ||
26537 | if test $ac_cv_func_remove = no; then | |
26538 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
26539 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
26540 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
26541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26542 | else | |
26543 | ac_check_lib_save_LIBS=$LIBS | |
26544 | LIBS="-lposix $LIBS" | |
26545 | cat >conftest.$ac_ext <<_ACEOF | |
26546 | /* confdefs.h. */ | |
26547 | _ACEOF | |
26548 | cat confdefs.h >>conftest.$ac_ext | |
26549 | cat >>conftest.$ac_ext <<_ACEOF | |
26550 | /* end confdefs.h. */ | |
26551 | ||
26552 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26553 | #ifdef __cplusplus | |
26554 | extern "C" | |
26555 | #endif | |
26556 | /* We use char because int might match the return type of a gcc2 | |
26557 | builtin and then its argument prototype would still apply. */ | |
26558 | char remove (); | |
26559 | int | |
26560 | main () | |
26561 | { | |
26562 | remove (); | |
26563 | ; | |
26564 | return 0; | |
26565 | } | |
26566 | _ACEOF | |
26567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26569 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26570 | ac_status=$? |
ac1cb8d3 VS |
26571 | grep -v '^ *+' conftest.er1 >conftest.err |
26572 | rm -f conftest.er1 | |
26573 | cat conftest.err >&5 | |
a848cd7e SC |
26574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26575 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26576 | { ac_try='test -z "$ac_c_werror_flag" |
26577 | || test ! -s conftest.err' | |
26578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26579 | (eval $ac_try) 2>&5 | |
26580 | ac_status=$? | |
26581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26582 | (exit $ac_status); }; } && | |
26583 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26585 | (eval $ac_try) 2>&5 | |
26586 | ac_status=$? | |
26587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26588 | (exit $ac_status); }; }; then | |
26589 | ac_cv_lib_posix_remove=yes | |
26590 | else | |
26591 | echo "$as_me: failed program was:" >&5 | |
26592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26593 | ||
26594 | ac_cv_lib_posix_remove=no | |
26595 | fi | |
ac1cb8d3 VS |
26596 | rm -f conftest.err conftest.$ac_objext \ |
26597 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26598 | LIBS=$ac_check_lib_save_LIBS |
26599 | fi | |
26600 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
26601 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
26602 | if test $ac_cv_lib_posix_remove = yes; then | |
26603 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
26604 | fi | |
26605 | ||
26606 | fi | |
26607 | ||
26608 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
26609 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
26610 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
26611 | if test "${ac_cv_func_shmat+set}" = set; then | |
26612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26613 | else | |
26614 | cat >conftest.$ac_ext <<_ACEOF | |
26615 | /* confdefs.h. */ | |
26616 | _ACEOF | |
26617 | cat confdefs.h >>conftest.$ac_ext | |
26618 | cat >>conftest.$ac_ext <<_ACEOF | |
26619 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26620 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
26621 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26622 | #define shmat innocuous_shmat | |
26623 | ||
a848cd7e SC |
26624 | /* System header to define __stub macros and hopefully few prototypes, |
26625 | which can conflict with char shmat (); below. | |
26626 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26627 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26628 | |
a848cd7e SC |
26629 | #ifdef __STDC__ |
26630 | # include <limits.h> | |
26631 | #else | |
26632 | # include <assert.h> | |
26633 | #endif | |
ac1cb8d3 VS |
26634 | |
26635 | #undef shmat | |
26636 | ||
a848cd7e SC |
26637 | /* Override any gcc2 internal prototype to avoid an error. */ |
26638 | #ifdef __cplusplus | |
26639 | extern "C" | |
26640 | { | |
26641 | #endif | |
26642 | /* We use char because int might match the return type of a gcc2 | |
26643 | builtin and then its argument prototype would still apply. */ | |
26644 | char shmat (); | |
26645 | /* The GNU C library defines this for functions which it implements | |
26646 | to always fail with ENOSYS. Some functions are actually named | |
26647 | something starting with __ and the normal name is an alias. */ | |
26648 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
26649 | choke me | |
26650 | #else | |
26651 | char (*f) () = shmat; | |
26652 | #endif | |
26653 | #ifdef __cplusplus | |
26654 | } | |
26655 | #endif | |
26656 | ||
26657 | int | |
26658 | main () | |
26659 | { | |
26660 | return f != shmat; | |
26661 | ; | |
26662 | return 0; | |
26663 | } | |
26664 | _ACEOF | |
26665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26667 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26668 | ac_status=$? |
ac1cb8d3 VS |
26669 | grep -v '^ *+' conftest.er1 >conftest.err |
26670 | rm -f conftest.er1 | |
26671 | cat conftest.err >&5 | |
a848cd7e SC |
26672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26673 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26674 | { ac_try='test -z "$ac_c_werror_flag" |
26675 | || test ! -s conftest.err' | |
26676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26677 | (eval $ac_try) 2>&5 | |
26678 | ac_status=$? | |
26679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26680 | (exit $ac_status); }; } && | |
26681 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26683 | (eval $ac_try) 2>&5 | |
26684 | ac_status=$? | |
26685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26686 | (exit $ac_status); }; }; then | |
26687 | ac_cv_func_shmat=yes | |
26688 | else | |
26689 | echo "$as_me: failed program was:" >&5 | |
26690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26691 | ||
26692 | ac_cv_func_shmat=no | |
26693 | fi | |
ac1cb8d3 VS |
26694 | rm -f conftest.err conftest.$ac_objext \ |
26695 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26696 | fi |
26697 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
26698 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
26699 | ||
26700 | if test $ac_cv_func_shmat = no; then | |
26701 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
26702 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
26703 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
26704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26705 | else | |
26706 | ac_check_lib_save_LIBS=$LIBS | |
26707 | LIBS="-lipc $LIBS" | |
26708 | cat >conftest.$ac_ext <<_ACEOF | |
26709 | /* confdefs.h. */ | |
26710 | _ACEOF | |
26711 | cat confdefs.h >>conftest.$ac_ext | |
26712 | cat >>conftest.$ac_ext <<_ACEOF | |
26713 | /* end confdefs.h. */ | |
26714 | ||
26715 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26716 | #ifdef __cplusplus | |
26717 | extern "C" | |
26718 | #endif | |
26719 | /* We use char because int might match the return type of a gcc2 | |
26720 | builtin and then its argument prototype would still apply. */ | |
26721 | char shmat (); | |
26722 | int | |
26723 | main () | |
26724 | { | |
26725 | shmat (); | |
26726 | ; | |
26727 | return 0; | |
26728 | } | |
26729 | _ACEOF | |
26730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26732 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26733 | ac_status=$? |
ac1cb8d3 VS |
26734 | grep -v '^ *+' conftest.er1 >conftest.err |
26735 | rm -f conftest.er1 | |
26736 | cat conftest.err >&5 | |
a848cd7e SC |
26737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26738 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26739 | { ac_try='test -z "$ac_c_werror_flag" |
26740 | || test ! -s conftest.err' | |
26741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26742 | (eval $ac_try) 2>&5 | |
26743 | ac_status=$? | |
26744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26745 | (exit $ac_status); }; } && | |
26746 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26748 | (eval $ac_try) 2>&5 | |
26749 | ac_status=$? | |
26750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26751 | (exit $ac_status); }; }; then | |
26752 | ac_cv_lib_ipc_shmat=yes | |
26753 | else | |
26754 | echo "$as_me: failed program was:" >&5 | |
26755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26756 | ||
26757 | ac_cv_lib_ipc_shmat=no | |
26758 | fi | |
ac1cb8d3 VS |
26759 | rm -f conftest.err conftest.$ac_objext \ |
26760 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26761 | LIBS=$ac_check_lib_save_LIBS |
26762 | fi | |
26763 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
26764 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
26765 | if test $ac_cv_lib_ipc_shmat = yes; then | |
26766 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
26767 | fi | |
26768 | ||
26769 | fi | |
26770 | fi | |
26771 | ||
26772 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
26773 | ac_save_LDFLAGS=$LDFLAGS | |
26774 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
26775 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
26776 | # check for ICE first), but we must link in the order -lSM -lICE or | |
26777 | # we get undefined symbols. So assume we have SM if we have ICE. | |
26778 | # These have to be linked with before -lX11, unlike the other | |
26779 | # libraries we check for below, so use a different variable. | |
26780 | # John Interrante, Karl Berry | |
26781 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
26782 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
26783 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
26784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26785 | else | |
26786 | ac_check_lib_save_LIBS=$LIBS | |
26787 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
26788 | cat >conftest.$ac_ext <<_ACEOF | |
26789 | /* confdefs.h. */ | |
26790 | _ACEOF | |
26791 | cat confdefs.h >>conftest.$ac_ext | |
26792 | cat >>conftest.$ac_ext <<_ACEOF | |
26793 | /* end confdefs.h. */ | |
26794 | ||
26795 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26796 | #ifdef __cplusplus | |
26797 | extern "C" | |
26798 | #endif | |
26799 | /* We use char because int might match the return type of a gcc2 | |
26800 | builtin and then its argument prototype would still apply. */ | |
26801 | char IceConnectionNumber (); | |
26802 | int | |
26803 | main () | |
26804 | { | |
26805 | IceConnectionNumber (); | |
26806 | ; | |
26807 | return 0; | |
26808 | } | |
26809 | _ACEOF | |
26810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26812 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26813 | ac_status=$? |
ac1cb8d3 VS |
26814 | grep -v '^ *+' conftest.er1 >conftest.err |
26815 | rm -f conftest.er1 | |
26816 | cat conftest.err >&5 | |
a848cd7e SC |
26817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26818 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26819 | { ac_try='test -z "$ac_c_werror_flag" |
26820 | || test ! -s conftest.err' | |
26821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26822 | (eval $ac_try) 2>&5 | |
26823 | ac_status=$? | |
26824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26825 | (exit $ac_status); }; } && | |
26826 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26828 | (eval $ac_try) 2>&5 | |
26829 | ac_status=$? | |
26830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26831 | (exit $ac_status); }; }; then | |
26832 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
26833 | else | |
26834 | echo "$as_me: failed program was:" >&5 | |
26835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26836 | ||
26837 | ac_cv_lib_ICE_IceConnectionNumber=no | |
26838 | fi | |
ac1cb8d3 VS |
26839 | rm -f conftest.err conftest.$ac_objext \ |
26840 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26841 | LIBS=$ac_check_lib_save_LIBS |
26842 | fi | |
26843 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
26844 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
26845 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
26846 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
26847 | fi | |
26848 | ||
26849 | LDFLAGS=$ac_save_LDFLAGS | |
26850 | ||
26851 | fi | |
26852 | ||
26853 | ||
26854 | if test "$no_x" = "yes"; then | |
26855 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
26856 | echo "$as_me: error: X11 not found" >&2;} | |
26857 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
26858 | fi | |
26859 | ||
26860 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` | |
26861 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
26862 | AFMINSTALL=afminstall | |
26863 | COMPILED_X_PROGRAM=0 | |
26864 | ||
26865 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 | |
26866 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
26867 | ||
26868 | ac_find_includes= | |
26869 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26870 | do | |
26871 | if test -f "$ac_dir/Xm/Xm.h"; then | |
26872 | ac_find_includes=$ac_dir | |
26873 | break | |
26874 | fi | |
26875 | done | |
26876 | ||
26877 | if test "$ac_find_includes" != "" ; then | |
26878 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26879 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26880 | ||
26881 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26882 | ac_path_to_include="" | |
26883 | else | |
26884 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
26885 | result=$? | |
26886 | if test $result = 0; then | |
26887 | ac_path_to_include="" | |
26888 | else | |
26889 | ac_path_to_include=" -I$ac_find_includes" | |
26890 | fi | |
26891 | fi | |
26892 | ||
26893 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
26894 | else | |
26895 | cat >conftest.$ac_ext <<_ACEOF | |
26896 | /* confdefs.h. */ | |
26897 | _ACEOF | |
26898 | cat confdefs.h >>conftest.$ac_ext | |
26899 | cat >>conftest.$ac_ext <<_ACEOF | |
26900 | /* end confdefs.h. */ | |
26901 | ||
26902 | #include <Xm/Xm.h> | |
26903 | ||
26904 | int | |
26905 | main () | |
26906 | { | |
26907 | ||
26908 | int version; | |
26909 | version = xmUseVersion; | |
26910 | ||
26911 | ; | |
26912 | return 0; | |
26913 | } | |
26914 | _ACEOF | |
26915 | rm -f conftest.$ac_objext | |
26916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26917 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26918 | ac_status=$? |
ac1cb8d3 VS |
26919 | grep -v '^ *+' conftest.er1 >conftest.err |
26920 | rm -f conftest.er1 | |
26921 | cat conftest.err >&5 | |
a848cd7e SC |
26922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26923 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26924 | { ac_try='test -z "$ac_c_werror_flag" |
26925 | || test ! -s conftest.err' | |
26926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26927 | (eval $ac_try) 2>&5 | |
26928 | ac_status=$? | |
26929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26930 | (exit $ac_status); }; } && | |
26931 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26933 | (eval $ac_try) 2>&5 | |
26934 | ac_status=$? | |
26935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26936 | (exit $ac_status); }; }; then | |
26937 | ||
26938 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26939 | echo "${ECHO_T}found in default search path" >&6 | |
26940 | COMPILED_X_PROGRAM=1 | |
26941 | ||
26942 | else | |
26943 | echo "$as_me: failed program was:" >&5 | |
26944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26945 | ||
26946 | ||
26947 | echo "$as_me:$LINENO: result: no" >&5 | |
26948 | echo "${ECHO_T}no" >&6 | |
26949 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26950 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26951 | { (exit 1); exit 1; }; } | |
26952 | ||
26953 | ||
26954 | fi | |
ac1cb8d3 | 26955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26956 | fi |
26957 | ||
26958 | if test "$COMPILED_X_PROGRAM" = 0; then | |
26959 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
26960 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26961 | ||
26962 | ac_find_libraries= | |
26963 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26964 | do | |
26965 | for ac_extension in a so sl dylib; do | |
26966 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26967 | ac_find_libraries=$ac_dir | |
26968 | break 2 | |
26969 | fi | |
26970 | done | |
26971 | done | |
26972 | ||
26973 | if test "$ac_find_libraries" != "" ; then | |
26974 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26975 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26976 | ||
26977 | ||
26978 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26979 | result=$? | |
26980 | if test $result = 0; then | |
26981 | ac_path_to_link="" | |
26982 | else | |
26983 | ac_path_to_link=" -L$ac_find_libraries" | |
26984 | fi | |
26985 | ||
26986 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26987 | else | |
26988 | save_CFLAGS=$CFLAGS | |
26989 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26990 | ||
26991 | cat >conftest.$ac_ext <<_ACEOF | |
26992 | /* confdefs.h. */ | |
26993 | _ACEOF | |
26994 | cat confdefs.h >>conftest.$ac_ext | |
26995 | cat >>conftest.$ac_ext <<_ACEOF | |
26996 | /* end confdefs.h. */ | |
26997 | ||
26998 | #include <Xm/Xm.h> | |
26999 | ||
27000 | int | |
27001 | main () | |
27002 | { | |
27003 | ||
27004 | int version; | |
27005 | version = xmUseVersion; | |
27006 | ||
27007 | ; | |
27008 | return 0; | |
27009 | } | |
27010 | _ACEOF | |
27011 | rm -f conftest.$ac_objext | |
27012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27013 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27014 | ac_status=$? |
ac1cb8d3 VS |
27015 | grep -v '^ *+' conftest.er1 >conftest.err |
27016 | rm -f conftest.er1 | |
27017 | cat conftest.err >&5 | |
a848cd7e SC |
27018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27019 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27020 | { ac_try='test -z "$ac_c_werror_flag" |
27021 | || test ! -s conftest.err' | |
27022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27023 | (eval $ac_try) 2>&5 | |
27024 | ac_status=$? | |
27025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27026 | (exit $ac_status); }; } && | |
27027 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27029 | (eval $ac_try) 2>&5 | |
27030 | ac_status=$? | |
27031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27032 | (exit $ac_status); }; }; then | |
27033 | ||
27034 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27035 | echo "${ECHO_T}found in default search path" >&6 | |
27036 | COMPILED_X_PROGRAM=1 | |
27037 | ||
27038 | else | |
27039 | echo "$as_me: failed program was:" >&5 | |
27040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27041 | ||
27042 | ||
27043 | echo "$as_me:$LINENO: result: no" >&5 | |
27044 | echo "${ECHO_T}no" >&6 | |
27045 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
27046 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
27047 | { (exit 1); exit 1; }; } | |
27048 | ||
27049 | ||
27050 | fi | |
ac1cb8d3 | 27051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27052 | |
27053 | CFLAGS=$save_CFLAGS | |
27054 | fi | |
27055 | fi | |
27056 | ||
27057 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
27058 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
27059 | libp_link="" | |
27060 | libsm_ice_link="" | |
27061 | libs_found=0 | |
27062 | for libp in "" " -lXp"; do | |
27063 | if test "$libs_found" = "0"; then | |
27064 | for libsm_ice in "" " -lSM -lICE"; do | |
27065 | if test "$libs_found" = "0"; then | |
27066 | save_LIBS="$LIBS" | |
27067 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
27068 | save_CFLAGS=$CFLAGS | |
27069 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27070 | ||
27071 | cat >conftest.$ac_ext <<_ACEOF | |
27072 | /* confdefs.h. */ | |
27073 | _ACEOF | |
27074 | cat confdefs.h >>conftest.$ac_ext | |
27075 | cat >>conftest.$ac_ext <<_ACEOF | |
27076 | /* end confdefs.h. */ | |
27077 | ||
27078 | #include <Xm/Xm.h> | |
27079 | #include <Xm/List.h> | |
27080 | ||
27081 | int | |
27082 | main () | |
27083 | { | |
27084 | ||
27085 | XmString string = NULL; | |
27086 | Widget w = NULL; | |
27087 | int position = 0; | |
27088 | XmListAddItem(w, string, position); | |
27089 | ||
27090 | ; | |
27091 | return 0; | |
27092 | } | |
27093 | _ACEOF | |
27094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27096 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27097 | ac_status=$? |
ac1cb8d3 VS |
27098 | grep -v '^ *+' conftest.er1 >conftest.err |
27099 | rm -f conftest.er1 | |
27100 | cat conftest.err >&5 | |
a848cd7e SC |
27101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27102 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27103 | { ac_try='test -z "$ac_c_werror_flag" |
27104 | || test ! -s conftest.err' | |
27105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27106 | (eval $ac_try) 2>&5 | |
27107 | ac_status=$? | |
27108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27109 | (exit $ac_status); }; } && | |
27110 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27112 | (eval $ac_try) 2>&5 | |
27113 | ac_status=$? | |
27114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27115 | (exit $ac_status); }; }; then | |
27116 | ||
27117 | libp_link="$libp" | |
27118 | libsm_ice_link="$libsm_ice" | |
27119 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
27120 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
27121 | libs_found=1 | |
27122 | ||
27123 | else | |
27124 | echo "$as_me: failed program was:" >&5 | |
27125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27126 | ||
27127 | ||
27128 | ||
27129 | fi | |
ac1cb8d3 VS |
27130 | rm -f conftest.err conftest.$ac_objext \ |
27131 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27132 | |
27133 | LIBS="$save_LIBS" | |
27134 | CFLAGS=$save_CFLAGS | |
27135 | fi | |
27136 | done | |
27137 | fi | |
27138 | done | |
27139 | ||
27140 | if test "$libs_found" = "0"; then | |
27141 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
27142 | echo "${ECHO_T}can't find the right libraries" >&6 | |
27143 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
27144 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
27145 | { (exit 1); exit 1; }; } | |
27146 | fi | |
27147 | ||
27148 | save_CFLAGS=$CFLAGS | |
27149 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27150 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
27151 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
27152 | cat >conftest.$ac_ext <<_ACEOF | |
27153 | /* confdefs.h. */ | |
27154 | _ACEOF | |
27155 | cat confdefs.h >>conftest.$ac_ext | |
27156 | cat >>conftest.$ac_ext <<_ACEOF | |
27157 | /* end confdefs.h. */ | |
27158 | ||
27159 | #include <Xm/Xm.h> | |
27160 | ||
27161 | int | |
27162 | main () | |
27163 | { | |
27164 | ||
27165 | #if XmVersion < 2000 | |
27166 | #error "Not Motif 2" | |
27167 | #endif | |
27168 | ||
27169 | ; | |
27170 | return 0; | |
27171 | } | |
27172 | _ACEOF | |
27173 | rm -f conftest.$ac_objext | |
27174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27175 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27176 | ac_status=$? |
ac1cb8d3 VS |
27177 | grep -v '^ *+' conftest.er1 >conftest.err |
27178 | rm -f conftest.er1 | |
27179 | cat conftest.err >&5 | |
a848cd7e SC |
27180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27181 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27182 | { ac_try='test -z "$ac_c_werror_flag" |
27183 | || test ! -s conftest.err' | |
27184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27185 | (eval $ac_try) 2>&5 | |
27186 | ac_status=$? | |
27187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27188 | (exit $ac_status); }; } && | |
27189 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27191 | (eval $ac_try) 2>&5 | |
27192 | ac_status=$? | |
27193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27194 | (exit $ac_status); }; }; then | |
27195 | ||
27196 | cat >>confdefs.h <<\_ACEOF | |
27197 | #define __WXMOTIF20__ 1 | |
27198 | _ACEOF | |
27199 | ||
27200 | echo "$as_me:$LINENO: result: found" >&5 | |
27201 | echo "${ECHO_T}found" >&6 | |
27202 | ||
27203 | else | |
27204 | echo "$as_me: failed program was:" >&5 | |
27205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27206 | ||
27207 | ||
27208 | cat >>confdefs.h <<\_ACEOF | |
27209 | #define __WXMOTIF20__ 0 | |
27210 | _ACEOF | |
27211 | ||
27212 | echo "$as_me:$LINENO: result: not found" >&5 | |
27213 | echo "${ECHO_T}not found" >&6 | |
27214 | ||
27215 | fi | |
ac1cb8d3 | 27216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27217 | CFLAGS=$save_CFLAGS |
27218 | ||
27219 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
27220 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" | |
27221 | TOOLKIT=MOTIF | |
27222 | GUIDIST=MOTIF_DIST | |
27223 | fi | |
27224 | ||
27225 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
27226 | if test "$wxUSE_LIBXPM" = "sys"; then | |
27227 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
27228 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
27229 | ||
27230 | ac_find_libraries= | |
27231 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27232 | do | |
27233 | for ac_extension in a so sl dylib; do | |
27234 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
27235 | ac_find_libraries=$ac_dir | |
27236 | break 2 | |
27237 | fi | |
27238 | done | |
27239 | done | |
27240 | ||
27241 | if test "$ac_find_libraries" != "" ; then | |
27242 | ||
27243 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27244 | result=$? | |
27245 | if test $result = 0; then | |
27246 | ac_path_to_link="" | |
27247 | else | |
27248 | ac_path_to_link=" -L$ac_find_libraries" | |
27249 | fi | |
27250 | ||
27251 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27252 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27253 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
27254 | ||
27255 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
27256 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
27257 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
27258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27259 | else | |
27260 | ||
27261 | save_CFLAGS=$CFLAGS | |
27262 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27263 | ||
27264 | cat >conftest.$ac_ext <<_ACEOF | |
27265 | /* confdefs.h. */ | |
27266 | _ACEOF | |
27267 | cat confdefs.h >>conftest.$ac_ext | |
27268 | cat >>conftest.$ac_ext <<_ACEOF | |
27269 | /* end confdefs.h. */ | |
27270 | ||
27271 | #include <X11/xpm.h> | |
27272 | ||
27273 | int | |
27274 | main () | |
27275 | { | |
27276 | ||
27277 | int version; | |
27278 | version = XpmLibraryVersion(); | |
27279 | ||
27280 | ; | |
27281 | return 0; | |
27282 | } | |
27283 | _ACEOF | |
27284 | rm -f conftest.$ac_objext | |
27285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27286 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27287 | ac_status=$? |
ac1cb8d3 VS |
27288 | grep -v '^ *+' conftest.er1 >conftest.err |
27289 | rm -f conftest.er1 | |
27290 | cat conftest.err >&5 | |
a848cd7e SC |
27291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27292 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27293 | { ac_try='test -z "$ac_c_werror_flag" |
27294 | || test ! -s conftest.err' | |
27295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27296 | (eval $ac_try) 2>&5 | |
27297 | ac_status=$? | |
27298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27299 | (exit $ac_status); }; } && | |
27300 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27302 | (eval $ac_try) 2>&5 | |
27303 | ac_status=$? | |
27304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27305 | (exit $ac_status); }; }; then | |
27306 | wx_cv_x11_xpm_h=yes | |
27307 | else | |
27308 | echo "$as_me: failed program was:" >&5 | |
27309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27310 | ||
27311 | wx_cv_x11_xpm_h=no | |
27312 | ||
27313 | fi | |
ac1cb8d3 | 27314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27315 | |
27316 | CFLAGS=$save_CFLAGS | |
27317 | ||
27318 | ||
27319 | fi | |
27320 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
27321 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
27322 | ||
27323 | if test $wx_cv_x11_xpm_h = "yes"; then | |
27324 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
27325 | cat >>confdefs.h <<\_ACEOF | |
27326 | #define wxHAVE_LIB_XPM 1 | |
27327 | _ACEOF | |
27328 | ||
27329 | else | |
27330 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
27331 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
27332 | fi | |
27333 | fi | |
27334 | ||
27335 | fi | |
27336 | ||
27337 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
27338 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
27339 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
27340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27341 | else | |
27342 | ac_check_lib_save_LIBS=$LIBS | |
27343 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
27344 | cat >conftest.$ac_ext <<_ACEOF | |
27345 | /* confdefs.h. */ | |
27346 | _ACEOF | |
27347 | cat confdefs.h >>conftest.$ac_ext | |
27348 | cat >>conftest.$ac_ext <<_ACEOF | |
27349 | /* end confdefs.h. */ | |
27350 | ||
27351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27352 | #ifdef __cplusplus | |
27353 | extern "C" | |
27354 | #endif | |
27355 | /* We use char because int might match the return type of a gcc2 | |
27356 | builtin and then its argument prototype would still apply. */ | |
27357 | char XShapeQueryExtension (); | |
27358 | int | |
27359 | main () | |
27360 | { | |
27361 | XShapeQueryExtension (); | |
27362 | ; | |
27363 | return 0; | |
27364 | } | |
27365 | _ACEOF | |
27366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27368 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27369 | ac_status=$? |
ac1cb8d3 VS |
27370 | grep -v '^ *+' conftest.er1 >conftest.err |
27371 | rm -f conftest.er1 | |
27372 | cat conftest.err >&5 | |
a848cd7e SC |
27373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27374 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27375 | { ac_try='test -z "$ac_c_werror_flag" |
27376 | || test ! -s conftest.err' | |
27377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27378 | (eval $ac_try) 2>&5 | |
27379 | ac_status=$? | |
27380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27381 | (exit $ac_status); }; } && | |
27382 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27384 | (eval $ac_try) 2>&5 | |
27385 | ac_status=$? | |
27386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27387 | (exit $ac_status); }; }; then | |
27388 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
27389 | else | |
27390 | echo "$as_me: failed program was:" >&5 | |
27391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27392 | ||
27393 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
27394 | fi | |
ac1cb8d3 VS |
27395 | rm -f conftest.err conftest.$ac_objext \ |
27396 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27397 | LIBS=$ac_check_lib_save_LIBS |
27398 | fi | |
27399 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
27400 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
27401 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
27402 | ||
27403 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
27404 | wxHAVE_XEXT_LIB=1 | |
27405 | ||
27406 | fi | |
27407 | ||
27408 | ||
27409 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
27410 | save_CFLAGS="$CFLAGS" | |
27411 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27412 | ||
27413 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
27414 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
27415 | cat >conftest.$ac_ext <<_ACEOF | |
27416 | /* confdefs.h. */ | |
27417 | _ACEOF | |
27418 | cat confdefs.h >>conftest.$ac_ext | |
27419 | cat >>conftest.$ac_ext <<_ACEOF | |
27420 | /* end confdefs.h. */ | |
27421 | ||
27422 | #include <X11/Xlib.h> | |
27423 | #include <X11/extensions/shape.h> | |
27424 | ||
27425 | int | |
27426 | main () | |
27427 | { | |
27428 | ||
27429 | int dummy1, dummy2; | |
27430 | XShapeQueryExtension((Display*)NULL, | |
27431 | (int*)NULL, (int*)NULL); | |
27432 | ||
27433 | ; | |
27434 | return 0; | |
27435 | } | |
27436 | _ACEOF | |
27437 | rm -f conftest.$ac_objext | |
27438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27439 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27440 | ac_status=$? |
ac1cb8d3 VS |
27441 | grep -v '^ *+' conftest.er1 >conftest.err |
27442 | rm -f conftest.er1 | |
27443 | cat conftest.err >&5 | |
a848cd7e SC |
27444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27445 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27446 | { ac_try='test -z "$ac_c_werror_flag" |
27447 | || test ! -s conftest.err' | |
27448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27449 | (eval $ac_try) 2>&5 | |
27450 | ac_status=$? | |
27451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27452 | (exit $ac_status); }; } && | |
27453 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27455 | (eval $ac_try) 2>&5 | |
27456 | ac_status=$? | |
27457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27458 | (exit $ac_status); }; }; then | |
27459 | ||
27460 | cat >>confdefs.h <<\_ACEOF | |
27461 | #define HAVE_XSHAPE 1 | |
27462 | _ACEOF | |
27463 | ||
27464 | echo "$as_me:$LINENO: result: found" >&5 | |
27465 | echo "${ECHO_T}found" >&6 | |
27466 | ||
27467 | else | |
27468 | echo "$as_me: failed program was:" >&5 | |
27469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27470 | ||
27471 | ||
27472 | echo "$as_me:$LINENO: result: not found" >&5 | |
27473 | echo "${ECHO_T}not found" >&6 | |
27474 | ||
27475 | fi | |
ac1cb8d3 | 27476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27477 | CFLAGS="$save_CFLAGS" |
27478 | ||
27479 | fi | |
27480 | fi | |
27481 | ||
27482 | if test "$wxUSE_MAC" = 1; then | |
27483 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
27484 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
27485 | if test "$GCC" = yes; then | |
27486 | echo "$as_me:$LINENO: result: gcc" >&5 | |
27487 | echo "${ECHO_T}gcc" >&6 | |
27488 | CPPFLAGS_PASCAL="-fpascal-strings" | |
27489 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
27490 | echo "$as_me:$LINENO: result: xlc" >&5 | |
27491 | echo "${ECHO_T}xlc" >&6 | |
27492 | CPPFLAGS_PASCAL="-qmacpstr" | |
27493 | else | |
27494 | echo "$as_me:$LINENO: result: none" >&5 | |
27495 | echo "${ECHO_T}none" >&6 | |
27496 | fi | |
27497 | ||
27498 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
27499 | ||
27500 | TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex" | |
27501 | TOOLKIT=MAC | |
27502 | GUIDIST=MACX_DIST | |
27503 | WXBASEPORT="_carbon" | |
27504 | fi | |
27505 | ||
27506 | if test "$wxUSE_COCOA" = 1; then | |
27507 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
27508 | TOOLKIT=COCOA | |
27509 | GUIDIST=COCOA_DIST | |
27510 | fi | |
27511 | ||
27512 | if test "$wxUSE_PM" = 1; then | |
27513 | TOOLKIT=PM | |
de59c161 RD |
27514 | GUIDIST=PM_DIST |
27515 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
27516 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
27517 | if test "${wx_cv_spbcdata+set}" = set; then | |
27518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27519 | else | |
27520 | ||
27521 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
27522 | /* confdefs.h. */ |
27523 | _ACEOF | |
27524 | cat confdefs.h >>conftest.$ac_ext | |
27525 | cat >>conftest.$ac_ext <<_ACEOF | |
27526 | /* end confdefs.h. */ | |
27527 | ||
27528 | #define INCL_PM | |
27529 | #include <os2.h> | |
27530 | ||
27531 | int | |
27532 | main () | |
27533 | { | |
27534 | ||
27535 | SPBCDATA test; | |
27536 | ||
27537 | ; | |
27538 | return 0; | |
27539 | } | |
27540 | _ACEOF | |
27541 | rm -f conftest.$ac_objext | |
27542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27543 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 27544 | ac_status=$? |
ac1cb8d3 VS |
27545 | grep -v '^ *+' conftest.er1 >conftest.err |
27546 | rm -f conftest.er1 | |
27547 | cat conftest.err >&5 | |
de59c161 RD |
27548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27549 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27550 | { ac_try='test -z "$ac_c_werror_flag" |
27551 | || test ! -s conftest.err' | |
27552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27553 | (eval $ac_try) 2>&5 | |
27554 | ac_status=$? | |
27555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27556 | (exit $ac_status); }; } && | |
27557 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
27558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27559 | (eval $ac_try) 2>&5 | |
27560 | ac_status=$? | |
27561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27562 | (exit $ac_status); }; }; then | |
27563 | wx_cv_spbcdata=yes | |
27564 | else | |
27565 | echo "$as_me: failed program was:" >&5 | |
27566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27567 | ||
27568 | wx_cv_spbcdata=no | |
27569 | ||
27570 | fi | |
ac1cb8d3 | 27571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
27572 | |
27573 | ||
27574 | fi | |
27575 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
27576 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
27577 | ||
27578 | if test $wx_cv_spbcdata = "yes"; then | |
27579 | cat >>confdefs.h <<\_ACEOF | |
27580 | #define HAVE_SPBCDATA 1 | |
27581 | _ACEOF | |
27582 | ||
27583 | fi | |
a848cd7e SC |
27584 | fi |
27585 | ||
27586 | if test "$TOOLKIT" = "PM" ; then | |
27587 | TOOLKIT_DIR="os2" | |
27588 | else | |
27589 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
27590 | fi | |
27591 | ||
27592 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
27593 | ||
27594 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
27595 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
27596 | ||
27597 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
27598 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
27599 | ||
27600 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
27601 | if test "$wxUSE_X11" = 1; then | |
27602 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
27603 | else | |
27604 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
27605 | fi | |
27606 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
27607 | WIDGET_SET=univ | |
27608 | else | |
27609 | ALL_OBJECTS="\$(GUIOBJS)" | |
27610 | ALL_SOURCES="\$(ALL_SOURCES)" | |
27611 | ALL_HEADERS="\$(ALL_HEADERS)" | |
27612 | fi | |
27613 | ||
27614 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
27615 | ||
27616 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
27617 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
27618 | fi | |
27619 | ||
27620 | if test "$wxUSE_HTML" = "yes"; then | |
27621 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
27622 | fi | |
27623 | ||
27624 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
27625 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
27626 | fi | |
27627 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
27628 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
27629 | fi | |
27630 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
27631 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
27632 | fi | |
27633 | ||
27634 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
27635 | DISTDIR="wx\$(TOOLKIT)" | |
27636 | else | |
27637 | USE_GUI=0 | |
27638 | ||
27639 | TOOLKIT_DIR="base" | |
27640 | ||
27641 | if test "$USE_WIN32" = 1 ; then | |
27642 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
27643 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
27644 | ||
27645 | TOOLKIT="MSW" | |
27646 | else | |
27647 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
27648 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
27649 | fi | |
27650 | ||
27651 | ALL_SOURCES="\$(ALL_SOURCES)" | |
27652 | ALL_HEADERS="\$(ALL_HEADERS)" | |
27653 | ||
27654 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
27655 | ||
27656 | GUIDIST="BASE_DIST" | |
27657 | DISTDIR="wxBase" | |
27658 | fi | |
27659 | ||
27660 | ||
27661 | ||
27662 | ||
27663 | IODBC_C_SRC="" | |
27664 | ||
27665 | ||
27666 | if test "$TOOLKIT" != "MSW" ; then | |
27667 | ||
27668 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
27669 | ||
27670 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27671 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27672 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27673 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27675 | fi | |
27676 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27677 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27678 | else | |
27679 | # Is the header compilable? | |
27680 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
27681 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
27682 | cat >conftest.$ac_ext <<_ACEOF | |
27683 | /* confdefs.h. */ | |
27684 | _ACEOF | |
27685 | cat confdefs.h >>conftest.$ac_ext | |
27686 | cat >>conftest.$ac_ext <<_ACEOF | |
27687 | /* end confdefs.h. */ | |
27688 | $ac_includes_default | |
27689 | #include <sql.h> | |
27690 | _ACEOF | |
27691 | rm -f conftest.$ac_objext | |
27692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27693 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27694 | ac_status=$? |
ac1cb8d3 VS |
27695 | grep -v '^ *+' conftest.er1 >conftest.err |
27696 | rm -f conftest.er1 | |
27697 | cat conftest.err >&5 | |
a848cd7e SC |
27698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27699 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27700 | { ac_try='test -z "$ac_c_werror_flag" |
27701 | || test ! -s conftest.err' | |
27702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27703 | (eval $ac_try) 2>&5 | |
27704 | ac_status=$? | |
27705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27706 | (exit $ac_status); }; } && | |
27707 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27709 | (eval $ac_try) 2>&5 | |
27710 | ac_status=$? | |
27711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27712 | (exit $ac_status); }; }; then | |
27713 | ac_header_compiler=yes | |
27714 | else | |
27715 | echo "$as_me: failed program was:" >&5 | |
27716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27717 | ||
27718 | ac_header_compiler=no | |
27719 | fi | |
ac1cb8d3 | 27720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27721 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27722 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27723 | ||
27724 | # Is the header present? | |
27725 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
27726 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
27727 | cat >conftest.$ac_ext <<_ACEOF | |
27728 | /* confdefs.h. */ | |
27729 | _ACEOF | |
27730 | cat confdefs.h >>conftest.$ac_ext | |
27731 | cat >>conftest.$ac_ext <<_ACEOF | |
27732 | /* end confdefs.h. */ | |
27733 | #include <sql.h> | |
27734 | _ACEOF | |
27735 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27736 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27737 | ac_status=$? | |
27738 | grep -v '^ *+' conftest.er1 >conftest.err | |
27739 | rm -f conftest.er1 | |
27740 | cat conftest.err >&5 | |
27741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27742 | (exit $ac_status); } >/dev/null; then | |
27743 | if test -s conftest.err; then | |
27744 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27745 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27746 | else |
27747 | ac_cpp_err= | |
27748 | fi | |
27749 | else | |
27750 | ac_cpp_err=yes | |
27751 | fi | |
27752 | if test -z "$ac_cpp_err"; then | |
27753 | ac_header_preproc=yes | |
27754 | else | |
27755 | echo "$as_me: failed program was:" >&5 | |
27756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27757 | ||
27758 | ac_header_preproc=no | |
27759 | fi | |
27760 | rm -f conftest.err conftest.$ac_ext | |
27761 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27762 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27763 | ||
27764 | # So? What about this header? | |
ac1cb8d3 VS |
27765 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27766 | yes:no: ) | |
a848cd7e SC |
27767 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27768 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27769 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
27770 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
27771 | ac_header_preproc=yes | |
a848cd7e | 27772 | ;; |
ac1cb8d3 | 27773 | no:yes:* ) |
a848cd7e SC |
27774 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
27775 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27776 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
27777 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
27778 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
27779 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
27780 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27781 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27782 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
27783 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27784 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
27785 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27786 | ( |
27787 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27788 | ## ----------------------------------------- ## |
27789 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27790 | ## ----------------------------------------- ## | |
a848cd7e SC |
27791 | _ASBOX |
27792 | ) | | |
27793 | sed "s/^/$as_me: WARNING: /" >&2 | |
27794 | ;; | |
27795 | esac | |
27796 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27797 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27798 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27800 | else | |
27801 | ac_cv_header_sql_h=$ac_header_preproc | |
27802 | fi | |
27803 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27804 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27805 | ||
27806 | fi | |
27807 | if test $ac_cv_header_sql_h = yes; then | |
27808 | found_sql_h=1 | |
27809 | fi | |
27810 | ||
27811 | ||
27812 | if test "x$found_sql_h" = "x1" ; then | |
27813 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
27814 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
27815 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
27816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27817 | else | |
27818 | ac_check_lib_save_LIBS=$LIBS | |
27819 | LIBS="-liodbc $LIBS" | |
27820 | cat >conftest.$ac_ext <<_ACEOF | |
27821 | /* confdefs.h. */ | |
27822 | _ACEOF | |
27823 | cat confdefs.h >>conftest.$ac_ext | |
27824 | cat >>conftest.$ac_ext <<_ACEOF | |
27825 | /* end confdefs.h. */ | |
27826 | ||
27827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27828 | #ifdef __cplusplus | |
27829 | extern "C" | |
27830 | #endif | |
27831 | /* We use char because int might match the return type of a gcc2 | |
27832 | builtin and then its argument prototype would still apply. */ | |
27833 | char SQLAllocEnv (); | |
27834 | int | |
27835 | main () | |
27836 | { | |
27837 | SQLAllocEnv (); | |
27838 | ; | |
27839 | return 0; | |
27840 | } | |
27841 | _ACEOF | |
27842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27844 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27845 | ac_status=$? |
ac1cb8d3 VS |
27846 | grep -v '^ *+' conftest.er1 >conftest.err |
27847 | rm -f conftest.er1 | |
27848 | cat conftest.err >&5 | |
a848cd7e SC |
27849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27850 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27851 | { ac_try='test -z "$ac_c_werror_flag" |
27852 | || test ! -s conftest.err' | |
27853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27854 | (eval $ac_try) 2>&5 | |
27855 | ac_status=$? | |
27856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27857 | (exit $ac_status); }; } && | |
27858 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27860 | (eval $ac_try) 2>&5 | |
27861 | ac_status=$? | |
27862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27863 | (exit $ac_status); }; }; then | |
27864 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
27865 | else | |
27866 | echo "$as_me: failed program was:" >&5 | |
27867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27868 | ||
27869 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
27870 | fi | |
ac1cb8d3 VS |
27871 | rm -f conftest.err conftest.$ac_objext \ |
27872 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27873 | LIBS=$ac_check_lib_save_LIBS |
27874 | fi | |
27875 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
27876 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
27877 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
27878 | ODBC_LINK=" -liodbc" | |
27879 | else | |
27880 | ||
27881 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
27882 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
27883 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
27884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27885 | else | |
27886 | ac_check_lib_save_LIBS=$LIBS | |
27887 | LIBS="-lunixodbc $LIBS" | |
27888 | cat >conftest.$ac_ext <<_ACEOF | |
27889 | /* confdefs.h. */ | |
27890 | _ACEOF | |
27891 | cat confdefs.h >>conftest.$ac_ext | |
27892 | cat >>conftest.$ac_ext <<_ACEOF | |
27893 | /* end confdefs.h. */ | |
27894 | ||
27895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27896 | #ifdef __cplusplus | |
27897 | extern "C" | |
27898 | #endif | |
27899 | /* We use char because int might match the return type of a gcc2 | |
27900 | builtin and then its argument prototype would still apply. */ | |
27901 | char SQLAllocEnv (); | |
27902 | int | |
27903 | main () | |
27904 | { | |
27905 | SQLAllocEnv (); | |
27906 | ; | |
27907 | return 0; | |
27908 | } | |
27909 | _ACEOF | |
27910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27912 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27913 | ac_status=$? |
ac1cb8d3 VS |
27914 | grep -v '^ *+' conftest.er1 >conftest.err |
27915 | rm -f conftest.er1 | |
27916 | cat conftest.err >&5 | |
a848cd7e SC |
27917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27918 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27919 | { ac_try='test -z "$ac_c_werror_flag" |
27920 | || test ! -s conftest.err' | |
27921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27922 | (eval $ac_try) 2>&5 | |
27923 | ac_status=$? | |
27924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27925 | (exit $ac_status); }; } && | |
27926 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27928 | (eval $ac_try) 2>&5 | |
27929 | ac_status=$? | |
27930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27931 | (exit $ac_status); }; }; then | |
27932 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
27933 | else | |
27934 | echo "$as_me: failed program was:" >&5 | |
27935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27936 | ||
27937 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
27938 | fi | |
ac1cb8d3 VS |
27939 | rm -f conftest.err conftest.$ac_objext \ |
27940 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27941 | LIBS=$ac_check_lib_save_LIBS |
27942 | fi | |
27943 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
27944 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
27945 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
27946 | ODBC_LINK=" -lunixodbc" | |
27947 | else | |
27948 | ||
27949 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
27950 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
27951 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
27952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27953 | else | |
27954 | ac_check_lib_save_LIBS=$LIBS | |
27955 | LIBS="-lodbc $LIBS" | |
27956 | cat >conftest.$ac_ext <<_ACEOF | |
27957 | /* confdefs.h. */ | |
27958 | _ACEOF | |
27959 | cat confdefs.h >>conftest.$ac_ext | |
27960 | cat >>conftest.$ac_ext <<_ACEOF | |
27961 | /* end confdefs.h. */ | |
27962 | ||
27963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27964 | #ifdef __cplusplus | |
27965 | extern "C" | |
27966 | #endif | |
27967 | /* We use char because int might match the return type of a gcc2 | |
27968 | builtin and then its argument prototype would still apply. */ | |
27969 | char SQLAllocEnv (); | |
27970 | int | |
27971 | main () | |
27972 | { | |
27973 | SQLAllocEnv (); | |
27974 | ; | |
27975 | return 0; | |
27976 | } | |
27977 | _ACEOF | |
27978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27980 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27981 | ac_status=$? |
ac1cb8d3 VS |
27982 | grep -v '^ *+' conftest.er1 >conftest.err |
27983 | rm -f conftest.er1 | |
27984 | cat conftest.err >&5 | |
a848cd7e SC |
27985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27986 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27987 | { ac_try='test -z "$ac_c_werror_flag" |
27988 | || test ! -s conftest.err' | |
27989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27990 | (eval $ac_try) 2>&5 | |
27991 | ac_status=$? | |
27992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27993 | (exit $ac_status); }; } && | |
27994 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27996 | (eval $ac_try) 2>&5 | |
27997 | ac_status=$? | |
27998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27999 | (exit $ac_status); }; }; then | |
28000 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
28001 | else | |
28002 | echo "$as_me: failed program was:" >&5 | |
28003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28004 | ||
28005 | ac_cv_lib_odbc_SQLAllocEnv=no | |
28006 | fi | |
ac1cb8d3 VS |
28007 | rm -f conftest.err conftest.$ac_objext \ |
28008 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28009 | LIBS=$ac_check_lib_save_LIBS |
28010 | fi | |
28011 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
28012 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
28013 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
28014 | ODBC_LINK=" -lodbc" | |
28015 | fi | |
28016 | ||
28017 | ||
28018 | fi | |
28019 | ||
28020 | ||
28021 | fi | |
28022 | ||
28023 | fi | |
28024 | if test "x$ODBC_LINK" = "x" ; then | |
28025 | if test "$wxUSE_ODBC" = "sys" ; then | |
28026 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
28027 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
28028 | { (exit 1); exit 1; }; } | |
28029 | else | |
28030 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
28031 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
28032 | wxUSE_ODBC=builtin | |
28033 | fi | |
28034 | else | |
28035 | wxUSE_ODBC=sys | |
28036 | fi | |
28037 | fi | |
28038 | if test "$wxUSE_ODBC" != "no" ; then | |
28039 | cat >>confdefs.h <<\_ACEOF | |
28040 | #define wxUSE_ODBC 1 | |
28041 | _ACEOF | |
28042 | ||
28043 | if test "$wxUSE_ODBC" = "builtin" ; then | |
28044 | cat >>confdefs.h <<\_ACEOF | |
28045 | #define wxUSE_BUILTIN_IODBC 1 | |
28046 | _ACEOF | |
28047 | ||
28048 | fi | |
28049 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
28050 | ||
28051 | WXODBCFLAG="-D_IODBC_" | |
28052 | fi | |
28053 | fi | |
28054 | ||
28055 | if test "$wxUSE_REGEX" = "builtin" ; then | |
28056 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
28057 | fi | |
28058 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
28059 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
28060 | fi | |
28061 | ||
01cb68df | 28062 | |
a848cd7e | 28063 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 28064 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
28065 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
28066 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
28067 | ||
28068 | ac_find_libraries= | |
28069 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28070 | do | |
28071 | for ac_extension in a so sl dylib; do | |
28072 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
28073 | ac_find_libraries=$ac_dir | |
28074 | break 2 | |
28075 | fi | |
28076 | done | |
28077 | done | |
28078 | ||
28079 | if test "$ac_find_libraries" != "" ; then | |
28080 | ||
28081 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28082 | result=$? | |
28083 | if test $result = 0; then | |
28084 | ac_path_to_link="" | |
28085 | else | |
28086 | ac_path_to_link=" -L$ac_find_libraries" | |
28087 | fi | |
28088 | ||
28089 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28090 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
28091 | fi | |
28092 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
28093 | echo "$as_me:$LINENO: result: yes" >&5 | |
28094 | echo "${ECHO_T}yes" >&6 | |
28095 | ||
28096 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
28097 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
28098 | ||
28099 | ac_find_libraries= | |
28100 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28101 | do | |
28102 | for ac_extension in a so sl dylib; do | |
28103 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
28104 | ac_find_libraries=$ac_dir | |
28105 | break 2 | |
28106 | fi | |
28107 | done | |
28108 | done | |
28109 | ||
28110 | if test "$ac_find_libraries" != "" ; then | |
28111 | echo "$as_me:$LINENO: result: yes" >&5 | |
28112 | echo "${ECHO_T}yes" >&6 | |
28113 | ||
28114 | for ac_header in X11/extensions/xf86vmode.h | |
28115 | do | |
28116 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28117 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28118 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28119 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28121 | else | |
28122 | cat >conftest.$ac_ext <<_ACEOF | |
28123 | /* confdefs.h. */ | |
28124 | _ACEOF | |
28125 | cat confdefs.h >>conftest.$ac_ext | |
28126 | cat >>conftest.$ac_ext <<_ACEOF | |
28127 | /* end confdefs.h. */ | |
28128 | ||
28129 | #if HAVE_X11_XLIB_H | |
28130 | #include <X11/Xlib.h> | |
28131 | #endif | |
28132 | ||
28133 | ||
28134 | #include <$ac_header> | |
28135 | _ACEOF | |
28136 | rm -f conftest.$ac_objext | |
28137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28138 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28139 | ac_status=$? |
ac1cb8d3 VS |
28140 | grep -v '^ *+' conftest.er1 >conftest.err |
28141 | rm -f conftest.er1 | |
28142 | cat conftest.err >&5 | |
a848cd7e SC |
28143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28144 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28145 | { ac_try='test -z "$ac_c_werror_flag" |
28146 | || test ! -s conftest.err' | |
28147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28148 | (eval $ac_try) 2>&5 | |
28149 | ac_status=$? | |
28150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28151 | (exit $ac_status); }; } && | |
28152 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28154 | (eval $ac_try) 2>&5 | |
28155 | ac_status=$? | |
28156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28157 | (exit $ac_status); }; }; then | |
28158 | eval "$as_ac_Header=yes" | |
28159 | else | |
28160 | echo "$as_me: failed program was:" >&5 | |
28161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28162 | ||
28163 | eval "$as_ac_Header=no" | |
28164 | fi | |
ac1cb8d3 | 28165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28166 | fi |
28167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28168 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28169 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28170 | cat >>confdefs.h <<_ACEOF | |
28171 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28172 | _ACEOF | |
28173 | ||
28174 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
28175 | ||
28176 | fi | |
28177 | ||
28178 | done | |
28179 | ||
28180 | else | |
28181 | echo "$as_me:$LINENO: result: no" >&5 | |
28182 | echo "${ECHO_T}no" >&6 | |
28183 | fi | |
28184 | ||
28185 | else | |
28186 | echo "$as_me:$LINENO: result: no" >&5 | |
28187 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
28188 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
28189 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
28190 | wxUSE_DISPLAY="no" |
28191 | fi | |
01cb68df RG |
28192 | elif test "$wxUSE_MSW" = 1; then |
28193 | ||
28194 | ||
28195 | for ac_header in multimon.h ddraw.h | |
28196 | do | |
28197 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28198 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28199 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28200 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28201 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28203 | fi | |
28204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28205 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28206 | else | |
28207 | # Is the header compilable? | |
28208 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
28209 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
28210 | cat >conftest.$ac_ext <<_ACEOF | |
28211 | /* confdefs.h. */ | |
28212 | _ACEOF | |
28213 | cat confdefs.h >>conftest.$ac_ext | |
28214 | cat >>conftest.$ac_ext <<_ACEOF | |
28215 | /* end confdefs.h. */ | |
28216 | $ac_includes_default | |
28217 | #include <$ac_header> | |
28218 | _ACEOF | |
28219 | rm -f conftest.$ac_objext | |
28220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28221 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 28222 | ac_status=$? |
ac1cb8d3 VS |
28223 | grep -v '^ *+' conftest.er1 >conftest.err |
28224 | rm -f conftest.er1 | |
28225 | cat conftest.err >&5 | |
01cb68df RG |
28226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28227 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28228 | { ac_try='test -z "$ac_c_werror_flag" |
28229 | || test ! -s conftest.err' | |
28230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28231 | (eval $ac_try) 2>&5 | |
28232 | ac_status=$? | |
28233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28234 | (exit $ac_status); }; } && | |
28235 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
28236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28237 | (eval $ac_try) 2>&5 | |
28238 | ac_status=$? | |
28239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28240 | (exit $ac_status); }; }; then | |
28241 | ac_header_compiler=yes | |
28242 | else | |
28243 | echo "$as_me: failed program was:" >&5 | |
28244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28245 | ||
28246 | ac_header_compiler=no | |
28247 | fi | |
ac1cb8d3 | 28248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
28249 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28250 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28251 | ||
28252 | # Is the header present? | |
28253 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
28254 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
28255 | cat >conftest.$ac_ext <<_ACEOF | |
28256 | /* confdefs.h. */ | |
28257 | _ACEOF | |
28258 | cat confdefs.h >>conftest.$ac_ext | |
28259 | cat >>conftest.$ac_ext <<_ACEOF | |
28260 | /* end confdefs.h. */ | |
28261 | #include <$ac_header> | |
28262 | _ACEOF | |
28263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28264 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28265 | ac_status=$? | |
28266 | grep -v '^ *+' conftest.er1 >conftest.err | |
28267 | rm -f conftest.er1 | |
28268 | cat conftest.err >&5 | |
28269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28270 | (exit $ac_status); } >/dev/null; then | |
28271 | if test -s conftest.err; then | |
28272 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28273 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
28274 | else |
28275 | ac_cpp_err= | |
28276 | fi | |
28277 | else | |
28278 | ac_cpp_err=yes | |
28279 | fi | |
28280 | if test -z "$ac_cpp_err"; then | |
28281 | ac_header_preproc=yes | |
28282 | else | |
28283 | echo "$as_me: failed program was:" >&5 | |
28284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28285 | ||
28286 | ac_header_preproc=no | |
28287 | fi | |
28288 | rm -f conftest.err conftest.$ac_ext | |
28289 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28290 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28291 | ||
28292 | # So? What about this header? | |
ac1cb8d3 VS |
28293 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28294 | yes:no: ) | |
01cb68df RG |
28295 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
28296 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28297 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
28298 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
28299 | ac_header_preproc=yes | |
01cb68df | 28300 | ;; |
ac1cb8d3 | 28301 | no:yes:* ) |
01cb68df RG |
28302 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
28303 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28304 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
28305 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28306 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
28307 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
28308 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
28309 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
28310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
28311 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28312 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
28313 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
28314 | ( |
28315 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28316 | ## ----------------------------------------- ## |
28317 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28318 | ## ----------------------------------------- ## | |
01cb68df RG |
28319 | _ASBOX |
28320 | ) | | |
28321 | sed "s/^/$as_me: WARNING: /" >&2 | |
28322 | ;; | |
28323 | esac | |
28324 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28328 | else | |
ac1cb8d3 | 28329 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
28330 | fi |
28331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28332 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28333 | ||
28334 | fi | |
28335 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28336 | cat >>confdefs.h <<_ACEOF | |
28337 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28338 | _ACEOF | |
28339 | ||
28340 | else | |
28341 | ||
28342 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
28343 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
28344 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
28345 | |
28346 | fi | |
28347 | ||
28348 | done | |
28349 | ||
a848cd7e SC |
28350 | fi |
28351 | fi | |
28352 | ||
28353 | ||
28354 | USE_OPENGL=0 | |
28355 | if test "$wxUSE_OPENGL" = "yes"; then | |
28356 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
28357 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
28358 | elif test "$wxUSE_MSW" = 1; then | |
28359 | OPENGL_LIBS="-lopengl32 -lglu32" | |
28360 | else | |
28361 | ||
28362 | ||
28363 | ac_find_includes= | |
28364 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28365 | do | |
28366 | if test -f "$ac_dir/GL/gl.h"; then | |
28367 | ac_find_includes=$ac_dir | |
28368 | break | |
28369 | fi | |
28370 | done | |
28371 | ||
28372 | if test "$ac_find_includes" != "" ; then | |
28373 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28374 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28375 | ||
28376 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28377 | ac_path_to_include="" | |
28378 | else | |
28379 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
28380 | result=$? | |
28381 | if test $result = 0; then | |
28382 | ac_path_to_include="" | |
28383 | else | |
28384 | ac_path_to_include=" -I$ac_find_includes" | |
28385 | fi | |
28386 | fi | |
28387 | ||
28388 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
28389 | fi | |
28390 | ||
28391 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28392 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28393 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28394 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28396 | fi | |
28397 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28398 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28399 | else | |
28400 | # Is the header compilable? | |
28401 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
28402 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
28403 | cat >conftest.$ac_ext <<_ACEOF | |
28404 | /* confdefs.h. */ | |
28405 | _ACEOF | |
28406 | cat confdefs.h >>conftest.$ac_ext | |
28407 | cat >>conftest.$ac_ext <<_ACEOF | |
28408 | /* end confdefs.h. */ | |
28409 | $ac_includes_default | |
28410 | #include <GL/gl.h> | |
28411 | _ACEOF | |
28412 | rm -f conftest.$ac_objext | |
28413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28414 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28415 | ac_status=$? |
ac1cb8d3 VS |
28416 | grep -v '^ *+' conftest.er1 >conftest.err |
28417 | rm -f conftest.er1 | |
28418 | cat conftest.err >&5 | |
a848cd7e SC |
28419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28420 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28421 | { ac_try='test -z "$ac_c_werror_flag" |
28422 | || test ! -s conftest.err' | |
28423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28424 | (eval $ac_try) 2>&5 | |
28425 | ac_status=$? | |
28426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28427 | (exit $ac_status); }; } && | |
28428 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28430 | (eval $ac_try) 2>&5 | |
28431 | ac_status=$? | |
28432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28433 | (exit $ac_status); }; }; then | |
28434 | ac_header_compiler=yes | |
28435 | else | |
28436 | echo "$as_me: failed program was:" >&5 | |
28437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28438 | ||
28439 | ac_header_compiler=no | |
28440 | fi | |
ac1cb8d3 | 28441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28442 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28443 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28444 | ||
28445 | # Is the header present? | |
28446 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
28447 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
28448 | cat >conftest.$ac_ext <<_ACEOF | |
28449 | /* confdefs.h. */ | |
28450 | _ACEOF | |
28451 | cat confdefs.h >>conftest.$ac_ext | |
28452 | cat >>conftest.$ac_ext <<_ACEOF | |
28453 | /* end confdefs.h. */ | |
28454 | #include <GL/gl.h> | |
28455 | _ACEOF | |
28456 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28457 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28458 | ac_status=$? | |
28459 | grep -v '^ *+' conftest.er1 >conftest.err | |
28460 | rm -f conftest.er1 | |
28461 | cat conftest.err >&5 | |
28462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28463 | (exit $ac_status); } >/dev/null; then | |
28464 | if test -s conftest.err; then | |
28465 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28466 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
28467 | else |
28468 | ac_cpp_err= | |
28469 | fi | |
28470 | else | |
28471 | ac_cpp_err=yes | |
28472 | fi | |
28473 | if test -z "$ac_cpp_err"; then | |
28474 | ac_header_preproc=yes | |
28475 | else | |
28476 | echo "$as_me: failed program was:" >&5 | |
28477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28478 | ||
28479 | ac_header_preproc=no | |
28480 | fi | |
28481 | rm -f conftest.err conftest.$ac_ext | |
28482 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28483 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28484 | ||
28485 | # So? What about this header? | |
ac1cb8d3 VS |
28486 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28487 | yes:no: ) | |
a848cd7e SC |
28488 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
28489 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28490 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
28491 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
28492 | ac_header_preproc=yes | |
a848cd7e | 28493 | ;; |
ac1cb8d3 | 28494 | no:yes:* ) |
a848cd7e SC |
28495 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
28496 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28497 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
28498 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
28499 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
28500 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
28501 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
28502 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
28503 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
28504 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28505 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
28506 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
28507 | ( |
28508 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28509 | ## ----------------------------------------- ## |
28510 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28511 | ## ----------------------------------------- ## | |
a848cd7e SC |
28512 | _ASBOX |
28513 | ) | | |
28514 | sed "s/^/$as_me: WARNING: /" >&2 | |
28515 | ;; | |
28516 | esac | |
28517 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28518 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28519 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28521 | else | |
28522 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
28523 | fi | |
28524 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28525 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28526 | ||
28527 | fi | |
28528 | if test $ac_cv_header_GL_gl_h = yes; then | |
28529 | ||
28530 | found_gl=0 | |
28531 | ||
28532 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
28533 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
28534 | ||
28535 | ac_find_libraries= | |
28536 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28537 | do | |
28538 | for ac_extension in a so sl dylib; do | |
28539 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
28540 | ac_find_libraries=$ac_dir | |
28541 | break 2 | |
28542 | fi | |
28543 | done | |
28544 | done | |
28545 | ||
28546 | if test "$ac_find_libraries" != "" ; then | |
28547 | ||
28548 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28549 | result=$? | |
28550 | if test $result = 0; then | |
28551 | ac_path_to_link="" | |
28552 | else | |
28553 | ac_path_to_link=" -L$ac_find_libraries" | |
28554 | fi | |
28555 | ||
28556 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28557 | LDFLAGS_GL="$ac_path_to_link" | |
28558 | fi | |
28559 | ||
28560 | ||
28561 | ac_find_libraries= | |
28562 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28563 | do | |
28564 | for ac_extension in a so sl dylib; do | |
28565 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
28566 | ac_find_libraries=$ac_dir | |
28567 | break 2 | |
28568 | fi | |
28569 | done | |
28570 | done | |
28571 | ||
28572 | if test "$ac_find_libraries" != "" ; then | |
28573 | ||
28574 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28575 | result=$? | |
28576 | if test $result = 0; then | |
28577 | ac_path_to_link="" | |
28578 | else | |
28579 | ac_path_to_link=" -L$ac_find_libraries" | |
28580 | fi | |
28581 | ||
28582 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
28583 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
28584 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
28585 | fi | |
28586 | ||
28587 | found_gl=1 | |
28588 | OPENGL_LIBS="-lGL -lGLU" | |
28589 | echo "$as_me:$LINENO: result: yes" >&5 | |
28590 | echo "${ECHO_T}yes" >&6 | |
28591 | fi | |
28592 | fi | |
28593 | ||
28594 | if test "$found_gl" != 1; then | |
28595 | echo "$as_me:$LINENO: result: no" >&5 | |
28596 | echo "${ECHO_T}no" >&6 | |
28597 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
28598 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
28599 | ||
28600 | ac_find_libraries= | |
28601 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28602 | do | |
28603 | for ac_extension in a so sl dylib; do | |
28604 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
28605 | ac_find_libraries=$ac_dir | |
28606 | break 2 | |
28607 | fi | |
28608 | done | |
28609 | done | |
28610 | ||
28611 | if test "$ac_find_libraries" != "" ; then | |
28612 | ||
28613 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28614 | result=$? | |
28615 | if test $result = 0; then | |
28616 | ac_path_to_link="" | |
28617 | else | |
28618 | ac_path_to_link=" -L$ac_find_libraries" | |
28619 | fi | |
28620 | ||
28621 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
28622 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
28623 | echo "$as_me:$LINENO: result: yes" >&5 | |
28624 | echo "${ECHO_T}yes" >&6 | |
28625 | else | |
28626 | echo "$as_me:$LINENO: result: no" >&5 | |
28627 | echo "${ECHO_T}no" >&6 | |
28628 | fi | |
28629 | fi | |
28630 | ||
28631 | fi | |
28632 | ||
28633 | ||
28634 | ||
28635 | if test "x$OPENGL_LIBS" = "x"; then | |
28636 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
28637 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
28638 | { (exit 1); exit 1; }; } | |
28639 | fi | |
28640 | fi | |
28641 | ||
28642 | if test "$wxUSE_OPENGL" = "yes"; then | |
28643 | USE_OPENGL=1 | |
28644 | cat >>confdefs.h <<\_ACEOF | |
28645 | #define wxUSE_OPENGL 1 | |
28646 | _ACEOF | |
28647 | ||
28648 | cat >>confdefs.h <<\_ACEOF | |
28649 | #define wxUSE_GLCANVAS 1 | |
28650 | _ACEOF | |
28651 | ||
28652 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
28653 | fi | |
28654 | fi | |
28655 | ||
28656 | if test -z "$TOOLKIT_VPATH" ; then | |
28657 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
28658 | fi | |
28659 | ||
28660 | if test -n "$TOOLKIT" ; then | |
28661 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
28662 | fi | |
28663 | ||
28664 | UNICODE=0 | |
28665 | lib_unicode_suffix= | |
28666 | if test "$wxUSE_UNICODE" = "yes"; then | |
28667 | lib_unicode_suffix=u | |
28668 | UNICODE=1 | |
28669 | fi | |
28670 | ||
28671 | lib_debug_suffix= | |
28672 | DEBUG_FLAG=0 | |
28673 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
28674 | lib_debug_suffix=d | |
28675 | DEBUG_FLAG=1 | |
28676 | fi | |
28677 | ||
28678 | DEBUG_INFO=0 | |
28679 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
28680 | DEBUG_INFO=1 | |
28681 | fi | |
28682 | ||
28683 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` | |
28684 | ||
28685 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
28686 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
28687 | ||
28688 | if test "$cross_compiling" = "yes"; then | |
28689 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
28690 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
28691 | HOST_SUFFIX="-${host_alias}" | |
28692 | fi | |
28693 | ||
28694 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
28695 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
28696 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" | |
28697 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
28698 | ||
28699 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
28700 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
28701 | ||
28702 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
28703 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
28704 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
28705 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
28706 | ||
28707 | case "${host}" in | |
28708 | *-*-cygwin* | *-*-mingw32* ) | |
28709 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
28710 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
28711 | ;; | |
28712 | ||
28713 | *-*-darwin* ) | |
28714 | ||
28715 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
28716 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
28717 | ||
28718 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
28719 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
28720 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
28721 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
28722 | ||
28723 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
28724 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
28725 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
28726 | fi | |
28727 | ;; | |
28728 | esac | |
28729 | ||
28730 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
28731 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
28732 | ||
28733 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
28734 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
28735 | ||
28736 | if test "$wxUSE_OPENGL" = "yes"; then | |
28737 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
28738 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
28739 | fi | |
28740 | ||
28741 | ||
28742 | ||
28743 | if test "$wxUSE_SHARED" = "yes"; then | |
28744 | case "${host}" in | |
28745 | *-pc-msdosdjgpp ) | |
28746 | wxUSE_SHARED=no | |
28747 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
28748 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
28749 | ;; | |
28750 | esac | |
28751 | fi | |
28752 | ||
28753 | SHARED=0 | |
28754 | if test "$wxUSE_SHARED" = "yes"; then | |
28755 | SHARED=1 | |
28756 | ||
28757 | ||
28758 | found_versioning=no | |
28759 | ||
28760 | ||
28761 | if test $found_versioning = no ; then | |
28762 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
28763 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
28764 | if test "${wx_cv_version_script+set}" = set; then | |
28765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28766 | else | |
28767 | ||
28768 | echo "VER_1 { *; };" >conftest.sym | |
28769 | echo "int main() { return 0; }" >conftest.cpp | |
28770 | ||
28771 | if { ac_try=' | |
28772 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28773 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
28774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28775 | (eval $ac_try) 2>&5 | |
28776 | ac_status=$? | |
28777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28778 | (exit $ac_status); }; } ; then | |
28779 | if test -s conftest.stderr ; then | |
28780 | wx_cv_version_script=no | |
28781 | else | |
28782 | wx_cv_version_script=yes | |
28783 | fi | |
28784 | else | |
28785 | wx_cv_version_script=no | |
28786 | fi | |
28787 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
28788 | ||
28789 | fi | |
28790 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
28791 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
28792 | if test $wx_cv_version_script = yes ; then | |
28793 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
28794 | fi | |
28795 | fi | |
28796 | ||
28797 | ||
28798 | case "${host}" in | |
28799 | *-*-linux* | *-*-gnu* ) | |
28800 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
28801 | ;; | |
28802 | ||
28803 | *-*-solaris2* ) | |
28804 | if test "$GCC" = yes ; then | |
28805 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
28806 | ||
28807 | saveLdflags="$LDFLAGS" | |
28808 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
28809 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
28810 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
28811 | cat >conftest.$ac_ext <<_ACEOF | |
28812 | /* confdefs.h. */ | |
28813 | _ACEOF | |
28814 | cat confdefs.h >>conftest.$ac_ext | |
28815 | cat >>conftest.$ac_ext <<_ACEOF | |
28816 | /* end confdefs.h. */ | |
28817 | ||
28818 | int | |
28819 | main () | |
28820 | { | |
28821 | ||
28822 | ; | |
28823 | return 0; | |
28824 | } | |
28825 | _ACEOF | |
28826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28828 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28829 | ac_status=$? |
ac1cb8d3 VS |
28830 | grep -v '^ *+' conftest.er1 >conftest.err |
28831 | rm -f conftest.er1 | |
28832 | cat conftest.err >&5 | |
a848cd7e SC |
28833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28834 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28835 | { ac_try='test -z "$ac_c_werror_flag" |
28836 | || test ! -s conftest.err' | |
28837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28838 | (eval $ac_try) 2>&5 | |
28839 | ac_status=$? | |
28840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28841 | (exit $ac_status); }; } && | |
28842 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28844 | (eval $ac_try) 2>&5 | |
28845 | ac_status=$? | |
28846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28847 | (exit $ac_status); }; }; then | |
28848 | ||
28849 | echo "$as_me:$LINENO: result: yes" >&5 | |
28850 | echo "${ECHO_T}yes" >&6 | |
28851 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
28852 | ||
28853 | else | |
28854 | echo "$as_me: failed program was:" >&5 | |
28855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28856 | ||
28857 | ||
28858 | echo "$as_me:$LINENO: result: no" >&5 | |
28859 | echo "${ECHO_T}no" >&6 | |
28860 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
28861 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
28862 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
28863 | cat >conftest.$ac_ext <<_ACEOF | |
28864 | /* confdefs.h. */ | |
28865 | _ACEOF | |
28866 | cat confdefs.h >>conftest.$ac_ext | |
28867 | cat >>conftest.$ac_ext <<_ACEOF | |
28868 | /* end confdefs.h. */ | |
28869 | ||
28870 | int | |
28871 | main () | |
28872 | { | |
28873 | ||
28874 | ; | |
28875 | return 0; | |
28876 | } | |
28877 | _ACEOF | |
28878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28880 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28881 | ac_status=$? |
ac1cb8d3 VS |
28882 | grep -v '^ *+' conftest.er1 >conftest.err |
28883 | rm -f conftest.er1 | |
28884 | cat conftest.err >&5 | |
a848cd7e SC |
28885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28886 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28887 | { ac_try='test -z "$ac_c_werror_flag" |
28888 | || test ! -s conftest.err' | |
28889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28890 | (eval $ac_try) 2>&5 | |
28891 | ac_status=$? | |
28892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28893 | (exit $ac_status); }; } && | |
28894 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28896 | (eval $ac_try) 2>&5 | |
28897 | ac_status=$? | |
28898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28899 | (exit $ac_status); }; }; then | |
28900 | ||
28901 | echo "$as_me:$LINENO: result: yes" >&5 | |
28902 | echo "${ECHO_T}yes" >&6 | |
28903 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
28904 | else | |
28905 | echo "$as_me: failed program was:" >&5 | |
28906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28907 | ||
28908 | ||
28909 | echo "$as_me:$LINENO: result: no" >&5 | |
28910 | echo "${ECHO_T}no" >&6 | |
28911 | ||
28912 | fi | |
ac1cb8d3 VS |
28913 | rm -f conftest.err conftest.$ac_objext \ |
28914 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28915 | |
28916 | fi | |
ac1cb8d3 VS |
28917 | rm -f conftest.err conftest.$ac_objext \ |
28918 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28919 | LDFLAGS="$saveLdflags" |
28920 | else | |
28921 | SHARED_LD="${CXX} -G -o" | |
28922 | PIC_FLAG="-KPIC" | |
28923 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" | |
28924 | fi | |
28925 | ;; | |
28926 | ||
28927 | powerpc-*-darwin* ) | |
28928 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
28929 | cat <<EOF >change-install-names | |
28930 | #!/bin/sh | |
28931 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
28932 | inst_cmd="install_name_tool " | |
28933 | for i in \${libnames} ; do | |
28934 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
28935 | done | |
28936 | \${inst_cmd} \${3} | |
28937 | EOF | |
28938 | chmod +x change-install-names | |
28939 | ;; | |
28940 | ||
28941 | *-*-cygwin* | *-*-mingw32* ) | |
28942 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
28943 | ;; | |
28944 | ||
28945 | esac | |
28946 | ||
28947 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
28948 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
28949 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
28950 | fi | |
28951 | ||
28952 | WX_TARGET_LIBRARY_TYPE="so" | |
28953 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
28954 | fi | |
28955 | ||
28956 | if test "$wxUSE_SHARED" = "no"; then | |
28957 | ||
28958 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
28959 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
28960 | fi | |
28961 | ||
28962 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
28963 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
28964 | fi | |
28965 | ||
28966 | if test "$wxUSE_OPENGL" = "yes"; then | |
28967 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
28968 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
28969 | else | |
28970 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
28971 | fi | |
28972 | ||
28973 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
28974 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
28975 | ||
28976 | WX_TARGET_LIBRARY_TYPE="a" | |
28977 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
28978 | ||
28979 | STATIC_FLAG="yes" | |
28980 | else | |
28981 | STATIC_FLAG="no" | |
28982 | fi | |
28983 | ||
28984 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then | |
28985 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" | |
28986 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
28987 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
28988 | ||
28989 | # Extract the first word of "Rez", so it can be a program name with args. | |
28990 | set dummy Rez; ac_word=$2 | |
28991 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28993 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
28994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28995 | else | |
28996 | if test -n "$RESCOMP"; then | |
28997 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
28998 | else | |
28999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29000 | for as_dir in $PATH | |
29001 | do | |
29002 | IFS=$as_save_IFS | |
29003 | test -z "$as_dir" && as_dir=. | |
29004 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29005 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29006 | ac_cv_prog_RESCOMP="Rez" | |
29007 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29008 | break 2 | |
29009 | fi | |
29010 | done | |
29011 | done | |
29012 | ||
29013 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
29014 | fi | |
29015 | fi | |
29016 | RESCOMP=$ac_cv_prog_RESCOMP | |
29017 | if test -n "$RESCOMP"; then | |
29018 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
29019 | echo "${ECHO_T}$RESCOMP" >&6 | |
29020 | else | |
29021 | echo "$as_me:$LINENO: result: no" >&5 | |
29022 | echo "${ECHO_T}no" >&6 | |
29023 | fi | |
29024 | ||
29025 | # Extract the first word of "DeRez", so it can be a program name with args. | |
29026 | set dummy DeRez; ac_word=$2 | |
29027 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29029 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
29030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29031 | else | |
29032 | if test -n "$DEREZ"; then | |
29033 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
29034 | else | |
29035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29036 | for as_dir in $PATH | |
29037 | do | |
29038 | IFS=$as_save_IFS | |
29039 | test -z "$as_dir" && as_dir=. | |
29040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29041 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29042 | ac_cv_prog_DEREZ="DeRez" | |
29043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29044 | break 2 | |
29045 | fi | |
29046 | done | |
29047 | done | |
29048 | ||
29049 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
29050 | fi | |
29051 | fi | |
29052 | DEREZ=$ac_cv_prog_DEREZ | |
29053 | if test -n "$DEREZ"; then | |
29054 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
29055 | echo "${ECHO_T}$DEREZ" >&6 | |
29056 | else | |
29057 | echo "$as_me:$LINENO: result: no" >&5 | |
29058 | echo "${ECHO_T}no" >&6 | |
29059 | fi | |
29060 | ||
29061 | # Extract the first word of "SetFile", so it can be a program name with args. | |
29062 | set dummy SetFile; ac_word=$2 | |
29063 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29065 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
29066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29067 | else | |
29068 | if test -n "$SETFILE"; then | |
29069 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
29070 | else | |
29071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29072 | for as_dir in $PATH | |
29073 | do | |
29074 | IFS=$as_save_IFS | |
29075 | test -z "$as_dir" && as_dir=. | |
29076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29077 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29078 | ac_cv_prog_SETFILE="SetFile" | |
29079 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29080 | break 2 | |
29081 | fi | |
29082 | done | |
29083 | done | |
29084 | ||
29085 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
29086 | fi | |
29087 | fi | |
29088 | SETFILE=$ac_cv_prog_SETFILE | |
29089 | if test -n "$SETFILE"; then | |
29090 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
29091 | echo "${ECHO_T}$SETFILE" >&6 | |
29092 | else | |
29093 | echo "$as_me:$LINENO: result: no" >&5 | |
29094 | echo "${ECHO_T}no" >&6 | |
29095 | fi | |
29096 | ||
29097 | ||
29098 | MACSETFILE="\$(SETFILE)" | |
29099 | ||
29100 | if test "$wxUSE_MAC" = 1; then | |
29101 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
29102 | ||
29103 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
29104 | else | |
29105 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
29106 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
29107 | fi | |
29108 | else | |
29109 | MACSETFILE="@#" | |
29110 | MACRESWXCONFIG="#" | |
29111 | ||
29112 | if test "$wxUSE_PM" = 1; then | |
29113 | MACRESCOMP="emxbind -ep" | |
29114 | else | |
29115 | MACRESCOMP="@#" | |
29116 | fi | |
29117 | fi | |
29118 | ||
29119 | ||
29120 | ||
29121 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
29122 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
29123 | if test "${ac_cv_type_mode_t+set}" = set; then | |
29124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29125 | else | |
29126 | cat >conftest.$ac_ext <<_ACEOF | |
29127 | /* confdefs.h. */ | |
29128 | _ACEOF | |
29129 | cat confdefs.h >>conftest.$ac_ext | |
29130 | cat >>conftest.$ac_ext <<_ACEOF | |
29131 | /* end confdefs.h. */ | |
29132 | $ac_includes_default | |
29133 | int | |
29134 | main () | |
29135 | { | |
29136 | if ((mode_t *) 0) | |
29137 | return 0; | |
29138 | if (sizeof (mode_t)) | |
29139 | return 0; | |
29140 | ; | |
29141 | return 0; | |
29142 | } | |
29143 | _ACEOF | |
29144 | rm -f conftest.$ac_objext | |
29145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29146 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29147 | ac_status=$? |
ac1cb8d3 VS |
29148 | grep -v '^ *+' conftest.er1 >conftest.err |
29149 | rm -f conftest.er1 | |
29150 | cat conftest.err >&5 | |
a848cd7e SC |
29151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29152 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29153 | { ac_try='test -z "$ac_c_werror_flag" |
29154 | || test ! -s conftest.err' | |
29155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29156 | (eval $ac_try) 2>&5 | |
29157 | ac_status=$? | |
29158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29159 | (exit $ac_status); }; } && | |
29160 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29162 | (eval $ac_try) 2>&5 | |
29163 | ac_status=$? | |
29164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29165 | (exit $ac_status); }; }; then | |
29166 | ac_cv_type_mode_t=yes | |
29167 | else | |
29168 | echo "$as_me: failed program was:" >&5 | |
29169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29170 | ||
29171 | ac_cv_type_mode_t=no | |
29172 | fi | |
ac1cb8d3 | 29173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29174 | fi |
29175 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
29176 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
29177 | if test $ac_cv_type_mode_t = yes; then | |
29178 | : | |
29179 | else | |
29180 | ||
29181 | cat >>confdefs.h <<_ACEOF | |
29182 | #define mode_t int | |
29183 | _ACEOF | |
29184 | ||
29185 | fi | |
29186 | ||
29187 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
29188 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
29189 | if test "${ac_cv_type_off_t+set}" = set; then | |
29190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29191 | else | |
29192 | cat >conftest.$ac_ext <<_ACEOF | |
29193 | /* confdefs.h. */ | |
29194 | _ACEOF | |
29195 | cat confdefs.h >>conftest.$ac_ext | |
29196 | cat >>conftest.$ac_ext <<_ACEOF | |
29197 | /* end confdefs.h. */ | |
29198 | $ac_includes_default | |
29199 | int | |
29200 | main () | |
29201 | { | |
29202 | if ((off_t *) 0) | |
29203 | return 0; | |
29204 | if (sizeof (off_t)) | |
29205 | return 0; | |
29206 | ; | |
29207 | return 0; | |
29208 | } | |
29209 | _ACEOF | |
29210 | rm -f conftest.$ac_objext | |
29211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29212 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29213 | ac_status=$? |
ac1cb8d3 VS |
29214 | grep -v '^ *+' conftest.er1 >conftest.err |
29215 | rm -f conftest.er1 | |
29216 | cat conftest.err >&5 | |
a848cd7e SC |
29217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29218 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29219 | { ac_try='test -z "$ac_c_werror_flag" |
29220 | || test ! -s conftest.err' | |
29221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29222 | (eval $ac_try) 2>&5 | |
29223 | ac_status=$? | |
29224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29225 | (exit $ac_status); }; } && | |
29226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29228 | (eval $ac_try) 2>&5 | |
29229 | ac_status=$? | |
29230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29231 | (exit $ac_status); }; }; then | |
29232 | ac_cv_type_off_t=yes | |
29233 | else | |
29234 | echo "$as_me: failed program was:" >&5 | |
29235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29236 | ||
29237 | ac_cv_type_off_t=no | |
29238 | fi | |
ac1cb8d3 | 29239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29240 | fi |
29241 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
29242 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
29243 | if test $ac_cv_type_off_t = yes; then | |
29244 | : | |
29245 | else | |
29246 | ||
29247 | cat >>confdefs.h <<_ACEOF | |
29248 | #define off_t long | |
29249 | _ACEOF | |
29250 | ||
29251 | fi | |
29252 | ||
29253 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
29254 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
29255 | if test "${ac_cv_type_pid_t+set}" = set; then | |
29256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29257 | else | |
29258 | cat >conftest.$ac_ext <<_ACEOF | |
29259 | /* confdefs.h. */ | |
29260 | _ACEOF | |
29261 | cat confdefs.h >>conftest.$ac_ext | |
29262 | cat >>conftest.$ac_ext <<_ACEOF | |
29263 | /* end confdefs.h. */ | |
29264 | $ac_includes_default | |
29265 | int | |
29266 | main () | |
29267 | { | |
29268 | if ((pid_t *) 0) | |
29269 | return 0; | |
29270 | if (sizeof (pid_t)) | |
29271 | return 0; | |
29272 | ; | |
29273 | return 0; | |
29274 | } | |
29275 | _ACEOF | |
29276 | rm -f conftest.$ac_objext | |
29277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29278 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29279 | ac_status=$? |
ac1cb8d3 VS |
29280 | grep -v '^ *+' conftest.er1 >conftest.err |
29281 | rm -f conftest.er1 | |
29282 | cat conftest.err >&5 | |
a848cd7e SC |
29283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29284 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29285 | { ac_try='test -z "$ac_c_werror_flag" |
29286 | || test ! -s conftest.err' | |
29287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29288 | (eval $ac_try) 2>&5 | |
29289 | ac_status=$? | |
29290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29291 | (exit $ac_status); }; } && | |
29292 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29294 | (eval $ac_try) 2>&5 | |
29295 | ac_status=$? | |
29296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29297 | (exit $ac_status); }; }; then | |
29298 | ac_cv_type_pid_t=yes | |
29299 | else | |
29300 | echo "$as_me: failed program was:" >&5 | |
29301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29302 | ||
29303 | ac_cv_type_pid_t=no | |
29304 | fi | |
ac1cb8d3 | 29305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29306 | fi |
29307 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
29308 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
29309 | if test $ac_cv_type_pid_t = yes; then | |
29310 | : | |
29311 | else | |
29312 | ||
29313 | cat >>confdefs.h <<_ACEOF | |
29314 | #define pid_t int | |
29315 | _ACEOF | |
29316 | ||
29317 | fi | |
29318 | ||
29319 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
29320 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
29321 | if test "${ac_cv_type_size_t+set}" = set; then | |
29322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29323 | else | |
29324 | cat >conftest.$ac_ext <<_ACEOF | |
29325 | /* confdefs.h. */ | |
29326 | _ACEOF | |
29327 | cat confdefs.h >>conftest.$ac_ext | |
29328 | cat >>conftest.$ac_ext <<_ACEOF | |
29329 | /* end confdefs.h. */ | |
29330 | $ac_includes_default | |
29331 | int | |
29332 | main () | |
29333 | { | |
29334 | if ((size_t *) 0) | |
29335 | return 0; | |
29336 | if (sizeof (size_t)) | |
29337 | return 0; | |
29338 | ; | |
29339 | return 0; | |
29340 | } | |
29341 | _ACEOF | |
29342 | rm -f conftest.$ac_objext | |
29343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29344 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29345 | ac_status=$? |
ac1cb8d3 VS |
29346 | grep -v '^ *+' conftest.er1 >conftest.err |
29347 | rm -f conftest.er1 | |
29348 | cat conftest.err >&5 | |
a848cd7e SC |
29349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29350 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29351 | { ac_try='test -z "$ac_c_werror_flag" |
29352 | || test ! -s conftest.err' | |
29353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29354 | (eval $ac_try) 2>&5 | |
29355 | ac_status=$? | |
29356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29357 | (exit $ac_status); }; } && | |
29358 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29360 | (eval $ac_try) 2>&5 | |
29361 | ac_status=$? | |
29362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29363 | (exit $ac_status); }; }; then | |
29364 | ac_cv_type_size_t=yes | |
29365 | else | |
29366 | echo "$as_me: failed program was:" >&5 | |
29367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29368 | ||
29369 | ac_cv_type_size_t=no | |
29370 | fi | |
ac1cb8d3 | 29371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29372 | fi |
29373 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
29374 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
29375 | if test $ac_cv_type_size_t = yes; then | |
29376 | : | |
29377 | else | |
29378 | ||
29379 | cat >>confdefs.h <<_ACEOF | |
29380 | #define size_t unsigned | |
29381 | _ACEOF | |
29382 | ||
29383 | fi | |
29384 | ||
29385 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
29386 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
29387 | if test "${ac_cv_type_uid_t+set}" = set; then | |
29388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29389 | else | |
29390 | cat >conftest.$ac_ext <<_ACEOF | |
29391 | /* confdefs.h. */ | |
29392 | _ACEOF | |
29393 | cat confdefs.h >>conftest.$ac_ext | |
29394 | cat >>conftest.$ac_ext <<_ACEOF | |
29395 | /* end confdefs.h. */ | |
29396 | #include <sys/types.h> | |
29397 | ||
29398 | _ACEOF | |
29399 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
29400 | $EGREP "uid_t" >/dev/null 2>&1; then | |
29401 | ac_cv_type_uid_t=yes | |
29402 | else | |
29403 | ac_cv_type_uid_t=no | |
29404 | fi | |
29405 | rm -f conftest* | |
29406 | ||
29407 | fi | |
29408 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
29409 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
29410 | if test $ac_cv_type_uid_t = no; then | |
29411 | ||
29412 | cat >>confdefs.h <<\_ACEOF | |
29413 | #define uid_t int | |
29414 | _ACEOF | |
29415 | ||
29416 | ||
29417 | cat >>confdefs.h <<\_ACEOF | |
29418 | #define gid_t int | |
29419 | _ACEOF | |
29420 | ||
29421 | fi | |
29422 | ||
29423 | ||
29424 | ||
29425 | ||
29426 | ac_ext=cc | |
29427 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29428 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29429 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29430 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29431 | ||
29432 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
29433 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
29434 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
29435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29436 | else | |
29437 | ||
29438 | cat >conftest.$ac_ext <<_ACEOF | |
29439 | /* confdefs.h. */ | |
29440 | _ACEOF | |
29441 | cat confdefs.h >>conftest.$ac_ext | |
29442 | cat >>conftest.$ac_ext <<_ACEOF | |
29443 | /* end confdefs.h. */ | |
29444 | #include <stddef.h> | |
29445 | int | |
29446 | main () | |
29447 | { | |
29448 | ||
29449 | return 0; } | |
29450 | ||
29451 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
29452 | ||
29453 | int bar() { | |
29454 | ||
29455 | ; | |
29456 | return 0; | |
29457 | } | |
29458 | _ACEOF | |
29459 | rm -f conftest.$ac_objext | |
29460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29461 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29462 | ac_status=$? |
ac1cb8d3 VS |
29463 | grep -v '^ *+' conftest.er1 >conftest.err |
29464 | rm -f conftest.er1 | |
29465 | cat conftest.err >&5 | |
a848cd7e SC |
29466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29467 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29468 | { ac_try='test -z "$ac_cxx_werror_flag" |
29469 | || test ! -s conftest.err' | |
29470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29471 | (eval $ac_try) 2>&5 | |
29472 | ac_status=$? | |
29473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29474 | (exit $ac_status); }; } && | |
29475 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29477 | (eval $ac_try) 2>&5 | |
29478 | ac_status=$? | |
29479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29480 | (exit $ac_status); }; }; then | |
29481 | wx_cv_size_t_is_uint=no | |
29482 | else | |
29483 | echo "$as_me: failed program was:" >&5 | |
29484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29485 | ||
29486 | wx_cv_size_t_is_uint=yes | |
29487 | ||
29488 | fi | |
ac1cb8d3 | 29489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29490 | |
29491 | ||
29492 | fi | |
29493 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
29494 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
29495 | ||
29496 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
29497 | cat >>confdefs.h <<\_ACEOF | |
29498 | #define wxSIZE_T_IS_UINT 1 | |
29499 | _ACEOF | |
29500 | ||
29501 | else | |
29502 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
29503 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
29504 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
29505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29506 | else | |
29507 | cat >conftest.$ac_ext <<_ACEOF | |
29508 | /* confdefs.h. */ | |
29509 | _ACEOF | |
29510 | cat confdefs.h >>conftest.$ac_ext | |
29511 | cat >>conftest.$ac_ext <<_ACEOF | |
29512 | /* end confdefs.h. */ | |
29513 | #include <stddef.h> | |
29514 | int | |
29515 | main () | |
29516 | { | |
29517 | ||
29518 | return 0; } | |
29519 | ||
29520 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
29521 | ||
29522 | int bar() { | |
29523 | ||
29524 | ; | |
29525 | return 0; | |
29526 | } | |
29527 | _ACEOF | |
29528 | rm -f conftest.$ac_objext | |
29529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29530 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29531 | ac_status=$? |
ac1cb8d3 VS |
29532 | grep -v '^ *+' conftest.er1 >conftest.err |
29533 | rm -f conftest.er1 | |
29534 | cat conftest.err >&5 | |
a848cd7e SC |
29535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29536 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29537 | { ac_try='test -z "$ac_cxx_werror_flag" |
29538 | || test ! -s conftest.err' | |
29539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29540 | (eval $ac_try) 2>&5 | |
29541 | ac_status=$? | |
29542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29543 | (exit $ac_status); }; } && | |
29544 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29546 | (eval $ac_try) 2>&5 | |
29547 | ac_status=$? | |
29548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29549 | (exit $ac_status); }; }; then | |
29550 | wx_cv_size_t_is_ulong=no | |
29551 | else | |
29552 | echo "$as_me: failed program was:" >&5 | |
29553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29554 | ||
29555 | wx_cv_size_t_is_ulong=yes | |
29556 | ||
29557 | fi | |
ac1cb8d3 | 29558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29559 | |
29560 | fi | |
29561 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
29562 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
29563 | ||
29564 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
29565 | cat >>confdefs.h <<\_ACEOF | |
29566 | #define wxSIZE_T_IS_ULONG 1 | |
29567 | _ACEOF | |
29568 | ||
29569 | fi | |
29570 | fi | |
29571 | ||
29572 | ac_ext=c | |
29573 | ac_cpp='$CPP $CPPFLAGS' | |
29574 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29575 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29576 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29577 | ||
29578 | ||
29579 | ||
29580 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
29581 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
29582 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
29583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29584 | else | |
29585 | ||
29586 | cat >conftest.$ac_ext <<_ACEOF | |
29587 | /* confdefs.h. */ | |
29588 | _ACEOF | |
29589 | cat confdefs.h >>conftest.$ac_ext | |
29590 | cat >>conftest.$ac_ext <<_ACEOF | |
29591 | /* end confdefs.h. */ | |
29592 | #include <pwd.h> | |
29593 | int | |
29594 | main () | |
29595 | { | |
29596 | ||
29597 | char *p; | |
29598 | struct passwd *pw; | |
29599 | p = pw->pw_gecos; | |
29600 | ||
29601 | ; | |
29602 | return 0; | |
29603 | } | |
29604 | _ACEOF | |
29605 | rm -f conftest.$ac_objext | |
29606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29607 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29608 | ac_status=$? |
ac1cb8d3 VS |
29609 | grep -v '^ *+' conftest.er1 >conftest.err |
29610 | rm -f conftest.er1 | |
29611 | cat conftest.err >&5 | |
a848cd7e SC |
29612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29613 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29614 | { ac_try='test -z "$ac_c_werror_flag" |
29615 | || test ! -s conftest.err' | |
29616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29617 | (eval $ac_try) 2>&5 | |
29618 | ac_status=$? | |
29619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29620 | (exit $ac_status); }; } && | |
29621 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29623 | (eval $ac_try) 2>&5 | |
29624 | ac_status=$? | |
29625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29626 | (exit $ac_status); }; }; then | |
29627 | ||
29628 | wx_cv_struct_pw_gecos=yes | |
29629 | ||
29630 | else | |
29631 | echo "$as_me: failed program was:" >&5 | |
29632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29633 | ||
29634 | ||
29635 | wx_cv_struct_pw_gecos=no | |
29636 | ||
29637 | ||
29638 | fi | |
ac1cb8d3 | 29639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29640 | |
29641 | ||
29642 | fi | |
29643 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
29644 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
29645 | ||
29646 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
29647 | cat >>confdefs.h <<\_ACEOF | |
29648 | #define HAVE_PW_GECOS 1 | |
29649 | _ACEOF | |
29650 | ||
29651 | fi | |
29652 | ||
29653 | ||
29654 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
29655 | cat >>confdefs.h <<\_ACEOF | |
29656 | #define wxUSE_WCHAR_T 1 | |
29657 | _ACEOF | |
29658 | ||
29659 | ||
29660 | WCSLEN_FOUND=0 | |
29661 | WCHAR_LINK= | |
29662 | ||
29663 | for ac_func in wcslen | |
29664 | do | |
29665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29666 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29668 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29670 | else | |
29671 | cat >conftest.$ac_ext <<_ACEOF | |
29672 | /* confdefs.h. */ | |
29673 | _ACEOF | |
29674 | cat confdefs.h >>conftest.$ac_ext | |
29675 | cat >>conftest.$ac_ext <<_ACEOF | |
29676 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29677 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29679 | #define $ac_func innocuous_$ac_func | |
29680 | ||
a848cd7e SC |
29681 | /* System header to define __stub macros and hopefully few prototypes, |
29682 | which can conflict with char $ac_func (); below. | |
29683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29684 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29685 | |
a848cd7e SC |
29686 | #ifdef __STDC__ |
29687 | # include <limits.h> | |
29688 | #else | |
29689 | # include <assert.h> | |
29690 | #endif | |
ac1cb8d3 VS |
29691 | |
29692 | #undef $ac_func | |
29693 | ||
a848cd7e SC |
29694 | /* Override any gcc2 internal prototype to avoid an error. */ |
29695 | #ifdef __cplusplus | |
29696 | extern "C" | |
29697 | { | |
29698 | #endif | |
29699 | /* We use char because int might match the return type of a gcc2 | |
29700 | builtin and then its argument prototype would still apply. */ | |
29701 | char $ac_func (); | |
29702 | /* The GNU C library defines this for functions which it implements | |
29703 | to always fail with ENOSYS. Some functions are actually named | |
29704 | something starting with __ and the normal name is an alias. */ | |
29705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29706 | choke me | |
29707 | #else | |
29708 | char (*f) () = $ac_func; | |
29709 | #endif | |
29710 | #ifdef __cplusplus | |
29711 | } | |
29712 | #endif | |
29713 | ||
29714 | int | |
29715 | main () | |
29716 | { | |
29717 | return f != $ac_func; | |
29718 | ; | |
29719 | return 0; | |
29720 | } | |
29721 | _ACEOF | |
29722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29724 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29725 | ac_status=$? |
ac1cb8d3 VS |
29726 | grep -v '^ *+' conftest.er1 >conftest.err |
29727 | rm -f conftest.er1 | |
29728 | cat conftest.err >&5 | |
a848cd7e SC |
29729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29730 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29731 | { ac_try='test -z "$ac_c_werror_flag" |
29732 | || test ! -s conftest.err' | |
29733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29734 | (eval $ac_try) 2>&5 | |
29735 | ac_status=$? | |
29736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29737 | (exit $ac_status); }; } && | |
29738 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29740 | (eval $ac_try) 2>&5 | |
29741 | ac_status=$? | |
29742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29743 | (exit $ac_status); }; }; then | |
29744 | eval "$as_ac_var=yes" | |
29745 | else | |
29746 | echo "$as_me: failed program was:" >&5 | |
29747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29748 | ||
29749 | eval "$as_ac_var=no" | |
29750 | fi | |
ac1cb8d3 VS |
29751 | rm -f conftest.err conftest.$ac_objext \ |
29752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29753 | fi |
29754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29755 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29756 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29757 | cat >>confdefs.h <<_ACEOF | |
29758 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29759 | _ACEOF | |
29760 | WCSLEN_FOUND=1 | |
29761 | fi | |
29762 | done | |
29763 | ||
29764 | ||
29765 | if test "$WCSLEN_FOUND" = 0; then | |
29766 | if test "$TOOLKIT" = "MSW"; then | |
29767 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
29768 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
29769 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
29770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29771 | else | |
29772 | ac_check_lib_save_LIBS=$LIBS | |
29773 | LIBS="-lmsvcrt $LIBS" | |
29774 | cat >conftest.$ac_ext <<_ACEOF | |
29775 | /* confdefs.h. */ | |
29776 | _ACEOF | |
29777 | cat confdefs.h >>conftest.$ac_ext | |
29778 | cat >>conftest.$ac_ext <<_ACEOF | |
29779 | /* end confdefs.h. */ | |
29780 | ||
29781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29782 | #ifdef __cplusplus | |
29783 | extern "C" | |
29784 | #endif | |
29785 | /* We use char because int might match the return type of a gcc2 | |
29786 | builtin and then its argument prototype would still apply. */ | |
29787 | char wcslen (); | |
29788 | int | |
29789 | main () | |
29790 | { | |
29791 | wcslen (); | |
29792 | ; | |
29793 | return 0; | |
29794 | } | |
29795 | _ACEOF | |
29796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29798 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29799 | ac_status=$? |
ac1cb8d3 VS |
29800 | grep -v '^ *+' conftest.er1 >conftest.err |
29801 | rm -f conftest.er1 | |
29802 | cat conftest.err >&5 | |
a848cd7e SC |
29803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29804 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29805 | { ac_try='test -z "$ac_c_werror_flag" |
29806 | || test ! -s conftest.err' | |
29807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29808 | (eval $ac_try) 2>&5 | |
29809 | ac_status=$? | |
29810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29811 | (exit $ac_status); }; } && | |
29812 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29814 | (eval $ac_try) 2>&5 | |
29815 | ac_status=$? | |
29816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29817 | (exit $ac_status); }; }; then | |
29818 | ac_cv_lib_msvcrt_wcslen=yes | |
29819 | else | |
29820 | echo "$as_me: failed program was:" >&5 | |
29821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29822 | ||
29823 | ac_cv_lib_msvcrt_wcslen=no | |
29824 | fi | |
ac1cb8d3 VS |
29825 | rm -f conftest.err conftest.$ac_objext \ |
29826 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29827 | LIBS=$ac_check_lib_save_LIBS |
29828 | fi | |
29829 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
29830 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
29831 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
29832 | WCHAR_OK=1 | |
29833 | fi | |
29834 | ||
29835 | else | |
29836 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
29837 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
29838 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
29839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29840 | else | |
29841 | ac_check_lib_save_LIBS=$LIBS | |
29842 | LIBS="-lw $LIBS" | |
29843 | cat >conftest.$ac_ext <<_ACEOF | |
29844 | /* confdefs.h. */ | |
29845 | _ACEOF | |
29846 | cat confdefs.h >>conftest.$ac_ext | |
29847 | cat >>conftest.$ac_ext <<_ACEOF | |
29848 | /* end confdefs.h. */ | |
29849 | ||
29850 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29851 | #ifdef __cplusplus | |
29852 | extern "C" | |
29853 | #endif | |
29854 | /* We use char because int might match the return type of a gcc2 | |
29855 | builtin and then its argument prototype would still apply. */ | |
29856 | char wcslen (); | |
29857 | int | |
29858 | main () | |
29859 | { | |
29860 | wcslen (); | |
29861 | ; | |
29862 | return 0; | |
29863 | } | |
29864 | _ACEOF | |
29865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29867 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29868 | ac_status=$? |
ac1cb8d3 VS |
29869 | grep -v '^ *+' conftest.er1 >conftest.err |
29870 | rm -f conftest.er1 | |
29871 | cat conftest.err >&5 | |
a848cd7e SC |
29872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29873 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29874 | { ac_try='test -z "$ac_c_werror_flag" |
29875 | || test ! -s conftest.err' | |
29876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29877 | (eval $ac_try) 2>&5 | |
29878 | ac_status=$? | |
29879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29880 | (exit $ac_status); }; } && | |
29881 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29883 | (eval $ac_try) 2>&5 | |
29884 | ac_status=$? | |
29885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29886 | (exit $ac_status); }; }; then | |
29887 | ac_cv_lib_w_wcslen=yes | |
29888 | else | |
29889 | echo "$as_me: failed program was:" >&5 | |
29890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29891 | ||
29892 | ac_cv_lib_w_wcslen=no | |
29893 | fi | |
ac1cb8d3 VS |
29894 | rm -f conftest.err conftest.$ac_objext \ |
29895 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29896 | LIBS=$ac_check_lib_save_LIBS |
29897 | fi | |
29898 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
29899 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
29900 | if test $ac_cv_lib_w_wcslen = yes; then | |
29901 | ||
29902 | WCHAR_LINK=" -lw" | |
29903 | WCSLEN_FOUND=1 | |
29904 | ||
29905 | fi | |
29906 | ||
29907 | fi | |
29908 | fi | |
29909 | ||
29910 | if test "$WCSLEN_FOUND" = 1; then | |
29911 | cat >>confdefs.h <<\_ACEOF | |
29912 | #define HAVE_WCSLEN 1 | |
29913 | _ACEOF | |
29914 | ||
29915 | fi | |
29916 | ||
473276a9 VS |
29917 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
29918 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
29919 | fi | |
29920 | ||
a848cd7e SC |
29921 | |
29922 | for ac_func in wcsrtombs | |
29923 | do | |
29924 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29925 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29926 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29927 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29929 | else | |
29930 | cat >conftest.$ac_ext <<_ACEOF | |
29931 | /* confdefs.h. */ | |
29932 | _ACEOF | |
29933 | cat confdefs.h >>conftest.$ac_ext | |
29934 | cat >>conftest.$ac_ext <<_ACEOF | |
29935 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29936 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29937 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29938 | #define $ac_func innocuous_$ac_func | |
29939 | ||
a848cd7e SC |
29940 | /* System header to define __stub macros and hopefully few prototypes, |
29941 | which can conflict with char $ac_func (); below. | |
29942 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29943 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29944 | |
a848cd7e SC |
29945 | #ifdef __STDC__ |
29946 | # include <limits.h> | |
29947 | #else | |
29948 | # include <assert.h> | |
29949 | #endif | |
ac1cb8d3 VS |
29950 | |
29951 | #undef $ac_func | |
29952 | ||
a848cd7e SC |
29953 | /* Override any gcc2 internal prototype to avoid an error. */ |
29954 | #ifdef __cplusplus | |
29955 | extern "C" | |
29956 | { | |
29957 | #endif | |
29958 | /* We use char because int might match the return type of a gcc2 | |
29959 | builtin and then its argument prototype would still apply. */ | |
29960 | char $ac_func (); | |
29961 | /* The GNU C library defines this for functions which it implements | |
29962 | to always fail with ENOSYS. Some functions are actually named | |
29963 | something starting with __ and the normal name is an alias. */ | |
29964 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29965 | choke me | |
29966 | #else | |
29967 | char (*f) () = $ac_func; | |
29968 | #endif | |
29969 | #ifdef __cplusplus | |
29970 | } | |
29971 | #endif | |
29972 | ||
29973 | int | |
29974 | main () | |
29975 | { | |
29976 | return f != $ac_func; | |
29977 | ; | |
29978 | return 0; | |
29979 | } | |
29980 | _ACEOF | |
29981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29983 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29984 | ac_status=$? |
ac1cb8d3 VS |
29985 | grep -v '^ *+' conftest.er1 >conftest.err |
29986 | rm -f conftest.er1 | |
29987 | cat conftest.err >&5 | |
a848cd7e SC |
29988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29989 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29990 | { ac_try='test -z "$ac_c_werror_flag" |
29991 | || test ! -s conftest.err' | |
29992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29993 | (eval $ac_try) 2>&5 | |
29994 | ac_status=$? | |
29995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29996 | (exit $ac_status); }; } && | |
29997 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29999 | (eval $ac_try) 2>&5 | |
30000 | ac_status=$? | |
30001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30002 | (exit $ac_status); }; }; then | |
30003 | eval "$as_ac_var=yes" | |
30004 | else | |
30005 | echo "$as_me: failed program was:" >&5 | |
30006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30007 | ||
30008 | eval "$as_ac_var=no" | |
30009 | fi | |
ac1cb8d3 VS |
30010 | rm -f conftest.err conftest.$ac_objext \ |
30011 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30012 | fi |
30013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30014 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30015 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30016 | cat >>confdefs.h <<_ACEOF | |
30017 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30018 | _ACEOF | |
30019 | ||
30020 | fi | |
30021 | done | |
30022 | ||
30023 | else | |
30024 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
30025 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
30026 | fi | |
30027 | ||
30028 | ||
30029 | ||
30030 | ac_ext=cc | |
30031 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30032 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30033 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30034 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30035 | ||
30036 | ||
30037 | ||
30038 | for ac_func in vsnprintf | |
30039 | do | |
30040 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30041 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30042 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30043 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30045 | else | |
30046 | cat >conftest.$ac_ext <<_ACEOF | |
30047 | /* confdefs.h. */ | |
30048 | _ACEOF | |
30049 | cat confdefs.h >>conftest.$ac_ext | |
30050 | cat >>conftest.$ac_ext <<_ACEOF | |
30051 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30052 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30054 | #define $ac_func innocuous_$ac_func | |
30055 | ||
a848cd7e SC |
30056 | /* System header to define __stub macros and hopefully few prototypes, |
30057 | which can conflict with char $ac_func (); below. | |
30058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30059 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30060 | |
a848cd7e SC |
30061 | #ifdef __STDC__ |
30062 | # include <limits.h> | |
30063 | #else | |
30064 | # include <assert.h> | |
30065 | #endif | |
ac1cb8d3 VS |
30066 | |
30067 | #undef $ac_func | |
30068 | ||
a848cd7e SC |
30069 | /* Override any gcc2 internal prototype to avoid an error. */ |
30070 | #ifdef __cplusplus | |
30071 | extern "C" | |
30072 | { | |
30073 | #endif | |
30074 | /* We use char because int might match the return type of a gcc2 | |
30075 | builtin and then its argument prototype would still apply. */ | |
30076 | char $ac_func (); | |
30077 | /* The GNU C library defines this for functions which it implements | |
30078 | to always fail with ENOSYS. Some functions are actually named | |
30079 | something starting with __ and the normal name is an alias. */ | |
30080 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30081 | choke me | |
30082 | #else | |
30083 | char (*f) () = $ac_func; | |
30084 | #endif | |
30085 | #ifdef __cplusplus | |
30086 | } | |
30087 | #endif | |
30088 | ||
30089 | int | |
30090 | main () | |
30091 | { | |
30092 | return f != $ac_func; | |
30093 | ; | |
30094 | return 0; | |
30095 | } | |
30096 | _ACEOF | |
30097 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30099 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30100 | ac_status=$? |
ac1cb8d3 VS |
30101 | grep -v '^ *+' conftest.er1 >conftest.err |
30102 | rm -f conftest.er1 | |
30103 | cat conftest.err >&5 | |
a848cd7e SC |
30104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30105 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30106 | { ac_try='test -z "$ac_cxx_werror_flag" |
30107 | || test ! -s conftest.err' | |
30108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30109 | (eval $ac_try) 2>&5 | |
30110 | ac_status=$? | |
30111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30112 | (exit $ac_status); }; } && | |
30113 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30115 | (eval $ac_try) 2>&5 | |
30116 | ac_status=$? | |
30117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30118 | (exit $ac_status); }; }; then | |
30119 | eval "$as_ac_var=yes" | |
30120 | else | |
30121 | echo "$as_me: failed program was:" >&5 | |
30122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30123 | ||
30124 | eval "$as_ac_var=no" | |
30125 | fi | |
ac1cb8d3 VS |
30126 | rm -f conftest.err conftest.$ac_objext \ |
30127 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30128 | fi |
30129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30130 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30131 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30132 | cat >>confdefs.h <<_ACEOF | |
30133 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30134 | _ACEOF | |
30135 | ||
30136 | fi | |
30137 | done | |
30138 | ||
30139 | ||
30140 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
30141 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
30142 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
30143 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
30144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30145 | else | |
30146 | ||
30147 | cat >conftest.$ac_ext <<_ACEOF | |
30148 | /* confdefs.h. */ | |
30149 | _ACEOF | |
30150 | cat confdefs.h >>conftest.$ac_ext | |
30151 | cat >>conftest.$ac_ext <<_ACEOF | |
30152 | /* end confdefs.h. */ | |
30153 | ||
30154 | #include <stdio.h> | |
30155 | #include <stdarg.h> | |
30156 | ||
30157 | int | |
30158 | main () | |
30159 | { | |
30160 | ||
30161 | char *buf; | |
30162 | va_list ap; | |
30163 | vsnprintf(buf, 10u, "%s", ap); | |
30164 | ||
30165 | ; | |
30166 | return 0; | |
30167 | } | |
30168 | _ACEOF | |
30169 | rm -f conftest.$ac_objext | |
30170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30171 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30172 | ac_status=$? |
ac1cb8d3 VS |
30173 | grep -v '^ *+' conftest.er1 >conftest.err |
30174 | rm -f conftest.er1 | |
30175 | cat conftest.err >&5 | |
a848cd7e SC |
30176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30177 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30178 | { ac_try='test -z "$ac_cxx_werror_flag" |
30179 | || test ! -s conftest.err' | |
30180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30181 | (eval $ac_try) 2>&5 | |
30182 | ac_status=$? | |
30183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30184 | (exit $ac_status); }; } && | |
30185 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30187 | (eval $ac_try) 2>&5 | |
30188 | ac_status=$? | |
30189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30190 | (exit $ac_status); }; }; then | |
30191 | wx_cv_func_vsnprintf_decl=yes | |
30192 | else | |
30193 | echo "$as_me: failed program was:" >&5 | |
30194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30195 | ||
30196 | wx_cv_func_vsnprintf_decl=no | |
30197 | ||
30198 | fi | |
ac1cb8d3 | 30199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30200 | |
30201 | ||
30202 | fi | |
30203 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
30204 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
30205 | ||
30206 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
30207 | cat >>confdefs.h <<\_ACEOF | |
30208 | #define HAVE_VSNPRINTF_DECL 1 | |
30209 | _ACEOF | |
30210 | ||
30211 | fi | |
30212 | fi | |
30213 | ||
30214 | if test "$wxUSE_UNICODE" = yes; then | |
30215 | ||
30216 | ||
30217 | ||
30218 | for ac_func in fputwc wprintf vswprintf | |
30219 | do | |
30220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30221 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30223 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30225 | else | |
30226 | cat >conftest.$ac_ext <<_ACEOF | |
30227 | /* confdefs.h. */ | |
30228 | _ACEOF | |
30229 | cat confdefs.h >>conftest.$ac_ext | |
30230 | cat >>conftest.$ac_ext <<_ACEOF | |
30231 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30232 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30234 | #define $ac_func innocuous_$ac_func | |
30235 | ||
a848cd7e SC |
30236 | /* System header to define __stub macros and hopefully few prototypes, |
30237 | which can conflict with char $ac_func (); below. | |
30238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30239 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30240 | |
a848cd7e SC |
30241 | #ifdef __STDC__ |
30242 | # include <limits.h> | |
30243 | #else | |
30244 | # include <assert.h> | |
30245 | #endif | |
ac1cb8d3 VS |
30246 | |
30247 | #undef $ac_func | |
30248 | ||
a848cd7e SC |
30249 | /* Override any gcc2 internal prototype to avoid an error. */ |
30250 | #ifdef __cplusplus | |
30251 | extern "C" | |
30252 | { | |
30253 | #endif | |
30254 | /* We use char because int might match the return type of a gcc2 | |
30255 | builtin and then its argument prototype would still apply. */ | |
30256 | char $ac_func (); | |
30257 | /* The GNU C library defines this for functions which it implements | |
30258 | to always fail with ENOSYS. Some functions are actually named | |
30259 | something starting with __ and the normal name is an alias. */ | |
30260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30261 | choke me | |
30262 | #else | |
30263 | char (*f) () = $ac_func; | |
30264 | #endif | |
30265 | #ifdef __cplusplus | |
30266 | } | |
30267 | #endif | |
30268 | ||
30269 | int | |
30270 | main () | |
30271 | { | |
30272 | return f != $ac_func; | |
30273 | ; | |
30274 | return 0; | |
30275 | } | |
30276 | _ACEOF | |
30277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30279 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30280 | ac_status=$? |
ac1cb8d3 VS |
30281 | grep -v '^ *+' conftest.er1 >conftest.err |
30282 | rm -f conftest.er1 | |
30283 | cat conftest.err >&5 | |
a848cd7e SC |
30284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30285 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30286 | { ac_try='test -z "$ac_cxx_werror_flag" |
30287 | || test ! -s conftest.err' | |
30288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30289 | (eval $ac_try) 2>&5 | |
30290 | ac_status=$? | |
30291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30292 | (exit $ac_status); }; } && | |
30293 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30295 | (eval $ac_try) 2>&5 | |
30296 | ac_status=$? | |
30297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30298 | (exit $ac_status); }; }; then | |
30299 | eval "$as_ac_var=yes" | |
30300 | else | |
30301 | echo "$as_me: failed program was:" >&5 | |
30302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30303 | ||
30304 | eval "$as_ac_var=no" | |
30305 | fi | |
ac1cb8d3 VS |
30306 | rm -f conftest.err conftest.$ac_objext \ |
30307 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30308 | fi |
30309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30310 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30311 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30312 | cat >>confdefs.h <<_ACEOF | |
30313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30314 | _ACEOF | |
30315 | ||
30316 | fi | |
30317 | done | |
30318 | ||
30319 | ||
30320 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
30321 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
30322 | cat >conftest.$ac_ext <<_ACEOF | |
30323 | /* confdefs.h. */ | |
30324 | _ACEOF | |
30325 | cat confdefs.h >>conftest.$ac_ext | |
30326 | cat >>conftest.$ac_ext <<_ACEOF | |
30327 | /* end confdefs.h. */ | |
30328 | #include <wchar.h> | |
30329 | int | |
30330 | main () | |
30331 | { | |
30332 | &_vsnwprintf; | |
30333 | ; | |
30334 | return 0; | |
30335 | } | |
30336 | _ACEOF | |
30337 | rm -f conftest.$ac_objext | |
30338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30339 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30340 | ac_status=$? |
ac1cb8d3 VS |
30341 | grep -v '^ *+' conftest.er1 >conftest.err |
30342 | rm -f conftest.er1 | |
30343 | cat conftest.err >&5 | |
a848cd7e SC |
30344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30345 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30346 | { ac_try='test -z "$ac_cxx_werror_flag" |
30347 | || test ! -s conftest.err' | |
30348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30349 | (eval $ac_try) 2>&5 | |
30350 | ac_status=$? | |
30351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30352 | (exit $ac_status); }; } && | |
30353 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30355 | (eval $ac_try) 2>&5 | |
30356 | ac_status=$? | |
30357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30358 | (exit $ac_status); }; }; then | |
30359 | echo "$as_me:$LINENO: result: yes" >&5 | |
30360 | echo "${ECHO_T}yes" >&6 | |
30361 | cat >>confdefs.h <<\_ACEOF | |
30362 | #define HAVE__VSNWPRINTF 1 | |
30363 | _ACEOF | |
30364 | ||
30365 | else | |
30366 | echo "$as_me: failed program was:" >&5 | |
30367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30368 | ||
30369 | echo "$as_me:$LINENO: result: no" >&5 | |
30370 | echo "${ECHO_T}no" >&6 | |
30371 | fi | |
ac1cb8d3 | 30372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
30373 | fi |
30374 | ||
30375 | ac_ext=c | |
30376 | ac_cpp='$CPP $CPPFLAGS' | |
30377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30380 | ||
30381 | ||
30382 | ||
30383 | ||
30384 | if test "$TOOLKIT" != "MSW"; then | |
30385 | ||
30386 | ||
30387 | ||
30388 | ||
30389 | ac_ext=cc | |
30390 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30391 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30392 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30393 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30394 | ||
30395 | ||
30396 | ||
30397 | ||
30398 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
30399 | if test "${with_libiconv_prefix+set}" = set; then | |
30400 | withval="$with_libiconv_prefix" | |
30401 | ||
30402 | for dir in `echo "$withval" | tr : ' '`; do | |
30403 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
30404 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
30405 | done | |
30406 | ||
30407 | fi; | |
30408 | ||
30409 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
30410 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
30411 | if test "${am_cv_func_iconv+set}" = set; then | |
30412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30413 | else | |
30414 | ||
30415 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
30416 | am_cv_lib_iconv=no | |
30417 | cat >conftest.$ac_ext <<_ACEOF | |
30418 | /* confdefs.h. */ | |
30419 | _ACEOF | |
30420 | cat confdefs.h >>conftest.$ac_ext | |
30421 | cat >>conftest.$ac_ext <<_ACEOF | |
30422 | /* end confdefs.h. */ | |
30423 | #include <stdlib.h> | |
30424 | #include <iconv.h> | |
30425 | int | |
30426 | main () | |
30427 | { | |
30428 | iconv_t cd = iconv_open("",""); | |
30429 | iconv(cd,NULL,NULL,NULL,NULL); | |
30430 | iconv_close(cd); | |
30431 | ; | |
30432 | return 0; | |
30433 | } | |
30434 | _ACEOF | |
30435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30437 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30438 | ac_status=$? |
ac1cb8d3 VS |
30439 | grep -v '^ *+' conftest.er1 >conftest.err |
30440 | rm -f conftest.er1 | |
30441 | cat conftest.err >&5 | |
a848cd7e SC |
30442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30443 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30444 | { ac_try='test -z "$ac_cxx_werror_flag" |
30445 | || test ! -s conftest.err' | |
30446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30447 | (eval $ac_try) 2>&5 | |
30448 | ac_status=$? | |
30449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30450 | (exit $ac_status); }; } && | |
30451 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30453 | (eval $ac_try) 2>&5 | |
30454 | ac_status=$? | |
30455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30456 | (exit $ac_status); }; }; then | |
30457 | am_cv_func_iconv=yes | |
30458 | else | |
30459 | echo "$as_me: failed program was:" >&5 | |
30460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30461 | ||
30462 | fi | |
ac1cb8d3 VS |
30463 | rm -f conftest.err conftest.$ac_objext \ |
30464 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30465 | if test "$am_cv_func_iconv" != yes; then |
30466 | am_save_LIBS="$LIBS" | |
30467 | LIBS="$LIBS -liconv" | |
30468 | cat >conftest.$ac_ext <<_ACEOF | |
30469 | /* confdefs.h. */ | |
30470 | _ACEOF | |
30471 | cat confdefs.h >>conftest.$ac_ext | |
30472 | cat >>conftest.$ac_ext <<_ACEOF | |
30473 | /* end confdefs.h. */ | |
30474 | #include <stdlib.h> | |
30475 | #include <iconv.h> | |
30476 | int | |
30477 | main () | |
30478 | { | |
30479 | iconv_t cd = iconv_open("",""); | |
30480 | iconv(cd,NULL,NULL,NULL,NULL); | |
30481 | iconv_close(cd); | |
30482 | ; | |
30483 | return 0; | |
30484 | } | |
30485 | _ACEOF | |
30486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30489 | ac_status=$? |
ac1cb8d3 VS |
30490 | grep -v '^ *+' conftest.er1 >conftest.err |
30491 | rm -f conftest.er1 | |
30492 | cat conftest.err >&5 | |
a848cd7e SC |
30493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30494 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30495 | { ac_try='test -z "$ac_cxx_werror_flag" |
30496 | || test ! -s conftest.err' | |
30497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30498 | (eval $ac_try) 2>&5 | |
30499 | ac_status=$? | |
30500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30501 | (exit $ac_status); }; } && | |
30502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30504 | (eval $ac_try) 2>&5 | |
30505 | ac_status=$? | |
30506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30507 | (exit $ac_status); }; }; then | |
30508 | am_cv_lib_iconv=yes | |
30509 | am_cv_func_iconv=yes | |
30510 | else | |
30511 | echo "$as_me: failed program was:" >&5 | |
30512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30513 | ||
30514 | fi | |
ac1cb8d3 VS |
30515 | rm -f conftest.err conftest.$ac_objext \ |
30516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30517 | LIBS="$am_save_LIBS" |
30518 | fi | |
30519 | ||
30520 | fi | |
30521 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
30522 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
30523 | if test "$am_cv_func_iconv" = yes; then | |
30524 | ||
30525 | cat >>confdefs.h <<\_ACEOF | |
30526 | #define HAVE_ICONV 1 | |
30527 | _ACEOF | |
30528 | ||
30529 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
30530 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
30531 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
30532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30533 | else | |
30534 | cat >conftest.$ac_ext <<_ACEOF | |
30535 | /* confdefs.h. */ | |
30536 | _ACEOF | |
30537 | cat confdefs.h >>conftest.$ac_ext | |
30538 | cat >>conftest.$ac_ext <<_ACEOF | |
30539 | /* end confdefs.h. */ | |
30540 | ||
30541 | #include <stdlib.h> | |
30542 | #include <iconv.h> | |
30543 | extern | |
30544 | #ifdef __cplusplus | |
30545 | "C" | |
30546 | #endif | |
30547 | #if defined(__STDC__) || defined(__cplusplus) | |
30548 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
30549 | #else | |
30550 | size_t iconv(); | |
30551 | #endif | |
30552 | ||
30553 | int | |
30554 | main () | |
30555 | { | |
30556 | ||
30557 | ; | |
30558 | return 0; | |
30559 | } | |
30560 | _ACEOF | |
30561 | rm -f conftest.$ac_objext | |
30562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30563 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30564 | ac_status=$? |
ac1cb8d3 VS |
30565 | grep -v '^ *+' conftest.er1 >conftest.err |
30566 | rm -f conftest.er1 | |
30567 | cat conftest.err >&5 | |
a848cd7e SC |
30568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30569 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30570 | { ac_try='test -z "$ac_cxx_werror_flag" |
30571 | || test ! -s conftest.err' | |
30572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30573 | (eval $ac_try) 2>&5 | |
30574 | ac_status=$? | |
30575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30576 | (exit $ac_status); }; } && | |
30577 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30579 | (eval $ac_try) 2>&5 | |
30580 | ac_status=$? | |
30581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30582 | (exit $ac_status); }; }; then | |
30583 | wx_cv_func_iconv_const="no" | |
30584 | else | |
30585 | echo "$as_me: failed program was:" >&5 | |
30586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30587 | ||
30588 | wx_cv_func_iconv_const="yes" | |
30589 | ||
30590 | fi | |
ac1cb8d3 | 30591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30592 | |
30593 | fi | |
30594 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
30595 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
30596 | ||
30597 | iconv_const= | |
30598 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
30599 | iconv_const="const" | |
30600 | fi | |
30601 | ||
30602 | ||
30603 | cat >>confdefs.h <<_ACEOF | |
30604 | #define ICONV_CONST $iconv_const | |
30605 | _ACEOF | |
30606 | ||
30607 | fi | |
30608 | LIBICONV= | |
30609 | if test "$am_cv_lib_iconv" = yes; then | |
30610 | LIBICONV="-liconv" | |
30611 | fi | |
30612 | ||
30613 | ||
30614 | LIBS="$LIBICONV $LIBS" | |
30615 | ac_ext=c | |
30616 | ac_cpp='$CPP $CPPFLAGS' | |
30617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30620 | ||
30621 | ||
30622 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
30623 | ||
30624 | for ac_func in sigaction | |
30625 | do | |
30626 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30627 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30628 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30629 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30631 | else | |
30632 | cat >conftest.$ac_ext <<_ACEOF | |
30633 | /* confdefs.h. */ | |
30634 | _ACEOF | |
30635 | cat confdefs.h >>conftest.$ac_ext | |
30636 | cat >>conftest.$ac_ext <<_ACEOF | |
30637 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30638 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30639 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30640 | #define $ac_func innocuous_$ac_func | |
30641 | ||
a848cd7e SC |
30642 | /* System header to define __stub macros and hopefully few prototypes, |
30643 | which can conflict with char $ac_func (); below. | |
30644 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30645 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30646 | |
a848cd7e SC |
30647 | #ifdef __STDC__ |
30648 | # include <limits.h> | |
30649 | #else | |
30650 | # include <assert.h> | |
30651 | #endif | |
ac1cb8d3 VS |
30652 | |
30653 | #undef $ac_func | |
30654 | ||
a848cd7e SC |
30655 | /* Override any gcc2 internal prototype to avoid an error. */ |
30656 | #ifdef __cplusplus | |
30657 | extern "C" | |
30658 | { | |
30659 | #endif | |
30660 | /* We use char because int might match the return type of a gcc2 | |
30661 | builtin and then its argument prototype would still apply. */ | |
30662 | char $ac_func (); | |
30663 | /* The GNU C library defines this for functions which it implements | |
30664 | to always fail with ENOSYS. Some functions are actually named | |
30665 | something starting with __ and the normal name is an alias. */ | |
30666 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30667 | choke me | |
30668 | #else | |
30669 | char (*f) () = $ac_func; | |
30670 | #endif | |
30671 | #ifdef __cplusplus | |
30672 | } | |
30673 | #endif | |
30674 | ||
30675 | int | |
30676 | main () | |
30677 | { | |
30678 | return f != $ac_func; | |
30679 | ; | |
30680 | return 0; | |
30681 | } | |
30682 | _ACEOF | |
30683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30685 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30686 | ac_status=$? |
ac1cb8d3 VS |
30687 | grep -v '^ *+' conftest.er1 >conftest.err |
30688 | rm -f conftest.er1 | |
30689 | cat conftest.err >&5 | |
a848cd7e SC |
30690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30691 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30692 | { ac_try='test -z "$ac_c_werror_flag" |
30693 | || test ! -s conftest.err' | |
30694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30695 | (eval $ac_try) 2>&5 | |
30696 | ac_status=$? | |
30697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30698 | (exit $ac_status); }; } && | |
30699 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30701 | (eval $ac_try) 2>&5 | |
30702 | ac_status=$? | |
30703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30704 | (exit $ac_status); }; }; then | |
30705 | eval "$as_ac_var=yes" | |
30706 | else | |
30707 | echo "$as_me: failed program was:" >&5 | |
30708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30709 | ||
30710 | eval "$as_ac_var=no" | |
30711 | fi | |
ac1cb8d3 VS |
30712 | rm -f conftest.err conftest.$ac_objext \ |
30713 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30714 | fi |
30715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30716 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30717 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30718 | cat >>confdefs.h <<_ACEOF | |
30719 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30720 | _ACEOF | |
30721 | ||
30722 | fi | |
30723 | done | |
30724 | ||
30725 | ||
30726 | if test "$ac_cv_func_sigaction" = "no"; then | |
30727 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
30728 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
30729 | wxUSE_ON_FATAL_EXCEPTION=no | |
30730 | fi | |
30731 | ||
30732 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
30733 | ||
30734 | ||
30735 | ac_ext=cc | |
30736 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30737 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30738 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30739 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30740 | ||
30741 | ||
30742 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
30743 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
30744 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
30745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30746 | else | |
30747 | ||
30748 | cat >conftest.$ac_ext <<_ACEOF | |
30749 | /* confdefs.h. */ | |
30750 | _ACEOF | |
30751 | cat confdefs.h >>conftest.$ac_ext | |
30752 | cat >>conftest.$ac_ext <<_ACEOF | |
30753 | /* end confdefs.h. */ | |
30754 | #include <signal.h> | |
30755 | int | |
30756 | main () | |
30757 | { | |
30758 | ||
30759 | extern void testSigHandler(int); | |
30760 | ||
30761 | struct sigaction sa; | |
30762 | sa.sa_handler = testSigHandler; | |
30763 | ||
30764 | ; | |
30765 | return 0; | |
30766 | } | |
30767 | _ACEOF | |
30768 | rm -f conftest.$ac_objext | |
30769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30770 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30771 | ac_status=$? |
ac1cb8d3 VS |
30772 | grep -v '^ *+' conftest.er1 >conftest.err |
30773 | rm -f conftest.er1 | |
30774 | cat conftest.err >&5 | |
a848cd7e SC |
30775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30776 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30777 | { ac_try='test -z "$ac_cxx_werror_flag" |
30778 | || test ! -s conftest.err' | |
30779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30780 | (eval $ac_try) 2>&5 | |
30781 | ac_status=$? | |
30782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30783 | (exit $ac_status); }; } && | |
30784 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30786 | (eval $ac_try) 2>&5 | |
30787 | ac_status=$? | |
30788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30789 | (exit $ac_status); }; }; then | |
30790 | ||
30791 | wx_cv_type_sa_handler=int | |
30792 | ||
30793 | else | |
30794 | echo "$as_me: failed program was:" >&5 | |
30795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30796 | ||
30797 | ||
30798 | wx_cv_type_sa_handler=void | |
30799 | ||
30800 | fi | |
ac1cb8d3 | 30801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30802 | |
30803 | fi | |
30804 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
30805 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
30806 | ||
30807 | ac_ext=c | |
30808 | ac_cpp='$CPP $CPPFLAGS' | |
30809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30812 | ||
30813 | ||
30814 | cat >>confdefs.h <<_ACEOF | |
30815 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
30816 | _ACEOF | |
30817 | ||
30818 | fi | |
30819 | fi | |
30820 | ||
30821 | ||
30822 | ||
30823 | for ac_func in mkstemp mktemp | |
30824 | do | |
30825 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30826 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30827 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30828 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30830 | else | |
30831 | cat >conftest.$ac_ext <<_ACEOF | |
30832 | /* confdefs.h. */ | |
30833 | _ACEOF | |
30834 | cat confdefs.h >>conftest.$ac_ext | |
30835 | cat >>conftest.$ac_ext <<_ACEOF | |
30836 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30837 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30838 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30839 | #define $ac_func innocuous_$ac_func | |
30840 | ||
a848cd7e SC |
30841 | /* System header to define __stub macros and hopefully few prototypes, |
30842 | which can conflict with char $ac_func (); below. | |
30843 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30844 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30845 | |
a848cd7e SC |
30846 | #ifdef __STDC__ |
30847 | # include <limits.h> | |
30848 | #else | |
30849 | # include <assert.h> | |
30850 | #endif | |
ac1cb8d3 VS |
30851 | |
30852 | #undef $ac_func | |
30853 | ||
a848cd7e SC |
30854 | /* Override any gcc2 internal prototype to avoid an error. */ |
30855 | #ifdef __cplusplus | |
30856 | extern "C" | |
30857 | { | |
30858 | #endif | |
30859 | /* We use char because int might match the return type of a gcc2 | |
30860 | builtin and then its argument prototype would still apply. */ | |
30861 | char $ac_func (); | |
30862 | /* The GNU C library defines this for functions which it implements | |
30863 | to always fail with ENOSYS. Some functions are actually named | |
30864 | something starting with __ and the normal name is an alias. */ | |
30865 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30866 | choke me | |
30867 | #else | |
30868 | char (*f) () = $ac_func; | |
30869 | #endif | |
30870 | #ifdef __cplusplus | |
30871 | } | |
30872 | #endif | |
30873 | ||
30874 | int | |
30875 | main () | |
30876 | { | |
30877 | return f != $ac_func; | |
30878 | ; | |
30879 | return 0; | |
30880 | } | |
30881 | _ACEOF | |
30882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30884 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30885 | ac_status=$? |
ac1cb8d3 VS |
30886 | grep -v '^ *+' conftest.er1 >conftest.err |
30887 | rm -f conftest.er1 | |
30888 | cat conftest.err >&5 | |
a848cd7e SC |
30889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30890 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30891 | { ac_try='test -z "$ac_c_werror_flag" |
30892 | || test ! -s conftest.err' | |
30893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30894 | (eval $ac_try) 2>&5 | |
30895 | ac_status=$? | |
30896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30897 | (exit $ac_status); }; } && | |
30898 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30900 | (eval $ac_try) 2>&5 | |
30901 | ac_status=$? | |
30902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30903 | (exit $ac_status); }; }; then | |
30904 | eval "$as_ac_var=yes" | |
30905 | else | |
30906 | echo "$as_me: failed program was:" >&5 | |
30907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30908 | ||
30909 | eval "$as_ac_var=no" | |
30910 | fi | |
ac1cb8d3 VS |
30911 | rm -f conftest.err conftest.$ac_objext \ |
30912 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30913 | fi |
30914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30915 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30916 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30917 | cat >>confdefs.h <<_ACEOF | |
30918 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30919 | _ACEOF | |
30920 | break | |
30921 | fi | |
30922 | done | |
30923 | ||
30924 | ||
30925 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
30926 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
30927 | if test "${wx_cv_func_statfs+set}" = set; then | |
30928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30929 | else | |
30930 | cat >conftest.$ac_ext <<_ACEOF | |
30931 | /* confdefs.h. */ | |
30932 | _ACEOF | |
30933 | cat confdefs.h >>conftest.$ac_ext | |
30934 | cat >>conftest.$ac_ext <<_ACEOF | |
30935 | /* end confdefs.h. */ | |
30936 | ||
30937 | #if defined(__BSD__) | |
30938 | #include <sys/param.h> | |
30939 | #include <sys/mount.h> | |
30940 | #else | |
30941 | #include <sys/vfs.h> | |
30942 | #endif | |
30943 | ||
30944 | int | |
30945 | main () | |
30946 | { | |
30947 | ||
30948 | long l; | |
30949 | struct statfs fs; | |
30950 | statfs("/", &fs); | |
30951 | l = fs.f_bsize; | |
30952 | l += fs.f_blocks; | |
30953 | l += fs.f_bavail; | |
30954 | ||
30955 | ; | |
30956 | return 0; | |
30957 | } | |
30958 | _ACEOF | |
30959 | rm -f conftest.$ac_objext | |
30960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30961 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30962 | ac_status=$? |
ac1cb8d3 VS |
30963 | grep -v '^ *+' conftest.er1 >conftest.err |
30964 | rm -f conftest.er1 | |
30965 | cat conftest.err >&5 | |
a848cd7e SC |
30966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30967 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30968 | { ac_try='test -z "$ac_c_werror_flag" |
30969 | || test ! -s conftest.err' | |
30970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30971 | (eval $ac_try) 2>&5 | |
30972 | ac_status=$? | |
30973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30974 | (exit $ac_status); }; } && | |
30975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30977 | (eval $ac_try) 2>&5 | |
30978 | ac_status=$? | |
30979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30980 | (exit $ac_status); }; }; then | |
30981 | ||
30982 | wx_cv_func_statfs=yes | |
30983 | ||
30984 | else | |
30985 | echo "$as_me: failed program was:" >&5 | |
30986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30987 | ||
30988 | ||
30989 | wx_cv_func_statfs=no | |
30990 | ||
30991 | ||
30992 | fi | |
ac1cb8d3 | 30993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30994 | |
30995 | fi | |
30996 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
30997 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
30998 | ||
30999 | if test "$wx_cv_func_statfs" = "yes"; then | |
31000 | wx_cv_type_statvfs_t="struct statfs" | |
31001 | cat >>confdefs.h <<\_ACEOF | |
31002 | #define HAVE_STATFS 1 | |
31003 | _ACEOF | |
31004 | ||
31005 | else | |
31006 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
31007 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
31008 | if test "${wx_cv_func_statvfs+set}" = set; then | |
31009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31010 | else | |
31011 | cat >conftest.$ac_ext <<_ACEOF | |
31012 | /* confdefs.h. */ | |
31013 | _ACEOF | |
31014 | cat confdefs.h >>conftest.$ac_ext | |
31015 | cat >>conftest.$ac_ext <<_ACEOF | |
31016 | /* end confdefs.h. */ | |
31017 | ||
31018 | #include <stddef.h> | |
31019 | #include <sys/statvfs.h> | |
31020 | ||
31021 | int | |
31022 | main () | |
31023 | { | |
31024 | ||
31025 | statvfs("/", NULL); | |
31026 | ||
31027 | ; | |
31028 | return 0; | |
31029 | } | |
31030 | _ACEOF | |
31031 | rm -f conftest.$ac_objext | |
31032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31033 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31034 | ac_status=$? |
ac1cb8d3 VS |
31035 | grep -v '^ *+' conftest.er1 >conftest.err |
31036 | rm -f conftest.er1 | |
31037 | cat conftest.err >&5 | |
a848cd7e SC |
31038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31039 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31040 | { ac_try='test -z "$ac_c_werror_flag" |
31041 | || test ! -s conftest.err' | |
31042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31043 | (eval $ac_try) 2>&5 | |
31044 | ac_status=$? | |
31045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31046 | (exit $ac_status); }; } && | |
31047 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31049 | (eval $ac_try) 2>&5 | |
31050 | ac_status=$? | |
31051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31052 | (exit $ac_status); }; }; then | |
31053 | wx_cv_func_statvfs=yes | |
31054 | else | |
31055 | echo "$as_me: failed program was:" >&5 | |
31056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31057 | ||
31058 | wx_cv_func_statvfs=no | |
31059 | ||
31060 | fi | |
ac1cb8d3 | 31061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31062 | |
31063 | fi | |
31064 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
31065 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
31066 | ||
31067 | if test "$wx_cv_func_statvfs" = "yes"; then | |
31068 | ||
31069 | ||
31070 | ac_ext=cc | |
31071 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31072 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31073 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31074 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31075 | ||
31076 | ||
31077 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
31078 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
31079 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
31080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31081 | else | |
31082 | cat >conftest.$ac_ext <<_ACEOF | |
31083 | /* confdefs.h. */ | |
31084 | _ACEOF | |
31085 | cat confdefs.h >>conftest.$ac_ext | |
31086 | cat >>conftest.$ac_ext <<_ACEOF | |
31087 | /* end confdefs.h. */ | |
31088 | ||
31089 | #include <sys/statvfs.h> | |
31090 | ||
31091 | int | |
31092 | main () | |
31093 | { | |
31094 | ||
31095 | long l; | |
31096 | statvfs_t fs; | |
31097 | statvfs("/", &fs); | |
31098 | l = fs.f_bsize; | |
31099 | l += fs.f_blocks; | |
31100 | l += fs.f_bavail; | |
31101 | ||
31102 | ; | |
31103 | return 0; | |
31104 | } | |
31105 | _ACEOF | |
31106 | rm -f conftest.$ac_objext | |
31107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31108 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31109 | ac_status=$? |
ac1cb8d3 VS |
31110 | grep -v '^ *+' conftest.er1 >conftest.err |
31111 | rm -f conftest.er1 | |
31112 | cat conftest.err >&5 | |
a848cd7e SC |
31113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31114 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31115 | { ac_try='test -z "$ac_cxx_werror_flag" |
31116 | || test ! -s conftest.err' | |
31117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31118 | (eval $ac_try) 2>&5 | |
31119 | ac_status=$? | |
31120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31121 | (exit $ac_status); }; } && | |
31122 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31124 | (eval $ac_try) 2>&5 | |
31125 | ac_status=$? | |
31126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31127 | (exit $ac_status); }; }; then | |
31128 | wx_cv_type_statvfs_t=statvfs_t | |
31129 | else | |
31130 | echo "$as_me: failed program was:" >&5 | |
31131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31132 | ||
31133 | ||
31134 | cat >conftest.$ac_ext <<_ACEOF | |
31135 | /* confdefs.h. */ | |
31136 | _ACEOF | |
31137 | cat confdefs.h >>conftest.$ac_ext | |
31138 | cat >>conftest.$ac_ext <<_ACEOF | |
31139 | /* end confdefs.h. */ | |
31140 | ||
31141 | #include <sys/statvfs.h> | |
31142 | ||
31143 | int | |
31144 | main () | |
31145 | { | |
31146 | ||
31147 | long l; | |
31148 | struct statvfs fs; | |
31149 | statvfs("/", &fs); | |
31150 | l = fs.f_bsize; | |
31151 | l += fs.f_blocks; | |
31152 | l += fs.f_bavail; | |
31153 | ||
31154 | ; | |
31155 | return 0; | |
31156 | } | |
31157 | _ACEOF | |
31158 | rm -f conftest.$ac_objext | |
31159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31160 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31161 | ac_status=$? |
ac1cb8d3 VS |
31162 | grep -v '^ *+' conftest.er1 >conftest.err |
31163 | rm -f conftest.er1 | |
31164 | cat conftest.err >&5 | |
a848cd7e SC |
31165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31166 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31167 | { ac_try='test -z "$ac_cxx_werror_flag" |
31168 | || test ! -s conftest.err' | |
31169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31170 | (eval $ac_try) 2>&5 | |
31171 | ac_status=$? | |
31172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31173 | (exit $ac_status); }; } && | |
31174 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31176 | (eval $ac_try) 2>&5 | |
31177 | ac_status=$? | |
31178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31179 | (exit $ac_status); }; }; then | |
31180 | wx_cv_type_statvfs_t="struct statvfs" | |
31181 | else | |
31182 | echo "$as_me: failed program was:" >&5 | |
31183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31184 | ||
31185 | wx_cv_type_statvfs_t="unknown" | |
31186 | ||
31187 | fi | |
ac1cb8d3 | 31188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31189 | |
31190 | ||
31191 | fi | |
ac1cb8d3 | 31192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31193 | |
31194 | fi | |
31195 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
31196 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
31197 | ||
31198 | ac_ext=c | |
31199 | ac_cpp='$CPP $CPPFLAGS' | |
31200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31203 | ||
31204 | ||
31205 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
31206 | cat >>confdefs.h <<\_ACEOF | |
31207 | #define HAVE_STATVFS 1 | |
31208 | _ACEOF | |
31209 | ||
31210 | fi | |
31211 | else | |
31212 | wx_cv_type_statvfs_t="unknown" | |
31213 | fi | |
31214 | fi | |
31215 | ||
31216 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
31217 | cat >>confdefs.h <<_ACEOF | |
31218 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
31219 | _ACEOF | |
31220 | ||
31221 | else | |
31222 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
31223 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
31224 | fi | |
31225 | ||
31226 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
31227 | ||
31228 | ||
31229 | for ac_func in fcntl flock | |
31230 | do | |
31231 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31232 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31233 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31234 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31236 | else | |
31237 | cat >conftest.$ac_ext <<_ACEOF | |
31238 | /* confdefs.h. */ | |
31239 | _ACEOF | |
31240 | cat confdefs.h >>conftest.$ac_ext | |
31241 | cat >>conftest.$ac_ext <<_ACEOF | |
31242 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31243 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31244 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31245 | #define $ac_func innocuous_$ac_func | |
31246 | ||
a848cd7e SC |
31247 | /* System header to define __stub macros and hopefully few prototypes, |
31248 | which can conflict with char $ac_func (); below. | |
31249 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31250 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31251 | |
a848cd7e SC |
31252 | #ifdef __STDC__ |
31253 | # include <limits.h> | |
31254 | #else | |
31255 | # include <assert.h> | |
31256 | #endif | |
ac1cb8d3 VS |
31257 | |
31258 | #undef $ac_func | |
31259 | ||
a848cd7e SC |
31260 | /* Override any gcc2 internal prototype to avoid an error. */ |
31261 | #ifdef __cplusplus | |
31262 | extern "C" | |
31263 | { | |
31264 | #endif | |
31265 | /* We use char because int might match the return type of a gcc2 | |
31266 | builtin and then its argument prototype would still apply. */ | |
31267 | char $ac_func (); | |
31268 | /* The GNU C library defines this for functions which it implements | |
31269 | to always fail with ENOSYS. Some functions are actually named | |
31270 | something starting with __ and the normal name is an alias. */ | |
31271 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31272 | choke me | |
31273 | #else | |
31274 | char (*f) () = $ac_func; | |
31275 | #endif | |
31276 | #ifdef __cplusplus | |
31277 | } | |
31278 | #endif | |
31279 | ||
31280 | int | |
31281 | main () | |
31282 | { | |
31283 | return f != $ac_func; | |
31284 | ; | |
31285 | return 0; | |
31286 | } | |
31287 | _ACEOF | |
31288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31290 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31291 | ac_status=$? |
ac1cb8d3 VS |
31292 | grep -v '^ *+' conftest.er1 >conftest.err |
31293 | rm -f conftest.er1 | |
31294 | cat conftest.err >&5 | |
a848cd7e SC |
31295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31296 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31297 | { ac_try='test -z "$ac_c_werror_flag" |
31298 | || test ! -s conftest.err' | |
31299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31300 | (eval $ac_try) 2>&5 | |
31301 | ac_status=$? | |
31302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31303 | (exit $ac_status); }; } && | |
31304 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31306 | (eval $ac_try) 2>&5 | |
31307 | ac_status=$? | |
31308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31309 | (exit $ac_status); }; }; then | |
31310 | eval "$as_ac_var=yes" | |
31311 | else | |
31312 | echo "$as_me: failed program was:" >&5 | |
31313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31314 | ||
31315 | eval "$as_ac_var=no" | |
31316 | fi | |
ac1cb8d3 VS |
31317 | rm -f conftest.err conftest.$ac_objext \ |
31318 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31319 | fi |
31320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31321 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31322 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31323 | cat >>confdefs.h <<_ACEOF | |
31324 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31325 | _ACEOF | |
31326 | break | |
31327 | fi | |
31328 | done | |
31329 | ||
31330 | ||
31331 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
31332 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
31333 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
31334 | wxUSE_SNGLINST_CHECKER=no | |
31335 | fi | |
31336 | fi | |
31337 | ||
31338 | ||
31339 | for ac_func in timegm | |
31340 | do | |
31341 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31342 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31343 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31344 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31346 | else | |
31347 | cat >conftest.$ac_ext <<_ACEOF | |
31348 | /* confdefs.h. */ | |
31349 | _ACEOF | |
31350 | cat confdefs.h >>conftest.$ac_ext | |
31351 | cat >>conftest.$ac_ext <<_ACEOF | |
31352 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31353 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31354 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31355 | #define $ac_func innocuous_$ac_func | |
31356 | ||
a848cd7e SC |
31357 | /* System header to define __stub macros and hopefully few prototypes, |
31358 | which can conflict with char $ac_func (); below. | |
31359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31360 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31361 | |
a848cd7e SC |
31362 | #ifdef __STDC__ |
31363 | # include <limits.h> | |
31364 | #else | |
31365 | # include <assert.h> | |
31366 | #endif | |
ac1cb8d3 VS |
31367 | |
31368 | #undef $ac_func | |
31369 | ||
a848cd7e SC |
31370 | /* Override any gcc2 internal prototype to avoid an error. */ |
31371 | #ifdef __cplusplus | |
31372 | extern "C" | |
31373 | { | |
31374 | #endif | |
31375 | /* We use char because int might match the return type of a gcc2 | |
31376 | builtin and then its argument prototype would still apply. */ | |
31377 | char $ac_func (); | |
31378 | /* The GNU C library defines this for functions which it implements | |
31379 | to always fail with ENOSYS. Some functions are actually named | |
31380 | something starting with __ and the normal name is an alias. */ | |
31381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31382 | choke me | |
31383 | #else | |
31384 | char (*f) () = $ac_func; | |
31385 | #endif | |
31386 | #ifdef __cplusplus | |
31387 | } | |
31388 | #endif | |
31389 | ||
31390 | int | |
31391 | main () | |
31392 | { | |
31393 | return f != $ac_func; | |
31394 | ; | |
31395 | return 0; | |
31396 | } | |
31397 | _ACEOF | |
31398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31400 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31401 | ac_status=$? |
ac1cb8d3 VS |
31402 | grep -v '^ *+' conftest.er1 >conftest.err |
31403 | rm -f conftest.er1 | |
31404 | cat conftest.err >&5 | |
a848cd7e SC |
31405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31406 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31407 | { ac_try='test -z "$ac_c_werror_flag" |
31408 | || test ! -s conftest.err' | |
31409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31410 | (eval $ac_try) 2>&5 | |
31411 | ac_status=$? | |
31412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31413 | (exit $ac_status); }; } && | |
31414 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31416 | (eval $ac_try) 2>&5 | |
31417 | ac_status=$? | |
31418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31419 | (exit $ac_status); }; }; then | |
31420 | eval "$as_ac_var=yes" | |
31421 | else | |
31422 | echo "$as_me: failed program was:" >&5 | |
31423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31424 | ||
31425 | eval "$as_ac_var=no" | |
31426 | fi | |
ac1cb8d3 VS |
31427 | rm -f conftest.err conftest.$ac_objext \ |
31428 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31429 | fi |
31430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31431 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31432 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31433 | cat >>confdefs.h <<_ACEOF | |
31434 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31435 | _ACEOF | |
31436 | ||
31437 | fi | |
31438 | done | |
31439 | ||
31440 | ||
31441 | ||
31442 | ||
31443 | for ac_func in putenv setenv | |
31444 | do | |
31445 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31446 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31447 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31448 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31450 | else | |
31451 | cat >conftest.$ac_ext <<_ACEOF | |
31452 | /* confdefs.h. */ | |
31453 | _ACEOF | |
31454 | cat confdefs.h >>conftest.$ac_ext | |
31455 | cat >>conftest.$ac_ext <<_ACEOF | |
31456 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31457 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31458 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31459 | #define $ac_func innocuous_$ac_func | |
31460 | ||
a848cd7e SC |
31461 | /* System header to define __stub macros and hopefully few prototypes, |
31462 | which can conflict with char $ac_func (); below. | |
31463 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31464 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31465 | |
a848cd7e SC |
31466 | #ifdef __STDC__ |
31467 | # include <limits.h> | |
31468 | #else | |
31469 | # include <assert.h> | |
31470 | #endif | |
ac1cb8d3 VS |
31471 | |
31472 | #undef $ac_func | |
31473 | ||
a848cd7e SC |
31474 | /* Override any gcc2 internal prototype to avoid an error. */ |
31475 | #ifdef __cplusplus | |
31476 | extern "C" | |
31477 | { | |
31478 | #endif | |
31479 | /* We use char because int might match the return type of a gcc2 | |
31480 | builtin and then its argument prototype would still apply. */ | |
31481 | char $ac_func (); | |
31482 | /* The GNU C library defines this for functions which it implements | |
31483 | to always fail with ENOSYS. Some functions are actually named | |
31484 | something starting with __ and the normal name is an alias. */ | |
31485 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31486 | choke me | |
31487 | #else | |
31488 | char (*f) () = $ac_func; | |
31489 | #endif | |
31490 | #ifdef __cplusplus | |
31491 | } | |
31492 | #endif | |
31493 | ||
31494 | int | |
31495 | main () | |
31496 | { | |
31497 | return f != $ac_func; | |
31498 | ; | |
31499 | return 0; | |
31500 | } | |
31501 | _ACEOF | |
31502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31504 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31505 | ac_status=$? |
ac1cb8d3 VS |
31506 | grep -v '^ *+' conftest.er1 >conftest.err |
31507 | rm -f conftest.er1 | |
31508 | cat conftest.err >&5 | |
a848cd7e SC |
31509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31510 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31511 | { ac_try='test -z "$ac_c_werror_flag" |
31512 | || test ! -s conftest.err' | |
31513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31514 | (eval $ac_try) 2>&5 | |
31515 | ac_status=$? | |
31516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31517 | (exit $ac_status); }; } && | |
31518 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31520 | (eval $ac_try) 2>&5 | |
31521 | ac_status=$? | |
31522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31523 | (exit $ac_status); }; }; then | |
31524 | eval "$as_ac_var=yes" | |
31525 | else | |
31526 | echo "$as_me: failed program was:" >&5 | |
31527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31528 | ||
31529 | eval "$as_ac_var=no" | |
31530 | fi | |
ac1cb8d3 VS |
31531 | rm -f conftest.err conftest.$ac_objext \ |
31532 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31533 | fi |
31534 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31535 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31536 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31537 | cat >>confdefs.h <<_ACEOF | |
31538 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31539 | _ACEOF | |
31540 | break | |
31541 | fi | |
31542 | done | |
31543 | ||
31544 | ||
31545 | HAVE_SOME_SLEEP_FUNC=0 | |
31546 | if test "$USE_BEOS" = 1; then | |
31547 | cat >>confdefs.h <<\_ACEOF | |
31548 | #define HAVE_SLEEP 1 | |
31549 | _ACEOF | |
31550 | ||
31551 | HAVE_SOME_SLEEP_FUNC=1 | |
31552 | fi | |
31553 | ||
31554 | if test "$USE_DARWIN" = 1; then | |
31555 | cat >>confdefs.h <<\_ACEOF | |
31556 | #define HAVE_USLEEP 1 | |
31557 | _ACEOF | |
31558 | ||
31559 | HAVE_SOME_SLEEP_FUNC=1 | |
31560 | fi | |
31561 | ||
31562 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
31563 | POSIX4_LINK= | |
31564 | ||
31565 | for ac_func in nanosleep | |
31566 | do | |
31567 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31568 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31569 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31570 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31572 | else | |
31573 | cat >conftest.$ac_ext <<_ACEOF | |
31574 | /* confdefs.h. */ | |
31575 | _ACEOF | |
31576 | cat confdefs.h >>conftest.$ac_ext | |
31577 | cat >>conftest.$ac_ext <<_ACEOF | |
31578 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31579 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31580 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31581 | #define $ac_func innocuous_$ac_func | |
31582 | ||
a848cd7e SC |
31583 | /* System header to define __stub macros and hopefully few prototypes, |
31584 | which can conflict with char $ac_func (); below. | |
31585 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31586 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31587 | |
a848cd7e SC |
31588 | #ifdef __STDC__ |
31589 | # include <limits.h> | |
31590 | #else | |
31591 | # include <assert.h> | |
31592 | #endif | |
ac1cb8d3 VS |
31593 | |
31594 | #undef $ac_func | |
31595 | ||
a848cd7e SC |
31596 | /* Override any gcc2 internal prototype to avoid an error. */ |
31597 | #ifdef __cplusplus | |
31598 | extern "C" | |
31599 | { | |
31600 | #endif | |
31601 | /* We use char because int might match the return type of a gcc2 | |
31602 | builtin and then its argument prototype would still apply. */ | |
31603 | char $ac_func (); | |
31604 | /* The GNU C library defines this for functions which it implements | |
31605 | to always fail with ENOSYS. Some functions are actually named | |
31606 | something starting with __ and the normal name is an alias. */ | |
31607 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31608 | choke me | |
31609 | #else | |
31610 | char (*f) () = $ac_func; | |
31611 | #endif | |
31612 | #ifdef __cplusplus | |
31613 | } | |
31614 | #endif | |
31615 | ||
31616 | int | |
31617 | main () | |
31618 | { | |
31619 | return f != $ac_func; | |
31620 | ; | |
31621 | return 0; | |
31622 | } | |
31623 | _ACEOF | |
31624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31626 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31627 | ac_status=$? |
ac1cb8d3 VS |
31628 | grep -v '^ *+' conftest.er1 >conftest.err |
31629 | rm -f conftest.er1 | |
31630 | cat conftest.err >&5 | |
a848cd7e SC |
31631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31632 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31633 | { ac_try='test -z "$ac_c_werror_flag" |
31634 | || test ! -s conftest.err' | |
31635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31636 | (eval $ac_try) 2>&5 | |
31637 | ac_status=$? | |
31638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31639 | (exit $ac_status); }; } && | |
31640 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31642 | (eval $ac_try) 2>&5 | |
31643 | ac_status=$? | |
31644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31645 | (exit $ac_status); }; }; then | |
31646 | eval "$as_ac_var=yes" | |
31647 | else | |
31648 | echo "$as_me: failed program was:" >&5 | |
31649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31650 | ||
31651 | eval "$as_ac_var=no" | |
31652 | fi | |
ac1cb8d3 VS |
31653 | rm -f conftest.err conftest.$ac_objext \ |
31654 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31655 | fi |
31656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31657 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31658 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31659 | cat >>confdefs.h <<_ACEOF | |
31660 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31661 | _ACEOF | |
31662 | cat >>confdefs.h <<\_ACEOF | |
31663 | #define HAVE_NANOSLEEP 1 | |
31664 | _ACEOF | |
31665 | ||
31666 | else | |
31667 | ||
31668 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
31669 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
31670 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
31671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31672 | else | |
31673 | ac_check_lib_save_LIBS=$LIBS | |
31674 | LIBS="-lposix4 $LIBS" | |
31675 | cat >conftest.$ac_ext <<_ACEOF | |
31676 | /* confdefs.h. */ | |
31677 | _ACEOF | |
31678 | cat confdefs.h >>conftest.$ac_ext | |
31679 | cat >>conftest.$ac_ext <<_ACEOF | |
31680 | /* end confdefs.h. */ | |
31681 | ||
31682 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31683 | #ifdef __cplusplus | |
31684 | extern "C" | |
31685 | #endif | |
31686 | /* We use char because int might match the return type of a gcc2 | |
31687 | builtin and then its argument prototype would still apply. */ | |
31688 | char nanosleep (); | |
31689 | int | |
31690 | main () | |
31691 | { | |
31692 | nanosleep (); | |
31693 | ; | |
31694 | return 0; | |
31695 | } | |
31696 | _ACEOF | |
31697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31699 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31700 | ac_status=$? |
ac1cb8d3 VS |
31701 | grep -v '^ *+' conftest.er1 >conftest.err |
31702 | rm -f conftest.er1 | |
31703 | cat conftest.err >&5 | |
a848cd7e SC |
31704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31705 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31706 | { ac_try='test -z "$ac_c_werror_flag" |
31707 | || test ! -s conftest.err' | |
31708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31709 | (eval $ac_try) 2>&5 | |
31710 | ac_status=$? | |
31711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31712 | (exit $ac_status); }; } && | |
31713 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31715 | (eval $ac_try) 2>&5 | |
31716 | ac_status=$? | |
31717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31718 | (exit $ac_status); }; }; then | |
31719 | ac_cv_lib_posix4_nanosleep=yes | |
31720 | else | |
31721 | echo "$as_me: failed program was:" >&5 | |
31722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31723 | ||
31724 | ac_cv_lib_posix4_nanosleep=no | |
31725 | fi | |
ac1cb8d3 VS |
31726 | rm -f conftest.err conftest.$ac_objext \ |
31727 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31728 | LIBS=$ac_check_lib_save_LIBS |
31729 | fi | |
31730 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
31731 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
31732 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
31733 | ||
31734 | cat >>confdefs.h <<\_ACEOF | |
31735 | #define HAVE_NANOSLEEP 1 | |
31736 | _ACEOF | |
31737 | ||
31738 | POSIX4_LINK=" -lposix4" | |
31739 | ||
31740 | else | |
31741 | ||
31742 | ||
31743 | for ac_func in usleep | |
31744 | do | |
31745 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31746 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31748 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31750 | else | |
31751 | cat >conftest.$ac_ext <<_ACEOF | |
31752 | /* confdefs.h. */ | |
31753 | _ACEOF | |
31754 | cat confdefs.h >>conftest.$ac_ext | |
31755 | cat >>conftest.$ac_ext <<_ACEOF | |
31756 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31757 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31759 | #define $ac_func innocuous_$ac_func | |
31760 | ||
a848cd7e SC |
31761 | /* System header to define __stub macros and hopefully few prototypes, |
31762 | which can conflict with char $ac_func (); below. | |
31763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31764 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31765 | |
a848cd7e SC |
31766 | #ifdef __STDC__ |
31767 | # include <limits.h> | |
31768 | #else | |
31769 | # include <assert.h> | |
31770 | #endif | |
ac1cb8d3 VS |
31771 | |
31772 | #undef $ac_func | |
31773 | ||
a848cd7e SC |
31774 | /* Override any gcc2 internal prototype to avoid an error. */ |
31775 | #ifdef __cplusplus | |
31776 | extern "C" | |
31777 | { | |
31778 | #endif | |
31779 | /* We use char because int might match the return type of a gcc2 | |
31780 | builtin and then its argument prototype would still apply. */ | |
31781 | char $ac_func (); | |
31782 | /* The GNU C library defines this for functions which it implements | |
31783 | to always fail with ENOSYS. Some functions are actually named | |
31784 | something starting with __ and the normal name is an alias. */ | |
31785 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31786 | choke me | |
31787 | #else | |
31788 | char (*f) () = $ac_func; | |
31789 | #endif | |
31790 | #ifdef __cplusplus | |
31791 | } | |
31792 | #endif | |
31793 | ||
31794 | int | |
31795 | main () | |
31796 | { | |
31797 | return f != $ac_func; | |
31798 | ; | |
31799 | return 0; | |
31800 | } | |
31801 | _ACEOF | |
31802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31804 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31805 | ac_status=$? |
ac1cb8d3 VS |
31806 | grep -v '^ *+' conftest.er1 >conftest.err |
31807 | rm -f conftest.er1 | |
31808 | cat conftest.err >&5 | |
a848cd7e SC |
31809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31810 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31811 | { ac_try='test -z "$ac_c_werror_flag" |
31812 | || test ! -s conftest.err' | |
31813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31814 | (eval $ac_try) 2>&5 | |
31815 | ac_status=$? | |
31816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31817 | (exit $ac_status); }; } && | |
31818 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31820 | (eval $ac_try) 2>&5 | |
31821 | ac_status=$? | |
31822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31823 | (exit $ac_status); }; }; then | |
31824 | eval "$as_ac_var=yes" | |
31825 | else | |
31826 | echo "$as_me: failed program was:" >&5 | |
31827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31828 | ||
31829 | eval "$as_ac_var=no" | |
31830 | fi | |
ac1cb8d3 VS |
31831 | rm -f conftest.err conftest.$ac_objext \ |
31832 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31833 | fi |
31834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31835 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31836 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31837 | cat >>confdefs.h <<_ACEOF | |
31838 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31839 | _ACEOF | |
31840 | cat >>confdefs.h <<\_ACEOF | |
31841 | #define HAVE_USLEEP 1 | |
31842 | _ACEOF | |
31843 | ||
31844 | else | |
31845 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
31846 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
31847 | ||
31848 | fi | |
31849 | done | |
31850 | ||
31851 | ||
31852 | ||
31853 | fi | |
31854 | ||
31855 | ||
31856 | ||
31857 | fi | |
31858 | done | |
31859 | ||
31860 | fi | |
31861 | ||
31862 | ||
31863 | ||
31864 | for ac_func in uname gethostname | |
31865 | do | |
31866 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31867 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31868 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31869 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31871 | else | |
31872 | cat >conftest.$ac_ext <<_ACEOF | |
31873 | /* confdefs.h. */ | |
31874 | _ACEOF | |
31875 | cat confdefs.h >>conftest.$ac_ext | |
31876 | cat >>conftest.$ac_ext <<_ACEOF | |
31877 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31878 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31880 | #define $ac_func innocuous_$ac_func | |
31881 | ||
a848cd7e SC |
31882 | /* System header to define __stub macros and hopefully few prototypes, |
31883 | which can conflict with char $ac_func (); below. | |
31884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31885 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31886 | |
a848cd7e SC |
31887 | #ifdef __STDC__ |
31888 | # include <limits.h> | |
31889 | #else | |
31890 | # include <assert.h> | |
31891 | #endif | |
ac1cb8d3 VS |
31892 | |
31893 | #undef $ac_func | |
31894 | ||
a848cd7e SC |
31895 | /* Override any gcc2 internal prototype to avoid an error. */ |
31896 | #ifdef __cplusplus | |
31897 | extern "C" | |
31898 | { | |
31899 | #endif | |
31900 | /* We use char because int might match the return type of a gcc2 | |
31901 | builtin and then its argument prototype would still apply. */ | |
31902 | char $ac_func (); | |
31903 | /* The GNU C library defines this for functions which it implements | |
31904 | to always fail with ENOSYS. Some functions are actually named | |
31905 | something starting with __ and the normal name is an alias. */ | |
31906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31907 | choke me | |
31908 | #else | |
31909 | char (*f) () = $ac_func; | |
31910 | #endif | |
31911 | #ifdef __cplusplus | |
31912 | } | |
31913 | #endif | |
31914 | ||
31915 | int | |
31916 | main () | |
31917 | { | |
31918 | return f != $ac_func; | |
31919 | ; | |
31920 | return 0; | |
31921 | } | |
31922 | _ACEOF | |
31923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31925 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31926 | ac_status=$? |
ac1cb8d3 VS |
31927 | grep -v '^ *+' conftest.er1 >conftest.err |
31928 | rm -f conftest.er1 | |
31929 | cat conftest.err >&5 | |
a848cd7e SC |
31930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31931 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31932 | { ac_try='test -z "$ac_c_werror_flag" |
31933 | || test ! -s conftest.err' | |
31934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31935 | (eval $ac_try) 2>&5 | |
31936 | ac_status=$? | |
31937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31938 | (exit $ac_status); }; } && | |
31939 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31941 | (eval $ac_try) 2>&5 | |
31942 | ac_status=$? | |
31943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31944 | (exit $ac_status); }; }; then | |
31945 | eval "$as_ac_var=yes" | |
31946 | else | |
31947 | echo "$as_me: failed program was:" >&5 | |
31948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31949 | ||
31950 | eval "$as_ac_var=no" | |
31951 | fi | |
ac1cb8d3 VS |
31952 | rm -f conftest.err conftest.$ac_objext \ |
31953 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31954 | fi |
31955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31956 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31957 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31958 | cat >>confdefs.h <<_ACEOF | |
31959 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31960 | _ACEOF | |
31961 | break | |
31962 | fi | |
31963 | done | |
31964 | ||
31965 | ||
31966 | ||
31967 | ||
31968 | ac_ext=cc | |
31969 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31970 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31971 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31972 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31973 | ||
31974 | ||
31975 | ||
31976 | for ac_func in strtok_r | |
31977 | do | |
31978 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31979 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31980 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31981 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31983 | else | |
31984 | cat >conftest.$ac_ext <<_ACEOF | |
31985 | /* confdefs.h. */ | |
31986 | _ACEOF | |
31987 | cat confdefs.h >>conftest.$ac_ext | |
31988 | cat >>conftest.$ac_ext <<_ACEOF | |
31989 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31990 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31992 | #define $ac_func innocuous_$ac_func | |
31993 | ||
a848cd7e SC |
31994 | /* System header to define __stub macros and hopefully few prototypes, |
31995 | which can conflict with char $ac_func (); below. | |
31996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31997 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31998 | |
a848cd7e SC |
31999 | #ifdef __STDC__ |
32000 | # include <limits.h> | |
32001 | #else | |
32002 | # include <assert.h> | |
32003 | #endif | |
ac1cb8d3 VS |
32004 | |
32005 | #undef $ac_func | |
32006 | ||
a848cd7e SC |
32007 | /* Override any gcc2 internal prototype to avoid an error. */ |
32008 | #ifdef __cplusplus | |
32009 | extern "C" | |
32010 | { | |
32011 | #endif | |
32012 | /* We use char because int might match the return type of a gcc2 | |
32013 | builtin and then its argument prototype would still apply. */ | |
32014 | char $ac_func (); | |
32015 | /* The GNU C library defines this for functions which it implements | |
32016 | to always fail with ENOSYS. Some functions are actually named | |
32017 | something starting with __ and the normal name is an alias. */ | |
32018 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32019 | choke me | |
32020 | #else | |
32021 | char (*f) () = $ac_func; | |
32022 | #endif | |
32023 | #ifdef __cplusplus | |
32024 | } | |
32025 | #endif | |
32026 | ||
32027 | int | |
32028 | main () | |
32029 | { | |
32030 | return f != $ac_func; | |
32031 | ; | |
32032 | return 0; | |
32033 | } | |
32034 | _ACEOF | |
32035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32037 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32038 | ac_status=$? |
ac1cb8d3 VS |
32039 | grep -v '^ *+' conftest.er1 >conftest.err |
32040 | rm -f conftest.er1 | |
32041 | cat conftest.err >&5 | |
a848cd7e SC |
32042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32043 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32044 | { ac_try='test -z "$ac_cxx_werror_flag" |
32045 | || test ! -s conftest.err' | |
32046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32047 | (eval $ac_try) 2>&5 | |
32048 | ac_status=$? | |
32049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32050 | (exit $ac_status); }; } && | |
32051 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32053 | (eval $ac_try) 2>&5 | |
32054 | ac_status=$? | |
32055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32056 | (exit $ac_status); }; }; then | |
32057 | eval "$as_ac_var=yes" | |
32058 | else | |
32059 | echo "$as_me: failed program was:" >&5 | |
32060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32061 | ||
32062 | eval "$as_ac_var=no" | |
32063 | fi | |
ac1cb8d3 VS |
32064 | rm -f conftest.err conftest.$ac_objext \ |
32065 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32066 | fi |
32067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32068 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32069 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32070 | cat >>confdefs.h <<_ACEOF | |
32071 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32072 | _ACEOF | |
32073 | ||
32074 | fi | |
32075 | done | |
32076 | ||
32077 | ||
32078 | ac_ext=c | |
32079 | ac_cpp='$CPP $CPPFLAGS' | |
32080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32083 | ||
32084 | ||
32085 | INET_LINK= | |
32086 | ||
32087 | for ac_func in inet_addr | |
32088 | do | |
32089 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32090 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32091 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32092 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32094 | else | |
32095 | cat >conftest.$ac_ext <<_ACEOF | |
32096 | /* confdefs.h. */ | |
32097 | _ACEOF | |
32098 | cat confdefs.h >>conftest.$ac_ext | |
32099 | cat >>conftest.$ac_ext <<_ACEOF | |
32100 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32101 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32102 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32103 | #define $ac_func innocuous_$ac_func | |
32104 | ||
a848cd7e SC |
32105 | /* System header to define __stub macros and hopefully few prototypes, |
32106 | which can conflict with char $ac_func (); below. | |
32107 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32108 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32109 | |
a848cd7e SC |
32110 | #ifdef __STDC__ |
32111 | # include <limits.h> | |
32112 | #else | |
32113 | # include <assert.h> | |
32114 | #endif | |
ac1cb8d3 VS |
32115 | |
32116 | #undef $ac_func | |
32117 | ||
a848cd7e SC |
32118 | /* Override any gcc2 internal prototype to avoid an error. */ |
32119 | #ifdef __cplusplus | |
32120 | extern "C" | |
32121 | { | |
32122 | #endif | |
32123 | /* We use char because int might match the return type of a gcc2 | |
32124 | builtin and then its argument prototype would still apply. */ | |
32125 | char $ac_func (); | |
32126 | /* The GNU C library defines this for functions which it implements | |
32127 | to always fail with ENOSYS. Some functions are actually named | |
32128 | something starting with __ and the normal name is an alias. */ | |
32129 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32130 | choke me | |
32131 | #else | |
32132 | char (*f) () = $ac_func; | |
32133 | #endif | |
32134 | #ifdef __cplusplus | |
32135 | } | |
32136 | #endif | |
32137 | ||
32138 | int | |
32139 | main () | |
32140 | { | |
32141 | return f != $ac_func; | |
32142 | ; | |
32143 | return 0; | |
32144 | } | |
32145 | _ACEOF | |
32146 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32148 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32149 | ac_status=$? |
ac1cb8d3 VS |
32150 | grep -v '^ *+' conftest.er1 >conftest.err |
32151 | rm -f conftest.er1 | |
32152 | cat conftest.err >&5 | |
a848cd7e SC |
32153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32154 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32155 | { ac_try='test -z "$ac_c_werror_flag" |
32156 | || test ! -s conftest.err' | |
32157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32158 | (eval $ac_try) 2>&5 | |
32159 | ac_status=$? | |
32160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32161 | (exit $ac_status); }; } && | |
32162 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32164 | (eval $ac_try) 2>&5 | |
32165 | ac_status=$? | |
32166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32167 | (exit $ac_status); }; }; then | |
32168 | eval "$as_ac_var=yes" | |
32169 | else | |
32170 | echo "$as_me: failed program was:" >&5 | |
32171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32172 | ||
32173 | eval "$as_ac_var=no" | |
32174 | fi | |
ac1cb8d3 VS |
32175 | rm -f conftest.err conftest.$ac_objext \ |
32176 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32177 | fi |
32178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32179 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32180 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32181 | cat >>confdefs.h <<_ACEOF | |
32182 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32183 | _ACEOF | |
32184 | cat >>confdefs.h <<\_ACEOF | |
32185 | #define HAVE_INET_ADDR 1 | |
32186 | _ACEOF | |
32187 | ||
32188 | else | |
32189 | ||
32190 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
32191 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
32192 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
32193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32194 | else | |
32195 | ac_check_lib_save_LIBS=$LIBS | |
32196 | LIBS="-lnsl $LIBS" | |
32197 | cat >conftest.$ac_ext <<_ACEOF | |
32198 | /* confdefs.h. */ | |
32199 | _ACEOF | |
32200 | cat confdefs.h >>conftest.$ac_ext | |
32201 | cat >>conftest.$ac_ext <<_ACEOF | |
32202 | /* end confdefs.h. */ | |
32203 | ||
32204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32205 | #ifdef __cplusplus | |
32206 | extern "C" | |
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 inet_addr (); | |
32211 | int | |
32212 | main () | |
32213 | { | |
32214 | inet_addr (); | |
32215 | ; | |
32216 | return 0; | |
32217 | } | |
32218 | _ACEOF | |
32219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32221 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32222 | ac_status=$? |
ac1cb8d3 VS |
32223 | grep -v '^ *+' conftest.er1 >conftest.err |
32224 | rm -f conftest.er1 | |
32225 | cat conftest.err >&5 | |
a848cd7e SC |
32226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32227 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32228 | { ac_try='test -z "$ac_c_werror_flag" |
32229 | || test ! -s conftest.err' | |
32230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32231 | (eval $ac_try) 2>&5 | |
32232 | ac_status=$? | |
32233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32234 | (exit $ac_status); }; } && | |
32235 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32237 | (eval $ac_try) 2>&5 | |
32238 | ac_status=$? | |
32239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32240 | (exit $ac_status); }; }; then | |
32241 | ac_cv_lib_nsl_inet_addr=yes | |
32242 | else | |
32243 | echo "$as_me: failed program was:" >&5 | |
32244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32245 | ||
32246 | ac_cv_lib_nsl_inet_addr=no | |
32247 | fi | |
ac1cb8d3 VS |
32248 | rm -f conftest.err conftest.$ac_objext \ |
32249 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32250 | LIBS=$ac_check_lib_save_LIBS |
32251 | fi | |
32252 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
32253 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
32254 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
32255 | INET_LINK="nsl" | |
32256 | else | |
32257 | ||
32258 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
32259 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
32260 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
32261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32262 | else | |
32263 | ac_check_lib_save_LIBS=$LIBS | |
32264 | LIBS="-lresolv $LIBS" | |
32265 | cat >conftest.$ac_ext <<_ACEOF | |
32266 | /* confdefs.h. */ | |
32267 | _ACEOF | |
32268 | cat confdefs.h >>conftest.$ac_ext | |
32269 | cat >>conftest.$ac_ext <<_ACEOF | |
32270 | /* end confdefs.h. */ | |
32271 | ||
32272 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32273 | #ifdef __cplusplus | |
32274 | extern "C" | |
32275 | #endif | |
32276 | /* We use char because int might match the return type of a gcc2 | |
32277 | builtin and then its argument prototype would still apply. */ | |
32278 | char inet_addr (); | |
32279 | int | |
32280 | main () | |
32281 | { | |
32282 | inet_addr (); | |
32283 | ; | |
32284 | return 0; | |
32285 | } | |
32286 | _ACEOF | |
32287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32289 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32290 | ac_status=$? |
ac1cb8d3 VS |
32291 | grep -v '^ *+' conftest.er1 >conftest.err |
32292 | rm -f conftest.er1 | |
32293 | cat conftest.err >&5 | |
a848cd7e SC |
32294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32295 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32296 | { ac_try='test -z "$ac_c_werror_flag" |
32297 | || test ! -s conftest.err' | |
32298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32299 | (eval $ac_try) 2>&5 | |
32300 | ac_status=$? | |
32301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32302 | (exit $ac_status); }; } && | |
32303 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32305 | (eval $ac_try) 2>&5 | |
32306 | ac_status=$? | |
32307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32308 | (exit $ac_status); }; }; then | |
32309 | ac_cv_lib_resolv_inet_addr=yes | |
32310 | else | |
32311 | echo "$as_me: failed program was:" >&5 | |
32312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32313 | ||
32314 | ac_cv_lib_resolv_inet_addr=no | |
32315 | fi | |
ac1cb8d3 VS |
32316 | rm -f conftest.err conftest.$ac_objext \ |
32317 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32318 | LIBS=$ac_check_lib_save_LIBS |
32319 | fi | |
32320 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
32321 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
32322 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
32323 | INET_LINK="resolv" | |
32324 | else | |
32325 | ||
32326 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
32327 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
32328 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
32329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32330 | else | |
32331 | ac_check_lib_save_LIBS=$LIBS | |
32332 | LIBS="-lsocket $LIBS" | |
32333 | cat >conftest.$ac_ext <<_ACEOF | |
32334 | /* confdefs.h. */ | |
32335 | _ACEOF | |
32336 | cat confdefs.h >>conftest.$ac_ext | |
32337 | cat >>conftest.$ac_ext <<_ACEOF | |
32338 | /* end confdefs.h. */ | |
32339 | ||
32340 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32341 | #ifdef __cplusplus | |
32342 | extern "C" | |
32343 | #endif | |
32344 | /* We use char because int might match the return type of a gcc2 | |
32345 | builtin and then its argument prototype would still apply. */ | |
32346 | char inet_addr (); | |
32347 | int | |
32348 | main () | |
32349 | { | |
32350 | inet_addr (); | |
32351 | ; | |
32352 | return 0; | |
32353 | } | |
32354 | _ACEOF | |
32355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32357 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32358 | ac_status=$? |
ac1cb8d3 VS |
32359 | grep -v '^ *+' conftest.er1 >conftest.err |
32360 | rm -f conftest.er1 | |
32361 | cat conftest.err >&5 | |
a848cd7e SC |
32362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32363 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32364 | { ac_try='test -z "$ac_c_werror_flag" |
32365 | || test ! -s conftest.err' | |
32366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32367 | (eval $ac_try) 2>&5 | |
32368 | ac_status=$? | |
32369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32370 | (exit $ac_status); }; } && | |
32371 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32373 | (eval $ac_try) 2>&5 | |
32374 | ac_status=$? | |
32375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32376 | (exit $ac_status); }; }; then | |
32377 | ac_cv_lib_socket_inet_addr=yes | |
32378 | else | |
32379 | echo "$as_me: failed program was:" >&5 | |
32380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32381 | ||
32382 | ac_cv_lib_socket_inet_addr=no | |
32383 | fi | |
ac1cb8d3 VS |
32384 | rm -f conftest.err conftest.$ac_objext \ |
32385 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32386 | LIBS=$ac_check_lib_save_LIBS |
32387 | fi | |
32388 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
32389 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
32390 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
32391 | INET_LINK="socket" | |
32392 | ||
32393 | fi | |
32394 | ||
32395 | ||
32396 | ||
32397 | fi | |
32398 | ||
32399 | ||
32400 | ||
32401 | fi | |
32402 | ||
32403 | ||
32404 | ||
32405 | fi | |
32406 | done | |
32407 | ||
32408 | ||
32409 | ||
32410 | for ac_func in inet_aton | |
32411 | do | |
32412 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32413 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32414 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32415 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32417 | else | |
32418 | cat >conftest.$ac_ext <<_ACEOF | |
32419 | /* confdefs.h. */ | |
32420 | _ACEOF | |
32421 | cat confdefs.h >>conftest.$ac_ext | |
32422 | cat >>conftest.$ac_ext <<_ACEOF | |
32423 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32424 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32426 | #define $ac_func innocuous_$ac_func | |
32427 | ||
a848cd7e SC |
32428 | /* System header to define __stub macros and hopefully few prototypes, |
32429 | which can conflict with char $ac_func (); below. | |
32430 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32431 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32432 | |
a848cd7e SC |
32433 | #ifdef __STDC__ |
32434 | # include <limits.h> | |
32435 | #else | |
32436 | # include <assert.h> | |
32437 | #endif | |
ac1cb8d3 VS |
32438 | |
32439 | #undef $ac_func | |
32440 | ||
a848cd7e SC |
32441 | /* Override any gcc2 internal prototype to avoid an error. */ |
32442 | #ifdef __cplusplus | |
32443 | extern "C" | |
32444 | { | |
32445 | #endif | |
32446 | /* We use char because int might match the return type of a gcc2 | |
32447 | builtin and then its argument prototype would still apply. */ | |
32448 | char $ac_func (); | |
32449 | /* The GNU C library defines this for functions which it implements | |
32450 | to always fail with ENOSYS. Some functions are actually named | |
32451 | something starting with __ and the normal name is an alias. */ | |
32452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32453 | choke me | |
32454 | #else | |
32455 | char (*f) () = $ac_func; | |
32456 | #endif | |
32457 | #ifdef __cplusplus | |
32458 | } | |
32459 | #endif | |
32460 | ||
32461 | int | |
32462 | main () | |
32463 | { | |
32464 | return f != $ac_func; | |
32465 | ; | |
32466 | return 0; | |
32467 | } | |
32468 | _ACEOF | |
32469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32471 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32472 | ac_status=$? |
ac1cb8d3 VS |
32473 | grep -v '^ *+' conftest.er1 >conftest.err |
32474 | rm -f conftest.er1 | |
32475 | cat conftest.err >&5 | |
a848cd7e SC |
32476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32477 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32478 | { ac_try='test -z "$ac_c_werror_flag" |
32479 | || test ! -s conftest.err' | |
32480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32481 | (eval $ac_try) 2>&5 | |
32482 | ac_status=$? | |
32483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32484 | (exit $ac_status); }; } && | |
32485 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
32491 | eval "$as_ac_var=yes" | |
32492 | else | |
32493 | echo "$as_me: failed program was:" >&5 | |
32494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32495 | ||
32496 | eval "$as_ac_var=no" | |
32497 | fi | |
ac1cb8d3 VS |
32498 | rm -f conftest.err conftest.$ac_objext \ |
32499 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32500 | fi |
32501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32502 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32503 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32504 | cat >>confdefs.h <<_ACEOF | |
32505 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32506 | _ACEOF | |
32507 | cat >>confdefs.h <<\_ACEOF | |
32508 | #define HAVE_INET_ATON 1 | |
32509 | _ACEOF | |
32510 | ||
32511 | else | |
32512 | ||
32513 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
32514 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
32515 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
32516 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
32517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32518 | else | |
32519 | ac_check_lib_save_LIBS=$LIBS | |
32520 | LIBS="-l$INET_LINK $LIBS" | |
32521 | cat >conftest.$ac_ext <<_ACEOF | |
32522 | /* confdefs.h. */ | |
32523 | _ACEOF | |
32524 | cat confdefs.h >>conftest.$ac_ext | |
32525 | cat >>conftest.$ac_ext <<_ACEOF | |
32526 | /* end confdefs.h. */ | |
32527 | ||
32528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32529 | #ifdef __cplusplus | |
32530 | extern "C" | |
32531 | #endif | |
32532 | /* We use char because int might match the return type of a gcc2 | |
32533 | builtin and then its argument prototype would still apply. */ | |
32534 | char inet_aton (); | |
32535 | int | |
32536 | main () | |
32537 | { | |
32538 | inet_aton (); | |
32539 | ; | |
32540 | return 0; | |
32541 | } | |
32542 | _ACEOF | |
32543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32545 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32546 | ac_status=$? |
ac1cb8d3 VS |
32547 | grep -v '^ *+' conftest.er1 >conftest.err |
32548 | rm -f conftest.er1 | |
32549 | cat conftest.err >&5 | |
a848cd7e SC |
32550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32551 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32552 | { ac_try='test -z "$ac_c_werror_flag" |
32553 | || test ! -s conftest.err' | |
32554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32555 | (eval $ac_try) 2>&5 | |
32556 | ac_status=$? | |
32557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32558 | (exit $ac_status); }; } && | |
32559 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32561 | (eval $ac_try) 2>&5 | |
32562 | ac_status=$? | |
32563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32564 | (exit $ac_status); }; }; then | |
32565 | eval "$as_ac_Lib=yes" | |
32566 | else | |
32567 | echo "$as_me: failed program was:" >&5 | |
32568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32569 | ||
32570 | eval "$as_ac_Lib=no" | |
32571 | fi | |
ac1cb8d3 VS |
32572 | rm -f conftest.err conftest.$ac_objext \ |
32573 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32574 | LIBS=$ac_check_lib_save_LIBS |
32575 | fi | |
32576 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
32577 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
32578 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
32579 | cat >>confdefs.h <<\_ACEOF | |
32580 | #define HAVE_INET_ATON 1 | |
32581 | _ACEOF | |
32582 | ||
32583 | fi | |
32584 | ||
32585 | ||
32586 | fi | |
32587 | done | |
32588 | ||
32589 | ||
32590 | if test "x$INET_LINK" != "x"; then | |
32591 | cat >>confdefs.h <<\_ACEOF | |
32592 | #define HAVE_INET_ADDR 1 | |
32593 | _ACEOF | |
32594 | ||
32595 | INET_LINK=" -l$INET_LINK" | |
32596 | fi | |
32597 | ||
32598 | fi | |
32599 | ||
32600 | ||
32601 | ||
32602 | EXTRALIBS_ESD= | |
32603 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
32604 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
32605 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
32606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32607 | else | |
32608 | ac_check_lib_save_LIBS=$LIBS | |
32609 | LIBS="-lesd $LIBS" | |
32610 | cat >conftest.$ac_ext <<_ACEOF | |
32611 | /* confdefs.h. */ | |
32612 | _ACEOF | |
32613 | cat confdefs.h >>conftest.$ac_ext | |
32614 | cat >>conftest.$ac_ext <<_ACEOF | |
32615 | /* end confdefs.h. */ | |
32616 | ||
32617 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32618 | #ifdef __cplusplus | |
32619 | extern "C" | |
32620 | #endif | |
32621 | /* We use char because int might match the return type of a gcc2 | |
32622 | builtin and then its argument prototype would still apply. */ | |
32623 | char esd_close (); | |
32624 | int | |
32625 | main () | |
32626 | { | |
32627 | esd_close (); | |
32628 | ; | |
32629 | return 0; | |
32630 | } | |
32631 | _ACEOF | |
32632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32634 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32635 | ac_status=$? |
ac1cb8d3 VS |
32636 | grep -v '^ *+' conftest.er1 >conftest.err |
32637 | rm -f conftest.er1 | |
32638 | cat conftest.err >&5 | |
a848cd7e SC |
32639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32640 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32641 | { ac_try='test -z "$ac_c_werror_flag" |
32642 | || test ! -s conftest.err' | |
32643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32644 | (eval $ac_try) 2>&5 | |
32645 | ac_status=$? | |
32646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32647 | (exit $ac_status); }; } && | |
32648 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32650 | (eval $ac_try) 2>&5 | |
32651 | ac_status=$? | |
32652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32653 | (exit $ac_status); }; }; then | |
32654 | ac_cv_lib_esd_esd_close=yes | |
32655 | else | |
32656 | echo "$as_me: failed program was:" >&5 | |
32657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32658 | ||
32659 | ac_cv_lib_esd_esd_close=no | |
32660 | fi | |
ac1cb8d3 VS |
32661 | rm -f conftest.err conftest.$ac_objext \ |
32662 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32663 | LIBS=$ac_check_lib_save_LIBS |
32664 | fi | |
32665 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
32666 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
32667 | if test $ac_cv_lib_esd_esd_close = yes; then | |
32668 | ||
32669 | ||
32670 | for ac_header in esd.h | |
32671 | do | |
32672 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32673 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32674 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32675 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32678 | fi | |
32679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32680 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32681 | else | |
32682 | # Is the header compilable? | |
32683 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32684 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32685 | cat >conftest.$ac_ext <<_ACEOF | |
32686 | /* confdefs.h. */ | |
32687 | _ACEOF | |
32688 | cat confdefs.h >>conftest.$ac_ext | |
32689 | cat >>conftest.$ac_ext <<_ACEOF | |
32690 | /* end confdefs.h. */ | |
32691 | $ac_includes_default | |
32692 | #include <$ac_header> | |
32693 | _ACEOF | |
32694 | rm -f conftest.$ac_objext | |
32695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32697 | ac_status=$? |
ac1cb8d3 VS |
32698 | grep -v '^ *+' conftest.er1 >conftest.err |
32699 | rm -f conftest.er1 | |
32700 | cat conftest.err >&5 | |
a848cd7e SC |
32701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32702 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32703 | { ac_try='test -z "$ac_c_werror_flag" |
32704 | || test ! -s conftest.err' | |
32705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32706 | (eval $ac_try) 2>&5 | |
32707 | ac_status=$? | |
32708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32709 | (exit $ac_status); }; } && | |
32710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32712 | (eval $ac_try) 2>&5 | |
32713 | ac_status=$? | |
32714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32715 | (exit $ac_status); }; }; then | |
32716 | ac_header_compiler=yes | |
32717 | else | |
32718 | echo "$as_me: failed program was:" >&5 | |
32719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32720 | ||
32721 | ac_header_compiler=no | |
32722 | fi | |
ac1cb8d3 | 32723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32724 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32725 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32726 | ||
32727 | # Is the header present? | |
32728 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32729 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32730 | cat >conftest.$ac_ext <<_ACEOF | |
32731 | /* confdefs.h. */ | |
32732 | _ACEOF | |
32733 | cat confdefs.h >>conftest.$ac_ext | |
32734 | cat >>conftest.$ac_ext <<_ACEOF | |
32735 | /* end confdefs.h. */ | |
32736 | #include <$ac_header> | |
32737 | _ACEOF | |
32738 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32739 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32740 | ac_status=$? | |
32741 | grep -v '^ *+' conftest.er1 >conftest.err | |
32742 | rm -f conftest.er1 | |
32743 | cat conftest.err >&5 | |
32744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32745 | (exit $ac_status); } >/dev/null; then | |
32746 | if test -s conftest.err; then | |
32747 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32748 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32749 | else |
32750 | ac_cpp_err= | |
32751 | fi | |
32752 | else | |
32753 | ac_cpp_err=yes | |
32754 | fi | |
32755 | if test -z "$ac_cpp_err"; then | |
32756 | ac_header_preproc=yes | |
32757 | else | |
32758 | echo "$as_me: failed program was:" >&5 | |
32759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32760 | ||
32761 | ac_header_preproc=no | |
32762 | fi | |
32763 | rm -f conftest.err conftest.$ac_ext | |
32764 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32765 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32766 | ||
32767 | # So? What about this header? | |
ac1cb8d3 VS |
32768 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32769 | yes:no: ) | |
a848cd7e SC |
32770 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32771 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32772 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32773 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32774 | ac_header_preproc=yes | |
a848cd7e | 32775 | ;; |
ac1cb8d3 | 32776 | no:yes:* ) |
a848cd7e SC |
32777 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32778 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32779 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32780 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32781 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32782 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32783 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32784 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32785 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32786 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32787 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32788 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32789 | ( |
32790 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32791 | ## ----------------------------------------- ## |
32792 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32793 | ## ----------------------------------------- ## | |
a848cd7e SC |
32794 | _ASBOX |
32795 | ) | | |
32796 | sed "s/^/$as_me: WARNING: /" >&2 | |
32797 | ;; | |
32798 | esac | |
32799 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32800 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32803 | else | |
ac1cb8d3 | 32804 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32805 | fi |
32806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32807 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32808 | ||
32809 | fi | |
32810 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32811 | cat >>confdefs.h <<_ACEOF | |
32812 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32813 | _ACEOF | |
32814 | ||
32815 | EXTRALIBS_ESD="-lesd" | |
32816 | ||
32817 | fi | |
32818 | ||
32819 | done | |
32820 | ||
32821 | ||
32822 | fi | |
32823 | ||
32824 | ||
32825 | ||
32826 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
32827 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
32828 | cat >conftest.$ac_ext <<_ACEOF | |
32829 | /* confdefs.h. */ | |
32830 | _ACEOF | |
32831 | cat confdefs.h >>conftest.$ac_ext | |
32832 | cat >>conftest.$ac_ext <<_ACEOF | |
32833 | /* end confdefs.h. */ | |
32834 | #ifdef __linux__ | |
32835 | #include <linux/cdrom.h> | |
32836 | #else | |
32837 | /* For Solaris */ | |
32838 | #include <sys/cdio.h> | |
32839 | #endif | |
32840 | ||
32841 | int | |
32842 | main () | |
32843 | { | |
32844 | struct cdrom_tocentry entry, old_entry; | |
32845 | ; | |
32846 | return 0; | |
32847 | } | |
32848 | _ACEOF | |
32849 | rm -f conftest.$ac_objext | |
32850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32851 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32852 | ac_status=$? |
ac1cb8d3 VS |
32853 | grep -v '^ *+' conftest.er1 >conftest.err |
32854 | rm -f conftest.er1 | |
32855 | cat conftest.err >&5 | |
a848cd7e SC |
32856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32857 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32858 | { ac_try='test -z "$ac_c_werror_flag" |
32859 | || test ! -s conftest.err' | |
32860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32861 | (eval $ac_try) 2>&5 | |
32862 | ac_status=$? | |
32863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32864 | (exit $ac_status); }; } && | |
32865 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32867 | (eval $ac_try) 2>&5 | |
32868 | ac_status=$? | |
32869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32870 | (exit $ac_status); }; }; then | |
32871 | echo "$as_me:$LINENO: result: yes" >&5 | |
32872 | echo "${ECHO_T}yes" >&6 | |
32873 | cat >>confdefs.h <<\_ACEOF | |
32874 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
32875 | _ACEOF | |
32876 | ||
32877 | else | |
32878 | echo "$as_me: failed program was:" >&5 | |
32879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32880 | ||
32881 | echo "$as_me:$LINENO: result: no" >&5 | |
32882 | echo "${ECHO_T}no" >&6 | |
32883 | fi | |
ac1cb8d3 | 32884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32885 | |
32886 | ||
32887 | cat >confcache <<\_ACEOF | |
32888 | # This file is a shell script that caches the results of configure | |
32889 | # tests run on this system so they can be shared between configure | |
32890 | # scripts and configure runs, see configure's option --config-cache. | |
32891 | # It is not useful on other systems. If it contains results you don't | |
32892 | # want to keep, you may remove or edit it. | |
32893 | # | |
32894 | # config.status only pays attention to the cache file if you give it | |
32895 | # the --recheck option to rerun configure. | |
32896 | # | |
32897 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
32898 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
32899 | # following values. | |
32900 | ||
32901 | _ACEOF | |
32902 | ||
32903 | # The following way of writing the cache mishandles newlines in values, | |
32904 | # but we know of no workaround that is simple, portable, and efficient. | |
32905 | # So, don't put newlines in cache variables' values. | |
32906 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
32907 | # and sets the high bit in the cache file unless we assign to the vars. | |
32908 | { | |
32909 | (set) 2>&1 | | |
32910 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
32911 | *ac_space=\ *) | |
32912 | # `set' does not quote correctly, so add quotes (double-quote | |
32913 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
32914 | sed -n \ | |
ac1cb8d3 VS |
32915 | "s/'/'\\\\''/g; |
32916 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
32917 | ;; |
32918 | *) | |
32919 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
32920 | sed -n \ | |
ac1cb8d3 | 32921 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
32922 | ;; |
32923 | esac; | |
32924 | } | | |
32925 | sed ' | |
32926 | t clear | |
32927 | : clear | |
32928 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
32929 | t end | |
32930 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
32931 | : end' >>confcache | |
32932 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
32933 | if test -w $cache_file; then | |
32934 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
32935 | cat confcache >$cache_file | |
32936 | else | |
32937 | echo "not updating unwritable cache $cache_file" | |
32938 | fi | |
32939 | fi | |
32940 | rm -f confcache | |
32941 | ||
32942 | ||
32943 | CPP_MT_FLAG= | |
32944 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
32945 | ||
32946 | ||
32947 | THREADS_LINK= | |
32948 | THREADS_CFLAGS= | |
32949 | ||
32950 | if test "$wxUSE_THREADS" = "yes" ; then | |
32951 | if test "$USE_BEOS" = 1; then | |
32952 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
32953 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
32954 | wxUSE_THREADS="no" | |
32955 | fi | |
32956 | fi | |
32957 | ||
32958 | if test "$wxUSE_THREADS" = "yes" ; then | |
32959 | ||
32960 | ||
32961 | THREAD_OPTS="-pthread" | |
32962 | case "${host}" in | |
32963 | *-*-solaris2* | *-*-sunos4* ) | |
32964 | if test "x$GCC" = "xyes"; then | |
32965 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
32966 | else | |
32967 | THREAD_OPTS="-mt $THREAD_OPTS" | |
32968 | fi | |
32969 | ;; | |
32970 | *-*-freebsd*) | |
32971 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
32972 | ;; | |
32973 | *-*-darwin* | *-*-cygwin* ) | |
32974 | THREAD_OPTS="" | |
32975 | ;; | |
32976 | *-*-aix*) | |
32977 | THREAD_OPTS="pthreads" | |
32978 | ;; | |
32979 | *-hp-hpux* ) | |
32980 | if test "x$GCC" != "xyes"; then | |
32981 | THREAD_OPTS="" | |
32982 | fi | |
32983 | ;; | |
32984 | ||
32985 | *-*-irix* ) | |
32986 | if test "x$GCC" = "xyes"; then | |
32987 | THREAD_OPTS="" | |
32988 | fi | |
32989 | ;; | |
32990 | ||
32991 | *-*-*UnixWare*) | |
32992 | if test "x$GCC" != "xyes"; then | |
32993 | THREAD_OPTS="-Ethread" | |
32994 | fi | |
32995 | ;; | |
32996 | esac | |
32997 | ||
32998 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
32999 | ||
33000 | THREADS_OK=no | |
33001 | for flag in $THREAD_OPTS; do | |
33002 | case $flag in | |
33003 | none) | |
33004 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
33005 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
33006 | ;; | |
33007 | ||
33008 | -*) | |
33009 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
33010 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
33011 | THREADS_CFLAGS="$flag" | |
33012 | ;; | |
33013 | ||
33014 | *) | |
33015 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
33016 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
33017 | THREADS_LINK="-l$flag" | |
33018 | ;; | |
33019 | esac | |
33020 | ||
33021 | save_LIBS="$LIBS" | |
33022 | save_CFLAGS="$CFLAGS" | |
33023 | LIBS="$THREADS_LINK $LIBS" | |
33024 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
33025 | ||
33026 | cat >conftest.$ac_ext <<_ACEOF | |
33027 | /* confdefs.h. */ | |
33028 | _ACEOF | |
33029 | cat confdefs.h >>conftest.$ac_ext | |
33030 | cat >>conftest.$ac_ext <<_ACEOF | |
33031 | /* end confdefs.h. */ | |
33032 | #include <pthread.h> | |
33033 | int | |
33034 | main () | |
33035 | { | |
33036 | pthread_create(0,0,0,0); | |
33037 | ; | |
33038 | return 0; | |
33039 | } | |
33040 | _ACEOF | |
33041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33043 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33044 | ac_status=$? |
ac1cb8d3 VS |
33045 | grep -v '^ *+' conftest.er1 >conftest.err |
33046 | rm -f conftest.er1 | |
33047 | cat conftest.err >&5 | |
a848cd7e SC |
33048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33049 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33050 | { ac_try='test -z "$ac_c_werror_flag" |
33051 | || test ! -s conftest.err' | |
33052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33053 | (eval $ac_try) 2>&5 | |
33054 | ac_status=$? | |
33055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33056 | (exit $ac_status); }; } && | |
33057 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33059 | (eval $ac_try) 2>&5 | |
33060 | ac_status=$? | |
33061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33062 | (exit $ac_status); }; }; then | |
33063 | THREADS_OK=yes | |
33064 | else | |
33065 | echo "$as_me: failed program was:" >&5 | |
33066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33067 | ||
33068 | fi | |
ac1cb8d3 VS |
33069 | rm -f conftest.err conftest.$ac_objext \ |
33070 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33071 | |
33072 | LIBS="$save_LIBS" | |
33073 | CFLAGS="$save_CFLAGS" | |
33074 | ||
33075 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
33076 | echo "${ECHO_T}$THREADS_OK" >&6 | |
33077 | if test "x$THREADS_OK" = "xyes"; then | |
33078 | break; | |
33079 | fi | |
33080 | ||
33081 | THREADS_LINK="" | |
33082 | THREADS_CFLAGS="" | |
33083 | done | |
33084 | ||
33085 | if test "x$THREADS_OK" != "xyes"; then | |
33086 | wxUSE_THREADS=no | |
33087 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
33088 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
33089 | else | |
33090 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
33091 | LIBS="$THREADS_LINK $LIBS" | |
33092 | ||
33093 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
33094 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
33095 | flag=no | |
33096 | case "${host}" in | |
33097 | *-aix*) | |
33098 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
33099 | flag="-D_THREAD_SAFE" | |
33100 | ;; | |
33101 | *-freebsd*) | |
33102 | flag="-D_THREAD_SAFE" | |
33103 | ;; | |
33104 | *-hp-hpux* ) | |
33105 | flag="-D_REENTRANT" | |
33106 | if test "x$GCC" != "xyes"; then | |
33107 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
33108 | |
33109 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
33110 | fi |
33111 | ;; | |
33112 | *solaris* | alpha*-osf*) | |
33113 | flag="-D_REENTRANT" | |
33114 | ;; | |
33115 | esac | |
33116 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
33117 | echo "${ECHO_T}${flag}" >&6 | |
33118 | if test "x$flag" != xno; then | |
33119 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
33120 | fi | |
33121 | ||
33122 | if test "x$THREADS_CFLAGS" != "x"; then | |
33123 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
33124 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
33125 | fi | |
33126 | fi | |
33127 | fi | |
33128 | ||
33129 | if test "$wxUSE_THREADS" = "yes" ; then | |
33130 | ||
33131 | for ac_func in thr_setconcurrency | |
33132 | do | |
33133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33134 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33136 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33138 | else | |
33139 | cat >conftest.$ac_ext <<_ACEOF | |
33140 | /* confdefs.h. */ | |
33141 | _ACEOF | |
33142 | cat confdefs.h >>conftest.$ac_ext | |
33143 | cat >>conftest.$ac_ext <<_ACEOF | |
33144 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33145 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33147 | #define $ac_func innocuous_$ac_func | |
33148 | ||
a848cd7e SC |
33149 | /* System header to define __stub macros and hopefully few prototypes, |
33150 | which can conflict with char $ac_func (); below. | |
33151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33152 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33153 | |
a848cd7e SC |
33154 | #ifdef __STDC__ |
33155 | # include <limits.h> | |
33156 | #else | |
33157 | # include <assert.h> | |
33158 | #endif | |
ac1cb8d3 VS |
33159 | |
33160 | #undef $ac_func | |
33161 | ||
a848cd7e SC |
33162 | /* Override any gcc2 internal prototype to avoid an error. */ |
33163 | #ifdef __cplusplus | |
33164 | extern "C" | |
33165 | { | |
33166 | #endif | |
33167 | /* We use char because int might match the return type of a gcc2 | |
33168 | builtin and then its argument prototype would still apply. */ | |
33169 | char $ac_func (); | |
33170 | /* The GNU C library defines this for functions which it implements | |
33171 | to always fail with ENOSYS. Some functions are actually named | |
33172 | something starting with __ and the normal name is an alias. */ | |
33173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33174 | choke me | |
33175 | #else | |
33176 | char (*f) () = $ac_func; | |
33177 | #endif | |
33178 | #ifdef __cplusplus | |
33179 | } | |
33180 | #endif | |
33181 | ||
33182 | int | |
33183 | main () | |
33184 | { | |
33185 | return f != $ac_func; | |
33186 | ; | |
33187 | return 0; | |
33188 | } | |
33189 | _ACEOF | |
33190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33192 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33193 | ac_status=$? |
ac1cb8d3 VS |
33194 | grep -v '^ *+' conftest.er1 >conftest.err |
33195 | rm -f conftest.er1 | |
33196 | cat conftest.err >&5 | |
a848cd7e SC |
33197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33198 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33199 | { ac_try='test -z "$ac_c_werror_flag" |
33200 | || test ! -s conftest.err' | |
33201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33202 | (eval $ac_try) 2>&5 | |
33203 | ac_status=$? | |
33204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33205 | (exit $ac_status); }; } && | |
33206 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33208 | (eval $ac_try) 2>&5 | |
33209 | ac_status=$? | |
33210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33211 | (exit $ac_status); }; }; then | |
33212 | eval "$as_ac_var=yes" | |
33213 | else | |
33214 | echo "$as_me: failed program was:" >&5 | |
33215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33216 | ||
33217 | eval "$as_ac_var=no" | |
33218 | fi | |
ac1cb8d3 VS |
33219 | rm -f conftest.err conftest.$ac_objext \ |
33220 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33221 | fi |
33222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33225 | cat >>confdefs.h <<_ACEOF | |
33226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33227 | _ACEOF | |
33228 | ||
33229 | fi | |
33230 | done | |
33231 | ||
33232 | ||
33233 | ||
33234 | for ac_header in sched.h | |
33235 | do | |
33236 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33239 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33240 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33242 | fi | |
33243 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33244 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33245 | else | |
33246 | # Is the header compilable? | |
33247 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33248 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33249 | cat >conftest.$ac_ext <<_ACEOF | |
33250 | /* confdefs.h. */ | |
33251 | _ACEOF | |
33252 | cat confdefs.h >>conftest.$ac_ext | |
33253 | cat >>conftest.$ac_ext <<_ACEOF | |
33254 | /* end confdefs.h. */ | |
33255 | $ac_includes_default | |
33256 | #include <$ac_header> | |
33257 | _ACEOF | |
33258 | rm -f conftest.$ac_objext | |
33259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33261 | ac_status=$? |
ac1cb8d3 VS |
33262 | grep -v '^ *+' conftest.er1 >conftest.err |
33263 | rm -f conftest.er1 | |
33264 | cat conftest.err >&5 | |
a848cd7e SC |
33265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33266 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33267 | { ac_try='test -z "$ac_c_werror_flag" |
33268 | || test ! -s conftest.err' | |
33269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33270 | (eval $ac_try) 2>&5 | |
33271 | ac_status=$? | |
33272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33273 | (exit $ac_status); }; } && | |
33274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33276 | (eval $ac_try) 2>&5 | |
33277 | ac_status=$? | |
33278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33279 | (exit $ac_status); }; }; then | |
33280 | ac_header_compiler=yes | |
33281 | else | |
33282 | echo "$as_me: failed program was:" >&5 | |
33283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33284 | ||
33285 | ac_header_compiler=no | |
33286 | fi | |
ac1cb8d3 | 33287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33288 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33289 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33290 | ||
33291 | # Is the header present? | |
33292 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33293 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33294 | cat >conftest.$ac_ext <<_ACEOF | |
33295 | /* confdefs.h. */ | |
33296 | _ACEOF | |
33297 | cat confdefs.h >>conftest.$ac_ext | |
33298 | cat >>conftest.$ac_ext <<_ACEOF | |
33299 | /* end confdefs.h. */ | |
33300 | #include <$ac_header> | |
33301 | _ACEOF | |
33302 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33303 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33304 | ac_status=$? | |
33305 | grep -v '^ *+' conftest.er1 >conftest.err | |
33306 | rm -f conftest.er1 | |
33307 | cat conftest.err >&5 | |
33308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33309 | (exit $ac_status); } >/dev/null; then | |
33310 | if test -s conftest.err; then | |
33311 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33312 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33313 | else |
33314 | ac_cpp_err= | |
33315 | fi | |
33316 | else | |
33317 | ac_cpp_err=yes | |
33318 | fi | |
33319 | if test -z "$ac_cpp_err"; then | |
33320 | ac_header_preproc=yes | |
33321 | else | |
33322 | echo "$as_me: failed program was:" >&5 | |
33323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33324 | ||
33325 | ac_header_preproc=no | |
33326 | fi | |
33327 | rm -f conftest.err conftest.$ac_ext | |
33328 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33329 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33330 | ||
33331 | # So? What about this header? | |
ac1cb8d3 VS |
33332 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33333 | yes:no: ) | |
a848cd7e SC |
33334 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33335 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33336 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33337 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33338 | ac_header_preproc=yes | |
a848cd7e | 33339 | ;; |
ac1cb8d3 | 33340 | no:yes:* ) |
a848cd7e SC |
33341 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33342 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33343 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33344 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33345 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33346 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33347 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33348 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33350 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33351 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33352 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33353 | ( |
33354 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33355 | ## ----------------------------------------- ## |
33356 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33357 | ## ----------------------------------------- ## | |
a848cd7e SC |
33358 | _ASBOX |
33359 | ) | | |
33360 | sed "s/^/$as_me: WARNING: /" >&2 | |
33361 | ;; | |
33362 | esac | |
33363 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33367 | else | |
ac1cb8d3 | 33368 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33369 | fi |
33370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33371 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33372 | ||
33373 | fi | |
33374 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33375 | cat >>confdefs.h <<_ACEOF | |
33376 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33377 | _ACEOF | |
33378 | ||
33379 | fi | |
33380 | ||
33381 | done | |
33382 | ||
33383 | if test "$ac_cv_header_sched_h" = "yes"; then | |
33384 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
33385 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
33386 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
33387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33388 | else | |
33389 | cat >conftest.$ac_ext <<_ACEOF | |
33390 | /* confdefs.h. */ | |
33391 | _ACEOF | |
33392 | cat confdefs.h >>conftest.$ac_ext | |
33393 | cat >>conftest.$ac_ext <<_ACEOF | |
33394 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33395 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
33396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33397 | #define sched_yield innocuous_sched_yield | |
33398 | ||
a848cd7e SC |
33399 | /* System header to define __stub macros and hopefully few prototypes, |
33400 | which can conflict with char sched_yield (); below. | |
33401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33402 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33403 | |
a848cd7e SC |
33404 | #ifdef __STDC__ |
33405 | # include <limits.h> | |
33406 | #else | |
33407 | # include <assert.h> | |
33408 | #endif | |
ac1cb8d3 VS |
33409 | |
33410 | #undef sched_yield | |
33411 | ||
a848cd7e SC |
33412 | /* Override any gcc2 internal prototype to avoid an error. */ |
33413 | #ifdef __cplusplus | |
33414 | extern "C" | |
33415 | { | |
33416 | #endif | |
33417 | /* We use char because int might match the return type of a gcc2 | |
33418 | builtin and then its argument prototype would still apply. */ | |
33419 | char sched_yield (); | |
33420 | /* The GNU C library defines this for functions which it implements | |
33421 | to always fail with ENOSYS. Some functions are actually named | |
33422 | something starting with __ and the normal name is an alias. */ | |
33423 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
33424 | choke me | |
33425 | #else | |
33426 | char (*f) () = sched_yield; | |
33427 | #endif | |
33428 | #ifdef __cplusplus | |
33429 | } | |
33430 | #endif | |
33431 | ||
33432 | int | |
33433 | main () | |
33434 | { | |
33435 | return f != sched_yield; | |
33436 | ; | |
33437 | return 0; | |
33438 | } | |
33439 | _ACEOF | |
33440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33442 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33443 | ac_status=$? |
ac1cb8d3 VS |
33444 | grep -v '^ *+' conftest.er1 >conftest.err |
33445 | rm -f conftest.er1 | |
33446 | cat conftest.err >&5 | |
a848cd7e SC |
33447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33448 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33449 | { ac_try='test -z "$ac_c_werror_flag" |
33450 | || test ! -s conftest.err' | |
33451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33452 | (eval $ac_try) 2>&5 | |
33453 | ac_status=$? | |
33454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33455 | (exit $ac_status); }; } && | |
33456 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33458 | (eval $ac_try) 2>&5 | |
33459 | ac_status=$? | |
33460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33461 | (exit $ac_status); }; }; then | |
33462 | ac_cv_func_sched_yield=yes | |
33463 | else | |
33464 | echo "$as_me: failed program was:" >&5 | |
33465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33466 | ||
33467 | ac_cv_func_sched_yield=no | |
33468 | fi | |
ac1cb8d3 VS |
33469 | rm -f conftest.err conftest.$ac_objext \ |
33470 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33471 | fi |
33472 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
33473 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
33474 | if test $ac_cv_func_sched_yield = yes; then | |
33475 | cat >>confdefs.h <<\_ACEOF | |
33476 | #define HAVE_SCHED_YIELD 1 | |
33477 | _ACEOF | |
33478 | ||
33479 | else | |
33480 | ||
33481 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
33482 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
33483 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
33484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33485 | else | |
33486 | ac_check_lib_save_LIBS=$LIBS | |
33487 | LIBS="-lposix4 $LIBS" | |
33488 | cat >conftest.$ac_ext <<_ACEOF | |
33489 | /* confdefs.h. */ | |
33490 | _ACEOF | |
33491 | cat confdefs.h >>conftest.$ac_ext | |
33492 | cat >>conftest.$ac_ext <<_ACEOF | |
33493 | /* end confdefs.h. */ | |
33494 | ||
33495 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33496 | #ifdef __cplusplus | |
33497 | extern "C" | |
33498 | #endif | |
33499 | /* We use char because int might match the return type of a gcc2 | |
33500 | builtin and then its argument prototype would still apply. */ | |
33501 | char sched_yield (); | |
33502 | int | |
33503 | main () | |
33504 | { | |
33505 | sched_yield (); | |
33506 | ; | |
33507 | return 0; | |
33508 | } | |
33509 | _ACEOF | |
33510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33512 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33513 | ac_status=$? |
ac1cb8d3 VS |
33514 | grep -v '^ *+' conftest.er1 >conftest.err |
33515 | rm -f conftest.er1 | |
33516 | cat conftest.err >&5 | |
a848cd7e SC |
33517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33518 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33519 | { ac_try='test -z "$ac_c_werror_flag" |
33520 | || test ! -s conftest.err' | |
33521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33522 | (eval $ac_try) 2>&5 | |
33523 | ac_status=$? | |
33524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33525 | (exit $ac_status); }; } && | |
33526 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33528 | (eval $ac_try) 2>&5 | |
33529 | ac_status=$? | |
33530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33531 | (exit $ac_status); }; }; then | |
33532 | ac_cv_lib_posix4_sched_yield=yes | |
33533 | else | |
33534 | echo "$as_me: failed program was:" >&5 | |
33535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33536 | ||
33537 | ac_cv_lib_posix4_sched_yield=no | |
33538 | fi | |
ac1cb8d3 VS |
33539 | rm -f conftest.err conftest.$ac_objext \ |
33540 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33541 | LIBS=$ac_check_lib_save_LIBS |
33542 | fi | |
33543 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
33544 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
33545 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
33546 | cat >>confdefs.h <<\_ACEOF | |
33547 | #define HAVE_SCHED_YIELD 1 | |
33548 | _ACEOF | |
33549 | POSIX4_LINK=" -lposix4" | |
33550 | else | |
33551 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
33552 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
33553 | ||
33554 | fi | |
33555 | ||
33556 | ||
33557 | ||
33558 | fi | |
33559 | ||
33560 | fi | |
33561 | ||
33562 | HAVE_PRIOR_FUNCS=0 | |
33563 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
33564 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
33565 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
33566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33567 | else | |
33568 | cat >conftest.$ac_ext <<_ACEOF | |
33569 | /* confdefs.h. */ | |
33570 | _ACEOF | |
33571 | cat confdefs.h >>conftest.$ac_ext | |
33572 | cat >>conftest.$ac_ext <<_ACEOF | |
33573 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33574 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
33575 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33576 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
33577 | ||
a848cd7e SC |
33578 | /* System header to define __stub macros and hopefully few prototypes, |
33579 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
33580 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33581 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33582 | |
a848cd7e SC |
33583 | #ifdef __STDC__ |
33584 | # include <limits.h> | |
33585 | #else | |
33586 | # include <assert.h> | |
33587 | #endif | |
ac1cb8d3 VS |
33588 | |
33589 | #undef pthread_attr_getschedpolicy | |
33590 | ||
a848cd7e SC |
33591 | /* Override any gcc2 internal prototype to avoid an error. */ |
33592 | #ifdef __cplusplus | |
33593 | extern "C" | |
33594 | { | |
33595 | #endif | |
33596 | /* We use char because int might match the return type of a gcc2 | |
33597 | builtin and then its argument prototype would still apply. */ | |
33598 | char pthread_attr_getschedpolicy (); | |
33599 | /* The GNU C library defines this for functions which it implements | |
33600 | to always fail with ENOSYS. Some functions are actually named | |
33601 | something starting with __ and the normal name is an alias. */ | |
33602 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
33603 | choke me | |
33604 | #else | |
33605 | char (*f) () = pthread_attr_getschedpolicy; | |
33606 | #endif | |
33607 | #ifdef __cplusplus | |
33608 | } | |
33609 | #endif | |
33610 | ||
33611 | int | |
33612 | main () | |
33613 | { | |
33614 | return f != pthread_attr_getschedpolicy; | |
33615 | ; | |
33616 | return 0; | |
33617 | } | |
33618 | _ACEOF | |
33619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33621 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33622 | ac_status=$? |
ac1cb8d3 VS |
33623 | grep -v '^ *+' conftest.er1 >conftest.err |
33624 | rm -f conftest.er1 | |
33625 | cat conftest.err >&5 | |
a848cd7e SC |
33626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33627 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33628 | { ac_try='test -z "$ac_c_werror_flag" |
33629 | || test ! -s conftest.err' | |
33630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33631 | (eval $ac_try) 2>&5 | |
33632 | ac_status=$? | |
33633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33634 | (exit $ac_status); }; } && | |
33635 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33637 | (eval $ac_try) 2>&5 | |
33638 | ac_status=$? | |
33639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33640 | (exit $ac_status); }; }; then | |
33641 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
33642 | else | |
33643 | echo "$as_me: failed program was:" >&5 | |
33644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33645 | ||
33646 | ac_cv_func_pthread_attr_getschedpolicy=no | |
33647 | fi | |
ac1cb8d3 VS |
33648 | rm -f conftest.err conftest.$ac_objext \ |
33649 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33650 | fi |
33651 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
33652 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
33653 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
33654 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
33655 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
33656 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
33657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33658 | else | |
33659 | cat >conftest.$ac_ext <<_ACEOF | |
33660 | /* confdefs.h. */ | |
33661 | _ACEOF | |
33662 | cat confdefs.h >>conftest.$ac_ext | |
33663 | cat >>conftest.$ac_ext <<_ACEOF | |
33664 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33665 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
33666 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33667 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
33668 | ||
a848cd7e SC |
33669 | /* System header to define __stub macros and hopefully few prototypes, |
33670 | which can conflict with char pthread_attr_setschedparam (); below. | |
33671 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33672 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33673 | |
a848cd7e SC |
33674 | #ifdef __STDC__ |
33675 | # include <limits.h> | |
33676 | #else | |
33677 | # include <assert.h> | |
33678 | #endif | |
ac1cb8d3 VS |
33679 | |
33680 | #undef pthread_attr_setschedparam | |
33681 | ||
a848cd7e SC |
33682 | /* Override any gcc2 internal prototype to avoid an error. */ |
33683 | #ifdef __cplusplus | |
33684 | extern "C" | |
33685 | { | |
33686 | #endif | |
33687 | /* We use char because int might match the return type of a gcc2 | |
33688 | builtin and then its argument prototype would still apply. */ | |
33689 | char pthread_attr_setschedparam (); | |
33690 | /* The GNU C library defines this for functions which it implements | |
33691 | to always fail with ENOSYS. Some functions are actually named | |
33692 | something starting with __ and the normal name is an alias. */ | |
33693 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
33694 | choke me | |
33695 | #else | |
33696 | char (*f) () = pthread_attr_setschedparam; | |
33697 | #endif | |
33698 | #ifdef __cplusplus | |
33699 | } | |
33700 | #endif | |
33701 | ||
33702 | int | |
33703 | main () | |
33704 | { | |
33705 | return f != pthread_attr_setschedparam; | |
33706 | ; | |
33707 | return 0; | |
33708 | } | |
33709 | _ACEOF | |
33710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33712 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33713 | ac_status=$? |
ac1cb8d3 VS |
33714 | grep -v '^ *+' conftest.er1 >conftest.err |
33715 | rm -f conftest.er1 | |
33716 | cat conftest.err >&5 | |
a848cd7e SC |
33717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33718 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33719 | { ac_try='test -z "$ac_c_werror_flag" |
33720 | || test ! -s conftest.err' | |
33721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33722 | (eval $ac_try) 2>&5 | |
33723 | ac_status=$? | |
33724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33725 | (exit $ac_status); }; } && | |
33726 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33728 | (eval $ac_try) 2>&5 | |
33729 | ac_status=$? | |
33730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33731 | (exit $ac_status); }; }; then | |
33732 | ac_cv_func_pthread_attr_setschedparam=yes | |
33733 | else | |
33734 | echo "$as_me: failed program was:" >&5 | |
33735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33736 | ||
33737 | ac_cv_func_pthread_attr_setschedparam=no | |
33738 | fi | |
ac1cb8d3 VS |
33739 | rm -f conftest.err conftest.$ac_objext \ |
33740 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33741 | fi |
33742 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
33743 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
33744 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
33745 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
33746 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
33747 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
33748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33749 | else | |
33750 | cat >conftest.$ac_ext <<_ACEOF | |
33751 | /* confdefs.h. */ | |
33752 | _ACEOF | |
33753 | cat confdefs.h >>conftest.$ac_ext | |
33754 | cat >>conftest.$ac_ext <<_ACEOF | |
33755 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33756 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
33757 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33758 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
33759 | ||
a848cd7e SC |
33760 | /* System header to define __stub macros and hopefully few prototypes, |
33761 | which can conflict with char sched_get_priority_max (); below. | |
33762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33763 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33764 | |
a848cd7e SC |
33765 | #ifdef __STDC__ |
33766 | # include <limits.h> | |
33767 | #else | |
33768 | # include <assert.h> | |
33769 | #endif | |
ac1cb8d3 VS |
33770 | |
33771 | #undef sched_get_priority_max | |
33772 | ||
a848cd7e SC |
33773 | /* Override any gcc2 internal prototype to avoid an error. */ |
33774 | #ifdef __cplusplus | |
33775 | extern "C" | |
33776 | { | |
33777 | #endif | |
33778 | /* We use char because int might match the return type of a gcc2 | |
33779 | builtin and then its argument prototype would still apply. */ | |
33780 | char sched_get_priority_max (); | |
33781 | /* The GNU C library defines this for functions which it implements | |
33782 | to always fail with ENOSYS. Some functions are actually named | |
33783 | something starting with __ and the normal name is an alias. */ | |
33784 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
33785 | choke me | |
33786 | #else | |
33787 | char (*f) () = sched_get_priority_max; | |
33788 | #endif | |
33789 | #ifdef __cplusplus | |
33790 | } | |
33791 | #endif | |
33792 | ||
33793 | int | |
33794 | main () | |
33795 | { | |
33796 | return f != sched_get_priority_max; | |
33797 | ; | |
33798 | return 0; | |
33799 | } | |
33800 | _ACEOF | |
33801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33803 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33804 | ac_status=$? |
ac1cb8d3 VS |
33805 | grep -v '^ *+' conftest.er1 >conftest.err |
33806 | rm -f conftest.er1 | |
33807 | cat conftest.err >&5 | |
a848cd7e SC |
33808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33809 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33810 | { ac_try='test -z "$ac_c_werror_flag" |
33811 | || test ! -s conftest.err' | |
33812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33813 | (eval $ac_try) 2>&5 | |
33814 | ac_status=$? | |
33815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33816 | (exit $ac_status); }; } && | |
33817 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33819 | (eval $ac_try) 2>&5 | |
33820 | ac_status=$? | |
33821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33822 | (exit $ac_status); }; }; then | |
33823 | ac_cv_func_sched_get_priority_max=yes | |
33824 | else | |
33825 | echo "$as_me: failed program was:" >&5 | |
33826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33827 | ||
33828 | ac_cv_func_sched_get_priority_max=no | |
33829 | fi | |
ac1cb8d3 VS |
33830 | rm -f conftest.err conftest.$ac_objext \ |
33831 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33832 | fi |
33833 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
33834 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
33835 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
33836 | HAVE_PRIOR_FUNCS=1 | |
33837 | else | |
33838 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
33839 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
33840 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
33841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33842 | else | |
33843 | ac_check_lib_save_LIBS=$LIBS | |
33844 | LIBS="-lposix4 $LIBS" | |
33845 | cat >conftest.$ac_ext <<_ACEOF | |
33846 | /* confdefs.h. */ | |
33847 | _ACEOF | |
33848 | cat confdefs.h >>conftest.$ac_ext | |
33849 | cat >>conftest.$ac_ext <<_ACEOF | |
33850 | /* end confdefs.h. */ | |
33851 | ||
33852 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33853 | #ifdef __cplusplus | |
33854 | extern "C" | |
33855 | #endif | |
33856 | /* We use char because int might match the return type of a gcc2 | |
33857 | builtin and then its argument prototype would still apply. */ | |
33858 | char sched_get_priority_max (); | |
33859 | int | |
33860 | main () | |
33861 | { | |
33862 | sched_get_priority_max (); | |
33863 | ; | |
33864 | return 0; | |
33865 | } | |
33866 | _ACEOF | |
33867 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33869 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33870 | ac_status=$? |
ac1cb8d3 VS |
33871 | grep -v '^ *+' conftest.er1 >conftest.err |
33872 | rm -f conftest.er1 | |
33873 | cat conftest.err >&5 | |
a848cd7e SC |
33874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33875 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33876 | { ac_try='test -z "$ac_c_werror_flag" |
33877 | || test ! -s conftest.err' | |
33878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33879 | (eval $ac_try) 2>&5 | |
33880 | ac_status=$? | |
33881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33882 | (exit $ac_status); }; } && | |
33883 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33885 | (eval $ac_try) 2>&5 | |
33886 | ac_status=$? | |
33887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33888 | (exit $ac_status); }; }; then | |
33889 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
33890 | else | |
33891 | echo "$as_me: failed program was:" >&5 | |
33892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33893 | ||
33894 | ac_cv_lib_posix4_sched_get_priority_max=no | |
33895 | fi | |
ac1cb8d3 VS |
33896 | rm -f conftest.err conftest.$ac_objext \ |
33897 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33898 | LIBS=$ac_check_lib_save_LIBS |
33899 | fi | |
33900 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
33901 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
33902 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
33903 | ||
33904 | HAVE_PRIOR_FUNCS=1 | |
33905 | POSIX4_LINK=" -lposix4" | |
33906 | ||
33907 | fi | |
33908 | ||
33909 | ||
33910 | fi | |
33911 | ||
33912 | ||
33913 | fi | |
33914 | ||
33915 | ||
33916 | fi | |
33917 | ||
33918 | ||
33919 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
33920 | cat >>confdefs.h <<\_ACEOF | |
33921 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
33922 | _ACEOF | |
33923 | ||
33924 | else | |
33925 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
33926 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
33927 | fi | |
33928 | ||
33929 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
33930 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
33931 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
33932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33933 | else | |
33934 | cat >conftest.$ac_ext <<_ACEOF | |
33935 | /* confdefs.h. */ | |
33936 | _ACEOF | |
33937 | cat confdefs.h >>conftest.$ac_ext | |
33938 | cat >>conftest.$ac_ext <<_ACEOF | |
33939 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33940 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
33941 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33942 | #define pthread_cancel innocuous_pthread_cancel | |
33943 | ||
a848cd7e SC |
33944 | /* System header to define __stub macros and hopefully few prototypes, |
33945 | which can conflict with char pthread_cancel (); below. | |
33946 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33947 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33948 | |
a848cd7e SC |
33949 | #ifdef __STDC__ |
33950 | # include <limits.h> | |
33951 | #else | |
33952 | # include <assert.h> | |
33953 | #endif | |
ac1cb8d3 VS |
33954 | |
33955 | #undef pthread_cancel | |
33956 | ||
a848cd7e SC |
33957 | /* Override any gcc2 internal prototype to avoid an error. */ |
33958 | #ifdef __cplusplus | |
33959 | extern "C" | |
33960 | { | |
33961 | #endif | |
33962 | /* We use char because int might match the return type of a gcc2 | |
33963 | builtin and then its argument prototype would still apply. */ | |
33964 | char pthread_cancel (); | |
33965 | /* The GNU C library defines this for functions which it implements | |
33966 | to always fail with ENOSYS. Some functions are actually named | |
33967 | something starting with __ and the normal name is an alias. */ | |
33968 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
33969 | choke me | |
33970 | #else | |
33971 | char (*f) () = pthread_cancel; | |
33972 | #endif | |
33973 | #ifdef __cplusplus | |
33974 | } | |
33975 | #endif | |
33976 | ||
33977 | int | |
33978 | main () | |
33979 | { | |
33980 | return f != pthread_cancel; | |
33981 | ; | |
33982 | return 0; | |
33983 | } | |
33984 | _ACEOF | |
33985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33987 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33988 | ac_status=$? |
ac1cb8d3 VS |
33989 | grep -v '^ *+' conftest.er1 >conftest.err |
33990 | rm -f conftest.er1 | |
33991 | cat conftest.err >&5 | |
a848cd7e SC |
33992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33993 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33994 | { ac_try='test -z "$ac_c_werror_flag" |
33995 | || test ! -s conftest.err' | |
33996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33997 | (eval $ac_try) 2>&5 | |
33998 | ac_status=$? | |
33999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34000 | (exit $ac_status); }; } && | |
34001 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34003 | (eval $ac_try) 2>&5 | |
34004 | ac_status=$? | |
34005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34006 | (exit $ac_status); }; }; then | |
34007 | ac_cv_func_pthread_cancel=yes | |
34008 | else | |
34009 | echo "$as_me: failed program was:" >&5 | |
34010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34011 | ||
34012 | ac_cv_func_pthread_cancel=no | |
34013 | fi | |
ac1cb8d3 VS |
34014 | rm -f conftest.err conftest.$ac_objext \ |
34015 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34016 | fi |
34017 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
34018 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
34019 | if test $ac_cv_func_pthread_cancel = yes; then | |
34020 | cat >>confdefs.h <<\_ACEOF | |
34021 | #define HAVE_PTHREAD_CANCEL 1 | |
34022 | _ACEOF | |
34023 | ||
34024 | else | |
34025 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
34026 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
34027 | fi | |
34028 | ||
34029 | ||
34030 | ||
34031 | ||
34032 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
34033 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
34034 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
34035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34036 | else | |
34037 | ||
34038 | cat >conftest.$ac_ext <<_ACEOF | |
34039 | /* confdefs.h. */ | |
34040 | _ACEOF | |
34041 | cat confdefs.h >>conftest.$ac_ext | |
34042 | cat >>conftest.$ac_ext <<_ACEOF | |
34043 | /* end confdefs.h. */ | |
34044 | #include <pthread.h> | |
34045 | int | |
34046 | main () | |
34047 | { | |
34048 | ||
34049 | pthread_mutexattr_t attr; | |
34050 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
34051 | ||
34052 | ; | |
34053 | return 0; | |
34054 | } | |
34055 | _ACEOF | |
34056 | rm -f conftest.$ac_objext | |
34057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34059 | ac_status=$? |
ac1cb8d3 VS |
34060 | grep -v '^ *+' conftest.er1 >conftest.err |
34061 | rm -f conftest.er1 | |
34062 | cat conftest.err >&5 | |
a848cd7e SC |
34063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34064 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34065 | { ac_try='test -z "$ac_c_werror_flag" |
34066 | || test ! -s conftest.err' | |
34067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34068 | (eval $ac_try) 2>&5 | |
34069 | ac_status=$? | |
34070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34071 | (exit $ac_status); }; } && | |
34072 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34074 | (eval $ac_try) 2>&5 | |
34075 | ac_status=$? | |
34076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34077 | (exit $ac_status); }; }; then | |
34078 | ||
34079 | wx_cv_type_pthread_mutexattr_t=yes | |
34080 | ||
34081 | else | |
34082 | echo "$as_me: failed program was:" >&5 | |
34083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34084 | ||
34085 | ||
34086 | wx_cv_type_pthread_mutexattr_t=no | |
34087 | ||
34088 | ||
34089 | fi | |
ac1cb8d3 | 34090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34091 | |
34092 | fi | |
34093 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
34094 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
34095 | ||
34096 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
34097 | cat >>confdefs.h <<\_ACEOF | |
34098 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
34099 | _ACEOF | |
34100 | ||
34101 | else | |
34102 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
34103 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
34104 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
34105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34106 | else | |
34107 | ||
34108 | cat >conftest.$ac_ext <<_ACEOF | |
34109 | /* confdefs.h. */ | |
34110 | _ACEOF | |
34111 | cat confdefs.h >>conftest.$ac_ext | |
34112 | cat >>conftest.$ac_ext <<_ACEOF | |
34113 | /* end confdefs.h. */ | |
34114 | #include <pthread.h> | |
34115 | int | |
34116 | main () | |
34117 | { | |
34118 | ||
34119 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
34120 | ||
34121 | ; | |
34122 | return 0; | |
34123 | } | |
34124 | _ACEOF | |
34125 | rm -f conftest.$ac_objext | |
34126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34127 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34128 | ac_status=$? |
ac1cb8d3 VS |
34129 | grep -v '^ *+' conftest.er1 >conftest.err |
34130 | rm -f conftest.er1 | |
34131 | cat conftest.err >&5 | |
a848cd7e SC |
34132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34133 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34134 | { ac_try='test -z "$ac_c_werror_flag" |
34135 | || test ! -s conftest.err' | |
34136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34137 | (eval $ac_try) 2>&5 | |
34138 | ac_status=$? | |
34139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34140 | (exit $ac_status); }; } && | |
34141 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34143 | (eval $ac_try) 2>&5 | |
34144 | ac_status=$? | |
34145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34146 | (exit $ac_status); }; }; then | |
34147 | ||
34148 | wx_cv_type_pthread_rec_mutex_init=yes | |
34149 | ||
34150 | else | |
34151 | echo "$as_me: failed program was:" >&5 | |
34152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34153 | ||
34154 | ||
34155 | wx_cv_type_pthread_rec_mutex_init=no | |
34156 | ||
34157 | ||
34158 | fi | |
ac1cb8d3 | 34159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34160 | |
34161 | fi | |
34162 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
34163 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
34164 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
34165 | cat >>confdefs.h <<\_ACEOF | |
34166 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
34167 | _ACEOF | |
34168 | ||
34169 | else | |
34170 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
34171 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
34172 | fi | |
34173 | fi | |
34174 | fi | |
34175 | ||
34176 | else | |
34177 | if test "$wxUSE_THREADS" = "yes" ; then | |
34178 | case "${host}" in | |
34179 | *-*-mingw32* ) | |
34180 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
34181 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
34182 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
34183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34184 | else | |
34185 | ||
34186 | CFLAGS_OLD="$CFLAGS" | |
34187 | CFLAGS="$CFLAGS -mthreads" | |
34188 | cat >conftest.$ac_ext <<_ACEOF | |
34189 | /* confdefs.h. */ | |
34190 | _ACEOF | |
34191 | cat confdefs.h >>conftest.$ac_ext | |
34192 | cat >>conftest.$ac_ext <<_ACEOF | |
34193 | /* end confdefs.h. */ | |
34194 | ||
34195 | int | |
34196 | main () | |
34197 | { | |
34198 | ||
34199 | ; | |
34200 | return 0; | |
34201 | } | |
34202 | _ACEOF | |
34203 | rm -f conftest.$ac_objext | |
34204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34205 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34206 | ac_status=$? |
ac1cb8d3 VS |
34207 | grep -v '^ *+' conftest.er1 >conftest.err |
34208 | rm -f conftest.er1 | |
34209 | cat conftest.err >&5 | |
a848cd7e SC |
34210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34211 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34212 | { ac_try='test -z "$ac_c_werror_flag" |
34213 | || test ! -s conftest.err' | |
34214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34215 | (eval $ac_try) 2>&5 | |
34216 | ac_status=$? | |
34217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34218 | (exit $ac_status); }; } && | |
34219 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34221 | (eval $ac_try) 2>&5 | |
34222 | ac_status=$? | |
34223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34224 | (exit $ac_status); }; }; then | |
34225 | wx_cv_cflags_mthread=yes | |
34226 | else | |
34227 | echo "$as_me: failed program was:" >&5 | |
34228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34229 | ||
34230 | wx_cv_cflags_mthread=no | |
34231 | ||
34232 | fi | |
ac1cb8d3 | 34233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34234 | |
34235 | ||
34236 | fi | |
34237 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
34238 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
34239 | ||
34240 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
34241 | CXXFLAGS="$CXXFLAGS -mthreads" | |
34242 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
34243 | LDFLAGS="$LDFLAGS -mthreads" | |
34244 | else | |
34245 | CFLAGS="$CFLAGS_OLD" | |
34246 | fi | |
34247 | ;; | |
34248 | *-pc-os2*emx ) | |
34249 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34250 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34251 | LDFLAGS="$LDFLAGS -Zmt" | |
34252 | ;; | |
34253 | esac | |
34254 | fi | |
34255 | fi | |
34256 | ||
34257 | if test "$wxUSE_THREADS" = "yes"; then | |
34258 | cat >>confdefs.h <<\_ACEOF | |
34259 | #define wxUSE_THREADS 1 | |
34260 | _ACEOF | |
34261 | ||
34262 | ||
34263 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
34264 | else | |
34265 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
34266 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
34267 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
34268 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
34269 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
34270 | echo "$as_me:$LINENO: result: yes" >&5 | |
34271 | echo "${ECHO_T}yes" >&6 | |
34272 | else | |
34273 | echo "$as_me:$LINENO: result: no" >&5 | |
34274 | echo "${ECHO_T}no" >&6 | |
34275 | fi | |
34276 | fi | |
34277 | fi | |
34278 | ||
34279 | if test "$WXGTK20" = 1 ; then | |
34280 | cat >>confdefs.h <<_ACEOF | |
34281 | #define __WXGTK20__ $WXGTK20 | |
34282 | _ACEOF | |
34283 | ||
34284 | WXGTK12=1 | |
34285 | fi | |
34286 | ||
34287 | if test "$WXGTK12" = 1 ; then | |
34288 | cat >>confdefs.h <<_ACEOF | |
34289 | #define __WXGTK12__ $WXGTK12 | |
34290 | _ACEOF | |
34291 | ||
34292 | fi | |
34293 | ||
34294 | if test "$WXGTK127" = 1 ; then | |
34295 | cat >>confdefs.h <<_ACEOF | |
34296 | #define __WXGTK127__ $WXGTK127 | |
34297 | _ACEOF | |
34298 | ||
34299 | fi | |
34300 | ||
34301 | if test "$WXGPE" = 1 ; then | |
34302 | cat >>confdefs.h <<_ACEOF | |
34303 | #define __WXGPE__ $WXGPE | |
34304 | _ACEOF | |
34305 | ||
34306 | fi | |
34307 | ||
34308 | WXDEBUG= | |
34309 | ||
34310 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
34311 | WXDEBUG="-g" | |
34312 | wxUSE_OPTIMISE=no | |
34313 | fi | |
34314 | ||
34315 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
34316 | wxUSE_DEBUG_INFO=yes | |
34317 | WXDEBUG="-ggdb" | |
34318 | fi | |
34319 | ||
34320 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
34321 | cat >>confdefs.h <<\_ACEOF | |
34322 | #define WXDEBUG 1 | |
34323 | _ACEOF | |
34324 | ||
34325 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
34326 | else | |
34327 | if test "$wxUSE_GTK" = 1 ; then | |
34328 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
34329 | fi | |
34330 | fi | |
34331 | ||
34332 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
34333 | cat >>confdefs.h <<\_ACEOF | |
34334 | #define wxUSE_MEMORY_TRACING 1 | |
34335 | _ACEOF | |
34336 | ||
34337 | cat >>confdefs.h <<\_ACEOF | |
34338 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
34339 | _ACEOF | |
34340 | ||
34341 | cat >>confdefs.h <<\_ACEOF | |
34342 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
34343 | _ACEOF | |
34344 | ||
34345 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
34346 | fi | |
34347 | ||
34348 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
34349 | DMALLOC_LIBS="-ldmalloc" | |
34350 | fi | |
34351 | ||
34352 | PROFILE= | |
34353 | if test "$wxUSE_PROFILE" = "yes" ; then | |
34354 | PROFILE=" -pg" | |
34355 | fi | |
34356 | ||
34357 | CODE_GEN_FLAGS= | |
34358 | CODE_GEN_FLAGS_CXX= | |
34359 | if test "$GCC" = "yes" ; then | |
34360 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
34361 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
34362 | fi | |
34363 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
34364 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
34365 | fi | |
34366 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
34367 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
34368 | fi | |
34369 | ||
34370 | case "${host}" in | |
34371 | powerpc*-*-aix* ) | |
34372 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
34373 | ;; | |
34374 | *-hppa* ) | |
34375 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
34376 | ;; | |
34377 | esac | |
34378 | fi | |
34379 | ||
34380 | OPTIMISE= | |
34381 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
34382 | if test "$GCC" = yes ; then | |
34383 | OPTIMISE="-O0" | |
34384 | fi | |
34385 | else | |
34386 | if test "$GCC" = yes ; then | |
34387 | OPTIMISE="-O2" | |
34388 | ||
34389 | case "${host}" in | |
34390 | i586-*-*|i686-*-* ) | |
34391 | OPTIMISE="${OPTIMISE} " | |
34392 | ;; | |
34393 | esac | |
34394 | else | |
34395 | OPTIMISE="-O" | |
34396 | fi | |
34397 | fi | |
34398 | ||
34399 | ||
34400 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
34401 | cat >>confdefs.h <<\_ACEOF | |
34402 | #define WXWIN_COMPATIBILITY_2_2 1 | |
34403 | _ACEOF | |
34404 | ||
34405 | ||
34406 | WXWIN_COMPATIBILITY_2_4="yes" | |
34407 | fi | |
34408 | ||
34409 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
34410 | cat >>confdefs.h <<\_ACEOF | |
34411 | #define WXWIN_COMPATIBILITY_2_4 1 | |
34412 | _ACEOF | |
34413 | ||
34414 | fi | |
34415 | ||
34416 | ||
34417 | if test "$wxUSE_GUI" = "yes"; then | |
34418 | cat >>confdefs.h <<\_ACEOF | |
34419 | #define wxUSE_GUI 1 | |
34420 | _ACEOF | |
34421 | ||
34422 | ||
34423 | else | |
34424 | cat >>confdefs.h <<\_ACEOF | |
34425 | #define wxUSE_NOGUI 1 | |
34426 | _ACEOF | |
34427 | ||
34428 | fi | |
34429 | ||
34430 | ||
34431 | if test "$wxUSE_UNIX" = "yes"; then | |
34432 | cat >>confdefs.h <<\_ACEOF | |
34433 | #define wxUSE_UNIX 1 | |
34434 | _ACEOF | |
34435 | ||
34436 | fi | |
34437 | ||
34438 | ||
34439 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
34440 | ||
34441 | HAVE_DL_FUNCS=0 | |
34442 | HAVE_SHL_FUNCS=0 | |
34443 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34444 | if test "$USE_DARWIN" = 1; then | |
34445 | HAVE_DL_FUNCS=1 | |
34446 | else | |
34447 | ||
34448 | for ac_func in dlopen | |
34449 | do | |
34450 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34451 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34452 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34453 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34455 | else | |
34456 | cat >conftest.$ac_ext <<_ACEOF | |
34457 | /* confdefs.h. */ | |
34458 | _ACEOF | |
34459 | cat confdefs.h >>conftest.$ac_ext | |
34460 | cat >>conftest.$ac_ext <<_ACEOF | |
34461 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34462 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34464 | #define $ac_func innocuous_$ac_func | |
34465 | ||
a848cd7e SC |
34466 | /* System header to define __stub macros and hopefully few prototypes, |
34467 | which can conflict with char $ac_func (); below. | |
34468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34469 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34470 | |
a848cd7e SC |
34471 | #ifdef __STDC__ |
34472 | # include <limits.h> | |
34473 | #else | |
34474 | # include <assert.h> | |
34475 | #endif | |
ac1cb8d3 VS |
34476 | |
34477 | #undef $ac_func | |
34478 | ||
a848cd7e SC |
34479 | /* Override any gcc2 internal prototype to avoid an error. */ |
34480 | #ifdef __cplusplus | |
34481 | extern "C" | |
34482 | { | |
34483 | #endif | |
34484 | /* We use char because int might match the return type of a gcc2 | |
34485 | builtin and then its argument prototype would still apply. */ | |
34486 | char $ac_func (); | |
34487 | /* The GNU C library defines this for functions which it implements | |
34488 | to always fail with ENOSYS. Some functions are actually named | |
34489 | something starting with __ and the normal name is an alias. */ | |
34490 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34491 | choke me | |
34492 | #else | |
34493 | char (*f) () = $ac_func; | |
34494 | #endif | |
34495 | #ifdef __cplusplus | |
34496 | } | |
34497 | #endif | |
34498 | ||
34499 | int | |
34500 | main () | |
34501 | { | |
34502 | return f != $ac_func; | |
34503 | ; | |
34504 | return 0; | |
34505 | } | |
34506 | _ACEOF | |
34507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34509 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34510 | ac_status=$? |
ac1cb8d3 VS |
34511 | grep -v '^ *+' conftest.er1 >conftest.err |
34512 | rm -f conftest.er1 | |
34513 | cat conftest.err >&5 | |
a848cd7e SC |
34514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34515 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34516 | { ac_try='test -z "$ac_c_werror_flag" |
34517 | || test ! -s conftest.err' | |
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_exeext' | |
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 | eval "$as_ac_var=yes" | |
34530 | else | |
34531 | echo "$as_me: failed program was:" >&5 | |
34532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34533 | ||
34534 | eval "$as_ac_var=no" | |
34535 | fi | |
ac1cb8d3 VS |
34536 | rm -f conftest.err conftest.$ac_objext \ |
34537 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34538 | fi |
34539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34540 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34541 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34542 | cat >>confdefs.h <<_ACEOF | |
34543 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34544 | _ACEOF | |
34545 | ||
34546 | cat >>confdefs.h <<\_ACEOF | |
34547 | #define HAVE_DLOPEN 1 | |
34548 | _ACEOF | |
34549 | ||
34550 | HAVE_DL_FUNCS=1 | |
34551 | ||
34552 | else | |
34553 | ||
34554 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
34555 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
34556 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
34557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34558 | else | |
34559 | ac_check_lib_save_LIBS=$LIBS | |
34560 | LIBS="-ldl $LIBS" | |
34561 | cat >conftest.$ac_ext <<_ACEOF | |
34562 | /* confdefs.h. */ | |
34563 | _ACEOF | |
34564 | cat confdefs.h >>conftest.$ac_ext | |
34565 | cat >>conftest.$ac_ext <<_ACEOF | |
34566 | /* end confdefs.h. */ | |
34567 | ||
34568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34569 | #ifdef __cplusplus | |
34570 | extern "C" | |
34571 | #endif | |
34572 | /* We use char because int might match the return type of a gcc2 | |
34573 | builtin and then its argument prototype would still apply. */ | |
34574 | char dlopen (); | |
34575 | int | |
34576 | main () | |
34577 | { | |
34578 | dlopen (); | |
34579 | ; | |
34580 | return 0; | |
34581 | } | |
34582 | _ACEOF | |
34583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34585 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34586 | ac_status=$? |
ac1cb8d3 VS |
34587 | grep -v '^ *+' conftest.er1 >conftest.err |
34588 | rm -f conftest.er1 | |
34589 | cat conftest.err >&5 | |
a848cd7e SC |
34590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34591 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34592 | { ac_try='test -z "$ac_c_werror_flag" |
34593 | || test ! -s conftest.err' | |
34594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34595 | (eval $ac_try) 2>&5 | |
34596 | ac_status=$? | |
34597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34598 | (exit $ac_status); }; } && | |
34599 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34601 | (eval $ac_try) 2>&5 | |
34602 | ac_status=$? | |
34603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34604 | (exit $ac_status); }; }; then | |
34605 | ac_cv_lib_dl_dlopen=yes | |
34606 | else | |
34607 | echo "$as_me: failed program was:" >&5 | |
34608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34609 | ||
34610 | ac_cv_lib_dl_dlopen=no | |
34611 | fi | |
ac1cb8d3 VS |
34612 | rm -f conftest.err conftest.$ac_objext \ |
34613 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34614 | LIBS=$ac_check_lib_save_LIBS |
34615 | fi | |
34616 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
34617 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
34618 | if test $ac_cv_lib_dl_dlopen = yes; then | |
34619 | ||
34620 | cat >>confdefs.h <<\_ACEOF | |
34621 | #define HAVE_DLOPEN 1 | |
34622 | _ACEOF | |
34623 | ||
34624 | HAVE_DL_FUNCS=1 | |
34625 | DL_LINK=" -ldl$DL_LINK" | |
34626 | ||
34627 | else | |
34628 | ||
34629 | ||
34630 | for ac_func in shl_load | |
34631 | do | |
34632 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34633 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34634 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34635 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34637 | else | |
34638 | cat >conftest.$ac_ext <<_ACEOF | |
34639 | /* confdefs.h. */ | |
34640 | _ACEOF | |
34641 | cat confdefs.h >>conftest.$ac_ext | |
34642 | cat >>conftest.$ac_ext <<_ACEOF | |
34643 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34644 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34646 | #define $ac_func innocuous_$ac_func | |
34647 | ||
a848cd7e SC |
34648 | /* System header to define __stub macros and hopefully few prototypes, |
34649 | which can conflict with char $ac_func (); below. | |
34650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34651 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34652 | |
a848cd7e SC |
34653 | #ifdef __STDC__ |
34654 | # include <limits.h> | |
34655 | #else | |
34656 | # include <assert.h> | |
34657 | #endif | |
ac1cb8d3 VS |
34658 | |
34659 | #undef $ac_func | |
34660 | ||
a848cd7e SC |
34661 | /* Override any gcc2 internal prototype to avoid an error. */ |
34662 | #ifdef __cplusplus | |
34663 | extern "C" | |
34664 | { | |
34665 | #endif | |
34666 | /* We use char because int might match the return type of a gcc2 | |
34667 | builtin and then its argument prototype would still apply. */ | |
34668 | char $ac_func (); | |
34669 | /* The GNU C library defines this for functions which it implements | |
34670 | to always fail with ENOSYS. Some functions are actually named | |
34671 | something starting with __ and the normal name is an alias. */ | |
34672 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34673 | choke me | |
34674 | #else | |
34675 | char (*f) () = $ac_func; | |
34676 | #endif | |
34677 | #ifdef __cplusplus | |
34678 | } | |
34679 | #endif | |
34680 | ||
34681 | int | |
34682 | main () | |
34683 | { | |
34684 | return f != $ac_func; | |
34685 | ; | |
34686 | return 0; | |
34687 | } | |
34688 | _ACEOF | |
34689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34691 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34692 | ac_status=$? |
ac1cb8d3 VS |
34693 | grep -v '^ *+' conftest.er1 >conftest.err |
34694 | rm -f conftest.er1 | |
34695 | cat conftest.err >&5 | |
a848cd7e SC |
34696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34697 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34698 | { ac_try='test -z "$ac_c_werror_flag" |
34699 | || test ! -s conftest.err' | |
34700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34701 | (eval $ac_try) 2>&5 | |
34702 | ac_status=$? | |
34703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34704 | (exit $ac_status); }; } && | |
34705 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34707 | (eval $ac_try) 2>&5 | |
34708 | ac_status=$? | |
34709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34710 | (exit $ac_status); }; }; then | |
34711 | eval "$as_ac_var=yes" | |
34712 | else | |
34713 | echo "$as_me: failed program was:" >&5 | |
34714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34715 | ||
34716 | eval "$as_ac_var=no" | |
34717 | fi | |
ac1cb8d3 VS |
34718 | rm -f conftest.err conftest.$ac_objext \ |
34719 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34720 | fi |
34721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34722 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34723 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34724 | cat >>confdefs.h <<_ACEOF | |
34725 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34726 | _ACEOF | |
34727 | ||
34728 | cat >>confdefs.h <<\_ACEOF | |
34729 | #define HAVE_SHL_LOAD 1 | |
34730 | _ACEOF | |
34731 | ||
34732 | HAVE_SHL_FUNCS=1 | |
34733 | ||
34734 | else | |
34735 | ||
34736 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
34737 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
34738 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
34739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34740 | else | |
34741 | ac_check_lib_save_LIBS=$LIBS | |
34742 | LIBS="-lshl_load $LIBS" | |
34743 | cat >conftest.$ac_ext <<_ACEOF | |
34744 | /* confdefs.h. */ | |
34745 | _ACEOF | |
34746 | cat confdefs.h >>conftest.$ac_ext | |
34747 | cat >>conftest.$ac_ext <<_ACEOF | |
34748 | /* end confdefs.h. */ | |
34749 | ||
34750 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34751 | #ifdef __cplusplus | |
34752 | extern "C" | |
34753 | #endif | |
34754 | /* We use char because int might match the return type of a gcc2 | |
34755 | builtin and then its argument prototype would still apply. */ | |
34756 | char dld (); | |
34757 | int | |
34758 | main () | |
34759 | { | |
34760 | dld (); | |
34761 | ; | |
34762 | return 0; | |
34763 | } | |
34764 | _ACEOF | |
34765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34767 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34768 | ac_status=$? |
ac1cb8d3 VS |
34769 | grep -v '^ *+' conftest.er1 >conftest.err |
34770 | rm -f conftest.er1 | |
34771 | cat conftest.err >&5 | |
a848cd7e SC |
34772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34773 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34774 | { ac_try='test -z "$ac_c_werror_flag" |
34775 | || test ! -s conftest.err' | |
34776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34777 | (eval $ac_try) 2>&5 | |
34778 | ac_status=$? | |
34779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34780 | (exit $ac_status); }; } && | |
34781 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34783 | (eval $ac_try) 2>&5 | |
34784 | ac_status=$? | |
34785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34786 | (exit $ac_status); }; }; then | |
34787 | ac_cv_lib_shl_load_dld=yes | |
34788 | else | |
34789 | echo "$as_me: failed program was:" >&5 | |
34790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34791 | ||
34792 | ac_cv_lib_shl_load_dld=no | |
34793 | fi | |
ac1cb8d3 VS |
34794 | rm -f conftest.err conftest.$ac_objext \ |
34795 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34796 | LIBS=$ac_check_lib_save_LIBS |
34797 | fi | |
34798 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
34799 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
34800 | if test $ac_cv_lib_shl_load_dld = yes; then | |
34801 | ||
34802 | HAVE_SHL_FUNCS=1 | |
34803 | DL_LINK=" -ldld$DL_LINK" | |
34804 | ||
34805 | fi | |
34806 | ||
34807 | ||
34808 | fi | |
34809 | done | |
34810 | ||
34811 | ||
34812 | fi | |
34813 | ||
34814 | ||
34815 | fi | |
34816 | done | |
34817 | ||
34818 | ||
34819 | if test "$HAVE_DL_FUNCS" = 1; then | |
34820 | ||
34821 | for ac_func in dlerror | |
34822 | do | |
34823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34824 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34826 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34828 | else | |
34829 | cat >conftest.$ac_ext <<_ACEOF | |
34830 | /* confdefs.h. */ | |
34831 | _ACEOF | |
34832 | cat confdefs.h >>conftest.$ac_ext | |
34833 | cat >>conftest.$ac_ext <<_ACEOF | |
34834 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34837 | #define $ac_func innocuous_$ac_func | |
34838 | ||
a848cd7e SC |
34839 | /* System header to define __stub macros and hopefully few prototypes, |
34840 | which can conflict with char $ac_func (); below. | |
34841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34842 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34843 | |
a848cd7e SC |
34844 | #ifdef __STDC__ |
34845 | # include <limits.h> | |
34846 | #else | |
34847 | # include <assert.h> | |
34848 | #endif | |
ac1cb8d3 VS |
34849 | |
34850 | #undef $ac_func | |
34851 | ||
a848cd7e SC |
34852 | /* Override any gcc2 internal prototype to avoid an error. */ |
34853 | #ifdef __cplusplus | |
34854 | extern "C" | |
34855 | { | |
34856 | #endif | |
34857 | /* We use char because int might match the return type of a gcc2 | |
34858 | builtin and then its argument prototype would still apply. */ | |
34859 | char $ac_func (); | |
34860 | /* The GNU C library defines this for functions which it implements | |
34861 | to always fail with ENOSYS. Some functions are actually named | |
34862 | something starting with __ and the normal name is an alias. */ | |
34863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34864 | choke me | |
34865 | #else | |
34866 | char (*f) () = $ac_func; | |
34867 | #endif | |
34868 | #ifdef __cplusplus | |
34869 | } | |
34870 | #endif | |
34871 | ||
34872 | int | |
34873 | main () | |
34874 | { | |
34875 | return f != $ac_func; | |
34876 | ; | |
34877 | return 0; | |
34878 | } | |
34879 | _ACEOF | |
34880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34882 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34883 | ac_status=$? |
ac1cb8d3 VS |
34884 | grep -v '^ *+' conftest.er1 >conftest.err |
34885 | rm -f conftest.er1 | |
34886 | cat conftest.err >&5 | |
a848cd7e SC |
34887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34888 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34889 | { ac_try='test -z "$ac_c_werror_flag" |
34890 | || test ! -s conftest.err' | |
34891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34892 | (eval $ac_try) 2>&5 | |
34893 | ac_status=$? | |
34894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34895 | (exit $ac_status); }; } && | |
34896 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34898 | (eval $ac_try) 2>&5 | |
34899 | ac_status=$? | |
34900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34901 | (exit $ac_status); }; }; then | |
34902 | eval "$as_ac_var=yes" | |
34903 | else | |
34904 | echo "$as_me: failed program was:" >&5 | |
34905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34906 | ||
34907 | eval "$as_ac_var=no" | |
34908 | fi | |
ac1cb8d3 VS |
34909 | rm -f conftest.err conftest.$ac_objext \ |
34910 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34911 | fi |
34912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34913 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34914 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34915 | cat >>confdefs.h <<_ACEOF | |
34916 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34917 | _ACEOF | |
34918 | cat >>confdefs.h <<\_ACEOF | |
34919 | #define HAVE_DLERROR 1 | |
34920 | _ACEOF | |
34921 | ||
34922 | else | |
34923 | ||
34924 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
34925 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
34926 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
34927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34928 | else | |
34929 | ac_check_lib_save_LIBS=$LIBS | |
34930 | LIBS="-ldl $LIBS" | |
34931 | cat >conftest.$ac_ext <<_ACEOF | |
34932 | /* confdefs.h. */ | |
34933 | _ACEOF | |
34934 | cat confdefs.h >>conftest.$ac_ext | |
34935 | cat >>conftest.$ac_ext <<_ACEOF | |
34936 | /* end confdefs.h. */ | |
34937 | ||
34938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34939 | #ifdef __cplusplus | |
34940 | extern "C" | |
34941 | #endif | |
34942 | /* We use char because int might match the return type of a gcc2 | |
34943 | builtin and then its argument prototype would still apply. */ | |
34944 | char dlerror (); | |
34945 | int | |
34946 | main () | |
34947 | { | |
34948 | dlerror (); | |
34949 | ; | |
34950 | return 0; | |
34951 | } | |
34952 | _ACEOF | |
34953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34955 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34956 | ac_status=$? |
ac1cb8d3 VS |
34957 | grep -v '^ *+' conftest.er1 >conftest.err |
34958 | rm -f conftest.er1 | |
34959 | cat conftest.err >&5 | |
a848cd7e SC |
34960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34961 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34962 | { ac_try='test -z "$ac_c_werror_flag" |
34963 | || test ! -s conftest.err' | |
34964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34965 | (eval $ac_try) 2>&5 | |
34966 | ac_status=$? | |
34967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34968 | (exit $ac_status); }; } && | |
34969 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34971 | (eval $ac_try) 2>&5 | |
34972 | ac_status=$? | |
34973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34974 | (exit $ac_status); }; }; then | |
34975 | ac_cv_lib_dl_dlerror=yes | |
34976 | else | |
34977 | echo "$as_me: failed program was:" >&5 | |
34978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34979 | ||
34980 | ac_cv_lib_dl_dlerror=no | |
34981 | fi | |
ac1cb8d3 VS |
34982 | rm -f conftest.err conftest.$ac_objext \ |
34983 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34984 | LIBS=$ac_check_lib_save_LIBS |
34985 | fi | |
34986 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
34987 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
34988 | if test $ac_cv_lib_dl_dlerror = yes; then | |
34989 | cat >>confdefs.h <<\_ACEOF | |
34990 | #define HAVE_DLERROR 1 | |
34991 | _ACEOF | |
34992 | ||
34993 | fi | |
34994 | ||
34995 | ||
34996 | ||
34997 | fi | |
34998 | done | |
34999 | ||
35000 | fi | |
35001 | fi | |
35002 | ||
35003 | if test "$HAVE_DL_FUNCS" = 0; then | |
35004 | if test "$HAVE_SHL_FUNCS" = 0; then | |
35005 | if test "$USE_UNIX" = 1; then | |
35006 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
35007 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
35008 | wxUSE_DYNAMIC_LOADER=no | |
35009 | wxUSE_DYNLIB_CLASS=no | |
35010 | else | |
35011 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
35012 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
35013 | fi | |
35014 | fi | |
35015 | fi | |
35016 | fi | |
35017 | fi | |
35018 | ||
35019 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
35020 | cat >>confdefs.h <<\_ACEOF | |
35021 | #define wxUSE_DYNAMIC_LOADER 1 | |
35022 | _ACEOF | |
35023 | ||
35024 | fi | |
35025 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
35026 | cat >>confdefs.h <<\_ACEOF | |
35027 | #define wxUSE_DYNLIB_CLASS 1 | |
35028 | _ACEOF | |
35029 | ||
35030 | fi | |
35031 | ||
35032 | ||
35033 | ||
35034 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35035 | if test "$wxUSE_SHARED" = "no" ; then | |
35036 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
35037 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
35038 | wxUSE_PLUGINS=no | |
35039 | fi | |
35040 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
35041 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
35042 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
35043 | wxUSE_PLUGINS=no | |
35044 | fi | |
35045 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
35046 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
35047 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
35048 | wxUSE_PLUGINS=no | |
35049 | fi | |
35050 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35051 | cat >>confdefs.h <<\_ACEOF | |
35052 | #define wxUSE_PLUGINS 1 | |
35053 | _ACEOF | |
35054 | ||
35055 | fi | |
35056 | fi | |
35057 | ||
35058 | ||
35059 | if test "$wxUSE_STL" = "yes"; then | |
35060 | cat >>confdefs.h <<\_ACEOF | |
35061 | #define wxUSE_STL 1 | |
35062 | _ACEOF | |
35063 | ||
35064 | fi | |
35065 | ||
35066 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
35067 | cat >>confdefs.h <<\_ACEOF | |
35068 | #define wxUSE_APPLE_IEEE 1 | |
35069 | _ACEOF | |
35070 | ||
35071 | fi | |
35072 | ||
35073 | if test "$wxUSE_TIMER" = "yes"; then | |
35074 | cat >>confdefs.h <<\_ACEOF | |
35075 | #define wxUSE_TIMER 1 | |
35076 | _ACEOF | |
35077 | ||
35078 | fi | |
35079 | ||
35080 | WITH_PLUGIN_SDL=0 | |
35081 | if test "$wxUSE_SOUND" = "yes"; then | |
35082 | if test "$USE_UNIX" = "1" ; then | |
35083 | ||
35084 | for ac_header in sys/soundcard.h | |
35085 | do | |
35086 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35088 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35090 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35092 | fi | |
35093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35094 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35095 | else | |
35096 | # Is the header compilable? | |
35097 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35098 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35099 | cat >conftest.$ac_ext <<_ACEOF | |
35100 | /* confdefs.h. */ | |
35101 | _ACEOF | |
35102 | cat confdefs.h >>conftest.$ac_ext | |
35103 | cat >>conftest.$ac_ext <<_ACEOF | |
35104 | /* end confdefs.h. */ | |
35105 | $ac_includes_default | |
35106 | #include <$ac_header> | |
35107 | _ACEOF | |
35108 | rm -f conftest.$ac_objext | |
35109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35110 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35111 | ac_status=$? |
ac1cb8d3 VS |
35112 | grep -v '^ *+' conftest.er1 >conftest.err |
35113 | rm -f conftest.er1 | |
35114 | cat conftest.err >&5 | |
a848cd7e SC |
35115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35116 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35117 | { ac_try='test -z "$ac_c_werror_flag" |
35118 | || test ! -s conftest.err' | |
35119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35120 | (eval $ac_try) 2>&5 | |
35121 | ac_status=$? | |
35122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35123 | (exit $ac_status); }; } && | |
35124 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35126 | (eval $ac_try) 2>&5 | |
35127 | ac_status=$? | |
35128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35129 | (exit $ac_status); }; }; then | |
35130 | ac_header_compiler=yes | |
35131 | else | |
35132 | echo "$as_me: failed program was:" >&5 | |
35133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35134 | ||
35135 | ac_header_compiler=no | |
35136 | fi | |
ac1cb8d3 | 35137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35138 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35139 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35140 | ||
35141 | # Is the header present? | |
35142 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35143 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35144 | cat >conftest.$ac_ext <<_ACEOF | |
35145 | /* confdefs.h. */ | |
35146 | _ACEOF | |
35147 | cat confdefs.h >>conftest.$ac_ext | |
35148 | cat >>conftest.$ac_ext <<_ACEOF | |
35149 | /* end confdefs.h. */ | |
35150 | #include <$ac_header> | |
35151 | _ACEOF | |
35152 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35153 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35154 | ac_status=$? | |
35155 | grep -v '^ *+' conftest.er1 >conftest.err | |
35156 | rm -f conftest.er1 | |
35157 | cat conftest.err >&5 | |
35158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35159 | (exit $ac_status); } >/dev/null; then | |
35160 | if test -s conftest.err; then | |
35161 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35162 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35163 | else |
35164 | ac_cpp_err= | |
35165 | fi | |
35166 | else | |
35167 | ac_cpp_err=yes | |
35168 | fi | |
35169 | if test -z "$ac_cpp_err"; then | |
35170 | ac_header_preproc=yes | |
35171 | else | |
35172 | echo "$as_me: failed program was:" >&5 | |
35173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35174 | ||
35175 | ac_header_preproc=no | |
35176 | fi | |
35177 | rm -f conftest.err conftest.$ac_ext | |
35178 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35179 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35180 | ||
35181 | # So? What about this header? | |
ac1cb8d3 VS |
35182 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35183 | yes:no: ) | |
a848cd7e SC |
35184 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35185 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35186 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35187 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35188 | ac_header_preproc=yes | |
a848cd7e | 35189 | ;; |
ac1cb8d3 | 35190 | no:yes:* ) |
a848cd7e SC |
35191 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35192 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35193 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35194 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35195 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35196 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35197 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35198 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35199 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35200 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35201 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35202 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35203 | ( |
35204 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35205 | ## ----------------------------------------- ## |
35206 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35207 | ## ----------------------------------------- ## | |
a848cd7e SC |
35208 | _ASBOX |
35209 | ) | | |
35210 | sed "s/^/$as_me: WARNING: /" >&2 | |
35211 | ;; | |
35212 | esac | |
35213 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35217 | else | |
ac1cb8d3 | 35218 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35219 | fi |
35220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35221 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35222 | ||
35223 | fi | |
35224 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35225 | cat >>confdefs.h <<_ACEOF | |
35226 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35227 | _ACEOF | |
35228 | ||
35229 | fi | |
35230 | ||
35231 | done | |
35232 | ||
35233 | ||
35234 | if test "$wxUSE_LIBSDL" != "no"; then | |
35235 | ||
35236 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
35237 | if test "${with_sdl_prefix+set}" = set; then | |
35238 | withval="$with_sdl_prefix" | |
35239 | sdl_prefix="$withval" | |
35240 | else | |
35241 | sdl_prefix="" | |
35242 | fi; | |
35243 | ||
35244 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
35245 | if test "${with_sdl_exec_prefix+set}" = set; then | |
35246 | withval="$with_sdl_exec_prefix" | |
35247 | sdl_exec_prefix="$withval" | |
35248 | else | |
35249 | sdl_exec_prefix="" | |
35250 | fi; | |
35251 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
35252 | if test "${enable_sdltest+set}" = set; then | |
35253 | enableval="$enable_sdltest" | |
35254 | ||
35255 | else | |
35256 | enable_sdltest=yes | |
35257 | fi; | |
35258 | ||
35259 | if test x$sdl_exec_prefix != x ; then | |
35260 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
35261 | if test x${SDL_CONFIG+set} != xset ; then | |
35262 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
35263 | fi | |
35264 | fi | |
35265 | if test x$sdl_prefix != x ; then | |
35266 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
35267 | if test x${SDL_CONFIG+set} != xset ; then | |
35268 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
35269 | fi | |
35270 | fi | |
35271 | ||
35272 | ||
35273 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
35274 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
35275 | set dummy sdl-config; ac_word=$2 | |
35276 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35278 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
35279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35280 | else | |
35281 | case $SDL_CONFIG in | |
35282 | [\\/]* | ?:[\\/]*) | |
35283 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
35284 | ;; | |
35285 | *) | |
35286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35287 | for as_dir in $PATH | |
35288 | do | |
35289 | IFS=$as_save_IFS | |
35290 | test -z "$as_dir" && as_dir=. | |
35291 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35292 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35293 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35295 | break 2 | |
35296 | fi | |
35297 | done | |
35298 | done | |
35299 | ||
35300 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
35301 | ;; | |
35302 | esac | |
35303 | fi | |
35304 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
35305 | ||
35306 | if test -n "$SDL_CONFIG"; then | |
35307 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
35308 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
35309 | else | |
35310 | echo "$as_me:$LINENO: result: no" >&5 | |
35311 | echo "${ECHO_T}no" >&6 | |
35312 | fi | |
35313 | ||
35314 | min_sdl_version=1.2.0 | |
35315 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
35316 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
35317 | no_sdl="" | |
35318 | if test "$SDL_CONFIG" = "no" ; then | |
35319 | no_sdl=yes | |
35320 | else | |
35321 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
35322 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
35323 | ||
35324 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
35325 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
35326 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
35327 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
35328 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
35329 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
35330 | if test "x$enable_sdltest" = "xyes" ; then | |
35331 | ac_save_CFLAGS="$CFLAGS" | |
35332 | ac_save_LIBS="$LIBS" | |
35333 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
35334 | LIBS="$LIBS $SDL_LIBS" | |
35335 | rm -f conf.sdltest | |
35336 | if test "$cross_compiling" = yes; then | |
35337 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
35338 | else | |
35339 | cat >conftest.$ac_ext <<_ACEOF | |
35340 | /* confdefs.h. */ | |
35341 | _ACEOF | |
35342 | cat confdefs.h >>conftest.$ac_ext | |
35343 | cat >>conftest.$ac_ext <<_ACEOF | |
35344 | /* end confdefs.h. */ | |
35345 | ||
35346 | #include <stdio.h> | |
35347 | #include <stdlib.h> | |
35348 | #include <string.h> | |
35349 | #include "SDL.h" | |
35350 | ||
35351 | char* | |
35352 | my_strdup (char *str) | |
35353 | { | |
35354 | char *new_str; | |
35355 | ||
35356 | if (str) | |
35357 | { | |
35358 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
35359 | strcpy (new_str, str); | |
35360 | } | |
35361 | else | |
35362 | new_str = NULL; | |
35363 | ||
35364 | return new_str; | |
35365 | } | |
35366 | ||
35367 | int main (int argc, char *argv[]) | |
35368 | { | |
35369 | int major, minor, micro; | |
35370 | char *tmp_version; | |
35371 | ||
35372 | /* This hangs on some systems (?) | |
35373 | system ("touch conf.sdltest"); | |
35374 | */ | |
35375 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
35376 | ||
35377 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
35378 | tmp_version = my_strdup("$min_sdl_version"); | |
35379 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
35380 | printf("%s, bad version string\n", "$min_sdl_version"); | |
35381 | exit(1); | |
35382 | } | |
35383 | ||
35384 | if (($sdl_major_version > major) || | |
35385 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
35386 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
35387 | { | |
35388 | return 0; | |
35389 | } | |
35390 | else | |
35391 | { | |
35392 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
35393 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
35394 | printf("*** best to upgrade to the required version.\n"); | |
35395 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
35396 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
35397 | printf("*** config.cache before re-running configure\n"); | |
35398 | return 1; | |
35399 | } | |
35400 | } | |
35401 | ||
35402 | ||
35403 | _ACEOF | |
35404 | rm -f conftest$ac_exeext | |
35405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35406 | (eval $ac_link) 2>&5 | |
35407 | ac_status=$? | |
35408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35409 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
35410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35411 | (eval $ac_try) 2>&5 | |
35412 | ac_status=$? | |
35413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35414 | (exit $ac_status); }; }; then | |
35415 | : | |
35416 | else | |
35417 | echo "$as_me: program exited with status $ac_status" >&5 | |
35418 | echo "$as_me: failed program was:" >&5 | |
35419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35420 | ||
35421 | ( exit $ac_status ) | |
35422 | no_sdl=yes | |
35423 | fi | |
ac1cb8d3 | 35424 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35425 | fi |
35426 | CFLAGS="$ac_save_CFLAGS" | |
35427 | LIBS="$ac_save_LIBS" | |
35428 | fi | |
35429 | fi | |
35430 | if test "x$no_sdl" = x ; then | |
35431 | echo "$as_me:$LINENO: result: yes" >&5 | |
35432 | echo "${ECHO_T}yes" >&6 | |
35433 | ||
35434 | EXTRALIBS_SDL="$SDL_LIBS" | |
35435 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
35436 | cat >>confdefs.h <<\_ACEOF | |
35437 | #define wxUSE_LIBSDL 1 | |
35438 | _ACEOF | |
35439 | ||
35440 | ||
35441 | else | |
35442 | echo "$as_me:$LINENO: result: no" >&5 | |
35443 | echo "${ECHO_T}no" >&6 | |
35444 | if test "$SDL_CONFIG" = "no" ; then | |
35445 | echo "*** The sdl-config script installed by SDL could not be found" | |
35446 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
35447 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
35448 | echo "*** full path to sdl-config." | |
35449 | else | |
35450 | if test -f conf.sdltest ; then | |
35451 | : | |
35452 | else | |
35453 | echo "*** Could not run SDL test program, checking why..." | |
35454 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
35455 | LIBS="$LIBS $SDL_LIBS" | |
35456 | cat >conftest.$ac_ext <<_ACEOF | |
35457 | /* confdefs.h. */ | |
35458 | _ACEOF | |
35459 | cat confdefs.h >>conftest.$ac_ext | |
35460 | cat >>conftest.$ac_ext <<_ACEOF | |
35461 | /* end confdefs.h. */ | |
35462 | ||
35463 | #include <stdio.h> | |
35464 | #include "SDL.h" | |
35465 | ||
35466 | int main(int argc, char *argv[]) | |
35467 | { return 0; } | |
35468 | #undef main | |
35469 | #define main K_and_R_C_main | |
35470 | ||
35471 | int | |
35472 | main () | |
35473 | { | |
35474 | return 0; | |
35475 | ; | |
35476 | return 0; | |
35477 | } | |
35478 | _ACEOF | |
35479 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35481 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35482 | ac_status=$? |
ac1cb8d3 VS |
35483 | grep -v '^ *+' conftest.er1 >conftest.err |
35484 | rm -f conftest.er1 | |
35485 | cat conftest.err >&5 | |
a848cd7e SC |
35486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35487 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35488 | { ac_try='test -z "$ac_c_werror_flag" |
35489 | || test ! -s conftest.err' | |
35490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35491 | (eval $ac_try) 2>&5 | |
35492 | ac_status=$? | |
35493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35494 | (exit $ac_status); }; } && | |
35495 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35497 | (eval $ac_try) 2>&5 | |
35498 | ac_status=$? | |
35499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35500 | (exit $ac_status); }; }; then | |
35501 | echo "*** The test program compiled, but did not run. This usually means" | |
35502 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
35503 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
35504 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
35505 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
35506 | echo "*** is required on your system" | |
35507 | echo "***" | |
35508 | echo "*** If you have an old version installed, it is best to remove it, although" | |
35509 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
35510 | else | |
35511 | echo "$as_me: failed program was:" >&5 | |
35512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35513 | ||
35514 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
35515 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
35516 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
35517 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
35518 | fi | |
ac1cb8d3 VS |
35519 | rm -f conftest.err conftest.$ac_objext \ |
35520 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35521 | CFLAGS="$ac_save_CFLAGS" |
35522 | LIBS="$ac_save_LIBS" | |
35523 | fi | |
35524 | fi | |
35525 | SDL_CFLAGS="" | |
35526 | SDL_LIBS="" | |
35527 | wxUSE_LIBSDL="no" | |
35528 | fi | |
35529 | ||
35530 | ||
35531 | rm -f conf.sdltest | |
35532 | ||
35533 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
35534 | WITH_PLUGIN_SDL=1 | |
35535 | fi | |
35536 | fi | |
35537 | fi | |
35538 | ||
35539 | cat >>confdefs.h <<\_ACEOF | |
35540 | #define wxUSE_SOUND 1 | |
35541 | _ACEOF | |
35542 | ||
35543 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
35544 | fi | |
35545 | ||
35546 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
35547 | cat >>confdefs.h <<\_ACEOF | |
35548 | #define wxUSE_CMDLINE_PARSER 1 | |
35549 | _ACEOF | |
35550 | ||
35551 | fi | |
35552 | ||
35553 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
35554 | cat >>confdefs.h <<\_ACEOF | |
35555 | #define wxUSE_STOPWATCH 1 | |
35556 | _ACEOF | |
35557 | ||
35558 | fi | |
35559 | ||
35560 | if test "$wxUSE_DATETIME" = "yes"; then | |
35561 | cat >>confdefs.h <<\_ACEOF | |
35562 | #define wxUSE_DATETIME 1 | |
35563 | _ACEOF | |
35564 | ||
35565 | fi | |
35566 | ||
35567 | if test "$wxUSE_FILE" = "yes"; then | |
35568 | cat >>confdefs.h <<\_ACEOF | |
35569 | #define wxUSE_FILE 1 | |
35570 | _ACEOF | |
35571 | ||
35572 | fi | |
35573 | ||
35574 | if test "$wxUSE_FFILE" = "yes"; then | |
35575 | cat >>confdefs.h <<\_ACEOF | |
35576 | #define wxUSE_FFILE 1 | |
35577 | _ACEOF | |
35578 | ||
35579 | fi | |
35580 | ||
35581 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
35582 | cat >>confdefs.h <<\_ACEOF | |
35583 | #define wxUSE_FILESYSTEM 1 | |
35584 | _ACEOF | |
35585 | ||
35586 | fi | |
35587 | ||
35588 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
35589 | cat >>confdefs.h <<\_ACEOF | |
35590 | #define wxUSE_FS_ZIP 1 | |
35591 | _ACEOF | |
35592 | ||
35593 | fi | |
35594 | ||
35595 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
35596 | cat >>confdefs.h <<\_ACEOF | |
35597 | #define wxUSE_ZIPSTREAM 1 | |
35598 | _ACEOF | |
35599 | ||
35600 | fi | |
35601 | ||
a848cd7e SC |
35602 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
35603 | cat >>confdefs.h <<\_ACEOF | |
35604 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
35605 | _ACEOF | |
35606 | ||
35607 | fi | |
35608 | ||
35609 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
35610 | cat >>confdefs.h <<\_ACEOF | |
35611 | #define wxUSE_SNGLINST_CHECKER 1 | |
35612 | _ACEOF | |
35613 | ||
35614 | fi | |
35615 | ||
35616 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
35617 | cat >>confdefs.h <<\_ACEOF | |
35618 | #define wxUSE_BUSYINFO 1 | |
35619 | _ACEOF | |
35620 | ||
35621 | fi | |
35622 | ||
35623 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
35624 | cat >>confdefs.h <<\_ACEOF | |
35625 | #define wxUSE_STD_IOSTREAM 1 | |
35626 | _ACEOF | |
35627 | ||
35628 | fi | |
35629 | ||
35630 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
35631 | cat >>confdefs.h <<\_ACEOF | |
35632 | #define wxUSE_TEXTBUFFER 1 | |
35633 | _ACEOF | |
35634 | ||
35635 | fi | |
35636 | ||
35637 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
35638 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
35639 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
35640 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
35641 | else | |
35642 | cat >>confdefs.h <<\_ACEOF | |
35643 | #define wxUSE_TEXTFILE 1 | |
35644 | _ACEOF | |
35645 | ||
35646 | fi | |
35647 | fi | |
35648 | ||
35649 | if test "$wxUSE_CONFIG" = "yes" ; then | |
35650 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
35651 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
35652 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
35653 | else | |
35654 | cat >>confdefs.h <<\_ACEOF | |
35655 | #define wxUSE_CONFIG 1 | |
35656 | _ACEOF | |
35657 | ||
35658 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
35659 | fi | |
35660 | fi | |
35661 | ||
35662 | if test "$wxUSE_INTL" = "yes" ; then | |
35663 | if test "$wxUSE_FILE" != "yes"; then | |
35664 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
35665 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
35666 | else | |
35667 | cat >>confdefs.h <<\_ACEOF | |
35668 | #define wxUSE_INTL 1 | |
35669 | _ACEOF | |
35670 | ||
35671 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
35672 | GUIDIST="$GUIDIST INTL_DIST" | |
35673 | fi | |
35674 | fi | |
35675 | ||
35676 | if test "$wxUSE_LOG" = "yes"; then | |
35677 | cat >>confdefs.h <<\_ACEOF | |
35678 | #define wxUSE_LOG 1 | |
35679 | _ACEOF | |
35680 | ||
35681 | ||
35682 | if test "$wxUSE_LOGGUI" = "yes"; then | |
35683 | cat >>confdefs.h <<\_ACEOF | |
35684 | #define wxUSE_LOGGUI 1 | |
35685 | _ACEOF | |
35686 | ||
35687 | fi | |
35688 | ||
35689 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
35690 | cat >>confdefs.h <<\_ACEOF | |
35691 | #define wxUSE_LOGWINDOW 1 | |
35692 | _ACEOF | |
35693 | ||
35694 | fi | |
35695 | ||
35696 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
35697 | cat >>confdefs.h <<\_ACEOF | |
35698 | #define wxUSE_LOG_DIALOG 1 | |
35699 | _ACEOF | |
35700 | ||
35701 | fi | |
35702 | fi | |
35703 | ||
35704 | if test "$wxUSE_LONGLONG" = "yes"; then | |
35705 | cat >>confdefs.h <<\_ACEOF | |
35706 | #define wxUSE_LONGLONG 1 | |
35707 | _ACEOF | |
35708 | ||
35709 | fi | |
35710 | ||
35711 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
35712 | cat >>confdefs.h <<\_ACEOF | |
35713 | #define wxUSE_GEOMETRY 1 | |
35714 | _ACEOF | |
35715 | ||
35716 | fi | |
35717 | ||
35718 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
35719 | cat >>confdefs.h <<\_ACEOF | |
35720 | #define wxUSE_DIALUP_MANAGER 1 | |
35721 | _ACEOF | |
35722 | ||
35723 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
35724 | fi | |
35725 | ||
35726 | if test "$wxUSE_STREAMS" = "yes" ; then | |
35727 | cat >>confdefs.h <<\_ACEOF | |
35728 | #define wxUSE_STREAMS 1 | |
35729 | _ACEOF | |
35730 | ||
35731 | fi | |
35732 | ||
35733 | ||
35734 | if test "$wxUSE_DATETIME" = "yes"; then | |
35735 | ||
35736 | for ac_func in strptime | |
35737 | do | |
35738 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35739 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35740 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35741 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35743 | else | |
35744 | cat >conftest.$ac_ext <<_ACEOF | |
35745 | /* confdefs.h. */ | |
35746 | _ACEOF | |
35747 | cat confdefs.h >>conftest.$ac_ext | |
35748 | cat >>conftest.$ac_ext <<_ACEOF | |
35749 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35750 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35752 | #define $ac_func innocuous_$ac_func | |
35753 | ||
a848cd7e SC |
35754 | /* System header to define __stub macros and hopefully few prototypes, |
35755 | which can conflict with char $ac_func (); below. | |
35756 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35757 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35758 | |
a848cd7e SC |
35759 | #ifdef __STDC__ |
35760 | # include <limits.h> | |
35761 | #else | |
35762 | # include <assert.h> | |
35763 | #endif | |
ac1cb8d3 VS |
35764 | |
35765 | #undef $ac_func | |
35766 | ||
a848cd7e SC |
35767 | /* Override any gcc2 internal prototype to avoid an error. */ |
35768 | #ifdef __cplusplus | |
35769 | extern "C" | |
35770 | { | |
35771 | #endif | |
35772 | /* We use char because int might match the return type of a gcc2 | |
35773 | builtin and then its argument prototype would still apply. */ | |
35774 | char $ac_func (); | |
35775 | /* The GNU C library defines this for functions which it implements | |
35776 | to always fail with ENOSYS. Some functions are actually named | |
35777 | something starting with __ and the normal name is an alias. */ | |
35778 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35779 | choke me | |
35780 | #else | |
35781 | char (*f) () = $ac_func; | |
35782 | #endif | |
35783 | #ifdef __cplusplus | |
35784 | } | |
35785 | #endif | |
35786 | ||
35787 | int | |
35788 | main () | |
35789 | { | |
35790 | return f != $ac_func; | |
35791 | ; | |
35792 | return 0; | |
35793 | } | |
35794 | _ACEOF | |
35795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35797 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35798 | ac_status=$? |
ac1cb8d3 VS |
35799 | grep -v '^ *+' conftest.er1 >conftest.err |
35800 | rm -f conftest.er1 | |
35801 | cat conftest.err >&5 | |
a848cd7e SC |
35802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35803 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35804 | { ac_try='test -z "$ac_c_werror_flag" |
35805 | || test ! -s conftest.err' | |
35806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35807 | (eval $ac_try) 2>&5 | |
35808 | ac_status=$? | |
35809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35810 | (exit $ac_status); }; } && | |
35811 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35813 | (eval $ac_try) 2>&5 | |
35814 | ac_status=$? | |
35815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35816 | (exit $ac_status); }; }; then | |
35817 | eval "$as_ac_var=yes" | |
35818 | else | |
35819 | echo "$as_me: failed program was:" >&5 | |
35820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35821 | ||
35822 | eval "$as_ac_var=no" | |
35823 | fi | |
ac1cb8d3 VS |
35824 | rm -f conftest.err conftest.$ac_objext \ |
35825 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35826 | fi |
35827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35828 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35829 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35830 | cat >>confdefs.h <<_ACEOF | |
35831 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35832 | _ACEOF | |
35833 | ||
35834 | fi | |
35835 | done | |
35836 | ||
35837 | ||
35838 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
35839 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
35840 | if test "${wx_cv_var_timezone+set}" = set; then | |
35841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35842 | else | |
35843 | ||
35844 | cat >conftest.$ac_ext <<_ACEOF | |
35845 | /* confdefs.h. */ | |
35846 | _ACEOF | |
35847 | cat confdefs.h >>conftest.$ac_ext | |
35848 | cat >>conftest.$ac_ext <<_ACEOF | |
35849 | /* end confdefs.h. */ | |
35850 | ||
35851 | #include <time.h> | |
35852 | ||
35853 | int | |
35854 | main () | |
35855 | { | |
35856 | ||
35857 | int tz; | |
35858 | tz = timezone; | |
35859 | ||
35860 | ; | |
35861 | return 0; | |
35862 | } | |
35863 | _ACEOF | |
35864 | rm -f conftest.$ac_objext | |
35865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35866 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35867 | ac_status=$? |
ac1cb8d3 VS |
35868 | grep -v '^ *+' conftest.er1 >conftest.err |
35869 | rm -f conftest.er1 | |
35870 | cat conftest.err >&5 | |
a848cd7e SC |
35871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35872 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35873 | { ac_try='test -z "$ac_c_werror_flag" |
35874 | || test ! -s conftest.err' | |
35875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35876 | (eval $ac_try) 2>&5 | |
35877 | ac_status=$? | |
35878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35879 | (exit $ac_status); }; } && | |
35880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35882 | (eval $ac_try) 2>&5 | |
35883 | ac_status=$? | |
35884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35885 | (exit $ac_status); }; }; then | |
35886 | ||
35887 | wx_cv_var_timezone=timezone | |
35888 | ||
35889 | else | |
35890 | echo "$as_me: failed program was:" >&5 | |
35891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35892 | ||
35893 | ||
35894 | cat >conftest.$ac_ext <<_ACEOF | |
35895 | /* confdefs.h. */ | |
35896 | _ACEOF | |
35897 | cat confdefs.h >>conftest.$ac_ext | |
35898 | cat >>conftest.$ac_ext <<_ACEOF | |
35899 | /* end confdefs.h. */ | |
35900 | ||
35901 | #include <time.h> | |
35902 | ||
35903 | int | |
35904 | main () | |
35905 | { | |
35906 | ||
35907 | int tz; | |
35908 | tz = _timezone; | |
35909 | ||
35910 | ; | |
35911 | return 0; | |
35912 | } | |
35913 | _ACEOF | |
35914 | rm -f conftest.$ac_objext | |
35915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35916 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35917 | ac_status=$? |
ac1cb8d3 VS |
35918 | grep -v '^ *+' conftest.er1 >conftest.err |
35919 | rm -f conftest.er1 | |
35920 | cat conftest.err >&5 | |
a848cd7e SC |
35921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35922 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35923 | { ac_try='test -z "$ac_c_werror_flag" |
35924 | || test ! -s conftest.err' | |
35925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35926 | (eval $ac_try) 2>&5 | |
35927 | ac_status=$? | |
35928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35929 | (exit $ac_status); }; } && | |
35930 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35932 | (eval $ac_try) 2>&5 | |
35933 | ac_status=$? | |
35934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35935 | (exit $ac_status); }; }; then | |
35936 | ||
35937 | wx_cv_var_timezone=_timezone | |
35938 | ||
35939 | else | |
35940 | echo "$as_me: failed program was:" >&5 | |
35941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35942 | ||
35943 | ||
35944 | cat >conftest.$ac_ext <<_ACEOF | |
35945 | /* confdefs.h. */ | |
35946 | _ACEOF | |
35947 | cat confdefs.h >>conftest.$ac_ext | |
35948 | cat >>conftest.$ac_ext <<_ACEOF | |
35949 | /* end confdefs.h. */ | |
35950 | ||
35951 | #include <time.h> | |
35952 | ||
35953 | int | |
35954 | main () | |
35955 | { | |
35956 | ||
35957 | int tz; | |
35958 | tz = __timezone; | |
35959 | ||
35960 | ; | |
35961 | return 0; | |
35962 | } | |
35963 | _ACEOF | |
35964 | rm -f conftest.$ac_objext | |
35965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35966 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35967 | ac_status=$? |
ac1cb8d3 VS |
35968 | grep -v '^ *+' conftest.er1 >conftest.err |
35969 | rm -f conftest.er1 | |
35970 | cat conftest.err >&5 | |
a848cd7e SC |
35971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35972 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35973 | { ac_try='test -z "$ac_c_werror_flag" |
35974 | || test ! -s conftest.err' | |
35975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35976 | (eval $ac_try) 2>&5 | |
35977 | ac_status=$? | |
35978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35979 | (exit $ac_status); }; } && | |
35980 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35982 | (eval $ac_try) 2>&5 | |
35983 | ac_status=$? | |
35984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35985 | (exit $ac_status); }; }; then | |
35986 | ||
35987 | wx_cv_var_timezone=__timezone | |
35988 | ||
35989 | else | |
35990 | echo "$as_me: failed program was:" >&5 | |
35991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35992 | ||
35993 | ||
35994 | if test "$USE_DOS" = 0 ; then | |
35995 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
35996 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
35997 | fi | |
35998 | ||
35999 | ||
36000 | fi | |
ac1cb8d3 | 36001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36002 | |
36003 | ||
36004 | fi | |
ac1cb8d3 | 36005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36006 | |
36007 | ||
36008 | fi | |
ac1cb8d3 | 36009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36010 | |
36011 | ||
36012 | fi | |
36013 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
36014 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
36015 | ||
36016 | if test "x$wx_cv_var_timezone" != x ; then | |
36017 | cat >>confdefs.h <<_ACEOF | |
36018 | #define WX_TIMEZONE $wx_cv_var_timezone | |
36019 | _ACEOF | |
36020 | ||
36021 | fi | |
36022 | ||
36023 | ||
36024 | for ac_func in localtime | |
36025 | do | |
36026 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36027 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36028 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36029 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36031 | else | |
36032 | cat >conftest.$ac_ext <<_ACEOF | |
36033 | /* confdefs.h. */ | |
36034 | _ACEOF | |
36035 | cat confdefs.h >>conftest.$ac_ext | |
36036 | cat >>conftest.$ac_ext <<_ACEOF | |
36037 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36038 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36039 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36040 | #define $ac_func innocuous_$ac_func | |
36041 | ||
a848cd7e SC |
36042 | /* System header to define __stub macros and hopefully few prototypes, |
36043 | which can conflict with char $ac_func (); below. | |
36044 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36045 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36046 | |
a848cd7e SC |
36047 | #ifdef __STDC__ |
36048 | # include <limits.h> | |
36049 | #else | |
36050 | # include <assert.h> | |
36051 | #endif | |
ac1cb8d3 VS |
36052 | |
36053 | #undef $ac_func | |
36054 | ||
a848cd7e SC |
36055 | /* Override any gcc2 internal prototype to avoid an error. */ |
36056 | #ifdef __cplusplus | |
36057 | extern "C" | |
36058 | { | |
36059 | #endif | |
36060 | /* We use char because int might match the return type of a gcc2 | |
36061 | builtin and then its argument prototype would still apply. */ | |
36062 | char $ac_func (); | |
36063 | /* The GNU C library defines this for functions which it implements | |
36064 | to always fail with ENOSYS. Some functions are actually named | |
36065 | something starting with __ and the normal name is an alias. */ | |
36066 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36067 | choke me | |
36068 | #else | |
36069 | char (*f) () = $ac_func; | |
36070 | #endif | |
36071 | #ifdef __cplusplus | |
36072 | } | |
36073 | #endif | |
36074 | ||
36075 | int | |
36076 | main () | |
36077 | { | |
36078 | return f != $ac_func; | |
36079 | ; | |
36080 | return 0; | |
36081 | } | |
36082 | _ACEOF | |
36083 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36085 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36086 | ac_status=$? |
ac1cb8d3 VS |
36087 | grep -v '^ *+' conftest.er1 >conftest.err |
36088 | rm -f conftest.er1 | |
36089 | cat conftest.err >&5 | |
a848cd7e SC |
36090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36091 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36092 | { ac_try='test -z "$ac_c_werror_flag" |
36093 | || test ! -s conftest.err' | |
36094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36095 | (eval $ac_try) 2>&5 | |
36096 | ac_status=$? | |
36097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36098 | (exit $ac_status); }; } && | |
36099 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36101 | (eval $ac_try) 2>&5 | |
36102 | ac_status=$? | |
36103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36104 | (exit $ac_status); }; }; then | |
36105 | eval "$as_ac_var=yes" | |
36106 | else | |
36107 | echo "$as_me: failed program was:" >&5 | |
36108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36109 | ||
36110 | eval "$as_ac_var=no" | |
36111 | fi | |
ac1cb8d3 VS |
36112 | rm -f conftest.err conftest.$ac_objext \ |
36113 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36114 | fi |
36115 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36116 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36117 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36118 | cat >>confdefs.h <<_ACEOF | |
36119 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36120 | _ACEOF | |
36121 | ||
36122 | fi | |
36123 | done | |
36124 | ||
36125 | ||
36126 | if test "$ac_cv_func_localtime" = "yes"; then | |
36127 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
36128 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
36129 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
36130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36131 | else | |
36132 | ||
36133 | cat >conftest.$ac_ext <<_ACEOF | |
36134 | /* confdefs.h. */ | |
36135 | _ACEOF | |
36136 | cat confdefs.h >>conftest.$ac_ext | |
36137 | cat >>conftest.$ac_ext <<_ACEOF | |
36138 | /* end confdefs.h. */ | |
36139 | ||
36140 | #include <time.h> | |
36141 | ||
36142 | int | |
36143 | main () | |
36144 | { | |
36145 | ||
36146 | struct tm tm; | |
36147 | tm.tm_gmtoff++; | |
36148 | ||
36149 | ; | |
36150 | return 0; | |
36151 | } | |
36152 | _ACEOF | |
36153 | rm -f conftest.$ac_objext | |
36154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36155 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36156 | ac_status=$? |
ac1cb8d3 VS |
36157 | grep -v '^ *+' conftest.er1 >conftest.err |
36158 | rm -f conftest.er1 | |
36159 | cat conftest.err >&5 | |
a848cd7e SC |
36160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36161 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36162 | { ac_try='test -z "$ac_c_werror_flag" |
36163 | || test ! -s conftest.err' | |
36164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36165 | (eval $ac_try) 2>&5 | |
36166 | ac_status=$? | |
36167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36168 | (exit $ac_status); }; } && | |
36169 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36171 | (eval $ac_try) 2>&5 | |
36172 | ac_status=$? | |
36173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36174 | (exit $ac_status); }; }; then | |
36175 | ||
36176 | wx_cv_struct_tm_has_gmtoff=yes | |
36177 | ||
36178 | else | |
36179 | echo "$as_me: failed program was:" >&5 | |
36180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36181 | ||
36182 | wx_cv_struct_tm_has_gmtoff=no | |
36183 | ||
36184 | fi | |
ac1cb8d3 | 36185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36186 | |
36187 | fi | |
36188 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
36189 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
36190 | fi | |
36191 | ||
36192 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
36193 | cat >>confdefs.h <<\_ACEOF | |
36194 | #define WX_GMTOFF_IN_TM 1 | |
36195 | _ACEOF | |
36196 | ||
36197 | fi | |
36198 | ||
36199 | ||
36200 | ||
36201 | for ac_func in gettimeofday ftime | |
36202 | do | |
36203 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36204 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36205 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36206 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36208 | else | |
36209 | cat >conftest.$ac_ext <<_ACEOF | |
36210 | /* confdefs.h. */ | |
36211 | _ACEOF | |
36212 | cat confdefs.h >>conftest.$ac_ext | |
36213 | cat >>conftest.$ac_ext <<_ACEOF | |
36214 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36215 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36216 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36217 | #define $ac_func innocuous_$ac_func | |
36218 | ||
a848cd7e SC |
36219 | /* System header to define __stub macros and hopefully few prototypes, |
36220 | which can conflict with char $ac_func (); below. | |
36221 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36222 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36223 | |
a848cd7e SC |
36224 | #ifdef __STDC__ |
36225 | # include <limits.h> | |
36226 | #else | |
36227 | # include <assert.h> | |
36228 | #endif | |
ac1cb8d3 VS |
36229 | |
36230 | #undef $ac_func | |
36231 | ||
a848cd7e SC |
36232 | /* Override any gcc2 internal prototype to avoid an error. */ |
36233 | #ifdef __cplusplus | |
36234 | extern "C" | |
36235 | { | |
36236 | #endif | |
36237 | /* We use char because int might match the return type of a gcc2 | |
36238 | builtin and then its argument prototype would still apply. */ | |
36239 | char $ac_func (); | |
36240 | /* The GNU C library defines this for functions which it implements | |
36241 | to always fail with ENOSYS. Some functions are actually named | |
36242 | something starting with __ and the normal name is an alias. */ | |
36243 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36244 | choke me | |
36245 | #else | |
36246 | char (*f) () = $ac_func; | |
36247 | #endif | |
36248 | #ifdef __cplusplus | |
36249 | } | |
36250 | #endif | |
36251 | ||
36252 | int | |
36253 | main () | |
36254 | { | |
36255 | return f != $ac_func; | |
36256 | ; | |
36257 | return 0; | |
36258 | } | |
36259 | _ACEOF | |
36260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36262 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36263 | ac_status=$? |
ac1cb8d3 VS |
36264 | grep -v '^ *+' conftest.er1 >conftest.err |
36265 | rm -f conftest.er1 | |
36266 | cat conftest.err >&5 | |
a848cd7e SC |
36267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36268 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36269 | { ac_try='test -z "$ac_c_werror_flag" |
36270 | || test ! -s conftest.err' | |
36271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36272 | (eval $ac_try) 2>&5 | |
36273 | ac_status=$? | |
36274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36275 | (exit $ac_status); }; } && | |
36276 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36278 | (eval $ac_try) 2>&5 | |
36279 | ac_status=$? | |
36280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36281 | (exit $ac_status); }; }; then | |
36282 | eval "$as_ac_var=yes" | |
36283 | else | |
36284 | echo "$as_me: failed program was:" >&5 | |
36285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36286 | ||
36287 | eval "$as_ac_var=no" | |
36288 | fi | |
ac1cb8d3 VS |
36289 | rm -f conftest.err conftest.$ac_objext \ |
36290 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36291 | fi |
36292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36293 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36294 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36295 | cat >>confdefs.h <<_ACEOF | |
36296 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36297 | _ACEOF | |
36298 | break | |
36299 | fi | |
36300 | done | |
36301 | ||
36302 | ||
36303 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
36304 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
36305 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
36306 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
36307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36308 | else | |
36309 | ||
36310 | ||
36311 | ||
36312 | ac_ext=cc | |
36313 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36314 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36315 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36316 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36317 | ||
36318 | ||
36319 | cat >conftest.$ac_ext <<_ACEOF | |
36320 | /* confdefs.h. */ | |
36321 | _ACEOF | |
36322 | cat confdefs.h >>conftest.$ac_ext | |
36323 | cat >>conftest.$ac_ext <<_ACEOF | |
36324 | /* end confdefs.h. */ | |
36325 | ||
36326 | #include <sys/time.h> | |
36327 | #include <unistd.h> | |
36328 | ||
36329 | int | |
36330 | main () | |
36331 | { | |
36332 | ||
36333 | struct timeval tv; | |
36334 | gettimeofday(&tv, NULL); | |
36335 | ||
36336 | ; | |
36337 | return 0; | |
36338 | } | |
36339 | _ACEOF | |
36340 | rm -f conftest.$ac_objext | |
36341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36342 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36343 | ac_status=$? |
ac1cb8d3 VS |
36344 | grep -v '^ *+' conftest.er1 >conftest.err |
36345 | rm -f conftest.er1 | |
36346 | cat conftest.err >&5 | |
a848cd7e SC |
36347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36348 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36349 | { ac_try='test -z "$ac_cxx_werror_flag" |
36350 | || test ! -s conftest.err' | |
36351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36352 | (eval $ac_try) 2>&5 | |
36353 | ac_status=$? | |
36354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36355 | (exit $ac_status); }; } && | |
36356 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36358 | (eval $ac_try) 2>&5 | |
36359 | ac_status=$? | |
36360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36361 | (exit $ac_status); }; }; then | |
36362 | wx_cv_func_gettimeofday_has_2_args=yes | |
36363 | else | |
36364 | echo "$as_me: failed program was:" >&5 | |
36365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36366 | ||
36367 | cat >conftest.$ac_ext <<_ACEOF | |
36368 | /* confdefs.h. */ | |
36369 | _ACEOF | |
36370 | cat confdefs.h >>conftest.$ac_ext | |
36371 | cat >>conftest.$ac_ext <<_ACEOF | |
36372 | /* end confdefs.h. */ | |
36373 | ||
36374 | #include <sys/time.h> | |
36375 | #include <unistd.h> | |
36376 | ||
36377 | int | |
36378 | main () | |
36379 | { | |
36380 | ||
36381 | struct timeval tv; | |
36382 | gettimeofday(&tv); | |
36383 | ||
36384 | ; | |
36385 | return 0; | |
36386 | } | |
36387 | _ACEOF | |
36388 | rm -f conftest.$ac_objext | |
36389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36391 | ac_status=$? |
ac1cb8d3 VS |
36392 | grep -v '^ *+' conftest.er1 >conftest.err |
36393 | rm -f conftest.er1 | |
36394 | cat conftest.err >&5 | |
a848cd7e SC |
36395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36396 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36397 | { ac_try='test -z "$ac_cxx_werror_flag" |
36398 | || test ! -s conftest.err' | |
36399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36400 | (eval $ac_try) 2>&5 | |
36401 | ac_status=$? | |
36402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36403 | (exit $ac_status); }; } && | |
36404 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36406 | (eval $ac_try) 2>&5 | |
36407 | ac_status=$? | |
36408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36409 | (exit $ac_status); }; }; then | |
36410 | wx_cv_func_gettimeofday_has_2_args=no | |
36411 | else | |
36412 | echo "$as_me: failed program was:" >&5 | |
36413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36414 | ||
36415 | ||
36416 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
36417 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
36418 | wx_cv_func_gettimeofday_has_2_args=unknown | |
36419 | ||
36420 | ||
36421 | fi | |
ac1cb8d3 | 36422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36423 | |
36424 | fi | |
ac1cb8d3 | 36425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36426 | ac_ext=c |
36427 | ac_cpp='$CPP $CPPFLAGS' | |
36428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36431 | ||
36432 | ||
36433 | fi | |
36434 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
36435 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
36436 | ||
36437 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
36438 | cat >>confdefs.h <<\_ACEOF | |
36439 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
36440 | _ACEOF | |
36441 | ||
36442 | fi | |
36443 | fi | |
36444 | ||
36445 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
36446 | fi | |
36447 | ||
36448 | ||
36449 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36450 | if test "$wxUSE_MGL" = "1"; then | |
36451 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
36452 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
36453 | wxUSE_SOCKETS="no" | |
36454 | fi | |
36455 | fi | |
36456 | ||
36457 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36458 | if test "$TOOLKIT" != "MSW"; then | |
36459 | echo "$as_me:$LINENO: checking for socket" >&5 | |
36460 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
36461 | if test "${ac_cv_func_socket+set}" = set; then | |
36462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36463 | else | |
36464 | cat >conftest.$ac_ext <<_ACEOF | |
36465 | /* confdefs.h. */ | |
36466 | _ACEOF | |
36467 | cat confdefs.h >>conftest.$ac_ext | |
36468 | cat >>conftest.$ac_ext <<_ACEOF | |
36469 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36470 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
36471 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36472 | #define socket innocuous_socket | |
36473 | ||
a848cd7e SC |
36474 | /* System header to define __stub macros and hopefully few prototypes, |
36475 | which can conflict with char socket (); below. | |
36476 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36477 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36478 | |
a848cd7e SC |
36479 | #ifdef __STDC__ |
36480 | # include <limits.h> | |
36481 | #else | |
36482 | # include <assert.h> | |
36483 | #endif | |
ac1cb8d3 VS |
36484 | |
36485 | #undef socket | |
36486 | ||
a848cd7e SC |
36487 | /* Override any gcc2 internal prototype to avoid an error. */ |
36488 | #ifdef __cplusplus | |
36489 | extern "C" | |
36490 | { | |
36491 | #endif | |
36492 | /* We use char because int might match the return type of a gcc2 | |
36493 | builtin and then its argument prototype would still apply. */ | |
36494 | char socket (); | |
36495 | /* The GNU C library defines this for functions which it implements | |
36496 | to always fail with ENOSYS. Some functions are actually named | |
36497 | something starting with __ and the normal name is an alias. */ | |
36498 | #if defined (__stub_socket) || defined (__stub___socket) | |
36499 | choke me | |
36500 | #else | |
36501 | char (*f) () = socket; | |
36502 | #endif | |
36503 | #ifdef __cplusplus | |
36504 | } | |
36505 | #endif | |
36506 | ||
36507 | int | |
36508 | main () | |
36509 | { | |
36510 | return f != socket; | |
36511 | ; | |
36512 | return 0; | |
36513 | } | |
36514 | _ACEOF | |
36515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36517 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36518 | ac_status=$? |
ac1cb8d3 VS |
36519 | grep -v '^ *+' conftest.er1 >conftest.err |
36520 | rm -f conftest.er1 | |
36521 | cat conftest.err >&5 | |
a848cd7e SC |
36522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36523 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36524 | { ac_try='test -z "$ac_c_werror_flag" |
36525 | || test ! -s conftest.err' | |
36526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36527 | (eval $ac_try) 2>&5 | |
36528 | ac_status=$? | |
36529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36530 | (exit $ac_status); }; } && | |
36531 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36533 | (eval $ac_try) 2>&5 | |
36534 | ac_status=$? | |
36535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36536 | (exit $ac_status); }; }; then | |
36537 | ac_cv_func_socket=yes | |
36538 | else | |
36539 | echo "$as_me: failed program was:" >&5 | |
36540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36541 | ||
36542 | ac_cv_func_socket=no | |
36543 | fi | |
ac1cb8d3 VS |
36544 | rm -f conftest.err conftest.$ac_objext \ |
36545 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36546 | fi |
36547 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
36548 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
36549 | if test $ac_cv_func_socket = yes; then | |
36550 | : | |
36551 | else | |
36552 | ||
36553 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
36554 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
36555 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
36556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36557 | else | |
36558 | ac_check_lib_save_LIBS=$LIBS | |
36559 | LIBS="-lsocket $LIBS" | |
36560 | cat >conftest.$ac_ext <<_ACEOF | |
36561 | /* confdefs.h. */ | |
36562 | _ACEOF | |
36563 | cat confdefs.h >>conftest.$ac_ext | |
36564 | cat >>conftest.$ac_ext <<_ACEOF | |
36565 | /* end confdefs.h. */ | |
36566 | ||
36567 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36568 | #ifdef __cplusplus | |
36569 | extern "C" | |
36570 | #endif | |
36571 | /* We use char because int might match the return type of a gcc2 | |
36572 | builtin and then its argument prototype would still apply. */ | |
36573 | char socket (); | |
36574 | int | |
36575 | main () | |
36576 | { | |
36577 | socket (); | |
36578 | ; | |
36579 | return 0; | |
36580 | } | |
36581 | _ACEOF | |
36582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36584 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36585 | ac_status=$? |
ac1cb8d3 VS |
36586 | grep -v '^ *+' conftest.er1 >conftest.err |
36587 | rm -f conftest.er1 | |
36588 | cat conftest.err >&5 | |
a848cd7e SC |
36589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36590 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36591 | { ac_try='test -z "$ac_c_werror_flag" |
36592 | || test ! -s conftest.err' | |
36593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36594 | (eval $ac_try) 2>&5 | |
36595 | ac_status=$? | |
36596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36597 | (exit $ac_status); }; } && | |
36598 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36600 | (eval $ac_try) 2>&5 | |
36601 | ac_status=$? | |
36602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36603 | (exit $ac_status); }; }; then | |
36604 | ac_cv_lib_socket_socket=yes | |
36605 | else | |
36606 | echo "$as_me: failed program was:" >&5 | |
36607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36608 | ||
36609 | ac_cv_lib_socket_socket=no | |
36610 | fi | |
ac1cb8d3 VS |
36611 | rm -f conftest.err conftest.$ac_objext \ |
36612 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36613 | LIBS=$ac_check_lib_save_LIBS |
36614 | fi | |
36615 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
36616 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
36617 | if test $ac_cv_lib_socket_socket = yes; then | |
36618 | if test "$INET_LINK" != " -lsocket"; then | |
36619 | INET_LINK="$INET_LINK -lsocket" | |
36620 | fi | |
36621 | else | |
36622 | ||
36623 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
36624 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
36625 | wxUSE_SOCKETS=no | |
36626 | ||
36627 | ||
36628 | fi | |
36629 | ||
36630 | ||
36631 | ||
36632 | fi | |
36633 | ||
36634 | fi | |
36635 | fi | |
36636 | ||
36637 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36638 | if test "$TOOLKIT" != "MSW"; then | |
36639 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
36640 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
36641 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
36642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36643 | else | |
36644 | ||
36645 | cat >conftest.$ac_ext <<_ACEOF | |
36646 | /* confdefs.h. */ | |
36647 | _ACEOF | |
36648 | cat confdefs.h >>conftest.$ac_ext | |
36649 | cat >>conftest.$ac_ext <<_ACEOF | |
36650 | /* end confdefs.h. */ | |
36651 | ||
36652 | #include <sys/types.h> | |
36653 | #include <sys/socket.h> | |
36654 | ||
36655 | int | |
36656 | main () | |
36657 | { | |
36658 | ||
36659 | socklen_t len; | |
36660 | getsockname(0, 0, &len); | |
36661 | ||
36662 | ; | |
36663 | return 0; | |
36664 | } | |
36665 | _ACEOF | |
36666 | rm -f conftest.$ac_objext | |
36667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36668 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36669 | ac_status=$? |
ac1cb8d3 VS |
36670 | grep -v '^ *+' conftest.er1 >conftest.err |
36671 | rm -f conftest.er1 | |
36672 | cat conftest.err >&5 | |
a848cd7e SC |
36673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36674 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36675 | { ac_try='test -z "$ac_c_werror_flag" |
36676 | || test ! -s conftest.err' | |
36677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36678 | (eval $ac_try) 2>&5 | |
36679 | ac_status=$? | |
36680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36681 | (exit $ac_status); }; } && | |
36682 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36684 | (eval $ac_try) 2>&5 | |
36685 | ac_status=$? | |
36686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36687 | (exit $ac_status); }; }; then | |
36688 | wx_cv_type_getsockname3=socklen_t | |
36689 | else | |
36690 | echo "$as_me: failed program was:" >&5 | |
36691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36692 | ||
36693 | ||
36694 | CFLAGS_OLD="$CFLAGS" | |
36695 | if test "$GCC" = yes ; then | |
36696 | CFLAGS="$CFLAGS -Werror" | |
36697 | fi | |
36698 | ||
36699 | cat >conftest.$ac_ext <<_ACEOF | |
36700 | /* confdefs.h. */ | |
36701 | _ACEOF | |
36702 | cat confdefs.h >>conftest.$ac_ext | |
36703 | cat >>conftest.$ac_ext <<_ACEOF | |
36704 | /* end confdefs.h. */ | |
36705 | ||
36706 | #include <sys/types.h> | |
36707 | #include <sys/socket.h> | |
36708 | ||
36709 | int | |
36710 | main () | |
36711 | { | |
36712 | ||
36713 | size_t len; | |
36714 | getsockname(0, 0, &len); | |
36715 | ||
36716 | ; | |
36717 | return 0; | |
36718 | } | |
36719 | _ACEOF | |
36720 | rm -f conftest.$ac_objext | |
36721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36722 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36723 | ac_status=$? |
ac1cb8d3 VS |
36724 | grep -v '^ *+' conftest.er1 >conftest.err |
36725 | rm -f conftest.er1 | |
36726 | cat conftest.err >&5 | |
a848cd7e SC |
36727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36728 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36729 | { ac_try='test -z "$ac_c_werror_flag" |
36730 | || test ! -s conftest.err' | |
36731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36732 | (eval $ac_try) 2>&5 | |
36733 | ac_status=$? | |
36734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36735 | (exit $ac_status); }; } && | |
36736 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36738 | (eval $ac_try) 2>&5 | |
36739 | ac_status=$? | |
36740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36741 | (exit $ac_status); }; }; then | |
36742 | wx_cv_type_getsockname3=size_t | |
36743 | else | |
36744 | echo "$as_me: failed program was:" >&5 | |
36745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36746 | ||
36747 | cat >conftest.$ac_ext <<_ACEOF | |
36748 | /* confdefs.h. */ | |
36749 | _ACEOF | |
36750 | cat confdefs.h >>conftest.$ac_ext | |
36751 | cat >>conftest.$ac_ext <<_ACEOF | |
36752 | /* end confdefs.h. */ | |
36753 | ||
36754 | #include <sys/types.h> | |
36755 | #include <sys/socket.h> | |
36756 | ||
36757 | int | |
36758 | main () | |
36759 | { | |
36760 | ||
36761 | int len; | |
36762 | getsockname(0, 0, &len); | |
36763 | ||
36764 | ; | |
36765 | return 0; | |
36766 | } | |
36767 | _ACEOF | |
36768 | rm -f conftest.$ac_objext | |
36769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36770 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36771 | ac_status=$? |
ac1cb8d3 VS |
36772 | grep -v '^ *+' conftest.er1 >conftest.err |
36773 | rm -f conftest.er1 | |
36774 | cat conftest.err >&5 | |
a848cd7e SC |
36775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36776 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36777 | { ac_try='test -z "$ac_c_werror_flag" |
36778 | || test ! -s conftest.err' | |
36779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36780 | (eval $ac_try) 2>&5 | |
36781 | ac_status=$? | |
36782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36783 | (exit $ac_status); }; } && | |
36784 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36786 | (eval $ac_try) 2>&5 | |
36787 | ac_status=$? | |
36788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36789 | (exit $ac_status); }; }; then | |
36790 | wx_cv_type_getsockname3=int | |
36791 | else | |
36792 | echo "$as_me: failed program was:" >&5 | |
36793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36794 | ||
36795 | wx_cv_type_getsockname3=unknown | |
36796 | ||
36797 | fi | |
ac1cb8d3 | 36798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36799 | |
36800 | fi | |
ac1cb8d3 | 36801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36802 | |
36803 | CFLAGS="$CFLAGS_OLD" | |
36804 | ||
36805 | ||
36806 | fi | |
ac1cb8d3 | 36807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36808 | |
36809 | fi | |
36810 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
36811 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
36812 | ||
36813 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
36814 | wxUSE_SOCKETS=no | |
36815 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
36816 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
36817 | else | |
36818 | cat >>confdefs.h <<_ACEOF | |
36819 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
36820 | _ACEOF | |
36821 | ||
36822 | fi | |
36823 | fi | |
36824 | fi | |
36825 | ||
36826 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36827 | cat >>confdefs.h <<\_ACEOF | |
36828 | #define wxUSE_SOCKETS 1 | |
36829 | _ACEOF | |
36830 | ||
36831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
36832 | fi | |
36833 | ||
36834 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36835 | if test "$wxUSE_SOCKETS" != "yes"; then | |
36836 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
36837 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
36838 | wxUSE_PROTOCOL=no | |
36839 | fi | |
36840 | fi | |
36841 | ||
36842 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36843 | cat >>confdefs.h <<\_ACEOF | |
36844 | #define wxUSE_PROTOCOL 1 | |
36845 | _ACEOF | |
36846 | ||
36847 | ||
36848 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
36849 | cat >>confdefs.h <<\_ACEOF | |
36850 | #define wxUSE_PROTOCOL_HTTP 1 | |
36851 | _ACEOF | |
36852 | ||
36853 | fi | |
36854 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
36855 | cat >>confdefs.h <<\_ACEOF | |
36856 | #define wxUSE_PROTOCOL_FTP 1 | |
36857 | _ACEOF | |
36858 | ||
36859 | fi | |
36860 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
36861 | cat >>confdefs.h <<\_ACEOF | |
36862 | #define wxUSE_PROTOCOL_FILE 1 | |
36863 | _ACEOF | |
36864 | ||
36865 | fi | |
36866 | else | |
36867 | if test "$wxUSE_FS_INET" = "yes"; then | |
36868 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
36869 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
36870 | wxUSE_FS_INET="no" | |
36871 | fi | |
36872 | fi | |
36873 | ||
36874 | if test "$wxUSE_URL" = "yes"; then | |
36875 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
36876 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
36877 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
36878 | wxUSE_URL=no | |
36879 | fi | |
36880 | if test "$wxUSE_URL" = "yes"; then | |
36881 | cat >>confdefs.h <<\_ACEOF | |
36882 | #define wxUSE_URL 1 | |
36883 | _ACEOF | |
36884 | ||
36885 | fi | |
36886 | fi | |
36887 | ||
36888 | if test "$wxUSE_FS_INET" = "yes"; then | |
36889 | cat >>confdefs.h <<\_ACEOF | |
36890 | #define wxUSE_FS_INET 1 | |
36891 | _ACEOF | |
36892 | ||
36893 | fi | |
36894 | ||
36895 | ||
36896 | if test "$wxUSE_GUI" = "yes"; then | |
36897 | ||
36898 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
36899 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
36900 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
36901 | wxUSE_JOYSTICK=no | |
36902 | fi | |
36903 | ||
36904 | if test "$TOOLKIT" != "MSW"; then | |
36905 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36906 | ||
36907 | for ac_header in linux/joystick.h | |
36908 | do | |
36909 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36910 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36911 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36912 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36913 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36915 | fi | |
36916 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36917 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36918 | else | |
36919 | # Is the header compilable? | |
36920 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36921 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36922 | cat >conftest.$ac_ext <<_ACEOF | |
36923 | /* confdefs.h. */ | |
36924 | _ACEOF | |
36925 | cat confdefs.h >>conftest.$ac_ext | |
36926 | cat >>conftest.$ac_ext <<_ACEOF | |
36927 | /* end confdefs.h. */ | |
36928 | $ac_includes_default | |
36929 | #include <$ac_header> | |
36930 | _ACEOF | |
36931 | rm -f conftest.$ac_objext | |
36932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36934 | ac_status=$? |
ac1cb8d3 VS |
36935 | grep -v '^ *+' conftest.er1 >conftest.err |
36936 | rm -f conftest.er1 | |
36937 | cat conftest.err >&5 | |
a848cd7e SC |
36938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36939 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36940 | { ac_try='test -z "$ac_c_werror_flag" |
36941 | || test ! -s conftest.err' | |
36942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36943 | (eval $ac_try) 2>&5 | |
36944 | ac_status=$? | |
36945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36946 | (exit $ac_status); }; } && | |
36947 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36949 | (eval $ac_try) 2>&5 | |
36950 | ac_status=$? | |
36951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36952 | (exit $ac_status); }; }; then | |
36953 | ac_header_compiler=yes | |
36954 | else | |
36955 | echo "$as_me: failed program was:" >&5 | |
36956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36957 | ||
36958 | ac_header_compiler=no | |
36959 | fi | |
ac1cb8d3 | 36960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36961 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36962 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36963 | ||
36964 | # Is the header present? | |
36965 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36966 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36967 | cat >conftest.$ac_ext <<_ACEOF | |
36968 | /* confdefs.h. */ | |
36969 | _ACEOF | |
36970 | cat confdefs.h >>conftest.$ac_ext | |
36971 | cat >>conftest.$ac_ext <<_ACEOF | |
36972 | /* end confdefs.h. */ | |
36973 | #include <$ac_header> | |
36974 | _ACEOF | |
36975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36977 | ac_status=$? | |
36978 | grep -v '^ *+' conftest.er1 >conftest.err | |
36979 | rm -f conftest.er1 | |
36980 | cat conftest.err >&5 | |
36981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36982 | (exit $ac_status); } >/dev/null; then | |
36983 | if test -s conftest.err; then | |
36984 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36985 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36986 | else |
36987 | ac_cpp_err= | |
36988 | fi | |
36989 | else | |
36990 | ac_cpp_err=yes | |
36991 | fi | |
36992 | if test -z "$ac_cpp_err"; then | |
36993 | ac_header_preproc=yes | |
36994 | else | |
36995 | echo "$as_me: failed program was:" >&5 | |
36996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36997 | ||
36998 | ac_header_preproc=no | |
36999 | fi | |
37000 | rm -f conftest.err conftest.$ac_ext | |
37001 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37002 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37003 | ||
37004 | # So? What about this header? | |
ac1cb8d3 VS |
37005 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37006 | yes:no: ) | |
a848cd7e SC |
37007 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37008 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37010 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37011 | ac_header_preproc=yes | |
a848cd7e | 37012 | ;; |
ac1cb8d3 | 37013 | no:yes:* ) |
a848cd7e SC |
37014 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37015 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37016 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37017 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37018 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37019 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37020 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37021 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37023 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37024 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37025 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37026 | ( |
37027 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37028 | ## ----------------------------------------- ## |
37029 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37030 | ## ----------------------------------------- ## | |
a848cd7e SC |
37031 | _ASBOX |
37032 | ) | | |
37033 | sed "s/^/$as_me: WARNING: /" >&2 | |
37034 | ;; | |
37035 | esac | |
37036 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37040 | else | |
ac1cb8d3 | 37041 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37042 | fi |
37043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37044 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37045 | ||
37046 | fi | |
37047 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37048 | cat >>confdefs.h <<_ACEOF | |
37049 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37050 | _ACEOF | |
37051 | ||
37052 | fi | |
37053 | ||
37054 | done | |
37055 | ||
37056 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
37057 | wxUSE_JOYSTICK=no | |
37058 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
37059 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
37060 | fi | |
37061 | fi | |
37062 | fi | |
37063 | ||
37064 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
37065 | cat >>confdefs.h <<\_ACEOF | |
37066 | #define wxUSE_JOYSTICK 1 | |
37067 | _ACEOF | |
37068 | ||
37069 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
37070 | fi | |
37071 | fi | |
37072 | ||
37073 | ||
37074 | ||
37075 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
37076 | cat >>confdefs.h <<\_ACEOF | |
37077 | #define wxUSE_FONTMAP 1 | |
37078 | _ACEOF | |
37079 | ||
37080 | fi | |
37081 | ||
37082 | if test "$wxUSE_UNICODE" = "yes" ; then | |
37083 | cat >>confdefs.h <<\_ACEOF | |
37084 | #define wxUSE_UNICODE 1 | |
37085 | _ACEOF | |
37086 | ||
37087 | ||
37088 | if test "$USE_WIN32" != 1; then | |
37089 | wxUSE_UNICODE_MSLU=no | |
37090 | fi | |
37091 | ||
37092 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
37093 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
37094 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
37095 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
37096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37097 | else | |
37098 | ac_check_lib_save_LIBS=$LIBS | |
37099 | LIBS="-lunicows $LIBS" | |
37100 | cat >conftest.$ac_ext <<_ACEOF | |
37101 | /* confdefs.h. */ | |
37102 | _ACEOF | |
37103 | cat confdefs.h >>conftest.$ac_ext | |
37104 | cat >>conftest.$ac_ext <<_ACEOF | |
37105 | /* end confdefs.h. */ | |
37106 | ||
37107 | ||
37108 | int | |
37109 | main () | |
37110 | { | |
37111 | main (); | |
37112 | ; | |
37113 | return 0; | |
37114 | } | |
37115 | _ACEOF | |
37116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37118 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37119 | ac_status=$? |
ac1cb8d3 VS |
37120 | grep -v '^ *+' conftest.er1 >conftest.err |
37121 | rm -f conftest.er1 | |
37122 | cat conftest.err >&5 | |
a848cd7e SC |
37123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37124 | (exit $ac_status); } && | |
ac1cb8d3 VS |
37125 | { ac_try='test -z "$ac_c_werror_flag" |
37126 | || test ! -s conftest.err' | |
37127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37128 | (eval $ac_try) 2>&5 | |
37129 | ac_status=$? | |
37130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37131 | (exit $ac_status); }; } && | |
37132 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37134 | (eval $ac_try) 2>&5 | |
37135 | ac_status=$? | |
37136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37137 | (exit $ac_status); }; }; then | |
37138 | ac_cv_lib_unicows_main=yes | |
37139 | else | |
37140 | echo "$as_me: failed program was:" >&5 | |
37141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37142 | ||
37143 | ac_cv_lib_unicows_main=no | |
37144 | fi | |
ac1cb8d3 VS |
37145 | rm -f conftest.err conftest.$ac_objext \ |
37146 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37147 | LIBS=$ac_check_lib_save_LIBS |
37148 | fi | |
37149 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
37150 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
37151 | if test $ac_cv_lib_unicows_main = yes; then | |
37152 | ||
37153 | cat >>confdefs.h <<\_ACEOF | |
37154 | #define wxUSE_UNICODE_MSLU 1 | |
37155 | _ACEOF | |
37156 | ||
37157 | ||
37158 | else | |
37159 | ||
37160 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37161 | Applications will only run on Windows NT/2000/XP!" >&5 | |
37162 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37163 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
37164 | wxUSE_UNICODE_MSLU=no | |
37165 | ||
37166 | fi | |
37167 | ||
37168 | fi | |
37169 | fi | |
37170 | ||
37171 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
37172 | cat >>confdefs.h <<\_ACEOF | |
37173 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
37174 | _ACEOF | |
37175 | ||
37176 | fi | |
37177 | ||
37178 | ||
37179 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
37180 | cat >>confdefs.h <<\_ACEOF | |
37181 | #define wxUSE_POSTSCRIPT 1 | |
37182 | _ACEOF | |
37183 | ||
37184 | fi | |
37185 | ||
37186 | cat >>confdefs.h <<\_ACEOF | |
37187 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
37188 | _ACEOF | |
37189 | ||
37190 | ||
37191 | cat >>confdefs.h <<\_ACEOF | |
37192 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
37193 | _ACEOF | |
37194 | ||
37195 | ||
37196 | ||
37197 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
37198 | cat >>confdefs.h <<\_ACEOF | |
37199 | #define wxUSE_CONSTRAINTS 1 | |
37200 | _ACEOF | |
37201 | ||
37202 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
37203 | fi | |
37204 | ||
8a7b1113 VZ |
37205 | if test "$wxUSE_MDI" = "yes"; then |
37206 | cat >>confdefs.h <<\_ACEOF | |
37207 | #define wxUSE_MDI 1 | |
37208 | _ACEOF | |
37209 | ||
37210 | ||
37211 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37212 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37213 | #define wxUSE_MDI_ARCHITECTURE 1 |
37214 | _ACEOF | |
37215 | ||
8a7b1113 VZ |
37216 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
37217 | fi | |
a848cd7e SC |
37218 | fi |
37219 | ||
37220 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
37221 | cat >>confdefs.h <<\_ACEOF | |
37222 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
37223 | _ACEOF | |
37224 | ||
37225 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
37226 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37227 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
37228 | fi | |
37229 | fi | |
37230 | ||
37231 | if test "$wxUSE_HELP" = "yes"; then | |
37232 | cat >>confdefs.h <<\_ACEOF | |
37233 | #define wxUSE_HELP 1 | |
37234 | _ACEOF | |
37235 | ||
37236 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
37237 | ||
37238 | if test "$wxUSE_MSW" = 1; then | |
37239 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
37240 | cat >>confdefs.h <<\_ACEOF | |
37241 | #define wxUSE_MS_HTML_HELP 1 | |
37242 | _ACEOF | |
37243 | ||
37244 | fi | |
37245 | fi | |
37246 | ||
37247 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
37248 | if test "$wxUSE_HTML" = "yes"; then | |
37249 | cat >>confdefs.h <<\_ACEOF | |
37250 | #define wxUSE_WXHTML_HELP 1 | |
37251 | _ACEOF | |
37252 | ||
37253 | else | |
37254 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
37255 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
37256 | wxUSE_WXHTML_HELP=no | |
37257 | fi | |
37258 | fi | |
37259 | fi | |
37260 | ||
37261 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
37262 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37263 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
37264 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
37265 | else | |
37266 | cat >>confdefs.h <<\_ACEOF | |
37267 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
37268 | _ACEOF | |
37269 | ||
37270 | fi | |
37271 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
37272 | fi | |
37273 | ||
37274 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
37275 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
37276 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
37277 | { (exit 1); exit 1; }; } | |
37278 | fi | |
37279 | ||
37280 | ||
37281 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
37282 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
37283 | -o "$wxUSE_OLE" = "yes" \ | |
37284 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
37285 | ||
37286 | for ac_header in ole2.h | |
37287 | do | |
37288 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37290 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37291 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37292 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37294 | fi | |
37295 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37296 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37297 | else | |
37298 | # Is the header compilable? | |
37299 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37300 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37301 | cat >conftest.$ac_ext <<_ACEOF | |
37302 | /* confdefs.h. */ | |
37303 | _ACEOF | |
37304 | cat confdefs.h >>conftest.$ac_ext | |
37305 | cat >>conftest.$ac_ext <<_ACEOF | |
37306 | /* end confdefs.h. */ | |
37307 | $ac_includes_default | |
37308 | #include <$ac_header> | |
37309 | _ACEOF | |
37310 | rm -f conftest.$ac_objext | |
37311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37312 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37313 | ac_status=$? |
ac1cb8d3 VS |
37314 | grep -v '^ *+' conftest.er1 >conftest.err |
37315 | rm -f conftest.er1 | |
37316 | cat conftest.err >&5 | |
a848cd7e SC |
37317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37318 | (exit $ac_status); } && | |
ac1cb8d3 VS |
37319 | { ac_try='test -z "$ac_c_werror_flag" |
37320 | || test ! -s conftest.err' | |
37321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37322 | (eval $ac_try) 2>&5 | |
37323 | ac_status=$? | |
37324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37325 | (exit $ac_status); }; } && | |
37326 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37328 | (eval $ac_try) 2>&5 | |
37329 | ac_status=$? | |
37330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37331 | (exit $ac_status); }; }; then | |
37332 | ac_header_compiler=yes | |
37333 | else | |
37334 | echo "$as_me: failed program was:" >&5 | |
37335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37336 | ||
37337 | ac_header_compiler=no | |
37338 | fi | |
ac1cb8d3 | 37339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37340 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37341 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37342 | ||
37343 | # Is the header present? | |
37344 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37345 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37346 | cat >conftest.$ac_ext <<_ACEOF | |
37347 | /* confdefs.h. */ | |
37348 | _ACEOF | |
37349 | cat confdefs.h >>conftest.$ac_ext | |
37350 | cat >>conftest.$ac_ext <<_ACEOF | |
37351 | /* end confdefs.h. */ | |
37352 | #include <$ac_header> | |
37353 | _ACEOF | |
37354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37356 | ac_status=$? | |
37357 | grep -v '^ *+' conftest.er1 >conftest.err | |
37358 | rm -f conftest.er1 | |
37359 | cat conftest.err >&5 | |
37360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37361 | (exit $ac_status); } >/dev/null; then | |
37362 | if test -s conftest.err; then | |
37363 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37364 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37365 | else |
37366 | ac_cpp_err= | |
37367 | fi | |
37368 | else | |
37369 | ac_cpp_err=yes | |
37370 | fi | |
37371 | if test -z "$ac_cpp_err"; then | |
37372 | ac_header_preproc=yes | |
37373 | else | |
37374 | echo "$as_me: failed program was:" >&5 | |
37375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37376 | ||
37377 | ac_header_preproc=no | |
37378 | fi | |
37379 | rm -f conftest.err conftest.$ac_ext | |
37380 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37381 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37382 | ||
37383 | # So? What about this header? | |
ac1cb8d3 VS |
37384 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37385 | yes:no: ) | |
a848cd7e SC |
37386 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37387 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37389 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37390 | ac_header_preproc=yes | |
a848cd7e | 37391 | ;; |
ac1cb8d3 | 37392 | no:yes:* ) |
a848cd7e SC |
37393 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37394 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37395 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37396 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37397 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37398 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37399 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37400 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37401 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37402 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37403 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37404 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37405 | ( |
37406 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37407 | ## ----------------------------------------- ## |
37408 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37409 | ## ----------------------------------------- ## | |
a848cd7e SC |
37410 | _ASBOX |
37411 | ) | | |
37412 | sed "s/^/$as_me: WARNING: /" >&2 | |
37413 | ;; | |
37414 | esac | |
37415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37419 | else | |
ac1cb8d3 | 37420 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37421 | fi |
37422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37423 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37424 | ||
37425 | fi | |
37426 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37427 | cat >>confdefs.h <<_ACEOF | |
37428 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37429 | _ACEOF | |
37430 | ||
37431 | fi | |
37432 | ||
37433 | done | |
37434 | ||
37435 | ||
37436 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
37437 | if test "$GCC" = yes ; then | |
37438 | ||
37439 | ||
37440 | ac_ext=cc | |
37441 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37442 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37443 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37444 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37445 | ||
37446 | ||
37447 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
37448 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
37449 | cat >conftest.$ac_ext <<_ACEOF | |
37450 | /* confdefs.h. */ | |
37451 | _ACEOF | |
37452 | cat confdefs.h >>conftest.$ac_ext | |
37453 | cat >>conftest.$ac_ext <<_ACEOF | |
37454 | /* end confdefs.h. */ | |
37455 | #include <windows.h> | |
37456 | #include <ole2.h> | |
37457 | int | |
37458 | main () | |
37459 | { | |
37460 | ||
37461 | ; | |
37462 | return 0; | |
37463 | } | |
37464 | _ACEOF | |
37465 | rm -f conftest.$ac_objext | |
37466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37467 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37468 | ac_status=$? |
ac1cb8d3 VS |
37469 | grep -v '^ *+' conftest.er1 >conftest.err |
37470 | rm -f conftest.er1 | |
37471 | cat conftest.err >&5 | |
a848cd7e SC |
37472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37473 | (exit $ac_status); } && | |
ac1cb8d3 VS |
37474 | { ac_try='test -z "$ac_cxx_werror_flag" |
37475 | || test ! -s conftest.err' | |
37476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37477 | (eval $ac_try) 2>&5 | |
37478 | ac_status=$? | |
37479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37480 | (exit $ac_status); }; } && | |
37481 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37483 | (eval $ac_try) 2>&5 | |
37484 | ac_status=$? | |
37485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37486 | (exit $ac_status); }; }; then | |
37487 | echo "$as_me:$LINENO: result: no" >&5 | |
37488 | echo "${ECHO_T}no" >&6 | |
37489 | else | |
37490 | echo "$as_me: failed program was:" >&5 | |
37491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37492 | ||
37493 | echo "$as_me:$LINENO: result: yes" >&5 | |
37494 | echo "${ECHO_T}yes" >&6 | |
37495 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
37496 | fi | |
ac1cb8d3 | 37497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37498 | ac_ext=c |
37499 | ac_cpp='$CPP $CPPFLAGS' | |
37500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37503 | ||
37504 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
37505 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
37506 | if test "$wxUSE_OLE" = "yes" ; then | |
37507 | cat >>confdefs.h <<\_ACEOF | |
37508 | #define wxUSE_OLE 1 | |
37509 | _ACEOF | |
37510 | ||
37511 | fi | |
37512 | fi | |
37513 | ||
37514 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
37515 | cat >>confdefs.h <<\_ACEOF | |
37516 | #define wxUSE_DATAOBJ 1 | |
37517 | _ACEOF | |
37518 | ||
37519 | fi | |
37520 | else | |
37521 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
37522 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
37523 | ||
37524 | wxUSE_CLIPBOARD=no | |
37525 | wxUSE_DRAG_AND_DROP=no | |
37526 | wxUSE_DATAOBJ=no | |
37527 | wxUSE_OLE=no | |
37528 | fi | |
37529 | ||
37530 | if test "$wxUSE_METAFILE" = "yes"; then | |
37531 | cat >>confdefs.h <<\_ACEOF | |
37532 | #define wxUSE_METAFILE 1 | |
37533 | _ACEOF | |
37534 | ||
37535 | ||
37536 | cat >>confdefs.h <<\_ACEOF | |
37537 | #define wxUSE_ENH_METAFILE 1 | |
37538 | _ACEOF | |
37539 | ||
37540 | fi | |
37541 | fi | |
37542 | ||
37543 | if test "$wxUSE_IPC" = "yes"; then | |
37544 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
37545 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
37546 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
37547 | fi |
37548 | ||
37549 | cat >>confdefs.h <<\_ACEOF | |
37550 | #define wxUSE_IPC 1 | |
37551 | _ACEOF | |
37552 | ||
37553 | fi | |
37554 | ||
37555 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
37556 | if test "$wxUSE_MGL" = 1; then | |
37557 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
37558 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
37559 | wxUSE_CLIPBOARD=no | |
37560 | fi | |
37561 | ||
37562 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
37563 | cat >>confdefs.h <<\_ACEOF | |
37564 | #define wxUSE_CLIPBOARD 1 | |
37565 | _ACEOF | |
37566 | ||
37567 | ||
37568 | cat >>confdefs.h <<\_ACEOF | |
37569 | #define wxUSE_DATAOBJ 1 | |
37570 | _ACEOF | |
37571 | ||
37572 | fi | |
37573 | fi | |
37574 | ||
37575 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
37576 | if test "$wxUSE_GTK" = 1; then | |
37577 | if test "$WXGTK12" != 1; then | |
37578 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
37579 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
37580 | wxUSE_DRAG_AND_DROP=no | |
37581 | fi | |
37582 | fi | |
37583 | ||
37584 | if test "$wxUSE_MOTIF" = 1; then | |
37585 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
37586 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
37587 | wxUSE_DRAG_AND_DROP=no | |
37588 | fi | |
37589 | ||
37590 | if test "$wxUSE_X11" = 1; then | |
37591 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
37592 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
37593 | wxUSE_DRAG_AND_DROP=no | |
37594 | fi | |
37595 | ||
37596 | if test "$wxUSE_MGL" = 1; then | |
37597 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
37598 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
37599 | wxUSE_DRAG_AND_DROP=no | |
37600 | fi | |
37601 | ||
37602 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
37603 | cat >>confdefs.h <<\_ACEOF | |
37604 | #define wxUSE_DRAG_AND_DROP 1 | |
37605 | _ACEOF | |
37606 | ||
37607 | fi | |
37608 | ||
37609 | fi | |
37610 | ||
37611 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
37612 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
37613 | fi | |
37614 | ||
37615 | if test "$wxUSE_SPLINES" = "yes" ; then | |
37616 | cat >>confdefs.h <<\_ACEOF | |
37617 | #define wxUSE_SPLINES 1 | |
37618 | _ACEOF | |
37619 | ||
37620 | fi | |
37621 | ||
37622 | ||
37623 | USES_CONTROLS=0 | |
37624 | if test "$wxUSE_CONTROLS" = "yes"; then | |
37625 | USES_CONTROLS=1 | |
37626 | fi | |
37627 | ||
37628 | if test "$wxUSE_ACCEL" = "yes"; then | |
37629 | cat >>confdefs.h <<\_ACEOF | |
37630 | #define wxUSE_ACCEL 1 | |
37631 | _ACEOF | |
37632 | ||
37633 | USES_CONTROLS=1 | |
37634 | fi | |
37635 | ||
37636 | if test "$wxUSE_BUTTON" = "yes"; then | |
37637 | cat >>confdefs.h <<\_ACEOF | |
37638 | #define wxUSE_BUTTON 1 | |
37639 | _ACEOF | |
37640 | ||
37641 | USES_CONTROLS=1 | |
37642 | fi | |
37643 | ||
37644 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
37645 | cat >>confdefs.h <<\_ACEOF | |
37646 | #define wxUSE_BMPBUTTON 1 | |
37647 | _ACEOF | |
37648 | ||
37649 | USES_CONTROLS=1 | |
37650 | fi | |
37651 | ||
37652 | if test "$wxUSE_CALCTRL" = "yes"; then | |
37653 | cat >>confdefs.h <<\_ACEOF | |
37654 | #define wxUSE_CALENDARCTRL 1 | |
37655 | _ACEOF | |
37656 | ||
37657 | USES_CONTROLS=1 | |
37658 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
37659 | fi | |
37660 | ||
37661 | if test "$wxUSE_CARET" = "yes"; then | |
37662 | cat >>confdefs.h <<\_ACEOF | |
37663 | #define wxUSE_CARET 1 | |
37664 | _ACEOF | |
37665 | ||
37666 | USES_CONTROLS=1 | |
37667 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
37668 | fi | |
37669 | ||
37670 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
37671 | cat >>confdefs.h <<\_ACEOF | |
37672 | #define wxUSE_COMBOBOX 1 | |
37673 | _ACEOF | |
37674 | ||
37675 | USES_CONTROLS=1 | |
37676 | fi | |
37677 | ||
37678 | if test "$wxUSE_CHOICE" = "yes"; then | |
37679 | cat >>confdefs.h <<\_ACEOF | |
37680 | #define wxUSE_CHOICE 1 | |
37681 | _ACEOF | |
37682 | ||
37683 | USES_CONTROLS=1 | |
37684 | fi | |
37685 | ||
37686 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
37687 | cat >>confdefs.h <<\_ACEOF | |
37688 | #define wxUSE_CHECKBOX 1 | |
37689 | _ACEOF | |
37690 | ||
37691 | USES_CONTROLS=1 | |
37692 | fi | |
37693 | ||
37694 | if test "$wxUSE_CHECKLST" = "yes"; then | |
37695 | cat >>confdefs.h <<\_ACEOF | |
37696 | #define wxUSE_CHECKLISTBOX 1 | |
37697 | _ACEOF | |
37698 | ||
37699 | USES_CONTROLS=1 | |
37700 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
37701 | fi | |
37702 | ||
37703 | if test "$wxUSE_DISPLAY" = "yes"; then | |
37704 | cat >>confdefs.h <<\_ACEOF | |
37705 | #define wxUSE_DISPLAY 1 | |
37706 | _ACEOF | |
37707 | ||
37708 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
37709 | fi | |
37710 | ||
37711 | if test "$wxUSE_GAUGE" = "yes"; then | |
37712 | cat >>confdefs.h <<\_ACEOF | |
37713 | #define wxUSE_GAUGE 1 | |
37714 | _ACEOF | |
37715 | ||
37716 | USES_CONTROLS=1 | |
37717 | fi | |
37718 | ||
37719 | if test "$wxUSE_GRID" = "yes"; then | |
37720 | cat >>confdefs.h <<\_ACEOF | |
37721 | #define wxUSE_GRID 1 | |
37722 | _ACEOF | |
37723 | ||
37724 | USES_CONTROLS=1 | |
37725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
37726 | fi | |
37727 | ||
37728 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37729 | cat >>confdefs.h <<\_ACEOF | |
37730 | #define wxUSE_IMAGLIST 1 | |
37731 | _ACEOF | |
37732 | ||
37733 | fi | |
37734 | ||
37735 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
37736 | cat >>confdefs.h <<\_ACEOF | |
37737 | #define wxUSE_LISTBOOK 1 | |
37738 | _ACEOF | |
37739 | ||
37740 | USES_CONTROLS=1 | |
37741 | fi | |
37742 | ||
37743 | if test "$wxUSE_LISTBOX" = "yes"; then | |
37744 | cat >>confdefs.h <<\_ACEOF | |
37745 | #define wxUSE_LISTBOX 1 | |
37746 | _ACEOF | |
37747 | ||
37748 | USES_CONTROLS=1 | |
37749 | fi | |
37750 | ||
37751 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
37752 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37753 | cat >>confdefs.h <<\_ACEOF | |
37754 | #define wxUSE_LISTCTRL 1 | |
37755 | _ACEOF | |
37756 | ||
37757 | USES_CONTROLS=1 | |
37758 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
37759 | else | |
37760 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
37761 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37762 | fi | |
37763 | fi | |
37764 | ||
37765 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
37766 | cat >>confdefs.h <<\_ACEOF | |
37767 | #define wxUSE_NOTEBOOK 1 | |
37768 | _ACEOF | |
37769 | ||
37770 | USES_CONTROLS=1 | |
37771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
37772 | fi | |
37773 | ||
37774 | ||
37775 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
37776 | cat >>confdefs.h <<\_ACEOF | |
37777 | #define wxUSE_RADIOBOX 1 | |
37778 | _ACEOF | |
37779 | ||
37780 | USES_CONTROLS=1 | |
37781 | fi | |
37782 | ||
37783 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
37784 | cat >>confdefs.h <<\_ACEOF | |
37785 | #define wxUSE_RADIOBTN 1 | |
37786 | _ACEOF | |
37787 | ||
37788 | USES_CONTROLS=1 | |
37789 | fi | |
37790 | ||
37791 | if test "$wxUSE_SASH" = "yes"; then | |
37792 | cat >>confdefs.h <<\_ACEOF | |
37793 | #define wxUSE_SASH 1 | |
37794 | _ACEOF | |
37795 | ||
37796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
37797 | fi | |
37798 | ||
37799 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
37800 | cat >>confdefs.h <<\_ACEOF | |
37801 | #define wxUSE_SCROLLBAR 1 | |
37802 | _ACEOF | |
37803 | ||
37804 | USES_CONTROLS=1 | |
37805 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
37806 | fi | |
37807 | ||
37808 | if test "$wxUSE_SLIDER" = "yes"; then | |
37809 | cat >>confdefs.h <<\_ACEOF | |
37810 | #define wxUSE_SLIDER 1 | |
37811 | _ACEOF | |
37812 | ||
37813 | USES_CONTROLS=1 | |
37814 | fi | |
37815 | ||
37816 | if test "$wxUSE_SPINBTN" = "yes"; then | |
37817 | cat >>confdefs.h <<\_ACEOF | |
37818 | #define wxUSE_SPINBTN 1 | |
37819 | _ACEOF | |
37820 | ||
37821 | USES_CONTROLS=1 | |
37822 | fi | |
37823 | ||
37824 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
37825 | cat >>confdefs.h <<\_ACEOF | |
37826 | #define wxUSE_SPINCTRL 1 | |
37827 | _ACEOF | |
37828 | ||
37829 | USES_CONTROLS=1 | |
37830 | fi | |
37831 | ||
37832 | if test "$wxUSE_SPLITTER" = "yes"; then | |
37833 | cat >>confdefs.h <<\_ACEOF | |
37834 | #define wxUSE_SPLITTER 1 | |
37835 | _ACEOF | |
37836 | ||
37837 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
37838 | fi | |
37839 | ||
37840 | if test "$wxUSE_STATBMP" = "yes"; then | |
37841 | cat >>confdefs.h <<\_ACEOF | |
37842 | #define wxUSE_STATBMP 1 | |
37843 | _ACEOF | |
37844 | ||
37845 | USES_CONTROLS=1 | |
37846 | fi | |
37847 | ||
37848 | if test "$wxUSE_STATBOX" = "yes"; then | |
37849 | cat >>confdefs.h <<\_ACEOF | |
37850 | #define wxUSE_STATBOX 1 | |
37851 | _ACEOF | |
37852 | ||
37853 | USES_CONTROLS=1 | |
37854 | fi | |
37855 | ||
37856 | if test "$wxUSE_STATTEXT" = "yes"; then | |
37857 | cat >>confdefs.h <<\_ACEOF | |
37858 | #define wxUSE_STATTEXT 1 | |
37859 | _ACEOF | |
37860 | ||
37861 | USES_CONTROLS=1 | |
37862 | fi | |
37863 | ||
37864 | if test "$wxUSE_STATLINE" = "yes"; then | |
37865 | cat >>confdefs.h <<\_ACEOF | |
37866 | #define wxUSE_STATLINE 1 | |
37867 | _ACEOF | |
37868 | ||
37869 | USES_CONTROLS=1 | |
37870 | fi | |
37871 | ||
37872 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
37873 | cat >>confdefs.h <<\_ACEOF | |
37874 | #define wxUSE_STATUSBAR 1 | |
37875 | _ACEOF | |
37876 | ||
37877 | USES_CONTROLS=1 | |
37878 | ||
37879 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
37880 | fi | |
37881 | ||
37882 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
37883 | cat >>confdefs.h <<\_ACEOF | |
37884 | #define wxUSE_TAB_DIALOG 1 | |
37885 | _ACEOF | |
37886 | ||
37887 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
37888 | fi | |
37889 | ||
37890 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
37891 | cat >>confdefs.h <<\_ACEOF | |
37892 | #define wxUSE_TEXTCTRL 1 | |
37893 | _ACEOF | |
37894 | ||
37895 | USES_CONTROLS=1 | |
37896 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
37897 | fi | |
37898 | ||
37899 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37900 | if test "$wxUSE_COCOA" = 1 ; then | |
37901 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
37902 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
37903 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
37904 | else |
37905 | if test "$wxUSE_PM" = 1; then | |
37906 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
37907 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
37908 | wxUSE_TOGGLEBTN=no | |
37909 | fi | |
a848cd7e SC |
37910 | fi |
37911 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37912 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
37913 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
37914 | wxUSE_TOGGLEBTN=no | |
37915 | fi | |
37916 | ||
37917 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37918 | cat >>confdefs.h <<\_ACEOF | |
37919 | #define wxUSE_TOGGLEBTN 1 | |
37920 | _ACEOF | |
37921 | ||
37922 | USES_CONTROLS=1 | |
37923 | fi | |
37924 | fi | |
37925 | ||
37926 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
37927 | cat >>confdefs.h <<\_ACEOF | |
37928 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
37929 | _ACEOF | |
37930 | ||
37931 | wxUSE_TOOLBAR="yes" | |
37932 | USES_CONTROLS=1 | |
37933 | fi | |
37934 | ||
37935 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
37936 | cat >>confdefs.h <<\_ACEOF | |
37937 | #define wxUSE_TOOLBAR 1 | |
37938 | _ACEOF | |
37939 | ||
37940 | USES_CONTROLS=1 | |
37941 | ||
37942 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
37943 | wxUSE_TOOLBAR_NATIVE="yes" | |
37944 | fi | |
37945 | ||
37946 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
37947 | cat >>confdefs.h <<\_ACEOF | |
37948 | #define wxUSE_TOOLBAR_NATIVE 1 | |
37949 | _ACEOF | |
37950 | ||
37951 | USES_CONTROLS=1 | |
37952 | fi | |
37953 | ||
37954 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
37955 | fi | |
37956 | ||
37957 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
37958 | if test "$wxUSE_MOTIF" = 1; then | |
37959 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
37960 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
37961 | else | |
37962 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37963 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
37964 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
37965 | else | |
37966 | cat >>confdefs.h <<\_ACEOF | |
37967 | #define wxUSE_TOOLTIPS 1 | |
37968 | _ACEOF | |
37969 | ||
37970 | fi | |
37971 | fi | |
37972 | fi | |
37973 | ||
37974 | if test "$wxUSE_TREECTRL" = "yes"; then | |
37975 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37976 | cat >>confdefs.h <<\_ACEOF | |
37977 | #define wxUSE_TREECTRL 1 | |
37978 | _ACEOF | |
37979 | ||
37980 | USES_CONTROLS=1 | |
37981 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
37982 | else | |
37983 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
37984 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37985 | fi | |
37986 | fi | |
37987 | ||
37988 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
37989 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
37990 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
37991 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
37992 | else | |
37993 | if test "$wxUSE_PM" = 1; then | |
37994 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
37995 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
37996 | else | |
37997 | cat >>confdefs.h <<\_ACEOF | |
37998 | #define wxUSE_POPUPWIN 1 | |
37999 | _ACEOF | |
38000 | ||
38001 | ||
38002 | USES_CONTROLS=1 | |
38003 | fi | |
38004 | fi | |
38005 | fi | |
38006 | ||
38007 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
38008 | if test "$wxUSE_PM" = 1; then | |
38009 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
38010 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
38011 | else | |
38012 | cat >>confdefs.h <<\_ACEOF | |
38013 | #define wxUSE_TIPWINDOW 1 | |
38014 | _ACEOF | |
38015 | ||
38016 | fi | |
38017 | fi | |
38018 | ||
38019 | if test "$USES_CONTROLS" = 1; then | |
38020 | cat >>confdefs.h <<\_ACEOF | |
38021 | #define wxUSE_CONTROLS 1 | |
38022 | _ACEOF | |
38023 | ||
38024 | fi | |
38025 | ||
38026 | ||
38027 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
38028 | cat >>confdefs.h <<\_ACEOF | |
38029 | #define wxUSE_ACCESSIBILITY 1 | |
38030 | _ACEOF | |
38031 | ||
38032 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
38033 | fi | |
38034 | ||
38035 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
38036 | cat >>confdefs.h <<\_ACEOF | |
38037 | #define wxUSE_DRAGIMAGE 1 | |
38038 | _ACEOF | |
38039 | ||
38040 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
38041 | fi | |
38042 | ||
38043 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
38044 | cat >>confdefs.h <<\_ACEOF | |
38045 | #define wxUSE_EXCEPTIONS 1 | |
38046 | _ACEOF | |
38047 | ||
38048 | fi | |
38049 | ||
38050 | USE_HTML=0 | |
38051 | if test "$wxUSE_HTML" = "yes"; then | |
38052 | cat >>confdefs.h <<\_ACEOF | |
38053 | #define wxUSE_HTML 1 | |
38054 | _ACEOF | |
38055 | ||
38056 | USE_HTML=1 | |
38057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
38058 | if test "$wxUSE_MAC" = 1; then |
38059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
38060 | fi | |
a848cd7e SC |
38061 | fi |
38062 | ||
646b6ec1 VS |
38063 | if test "$wxUSE_WEBKIT" = "yes"; then |
38064 | cat >>confdefs.h <<\_ACEOF | |
38065 | #define wxUSE_WEBKIT 1 | |
38066 | _ACEOF | |
38067 | ||
38068 | fi | |
38069 | ||
a848cd7e SC |
38070 | if test "$wxUSE_MENUS" = "yes"; then |
38071 | cat >>confdefs.h <<\_ACEOF | |
38072 | #define wxUSE_MENUS 1 | |
38073 | _ACEOF | |
38074 | ||
38075 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
38076 | fi | |
38077 | ||
38078 | if test "$wxUSE_METAFILE" = "yes"; then | |
38079 | cat >>confdefs.h <<\_ACEOF | |
38080 | #define wxUSE_METAFILE 1 | |
38081 | _ACEOF | |
38082 | ||
38083 | fi | |
38084 | ||
38085 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
38086 | cat >>confdefs.h <<\_ACEOF | |
38087 | #define wxUSE_MIMETYPE 1 | |
38088 | _ACEOF | |
38089 | ||
38090 | fi | |
38091 | ||
38092 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
38093 | cat >>confdefs.h <<\_ACEOF | |
38094 | #define wxUSE_MINIFRAME 1 | |
38095 | _ACEOF | |
38096 | ||
38097 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
38098 | fi | |
38099 | ||
38100 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
38101 | cat >>confdefs.h <<\_ACEOF | |
38102 | #define wxUSE_SYSTEM_OPTIONS 1 | |
38103 | _ACEOF | |
38104 | ||
38105 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
38106 | "$TOOLKIT" = "MOTIF"; then | |
38107 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
38108 | fi | |
38109 | fi | |
38110 | ||
38111 | ||
38112 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
38113 | cat >>confdefs.h <<\_ACEOF | |
38114 | #define wxUSE_VALIDATORS 1 | |
38115 | _ACEOF | |
38116 | ||
38117 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
38118 | fi | |
38119 | ||
38120 | if test "$wxUSE_PALETTE" = "yes" ; then | |
38121 | cat >>confdefs.h <<\_ACEOF | |
38122 | #define wxUSE_PALETTE 1 | |
38123 | _ACEOF | |
38124 | ||
38125 | fi | |
38126 | ||
38127 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
38128 | LIBS=" -lunicows $LIBS" | |
38129 | fi | |
38130 | ||
38131 | ||
38132 | if test "$wxUSE_IMAGE" = "yes" ; then | |
38133 | cat >>confdefs.h <<\_ACEOF | |
38134 | #define wxUSE_IMAGE 1 | |
38135 | _ACEOF | |
38136 | ||
38137 | ||
38138 | if test "$wxUSE_GIF" = "yes" ; then | |
38139 | cat >>confdefs.h <<\_ACEOF | |
38140 | #define wxUSE_GIF 1 | |
38141 | _ACEOF | |
38142 | ||
38143 | fi | |
38144 | ||
38145 | if test "$wxUSE_PCX" = "yes" ; then | |
38146 | cat >>confdefs.h <<\_ACEOF | |
38147 | #define wxUSE_PCX 1 | |
38148 | _ACEOF | |
38149 | ||
38150 | fi | |
38151 | ||
38152 | if test "$wxUSE_IFF" = "yes" ; then | |
38153 | cat >>confdefs.h <<\_ACEOF | |
38154 | #define wxUSE_IFF 1 | |
38155 | _ACEOF | |
38156 | ||
38157 | fi | |
38158 | ||
38159 | if test "$wxUSE_PNM" = "yes" ; then | |
38160 | cat >>confdefs.h <<\_ACEOF | |
38161 | #define wxUSE_PNM 1 | |
38162 | _ACEOF | |
38163 | ||
38164 | fi | |
38165 | ||
38166 | if test "$wxUSE_XPM" = "yes" ; then | |
38167 | cat >>confdefs.h <<\_ACEOF | |
38168 | #define wxUSE_XPM 1 | |
38169 | _ACEOF | |
38170 | ||
38171 | fi | |
38172 | ||
38173 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
38174 | cat >>confdefs.h <<\_ACEOF | |
38175 | #define wxUSE_ICO_CUR 1 | |
38176 | _ACEOF | |
38177 | ||
38178 | fi | |
38179 | fi | |
38180 | ||
38181 | ||
38182 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
38183 | cat >>confdefs.h <<\_ACEOF | |
38184 | #define wxUSE_CHOICEDLG 1 | |
38185 | _ACEOF | |
38186 | ||
38187 | fi | |
38188 | ||
38189 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
38190 | cat >>confdefs.h <<\_ACEOF | |
38191 | #define wxUSE_COLOURDLG 1 | |
38192 | _ACEOF | |
38193 | ||
38194 | fi | |
38195 | ||
38196 | if test "$wxUSE_FILEDLG" = "yes"; then | |
38197 | cat >>confdefs.h <<\_ACEOF | |
38198 | #define wxUSE_FILEDLG 1 | |
38199 | _ACEOF | |
38200 | ||
38201 | fi | |
38202 | ||
38203 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
38204 | cat >>confdefs.h <<\_ACEOF | |
38205 | #define wxUSE_FINDREPLDLG 1 | |
38206 | _ACEOF | |
38207 | ||
38208 | fi | |
38209 | ||
38210 | if test "$wxUSE_FONTDLG" = "yes"; then | |
38211 | cat >>confdefs.h <<\_ACEOF | |
38212 | #define wxUSE_FONTDLG 1 | |
38213 | _ACEOF | |
38214 | ||
38215 | fi | |
38216 | ||
38217 | if test "$wxUSE_DIRDLG" = "yes"; then | |
38218 | if test "$wxUSE_TREECTRL" != "yes"; then | |
38219 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
38220 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
38221 | else | |
38222 | cat >>confdefs.h <<\_ACEOF | |
38223 | #define wxUSE_DIRDLG 1 | |
38224 | _ACEOF | |
38225 | ||
38226 | fi | |
38227 | fi | |
38228 | ||
38229 | if test "$wxUSE_MSGDLG" = "yes"; then | |
38230 | cat >>confdefs.h <<\_ACEOF | |
38231 | #define wxUSE_MSGDLG 1 | |
38232 | _ACEOF | |
38233 | ||
38234 | fi | |
38235 | ||
38236 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
38237 | cat >>confdefs.h <<\_ACEOF | |
38238 | #define wxUSE_NUMBERDLG 1 | |
38239 | _ACEOF | |
38240 | ||
38241 | fi | |
38242 | ||
38243 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
38244 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38245 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
38246 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
38247 | else | |
38248 | cat >>confdefs.h <<\_ACEOF | |
38249 | #define wxUSE_PROGRESSDLG 1 | |
38250 | _ACEOF | |
38251 | ||
38252 | fi | |
38253 | fi | |
38254 | ||
38255 | if test "$wxUSE_SPLASH" = "yes"; then | |
38256 | cat >>confdefs.h <<\_ACEOF | |
38257 | #define wxUSE_SPLASH 1 | |
38258 | _ACEOF | |
38259 | ||
38260 | fi | |
38261 | ||
38262 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
38263 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38264 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
38265 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
38266 | else | |
38267 | cat >>confdefs.h <<\_ACEOF | |
38268 | #define wxUSE_STARTUP_TIPS 1 | |
38269 | _ACEOF | |
38270 | ||
38271 | fi | |
38272 | fi | |
38273 | ||
38274 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
38275 | cat >>confdefs.h <<\_ACEOF | |
38276 | #define wxUSE_TEXTDLG 1 | |
38277 | _ACEOF | |
38278 | ||
38279 | fi | |
38280 | ||
38281 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
38282 | cat >>confdefs.h <<\_ACEOF | |
38283 | #define wxUSE_WIZARDDLG 1 | |
38284 | _ACEOF | |
38285 | ||
38286 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
38287 | fi | |
38288 | ||
38289 | ||
38290 | if test "$cross_compiling" = "yes"; then | |
38291 | OSINFO="\"$host\"" | |
38292 | else | |
38293 | OSINFO=`uname -s -r -m` | |
38294 | OSINFO="\"$OSINFO\"" | |
38295 | fi | |
38296 | ||
38297 | cat >>confdefs.h <<_ACEOF | |
38298 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
38299 | _ACEOF | |
38300 | ||
38301 | ||
38302 | ||
38303 | if test "x$prefix" != "xNONE"; then | |
38304 | wxPREFIX=$prefix | |
38305 | else | |
38306 | wxPREFIX=$ac_default_prefix | |
38307 | fi | |
38308 | ||
38309 | cat >>confdefs.h <<_ACEOF | |
38310 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
38311 | _ACEOF | |
38312 | ||
38313 | ||
38314 | top_builddir_wxconfig=`pwd` | |
38315 | ||
38316 | ||
38317 | ||
38318 | CORE_BASE_LIBS="net base" | |
38319 | CORE_GUI_LIBS="adv core" | |
38320 | ||
38321 | if test "$wxUSE_XML" = "yes" ; then | |
38322 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
38323 | fi | |
38324 | if test "$wxUSE_ODBC" != "no" ; then | |
38325 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
38326 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
38327 | fi | |
38328 | if test "$wxUSE_HTML" = "yes" ; then | |
38329 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
38330 | fi | |
38331 | ||
38332 | if test "$wxUSE_GUI" != "yes"; then | |
38333 | CORE_GUI_LIBS="" | |
38334 | fi | |
38335 | ||
38336 | ||
38337 | ||
38338 | ||
38339 | ||
38340 | ||
38341 | ||
38342 | ||
38343 | if test "$wxUSE_MAC" = 1 ; then | |
de59c161 | 38344 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework WebKit -framework System" |
a848cd7e SC |
38345 | fi |
38346 | if test "$wxUSE_COCOA" = 1 ; then | |
38347 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
38348 | fi | |
38349 | ||
38350 | ||
38351 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
38352 | ||
38353 | have_cos=0 | |
38354 | have_floor=0 | |
38355 | ||
38356 | for ac_func in cos | |
38357 | do | |
38358 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38359 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38360 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38361 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38363 | else | |
38364 | cat >conftest.$ac_ext <<_ACEOF | |
38365 | /* confdefs.h. */ | |
38366 | _ACEOF | |
38367 | cat confdefs.h >>conftest.$ac_ext | |
38368 | cat >>conftest.$ac_ext <<_ACEOF | |
38369 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38370 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38371 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38372 | #define $ac_func innocuous_$ac_func | |
38373 | ||
a848cd7e SC |
38374 | /* System header to define __stub macros and hopefully few prototypes, |
38375 | which can conflict with char $ac_func (); below. | |
38376 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38377 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38378 | |
a848cd7e SC |
38379 | #ifdef __STDC__ |
38380 | # include <limits.h> | |
38381 | #else | |
38382 | # include <assert.h> | |
38383 | #endif | |
ac1cb8d3 VS |
38384 | |
38385 | #undef $ac_func | |
38386 | ||
a848cd7e SC |
38387 | /* Override any gcc2 internal prototype to avoid an error. */ |
38388 | #ifdef __cplusplus | |
38389 | extern "C" | |
38390 | { | |
38391 | #endif | |
38392 | /* We use char because int might match the return type of a gcc2 | |
38393 | builtin and then its argument prototype would still apply. */ | |
38394 | char $ac_func (); | |
38395 | /* The GNU C library defines this for functions which it implements | |
38396 | to always fail with ENOSYS. Some functions are actually named | |
38397 | something starting with __ and the normal name is an alias. */ | |
38398 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38399 | choke me | |
38400 | #else | |
38401 | char (*f) () = $ac_func; | |
38402 | #endif | |
38403 | #ifdef __cplusplus | |
38404 | } | |
38405 | #endif | |
38406 | ||
38407 | int | |
38408 | main () | |
38409 | { | |
38410 | return f != $ac_func; | |
38411 | ; | |
38412 | return 0; | |
38413 | } | |
38414 | _ACEOF | |
38415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38417 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38418 | ac_status=$? |
ac1cb8d3 VS |
38419 | grep -v '^ *+' conftest.er1 >conftest.err |
38420 | rm -f conftest.er1 | |
38421 | cat conftest.err >&5 | |
a848cd7e SC |
38422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38423 | (exit $ac_status); } && | |
ac1cb8d3 VS |
38424 | { ac_try='test -z "$ac_c_werror_flag" |
38425 | || test ! -s conftest.err' | |
38426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38427 | (eval $ac_try) 2>&5 | |
38428 | ac_status=$? | |
38429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38430 | (exit $ac_status); }; } && | |
38431 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38433 | (eval $ac_try) 2>&5 | |
38434 | ac_status=$? | |
38435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38436 | (exit $ac_status); }; }; then | |
38437 | eval "$as_ac_var=yes" | |
38438 | else | |
38439 | echo "$as_me: failed program was:" >&5 | |
38440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38441 | ||
38442 | eval "$as_ac_var=no" | |
38443 | fi | |
ac1cb8d3 VS |
38444 | rm -f conftest.err conftest.$ac_objext \ |
38445 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38446 | fi |
38447 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38448 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38449 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38450 | cat >>confdefs.h <<_ACEOF | |
38451 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38452 | _ACEOF | |
38453 | have_cos=1 | |
38454 | fi | |
38455 | done | |
38456 | ||
38457 | ||
38458 | for ac_func in floor | |
38459 | do | |
38460 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38461 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38462 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38463 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38465 | else | |
38466 | cat >conftest.$ac_ext <<_ACEOF | |
38467 | /* confdefs.h. */ | |
38468 | _ACEOF | |
38469 | cat confdefs.h >>conftest.$ac_ext | |
38470 | cat >>conftest.$ac_ext <<_ACEOF | |
38471 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38472 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38473 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38474 | #define $ac_func innocuous_$ac_func | |
38475 | ||
a848cd7e SC |
38476 | /* System header to define __stub macros and hopefully few prototypes, |
38477 | which can conflict with char $ac_func (); below. | |
38478 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38479 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38480 | |
a848cd7e SC |
38481 | #ifdef __STDC__ |
38482 | # include <limits.h> | |
38483 | #else | |
38484 | # include <assert.h> | |
38485 | #endif | |
ac1cb8d3 VS |
38486 | |
38487 | #undef $ac_func | |
38488 | ||
a848cd7e SC |
38489 | /* Override any gcc2 internal prototype to avoid an error. */ |
38490 | #ifdef __cplusplus | |
38491 | extern "C" | |
38492 | { | |
38493 | #endif | |
38494 | /* We use char because int might match the return type of a gcc2 | |
38495 | builtin and then its argument prototype would still apply. */ | |
38496 | char $ac_func (); | |
38497 | /* The GNU C library defines this for functions which it implements | |
38498 | to always fail with ENOSYS. Some functions are actually named | |
38499 | something starting with __ and the normal name is an alias. */ | |
38500 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38501 | choke me | |
38502 | #else | |
38503 | char (*f) () = $ac_func; | |
38504 | #endif | |
38505 | #ifdef __cplusplus | |
38506 | } | |
38507 | #endif | |
38508 | ||
38509 | int | |
38510 | main () | |
38511 | { | |
38512 | return f != $ac_func; | |
38513 | ; | |
38514 | return 0; | |
38515 | } | |
38516 | _ACEOF | |
38517 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38519 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38520 | ac_status=$? |
ac1cb8d3 VS |
38521 | grep -v '^ *+' conftest.er1 >conftest.err |
38522 | rm -f conftest.er1 | |
38523 | cat conftest.err >&5 | |
a848cd7e SC |
38524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38525 | (exit $ac_status); } && | |
ac1cb8d3 VS |
38526 | { ac_try='test -z "$ac_c_werror_flag" |
38527 | || test ! -s conftest.err' | |
38528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38529 | (eval $ac_try) 2>&5 | |
38530 | ac_status=$? | |
38531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38532 | (exit $ac_status); }; } && | |
38533 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38535 | (eval $ac_try) 2>&5 | |
38536 | ac_status=$? | |
38537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38538 | (exit $ac_status); }; }; then | |
38539 | eval "$as_ac_var=yes" | |
38540 | else | |
38541 | echo "$as_me: failed program was:" >&5 | |
38542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38543 | ||
38544 | eval "$as_ac_var=no" | |
38545 | fi | |
ac1cb8d3 VS |
38546 | rm -f conftest.err conftest.$ac_objext \ |
38547 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38548 | fi |
38549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38550 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38551 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38552 | cat >>confdefs.h <<_ACEOF | |
38553 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38554 | _ACEOF | |
38555 | have_floor=1 | |
38556 | fi | |
38557 | done | |
38558 | ||
38559 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
38560 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
38561 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
38562 | echo "$as_me:$LINENO: result: yes" >&5 | |
38563 | echo "${ECHO_T}yes" >&6 | |
38564 | else | |
38565 | echo "$as_me:$LINENO: result: no" >&5 | |
38566 | echo "${ECHO_T}no" >&6 | |
38567 | LIBS="$LIBS -lm" | |
38568 | # use different functions to avoid configure caching | |
38569 | have_sin=0 | |
38570 | have_ceil=0 | |
38571 | ||
38572 | for ac_func in sin | |
38573 | do | |
38574 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38575 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38576 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38577 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38579 | else | |
38580 | cat >conftest.$ac_ext <<_ACEOF | |
38581 | /* confdefs.h. */ | |
38582 | _ACEOF | |
38583 | cat confdefs.h >>conftest.$ac_ext | |
38584 | cat >>conftest.$ac_ext <<_ACEOF | |
38585 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38586 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38587 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38588 | #define $ac_func innocuous_$ac_func | |
38589 | ||
a848cd7e SC |
38590 | /* System header to define __stub macros and hopefully few prototypes, |
38591 | which can conflict with char $ac_func (); below. | |
38592 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38593 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38594 | |
a848cd7e SC |
38595 | #ifdef __STDC__ |
38596 | # include <limits.h> | |
38597 | #else | |
38598 | # include <assert.h> | |
38599 | #endif | |
ac1cb8d3 VS |
38600 | |
38601 | #undef $ac_func | |
38602 | ||
a848cd7e SC |
38603 | /* Override any gcc2 internal prototype to avoid an error. */ |
38604 | #ifdef __cplusplus | |
38605 | extern "C" | |
38606 | { | |
38607 | #endif | |
38608 | /* We use char because int might match the return type of a gcc2 | |
38609 | builtin and then its argument prototype would still apply. */ | |
38610 | char $ac_func (); | |
38611 | /* The GNU C library defines this for functions which it implements | |
38612 | to always fail with ENOSYS. Some functions are actually named | |
38613 | something starting with __ and the normal name is an alias. */ | |
38614 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38615 | choke me | |
38616 | #else | |
38617 | char (*f) () = $ac_func; | |
38618 | #endif | |
38619 | #ifdef __cplusplus | |
38620 | } | |
38621 | #endif | |
38622 | ||
38623 | int | |
38624 | main () | |
38625 | { | |
38626 | return f != $ac_func; | |
38627 | ; | |
38628 | return 0; | |
38629 | } | |
38630 | _ACEOF | |
38631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38633 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38634 | ac_status=$? |
ac1cb8d3 VS |
38635 | grep -v '^ *+' conftest.er1 >conftest.err |
38636 | rm -f conftest.er1 | |
38637 | cat conftest.err >&5 | |
a848cd7e SC |
38638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38639 | (exit $ac_status); } && | |
ac1cb8d3 VS |
38640 | { ac_try='test -z "$ac_c_werror_flag" |
38641 | || test ! -s conftest.err' | |
38642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38643 | (eval $ac_try) 2>&5 | |
38644 | ac_status=$? | |
38645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38646 | (exit $ac_status); }; } && | |
38647 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38649 | (eval $ac_try) 2>&5 | |
38650 | ac_status=$? | |
38651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38652 | (exit $ac_status); }; }; then | |
38653 | eval "$as_ac_var=yes" | |
38654 | else | |
38655 | echo "$as_me: failed program was:" >&5 | |
38656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38657 | ||
38658 | eval "$as_ac_var=no" | |
38659 | fi | |
ac1cb8d3 VS |
38660 | rm -f conftest.err conftest.$ac_objext \ |
38661 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38662 | fi |
38663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38664 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38665 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38666 | cat >>confdefs.h <<_ACEOF | |
38667 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38668 | _ACEOF | |
38669 | have_sin=1 | |
38670 | fi | |
38671 | done | |
38672 | ||
38673 | ||
38674 | for ac_func in ceil | |
38675 | do | |
38676 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38677 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38678 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38679 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38681 | else | |
38682 | cat >conftest.$ac_ext <<_ACEOF | |
38683 | /* confdefs.h. */ | |
38684 | _ACEOF | |
38685 | cat confdefs.h >>conftest.$ac_ext | |
38686 | cat >>conftest.$ac_ext <<_ACEOF | |
38687 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38688 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38689 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38690 | #define $ac_func innocuous_$ac_func | |
38691 | ||
a848cd7e SC |
38692 | /* System header to define __stub macros and hopefully few prototypes, |
38693 | which can conflict with char $ac_func (); below. | |
38694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38695 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38696 | |
a848cd7e SC |
38697 | #ifdef __STDC__ |
38698 | # include <limits.h> | |
38699 | #else | |
38700 | # include <assert.h> | |
38701 | #endif | |
ac1cb8d3 VS |
38702 | |
38703 | #undef $ac_func | |
38704 | ||
a848cd7e SC |
38705 | /* Override any gcc2 internal prototype to avoid an error. */ |
38706 | #ifdef __cplusplus | |
38707 | extern "C" | |
38708 | { | |
38709 | #endif | |
38710 | /* We use char because int might match the return type of a gcc2 | |
38711 | builtin and then its argument prototype would still apply. */ | |
38712 | char $ac_func (); | |
38713 | /* The GNU C library defines this for functions which it implements | |
38714 | to always fail with ENOSYS. Some functions are actually named | |
38715 | something starting with __ and the normal name is an alias. */ | |
38716 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38717 | choke me | |
38718 | #else | |
38719 | char (*f) () = $ac_func; | |
38720 | #endif | |
38721 | #ifdef __cplusplus | |
38722 | } | |
38723 | #endif | |
38724 | ||
38725 | int | |
38726 | main () | |
38727 | { | |
38728 | return f != $ac_func; | |
38729 | ; | |
38730 | return 0; | |
38731 | } | |
38732 | _ACEOF | |
38733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38735 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38736 | ac_status=$? |
ac1cb8d3 VS |
38737 | grep -v '^ *+' conftest.er1 >conftest.err |
38738 | rm -f conftest.er1 | |
38739 | cat conftest.err >&5 | |
a848cd7e SC |
38740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38741 | (exit $ac_status); } && | |
ac1cb8d3 VS |
38742 | { ac_try='test -z "$ac_c_werror_flag" |
38743 | || test ! -s conftest.err' | |
38744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38745 | (eval $ac_try) 2>&5 | |
38746 | ac_status=$? | |
38747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38748 | (exit $ac_status); }; } && | |
38749 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38751 | (eval $ac_try) 2>&5 | |
38752 | ac_status=$? | |
38753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38754 | (exit $ac_status); }; }; then | |
38755 | eval "$as_ac_var=yes" | |
38756 | else | |
38757 | echo "$as_me: failed program was:" >&5 | |
38758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38759 | ||
38760 | eval "$as_ac_var=no" | |
38761 | fi | |
ac1cb8d3 VS |
38762 | rm -f conftest.err conftest.$ac_objext \ |
38763 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38764 | fi |
38765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38766 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38767 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38768 | cat >>confdefs.h <<_ACEOF | |
38769 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38770 | _ACEOF | |
38771 | have_ceil=1 | |
38772 | fi | |
38773 | done | |
38774 | ||
38775 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
38776 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
38777 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
38778 | echo "$as_me:$LINENO: result: yes" >&5 | |
38779 | echo "${ECHO_T}yes" >&6 | |
38780 | else | |
38781 | echo "$as_me:$LINENO: result: no" >&5 | |
38782 | echo "${ECHO_T}no" >&6 | |
38783 | # not sure we should warn the user, crash, etc. | |
38784 | fi | |
38785 | fi | |
38786 | ||
38787 | if test "$wxUSE_GUI" = "yes"; then | |
38788 | ||
38789 | ||
38790 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
38791 | drawing dynamic erase event exec font image \ | |
38792 | minimal propsize rotate shaped widgets render" | |
38793 | ||
38794 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
38795 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
38796 | fi | |
38797 | else | |
38798 | SAMPLES_SUBDIRS="console" | |
38799 | fi | |
38800 | ||
38801 | ||
38802 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ | |
38803 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" | |
38804 | ||
38805 | if test "$GXX" = yes ; then | |
38806 | CXXWARNINGS="-Wall" | |
38807 | fi | |
38808 | ||
38809 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
38810 | ||
38811 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` | |
38812 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
38813 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
38814 | ||
38815 | ||
38816 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
38817 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" | |
38818 | EXTRALIBS_XML="$EXPAT_LINK" | |
38819 | EXTRALIBS_HTML="$MSPACK_LINK" | |
38820 | EXTRALIBS_ODBC="$ODBC_LINK" | |
38821 | if test "$wxUSE_GUI" = "yes"; then | |
38822 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
38823 | fi | |
38824 | if test "$wxUSE_OPENGL" = "yes"; then | |
38825 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
38826 | fi | |
38827 | ||
38828 | LDFLAGS="$LDFLAGS $PROFILE" | |
38829 | ||
38830 | if test "$wxUSE_GTK" = 1; then | |
38831 | WXCONFIG_INCLUDE= | |
38832 | else | |
38833 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
38834 | fi | |
38835 | ||
38836 | WXCONFIG_EXTRALIBS="$LIBS" | |
38837 | ||
38838 | if test "$wxUSE_REGEX" = "builtin" ; then | |
38839 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
38840 | fi | |
38841 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
38842 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
38843 | fi | |
38844 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38845 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38846 | fi | |
38847 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
38848 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
38849 | fi | |
38850 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
38851 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
38852 | fi | |
38853 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
38854 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
38855 | fi | |
38856 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
38857 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
38858 | fi | |
38859 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38860 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38861 | fi | |
38862 | ||
38863 | for i in $wxconfig_3rdparty ; do | |
38864 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
38865 | done | |
38866 | ||
38867 | ||
38868 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
38869 | WXUNIV=1 | |
38870 | else | |
38871 | WXUNIV=0 | |
38872 | fi | |
38873 | ||
38874 | ||
38875 | ||
38876 | ||
38877 | ||
38878 | ||
38879 | ||
38880 | ||
38881 | ||
38882 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
38883 | MONOLITHIC=1 | |
38884 | else | |
38885 | MONOLITHIC=0 | |
38886 | fi | |
38887 | ||
38888 | if test $wxUSE_PLUGINS = "yes" ; then | |
38889 | USE_PLUGINS=1 | |
38890 | else | |
38891 | USE_PLUGINS=0 | |
38892 | fi | |
38893 | ||
38894 | if test $wxUSE_ODBC != "no" ; then | |
38895 | USE_ODBC=1 | |
38896 | else | |
38897 | USE_ODBC=0 | |
38898 | fi | |
38899 | ||
38900 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
38901 | OFFICIAL_BUILD=1 | |
38902 | else | |
38903 | OFFICIAL_BUILD=0 | |
38904 | fi | |
38905 | ||
38906 | ||
38907 | ||
38908 | ||
38909 | ||
38910 | ||
38911 | ||
38912 | ||
38913 | ||
38914 | ||
38915 | ||
38916 | ||
38917 | ||
38918 | ||
38919 | ||
38920 | ||
38921 | ||
38922 | ||
38923 | ||
38924 | ||
38925 | ||
38926 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
38927 | ||
38928 | ||
38929 | ||
38930 | ||
38931 | ||
38932 | ||
38933 | ||
38934 | ||
38935 | ||
38936 | if test "x$BAKEFILE_HOST" = "x"; then | |
38937 | BAKEFILE_HOST="${host}" | |
38938 | fi | |
38939 | ||
38940 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
38941 | ||
38942 | if test -n "$ac_tool_prefix"; then | |
38943 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
38944 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
38945 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38947 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
38948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38949 | else | |
38950 | if test -n "$RANLIB"; then | |
38951 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
38952 | else | |
38953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38954 | for as_dir in $PATH | |
38955 | do | |
38956 | IFS=$as_save_IFS | |
38957 | test -z "$as_dir" && as_dir=. | |
38958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38959 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38960 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
38961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38962 | break 2 | |
38963 | fi | |
38964 | done | |
38965 | done | |
38966 | ||
38967 | fi | |
38968 | fi | |
38969 | RANLIB=$ac_cv_prog_RANLIB | |
38970 | if test -n "$RANLIB"; then | |
38971 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
38972 | echo "${ECHO_T}$RANLIB" >&6 | |
38973 | else | |
38974 | echo "$as_me:$LINENO: result: no" >&5 | |
38975 | echo "${ECHO_T}no" >&6 | |
38976 | fi | |
38977 | ||
38978 | fi | |
38979 | if test -z "$ac_cv_prog_RANLIB"; then | |
38980 | ac_ct_RANLIB=$RANLIB | |
38981 | # Extract the first word of "ranlib", so it can be a program name with args. | |
38982 | set dummy ranlib; ac_word=$2 | |
38983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38985 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
38986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38987 | else | |
38988 | if test -n "$ac_ct_RANLIB"; then | |
38989 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
38990 | else | |
38991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38992 | for as_dir in $PATH | |
38993 | do | |
38994 | IFS=$as_save_IFS | |
38995 | test -z "$as_dir" && as_dir=. | |
38996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38998 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
38999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39000 | break 2 | |
39001 | fi | |
39002 | done | |
39003 | done | |
39004 | ||
39005 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
39006 | fi | |
39007 | fi | |
39008 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
39009 | if test -n "$ac_ct_RANLIB"; then | |
39010 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
39011 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
39012 | else | |
39013 | echo "$as_me:$LINENO: result: no" >&5 | |
39014 | echo "${ECHO_T}no" >&6 | |
39015 | fi | |
39016 | ||
39017 | RANLIB=$ac_ct_RANLIB | |
39018 | else | |
39019 | RANLIB="$ac_cv_prog_RANLIB" | |
39020 | fi | |
39021 | ||
39022 | # Find a good install program. We prefer a C program (faster), | |
39023 | # so one script is as good as another. But avoid the broken or | |
39024 | # incompatible versions: | |
39025 | # SysV /etc/install, /usr/sbin/install | |
39026 | # SunOS /usr/etc/install | |
39027 | # IRIX /sbin/install | |
39028 | # AIX /bin/install | |
39029 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
39030 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
39031 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
39032 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 39033 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
39034 | # ./install, which can be erroneously created by make from ./install.sh. |
39035 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
39036 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
39037 | if test -z "$INSTALL"; then | |
39038 | if test "${ac_cv_path_install+set}" = set; then | |
39039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39040 | else | |
39041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39042 | for as_dir in $PATH | |
39043 | do | |
39044 | IFS=$as_save_IFS | |
39045 | test -z "$as_dir" && as_dir=. | |
39046 | # Account for people who put trailing slashes in PATH elements. | |
39047 | case $as_dir/ in | |
39048 | ./ | .// | /cC/* | \ | |
39049 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 39050 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
39051 | /usr/ucb/* ) ;; |
39052 | *) | |
39053 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
39054 | # Don't use installbsd from OSF since it installs stuff as root | |
39055 | # by default. | |
39056 | for ac_prog in ginstall scoinst install; do | |
39057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
39058 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
39059 | if test $ac_prog = install && | |
39060 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
39061 | # AIX install. It has an incompatible calling convention. | |
39062 | : | |
39063 | elif test $ac_prog = install && | |
39064 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
39065 | # program-specific install script used by HP pwplus--don't use. | |
39066 | : | |
39067 | else | |
39068 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
39069 | break 3 | |
39070 | fi | |
39071 | fi | |
a848cd7e SC |
39072 | done |
39073 | done | |
39074 | ;; | |
39075 | esac | |
39076 | done | |
39077 | ||
39078 | ||
39079 | fi | |
39080 | if test "${ac_cv_path_install+set}" = set; then | |
39081 | INSTALL=$ac_cv_path_install | |
39082 | else | |
39083 | # As a last resort, use the slow shell script. We don't cache a | |
39084 | # path for INSTALL within a source directory, because that will | |
39085 | # break other packages using the cache if that directory is | |
39086 | # removed, or if the path is relative. | |
39087 | INSTALL=$ac_install_sh | |
39088 | fi | |
39089 | fi | |
39090 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
39091 | echo "${ECHO_T}$INSTALL" >&6 | |
39092 | ||
39093 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
39094 | # It thinks the first close brace ends the variable substitution. | |
39095 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
39096 | ||
39097 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
39098 | ||
39099 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
39100 | ||
39101 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
39102 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
39103 | LN_S=$as_ln_s | |
39104 | if test "$LN_S" = "ln -s"; then | |
39105 | echo "$as_me:$LINENO: result: yes" >&5 | |
39106 | echo "${ECHO_T}yes" >&6 | |
39107 | else | |
39108 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
39109 | echo "${ECHO_T}no, using $LN_S" >&6 | |
39110 | fi | |
39111 | ||
39112 | ||
39113 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
39114 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 39115 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
39116 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
39117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39118 | else | |
39119 | cat >conftest.make <<\_ACEOF | |
39120 | all: | |
39121 | @echo 'ac_maketemp="$(MAKE)"' | |
39122 | _ACEOF | |
39123 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
39124 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
39125 | if test -n "$ac_maketemp"; then | |
39126 | eval ac_cv_prog_make_${ac_make}_set=yes | |
39127 | else | |
39128 | eval ac_cv_prog_make_${ac_make}_set=no | |
39129 | fi | |
39130 | rm -f conftest.make | |
39131 | fi | |
39132 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
39133 | echo "$as_me:$LINENO: result: yes" >&5 | |
39134 | echo "${ECHO_T}yes" >&6 | |
39135 | SET_MAKE= | |
39136 | else | |
39137 | echo "$as_me:$LINENO: result: no" >&5 | |
39138 | echo "${ECHO_T}no" >&6 | |
39139 | SET_MAKE="MAKE=${MAKE-make}" | |
39140 | fi | |
39141 | ||
39142 | ||
39143 | ||
39144 | if test -n "$ac_tool_prefix"; then | |
39145 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
39146 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
39147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39149 | if test "${ac_cv_prog_AR+set}" = set; then | |
39150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39151 | else | |
39152 | if test -n "$AR"; then | |
39153 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
39154 | else | |
39155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39156 | for as_dir in $PATH | |
39157 | do | |
39158 | IFS=$as_save_IFS | |
39159 | test -z "$as_dir" && as_dir=. | |
39160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39162 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
39163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39164 | break 2 | |
39165 | fi | |
39166 | done | |
39167 | done | |
39168 | ||
39169 | fi | |
39170 | fi | |
39171 | AR=$ac_cv_prog_AR | |
39172 | if test -n "$AR"; then | |
39173 | echo "$as_me:$LINENO: result: $AR" >&5 | |
39174 | echo "${ECHO_T}$AR" >&6 | |
39175 | else | |
39176 | echo "$as_me:$LINENO: result: no" >&5 | |
39177 | echo "${ECHO_T}no" >&6 | |
39178 | fi | |
39179 | ||
39180 | fi | |
39181 | if test -z "$ac_cv_prog_AR"; then | |
39182 | ac_ct_AR=$AR | |
39183 | # Extract the first word of "ar", so it can be a program name with args. | |
39184 | set dummy ar; ac_word=$2 | |
39185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39187 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
39188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39189 | else | |
39190 | if test -n "$ac_ct_AR"; then | |
39191 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
39192 | else | |
39193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39194 | for as_dir in $PATH | |
39195 | do | |
39196 | IFS=$as_save_IFS | |
39197 | test -z "$as_dir" && as_dir=. | |
39198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39200 | ac_cv_prog_ac_ct_AR="ar" | |
39201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39202 | break 2 | |
39203 | fi | |
39204 | done | |
39205 | done | |
39206 | ||
39207 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
39208 | fi | |
39209 | fi | |
39210 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
39211 | if test -n "$ac_ct_AR"; then | |
39212 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
39213 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
39214 | else | |
39215 | echo "$as_me:$LINENO: result: no" >&5 | |
39216 | echo "${ECHO_T}no" >&6 | |
39217 | fi | |
39218 | ||
39219 | AR=$ac_ct_AR | |
39220 | else | |
39221 | AR="$ac_cv_prog_AR" | |
39222 | fi | |
39223 | ||
39224 | if test -n "$ac_tool_prefix"; then | |
39225 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
39226 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
39227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39229 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
39230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39231 | else | |
39232 | if test -n "$STRIP"; then | |
39233 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
39234 | else | |
39235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39236 | for as_dir in $PATH | |
39237 | do | |
39238 | IFS=$as_save_IFS | |
39239 | test -z "$as_dir" && as_dir=. | |
39240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39242 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
39243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39244 | break 2 | |
39245 | fi | |
39246 | done | |
39247 | done | |
39248 | ||
39249 | fi | |
39250 | fi | |
39251 | STRIP=$ac_cv_prog_STRIP | |
39252 | if test -n "$STRIP"; then | |
39253 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
39254 | echo "${ECHO_T}$STRIP" >&6 | |
39255 | else | |
39256 | echo "$as_me:$LINENO: result: no" >&5 | |
39257 | echo "${ECHO_T}no" >&6 | |
39258 | fi | |
39259 | ||
39260 | fi | |
39261 | if test -z "$ac_cv_prog_STRIP"; then | |
39262 | ac_ct_STRIP=$STRIP | |
39263 | # Extract the first word of "strip", so it can be a program name with args. | |
39264 | set dummy strip; ac_word=$2 | |
39265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39267 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
39268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39269 | else | |
39270 | if test -n "$ac_ct_STRIP"; then | |
39271 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
39272 | else | |
39273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39274 | for as_dir in $PATH | |
39275 | do | |
39276 | IFS=$as_save_IFS | |
39277 | test -z "$as_dir" && as_dir=. | |
39278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39280 | ac_cv_prog_ac_ct_STRIP="strip" | |
39281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39282 | break 2 | |
39283 | fi | |
39284 | done | |
39285 | done | |
39286 | ||
39287 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
39288 | fi | |
39289 | fi | |
39290 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
39291 | if test -n "$ac_ct_STRIP"; then | |
39292 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
39293 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
39294 | else | |
39295 | echo "$as_me:$LINENO: result: no" >&5 | |
39296 | echo "${ECHO_T}no" >&6 | |
39297 | fi | |
39298 | ||
39299 | STRIP=$ac_ct_STRIP | |
39300 | else | |
39301 | STRIP="$ac_cv_prog_STRIP" | |
39302 | fi | |
39303 | ||
39304 | if test -n "$ac_tool_prefix"; then | |
39305 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
39306 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
39307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39309 | if test "${ac_cv_prog_NM+set}" = set; then | |
39310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39311 | else | |
39312 | if test -n "$NM"; then | |
39313 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
39314 | else | |
39315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39316 | for as_dir in $PATH | |
39317 | do | |
39318 | IFS=$as_save_IFS | |
39319 | test -z "$as_dir" && as_dir=. | |
39320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39322 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
39323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39324 | break 2 | |
39325 | fi | |
39326 | done | |
39327 | done | |
39328 | ||
39329 | fi | |
39330 | fi | |
39331 | NM=$ac_cv_prog_NM | |
39332 | if test -n "$NM"; then | |
39333 | echo "$as_me:$LINENO: result: $NM" >&5 | |
39334 | echo "${ECHO_T}$NM" >&6 | |
39335 | else | |
39336 | echo "$as_me:$LINENO: result: no" >&5 | |
39337 | echo "${ECHO_T}no" >&6 | |
39338 | fi | |
39339 | ||
39340 | fi | |
39341 | if test -z "$ac_cv_prog_NM"; then | |
39342 | ac_ct_NM=$NM | |
39343 | # Extract the first word of "nm", so it can be a program name with args. | |
39344 | set dummy nm; ac_word=$2 | |
39345 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39347 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
39348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39349 | else | |
39350 | if test -n "$ac_ct_NM"; then | |
39351 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
39352 | else | |
39353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39354 | for as_dir in $PATH | |
39355 | do | |
39356 | IFS=$as_save_IFS | |
39357 | test -z "$as_dir" && as_dir=. | |
39358 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39359 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39360 | ac_cv_prog_ac_ct_NM="nm" | |
39361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39362 | break 2 | |
39363 | fi | |
39364 | done | |
39365 | done | |
39366 | ||
39367 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
39368 | fi | |
39369 | fi | |
39370 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
39371 | if test -n "$ac_ct_NM"; then | |
39372 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
39373 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
39374 | else | |
39375 | echo "$as_me:$LINENO: result: no" >&5 | |
39376 | echo "${ECHO_T}no" >&6 | |
39377 | fi | |
39378 | ||
39379 | NM=$ac_ct_NM | |
39380 | else | |
39381 | NM="$ac_cv_prog_NM" | |
39382 | fi | |
39383 | ||
39384 | ||
39385 | case ${BAKEFILE_HOST} in | |
39386 | *-hp-hpux* ) | |
39387 | INSTALL_DIR="mkdir" | |
39388 | ;; | |
39389 | *) INSTALL_DIR="$INSTALL -d" | |
39390 | ;; | |
39391 | esac | |
39392 | ||
39393 | ||
39394 | LDFLAGS_GUI= | |
39395 | case ${BAKEFILE_HOST} in | |
39396 | *-*-cygwin* | *-*-mingw32* ) | |
39397 | LDFLAGS_GUI="-mwindows" | |
39398 | esac | |
39399 | ||
39400 | ||
39401 | fi | |
39402 | ||
39403 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
39404 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
39405 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
39406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39407 | else | |
39408 | ||
39409 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
39410 | egrep -s GNU > /dev/null); then | |
39411 | bakefile_cv_prog_makeisgnu="yes" | |
39412 | else | |
39413 | bakefile_cv_prog_makeisgnu="no" | |
39414 | fi | |
39415 | ||
39416 | fi | |
39417 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
39418 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
39419 | ||
39420 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
39421 | IF_GNU_MAKE="" | |
39422 | else | |
39423 | IF_GNU_MAKE="#" | |
39424 | fi | |
39425 | ||
39426 | ||
39427 | ||
39428 | PLATFORM_UNIX=0 | |
39429 | PLATFORM_WIN32=0 | |
39430 | PLATFORM_MSDOS=0 | |
39431 | PLATFORM_MAC=0 | |
39432 | PLATFORM_MACOSX=0 | |
39433 | PLATFORM_OS2=0 | |
39434 | ||
39435 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
39436 | case "${BAKEFILE_HOST}" in | |
39437 | *-*-cygwin* | *-*-mingw32* ) | |
39438 | PLATFORM_WIN32=1 | |
39439 | ;; | |
39440 | *-pc-msdosdjgpp ) | |
39441 | PLATFORM_MSDOS=1 | |
39442 | ;; | |
39443 | *-pc-os2_emx | *-pc-os2-emx ) | |
39444 | PLATFORM_OS2=1 | |
39445 | ;; | |
39446 | powerpc-*-darwin* ) | |
39447 | PLATFORM_MAC=1 | |
39448 | PLATFORM_MACOSX=1 | |
39449 | ;; | |
39450 | * ) | |
39451 | PLATFORM_UNIX=1 | |
39452 | ;; | |
39453 | esac | |
39454 | else | |
39455 | case "$BAKEFILE_FORCE_PLATFORM" in | |
39456 | win32 ) | |
39457 | PLATFORM_WIN32=1 | |
39458 | ;; | |
39459 | msdos ) | |
39460 | PLATFORM_MSDOS=1 | |
39461 | ;; | |
39462 | os2 ) | |
39463 | PLATFORM_OS2=1 | |
39464 | ;; | |
39465 | darwin ) | |
39466 | PLATFORM_MAC=1 | |
39467 | PLATFORM_MACOSX=1 | |
39468 | ;; | |
39469 | unix ) | |
39470 | PLATFORM_UNIX=1 | |
39471 | ;; | |
39472 | * ) | |
39473 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
39474 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
39475 | { (exit 1); exit 1; }; } | |
39476 | ;; | |
39477 | esac | |
39478 | fi | |
39479 | ||
39480 | ||
39481 | ||
39482 | ||
39483 | ||
39484 | ||
39485 | ||
39486 | ||
39487 | ||
39488 | # Check whether --enable-omf or --disable-omf was given. | |
39489 | if test "${enable_omf+set}" = set; then | |
39490 | enableval="$enable_omf" | |
39491 | bk_os2_use_omf="$enableval" | |
39492 | fi; | |
39493 | ||
39494 | case "${BAKEFILE_HOST}" in | |
39495 | *-*-darwin* ) | |
39496 | CFLAGS="$CFLAGS -fno-common" | |
39497 | CXXFLAGS="$CXXFLAGS -fno-common" | |
39498 | ;; | |
39499 | ||
39500 | *-pc-os2_emx | *-pc-os2-emx ) | |
39501 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
39502 | AR=emxomfar | |
39503 | RANLIB=: | |
39504 | LDFLAGS="-Zomf $LDFLAGS" | |
39505 | CFLAGS="-Zomf $CFLAGS" | |
39506 | CXXFLAGS="-Zomf $CXXFLAGS" | |
39507 | OS2_LIBEXT="lib" | |
39508 | else | |
39509 | OS2_LIBEXT="a" | |
39510 | fi | |
39511 | ;; | |
39512 | esac | |
39513 | ||
39514 | ||
39515 | SO_SUFFIX="so" | |
39516 | SO_SUFFIX_MODULE="so" | |
39517 | EXEEXT="" | |
39518 | LIBPREFIX="lib" | |
39519 | LIBEXT=".a" | |
39520 | DLLPREFIX="lib" | |
39521 | DLLPREFIX_MODULE="" | |
39522 | DLLIMP_SUFFIX="" | |
39523 | ||
39524 | case "${BAKEFILE_HOST}" in | |
39525 | *-hp-hpux* ) | |
39526 | SO_SUFFIX="sl" | |
39527 | SO_SUFFIX_MODULE="sl" | |
39528 | ;; | |
39529 | *-*-aix* ) | |
39530 | SO_SUFFIX="a" | |
39531 | SO_SUFFIX_MODULE="a" | |
39532 | ;; | |
39533 | *-*-cygwin* | *-*-mingw32* ) | |
39534 | SO_SUFFIX="dll" | |
39535 | SO_SUFFIX_MODULE="dll" | |
39536 | DLLIMP_SUFFIX="dll.a" | |
39537 | EXEEXT=".exe" | |
39538 | DLLPREFIX="" | |
39539 | ;; | |
39540 | *-pc-msdosdjgpp ) | |
39541 | EXEEXT=".exe" | |
39542 | DLLPREFIX="" | |
39543 | ;; | |
39544 | *-pc-os2_emx | *-pc-os2-emx ) | |
39545 | SO_SUFFIX="dll" | |
39546 | SO_SUFFIX_MODULE="dll" | |
39547 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
39548 | EXEEXT=".exe" | |
39549 | DLLPREFIX="" | |
39550 | LIBPREFIX="" | |
39551 | LIBEXT=".$OS2_LIBEXT" | |
39552 | ;; | |
39553 | powerpc-*-darwin* ) | |
39554 | SO_SUFFIX="dylib" | |
39555 | SO_SUFFIX_MODULE="bundle" | |
39556 | ;; | |
39557 | esac | |
39558 | ||
39559 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
39560 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
39561 | fi | |
39562 | ||
39563 | ||
39564 | ||
39565 | ||
39566 | ||
39567 | ||
39568 | ||
39569 | ||
39570 | ||
39571 | ||
39572 | ||
39573 | SHARED_LD_CC="\$(CC) -shared -o" | |
39574 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
39575 | ||
39576 | if test "x$GCC" = "xyes"; then | |
39577 | PIC_FLAG="-fPIC" | |
39578 | fi | |
39579 | ||
39580 | case "${BAKEFILE_HOST}" in | |
39581 | *-hp-hpux* ) | |
39582 | if test "x$GCC" = "xyes"; then | |
39583 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
39584 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
39585 | else | |
39586 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
39587 | ||
39588 | SHARED_LD_CC="${CC} -b -o" | |
39589 | SHARED_LD_CXX="${CXX} -b -o" | |
39590 | PIC_FLAG="+Z" | |
39591 | fi | |
39592 | ;; | |
39593 | ||
39594 | *-*-linux* ) | |
39595 | if test "x$GCC" != "xyes"; then | |
39596 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
39597 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
39598 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
39599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39600 | else | |
39601 | ||
39602 | cat >conftest.$ac_ext <<_ACEOF | |
39603 | /* confdefs.h. */ | |
39604 | _ACEOF | |
39605 | cat confdefs.h >>conftest.$ac_ext | |
39606 | cat >>conftest.$ac_ext <<_ACEOF | |
39607 | /* end confdefs.h. */ | |
39608 | ||
39609 | int | |
39610 | main () | |
39611 | { | |
39612 | ||
39613 | #ifndef __INTEL_COMPILER | |
39614 | #error Not icc | |
39615 | #endif | |
39616 | ||
39617 | ; | |
39618 | return 0; | |
39619 | } | |
39620 | _ACEOF | |
39621 | rm -f conftest.$ac_objext | |
39622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39623 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39624 | ac_status=$? |
ac1cb8d3 VS |
39625 | grep -v '^ *+' conftest.er1 >conftest.err |
39626 | rm -f conftest.er1 | |
39627 | cat conftest.err >&5 | |
a848cd7e SC |
39628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39629 | (exit $ac_status); } && | |
ac1cb8d3 VS |
39630 | { ac_try='test -z "$ac_c_werror_flag" |
39631 | || test ! -s conftest.err' | |
39632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39633 | (eval $ac_try) 2>&5 | |
39634 | ac_status=$? | |
39635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39636 | (exit $ac_status); }; } && | |
39637 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39639 | (eval $ac_try) 2>&5 | |
39640 | ac_status=$? | |
39641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39642 | (exit $ac_status); }; }; then | |
39643 | bakefile_cv_prog_icc=yes | |
39644 | else | |
39645 | echo "$as_me: failed program was:" >&5 | |
39646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39647 | ||
39648 | bakefile_cv_prog_icc=no | |
39649 | ||
39650 | fi | |
ac1cb8d3 | 39651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39652 | |
39653 | fi | |
39654 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
39655 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
39656 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
39657 | PIC_FLAG="-KPIC" | |
39658 | fi | |
39659 | fi | |
39660 | ;; | |
39661 | ||
39662 | *-*-solaris2* ) | |
39663 | if test "x$GCC" != xyes ; then | |
39664 | SHARED_LD_CC="${CC} -G -o" | |
39665 | SHARED_LD_CXX="${CXX} -G -o" | |
39666 | PIC_FLAG="-KPIC" | |
39667 | fi | |
39668 | ;; | |
39669 | ||
39670 | *-*-darwin* ) | |
39671 | ||
39672 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
39673 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
39674 | if test "${wx_cv_gcc31+set}" = set; then | |
39675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39676 | else | |
39677 | ||
39678 | cat >conftest.$ac_ext <<_ACEOF | |
39679 | /* confdefs.h. */ | |
39680 | _ACEOF | |
39681 | cat confdefs.h >>conftest.$ac_ext | |
39682 | cat >>conftest.$ac_ext <<_ACEOF | |
39683 | /* end confdefs.h. */ | |
39684 | ||
39685 | int | |
39686 | main () | |
39687 | { | |
39688 | ||
39689 | #if (__GNUC__ < 3) || \ | |
39690 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
39691 | #error old gcc | |
39692 | #endif | |
39693 | ||
39694 | ; | |
39695 | return 0; | |
39696 | } | |
39697 | _ACEOF | |
39698 | rm -f conftest.$ac_objext | |
39699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39700 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39701 | ac_status=$? |
ac1cb8d3 VS |
39702 | grep -v '^ *+' conftest.er1 >conftest.err |
39703 | rm -f conftest.er1 | |
39704 | cat conftest.err >&5 | |
a848cd7e SC |
39705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39706 | (exit $ac_status); } && | |
ac1cb8d3 VS |
39707 | { ac_try='test -z "$ac_c_werror_flag" |
39708 | || test ! -s conftest.err' | |
39709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39710 | (eval $ac_try) 2>&5 | |
39711 | ac_status=$? | |
39712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39713 | (exit $ac_status); }; } && | |
39714 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39716 | (eval $ac_try) 2>&5 | |
39717 | ac_status=$? | |
39718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39719 | (exit $ac_status); }; }; then | |
39720 | ||
39721 | wx_cv_gcc31=yes | |
39722 | ||
39723 | else | |
39724 | echo "$as_me: failed program was:" >&5 | |
39725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39726 | ||
39727 | ||
39728 | wx_cv_gcc31=no | |
39729 | ||
39730 | ||
39731 | fi | |
ac1cb8d3 | 39732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39733 | |
39734 | fi | |
39735 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
39736 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
39737 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
39738 | |
39739 | D='$' | |
39740 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
39741 | #!/bin/sh |
39742 | #----------------------------------------------------------------------------- | |
39743 | #-- Name: distrib/mac/shared-ld-sh | |
39744 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
39745 | #-- Author: Gilles Depeyrot | |
39746 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
39747 | #-- Licence: any use permitted | |
39748 | #----------------------------------------------------------------------------- | |
39749 | ||
39750 | verbose=0 | |
39751 | args="" | |
39752 | objects="" | |
39753 | linking_flag="-dynamiclib" | |
39754 | ||
473276a9 VS |
39755 | while test ${D}# -gt 0; do |
39756 | case ${D}1 in | |
a848cd7e SC |
39757 | |
39758 | -v) | |
39759 | verbose=1 | |
39760 | ;; | |
39761 | ||
39762 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
39763 | # collect these options and values | |
473276a9 | 39764 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
39765 | shift |
39766 | ;; | |
39767 | ||
39768 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
39769 | # collect these options | |
473276a9 | 39770 | args="${D}{args} ${D}1" |
a848cd7e SC |
39771 | ;; |
39772 | ||
39773 | -dynamiclib|-bundle) | |
473276a9 | 39774 | linking_flag="${D}1" |
a848cd7e SC |
39775 | ;; |
39776 | ||
39777 | -*) | |
473276a9 | 39778 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
39779 | exit 1 |
39780 | ;; | |
39781 | ||
39782 | *.o | *.a | *.dylib) | |
39783 | # collect object files | |
473276a9 | 39784 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
39785 | ;; |
39786 | ||
39787 | *) | |
473276a9 | 39788 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
39789 | exit 1 |
39790 | ;; | |
39791 | ||
39792 | esac | |
39793 | shift | |
39794 | done | |
39795 | ||
39796 | # | |
39797 | # Link one module containing all the others | |
39798 | # | |
473276a9 VS |
39799 | if test ${D}{verbose} = 1; then |
39800 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 39801 | fi |
473276a9 VS |
39802 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
39803 | status=${D}? | |
39804 | if test ${D}{status} != 0; then | |
39805 | exit ${D}{status} | |
a848cd7e SC |
39806 | fi |
39807 | ||
39808 | # | |
39809 | # Link the shared library from the single module created | |
39810 | # | |
473276a9 VS |
39811 | if test ${D}{verbose} = 1; then |
39812 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 39813 | fi |
473276a9 VS |
39814 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
39815 | status=${D}? | |
39816 | if test ${D}{status} != 0; then | |
39817 | exit ${D}{status} | |
a848cd7e SC |
39818 | fi |
39819 | ||
39820 | # | |
39821 | # Remove intermediate module | |
39822 | # | |
473276a9 | 39823 | rm -f master.${D}${D}.o |
a848cd7e SC |
39824 | |
39825 | exit 0 | |
39826 | EOF | |
473276a9 | 39827 | |
a848cd7e SC |
39828 | chmod +x shared-ld-sh |
39829 | ||
39830 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
39831 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
39832 | SHARED_LD_CXX="$SHARED_LD_CC" | |
39833 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
39834 | else | |
39835 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39836 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
39837 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39838 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
39839 | fi | |
39840 | ||
39841 | PIC_FLAG="-dynamic -fPIC" | |
39842 | ;; | |
39843 | ||
39844 | *-*-aix* ) | |
39845 | if test "x$GCC" != "xyes"; then | |
39846 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
39847 | set dummy makeC++SharedLib; ac_word=$2 | |
39848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39850 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
39851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39852 | else | |
39853 | if test -n "$AIX_CXX_LD"; then | |
39854 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
39855 | else | |
39856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39857 | for as_dir in $PATH | |
39858 | do | |
39859 | IFS=$as_save_IFS | |
39860 | test -z "$as_dir" && as_dir=. | |
39861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39863 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
39864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39865 | break 2 | |
39866 | fi | |
39867 | done | |
39868 | done | |
39869 | ||
39870 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
39871 | fi | |
39872 | fi | |
39873 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
39874 | if test -n "$AIX_CXX_LD"; then | |
39875 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
39876 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
39877 | else | |
39878 | echo "$as_me:$LINENO: result: no" >&5 | |
39879 | echo "${ECHO_T}no" >&6 | |
39880 | fi | |
39881 | ||
39882 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
39883 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
39884 | fi | |
39885 | ;; | |
39886 | ||
39887 | *-*-beos* ) | |
39888 | SHARED_LD_CC="${LD} -shared -o" | |
39889 | SHARED_LD_CXX="${LD} -shared -o" | |
39890 | ;; | |
39891 | ||
39892 | *-*-irix* ) | |
39893 | if test "x$GCC" != "xyes"; then | |
39894 | PIC_FLAG="-KPIC" | |
39895 | fi | |
39896 | ;; | |
39897 | ||
39898 | *-*-cygwin* | *-*-mingw32* ) | |
39899 | PIC_FLAG="" | |
39900 | ;; | |
39901 | ||
39902 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
39903 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
39904 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 39905 | PIC_FLAG="" |
473276a9 VS |
39906 | |
39907 | D='$' | |
39908 | cat <<EOF >dllar.sh | |
39909 | #!/bin/sh | |
39910 | # | |
39911 | # dllar - a tool to build both a .dll and an .a file | |
39912 | # from a set of object (.o) files for EMX/OS2. | |
39913 | # | |
39914 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
39915 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
39916 | # | |
39917 | # This script will accept a set of files on the command line. | |
39918 | # All the public symbols from the .o files will be exported into | |
39919 | # a .DEF file, then linker will be run (through gcc) against them to | |
39920 | # build a shared library consisting of all given .o files. All libraries | |
39921 | # (.a) will be first decompressed into component .o files then act as | |
39922 | # described above. You can optionally give a description (-d "description") | |
39923 | # which will be put into .DLL. To see the list of accepted options (as well | |
39924 | # as command-line format) simply run this program without options. The .DLL | |
39925 | # is built to be imported by name (there is no guarantee that new versions | |
39926 | # of the library you build will have same ordinals for same symbols). | |
39927 | # | |
39928 | # dllar is free software; you can redistribute it and/or modify | |
39929 | # it under the terms of the GNU General Public License as published by | |
39930 | # the Free Software Foundation; either version 2, or (at your option) | |
39931 | # any later version. | |
39932 | # | |
39933 | # dllar is distributed in the hope that it will be useful, | |
39934 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
39935 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39936 | # GNU General Public License for more details. | |
39937 | # | |
39938 | # You should have received a copy of the GNU General Public License | |
39939 | # along with dllar; see the file COPYING. If not, write to the Free | |
39940 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
39941 | # 02111-1307, USA. | |
39942 | ||
39943 | # To successfuly run this program you will need: | |
39944 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
39945 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
39946 | # - gcc | |
39947 | # (used to build the .dll) | |
39948 | # - emxexp | |
39949 | # (used to create .def file from .o files) | |
39950 | # - emximp | |
39951 | # (used to create .a file from .def file) | |
39952 | # - GNU text utilites (cat, sort, uniq) | |
39953 | # used to process emxexp output | |
39954 | # - GNU file utilities (mv, rm) | |
39955 | # - GNU sed | |
39956 | # - lxlite (optional, see flag below) | |
39957 | # (used for general .dll cleanup) | |
39958 | # | |
39959 | ||
39960 | flag_USE_LXLITE=1; | |
39961 | ||
39962 | # | |
39963 | # helper functions | |
39964 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
39965 | # second argument (suffix to remove) is given | |
39966 | basnam(){ | |
39967 | case ${D}# in | |
39968 | 1) | |
39969 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
39970 | ;; | |
39971 | 2) | |
39972 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
39973 | ;; | |
39974 | *) | |
39975 | echo "error in basnam ${D}*" | |
39976 | exit 8 | |
39977 | ;; | |
39978 | esac | |
39979 | } | |
39980 | ||
39981 | # Cleanup temporary files and output | |
39982 | CleanUp() { | |
39983 | cd ${D}curDir | |
39984 | for i in ${D}inputFiles ; do | |
39985 | case ${D}i in | |
39986 | *!) | |
39987 | rm -rf \`basnam ${D}i !\` | |
39988 | ;; | |
39989 | *) | |
39990 | ;; | |
39991 | esac | |
39992 | done | |
39993 | ||
39994 | # Kill result in case of failure as there is just to many stupid make/nmake | |
39995 | # things out there which doesn't do this. | |
39996 | if ${D}# -eq 0 ; then | |
39997 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile | |
39998 | fi | |
39999 | } | |
40000 | ||
40001 | # Print usage and exit script with rc=1. | |
40002 | PrintHelp() { | |
40003 | echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name' | |
40004 | echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"' | |
40005 | echo ' -ord[inals] -exclude "symbol(s)"' | |
40006 | echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]' | |
40007 | echo ' *.o *.a' | |
40008 | echo '*> "output_file" should have no extension.' | |
40009 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
40010 | echo ' The import library name is derived from this and is set to "name".a,' | |
40011 | echo ' unless overridden by -import' | |
40012 | echo '*> "importlib_name" should have no extension.' | |
40013 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
40014 | echo ' This name is used as the import library name and may be longer and' | |
40015 | echo ' more descriptive than the DLL name which has to follow the old ' | |
40016 | echo ' 8.3 convention of FAT.' | |
40017 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
40018 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
40019 | echo ' These flags will be put at the start of GCC command line.' | |
40020 | echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.' | |
40021 | echo '*> -exclude defines symbols which will not be exported. You can define' | |
40022 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' | |
40023 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
40024 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
40025 | echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or' | |
40026 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' | |
40027 | echo '*> -nocrtdll switch will disable linking the library against emx''s' | |
40028 | echo ' C runtime DLLs.' | |
40029 | echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.' | |
40030 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' | |
40031 | echo ' unchanged to GCC at the end of command line.' | |
40032 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
40033 | echo ' the basename for DLL and import library will be set to library name,' | |
40034 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
40035 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
40036 | echo ' library will be renamed into gcc_s.a.' | |
40037 | echo '--------' | |
40038 | echo 'Example:' | |
40039 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
40040 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
40041 | CleanUp | |
40042 | exit 1 | |
40043 | } | |
40044 | ||
40045 | # Execute a command. | |
40046 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
40047 | # @Uses Whatever CleanUp() uses. | |
40048 | doCommand() { | |
40049 | echo "${D}*" | |
40050 | eval ${D}* | |
40051 | rcCmd=${D}? | |
40052 | ||
40053 | if ${D}rcCmd -ne 0 ; then | |
40054 | echo "command failed, exit code="${D}rcCmd | |
40055 | CleanUp | |
40056 | exit ${D}rcCmd | |
40057 | fi | |
40058 | } | |
40059 | ||
40060 | # main routine | |
40061 | # setup globals | |
40062 | cmdLine=${D}* | |
40063 | outFile="" | |
40064 | outimpFile="" | |
40065 | inputFiles="" | |
40066 | description="" | |
40067 | CC=gcc.exe | |
40068 | CFLAGS="-s -Zcrtdll" | |
40069 | EXTRA_CFLAGS="" | |
40070 | EXPORT_BY_ORDINALS=0 | |
40071 | exclude_symbols="" | |
40072 | library_flags="" | |
40073 | curDir=\`pwd\` | |
40074 | curDirS=curDir | |
40075 | case ${D}curDirS in | |
40076 | */) | |
40077 | ;; | |
40078 | *) | |
40079 | curDirS=${D}{curDirS}"/" | |
40080 | ;; | |
40081 | esac | |
40082 | # Parse commandline | |
40083 | libsToLink=0 | |
40084 | while ${D}1 ; do | |
40085 | case ${D}1 in | |
40086 | -ord*) | |
40087 | EXPORT_BY_ORDINALS=1; | |
40088 | ;; | |
40089 | -o*) | |
40090 | shift | |
40091 | outFile=${D}1 | |
40092 | ;; | |
40093 | -i*) | |
40094 | shift | |
40095 | outimpFile=${D}1 | |
40096 | ;; | |
40097 | -d*) | |
40098 | shift | |
40099 | description=${D}1 | |
40100 | ;; | |
40101 | -f*) | |
40102 | shift | |
40103 | CFLAGS=${D}1 | |
40104 | ;; | |
40105 | -c*) | |
40106 | shift | |
40107 | CC=${D}1 | |
40108 | ;; | |
40109 | -h*) | |
40110 | PrintHelp | |
40111 | ;; | |
40112 | -ex*) | |
40113 | shift | |
40114 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
40115 | ;; | |
40116 | -libf*) | |
40117 | shift | |
40118 | library_flags=${D}{library_flags}${D}1" " | |
40119 | ;; | |
40120 | -nocrt*) | |
40121 | CFLAGS="-s" | |
40122 | ;; | |
40123 | -nolxl*) | |
40124 | flag_USE_LXLITE=0 | |
40125 | ;; | |
40126 | -* | /*) | |
40127 | case ${D}1 in | |
40128 | -L* | -l*) | |
40129 | libsToLink=1 | |
40130 | ;; | |
40131 | *) | |
40132 | ;; | |
40133 | esac | |
40134 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
40135 | ;; | |
40136 | *) | |
40137 | found=0; | |
40138 | if ${D}libsToLink -ne 0 ; then | |
40139 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
40140 | else | |
40141 | for file in ${D}1 ; do | |
40142 | if -f ${D}file ; then | |
40143 | inputFiles="${D}{inputFiles} ${D}file" | |
40144 | found=1 | |
40145 | fi | |
40146 | done | |
40147 | if ${D}found -eq 0 ; then | |
40148 | echo "ERROR: No file(s) found: "${D}1 | |
40149 | exit 8 | |
40150 | fi | |
40151 | fi | |
40152 | ;; | |
40153 | esac | |
40154 | shift | |
40155 | done # iterate cmdline words | |
40156 | ||
40157 | # | |
40158 | if -z "${D}inputFiles" ; then | |
40159 | echo "dllar: no input files" | |
40160 | PrintHelp | |
40161 | fi | |
40162 | ||
40163 | # Now extract all .o files from .a files | |
40164 | newInputFiles="" | |
40165 | for file in ${D}inputFiles ; do | |
40166 | case ${D}file in | |
40167 | *.a | *.lib) | |
40168 | case ${D}file in | |
40169 | *.a) | |
40170 | suffix=".a" | |
40171 | AR="ar" | |
40172 | ;; | |
40173 | *.lib) | |
40174 | suffix=".lib" | |
40175 | AR="emxomfar" | |
40176 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
40177 | ;; | |
40178 | *) | |
40179 | ;; | |
40180 | esac | |
40181 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
40182 | mkdir ${D}dirname | |
40183 | if ${D}? -ne 0 ; then | |
40184 | echo "Failed to create subdirectory ./${D}dirname" | |
40185 | CleanUp | |
40186 | exit 8; | |
40187 | fi | |
40188 | # Append '!' to indicate archive | |
40189 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
40190 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
40191 | cd ${D}curDir | |
40192 | found=0; | |
40193 | for subfile in ${D}dirname/*.o* ; do | |
40194 | if -f ${D}subfile ; then | |
40195 | found=1 | |
40196 | if -s ${D}subfile ; then | |
40197 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! | |
40198 | newInputFiles="${D}newInputFiles ${D}subfile" | |
40199 | fi | |
40200 | fi | |
40201 | done | |
40202 | if ${D}found -eq 0 ; then | |
40203 | echo "WARNING: there are no files in archive \'${D}file\'" | |
40204 | fi | |
40205 | ;; | |
40206 | *) | |
40207 | newInputFiles="${D}{newInputFiles} ${D}file" | |
40208 | ;; | |
40209 | esac | |
40210 | done | |
40211 | inputFiles="${D}newInputFiles" | |
40212 | ||
40213 | # Output filename(s). | |
40214 | do_backup=0; | |
40215 | if -z ${D}outFile ; then | |
40216 | do_backup=1; | |
40217 | set outFile ${D}inputFiles; outFile=${D}2 | |
40218 | fi | |
40219 | ||
40220 | # If it is an archive, remove the '!' and the '_%' suffixes | |
40221 | case ${D}outFile in | |
40222 | *_%!) | |
40223 | outFile=\`basnam ${D}outFile _%!\` | |
40224 | ;; | |
40225 | *) | |
40226 | ;; | |
40227 | esac | |
40228 | case ${D}outFile in | |
40229 | *.dll) | |
40230 | outFile=\`basnam ${D}outFile .dll\` | |
40231 | ;; | |
40232 | *.DLL) | |
40233 | outFile=\`basnam ${D}outFile .DLL\` | |
40234 | ;; | |
40235 | *.o) | |
40236 | outFile=\`basnam ${D}outFile .o\` | |
40237 | ;; | |
40238 | *.obj) | |
40239 | outFile=\`basnam ${D}outFile .obj\` | |
40240 | ;; | |
40241 | *.a) | |
40242 | outFile=\`basnam ${D}outFile .a\` | |
40243 | ;; | |
40244 | *.lib) | |
40245 | outFile=\`basnam ${D}outFile .lib\` | |
40246 | ;; | |
40247 | *) | |
40248 | ;; | |
40249 | esac | |
40250 | case ${D}outimpFile in | |
40251 | *.a) | |
40252 | outimpFile=\`basnam ${D}outimpFile .a\` | |
40253 | ;; | |
40254 | *.lib) | |
40255 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
40256 | ;; | |
40257 | *) | |
40258 | ;; | |
40259 | esac | |
40260 | if -z ${D}outimpFile ; then | |
40261 | outimpFile=${D}outFile | |
40262 | fi | |
40263 | defFile="${D}{outFile}.def" | |
40264 | arcFile="${D}{outimpFile}.a" | |
40265 | arcFile2="${D}{outimpFile}.lib" | |
40266 | dllFile="${D}outFile" | |
40267 | # Add suffix to dllFile later, first we need a version to use as | |
40268 | # name in .def file. | |
40269 | ||
40270 | if ${D}do_backup -ne 0 ; then | |
40271 | if -f ${D}arcFile ; then | |
40272 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" | |
40273 | fi | |
40274 | if -f ${D}arcFile2 ; then | |
40275 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" | |
40276 | fi | |
40277 | fi | |
40278 | ||
40279 | # Extract public symbols from all the object files. | |
40280 | tmpdefFile=${D}{defFile}_% | |
40281 | rm -f ${D}tmpdefFile | |
40282 | for file in ${D}inputFiles ; do | |
40283 | case ${D}file in | |
40284 | *!) | |
40285 | ;; | |
40286 | *) | |
40287 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
40288 | ;; | |
40289 | esac | |
40290 | done | |
40291 | ||
40292 | # Create the def file. | |
40293 | rm -f ${D}defFile | |
40294 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
40295 | dllFile="${D}dllFile.dll" | |
40296 | if -n ${D}description ; then | |
40297 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile | |
40298 | fi | |
40299 | echo "EXPORTS" >> ${D}defFile | |
40300 | ||
40301 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
40302 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
40303 | ||
40304 | # Checks if the export is ok or not. | |
40305 | for word in ${D}exclude_symbols; do | |
40306 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
40307 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
40308 | done | |
40309 | ||
40310 | ||
40311 | if ${D}EXPORT_BY_ORDINALS -ne 0 ; then | |
40312 | sed "=" < ${D}tmpdefFile | \ | |
40313 | sed ' | |
40314 | N | |
40315 | : loop | |
40316 | s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/ | |
40317 | t loop | |
40318 | ' > ${D}{tmpdefFile}% | |
40319 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
40320 | else | |
40321 | rm -f ${D}{tmpdefFile}% | |
40322 | fi | |
40323 | cat ${D}tmpdefFile >> ${D}defFile | |
40324 | rm -f ${D}tmpdefFile | |
40325 | ||
40326 | # Do linking, create implib, and apply lxlite. | |
40327 | gccCmdl=""; | |
40328 | for file in ${D}inputFiles ; do | |
40329 | case ${D}file in | |
40330 | *!) | |
40331 | ;; | |
40332 | *) | |
40333 | gccCmdl="${D}gccCmdl ${D}file" | |
40334 | ;; | |
40335 | esac | |
40336 | done | |
40337 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
40338 | touch "${D}{outFile}.dll" | |
40339 | ||
40340 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
40341 | if ${D}flag_USE_LXLITE -ne 0 ; then | |
40342 | add_flags=""; | |
40343 | if ${D}EXPORT_BY_ORDINALS -ne 0 ; then | |
40344 | add_flags="-ynd" | |
40345 | fi | |
40346 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
40347 | fi | |
40348 | doCommand "emxomf -s -l ${D}arcFile" | |
40349 | ||
40350 | # Successful exit. | |
40351 | CleanUp 1 | |
40352 | exit 0 | |
40353 | EOF | |
40354 | ||
40355 | chmod +x dllar.sh | |
a848cd7e SC |
40356 | ;; |
40357 | ||
40358 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
40359 | *-*-sunos4* | \ | |
40360 | *-*-osf* | \ | |
40361 | *-*-dgux5* | \ | |
40362 | *-*-sysv5* ) | |
40363 | ;; | |
40364 | ||
40365 | *) | |
40366 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
40367 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
40368 | { (exit 1); exit 1; }; } | |
40369 | esac | |
40370 | ||
40371 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then | |
40372 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
40373 | fi | |
40374 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
40375 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
40376 | fi | |
40377 | ||
40378 | ||
40379 | ||
40380 | ||
40381 | ||
40382 | ||
40383 | ||
40384 | ||
40385 | USE_SOVERSION=0 | |
40386 | USE_SOVERLINUX=0 | |
40387 | USE_SOVERSOLARIS=0 | |
40388 | USE_SOSYMLINKS=0 | |
40389 | USE_MACVERSION=0 | |
40390 | SONAME_FLAG= | |
40391 | ||
40392 | case "${BAKEFILE_HOST}" in | |
40393 | *-*-linux* ) | |
40394 | SONAME_FLAG="-Wl,-soname," | |
40395 | USE_SOVERSION=1 | |
40396 | USE_SOVERLINUX=1 | |
40397 | USE_SOSYMLINKS=1 | |
40398 | ;; | |
40399 | ||
40400 | *-*-solaris2* ) | |
40401 | SONAME_FLAG="-h " | |
40402 | USE_SOVERSION=1 | |
40403 | USE_SOVERSOLARIS=1 | |
40404 | USE_SOSYMLINKS=1 | |
40405 | ;; | |
40406 | ||
40407 | *-*-darwin* ) | |
40408 | USE_MACVERSION=1 | |
40409 | USE_SOVERSION=1 | |
40410 | USE_SOSYMLINKS=1 | |
40411 | ;; | |
40412 | esac | |
40413 | ||
40414 | ||
40415 | ||
40416 | ||
40417 | ||
40418 | ||
40419 | ||
40420 | ||
40421 | ||
40422 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
40423 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
40424 | DEPS_TRACKING=0 | |
40425 | ||
40426 | if test "x$GCC" = "xyes"; then | |
40427 | DEPSMODE=gcc | |
40428 | DEPS_TRACKING=1 | |
40429 | case "${BAKEFILE_HOST}" in | |
40430 | powerpc-*-darwin* ) | |
40431 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
40432 | ;; | |
40433 | * ) | |
40434 | DEPSFLAG_GCC="-MMD" | |
40435 | ;; | |
40436 | esac | |
40437 | echo "$as_me:$LINENO: result: gcc" >&5 | |
40438 | echo "${ECHO_T}gcc" >&6 | |
40439 | else | |
40440 | echo "$as_me:$LINENO: result: none" >&5 | |
40441 | echo "${ECHO_T}none" >&6 | |
40442 | fi | |
40443 | ||
40444 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
40445 | |
40446 | D='$' | |
40447 | cat <<EOF >bk-deps | |
a848cd7e SC |
40448 | #!/bin/sh |
40449 | ||
40450 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40451 | # script. It is used to track C/C++ files dependencies in portable way. | |
40452 | # | |
40453 | # Permission is given to use this file in any way. | |
40454 | ||
473276a9 | 40455 | DEPSMODE=${DEPSMODE} |
a848cd7e | 40456 | DEPSDIR=.deps |
473276a9 | 40457 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 40458 | |
473276a9 | 40459 | mkdir -p ${D}DEPSDIR |
a848cd7e | 40460 | |
473276a9 VS |
40461 | if test ${D}DEPSMODE = gcc ; then |
40462 | ${D}* ${D}{DEPSFLAG_GCC} | |
40463 | status=${D}? | |
40464 | if test ${D}{status} != 0 ; then | |
40465 | exit ${D}{status} | |
a848cd7e SC |
40466 | fi |
40467 | # move created file to the location we want it in: | |
473276a9 VS |
40468 | while test ${D}# -gt 0; do |
40469 | case "${D}1" in | |
a848cd7e SC |
40470 | -o ) |
40471 | shift | |
473276a9 | 40472 | objfile=${D}1 |
a848cd7e SC |
40473 | ;; |
40474 | -* ) | |
40475 | ;; | |
40476 | * ) | |
473276a9 | 40477 | srcfile=${D}1 |
a848cd7e SC |
40478 | ;; |
40479 | esac | |
40480 | shift | |
40481 | done | |
473276a9 VS |
40482 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
40483 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
40484 | if test -f ${D}depfile ; then | |
40485 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
40486 | rm -f ${D}depfile | |
a848cd7e | 40487 | else |
473276a9 VS |
40488 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
40489 | if test -f ${D}depfile ; then | |
40490 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
40491 | rm -f ${D}depfile | |
a848cd7e SC |
40492 | fi |
40493 | fi | |
40494 | exit 0 | |
40495 | else | |
473276a9 VS |
40496 | ${D}* |
40497 | exit ${D}? | |
a848cd7e SC |
40498 | fi |
40499 | EOF | |
473276a9 | 40500 | |
a848cd7e SC |
40501 | chmod +x bk-deps |
40502 | fi | |
40503 | ||
40504 | ||
40505 | ||
40506 | ||
40507 | RESCOMP= | |
40508 | SETFILE= | |
40509 | ||
40510 | case ${BAKEFILE_HOST} in | |
40511 | *-*-cygwin* | *-*-mingw32* ) | |
40512 | if test "$build" != "$host" ; then | |
40513 | RESCOMP=$host_alias-windres | |
40514 | else | |
40515 | # Extract the first word of "windres", so it can be a program name with args. | |
40516 | set dummy windres; ac_word=$2 | |
40517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40519 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
40520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40521 | else | |
40522 | if test -n "$RESCOMP"; then | |
40523 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
40524 | else | |
40525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40526 | for as_dir in $PATH | |
40527 | do | |
40528 | IFS=$as_save_IFS | |
40529 | test -z "$as_dir" && as_dir=. | |
40530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40532 | ac_cv_prog_RESCOMP="windres" | |
40533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40534 | break 2 | |
40535 | fi | |
40536 | done | |
40537 | done | |
40538 | ||
40539 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
40540 | fi | |
40541 | fi | |
40542 | RESCOMP=$ac_cv_prog_RESCOMP | |
40543 | if test -n "$RESCOMP"; then | |
40544 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
40545 | echo "${ECHO_T}$RESCOMP" >&6 | |
40546 | else | |
40547 | echo "$as_me:$LINENO: result: no" >&5 | |
40548 | echo "${ECHO_T}no" >&6 | |
40549 | fi | |
40550 | ||
40551 | fi | |
40552 | ;; | |
40553 | ||
40554 | *-*-darwin* ) | |
40555 | # Extract the first word of "Rez", so it can be a program name with args. | |
40556 | set dummy Rez; ac_word=$2 | |
40557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40559 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
40560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40561 | else | |
40562 | if test -n "$RESCOMP"; then | |
40563 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
40564 | else | |
40565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40566 | for as_dir in $PATH | |
40567 | do | |
40568 | IFS=$as_save_IFS | |
40569 | test -z "$as_dir" && as_dir=. | |
40570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40572 | ac_cv_prog_RESCOMP="Rez" | |
40573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40574 | break 2 | |
40575 | fi | |
40576 | done | |
40577 | done | |
40578 | ||
40579 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
40580 | fi | |
40581 | fi | |
40582 | RESCOMP=$ac_cv_prog_RESCOMP | |
40583 | if test -n "$RESCOMP"; then | |
40584 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
40585 | echo "${ECHO_T}$RESCOMP" >&6 | |
40586 | else | |
40587 | echo "$as_me:$LINENO: result: no" >&5 | |
40588 | echo "${ECHO_T}no" >&6 | |
40589 | fi | |
40590 | ||
40591 | # Extract the first word of "SetFile", so it can be a program name with args. | |
40592 | set dummy SetFile; ac_word=$2 | |
40593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40595 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
40596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40597 | else | |
40598 | if test -n "$SETFILE"; then | |
40599 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
40600 | else | |
40601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40602 | for as_dir in $PATH | |
40603 | do | |
40604 | IFS=$as_save_IFS | |
40605 | test -z "$as_dir" && as_dir=. | |
40606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40608 | ac_cv_prog_SETFILE="SetFile" | |
40609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40610 | break 2 | |
40611 | fi | |
40612 | done | |
40613 | done | |
40614 | ||
40615 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
40616 | fi | |
40617 | fi | |
40618 | SETFILE=$ac_cv_prog_SETFILE | |
40619 | if test -n "$SETFILE"; then | |
40620 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
40621 | echo "${ECHO_T}$SETFILE" >&6 | |
40622 | else | |
40623 | echo "$as_me:$LINENO: result: no" >&5 | |
40624 | echo "${ECHO_T}no" >&6 | |
40625 | fi | |
40626 | ||
40627 | ;; | |
40628 | esac | |
40629 | ||
40630 | ||
40631 | ||
40632 | ||
40633 | ||
40634 | ||
dcc1b6ad VS |
40635 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
40636 | ||
40637 | ||
a848cd7e | 40638 | |
646b6ec1 | 40639 | |
a848cd7e SC |
40640 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
40641 | if test "${enable_precomp_headers+set}" = set; then | |
40642 | enableval="$enable_precomp_headers" | |
40643 | bk_use_pch="$enableval" | |
40644 | fi; | |
40645 | ||
40646 | GCC_PCH=0 | |
40647 | ||
40648 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
40649 | if test "x$GCC" = "xyes"; then | |
40650 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
40651 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
40652 | cat >conftest.$ac_ext <<_ACEOF | |
40653 | /* confdefs.h. */ | |
40654 | _ACEOF | |
40655 | cat confdefs.h >>conftest.$ac_ext | |
40656 | cat >>conftest.$ac_ext <<_ACEOF | |
40657 | /* end confdefs.h. */ | |
40658 | ||
40659 | int | |
40660 | main () | |
40661 | { | |
40662 | ||
40663 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
40664 | #error "no pch support" | |
40665 | #endif | |
40666 | #if (__GNUC__ < 3) | |
40667 | #error "no pch support" | |
40668 | #endif | |
40669 | #if (__GNUC__ == 3) && \ | |
40670 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
40671 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
40672 | #error "no pch support" | |
40673 | #endif | |
40674 | ||
40675 | ; | |
40676 | return 0; | |
40677 | } | |
40678 | _ACEOF | |
40679 | rm -f conftest.$ac_objext | |
40680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40681 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40682 | ac_status=$? |
ac1cb8d3 VS |
40683 | grep -v '^ *+' conftest.er1 >conftest.err |
40684 | rm -f conftest.er1 | |
40685 | cat conftest.err >&5 | |
a848cd7e SC |
40686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40687 | (exit $ac_status); } && | |
ac1cb8d3 VS |
40688 | { ac_try='test -z "$ac_c_werror_flag" |
40689 | || test ! -s conftest.err' | |
40690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40691 | (eval $ac_try) 2>&5 | |
40692 | ac_status=$? | |
40693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40694 | (exit $ac_status); }; } && | |
40695 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40697 | (eval $ac_try) 2>&5 | |
40698 | ac_status=$? | |
40699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40700 | (exit $ac_status); }; }; then | |
40701 | ||
40702 | echo "$as_me:$LINENO: result: yes" >&5 | |
40703 | echo "${ECHO_T}yes" >&6 | |
40704 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
40705 | GCC_PCH=1 | |
40706 | ||
40707 | else | |
40708 | echo "$as_me: failed program was:" >&5 | |
40709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40710 | ||
40711 | ||
40712 | echo "$as_me:$LINENO: result: no" >&5 | |
40713 | echo "${ECHO_T}no" >&6 | |
40714 | ||
40715 | fi | |
ac1cb8d3 | 40716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40717 | if test $GCC_PCH = 1 ; then |
40718 | cat <<EOF >bk-make-pch | |
40719 | #!/bin/sh | |
40720 | ||
40721 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40722 | # script. It is used to generated precompiled headers. | |
40723 | # | |
40724 | # Permission is given to use this file in any way. | |
40725 | ||
40726 | outfile="\${1}" | |
40727 | header="\${2}" | |
40728 | shift | |
40729 | shift | |
40730 | ||
40731 | compiler= | |
40732 | headerfile= | |
40733 | while test \${#} -gt 0; do | |
40734 | case "\${1}" in | |
40735 | -I* ) | |
40736 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
40737 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
40738 | headerfile="\${incdir}/\${header}" | |
40739 | fi | |
40740 | ;; | |
40741 | esac | |
40742 | compiler="\${compiler} \${1}" | |
40743 | shift | |
40744 | done | |
40745 | ||
40746 | if test "x\${headerfile}" = "x" ; then | |
40747 | echo "error: can't find header \${header} in include paths" >2 | |
40748 | else | |
40749 | if test -f \${outfile} ; then | |
40750 | rm -f \${outfile} | |
40751 | else | |
40752 | mkdir -p \`dirname \${outfile}\` | |
40753 | fi | |
40754 | depsfile=".deps/\`basename \${outfile}\`.d" | |
40755 | mkdir -p .deps | |
40756 | # can do this because gcc is >= 3.4: | |
40757 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
40758 | exit \${?} | |
40759 | fi | |
40760 | EOF | |
40761 | chmod +x bk-make-pch | |
40762 | fi | |
40763 | fi | |
40764 | fi | |
40765 | ||
40766 | ||
40767 | ||
40768 | ||
40769 | ||
dcc1b6ad VS |
40770 | |
40771 | ||
40772 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
40773 | if test "${enable_precomp_headers+set}" = set; then | |
40774 | enableval="$enable_precomp_headers" | |
40775 | bk_use_pch="$enableval" | |
40776 | fi; | |
40777 | ||
40778 | GCC_PCH=0 | |
40779 | ||
40780 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
40781 | if test "x$GCC" = "xyes"; then | |
40782 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
40783 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
40784 | cat >conftest.$ac_ext <<_ACEOF | |
40785 | /* confdefs.h. */ | |
40786 | _ACEOF | |
40787 | cat confdefs.h >>conftest.$ac_ext | |
40788 | cat >>conftest.$ac_ext <<_ACEOF | |
40789 | /* end confdefs.h. */ | |
40790 | ||
40791 | int | |
40792 | main () | |
40793 | { | |
40794 | ||
40795 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
40796 | #error "no pch support" | |
40797 | #endif | |
40798 | #if (__GNUC__ < 3) | |
40799 | #error "no pch support" | |
40800 | #endif | |
40801 | #if (__GNUC__ == 3) && \ | |
40802 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
40803 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
40804 | #error "no pch support" | |
40805 | #endif | |
40806 | ||
40807 | ; | |
40808 | return 0; | |
40809 | } | |
40810 | _ACEOF | |
40811 | rm -f conftest.$ac_objext | |
40812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40813 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 40814 | ac_status=$? |
ac1cb8d3 VS |
40815 | grep -v '^ *+' conftest.er1 >conftest.err |
40816 | rm -f conftest.er1 | |
40817 | cat conftest.err >&5 | |
dcc1b6ad VS |
40818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40819 | (exit $ac_status); } && | |
ac1cb8d3 VS |
40820 | { ac_try='test -z "$ac_c_werror_flag" |
40821 | || test ! -s conftest.err' | |
40822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40823 | (eval $ac_try) 2>&5 | |
40824 | ac_status=$? | |
40825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40826 | (exit $ac_status); }; } && | |
40827 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
40828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40829 | (eval $ac_try) 2>&5 | |
40830 | ac_status=$? | |
40831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40832 | (exit $ac_status); }; }; then | |
40833 | ||
40834 | echo "$as_me:$LINENO: result: yes" >&5 | |
40835 | echo "${ECHO_T}yes" >&6 | |
40836 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
40837 | GCC_PCH=1 | |
40838 | ||
40839 | else | |
40840 | echo "$as_me: failed program was:" >&5 | |
40841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40842 | ||
40843 | ||
40844 | echo "$as_me:$LINENO: result: no" >&5 | |
40845 | echo "${ECHO_T}no" >&6 | |
40846 | ||
40847 | fi | |
ac1cb8d3 | 40848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
40849 | if test $GCC_PCH = 1 ; then |
40850 | cat <<EOF >bk-make-pch | |
40851 | #!/bin/sh | |
40852 | ||
40853 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40854 | # script. It is used to generated precompiled headers. | |
40855 | # | |
40856 | # Permission is given to use this file in any way. | |
40857 | ||
40858 | outfile="\${1}" | |
40859 | header="\${2}" | |
40860 | shift | |
40861 | shift | |
40862 | ||
40863 | compiler= | |
40864 | headerfile= | |
40865 | while test \${#} -gt 0; do | |
40866 | case "\${1}" in | |
40867 | -I* ) | |
40868 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
40869 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
40870 | headerfile="\${incdir}/\${header}" | |
40871 | fi | |
40872 | ;; | |
40873 | esac | |
40874 | compiler="\${compiler} \${1}" | |
40875 | shift | |
40876 | done | |
40877 | ||
40878 | if test "x\${headerfile}" = "x" ; then | |
40879 | echo "error: can't find header \${header} in include paths" >2 | |
40880 | else | |
40881 | if test -f \${outfile} ; then | |
40882 | rm -f \${outfile} | |
40883 | else | |
40884 | mkdir -p \`dirname \${outfile}\` | |
40885 | fi | |
40886 | depsfile=".deps/\`basename \${outfile}\`.d" | |
40887 | mkdir -p .deps | |
40888 | # can do this because gcc is >= 3.4: | |
40889 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
40890 | exit \${?} | |
40891 | fi | |
40892 | EOF | |
40893 | chmod +x bk-make-pch | |
40894 | fi | |
40895 | fi | |
40896 | fi | |
40897 | ||
40898 | ||
40899 | ||
40900 | ||
a848cd7e SC |
40901 | COND_BUILD_DEBUG="#" |
40902 | if test "x$BUILD" = "xdebug" ; then | |
40903 | COND_BUILD_DEBUG="" | |
40904 | fi | |
40905 | ||
40906 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40907 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40908 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40909 | fi | |
40910 | ||
40911 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40912 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40913 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40914 | fi | |
40915 | ||
40916 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40917 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40918 | COND_BUILD_DEBUG_UNICODE_0="" | |
40919 | fi | |
40920 | ||
40921 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40922 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40923 | COND_BUILD_DEBUG_UNICODE_1="" | |
40924 | fi | |
40925 | ||
40926 | COND_BUILD_RELEASE="#" | |
40927 | if test "x$BUILD" = "xrelease" ; then | |
40928 | COND_BUILD_RELEASE="" | |
40929 | fi | |
40930 | ||
40931 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40932 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40933 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40934 | fi | |
40935 | ||
40936 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40937 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40938 | COND_BUILD_RELEASE_UNICODE_0="" | |
40939 | fi | |
40940 | ||
40941 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40942 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40943 | COND_BUILD_RELEASE_UNICODE_1="" | |
40944 | fi | |
40945 | ||
40946 | COND_DEBUG_FLAG_1="#" | |
40947 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40948 | COND_DEBUG_FLAG_1="" | |
40949 | fi | |
40950 | ||
40951 | COND_DEBUG_INFO_0="#" | |
40952 | if test "x$DEBUG_INFO" = "x0" ; then | |
40953 | COND_DEBUG_INFO_0="" | |
40954 | fi | |
40955 | ||
40956 | COND_DEBUG_INFO_1="#" | |
40957 | if test "x$DEBUG_INFO" = "x1" ; then | |
40958 | COND_DEBUG_INFO_1="" | |
40959 | fi | |
40960 | ||
40961 | COND_DEPS_TRACKING_0="#" | |
40962 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40963 | COND_DEPS_TRACKING_0="" | |
40964 | fi | |
40965 | ||
40966 | COND_DEPS_TRACKING_1="#" | |
40967 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40968 | COND_DEPS_TRACKING_1="" | |
40969 | fi | |
40970 | ||
40971 | COND_GCC_PCH_1="#" | |
40972 | if test "x$GCC_PCH" = "x1" ; then | |
40973 | COND_GCC_PCH_1="" | |
40974 | fi | |
40975 | ||
40976 | COND_MONOLITHIC_0="#" | |
40977 | if test "x$MONOLITHIC" = "x0" ; then | |
40978 | COND_MONOLITHIC_0="" | |
40979 | fi | |
40980 | ||
40981 | COND_MONOLITHIC_0_SHARED_0="#" | |
40982 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40983 | COND_MONOLITHIC_0_SHARED_0="" | |
40984 | fi | |
40985 | ||
40986 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40987 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40988 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40989 | fi | |
40990 | ||
40991 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40992 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40993 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40994 | fi | |
40995 | ||
40996 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40997 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40998 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40999 | fi | |
41000 | ||
41001 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
41002 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41003 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
41004 | fi | |
41005 | ||
41006 | COND_MONOLITHIC_0_SHARED_1="#" | |
41007 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
41008 | COND_MONOLITHIC_0_SHARED_1="" | |
41009 | fi | |
41010 | ||
41011 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
41012 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41013 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
41014 | fi | |
41015 | ||
41016 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
41017 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41018 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
41019 | fi | |
41020 | ||
41021 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
41022 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41023 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
41024 | fi | |
41025 | ||
41026 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
41027 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41028 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
41029 | fi | |
41030 | ||
41031 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
41032 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41033 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
41034 | fi | |
41035 | ||
41036 | COND_MONOLITHIC_1="#" | |
41037 | if test "x$MONOLITHIC" = "x1" ; then | |
41038 | COND_MONOLITHIC_1="" | |
41039 | fi | |
41040 | ||
41041 | COND_MONOLITHIC_1_SHARED_0="#" | |
41042 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
41043 | COND_MONOLITHIC_1_SHARED_0="" | |
41044 | fi | |
41045 | ||
41046 | COND_MONOLITHIC_1_SHARED_1="#" | |
41047 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
41048 | COND_MONOLITHIC_1_SHARED_1="" | |
41049 | fi | |
41050 | ||
41051 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
41052 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41053 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
41054 | fi | |
41055 | ||
41056 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
41057 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41058 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
41059 | fi | |
41060 | ||
41061 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
41062 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
41063 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
41064 | fi | |
41065 | ||
41066 | COND_PLATFORM_MACOSX_1="#" | |
41067 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
41068 | COND_PLATFORM_MACOSX_1="" | |
41069 | fi | |
41070 | ||
41071 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
41072 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
41073 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
41074 | fi | |
41075 | ||
41076 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
41077 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
41078 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
41079 | fi | |
41080 | ||
41081 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
41082 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
41083 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
41084 | fi | |
41085 | ||
41086 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
41087 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41088 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
41089 | fi | |
41090 | ||
41091 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
41092 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
41093 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
41094 | fi | |
41095 | ||
41096 | COND_PLATFORM_MAC_1="#" | |
41097 | if test "x$PLATFORM_MAC" = "x1" ; then | |
41098 | COND_PLATFORM_MAC_1="" | |
41099 | fi | |
41100 | ||
41101 | COND_PLATFORM_OS2_1="#" | |
41102 | if test "x$PLATFORM_OS2" = "x1" ; then | |
41103 | COND_PLATFORM_OS2_1="" | |
41104 | fi | |
41105 | ||
41106 | COND_PLATFORM_UNIX_0="#" | |
41107 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
41108 | COND_PLATFORM_UNIX_0="" | |
41109 | fi | |
41110 | ||
41111 | COND_PLATFORM_UNIX_1="#" | |
41112 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
41113 | COND_PLATFORM_UNIX_1="" | |
41114 | fi | |
41115 | ||
41116 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
41117 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41118 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
41119 | fi | |
41120 | ||
41121 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
41122 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
41123 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
41124 | fi | |
41125 | ||
41126 | COND_PLATFORM_WIN32_0="#" | |
41127 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
41128 | COND_PLATFORM_WIN32_0="" | |
41129 | fi | |
41130 | ||
41131 | COND_PLATFORM_WIN32_1="#" | |
41132 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
41133 | COND_PLATFORM_WIN32_1="" | |
41134 | fi | |
41135 | ||
41136 | COND_SHARED_0="#" | |
41137 | if test "x$SHARED" = "x0" ; then | |
41138 | COND_SHARED_0="" | |
41139 | fi | |
41140 | ||
41141 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
41142 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41143 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
41144 | fi | |
41145 | ||
41146 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41147 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41148 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41149 | fi | |
41150 | ||
41151 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41152 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41153 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41154 | fi | |
41155 | ||
41156 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41157 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41158 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41159 | fi | |
41160 | ||
41161 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
41162 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41163 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
41164 | fi | |
41165 | ||
41166 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
41167 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41168 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
41169 | fi | |
41170 | ||
41171 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
41172 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41173 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
41174 | fi | |
41175 | ||
41176 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
41177 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41178 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
41179 | fi | |
41180 | ||
41181 | COND_SHARED_1="#" | |
41182 | if test "x$SHARED" = "x1" ; then | |
41183 | COND_SHARED_1="" | |
41184 | fi | |
41185 | ||
41186 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
41187 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41188 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
41189 | fi | |
41190 | ||
41191 | COND_TOOLKIT_COCOA="#" | |
41192 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
41193 | COND_TOOLKIT_COCOA="" | |
41194 | fi | |
41195 | ||
41196 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
41197 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41198 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
41199 | fi | |
41200 | ||
41201 | COND_TOOLKIT_GTK="#" | |
41202 | if test "x$TOOLKIT" = "xGTK" ; then | |
41203 | COND_TOOLKIT_GTK="" | |
41204 | fi | |
41205 | ||
41206 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
41207 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
41208 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
41209 | fi | |
41210 | ||
41211 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
41212 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41213 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
41214 | fi | |
41215 | ||
41216 | COND_TOOLKIT_MAC="#" | |
41217 | if test "x$TOOLKIT" = "xMAC" ; then | |
41218 | COND_TOOLKIT_MAC="" | |
41219 | fi | |
41220 | ||
41221 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
41222 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41223 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
41224 | fi | |
41225 | ||
41226 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
41227 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41228 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41229 | fi | |
41230 | ||
41231 | COND_TOOLKIT_MGL="#" | |
41232 | if test "x$TOOLKIT" = "xMGL" ; then | |
41233 | COND_TOOLKIT_MGL="" | |
41234 | fi | |
41235 | ||
41236 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
41237 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
41238 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
41239 | fi | |
41240 | ||
41241 | COND_TOOLKIT_MOTIF="#" | |
41242 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
41243 | COND_TOOLKIT_MOTIF="" | |
41244 | fi | |
41245 | ||
41246 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
41247 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
41248 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
41249 | fi | |
41250 | ||
41251 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
41252 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41253 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
41254 | fi | |
41255 | ||
41256 | COND_TOOLKIT_MSW="#" | |
41257 | if test "x$TOOLKIT" = "xMSW" ; then | |
41258 | COND_TOOLKIT_MSW="" | |
41259 | fi | |
41260 | ||
41261 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
41262 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
41263 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
41264 | fi | |
41265 | ||
41266 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
41267 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41268 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
41269 | fi | |
41270 | ||
41271 | COND_TOOLKIT_PM="#" | |
41272 | if test "x$TOOLKIT" = "xPM" ; then | |
41273 | COND_TOOLKIT_PM="" | |
41274 | fi | |
41275 | ||
41276 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
41277 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
41278 | COND_TOOLKIT_PM_USE_GUI_1="" | |
41279 | fi | |
41280 | ||
41281 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
41282 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41283 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
41284 | fi | |
41285 | ||
3fd9c298 DE |
41286 | COND_TOOLKIT_WINCE="#" |
41287 | if test "x$TOOLKIT" = "xWINCE" ; then | |
41288 | COND_TOOLKIT_WINCE="" | |
41289 | fi | |
41290 | ||
41291 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
41292 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
41293 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
41294 | fi | |
41295 | ||
41296 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
41297 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41298 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
41299 | fi | |
41300 | ||
a848cd7e SC |
41301 | COND_TOOLKIT_X11="#" |
41302 | if test "x$TOOLKIT" = "xX11" ; then | |
41303 | COND_TOOLKIT_X11="" | |
41304 | fi | |
41305 | ||
41306 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
41307 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
41308 | COND_TOOLKIT_X11_USE_GUI_1="" | |
41309 | fi | |
41310 | ||
41311 | COND_UNICODE_1="#" | |
41312 | if test "x$UNICODE" = "x1" ; then | |
41313 | COND_UNICODE_1="" | |
41314 | fi | |
41315 | ||
41316 | COND_USE_EXCEPTIONS_0="#" | |
41317 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
41318 | COND_USE_EXCEPTIONS_0="" | |
41319 | fi | |
41320 | ||
41321 | COND_USE_EXCEPTIONS_1="#" | |
41322 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
41323 | COND_USE_EXCEPTIONS_1="" | |
41324 | fi | |
41325 | ||
41326 | COND_USE_GUI_0="#" | |
41327 | if test "x$USE_GUI" = "x0" ; then | |
41328 | COND_USE_GUI_0="" | |
41329 | fi | |
41330 | ||
41331 | COND_USE_GUI_1="#" | |
41332 | if test "x$USE_GUI" = "x1" ; then | |
41333 | COND_USE_GUI_1="" | |
41334 | fi | |
41335 | ||
41336 | COND_USE_GUI_1_WXUNIV_0="#" | |
41337 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41338 | COND_USE_GUI_1_WXUNIV_0="" | |
41339 | fi | |
41340 | ||
41341 | COND_USE_GUI_1_WXUNIV_1="#" | |
41342 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
41343 | COND_USE_GUI_1_WXUNIV_1="" | |
41344 | fi | |
41345 | ||
41346 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41347 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41348 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41349 | fi | |
41350 | ||
41351 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41352 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41353 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41354 | fi | |
41355 | ||
41356 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41357 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41358 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41359 | fi | |
41360 | ||
41361 | COND_USE_ODBC_1="#" | |
41362 | if test "x$USE_ODBC" = "x1" ; then | |
41363 | COND_USE_ODBC_1="" | |
41364 | fi | |
41365 | ||
41366 | COND_USE_PLUGINS_0="#" | |
41367 | if test "x$USE_PLUGINS" = "x0" ; then | |
41368 | COND_USE_PLUGINS_0="" | |
41369 | fi | |
41370 | ||
41371 | COND_USE_SOSYMLINKS_1="#" | |
41372 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
41373 | COND_USE_SOSYMLINKS_1="" | |
41374 | fi | |
41375 | ||
41376 | COND_USE_SOVERLINUX_1="#" | |
41377 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
41378 | COND_USE_SOVERLINUX_1="" | |
41379 | fi | |
41380 | ||
41381 | COND_USE_SOVERSION_0="#" | |
41382 | if test "x$USE_SOVERSION" = "x0" ; then | |
41383 | COND_USE_SOVERSION_0="" | |
41384 | fi | |
41385 | ||
41386 | COND_USE_SOVERSOLARIS_1="#" | |
41387 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41388 | COND_USE_SOVERSOLARIS_1="" | |
41389 | fi | |
41390 | ||
41391 | COND_WITH_PLUGIN_SDL_1="#" | |
41392 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41393 | COND_WITH_PLUGIN_SDL_1="" | |
41394 | fi | |
41395 | ||
41396 | COND_WITH_SDL_1="#" | |
41397 | if test "x$WITH_SDL" = "x1" ; then | |
41398 | COND_WITH_SDL_1="" | |
41399 | fi | |
41400 | ||
41401 | COND_WXUNIV_1="#" | |
41402 | if test "x$WXUNIV" = "x1" ; then | |
41403 | COND_WXUNIV_1="" | |
41404 | fi | |
41405 | ||
41406 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41407 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41408 | COND_WXUSE_EXPAT_BUILTIN="" | |
41409 | fi | |
41410 | ||
41411 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41412 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41413 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41414 | fi | |
41415 | ||
41416 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41417 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41418 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41419 | fi | |
41420 | ||
41421 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41422 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41423 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41424 | fi | |
41425 | ||
41426 | COND_WXUSE_ODBC_BUILTIN="#" | |
41427 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41428 | COND_WXUSE_ODBC_BUILTIN="" | |
41429 | fi | |
41430 | ||
41431 | COND_WXUSE_REGEX_BUILTIN="#" | |
41432 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41433 | COND_WXUSE_REGEX_BUILTIN="" | |
41434 | fi | |
41435 | ||
41436 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41437 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41438 | COND_WXUSE_ZLIB_BUILTIN="" | |
41439 | fi | |
41440 | ||
dcc1b6ad VS |
41441 | COND_BUILD_DEBUG="#" |
41442 | if test "x$BUILD" = "xdebug" ; then | |
41443 | COND_BUILD_DEBUG="" | |
41444 | fi | |
41445 | ||
41446 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
41447 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
41448 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
41449 | fi | |
41450 | ||
41451 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
41452 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41453 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
41454 | fi | |
41455 | ||
41456 | COND_BUILD_DEBUG_UNICODE_0="#" | |
41457 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
41458 | COND_BUILD_DEBUG_UNICODE_0="" | |
41459 | fi | |
41460 | ||
41461 | COND_BUILD_DEBUG_UNICODE_1="#" | |
41462 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
41463 | COND_BUILD_DEBUG_UNICODE_1="" | |
41464 | fi | |
41465 | ||
41466 | COND_BUILD_RELEASE="#" | |
41467 | if test "x$BUILD" = "xrelease" ; then | |
41468 | COND_BUILD_RELEASE="" | |
41469 | fi | |
41470 | ||
41471 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
41472 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41473 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
41474 | fi | |
41475 | ||
41476 | COND_BUILD_RELEASE_UNICODE_0="#" | |
41477 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
41478 | COND_BUILD_RELEASE_UNICODE_0="" | |
41479 | fi | |
41480 | ||
41481 | COND_BUILD_RELEASE_UNICODE_1="#" | |
41482 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
41483 | COND_BUILD_RELEASE_UNICODE_1="" | |
41484 | fi | |
41485 | ||
41486 | COND_DEBUG_FLAG_1="#" | |
41487 | if test "x$DEBUG_FLAG" = "x1" ; then | |
41488 | COND_DEBUG_FLAG_1="" | |
41489 | fi | |
41490 | ||
41491 | COND_DEBUG_INFO_0="#" | |
41492 | if test "x$DEBUG_INFO" = "x0" ; then | |
41493 | COND_DEBUG_INFO_0="" | |
41494 | fi | |
41495 | ||
41496 | COND_DEBUG_INFO_1="#" | |
41497 | if test "x$DEBUG_INFO" = "x1" ; then | |
41498 | COND_DEBUG_INFO_1="" | |
41499 | fi | |
41500 | ||
41501 | COND_DEPS_TRACKING_0="#" | |
41502 | if test "x$DEPS_TRACKING" = "x0" ; then | |
41503 | COND_DEPS_TRACKING_0="" | |
41504 | fi | |
41505 | ||
41506 | COND_DEPS_TRACKING_1="#" | |
41507 | if test "x$DEPS_TRACKING" = "x1" ; then | |
41508 | COND_DEPS_TRACKING_1="" | |
41509 | fi | |
41510 | ||
41511 | COND_GCC_PCH_1="#" | |
41512 | if test "x$GCC_PCH" = "x1" ; then | |
41513 | COND_GCC_PCH_1="" | |
41514 | fi | |
41515 | ||
41516 | COND_MONOLITHIC_0="#" | |
41517 | if test "x$MONOLITHIC" = "x0" ; then | |
41518 | COND_MONOLITHIC_0="" | |
41519 | fi | |
41520 | ||
41521 | COND_MONOLITHIC_0_SHARED_0="#" | |
41522 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
41523 | COND_MONOLITHIC_0_SHARED_0="" | |
41524 | fi | |
41525 | ||
41526 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
41527 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
41528 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
41529 | fi | |
41530 | ||
41531 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
41532 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41533 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
41534 | fi | |
41535 | ||
41536 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
41537 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
41538 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
41539 | fi | |
41540 | ||
41541 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
41542 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41543 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
41544 | fi | |
41545 | ||
41546 | COND_MONOLITHIC_0_SHARED_1="#" | |
41547 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
41548 | COND_MONOLITHIC_0_SHARED_1="" | |
41549 | fi | |
41550 | ||
41551 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
41552 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41553 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
41554 | fi | |
41555 | ||
41556 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
41557 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41558 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
41559 | fi | |
41560 | ||
41561 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
41562 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41563 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
41564 | fi | |
41565 | ||
41566 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
41567 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41568 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
41569 | fi | |
41570 | ||
41571 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
41572 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41573 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
41574 | fi | |
41575 | ||
41576 | COND_MONOLITHIC_1="#" | |
41577 | if test "x$MONOLITHIC" = "x1" ; then | |
41578 | COND_MONOLITHIC_1="" | |
41579 | fi | |
41580 | ||
41581 | COND_MONOLITHIC_1_SHARED_0="#" | |
41582 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
41583 | COND_MONOLITHIC_1_SHARED_0="" | |
41584 | fi | |
41585 | ||
41586 | COND_MONOLITHIC_1_SHARED_1="#" | |
41587 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
41588 | COND_MONOLITHIC_1_SHARED_1="" | |
41589 | fi | |
41590 | ||
41591 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
41592 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41593 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
41594 | fi | |
41595 | ||
41596 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
41597 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41598 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
41599 | fi | |
41600 | ||
41601 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
41602 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
41603 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
41604 | fi | |
41605 | ||
41606 | COND_PLATFORM_MACOSX_1="#" | |
41607 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
41608 | COND_PLATFORM_MACOSX_1="" | |
41609 | fi | |
41610 | ||
41611 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
41612 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
41613 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
41614 | fi | |
41615 | ||
41616 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
41617 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
41618 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
41619 | fi | |
41620 | ||
41621 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
41622 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
41623 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
41624 | fi | |
41625 | ||
41626 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
41627 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41628 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
41629 | fi | |
41630 | ||
41631 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
41632 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
41633 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
41634 | fi | |
41635 | ||
41636 | COND_PLATFORM_MAC_1="#" | |
41637 | if test "x$PLATFORM_MAC" = "x1" ; then | |
41638 | COND_PLATFORM_MAC_1="" | |
41639 | fi | |
41640 | ||
41641 | COND_PLATFORM_OS2_1="#" | |
41642 | if test "x$PLATFORM_OS2" = "x1" ; then | |
41643 | COND_PLATFORM_OS2_1="" | |
41644 | fi | |
41645 | ||
41646 | COND_PLATFORM_UNIX_0="#" | |
41647 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
41648 | COND_PLATFORM_UNIX_0="" | |
41649 | fi | |
41650 | ||
41651 | COND_PLATFORM_UNIX_1="#" | |
41652 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
41653 | COND_PLATFORM_UNIX_1="" | |
41654 | fi | |
41655 | ||
41656 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
41657 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41658 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
41659 | fi | |
41660 | ||
41661 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
41662 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
41663 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
41664 | fi | |
41665 | ||
41666 | COND_PLATFORM_WIN32_0="#" | |
41667 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
41668 | COND_PLATFORM_WIN32_0="" | |
41669 | fi | |
41670 | ||
41671 | COND_PLATFORM_WIN32_1="#" | |
41672 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
41673 | COND_PLATFORM_WIN32_1="" | |
41674 | fi | |
41675 | ||
41676 | COND_SHARED_0="#" | |
41677 | if test "x$SHARED" = "x0" ; then | |
41678 | COND_SHARED_0="" | |
41679 | fi | |
41680 | ||
41681 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
41682 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41683 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
41684 | fi | |
41685 | ||
41686 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41687 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41688 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41689 | fi | |
41690 | ||
41691 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41692 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41693 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41694 | fi | |
41695 | ||
41696 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41697 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41698 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41699 | fi | |
41700 | ||
41701 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
41702 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41703 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
41704 | fi | |
41705 | ||
41706 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
41707 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41708 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
41709 | fi | |
41710 | ||
41711 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
41712 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41713 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
41714 | fi | |
41715 | ||
41716 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
41717 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41718 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
41719 | fi | |
41720 | ||
41721 | COND_SHARED_1="#" | |
41722 | if test "x$SHARED" = "x1" ; then | |
41723 | COND_SHARED_1="" | |
41724 | fi | |
41725 | ||
41726 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
41727 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41728 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
41729 | fi | |
41730 | ||
41731 | COND_TOOLKIT_COCOA="#" | |
41732 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
41733 | COND_TOOLKIT_COCOA="" | |
41734 | fi | |
41735 | ||
41736 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
41737 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41738 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
41739 | fi | |
41740 | ||
41741 | COND_TOOLKIT_GTK="#" | |
41742 | if test "x$TOOLKIT" = "xGTK" ; then | |
41743 | COND_TOOLKIT_GTK="" | |
41744 | fi | |
41745 | ||
41746 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
41747 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
41748 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
41749 | fi | |
41750 | ||
41751 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
41752 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41753 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
41754 | fi | |
41755 | ||
41756 | COND_TOOLKIT_MAC="#" | |
41757 | if test "x$TOOLKIT" = "xMAC" ; then | |
41758 | COND_TOOLKIT_MAC="" | |
41759 | fi | |
41760 | ||
41761 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
41762 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41763 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
41764 | fi | |
41765 | ||
41766 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
41767 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41768 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41769 | fi | |
41770 | ||
41771 | COND_TOOLKIT_MGL="#" | |
41772 | if test "x$TOOLKIT" = "xMGL" ; then | |
41773 | COND_TOOLKIT_MGL="" | |
41774 | fi | |
41775 | ||
41776 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
41777 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
41778 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
41779 | fi | |
41780 | ||
41781 | COND_TOOLKIT_MOTIF="#" | |
41782 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
41783 | COND_TOOLKIT_MOTIF="" | |
41784 | fi | |
41785 | ||
41786 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
41787 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
41788 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
41789 | fi | |
41790 | ||
41791 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
41792 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41793 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
41794 | fi | |
41795 | ||
41796 | COND_TOOLKIT_MSW="#" | |
41797 | if test "x$TOOLKIT" = "xMSW" ; then | |
41798 | COND_TOOLKIT_MSW="" | |
41799 | fi | |
41800 | ||
41801 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
41802 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
41803 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
41804 | fi | |
41805 | ||
41806 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
41807 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41808 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
41809 | fi | |
41810 | ||
41811 | COND_TOOLKIT_PM="#" | |
41812 | if test "x$TOOLKIT" = "xPM" ; then | |
41813 | COND_TOOLKIT_PM="" | |
41814 | fi | |
41815 | ||
41816 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
41817 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
41818 | COND_TOOLKIT_PM_USE_GUI_1="" | |
41819 | fi | |
41820 | ||
41821 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
41822 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41823 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
41824 | fi | |
41825 | ||
41826 | COND_TOOLKIT_WINCE="#" | |
41827 | if test "x$TOOLKIT" = "xWINCE" ; then | |
41828 | COND_TOOLKIT_WINCE="" | |
41829 | fi | |
41830 | ||
41831 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
41832 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
41833 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
41834 | fi | |
41835 | ||
41836 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
41837 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41838 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
41839 | fi | |
41840 | ||
41841 | COND_TOOLKIT_X11="#" | |
41842 | if test "x$TOOLKIT" = "xX11" ; then | |
41843 | COND_TOOLKIT_X11="" | |
41844 | fi | |
41845 | ||
41846 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
41847 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
41848 | COND_TOOLKIT_X11_USE_GUI_1="" | |
41849 | fi | |
41850 | ||
41851 | COND_UNICODE_1="#" | |
41852 | if test "x$UNICODE" = "x1" ; then | |
41853 | COND_UNICODE_1="" | |
41854 | fi | |
41855 | ||
41856 | COND_USE_EXCEPTIONS_0="#" | |
41857 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
41858 | COND_USE_EXCEPTIONS_0="" | |
41859 | fi | |
41860 | ||
41861 | COND_USE_EXCEPTIONS_1="#" | |
41862 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
41863 | COND_USE_EXCEPTIONS_1="" | |
41864 | fi | |
41865 | ||
41866 | COND_USE_GUI_0="#" | |
41867 | if test "x$USE_GUI" = "x0" ; then | |
41868 | COND_USE_GUI_0="" | |
41869 | fi | |
41870 | ||
41871 | COND_USE_GUI_1="#" | |
41872 | if test "x$USE_GUI" = "x1" ; then | |
41873 | COND_USE_GUI_1="" | |
41874 | fi | |
41875 | ||
41876 | COND_USE_GUI_1_WXUNIV_0="#" | |
41877 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41878 | COND_USE_GUI_1_WXUNIV_0="" | |
41879 | fi | |
41880 | ||
41881 | COND_USE_GUI_1_WXUNIV_1="#" | |
41882 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
41883 | COND_USE_GUI_1_WXUNIV_1="" | |
41884 | fi | |
41885 | ||
41886 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41887 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41888 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41889 | fi | |
41890 | ||
41891 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41892 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41893 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41894 | fi | |
41895 | ||
41896 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41897 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41898 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41899 | fi | |
41900 | ||
41901 | COND_USE_ODBC_1="#" | |
41902 | if test "x$USE_ODBC" = "x1" ; then | |
41903 | COND_USE_ODBC_1="" | |
41904 | fi | |
41905 | ||
41906 | COND_USE_PLUGINS_0="#" | |
41907 | if test "x$USE_PLUGINS" = "x0" ; then | |
41908 | COND_USE_PLUGINS_0="" | |
41909 | fi | |
41910 | ||
41911 | COND_USE_SOSYMLINKS_1="#" | |
41912 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
41913 | COND_USE_SOSYMLINKS_1="" | |
41914 | fi | |
41915 | ||
41916 | COND_USE_SOVERLINUX_1="#" | |
41917 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
41918 | COND_USE_SOVERLINUX_1="" | |
41919 | fi | |
41920 | ||
41921 | COND_USE_SOVERSION_0="#" | |
41922 | if test "x$USE_SOVERSION" = "x0" ; then | |
41923 | COND_USE_SOVERSION_0="" | |
41924 | fi | |
41925 | ||
41926 | COND_USE_SOVERSOLARIS_1="#" | |
41927 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41928 | COND_USE_SOVERSOLARIS_1="" | |
41929 | fi | |
41930 | ||
41931 | COND_WITH_PLUGIN_SDL_1="#" | |
41932 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41933 | COND_WITH_PLUGIN_SDL_1="" | |
41934 | fi | |
41935 | ||
41936 | COND_WXUNIV_1="#" | |
41937 | if test "x$WXUNIV" = "x1" ; then | |
41938 | COND_WXUNIV_1="" | |
41939 | fi | |
41940 | ||
41941 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41942 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41943 | COND_WXUSE_EXPAT_BUILTIN="" | |
41944 | fi | |
41945 | ||
41946 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41947 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41948 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41949 | fi | |
41950 | ||
41951 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41952 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41953 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41954 | fi | |
41955 | ||
41956 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41957 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41958 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41959 | fi | |
41960 | ||
41961 | COND_WXUSE_ODBC_BUILTIN="#" | |
41962 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41963 | COND_WXUSE_ODBC_BUILTIN="" | |
41964 | fi | |
41965 | ||
41966 | COND_WXUSE_REGEX_BUILTIN="#" | |
41967 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41968 | COND_WXUSE_REGEX_BUILTIN="" | |
41969 | fi | |
41970 | ||
41971 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41972 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41973 | COND_WXUSE_ZLIB_BUILTIN="" | |
41974 | fi | |
41975 | ||
a848cd7e SC |
41976 | |
41977 | ||
41978 | ||
41979 | ||
41980 | if test $GCC_PCH = 1 ; then | |
41981 | CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS" | |
41982 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" | |
41983 | else | |
41984 | case "${host}" in | |
41985 | powerpc-*-darwin* ) | |
41986 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" | |
41987 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
41988 | ;; | |
bea8e651 | 41989 | *-*-mingw32* ) |
1f344abf VS |
41990 | if test "$wxUSE_STL" = "yes" -o \ |
41991 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
41992 | "$wxUSE_NO_RTTI" != "yes"; then | |
41993 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
41994 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
41995 | cat >conftest.$ac_ext <<_ACEOF |
41996 | /* confdefs.h. */ | |
41997 | _ACEOF | |
41998 | cat confdefs.h >>conftest.$ac_ext | |
41999 | cat >>conftest.$ac_ext <<_ACEOF | |
42000 | /* end confdefs.h. */ | |
42001 | ||
42002 | int | |
42003 | main () | |
42004 | { | |
1f344abf | 42005 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
42006 | #error "Not GCC 3.2 or greater" |
42007 | #endif | |
42008 | ||
42009 | ; | |
42010 | return 0; | |
42011 | } | |
42012 | _ACEOF | |
42013 | rm -f conftest.$ac_objext | |
42014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42015 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 42016 | ac_status=$? |
ac1cb8d3 VS |
42017 | grep -v '^ *+' conftest.er1 >conftest.err |
42018 | rm -f conftest.er1 | |
42019 | cat conftest.err >&5 | |
bea8e651 MB |
42020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42021 | (exit $ac_status); } && | |
ac1cb8d3 VS |
42022 | { ac_try='test -z "$ac_c_werror_flag" |
42023 | || test ! -s conftest.err' | |
42024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42025 | (eval $ac_try) 2>&5 | |
42026 | ac_status=$? | |
42027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42028 | (exit $ac_status); }; } && | |
42029 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
42030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42031 | (eval $ac_try) 2>&5 | |
42032 | ac_status=$? | |
42033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42034 | (exit $ac_status); }; }; then | |
42035 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" | |
42036 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
42037 | echo "$as_me:$LINENO: result: yes" >&5 | |
42038 | echo "${ECHO_T}yes" >&6 | |
42039 | else | |
42040 | echo "$as_me: failed program was:" >&5 | |
42041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42042 | ||
42043 | echo "$as_me:$LINENO: result: no" >&5 | |
42044 | echo "${ECHO_T}no" >&6 | |
42045 | fi | |
ac1cb8d3 | 42046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
42047 | fi |
42048 | ;; | |
a848cd7e SC |
42049 | esac |
42050 | fi | |
42051 | ||
42052 | ||
42053 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
42054 | ||
42055 | ||
42056 | ||
42057 | ||
42058 | ||
42059 | ||
42060 | ||
42061 | ||
42062 | ||
42063 | ||
42064 | ||
42065 | ||
42066 | ||
42067 | ||
42068 | ||
42069 | ||
42070 | ||
42071 | ||
42072 | ||
42073 | ||
42074 | ||
42075 | ||
42076 | ||
42077 | ||
42078 | ||
42079 | ||
42080 | ||
42081 | ||
42082 | ||
42083 | ||
42084 | ||
42085 | ||
42086 | ||
42087 | ||
42088 | ||
42089 | ||
42090 | ||
42091 | ||
42092 | ||
42093 | ||
42094 | ||
42095 | ||
42096 | ||
42097 | ||
42098 | ||
42099 | ||
42100 | ||
42101 | ||
42102 | ||
42103 | ||
42104 | ||
42105 | ||
42106 | ||
42107 | ||
42108 | ||
42109 | ||
42110 | ||
42111 | ||
42112 | ||
42113 | ||
42114 | ||
42115 | ||
42116 | ||
42117 | ||
42118 | ||
42119 | ||
42120 | ||
42121 | ||
42122 | ||
42123 | ||
42124 | ||
42125 | ||
42126 | ||
42127 | ||
42128 | ||
42129 | ||
42130 | ||
42131 | ||
42132 | ||
42133 | ||
42134 | ||
42135 | ||
42136 | ||
42137 | ||
42138 | ||
42139 | ||
42140 | ||
42141 | ||
42142 | ||
42143 | ||
42144 | ||
42145 | ||
42146 | ||
42147 | ||
42148 | ||
42149 | ||
42150 | ||
42151 | ||
42152 | ||
42153 | ||
42154 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
42155 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 42156 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
42157 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
42158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42159 | else | |
42160 | cat >conftest.make <<\_ACEOF | |
42161 | all: | |
42162 | @echo 'ac_maketemp="$(MAKE)"' | |
42163 | _ACEOF | |
42164 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
42165 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
42166 | if test -n "$ac_maketemp"; then | |
42167 | eval ac_cv_prog_make_${ac_make}_set=yes | |
42168 | else | |
42169 | eval ac_cv_prog_make_${ac_make}_set=no | |
42170 | fi | |
42171 | rm -f conftest.make | |
42172 | fi | |
42173 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
42174 | echo "$as_me:$LINENO: result: yes" >&5 | |
42175 | echo "${ECHO_T}yes" >&6 | |
42176 | SET_MAKE= | |
42177 | else | |
42178 | echo "$as_me:$LINENO: result: no" >&5 | |
42179 | echo "${ECHO_T}no" >&6 | |
42180 | SET_MAKE="MAKE=${MAKE-make}" | |
42181 | fi | |
42182 | ||
42183 | ||
42184 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
42185 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
42186 | fi | |
42187 | ||
42188 | ac_config_headers="$ac_config_headers setup.h" | |
42189 | ||
42190 | ||
42191 | ac_config_files="$ac_config_files wx-config version-script Makefile" | |
42192 | ||
42193 | ||
42194 | ac_config_commands="$ac_config_commands default" | |
42195 | ||
42196 | ||
42197 | ||
42198 | if test "$wxUSE_GUI" = "yes"; then | |
42199 | SUBDIRS="samples demos utils contrib" | |
42200 | else SUBDIRS="samples utils" | |
42201 | fi | |
42202 | ||
42203 | ||
42204 | ||
42205 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
42206 | if test "${with_cppunit_prefix+set}" = set; then | |
42207 | withval="$with_cppunit_prefix" | |
42208 | cppunit_config_prefix="$withval" | |
42209 | else | |
42210 | cppunit_config_prefix="" | |
42211 | fi; | |
42212 | ||
42213 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
42214 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
42215 | withval="$with_cppunit_exec_prefix" | |
42216 | cppunit_config_exec_prefix="$withval" | |
42217 | else | |
42218 | cppunit_config_exec_prefix="" | |
42219 | fi; | |
42220 | ||
42221 | if test x$cppunit_config_exec_prefix != x ; then | |
42222 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
42223 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42224 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
42225 | fi | |
42226 | fi | |
42227 | if test x$cppunit_config_prefix != x ; then | |
42228 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
42229 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42230 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
42231 | fi | |
42232 | fi | |
42233 | ||
42234 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
42235 | set dummy cppunit-config; ac_word=$2 | |
42236 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42238 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
42239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42240 | else | |
42241 | case $CPPUNIT_CONFIG in | |
42242 | [\\/]* | ?:[\\/]*) | |
42243 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
42244 | ;; | |
42245 | *) | |
42246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42247 | for as_dir in $PATH | |
42248 | do | |
42249 | IFS=$as_save_IFS | |
42250 | test -z "$as_dir" && as_dir=. | |
42251 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42253 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42255 | break 2 | |
42256 | fi | |
42257 | done | |
42258 | done | |
42259 | ||
42260 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
42261 | ;; | |
42262 | esac | |
42263 | fi | |
42264 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
42265 | ||
42266 | if test -n "$CPPUNIT_CONFIG"; then | |
42267 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
42268 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
42269 | else | |
42270 | echo "$as_me:$LINENO: result: no" >&5 | |
42271 | echo "${ECHO_T}no" >&6 | |
42272 | fi | |
42273 | ||
42274 | cppunit_version_min=1.8.0 | |
42275 | ||
42276 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
42277 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
42278 | no_cppunit="" | |
42279 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
42280 | no_cppunit=yes | |
c2218763 VS |
42281 | echo "$as_me:$LINENO: result: no" >&5 |
42282 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
42283 | else |
42284 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
42285 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
42286 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
42287 | ||
42288 | cppunit_major_version=`echo $cppunit_version | \ | |
42289 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42290 | cppunit_minor_version=`echo $cppunit_version | \ | |
42291 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42292 | cppunit_micro_version=`echo $cppunit_version | \ | |
42293 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42294 | ||
42295 | cppunit_major_min=`echo $cppunit_version_min | \ | |
42296 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42297 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
42298 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42299 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
42300 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42301 | ||
42302 | cppunit_version_proper=`expr \ | |
42303 | $cppunit_major_version \> $cppunit_major_min \| \ | |
42304 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42305 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
42306 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42307 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
42308 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
42309 | ||
42310 | if test "$cppunit_version_proper" = "1" ; then | |
42311 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
42312 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
42313 | else | |
42314 | echo "$as_me:$LINENO: result: no" >&5 | |
42315 | echo "${ECHO_T}no" >&6 | |
42316 | no_cppunit=yes | |
42317 | fi | |
42318 | fi | |
42319 | ||
42320 | if test "x$no_cppunit" = x ; then | |
c2218763 | 42321 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
42322 | else |
42323 | CPPUNIT_CFLAGS="" | |
42324 | CPPUNIT_LIBS="" | |
c2218763 | 42325 | : |
a848cd7e SC |
42326 | fi |
42327 | ||
42328 | ||
42329 | ||
42330 | ||
42331 | ||
42332 | for subdir in `echo $SUBDIRS`; do | |
42333 | if test -d ${srcdir}/${subdir} ; then | |
42334 | if test "$wxUSE_GUI" = "yes"; then | |
42335 | if test ${subdir} = "samples"; then | |
42336 | makefiles="samples/Makefile.in $makefiles" | |
42337 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
42338 | if test -d $srcdir/samples/$sample; then | |
42339 | makefiles="samples/$sample/Makefile.in $makefiles" | |
42340 | fi | |
42341 | done | |
42342 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
42343 | fi | |
42344 | else if test ${subdir} = "samples"; then | |
42345 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
42346 | elif test ${subdir} = "utils"; then | |
42347 | makefiles="utils/HelpGen/Makefile.in \ | |
42348 | utils/HelpGen/src/Makefile.in \ | |
42349 | utils/tex2rtf/Makefile.in \ | |
42350 | utils/tex2rtf/src/Makefile.in" | |
42351 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
42352 | fi | |
42353 | fi | |
42354 | ||
42355 | for mkin in $makefiles ; do | |
42356 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
42357 | ac_config_files="$ac_config_files $mk" | |
42358 | ||
42359 | done | |
42360 | fi | |
42361 | done | |
42362 | ||
42363 | ||
42364 | cat >confcache <<\_ACEOF | |
42365 | # This file is a shell script that caches the results of configure | |
42366 | # tests run on this system so they can be shared between configure | |
42367 | # scripts and configure runs, see configure's option --config-cache. | |
42368 | # It is not useful on other systems. If it contains results you don't | |
42369 | # want to keep, you may remove or edit it. | |
42370 | # | |
42371 | # config.status only pays attention to the cache file if you give it | |
42372 | # the --recheck option to rerun configure. | |
42373 | # | |
42374 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
42375 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
42376 | # following values. | |
42377 | ||
42378 | _ACEOF | |
42379 | ||
42380 | # The following way of writing the cache mishandles newlines in values, | |
42381 | # but we know of no workaround that is simple, portable, and efficient. | |
42382 | # So, don't put newlines in cache variables' values. | |
42383 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
42384 | # and sets the high bit in the cache file unless we assign to the vars. | |
42385 | { | |
42386 | (set) 2>&1 | | |
42387 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
42388 | *ac_space=\ *) | |
42389 | # `set' does not quote correctly, so add quotes (double-quote | |
42390 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
42391 | sed -n \ | |
ac1cb8d3 VS |
42392 | "s/'/'\\\\''/g; |
42393 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
42394 | ;; |
42395 | *) | |
42396 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
42397 | sed -n \ | |
ac1cb8d3 | 42398 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
42399 | ;; |
42400 | esac; | |
42401 | } | | |
42402 | sed ' | |
42403 | t clear | |
42404 | : clear | |
42405 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
42406 | t end | |
42407 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
42408 | : end' >>confcache | |
42409 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
42410 | if test -w $cache_file; then | |
42411 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
42412 | cat confcache >$cache_file | |
42413 | else | |
42414 | echo "not updating unwritable cache $cache_file" | |
42415 | fi | |
42416 | fi | |
42417 | rm -f confcache | |
42418 | ||
42419 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
42420 | # Let make expand exec_prefix. | |
42421 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
42422 | ||
42423 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
42424 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
42425 | # trailing colons and then remove the whole line if VPATH becomes empty | |
42426 | # (actually we leave an empty line to preserve line numbers). | |
42427 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 42428 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
42429 | s/:*\$(srcdir):*/:/; |
42430 | s/:*\${srcdir}:*/:/; | |
42431 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 42432 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 42433 | s/:*$//; |
ac1cb8d3 | 42434 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
42435 | }' |
42436 | fi | |
42437 | ||
42438 | DEFS=-DHAVE_CONFIG_H | |
42439 | ||
42440 | ac_libobjs= | |
42441 | ac_ltlibobjs= | |
42442 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
42443 | # 1. Remove the extension, and $U if already installed. | |
42444 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 42445 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
42446 | # 2. Add them. |
42447 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
42448 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
42449 | done | |
42450 | LIBOBJS=$ac_libobjs | |
42451 | ||
42452 | LTLIBOBJS=$ac_ltlibobjs | |
42453 | ||
42454 | ||
42455 | ||
42456 | : ${CONFIG_STATUS=./config.status} | |
42457 | ac_clean_files_save=$ac_clean_files | |
42458 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
42459 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
42460 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
42461 | cat >$CONFIG_STATUS <<_ACEOF | |
42462 | #! $SHELL | |
42463 | # Generated by $as_me. | |
42464 | # Run this file to recreate the current configuration. | |
42465 | # Compiler output produced by configure, useful for debugging | |
42466 | # configure, is in config.log if it exists. | |
42467 | ||
42468 | debug=false | |
42469 | ac_cs_recheck=false | |
42470 | ac_cs_silent=false | |
42471 | SHELL=\${CONFIG_SHELL-$SHELL} | |
42472 | _ACEOF | |
42473 | ||
42474 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42475 | ## --------------------- ## | |
42476 | ## M4sh Initialization. ## | |
42477 | ## --------------------- ## | |
42478 | ||
42479 | # Be Bourne compatible | |
42480 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
42481 | emulate sh | |
42482 | NULLCMD=: | |
42483 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
42484 | # is contrary to our usage. Disable this feature. | |
42485 | alias -g '${1+"$@"}'='"$@"' | |
42486 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
42487 | set -o posix | |
42488 | fi | |
ac1cb8d3 | 42489 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
42490 | |
42491 | # Support unset when possible. | |
ac1cb8d3 | 42492 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
42493 | as_unset=unset |
42494 | else | |
42495 | as_unset=false | |
42496 | fi | |
42497 | ||
42498 | ||
42499 | # Work around bugs in pre-3.0 UWIN ksh. | |
42500 | $as_unset ENV MAIL MAILPATH | |
42501 | PS1='$ ' | |
42502 | PS2='> ' | |
42503 | PS4='+ ' | |
42504 | ||
42505 | # NLS nuisances. | |
42506 | for as_var in \ | |
42507 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
42508 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42509 | LC_TELEPHONE LC_TIME | |
42510 | do | |
ac1cb8d3 | 42511 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
42512 | eval $as_var=C; export $as_var |
42513 | else | |
42514 | $as_unset $as_var | |
42515 | fi | |
42516 | done | |
42517 | ||
42518 | # Required to use basename. | |
42519 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42520 | as_expr=expr | |
42521 | else | |
42522 | as_expr=false | |
42523 | fi | |
42524 | ||
42525 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
42526 | as_basename=basename | |
42527 | else | |
42528 | as_basename=false | |
42529 | fi | |
42530 | ||
42531 | ||
42532 | # Name of the executable. | |
42533 | as_me=`$as_basename "$0" || | |
42534 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
42535 | X"$0" : 'X\(//\)$' \| \ | |
42536 | X"$0" : 'X\(/\)$' \| \ | |
42537 | . : '\(.\)' 2>/dev/null || | |
42538 | echo X/"$0" | | |
42539 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
42540 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
42541 | /^X\/\(\/\).*/{ s//\1/; q; } | |
42542 | s/.*/./; q'` | |
42543 | ||
42544 | ||
42545 | # PATH needs CR, and LINENO needs CR and PATH. | |
42546 | # Avoid depending upon Character Ranges. | |
42547 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
42548 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
42549 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
42550 | as_cr_digits='0123456789' | |
42551 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42552 | ||
42553 | # The user is always right. | |
42554 | if test "${PATH_SEPARATOR+set}" != set; then | |
42555 | echo "#! /bin/sh" >conf$$.sh | |
42556 | echo "exit 0" >>conf$$.sh | |
42557 | chmod +x conf$$.sh | |
42558 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
42559 | PATH_SEPARATOR=';' | |
42560 | else | |
42561 | PATH_SEPARATOR=: | |
42562 | fi | |
42563 | rm -f conf$$.sh | |
42564 | fi | |
42565 | ||
42566 | ||
42567 | as_lineno_1=$LINENO | |
42568 | as_lineno_2=$LINENO | |
42569 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42570 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42571 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
42572 | # Find who we are. Look in the path if we contain no path at all | |
42573 | # relative or not. | |
42574 | case $0 in | |
42575 | *[\\/]* ) as_myself=$0 ;; | |
42576 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42577 | for as_dir in $PATH | |
42578 | do | |
42579 | IFS=$as_save_IFS | |
42580 | test -z "$as_dir" && as_dir=. | |
42581 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
42582 | done | |
42583 | ||
42584 | ;; | |
42585 | esac | |
42586 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
42587 | # in which case we are not to be found in the path. | |
42588 | if test "x$as_myself" = x; then | |
42589 | as_myself=$0 | |
42590 | fi | |
42591 | if test ! -f "$as_myself"; then | |
42592 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
42593 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
42594 | { (exit 1); exit 1; }; } | |
42595 | fi | |
42596 | case $CONFIG_SHELL in | |
42597 | '') | |
42598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42599 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42600 | do | |
42601 | IFS=$as_save_IFS | |
42602 | test -z "$as_dir" && as_dir=. | |
42603 | for as_base in sh bash ksh sh5; do | |
42604 | case $as_dir in | |
42605 | /*) | |
42606 | if ("$as_dir/$as_base" -c ' | |
42607 | as_lineno_1=$LINENO | |
42608 | as_lineno_2=$LINENO | |
42609 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42610 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42611 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
42612 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
42613 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
42614 | CONFIG_SHELL=$as_dir/$as_base | |
42615 | export CONFIG_SHELL | |
42616 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
42617 | fi;; | |
42618 | esac | |
42619 | done | |
42620 | done | |
42621 | ;; | |
42622 | esac | |
42623 | ||
42624 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
42625 | # uniformly replaced by the line number. The first 'sed' inserts a | |
42626 | # line-number line before each line; the second 'sed' does the real | |
42627 | # work. The second script uses 'N' to pair each line-number line | |
42628 | # with the numbered line, and appends trailing '-' during | |
42629 | # substitution so that $LINENO is not a special case at line end. | |
42630 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
42631 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
42632 | sed '=' <$as_myself | | |
42633 | sed ' | |
42634 | N | |
42635 | s,$,-, | |
42636 | : loop | |
42637 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
42638 | t loop | |
42639 | s,-$,, | |
42640 | s,^['$as_cr_digits']*\n,, | |
42641 | ' >$as_me.lineno && | |
42642 | chmod +x $as_me.lineno || | |
42643 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
42644 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
42645 | { (exit 1); exit 1; }; } | |
42646 | ||
42647 | # Don't try to exec as it changes $[0], causing all sort of problems | |
42648 | # (the dirname of $[0] is not the place where we might find the | |
42649 | # original and so on. Autoconf is especially sensible to this). | |
42650 | . ./$as_me.lineno | |
42651 | # Exit status is that of the last command. | |
42652 | exit | |
42653 | } | |
42654 | ||
42655 | ||
42656 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
42657 | *c*,-n*) ECHO_N= ECHO_C=' | |
42658 | ' ECHO_T=' ' ;; | |
42659 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
42660 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
42661 | esac | |
42662 | ||
42663 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42664 | as_expr=expr | |
42665 | else | |
42666 | as_expr=false | |
42667 | fi | |
42668 | ||
42669 | rm -f conf$$ conf$$.exe conf$$.file | |
42670 | echo >conf$$.file | |
42671 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42672 | # We could just check for DJGPP; but this test a) works b) is more generic | |
42673 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
42674 | if test -f conf$$.exe; then | |
42675 | # Don't use ln at all; we don't have any links | |
42676 | as_ln_s='cp -p' | |
42677 | else | |
42678 | as_ln_s='ln -s' | |
42679 | fi | |
42680 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
42681 | as_ln_s=ln | |
42682 | else | |
42683 | as_ln_s='cp -p' | |
42684 | fi | |
42685 | rm -f conf$$ conf$$.exe conf$$.file | |
42686 | ||
42687 | if mkdir -p . 2>/dev/null; then | |
42688 | as_mkdir_p=: | |
42689 | else | |
ac1cb8d3 | 42690 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
42691 | as_mkdir_p=false |
42692 | fi | |
42693 | ||
42694 | as_executable_p="test -f" | |
42695 | ||
42696 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 42697 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42698 | |
42699 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 42700 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42701 | |
42702 | ||
42703 | # IFS | |
42704 | # We need space, tab and new line, in precisely that order. | |
42705 | as_nl=' | |
42706 | ' | |
42707 | IFS=" $as_nl" | |
42708 | ||
42709 | # CDPATH. | |
42710 | $as_unset CDPATH | |
42711 | ||
42712 | exec 6>&1 | |
42713 | ||
42714 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
42715 | # report actual input values of CONFIG_FILES etc. instead of their | |
42716 | # values after options handling. Logging --version etc. is OK. | |
42717 | exec 5>>config.log | |
42718 | { | |
42719 | echo | |
42720 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
42721 | ## Running $as_me. ## | |
42722 | _ASBOX | |
42723 | } >&5 | |
42724 | cat >&5 <<_CSEOF | |
42725 | ||
77ffb593 | 42726 | This file was extended by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 42727 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
42728 | |
42729 | CONFIG_FILES = $CONFIG_FILES | |
42730 | CONFIG_HEADERS = $CONFIG_HEADERS | |
42731 | CONFIG_LINKS = $CONFIG_LINKS | |
42732 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
42733 | $ $0 $@ | |
42734 | ||
42735 | _CSEOF | |
42736 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
42737 | echo >&5 | |
42738 | _ACEOF | |
42739 | ||
42740 | # Files that config.status was made for. | |
42741 | if test -n "$ac_config_files"; then | |
42742 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
42743 | fi | |
42744 | ||
42745 | if test -n "$ac_config_headers"; then | |
42746 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
42747 | fi | |
42748 | ||
42749 | if test -n "$ac_config_links"; then | |
42750 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
42751 | fi | |
42752 | ||
42753 | if test -n "$ac_config_commands"; then | |
42754 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
42755 | fi | |
42756 | ||
42757 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42758 | ||
42759 | ac_cs_usage="\ | |
42760 | \`$as_me' instantiates files from templates according to the | |
42761 | current configuration. | |
42762 | ||
42763 | Usage: $0 [OPTIONS] [FILE]... | |
42764 | ||
42765 | -h, --help print this help, then exit | |
42766 | -V, --version print version number, then exit | |
42767 | -q, --quiet do not print progress messages | |
42768 | -d, --debug don't remove temporary files | |
42769 | --recheck update $as_me by reconfiguring in the same conditions | |
42770 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 42771 | instantiate the configuration file FILE |
a848cd7e | 42772 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 42773 | instantiate the configuration header FILE |
a848cd7e SC |
42774 | |
42775 | Configuration files: | |
42776 | $config_files | |
42777 | ||
42778 | Configuration headers: | |
42779 | $config_headers | |
42780 | ||
42781 | Configuration commands: | |
42782 | $config_commands | |
42783 | ||
42784 | Report bugs to <bug-autoconf@gnu.org>." | |
42785 | _ACEOF | |
42786 | ||
42787 | cat >>$CONFIG_STATUS <<_ACEOF | |
42788 | ac_cs_version="\\ | |
77ffb593 | 42789 | wxWidgets config.status 2.5.2 |
ac1cb8d3 | 42790 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
42791 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
42792 | ||
ac1cb8d3 | 42793 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
42794 | This config.status script is free software; the Free Software Foundation |
42795 | gives unlimited permission to copy, distribute and modify it." | |
42796 | srcdir=$srcdir | |
42797 | INSTALL="$INSTALL" | |
42798 | _ACEOF | |
42799 | ||
42800 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42801 | # If no file are specified by the user, then we need to provide default | |
42802 | # value. By we need to know if files were specified by the user. | |
42803 | ac_need_defaults=: | |
42804 | while test $# != 0 | |
42805 | do | |
42806 | case $1 in | |
42807 | --*=*) | |
42808 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
42809 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
42810 | ac_shift=: | |
42811 | ;; | |
42812 | -*) | |
42813 | ac_option=$1 | |
42814 | ac_optarg=$2 | |
42815 | ac_shift=shift | |
42816 | ;; | |
42817 | *) # This is not an option, so the user has probably given explicit | |
42818 | # arguments. | |
42819 | ac_option=$1 | |
42820 | ac_need_defaults=false;; | |
42821 | esac | |
42822 | ||
42823 | case $ac_option in | |
42824 | # Handling of the options. | |
42825 | _ACEOF | |
42826 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42827 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
42828 | ac_cs_recheck=: ;; | |
42829 | --version | --vers* | -V ) | |
42830 | echo "$ac_cs_version"; exit 0 ;; | |
42831 | --he | --h) | |
42832 | # Conflict between --help and --header | |
42833 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
42834 | Try \`$0 --help' for more information." >&5 | |
42835 | echo "$as_me: error: ambiguous option: $1 | |
42836 | Try \`$0 --help' for more information." >&2;} | |
42837 | { (exit 1); exit 1; }; };; | |
42838 | --help | --hel | -h ) | |
42839 | echo "$ac_cs_usage"; exit 0 ;; | |
42840 | --debug | --d* | -d ) | |
42841 | debug=: ;; | |
42842 | --file | --fil | --fi | --f ) | |
42843 | $ac_shift | |
42844 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
42845 | ac_need_defaults=false;; | |
42846 | --header | --heade | --head | --hea ) | |
42847 | $ac_shift | |
42848 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
42849 | ac_need_defaults=false;; | |
42850 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
42851 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
42852 | ac_cs_silent=: ;; | |
42853 | ||
42854 | # This is an error. | |
42855 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
42856 | Try \`$0 --help' for more information." >&5 | |
42857 | echo "$as_me: error: unrecognized option: $1 | |
42858 | Try \`$0 --help' for more information." >&2;} | |
42859 | { (exit 1); exit 1; }; } ;; | |
42860 | ||
42861 | *) ac_config_targets="$ac_config_targets $1" ;; | |
42862 | ||
42863 | esac | |
42864 | shift | |
42865 | done | |
42866 | ||
42867 | ac_configure_extra_args= | |
42868 | ||
42869 | if $ac_cs_silent; then | |
42870 | exec 6>/dev/null | |
42871 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
42872 | fi | |
42873 | ||
42874 | _ACEOF | |
42875 | cat >>$CONFIG_STATUS <<_ACEOF | |
42876 | if \$ac_cs_recheck; then | |
42877 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
42878 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
42879 | fi | |
42880 | ||
42881 | _ACEOF | |
42882 | ||
42883 | cat >>$CONFIG_STATUS <<_ACEOF | |
42884 | # | |
42885 | # INIT-COMMANDS section. | |
42886 | # | |
42887 | ||
42888 | ||
42889 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
42890 | LN_S="${LN_S}" | |
42891 | ||
42892 | ||
42893 | ||
42894 | _ACEOF | |
42895 | ||
42896 | ||
42897 | ||
42898 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42899 | for ac_config_target in $ac_config_targets | |
42900 | do | |
42901 | case "$ac_config_target" in | |
42902 | # Handling of arguments. | |
42903 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
42904 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
42905 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
42906 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
42907 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
42908 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
42909 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
42910 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
42911 | { (exit 1); exit 1; }; };; | |
42912 | esac | |
42913 | done | |
42914 | ||
42915 | # If the user did not use the arguments to specify the items to instantiate, | |
42916 | # then the envvar interface is used. Set only those that are not. | |
42917 | # We use the long form for the default assignment because of an extremely | |
42918 | # bizarre bug on SunOS 4.1.3. | |
42919 | if $ac_need_defaults; then | |
42920 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
42921 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
42922 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
42923 | fi | |
42924 | ||
42925 | # Have a temporary directory for convenience. Make it in the build tree | |
42926 | # simply because there is no reason to put it here, and in addition, | |
42927 | # creating and moving files from /tmp can sometimes cause problems. | |
42928 | # Create a temporary directory, and hook for its removal unless debugging. | |
42929 | $debug || | |
42930 | { | |
42931 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
42932 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
42933 | } | |
42934 | ||
42935 | # Create a (secure) tmp directory for tmp files. | |
42936 | ||
42937 | { | |
42938 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
42939 | test -n "$tmp" && test -d "$tmp" | |
42940 | } || | |
42941 | { | |
42942 | tmp=./confstat$$-$RANDOM | |
42943 | (umask 077 && mkdir $tmp) | |
42944 | } || | |
42945 | { | |
42946 | echo "$me: cannot create a temporary directory in ." >&2 | |
42947 | { (exit 1); exit 1; } | |
42948 | } | |
42949 | ||
42950 | _ACEOF | |
42951 | ||
42952 | cat >>$CONFIG_STATUS <<_ACEOF | |
42953 | ||
42954 | # | |
42955 | # CONFIG_FILES section. | |
42956 | # | |
42957 | ||
42958 | # No need to generate the scripts if there are no CONFIG_FILES. | |
42959 | # This happens for instance when ./config.status config.h | |
42960 | if test -n "\$CONFIG_FILES"; then | |
42961 | # Protect against being on the right side of a sed subst in config.status. | |
42962 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
42963 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
42964 | s,@SHELL@,$SHELL,;t t | |
42965 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
42966 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
42967 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
42968 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
42969 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
42970 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
42971 | s,@exec_prefix@,$exec_prefix,;t t | |
42972 | s,@prefix@,$prefix,;t t | |
42973 | s,@program_transform_name@,$program_transform_name,;t t | |
42974 | s,@bindir@,$bindir,;t t | |
42975 | s,@sbindir@,$sbindir,;t t | |
42976 | s,@libexecdir@,$libexecdir,;t t | |
42977 | s,@datadir@,$datadir,;t t | |
42978 | s,@sysconfdir@,$sysconfdir,;t t | |
42979 | s,@sharedstatedir@,$sharedstatedir,;t t | |
42980 | s,@localstatedir@,$localstatedir,;t t | |
42981 | s,@libdir@,$libdir,;t t | |
42982 | s,@includedir@,$includedir,;t t | |
42983 | s,@oldincludedir@,$oldincludedir,;t t | |
42984 | s,@infodir@,$infodir,;t t | |
42985 | s,@mandir@,$mandir,;t t | |
42986 | s,@build_alias@,$build_alias,;t t | |
42987 | s,@host_alias@,$host_alias,;t t | |
42988 | s,@target_alias@,$target_alias,;t t | |
42989 | s,@DEFS@,$DEFS,;t t | |
42990 | s,@ECHO_C@,$ECHO_C,;t t | |
42991 | s,@ECHO_N@,$ECHO_N,;t t | |
42992 | s,@ECHO_T@,$ECHO_T,;t t | |
42993 | s,@LIBS@,$LIBS,;t t | |
42994 | s,@build@,$build,;t t | |
42995 | s,@build_cpu@,$build_cpu,;t t | |
42996 | s,@build_vendor@,$build_vendor,;t t | |
42997 | s,@build_os@,$build_os,;t t | |
42998 | s,@host@,$host,;t t | |
42999 | s,@host_cpu@,$host_cpu,;t t | |
43000 | s,@host_vendor@,$host_vendor,;t t | |
43001 | s,@host_os@,$host_os,;t t | |
43002 | s,@target@,$target,;t t | |
43003 | s,@target_cpu@,$target_cpu,;t t | |
43004 | s,@target_vendor@,$target_vendor,;t t | |
43005 | s,@target_os@,$target_os,;t t | |
43006 | s,@CC@,$CC,;t t | |
43007 | s,@CFLAGS@,$CFLAGS,;t t | |
43008 | s,@LDFLAGS@,$LDFLAGS,;t t | |
43009 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
43010 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
43011 | s,@EXEEXT@,$EXEEXT,;t t | |
43012 | s,@OBJEXT@,$OBJEXT,;t t | |
43013 | s,@CPP@,$CPP,;t t | |
43014 | s,@EGREP@,$EGREP,;t t | |
43015 | s,@CXX@,$CXX,;t t | |
43016 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
43017 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
43018 | s,@RANLIB@,$RANLIB,;t t | |
43019 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
43020 | s,@AR@,$AR,;t t | |
43021 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
43022 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
43023 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
43024 | s,@STRIP@,$STRIP,;t t | |
43025 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
43026 | s,@LN_S@,$LN_S,;t t | |
43027 | s,@CXXCPP@,$CXXCPP,;t t | |
43028 | s,@subdirs@,$subdirs,;t t | |
43029 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
43030 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
43031 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
43032 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
43033 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
43034 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
43035 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
43036 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
43037 | s,@X_LIBS@,$X_LIBS,;t t | |
43038 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
43039 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
43040 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
43041 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
43042 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
43043 | s,@RESCOMP@,$RESCOMP,;t t | |
43044 | s,@DEREZ@,$DEREZ,;t t | |
43045 | s,@SETFILE@,$SETFILE,;t t | |
43046 | s,@LIBICONV@,$LIBICONV,;t t | |
43047 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
43048 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
43049 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
43050 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
43051 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
43052 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
43053 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
43054 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
43055 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
43056 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
43057 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
43058 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
43059 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
43060 | s,@VENDOR@,$VENDOR,;t t | |
43061 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
43062 | s,@WXUNIV@,$WXUNIV,;t t | |
43063 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
43064 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
43065 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
43066 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
43067 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
43068 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
43069 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
43070 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
43071 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
43072 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
43073 | s,@UNICODE@,$UNICODE,;t t | |
43074 | s,@BUILD@,$BUILD,;t t | |
43075 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
43076 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
43077 | s,@SHARED@,$SHARED,;t t | |
43078 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
43079 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
43080 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
43081 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
43082 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
43083 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
43084 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
43085 | s,@SET_MAKE@,$SET_MAKE,;t t | |
43086 | s,@MAKE_SET@,$MAKE_SET,;t t | |
43087 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
43088 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
43089 | s,@NM@,$NM,;t t | |
43090 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
43091 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
43092 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
43093 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
43094 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
43095 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
43096 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
43097 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
43098 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
43099 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
43100 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
43101 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
43102 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
43103 | s,@LIBEXT@,$LIBEXT,;t t | |
43104 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
43105 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
43106 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
43107 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
43108 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
43109 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
43110 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
43111 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
43112 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
43113 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
43114 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
43115 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
43116 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
43117 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
43118 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
43119 | s,@GCC_PCH@,$GCC_PCH,;t t | |
43120 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
43121 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
43122 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
43123 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
43124 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
43125 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
43126 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
43127 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
43128 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
43129 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
43130 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
43131 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
43132 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
43133 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
43134 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
43135 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
43136 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
43137 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
43138 | 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 | |
43139 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
43140 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
43141 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t | |
43142 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
43143 | 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 | |
43144 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
43145 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
43146 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t | |
43147 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
43148 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
43149 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
43150 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
43151 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
43152 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
43153 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
43154 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
43155 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
43156 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
43157 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t | |
43158 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
43159 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
43160 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
43161 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
43162 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
43163 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
43164 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
43165 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
43166 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
43167 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
43168 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t | |
43169 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43170 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43171 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
43172 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
43173 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
43174 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
43175 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
43176 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
43177 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
43178 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
43179 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
43180 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
43181 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
43182 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
43183 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
43184 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
43185 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
43186 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
43187 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
43188 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
43189 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
43190 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
43191 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
43192 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
43193 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
43194 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
43195 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
43196 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
43197 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
43198 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
43199 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
43200 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
43201 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
43202 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
43203 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
43204 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
43205 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
43206 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
43207 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
43208 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
43209 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43210 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43211 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
43212 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t | |
43213 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t | |
43214 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
43215 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
43216 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
43217 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
43218 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t | |
43219 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t | |
43220 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t | |
43221 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
43222 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
43223 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
43224 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
43225 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
43226 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
43227 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
43228 | s,@PATH_IFS@,$PATH_IFS,;t t | |
43229 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
43230 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
43231 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
43232 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
43233 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
43234 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t | |
43235 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
43236 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
43237 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
43238 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
43239 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
43240 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
43241 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
43242 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
43243 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
43244 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
43245 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
43246 | s,@WX_ALL@,$WX_ALL,;t t | |
43247 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
43248 | s,@SHARED_LD@,$SHARED_LD,;t t | |
43249 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t | |
43250 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
43251 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
43252 | s,@USE_GUI@,$USE_GUI,;t t | |
43253 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
43254 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
43255 | s,@TOOLKIT@,$TOOLKIT,;t t | |
43256 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
43257 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
43258 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
43259 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
43260 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
43261 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
43262 | s,@cross_compiling@,$cross_compiling,;t t | |
43263 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t | |
43264 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
43265 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
43266 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
43267 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
43268 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
43269 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
43270 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
43271 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
43272 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t | |
43273 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
43274 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
43275 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
43276 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
43277 | s,@GUIDIST@,$GUIDIST,;t t | |
43278 | s,@PORT_FILES@,$PORT_FILES,;t t | |
43279 | s,@DISTDIR@,$DISTDIR,;t t | |
43280 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
43281 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
43282 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
43283 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
43284 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
43285 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
43286 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
43287 | s,@RESFLAGS@,$RESFLAGS,;t t | |
43288 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
43289 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
43290 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
43291 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
43292 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
43293 | s,@MACSETFILE@,$MACSETFILE,;t t | |
43294 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
43295 | s,@GCC@,$GCC,;t t | |
43296 | s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t | |
43297 | s,@DLLTOOL@,$DLLTOOL,;t t | |
43298 | s,@AS@,$AS,;t t | |
43299 | s,@LD@,$LD,;t t | |
43300 | s,@MAKEINFO@,$MAKEINFO,;t t | |
43301 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
43302 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t | |
43303 | s,@LIBOBJS@,$LIBOBJS,;t t | |
43304 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
43305 | CEOF | |
43306 | ||
43307 | _ACEOF | |
43308 | ||
43309 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43310 | # Split the substitutions into bite-sized pieces for seds with | |
43311 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
43312 | ac_max_sed_lines=48 | |
43313 | ac_sed_frag=1 # Number of current file. | |
43314 | ac_beg=1 # First line for current file. | |
43315 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
43316 | ac_more_lines=: | |
43317 | ac_sed_cmds= | |
43318 | while $ac_more_lines; do | |
43319 | if test $ac_beg -gt 1; then | |
43320 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43321 | else | |
43322 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43323 | fi | |
43324 | if test ! -s $tmp/subs.frag; then | |
43325 | ac_more_lines=false | |
43326 | else | |
43327 | # The purpose of the label and of the branching condition is to | |
43328 | # speed up the sed processing (if there are no `@' at all, there | |
43329 | # is no need to browse any of the substitutions). | |
43330 | # These are the two extra sed commands mentioned above. | |
43331 | (echo ':t | |
43332 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
43333 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 43334 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 43335 | else |
ac1cb8d3 | 43336 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
43337 | fi |
43338 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
43339 | ac_beg=$ac_end | |
43340 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
43341 | fi | |
43342 | done | |
43343 | if test -z "$ac_sed_cmds"; then | |
43344 | ac_sed_cmds=cat | |
43345 | fi | |
43346 | fi # test -n "$CONFIG_FILES" | |
43347 | ||
43348 | _ACEOF | |
43349 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43350 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
43351 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43352 | case $ac_file in | |
43353 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43354 | cat >$tmp/stdin |
43355 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43356 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43357 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43358 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43359 | * ) ac_file_in=$ac_file.in ;; |
43360 | esac | |
43361 | ||
43362 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
43363 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43364 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43365 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43366 | X"$ac_file" : 'X\(//\)$' \| \ | |
43367 | X"$ac_file" : 'X\(/\)' \| \ | |
43368 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43369 | echo X"$ac_file" | |
43370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43371 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43372 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43373 | /^X\(\/\).*/{ s//\1/; q; } | |
43374 | s/.*/./; q'` | |
43375 | { if $as_mkdir_p; then | |
43376 | mkdir -p "$ac_dir" | |
43377 | else | |
43378 | as_dir="$ac_dir" | |
43379 | as_dirs= | |
43380 | while test ! -d "$as_dir"; do | |
43381 | as_dirs="$as_dir $as_dirs" | |
43382 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43383 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43384 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43385 | X"$as_dir" : 'X\(//\)$' \| \ | |
43386 | X"$as_dir" : 'X\(/\)' \| \ | |
43387 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43388 | echo X"$as_dir" | |
43389 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43390 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43391 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43392 | /^X\(\/\).*/{ s//\1/; q; } | |
43393 | s/.*/./; q'` | |
43394 | done | |
43395 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43396 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43397 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43398 | { (exit 1); exit 1; }; }; } | |
43399 | ||
43400 | ac_builddir=. | |
43401 | ||
43402 | if test "$ac_dir" != .; then | |
43403 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43404 | # A "../" for each directory in $ac_dir_suffix. | |
43405 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43406 | else | |
43407 | ac_dir_suffix= ac_top_builddir= | |
43408 | fi | |
43409 | ||
43410 | case $srcdir in | |
43411 | .) # No --srcdir option. We are building in place. | |
43412 | ac_srcdir=. | |
43413 | if test -z "$ac_top_builddir"; then | |
43414 | ac_top_srcdir=. | |
43415 | else | |
43416 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43417 | fi ;; | |
43418 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43419 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43420 | ac_top_srcdir=$srcdir ;; | |
43421 | *) # Relative path. | |
43422 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43423 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43424 | esac | |
ac1cb8d3 VS |
43425 | |
43426 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43427 | # the directories may not exist. | |
43428 | case `pwd` in | |
43429 | .) ac_abs_builddir="$ac_dir";; | |
43430 | *) | |
43431 | case "$ac_dir" in | |
43432 | .) ac_abs_builddir=`pwd`;; | |
43433 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43434 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43435 | esac;; | |
43436 | esac | |
43437 | case $ac_abs_builddir in | |
43438 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43439 | *) | |
43440 | case ${ac_top_builddir}. in | |
43441 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43442 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43443 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43444 | esac;; | |
43445 | esac | |
43446 | case $ac_abs_builddir in | |
43447 | .) ac_abs_srcdir=$ac_srcdir;; | |
43448 | *) | |
43449 | case $ac_srcdir in | |
43450 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43451 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43452 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43453 | esac;; | |
43454 | esac | |
43455 | case $ac_abs_builddir in | |
43456 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43457 | *) | |
43458 | case $ac_top_srcdir in | |
43459 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43460 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43461 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43462 | esac;; | |
43463 | esac | |
a848cd7e SC |
43464 | |
43465 | ||
43466 | case $INSTALL in | |
43467 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
43468 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
43469 | esac | |
43470 | ||
dcc1b6ad VS |
43471 | if test x"$ac_file" != x-; then |
43472 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
43473 | echo "$as_me: creating $ac_file" >&6;} | |
43474 | rm -f "$ac_file" | |
43475 | fi | |
a848cd7e SC |
43476 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
43477 | # use $as_me), people would be surprised to read: | |
43478 | # /* config.h. Generated by config.status. */ | |
43479 | if test x"$ac_file" = x-; then | |
43480 | configure_input= | |
43481 | else | |
43482 | configure_input="$ac_file. " | |
43483 | fi | |
43484 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 43485 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
43486 | |
43487 | # First look for the input files in the build tree, otherwise in the | |
43488 | # src tree. | |
43489 | ac_file_inputs=`IFS=: | |
43490 | for f in $ac_file_in; do | |
43491 | case $f in | |
43492 | -) echo $tmp/stdin ;; | |
43493 | [\\/$]*) | |
ac1cb8d3 VS |
43494 | # Absolute (can't be DOS-style, as IFS=:) |
43495 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43496 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43497 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43498 | echo "$f";; |
a848cd7e | 43499 | *) # Relative |
ac1cb8d3 VS |
43500 | if test -f "$f"; then |
43501 | # Build tree | |
43502 | echo "$f" | |
43503 | elif test -f "$srcdir/$f"; then | |
43504 | # Source tree | |
43505 | echo "$srcdir/$f" | |
43506 | else | |
43507 | # /dev/null tree | |
43508 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43509 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43510 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43511 | fi;; |
a848cd7e SC |
43512 | esac |
43513 | done` || { (exit 1); exit 1; } | |
43514 | _ACEOF | |
43515 | cat >>$CONFIG_STATUS <<_ACEOF | |
43516 | sed "$ac_vpsub | |
43517 | $extrasub | |
43518 | _ACEOF | |
43519 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43520 | :t | |
43521 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
43522 | s,@configure_input@,$configure_input,;t t | |
43523 | s,@srcdir@,$ac_srcdir,;t t | |
43524 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
43525 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
43526 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
43527 | s,@builddir@,$ac_builddir,;t t | |
43528 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
43529 | s,@top_builddir@,$ac_top_builddir,;t t | |
43530 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
43531 | s,@INSTALL@,$ac_INSTALL,;t t | |
43532 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
43533 | rm -f $tmp/stdin | |
43534 | if test x"$ac_file" != x-; then | |
43535 | mv $tmp/out $ac_file | |
43536 | else | |
43537 | cat $tmp/out | |
43538 | rm -f $tmp/out | |
43539 | fi | |
43540 | ||
43541 | done | |
43542 | _ACEOF | |
43543 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43544 | ||
43545 | # | |
43546 | # CONFIG_HEADER section. | |
43547 | # | |
43548 | ||
43549 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
43550 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
43551 | # | |
43552 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
43553 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
43554 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
43555 | ac_dC=' ' |
43556 | ac_dD=',;t' | |
43557 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 43558 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
43559 | ac_uB='$,\1#\2define\3' |
43560 | ac_uC=' ' | |
43561 | ac_uD=',;t' | |
43562 | ||
43563 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
43564 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43565 | case $ac_file in | |
43566 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43567 | cat >$tmp/stdin |
43568 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43569 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43570 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43571 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43572 | * ) ac_file_in=$ac_file.in ;; |
43573 | esac | |
43574 | ||
43575 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
43576 | echo "$as_me: creating $ac_file" >&6;} | |
43577 | ||
43578 | # First look for the input files in the build tree, otherwise in the | |
43579 | # src tree. | |
43580 | ac_file_inputs=`IFS=: | |
43581 | for f in $ac_file_in; do | |
43582 | case $f in | |
43583 | -) echo $tmp/stdin ;; | |
43584 | [\\/$]*) | |
ac1cb8d3 VS |
43585 | # Absolute (can't be DOS-style, as IFS=:) |
43586 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43587 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43588 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
43589 | # Do quote $f, to prevent DOS paths from being IFS'd. |
43590 | echo "$f";; | |
a848cd7e | 43591 | *) # Relative |
ac1cb8d3 VS |
43592 | if test -f "$f"; then |
43593 | # Build tree | |
43594 | echo "$f" | |
43595 | elif test -f "$srcdir/$f"; then | |
43596 | # Source tree | |
43597 | echo "$srcdir/$f" | |
43598 | else | |
43599 | # /dev/null tree | |
43600 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43601 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43602 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43603 | fi;; |
a848cd7e SC |
43604 | esac |
43605 | done` || { (exit 1); exit 1; } | |
43606 | # Remove the trailing spaces. | |
ac1cb8d3 | 43607 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
43608 | |
43609 | _ACEOF | |
43610 | ||
43611 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
43612 | # `conftest.undefs', that substitutes the proper values into | |
43613 | # config.h.in to produce config.h. The first handles `#define' | |
43614 | # templates, and the second `#undef' templates. | |
43615 | # And first: Protect against being on the right side of a sed subst in | |
43616 | # config.status. Protect against being in an unquoted here document | |
43617 | # in config.status. | |
43618 | rm -f conftest.defines conftest.undefs | |
43619 | # Using a here document instead of a string reduces the quoting nightmare. | |
43620 | # Putting comments in sed scripts is not portable. | |
43621 | # | |
43622 | # `end' is used to avoid that the second main sed command (meant for | |
43623 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
43624 | # See the Autoconf documentation for `clear'. | |
43625 | cat >confdef2sed.sed <<\_ACEOF | |
43626 | s/[\\&,]/\\&/g | |
43627 | s,[\\$`],\\&,g | |
43628 | t clear | |
43629 | : clear | |
ac1cb8d3 | 43630 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 43631 | t end |
ac1cb8d3 | 43632 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
43633 | : end |
43634 | _ACEOF | |
43635 | # If some macros were called several times there might be several times | |
43636 | # the same #defines, which is useless. Nevertheless, we may not want to | |
43637 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
43638 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
43639 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
43640 | rm -f confdef2sed.sed | |
43641 | ||
43642 | # This sed command replaces #undef with comments. This is necessary, for | |
43643 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
43644 | # on some systems where configure will not decide to define it. | |
43645 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 43646 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
43647 | _ACEOF |
43648 | ||
43649 | # Break up conftest.defines because some shells have a limit on the size | |
43650 | # of here documents, and old seds have small limits too (100 cmds). | |
43651 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 43652 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
43653 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
43654 | echo ' :' >>$CONFIG_STATUS | |
43655 | rm -f conftest.tail | |
43656 | while grep . conftest.defines >/dev/null | |
43657 | do | |
43658 | # Write a limited-size here document to $tmp/defines.sed. | |
43659 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
43660 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 43661 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43662 | # Work around the forget-to-reset-the-flag bug. |
43663 | echo 't clr' >>$CONFIG_STATUS | |
43664 | echo ': clr' >>$CONFIG_STATUS | |
43665 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
43666 | echo 'CEOF | |
43667 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
43668 | rm -f $tmp/in | |
43669 | mv $tmp/out $tmp/in | |
43670 | ' >>$CONFIG_STATUS | |
43671 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
43672 | rm -f conftest.defines | |
43673 | mv conftest.tail conftest.defines | |
43674 | done | |
43675 | rm -f conftest.defines | |
43676 | echo ' fi # grep' >>$CONFIG_STATUS | |
43677 | echo >>$CONFIG_STATUS | |
43678 | ||
43679 | # Break up conftest.undefs because some shells have a limit on the size | |
43680 | # of here documents, and old seds have small limits too (100 cmds). | |
43681 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
43682 | rm -f conftest.tail | |
43683 | while grep . conftest.undefs >/dev/null | |
43684 | do | |
43685 | # Write a limited-size here document to $tmp/undefs.sed. | |
43686 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
43687 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 43688 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43689 | # Work around the forget-to-reset-the-flag bug. |
43690 | echo 't clr' >>$CONFIG_STATUS | |
43691 | echo ': clr' >>$CONFIG_STATUS | |
43692 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
43693 | echo 'CEOF | |
43694 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
43695 | rm -f $tmp/in | |
43696 | mv $tmp/out $tmp/in | |
43697 | ' >>$CONFIG_STATUS | |
43698 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
43699 | rm -f conftest.undefs | |
43700 | mv conftest.tail conftest.undefs | |
43701 | done | |
43702 | rm -f conftest.undefs | |
43703 | ||
43704 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43705 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
43706 | # use $as_me), people would be surprised to read: | |
43707 | # /* config.h. Generated by config.status. */ | |
43708 | if test x"$ac_file" = x-; then | |
43709 | echo "/* Generated by configure. */" >$tmp/config.h | |
43710 | else | |
43711 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
43712 | fi | |
43713 | cat $tmp/in >>$tmp/config.h | |
43714 | rm -f $tmp/in | |
43715 | if test x"$ac_file" != x-; then | |
43716 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
43717 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
43718 | echo "$as_me: $ac_file is unchanged" >&6;} | |
43719 | else | |
43720 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43721 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43722 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43723 | X"$ac_file" : 'X\(//\)$' \| \ | |
43724 | X"$ac_file" : 'X\(/\)' \| \ | |
43725 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43726 | echo X"$ac_file" | |
43727 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43728 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43729 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43730 | /^X\(\/\).*/{ s//\1/; q; } | |
43731 | s/.*/./; q'` | |
43732 | { if $as_mkdir_p; then | |
43733 | mkdir -p "$ac_dir" | |
43734 | else | |
43735 | as_dir="$ac_dir" | |
43736 | as_dirs= | |
43737 | while test ! -d "$as_dir"; do | |
43738 | as_dirs="$as_dir $as_dirs" | |
43739 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43740 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43741 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43742 | X"$as_dir" : 'X\(//\)$' \| \ | |
43743 | X"$as_dir" : 'X\(/\)' \| \ | |
43744 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43745 | echo X"$as_dir" | |
43746 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43747 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43748 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43749 | /^X\(\/\).*/{ s//\1/; q; } | |
43750 | s/.*/./; q'` | |
43751 | done | |
43752 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43753 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43754 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43755 | { (exit 1); exit 1; }; }; } | |
43756 | ||
43757 | rm -f $ac_file | |
43758 | mv $tmp/config.h $ac_file | |
43759 | fi | |
43760 | else | |
43761 | cat $tmp/config.h | |
43762 | rm -f $tmp/config.h | |
43763 | fi | |
43764 | done | |
43765 | _ACEOF | |
43766 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43767 | ||
43768 | # | |
43769 | # CONFIG_COMMANDS section. | |
43770 | # | |
43771 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
43772 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
43773 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43774 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
43775 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43776 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
43777 | X"$ac_dest" : 'X\(//\)$' \| \ | |
43778 | X"$ac_dest" : 'X\(/\)' \| \ | |
43779 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43780 | echo X"$ac_dest" | |
43781 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43782 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43783 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43784 | /^X\(\/\).*/{ s//\1/; q; } | |
43785 | s/.*/./; q'` | |
ac1cb8d3 VS |
43786 | { if $as_mkdir_p; then |
43787 | mkdir -p "$ac_dir" | |
43788 | else | |
43789 | as_dir="$ac_dir" | |
43790 | as_dirs= | |
43791 | while test ! -d "$as_dir"; do | |
43792 | as_dirs="$as_dir $as_dirs" | |
43793 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43794 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
43795 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
43796 | X"$as_dir" : 'X\(//\)$' \| \ | |
43797 | X"$as_dir" : 'X\(/\)' \| \ | |
43798 | . : '\(.\)' 2>/dev/null || | |
43799 | echo X"$as_dir" | | |
43800 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43801 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43802 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43803 | /^X\(\/\).*/{ s//\1/; q; } | |
43804 | s/.*/./; q'` | |
43805 | done | |
43806 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43807 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43808 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43809 | { (exit 1); exit 1; }; }; } | |
43810 | ||
a848cd7e SC |
43811 | ac_builddir=. |
43812 | ||
43813 | if test "$ac_dir" != .; then | |
43814 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43815 | # A "../" for each directory in $ac_dir_suffix. | |
43816 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43817 | else | |
43818 | ac_dir_suffix= ac_top_builddir= | |
43819 | fi | |
43820 | ||
43821 | case $srcdir in | |
43822 | .) # No --srcdir option. We are building in place. | |
43823 | ac_srcdir=. | |
43824 | if test -z "$ac_top_builddir"; then | |
43825 | ac_top_srcdir=. | |
43826 | else | |
43827 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43828 | fi ;; | |
43829 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43830 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43831 | ac_top_srcdir=$srcdir ;; | |
43832 | *) # Relative path. | |
43833 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43834 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43835 | esac | |
ac1cb8d3 VS |
43836 | |
43837 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43838 | # the directories may not exist. | |
43839 | case `pwd` in | |
43840 | .) ac_abs_builddir="$ac_dir";; | |
43841 | *) | |
43842 | case "$ac_dir" in | |
43843 | .) ac_abs_builddir=`pwd`;; | |
43844 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43845 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43846 | esac;; | |
43847 | esac | |
43848 | case $ac_abs_builddir in | |
43849 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43850 | *) | |
43851 | case ${ac_top_builddir}. in | |
43852 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43853 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43854 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43855 | esac;; | |
43856 | esac | |
43857 | case $ac_abs_builddir in | |
43858 | .) ac_abs_srcdir=$ac_srcdir;; | |
43859 | *) | |
43860 | case $ac_srcdir in | |
43861 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43862 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43863 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43864 | esac;; | |
43865 | esac | |
43866 | case $ac_abs_builddir in | |
43867 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43868 | *) | |
43869 | case $ac_top_srcdir in | |
43870 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43871 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43872 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43873 | esac;; | |
43874 | esac | |
a848cd7e SC |
43875 | |
43876 | ||
43877 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
43878 | echo "$as_me: executing $ac_dest commands" >&6;} | |
43879 | case $ac_dest in | |
43880 | default ) | |
43881 | if test ! -h wx-config; then | |
43882 | chmod +x wx-config | |
43883 | mv wx-config wx${TOOLCHAIN_NAME}-config | |
43884 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
43885 | fi | |
43886 | ||
43887 | if test ! -d lib; then | |
43888 | mkdir lib | |
43889 | fi | |
43890 | if test ! -d lib/wx; then | |
43891 | mkdir lib/wx | |
43892 | fi | |
43893 | if test ! -d lib/wx/include; then | |
43894 | mkdir lib/wx/include | |
43895 | fi | |
43896 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
43897 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
43898 | fi | |
43899 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
43900 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
43901 | fi | |
43902 | if test -f setup.h; then | |
43903 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
43904 | fi | |
43905 | ;; | |
43906 | esac | |
43907 | done | |
43908 | _ACEOF | |
43909 | ||
43910 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43911 | ||
43912 | { (exit 0); exit 0; } | |
43913 | _ACEOF | |
43914 | chmod +x $CONFIG_STATUS | |
43915 | ac_clean_files=$ac_clean_files_save | |
43916 | ||
43917 | ||
43918 | # configure is writing to config.log, and then calls config.status. | |
43919 | # config.status does its own redirection, appending to config.log. | |
43920 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
43921 | # by configure, so config.status won't be able to write to it; its | |
43922 | # output is simply discarded. So we exec the FD to /dev/null, | |
43923 | # effectively closing config.log, so it can be properly (re)opened and | |
43924 | # appended to by config.status. When coming back to configure, we | |
43925 | # need to make the FD available again. | |
43926 | if test "$no_create" != yes; then | |
43927 | ac_cs_success=: | |
43928 | ac_config_status_args= | |
43929 | test "$silent" = yes && | |
43930 | ac_config_status_args="$ac_config_status_args --quiet" | |
43931 | exec 5>/dev/null | |
43932 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
43933 | exec 5>>config.log | |
43934 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
43935 | # would make configure fail if this is the last instruction. | |
43936 | $ac_cs_success || { (exit 1); exit 1; } | |
43937 | fi | |
43938 | ||
43939 | # | |
43940 | # CONFIG_SUBDIRS section. | |
43941 | # | |
43942 | if test "$no_recursion" != yes; then | |
43943 | ||
43944 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
43945 | ac_sub_configure_args= | |
43946 | ac_prev= | |
43947 | for ac_arg in $ac_configure_args; do | |
43948 | if test -n "$ac_prev"; then | |
43949 | ac_prev= | |
43950 | continue | |
43951 | fi | |
43952 | case $ac_arg in | |
43953 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
43954 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
43955 | ac_prev=cache_file ;; | |
43956 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
43957 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
43958 | | --c=*) | |
43959 | ;; | |
43960 | --config-cache | -C) | |
43961 | ;; | |
43962 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
43963 | ac_prev=srcdir ;; | |
43964 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
43965 | ;; | |
43966 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
43967 | ac_prev=prefix ;; | |
43968 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
43969 | ;; | |
43970 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
43971 | esac | |
43972 | done | |
43973 | ||
43974 | # Always prepend --prefix to ensure using the same prefix | |
43975 | # in subdir configurations. | |
43976 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
43977 | ||
43978 | ac_popdir=`pwd` | |
43979 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
43980 | ||
43981 | # Do not complain, so a configure script can configure whichever | |
43982 | # parts of a large source tree are present. | |
43983 | test -d $srcdir/$ac_dir || continue | |
43984 | ||
43985 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
43986 | echo "$as_me: configuring in $ac_dir" >&6;} | |
43987 | { if $as_mkdir_p; then | |
43988 | mkdir -p "$ac_dir" | |
43989 | else | |
43990 | as_dir="$ac_dir" | |
43991 | as_dirs= | |
43992 | while test ! -d "$as_dir"; do | |
43993 | as_dirs="$as_dir $as_dirs" | |
43994 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43995 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43996 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43997 | X"$as_dir" : 'X\(//\)$' \| \ | |
43998 | X"$as_dir" : 'X\(/\)' \| \ | |
43999 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44000 | echo X"$as_dir" | |
44001 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44002 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44003 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44004 | /^X\(\/\).*/{ s//\1/; q; } | |
44005 | s/.*/./; q'` | |
44006 | done | |
44007 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44008 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44009 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44010 | { (exit 1); exit 1; }; }; } | |
44011 | ||
44012 | ac_builddir=. | |
44013 | ||
44014 | if test "$ac_dir" != .; then | |
44015 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44016 | # A "../" for each directory in $ac_dir_suffix. | |
44017 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44018 | else | |
44019 | ac_dir_suffix= ac_top_builddir= | |
44020 | fi | |
44021 | ||
44022 | case $srcdir in | |
44023 | .) # No --srcdir option. We are building in place. | |
44024 | ac_srcdir=. | |
44025 | if test -z "$ac_top_builddir"; then | |
44026 | ac_top_srcdir=. | |
44027 | else | |
44028 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44029 | fi ;; | |
44030 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44031 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44032 | ac_top_srcdir=$srcdir ;; | |
44033 | *) # Relative path. | |
44034 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44035 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44036 | esac | |
ac1cb8d3 VS |
44037 | |
44038 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44039 | # the directories may not exist. | |
44040 | case `pwd` in | |
44041 | .) ac_abs_builddir="$ac_dir";; | |
44042 | *) | |
44043 | case "$ac_dir" in | |
44044 | .) ac_abs_builddir=`pwd`;; | |
44045 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44046 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44047 | esac;; | |
44048 | esac | |
44049 | case $ac_abs_builddir in | |
44050 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44051 | *) | |
44052 | case ${ac_top_builddir}. in | |
44053 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44054 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44055 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44056 | esac;; | |
44057 | esac | |
44058 | case $ac_abs_builddir in | |
44059 | .) ac_abs_srcdir=$ac_srcdir;; | |
44060 | *) | |
44061 | case $ac_srcdir in | |
44062 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44063 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44064 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44065 | esac;; | |
44066 | esac | |
44067 | case $ac_abs_builddir in | |
44068 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44069 | *) | |
44070 | case $ac_top_srcdir in | |
44071 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44072 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44073 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44074 | esac;; | |
44075 | esac | |
a848cd7e SC |
44076 | |
44077 | ||
44078 | cd $ac_dir | |
44079 | ||
44080 | # Check for guested configure; otherwise get Cygnus style configure. | |
44081 | if test -f $ac_srcdir/configure.gnu; then | |
44082 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
44083 | elif test -f $ac_srcdir/configure; then | |
44084 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
44085 | elif test -f $ac_srcdir/configure.in; then | |
44086 | ac_sub_configure=$ac_configure | |
44087 | else | |
44088 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
44089 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
44090 | ac_sub_configure= | |
44091 | fi | |
44092 | ||
44093 | # The recursion is here. | |
44094 | if test -n "$ac_sub_configure"; then | |
44095 | # Make the cache file name correct relative to the subdirectory. | |
44096 | case $cache_file in | |
44097 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
44098 | *) # Relative path. | |
ac1cb8d3 | 44099 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
44100 | esac |
44101 | ||
44102 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
44103 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
44104 | # The eval makes quoting arguments work. | |
44105 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
44106 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
44107 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
44108 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
44109 | { (exit 1); exit 1; }; } | |
44110 | fi | |
44111 | ||
dcc1b6ad | 44112 | cd $ac_popdir |
a848cd7e SC |
44113 | done |
44114 | fi | |
44115 | ||
44116 | ||
44117 | echo | |
77ffb593 | 44118 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 44119 | echo "" |
77ffb593 JS |
44120 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}" |
44121 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" | |
a848cd7e | 44122 | |
77ffb593 JS |
44123 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
44124 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
44125 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 44126 | |
77ffb593 JS |
44127 | echo " What level of wxWidgets compatibility should be enabled?" |
44128 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
44129 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 44130 | |
77ffb593 | 44131 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
44132 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
44133 | echo " png ${wxUSE_LIBPNG-none}" | |
44134 | echo " regex ${wxUSE_REGEX}" | |
44135 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
44136 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
44137 | echo " xpm ${wxUSE_LIBXPM-none}" | |
44138 | fi | |
44139 | echo " zlib ${wxUSE_ZLIB}" | |
44140 | echo " odbc ${wxUSE_ODBC}" | |
44141 | echo " expat ${wxUSE_EXPAT}" | |
44142 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
44143 | echo " sdl ${wxUSE_LIBSDL}" | |
44144 | ||
44145 | echo "" | |
44146 |