]>
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. | |
81f90336 | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4. |
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' | |
81f90336 MW |
273 | PACKAGE_VERSION='2.5.4' |
274 | PACKAGE_STRING='wxWidgets 2.5.4' | |
77ffb593 | 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" | |
dae87f93 | 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 X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS 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_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 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_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 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 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
81f90336 | 797 | \`configure' configures wxWidgets 2.5.4 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 | |
81f90336 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.4:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
9f45f08e | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
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 | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
a848cd7e | 907 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
eaff0f0d | 908 | --enable-backtrace use wxStackWalker class for getting backtraces |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
911 | --enable-dialupman use dialup network classes | |
912 | --enable-dynlib use wxLibrary class for DLL loading | |
913 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
914 | --enable-exceptions build exception-safe library | |
915 | --enable-ffile use wxFFile class | |
916 | --enable-file use wxFile class | |
917 | --enable-filesystem use virtual file systems classes | |
918 | --enable-fontmap use font encodings conversion classes | |
919 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
920 | --enable-fs_zip use virtual ZIP filesystems | |
921 | --enable-geometry use geometry class | |
922 | --enable-log use logging system | |
923 | --enable-longlong use wxLongLong class | |
924 | --enable-mimetype use wxMimeTypesManager | |
925 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
926 | --enable-snglinst use wxSingleInstanceChecker class | |
927 | --enable-streams use wxStream etc classes | |
928 | --enable-std_iostreams use standard C++ stream classes | |
929 | --enable-stopwatch use wxStopWatch class | |
930 | --enable-sysoptions use wxSystemOptions | |
931 | --enable-textbuf use wxTextBuffer class | |
932 | --enable-textfile use wxTextFile class | |
933 | --enable-timer use wxTimer class | |
934 | --enable-unicode compile wxString with Unicode support | |
935 | --enable-sound use wxSound class | |
3b57de8b | 936 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 937 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 938 | --enable-zipstream use wxZip streams |
a848cd7e SC |
939 | --enable-url use wxURL class |
940 | --enable-protocol use wxProtocol class | |
941 | --enable-protocol-http HTTP support in wxProtocol | |
942 | --enable-protocol-ftp FTP support in wxProtocol | |
943 | --enable-protocol-file FILE support in wxProtocol | |
944 | --enable-threads use threads | |
945 | --enable-docview use document view architecture | |
946 | --enable-help use help subsystem | |
947 | --enable-mshtmlhelp use MS HTML Help (win32) | |
948 | --enable-html use wxHTML sub-library | |
949 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 950 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
951 | --enable-constraints use layout-constraints system |
952 | --enable-printarch use printing architecture | |
953 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 954 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
955 | --enable-loggui use standard GUI logger |
956 | --enable-logwin use wxLogWindow | |
957 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 958 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
959 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
960 | --enable-prologio not available; see contrib | |
961 | --enable-resources not available; see contrib | |
962 | --enable-clipboard use wxClipboard class | |
963 | --enable-dnd use Drag'n'Drop classes | |
964 | --enable-metafile use win32 metafiles | |
965 | --enable-controls use all usual controls | |
966 | --enable-accel use accelerators | |
967 | --enable-button use wxButton class | |
968 | --enable-bmpbutton use wxBitmapButton class | |
969 | --enable-calendar use wxCalendarCtrl class | |
970 | --enable-caret use wxCaret class | |
971 | --enable-checkbox use wxCheckBox class | |
972 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
973 | --enable-choice use wxChoice class | |
92bbdbcd | 974 | --enable-choicebook use wxChoicebook class |
a848cd7e | 975 | --enable-combobox use wxComboBox class |
da98e9be | 976 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
977 | --enable-display use wxDisplay class |
978 | --enable-gauge use wxGauge class | |
979 | --enable-grid use wxGrid class | |
980 | --enable-imaglist use wxImageList class | |
981 | --enable-listbook use wxListbook class | |
982 | --enable-listbox use wxListBox class | |
983 | --enable-listctrl use wxListCtrl class | |
984 | --enable-notebook use wxNotebook class | |
985 | --enable-radiobox use wxRadioBox class | |
986 | --enable-radiobtn use wxRadioButton class | |
987 | --enable-sash use wxSashWindow class | |
988 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
989 | --enable-slider use wxSlider class | |
990 | --enable-spinbtn use wxSpinButton class | |
991 | --enable-spinctrl use wxSpinCtrl class | |
992 | --enable-splitter use wxSplitterWindow class | |
993 | --enable-statbmp use wxStaticBitmap class | |
994 | --enable-statbox use wxStaticBox class | |
995 | --enable-statline use wxStaticLine class | |
996 | --enable-stattext use wxStaticText class | |
997 | --enable-statusbar use wxStatusBar class | |
998 | --enable-tabdialog use wxTabControl class | |
999 | --enable-textctrl use wxTextCtrl class | |
1000 | --enable-togglebtn use wxToggleButton class | |
1001 | --enable-toolbar use wxToolBar class | |
1002 | --enable-tbarnative use native wxToolBar class | |
1003 | --enable-tbarsmpl use wxToolBarSimple class | |
1004 | --enable-treectrl use wxTreeCtrl class | |
1005 | --enable-tipwindow use wxTipWindow class | |
1006 | --enable-popupwin use wxPopUpWindow class | |
1007 | --enable-commondlg use all common dialogs | |
1008 | --enable-choicedlg use wxChoiceDialog | |
1009 | --enable-coldlg use wxColourDialog | |
1010 | --enable-filedlg use wxFileDialog | |
1011 | --enable-finddlg use wxFindReplaceDialog | |
1012 | --enable-fontdlg use wxFontDialog | |
1013 | --enable-dirdlg use wxDirDialog | |
1014 | --enable-msgdlg use wxMessageDialog | |
1015 | --enable-numberdlg use wxNumberEntryDialog | |
1016 | --enable-splash use wxSplashScreen | |
1017 | --enable-textdlg use wxTextDialog | |
1018 | --enable-tipdlg use startup tips | |
1019 | --enable-progressdlg use wxProgressDialog | |
1020 | --enable-wizarddlg use wxWizard | |
1021 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1022 | --enable-miniframe use wxMiniFrame class | |
1023 | --enable-tooltips use wxToolTip class | |
1024 | --enable-splines use spline drawing code | |
1025 | --enable-validators use wxValidator and derived classes | |
1026 | --enable-busyinfo use wxBusyInfo | |
1027 | --enable-joystick use wxJoystick (Linux only) | |
1028 | --enable-metafiles use wxMetaFile (Windows only) | |
1029 | --enable-dragimage use wxDragImage | |
1030 | --enable-accessibility enable accessibility support | |
1031 | --enable-palette use wxPalette class | |
1032 | --enable-image use wxImage class | |
1033 | --enable-gif use gif images (GIF file format) | |
1034 | --enable-pcx use pcx images (PCX file format) | |
1035 | --enable-iff use iff images (IFF file format) | |
1036 | --enable-pnm use pnm images (PNM file format) | |
1037 | --enable-xpm use xpm images (XPM file format) | |
1038 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1039 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1040 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1041 | --disable-largefile omit support for large files | |
1042 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1043 | --disable-gtktest Do not try to compile and run a test GTK program | |
1044 | --disable-sdltest Do not try to compile and run a test SDL program | |
1045 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1046 | --disable-precomp-headers |
1047 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1048 | |
1049 | Optional Packages: | |
1050 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1051 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1052 | --with-gtk use GTK+ | |
1053 | --with-motif use Motif/Lesstif | |
1054 | --with-mac use Mac OS X | |
1055 | --with-cocoa use Cocoa | |
1056 | --with-wine use Wine | |
1057 | --with-msw use MS-Windows | |
1058 | --with-pm use OS/2 Presentation Manager | |
1059 | --with-mgl use SciTech MGL | |
1060 | --with-microwin use MicroWindows | |
1061 | --with-x11 use X11 | |
1062 | --with-libpng use libpng (PNG image format) | |
1063 | --with-libjpeg use libjpeg (JPEG file format) | |
1064 | --with-libtiff use libtiff (TIFF file format) | |
1065 | --with-libxpm use libxpm (XPM file format) | |
1066 | --with-libmspack use libmspack (CHM help files loading) | |
1067 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1068 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1069 | --with-opengl use OpenGL (or Mesa) |
1070 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1071 | --with-regex enable support for wxRegEx class | |
1072 | --with-zlib use zlib for LZW compression | |
1073 | --with-odbc use the IODBC and wxODBC classes | |
1074 | --with-expat enable XML support using expat parser | |
ceec2216 | 1075 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1076 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1077 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1078 | --with-x use the X Window System | |
1079 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1080 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1081 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1082 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1083 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1084 | ||
1085 | Some influential environment variables: | |
dcc1b6ad VS |
1086 | CC C compiler command |
1087 | CFLAGS C compiler flags | |
1088 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1089 | nonstandard directory <lib dir> | |
1090 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1091 | headers in a nonstandard directory <include dir> | |
1092 | CPP C preprocessor | |
1093 | CXX C++ compiler command | |
1094 | CXXFLAGS C++ compiler flags | |
1095 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1096 | |
1097 | Use these variables to override the choices made by `configure' or to help | |
1098 | it to find libraries and programs with nonstandard names/locations. | |
1099 | ||
77ffb593 | 1100 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1101 | _ACEOF |
1102 | fi | |
1103 | ||
1104 | if test "$ac_init_help" = "recursive"; then | |
1105 | # If there are subdirs, report their specific --help. | |
1106 | ac_popdir=`pwd` | |
1107 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1108 | test -d $ac_dir || continue | |
1109 | ac_builddir=. | |
1110 | ||
1111 | if test "$ac_dir" != .; then | |
1112 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1113 | # A "../" for each directory in $ac_dir_suffix. | |
1114 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1115 | else | |
1116 | ac_dir_suffix= ac_top_builddir= | |
1117 | fi | |
1118 | ||
1119 | case $srcdir in | |
1120 | .) # No --srcdir option. We are building in place. | |
1121 | ac_srcdir=. | |
1122 | if test -z "$ac_top_builddir"; then | |
1123 | ac_top_srcdir=. | |
1124 | else | |
1125 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1126 | fi ;; | |
1127 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1128 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1129 | ac_top_srcdir=$srcdir ;; | |
1130 | *) # Relative path. | |
1131 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1132 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1133 | esac | |
ac1cb8d3 VS |
1134 | |
1135 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1136 | # the directories may not exist. | |
1137 | case `pwd` in | |
1138 | .) ac_abs_builddir="$ac_dir";; | |
1139 | *) | |
1140 | case "$ac_dir" in | |
1141 | .) ac_abs_builddir=`pwd`;; | |
1142 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1143 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1144 | esac;; | |
1145 | esac | |
1146 | case $ac_abs_builddir in | |
1147 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1148 | *) | |
1149 | case ${ac_top_builddir}. in | |
1150 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1151 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1152 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1153 | esac;; | |
1154 | esac | |
1155 | case $ac_abs_builddir in | |
1156 | .) ac_abs_srcdir=$ac_srcdir;; | |
1157 | *) | |
1158 | case $ac_srcdir in | |
1159 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1160 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1161 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1162 | esac;; | |
1163 | esac | |
1164 | case $ac_abs_builddir in | |
1165 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1166 | *) | |
1167 | case $ac_top_srcdir in | |
1168 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1169 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1170 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1171 | esac;; | |
1172 | esac | |
a848cd7e SC |
1173 | |
1174 | cd $ac_dir | |
1175 | # Check for guested configure; otherwise get Cygnus style configure. | |
1176 | if test -f $ac_srcdir/configure.gnu; then | |
1177 | echo | |
1178 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1179 | elif test -f $ac_srcdir/configure; then | |
1180 | echo | |
1181 | $SHELL $ac_srcdir/configure --help=recursive | |
1182 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1183 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1184 | echo |
1185 | $ac_configure --help | |
1186 | else | |
1187 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1188 | fi | |
89be85c2 | 1189 | cd $ac_popdir |
a848cd7e SC |
1190 | done |
1191 | fi | |
1192 | ||
1193 | test -n "$ac_init_help" && exit 0 | |
1194 | if $ac_init_version; then | |
1195 | cat <<\_ACEOF | |
81f90336 | 1196 | wxWidgets configure 2.5.4 |
ac1cb8d3 | 1197 | generated by GNU Autoconf 2.59 |
a848cd7e | 1198 | |
ac1cb8d3 | 1199 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1200 | This configure script is free software; the Free Software Foundation |
1201 | gives unlimited permission to copy, distribute and modify it. | |
1202 | _ACEOF | |
1203 | exit 0 | |
1204 | fi | |
1205 | exec 5>config.log | |
1206 | cat >&5 <<_ACEOF | |
1207 | This file contains any messages produced by compilers while | |
1208 | running configure, to aid debugging if configure makes a mistake. | |
1209 | ||
81f90336 | 1210 | It was created by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 1211 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1212 | |
1213 | $ $0 $@ | |
1214 | ||
1215 | _ACEOF | |
1216 | { | |
1217 | cat <<_ASUNAME | |
1218 | ## --------- ## | |
1219 | ## Platform. ## | |
1220 | ## --------- ## | |
1221 | ||
1222 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1223 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1224 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1225 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1226 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1227 | ||
1228 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1229 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1230 | ||
1231 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1232 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1233 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1234 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1235 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1236 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1237 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1238 | ||
1239 | _ASUNAME | |
1240 | ||
1241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1242 | for as_dir in $PATH | |
1243 | do | |
1244 | IFS=$as_save_IFS | |
1245 | test -z "$as_dir" && as_dir=. | |
1246 | echo "PATH: $as_dir" | |
1247 | done | |
1248 | ||
1249 | } >&5 | |
1250 | ||
1251 | cat >&5 <<_ACEOF | |
1252 | ||
1253 | ||
1254 | ## ----------- ## | |
1255 | ## Core tests. ## | |
1256 | ## ----------- ## | |
1257 | ||
1258 | _ACEOF | |
1259 | ||
1260 | ||
1261 | # Keep a trace of the command line. | |
1262 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1263 | # Strip out --silent because we don't want to record it for future runs. | |
1264 | # Also quote any args containing shell meta-characters. | |
1265 | # Make two passes to allow for proper duplicate-argument suppression. | |
1266 | ac_configure_args= | |
1267 | ac_configure_args0= | |
1268 | ac_configure_args1= | |
1269 | ac_sep= | |
1270 | ac_must_keep_next=false | |
1271 | for ac_pass in 1 2 | |
1272 | do | |
1273 | for ac_arg | |
1274 | do | |
1275 | case $ac_arg in | |
1276 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1277 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1278 | | -silent | --silent | --silen | --sile | --sil) | |
1279 | continue ;; | |
1280 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1281 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1282 | esac | |
1283 | case $ac_pass in | |
1284 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1285 | 2) | |
1286 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1287 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1288 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1289 | else |
ac1cb8d3 VS |
1290 | case $ac_arg in |
1291 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1292 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1293 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1294 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1295 | case "$ac_configure_args0 " in | |
1296 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1297 | esac | |
1298 | ;; | |
1299 | -* ) ac_must_keep_next=true ;; | |
1300 | esac | |
a848cd7e SC |
1301 | fi |
1302 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1303 | # Get rid of the leading space. | |
1304 | ac_sep=" " | |
1305 | ;; | |
1306 | esac | |
1307 | done | |
1308 | done | |
1309 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1310 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1311 | ||
1312 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1313 | # config.log. We remove comments because anyway the quotes in there | |
1314 | # would cause problems or look ugly. | |
1315 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1316 | # such as our DU 5.0 friend, will then `close' the trap. | |
1317 | trap 'exit_status=$? | |
1318 | # Save into config.log some information that might help in debugging. | |
1319 | { | |
1320 | echo | |
1321 | ||
1322 | cat <<\_ASBOX | |
1323 | ## ---------------- ## | |
1324 | ## Cache variables. ## | |
1325 | ## ---------------- ## | |
1326 | _ASBOX | |
1327 | echo | |
1328 | # The following way of writing the cache mishandles newlines in values, | |
1329 | { | |
1330 | (set) 2>&1 | | |
1331 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1332 | *ac_space=\ *) | |
1333 | sed -n \ | |
ac1cb8d3 VS |
1334 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1335 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1336 | ;; |
1337 | *) | |
1338 | sed -n \ | |
ac1cb8d3 | 1339 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1340 | ;; |
1341 | esac; | |
1342 | } | |
1343 | echo | |
1344 | ||
1345 | cat <<\_ASBOX | |
1346 | ## ----------------- ## | |
1347 | ## Output variables. ## | |
1348 | ## ----------------- ## | |
1349 | _ASBOX | |
1350 | echo | |
1351 | for ac_var in $ac_subst_vars | |
1352 | do | |
1353 | eval ac_val=$`echo $ac_var` | |
1354 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1355 | done | sort | |
1356 | echo | |
1357 | ||
1358 | if test -n "$ac_subst_files"; then | |
1359 | cat <<\_ASBOX | |
1360 | ## ------------- ## | |
1361 | ## Output files. ## | |
1362 | ## ------------- ## | |
1363 | _ASBOX | |
1364 | echo | |
1365 | for ac_var in $ac_subst_files | |
1366 | do | |
1367 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1368 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1369 | done | sort |
1370 | echo | |
1371 | fi | |
1372 | ||
1373 | if test -s confdefs.h; then | |
1374 | cat <<\_ASBOX | |
1375 | ## ----------- ## | |
1376 | ## confdefs.h. ## | |
1377 | ## ----------- ## | |
1378 | _ASBOX | |
1379 | echo | |
1380 | sed "/^$/d" confdefs.h | sort | |
1381 | echo | |
1382 | fi | |
1383 | test "$ac_signal" != 0 && | |
1384 | echo "$as_me: caught signal $ac_signal" | |
1385 | echo "$as_me: exit $exit_status" | |
1386 | } >&5 | |
ac1cb8d3 | 1387 | rm -f core *.core && |
a848cd7e SC |
1388 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1389 | exit $exit_status | |
1390 | ' 0 | |
1391 | for ac_signal in 1 2 13 15; do | |
1392 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1393 | done | |
1394 | ac_signal=0 | |
1395 | ||
1396 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1397 | rm -rf conftest* confdefs.h | |
1398 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1399 | echo >confdefs.h | |
1400 | ||
1401 | # Predefined preprocessor variables. | |
1402 | ||
1403 | cat >>confdefs.h <<_ACEOF | |
1404 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1405 | _ACEOF | |
1406 | ||
1407 | ||
1408 | cat >>confdefs.h <<_ACEOF | |
1409 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1410 | _ACEOF | |
1411 | ||
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | cat >>confdefs.h <<_ACEOF | |
1424 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1425 | _ACEOF | |
1426 | ||
1427 | ||
1428 | # Let the site file select an alternate cache file if it wants to. | |
1429 | # Prefer explicitly selected file to automatically selected ones. | |
1430 | if test -z "$CONFIG_SITE"; then | |
1431 | if test "x$prefix" != xNONE; then | |
1432 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1433 | else | |
1434 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1435 | fi | |
1436 | fi | |
1437 | for ac_site_file in $CONFIG_SITE; do | |
1438 | if test -r "$ac_site_file"; then | |
1439 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1440 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1441 | sed 's/^/| /' "$ac_site_file" >&5 | |
1442 | . "$ac_site_file" | |
1443 | fi | |
1444 | done | |
1445 | ||
1446 | if test -r "$cache_file"; then | |
1447 | # Some versions of bash will fail to source /dev/null (special | |
1448 | # files actually), so we avoid doing that. | |
1449 | if test -f "$cache_file"; then | |
1450 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1451 | echo "$as_me: loading cache $cache_file" >&6;} | |
1452 | case $cache_file in | |
1453 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1454 | *) . ./$cache_file;; | |
1455 | esac | |
1456 | fi | |
1457 | else | |
1458 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1459 | echo "$as_me: creating cache $cache_file" >&6;} | |
1460 | >$cache_file | |
1461 | fi | |
1462 | ||
1463 | # Check that the precious variables saved in the cache have kept the same | |
1464 | # value. | |
1465 | ac_cache_corrupted=false | |
1466 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1467 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1468 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1469 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1470 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1471 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1472 | case $ac_old_set,$ac_new_set in | |
1473 | set,) | |
1474 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1475 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1476 | ac_cache_corrupted=: ;; | |
1477 | ,set) | |
1478 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1479 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1480 | ac_cache_corrupted=: ;; | |
1481 | ,);; | |
1482 | *) | |
1483 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1484 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1485 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1486 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1487 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1488 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1489 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1490 | ac_cache_corrupted=: |
a848cd7e SC |
1491 | fi;; |
1492 | esac | |
1493 | # Pass precious variables to config.status. | |
1494 | if test "$ac_new_set" = set; then | |
1495 | case $ac_new_val in | |
1496 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1497 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1498 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1499 | esac | |
1500 | case " $ac_configure_args " in | |
1501 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1502 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1503 | esac | |
1504 | fi | |
1505 | done | |
1506 | if $ac_cache_corrupted; then | |
1507 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1508 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1509 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1510 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1511 | { (exit 1); exit 1; }; } | |
1512 | fi | |
1513 | ||
1514 | ac_ext=c | |
1515 | ac_cpp='$CPP $CPPFLAGS' | |
1516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ac_aux_dir= | |
1550 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1551 | if test -f $ac_dir/install-sh; then | |
1552 | ac_aux_dir=$ac_dir | |
1553 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1554 | break | |
1555 | elif test -f $ac_dir/install.sh; then | |
1556 | ac_aux_dir=$ac_dir | |
1557 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1558 | break | |
1559 | elif test -f $ac_dir/shtool; then | |
1560 | ac_aux_dir=$ac_dir | |
1561 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1562 | break | |
1563 | fi | |
1564 | done | |
1565 | if test -z "$ac_aux_dir"; then | |
1566 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1567 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1568 | { (exit 1); exit 1; }; } | |
1569 | fi | |
1570 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1571 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1572 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1573 | ||
1574 | # Make sure we can run config.sub. | |
1575 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1576 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1577 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1578 | { (exit 1); exit 1; }; } | |
1579 | ||
1580 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1581 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1582 | if test "${ac_cv_build+set}" = set; then | |
1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1584 | else | |
1585 | ac_cv_build_alias=$build_alias | |
1586 | test -z "$ac_cv_build_alias" && | |
1587 | ac_cv_build_alias=`$ac_config_guess` | |
1588 | test -z "$ac_cv_build_alias" && | |
1589 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1590 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1591 | { (exit 1); exit 1; }; } | |
1592 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1593 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1594 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1595 | { (exit 1); exit 1; }; } | |
1596 | ||
1597 | fi | |
1598 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1599 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1600 | build=$ac_cv_build | |
1601 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1602 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1603 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1604 | ||
1605 | ||
1606 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1607 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1608 | if test "${ac_cv_host+set}" = set; then | |
1609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1610 | else | |
1611 | ac_cv_host_alias=$host_alias | |
1612 | test -z "$ac_cv_host_alias" && | |
1613 | ac_cv_host_alias=$ac_cv_build_alias | |
1614 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1615 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1616 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1617 | { (exit 1); exit 1; }; } | |
1618 | ||
1619 | fi | |
1620 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1621 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1622 | host=$ac_cv_host | |
1623 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1624 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1625 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1626 | ||
1627 | ||
1628 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1629 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1630 | if test "${ac_cv_target+set}" = set; then | |
1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1632 | else | |
1633 | ac_cv_target_alias=$target_alias | |
1634 | test "x$ac_cv_target_alias" = "x" && | |
1635 | ac_cv_target_alias=$ac_cv_host_alias | |
1636 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1637 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1638 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1639 | { (exit 1); exit 1; }; } | |
1640 | ||
1641 | fi | |
1642 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1643 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1644 | target=$ac_cv_target | |
1645 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1646 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1647 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1648 | ||
1649 | ||
1650 | # The aliases save the names the user supplied, while $host etc. | |
1651 | # will get canonicalized. | |
1652 | test -n "$target_alias" && | |
1653 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1654 | NONENONEs,x,x, && | |
1655 | program_prefix=${target_alias}- | |
1656 | ||
1657 | ||
1658 | ||
ceec2216 RL |
1659 | wx_major_version_number=2 |
1660 | wx_minor_version_number=5 | |
e41c39d6 RD |
1661 | wx_release_number=4 |
1662 | wx_subrelease_number=0 | |
a848cd7e | 1663 | |
ceec2216 RL |
1664 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1665 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1666 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1667 | |
ceec2216 | 1668 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1669 | |
e41c39d6 | 1670 | WX_CURRENT=4 |
a848cd7e | 1671 | WX_REVISION=0 |
e41c39d6 | 1672 | WX_AGE=4 |
a848cd7e SC |
1673 | |
1674 | ||
1675 | ||
1676 | USE_UNIX=1 | |
1677 | USE_OS2=0 | |
1678 | USE_WIN32=0 | |
1679 | USE_DOS=0 | |
1680 | USE_BEOS=0 | |
1681 | USE_MAC=0 | |
1682 | ||
1683 | USE_AIX= | |
1684 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1685 | USE_GNU= USE_HPUX= | |
1686 | USE_LINUX= | |
1687 | USE_NETBSD= | |
1688 | USE_OPENBSD= | |
1689 | USE_OSF= USE_SGI= | |
1690 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1691 | USE_ULTRIX= | |
1692 | USE_UNIXWARE= | |
1693 | ||
1694 | USE_ALPHA= | |
1695 | ||
1696 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1697 | ||
1698 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1699 | ||
1700 | DEFAULT_wxUSE_COCOA=0 | |
1701 | DEFAULT_wxUSE_GTK=0 | |
1702 | DEFAULT_wxUSE_MAC=0 | |
1703 | DEFAULT_wxUSE_MGL=0 | |
1704 | DEFAULT_wxUSE_MICROWIN=0 | |
1705 | DEFAULT_wxUSE_MOTIF=0 | |
1706 | DEFAULT_wxUSE_MSW=0 | |
1707 | DEFAULT_wxUSE_PM=0 | |
1708 | DEFAULT_wxUSE_X11=0 | |
1709 | ||
1710 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1719 | ||
1720 | PROGRAM_EXT= | |
1721 | SO_SUFFIX=so | |
1722 | SAMPLES_RPATH_FLAG= | |
1723 | SAMPLES_RPATH_POSTLINK= | |
1724 | ||
1725 | case "${host}" in | |
1726 | *-hp-hpux* ) | |
1727 | USE_HPUX=1 | |
1728 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1729 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1730 | SO_SUFFIX=sl | |
1731 | cat >>confdefs.h <<\_ACEOF | |
1732 | #define __HPUX__ 1 | |
1733 | _ACEOF | |
1734 | ||
1735 | ;; | |
1736 | *-*-linux* ) | |
1737 | USE_LINUX=1 | |
1738 | cat >>confdefs.h <<\_ACEOF | |
1739 | #define __LINUX__ 1 | |
1740 | _ACEOF | |
1741 | ||
1742 | TMP=`uname -m` | |
1743 | if test "x$TMP" = "xalpha"; then | |
1744 | USE_ALPHA=1 | |
1745 | cat >>confdefs.h <<\_ACEOF | |
1746 | #define __ALPHA__ 1 | |
1747 | _ACEOF | |
1748 | ||
1749 | fi | |
1750 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1751 | ;; | |
1752 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1753 | USE_GNU=1 | |
1754 | TMP=`uname -m` | |
1755 | if test "x$TMP" = "xalpha"; then | |
1756 | USE_ALPHA=1 | |
1757 | cat >>confdefs.h <<\_ACEOF | |
1758 | #define __ALPHA__ 1 | |
1759 | _ACEOF | |
1760 | ||
1761 | fi | |
1762 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1763 | ;; | |
1764 | *-*-irix5* | *-*-irix6* ) | |
1765 | USE_SGI=1 | |
1766 | USE_SVR4=1 | |
1767 | cat >>confdefs.h <<\_ACEOF | |
1768 | #define __SGI__ 1 | |
1769 | _ACEOF | |
1770 | ||
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __SVR4__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1776 | ;; | |
1777 | *-*-solaris2* ) | |
1778 | USE_SUN=1 | |
1779 | USE_SOLARIS=1 | |
1780 | USE_SVR4=1 | |
1781 | cat >>confdefs.h <<\_ACEOF | |
1782 | #define __SUN__ 1 | |
1783 | _ACEOF | |
1784 | ||
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SOLARIS__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SVR4__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1794 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1795 | ;; | |
1796 | *-*-sunos4* ) | |
1797 | USE_SUN=1 | |
1798 | USE_SUNOS=1 | |
1799 | USE_BSD=1 | |
1800 | cat >>confdefs.h <<\_ACEOF | |
1801 | #define __SUN__ 1 | |
1802 | _ACEOF | |
1803 | ||
1804 | cat >>confdefs.h <<\_ACEOF | |
1805 | #define __SUNOS__ 1 | |
1806 | _ACEOF | |
1807 | ||
1808 | cat >>confdefs.h <<\_ACEOF | |
1809 | #define __BSD__ 1 | |
1810 | _ACEOF | |
1811 | ||
1812 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1813 | ;; | |
1814 | *-*-freebsd*) | |
1815 | USE_BSD=1 | |
1816 | USE_FREEBSD=1 | |
1817 | cat >>confdefs.h <<\_ACEOF | |
1818 | #define __FREEBSD__ 1 | |
1819 | _ACEOF | |
1820 | ||
1821 | cat >>confdefs.h <<\_ACEOF | |
1822 | #define __BSD__ 1 | |
1823 | _ACEOF | |
1824 | ||
1825 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1826 | ;; | |
1827 | *-*-openbsd*) | |
1828 | USE_BSD=1 | |
1829 | USE_OPENBSD=1 | |
1830 | cat >>confdefs.h <<\_ACEOF | |
1831 | #define __OPENBSD__ 1 | |
1832 | _ACEOF | |
1833 | ||
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __BSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1839 | ;; | |
1840 | *-*-netbsd*) | |
1841 | USE_BSD=1 | |
1842 | USE_NETBSD=1 | |
1843 | cat >>confdefs.h <<\_ACEOF | |
1844 | #define __NETBSD__ 1 | |
1845 | _ACEOF | |
1846 | ||
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __BSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1852 | ;; | |
1853 | *-*-osf* ) | |
1854 | USE_ALPHA=1 | |
1855 | USE_OSF=1 | |
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __ALPHA__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __OSF__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1865 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1866 | ;; | |
1867 | *-*-dgux5* ) | |
1868 | USE_ALPHA=1 | |
1869 | USE_SVR4=1 | |
1870 | cat >>confdefs.h <<\_ACEOF | |
1871 | #define __ALPHA__ 1 | |
1872 | _ACEOF | |
1873 | ||
1874 | cat >>confdefs.h <<\_ACEOF | |
1875 | #define __SVR4__ 1 | |
1876 | _ACEOF | |
1877 | ||
1878 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1879 | ;; | |
1880 | *-*-sysv5* ) | |
1881 | USE_SYSV=1 | |
1882 | USE_SVR4=1 | |
1883 | cat >>confdefs.h <<\_ACEOF | |
1884 | #define __SYSV__ 1 | |
1885 | _ACEOF | |
1886 | ||
1887 | cat >>confdefs.h <<\_ACEOF | |
1888 | #define __SVR4__ 1 | |
1889 | _ACEOF | |
1890 | ||
1891 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1892 | ;; | |
1893 | *-*-aix* ) | |
1894 | USE_AIX=1 | |
1895 | USE_SYSV=1 | |
1896 | USE_SVR4=1 | |
1897 | SO_SUFFIX=a | |
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __AIX__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __SYSV__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __SVR4__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1911 | ;; | |
1912 | ||
1913 | *-*-*UnixWare*) | |
1914 | USE_SYSV=1 | |
1915 | USE_SVR4=1 | |
1916 | USE_UNIXWARE=1 | |
1917 | cat >>confdefs.h <<\_ACEOF | |
1918 | #define __UNIXWARE__ 1 | |
1919 | _ACEOF | |
1920 | ||
1921 | ;; | |
1922 | ||
1923 | *-*-cygwin* | *-*-mingw32* ) | |
1924 | SO_SUFFIX=dll | |
1925 | PROGRAM_EXT=".exe" | |
1926 | RESCOMP=windres | |
1927 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1928 | ;; | |
1929 | ||
1930 | *-pc-msdosdjgpp ) | |
1931 | USE_UNIX=0 | |
1932 | USE_DOS=1 | |
1933 | cat >>confdefs.h <<\_ACEOF | |
1934 | #define __DOS__ 1 | |
1935 | _ACEOF | |
1936 | ||
1937 | PROGRAM_EXT=".exe" | |
1938 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1939 | LIBS="$LIBS -lstdc++" | |
1940 | ;; | |
1941 | ||
1942 | *-pc-os2_emx | *-pc-os2-emx ) | |
1943 | cat >>confdefs.h <<\_ACEOF | |
1944 | #define __EMX__ 1 | |
1945 | _ACEOF | |
1946 | ||
1947 | USE_OS2=1 | |
1948 | cat >>confdefs.h <<\_ACEOF | |
1949 | #define __OS2__ 1 | |
1950 | _ACEOF | |
1951 | ||
1952 | PROGRAM_EXT=".exe" | |
1953 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1954 | CXX=gcc | |
1955 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1956 | ac_executable_extensions=".exe" | |
1957 | export ac_executable_extensions | |
1958 | ac_save_IFS="$IFS" | |
1959 | IFS='\\' | |
1960 | ac_TEMP_PATH= | |
1961 | for ac_dir in $PATH; do | |
1962 | IFS=$ac_save_IFS | |
1963 | if test -z "$ac_TEMP_PATH"; then | |
1964 | ac_TEMP_PATH="$ac_dir" | |
1965 | else | |
1966 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1967 | fi | |
1968 | done | |
1969 | export PATH="$ac_TEMP_PATH" | |
1970 | unset ac_TEMP_PATH | |
1971 | ;; | |
1972 | ||
1973 | powerpc-*-darwin* ) | |
1974 | USE_BSD=1 | |
1975 | USE_DARWIN=1 | |
1976 | SO_SUFFIX=dylib | |
1977 | cat >>confdefs.h <<\_ACEOF | |
1978 | #define __BSD__ 1 | |
1979 | _ACEOF | |
1980 | ||
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __DARWIN__ 1 | |
1983 | _ACEOF | |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define __POWERPC__ 1 | |
1987 | _ACEOF | |
1988 | ||
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define TARGET_CARBON 1 | |
1991 | _ACEOF | |
1992 | ||
1993 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1994 | ;; | |
1e9e8aba DE |
1995 | powerpc-apple-macos* ) |
1996 | USE_UNIX=0 | |
1997 | ac_cv_c_bigendian=yes | |
1998 | SO_SUFFIX=shlib | |
1999 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
2000 | ;; | |
a848cd7e SC |
2001 | |
2002 | *-*-beos* ) | |
2003 | USE_BEOS=1 | |
2004 | cat >>confdefs.h <<\_ACEOF | |
2005 | #define __BEOS__ 1 | |
2006 | _ACEOF | |
2007 | ||
2008 | ;; | |
2009 | ||
2010 | *) | |
2011 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2012 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2013 | { (exit 1); exit 1; }; } | |
2014 | esac | |
2015 | ||
2016 | ||
2017 | ||
2018 | ||
2019 | wx_arg_cache_file="configarg.cache" | |
2020 | echo "loading argument cache $wx_arg_cache_file" | |
2021 | rm -f ${wx_arg_cache_file}.tmp | |
2022 | touch ${wx_arg_cache_file}.tmp | |
2023 | touch ${wx_arg_cache_file} | |
2024 | ||
2025 | ||
2026 | DEBUG_CONFIGURE=0 | |
2027 | if test $DEBUG_CONFIGURE = 1; then | |
2028 | DEFAULT_wxUSE_UNIVERSAL=no | |
2029 | DEFAULT_wxUSE_STL=no | |
2030 | ||
2031 | DEFAULT_wxUSE_NANOX=no | |
2032 | ||
2033 | DEFAULT_wxUSE_THREADS=yes | |
2034 | ||
2035 | DEFAULT_wxUSE_SHARED=yes | |
2036 | DEFAULT_wxUSE_OPTIMISE=no | |
2037 | DEFAULT_wxUSE_PROFILE=no | |
2038 | DEFAULT_wxUSE_NO_DEPS=no | |
2039 | DEFAULT_wxUSE_NO_RTTI=no | |
2040 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2041 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2042 | DEFAULT_wxUSE_PERMISSIVE=no |
2043 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2044 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2045 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2046 | DEFAULT_wxUSE_MEM_TRACING=no | |
2047 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2048 | DEFAULT_wxUSE_DMALLOC=no | |
2049 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2050 | ||
2051 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2052 | DEFAULT_wxUSE_LOG=yes | |
2053 | DEFAULT_wxUSE_LOGWINDOW=no | |
2054 | DEFAULT_wxUSE_LOGGUI=no | |
2055 | DEFAULT_wxUSE_LOGDIALOG=no | |
2056 | ||
2057 | DEFAULT_wxUSE_GUI=yes | |
2058 | DEFAULT_wxUSE_CONTROLS=no | |
2059 | ||
2060 | DEFAULT_wxUSE_REGEX=no | |
2061 | DEFAULT_wxUSE_XML=no | |
2062 | DEFAULT_wxUSE_EXPAT=no | |
2063 | DEFAULT_wxUSE_ZLIB=no | |
2064 | DEFAULT_wxUSE_LIBPNG=no | |
2065 | DEFAULT_wxUSE_LIBJPEG=no | |
2066 | DEFAULT_wxUSE_LIBTIFF=no | |
2067 | DEFAULT_wxUSE_LIBXPM=no | |
2068 | DEFAULT_wxUSE_LIBMSPACK=no | |
2069 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2070 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2071 | DEFAULT_wxUSE_ODBC=no |
2072 | DEFAULT_wxUSE_OPENGL=no | |
2073 | ||
2074 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2075 | DEFAULT_wxUSE_STACKWALKER=no |
a848cd7e SC |
2076 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2077 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2078 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2079 | DEFAULT_wxUSE_DATETIME=no | |
2080 | DEFAULT_wxUSE_TIMER=no | |
2081 | DEFAULT_wxUSE_STOPWATCH=no | |
2082 | DEFAULT_wxUSE_FILE=no | |
2083 | DEFAULT_wxUSE_FFILE=no | |
2084 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2085 | DEFAULT_wxUSE_TEXTFILE=no | |
2086 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2087 | DEFAULT_wxUSE_MEDIACTRL=no |
2088 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2089 | DEFAULT_wxUSE_INTL=no |
2090 | DEFAULT_wxUSE_CONFIG=no | |
2091 | DEFAULT_wxUSE_FONTMAP=no | |
2092 | DEFAULT_wxUSE_STREAMS=no | |
2093 | DEFAULT_wxUSE_SOCKETS=no | |
2094 | DEFAULT_wxUSE_OLE=no | |
2095 | DEFAULT_wxUSE_DATAOBJ=no | |
2096 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2097 | DEFAULT_wxUSE_JOYSTICK=no | |
2098 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2099 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2100 | DEFAULT_wxUSE_LONGLONG=no | |
2101 | DEFAULT_wxUSE_GEOMETRY=no | |
2102 | ||
2103 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2104 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2105 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2106 | ||
2107 | DEFAULT_wxUSE_CLIPBOARD=no | |
2108 | DEFAULT_wxUSE_TOOLTIPS=no | |
2109 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2110 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2111 | DEFAULT_wxUSE_SPLINES=no | |
2112 | ||
8a7b1113 | 2113 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2114 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2115 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2116 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2117 | ||
2118 | DEFAULT_wxUSE_RESOURCES=no | |
2119 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2120 | DEFAULT_wxUSE_IPC=no | |
2121 | DEFAULT_wxUSE_HELP=no | |
2122 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2123 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2124 | DEFAULT_wxUSE_TREELAYOUT=no | |
2125 | DEFAULT_wxUSE_METAFILE=no | |
2126 | DEFAULT_wxUSE_MIMETYPE=no | |
2127 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2128 | DEFAULT_wxUSE_PROTOCOL=no | |
2129 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2130 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2131 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2132 | DEFAULT_wxUSE_URL=no | |
2133 | ||
2134 | DEFAULT_wxUSE_COMMONDLGS=no | |
2135 | DEFAULT_wxUSE_CHOICEDLG=no | |
2136 | DEFAULT_wxUSE_COLOURDLG=no | |
2137 | DEFAULT_wxUSE_DIRDLG=no | |
2138 | DEFAULT_wxUSE_FILEDLG=no | |
2139 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2140 | DEFAULT_wxUSE_FONTDLG=no | |
2141 | DEFAULT_wxUSE_MSGDLG=no | |
2142 | DEFAULT_wxUSE_NUMBERDLG=no | |
2143 | DEFAULT_wxUSE_TEXTDLG=no | |
2144 | DEFAULT_wxUSE_SPLASH=no | |
2145 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2146 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2147 | DEFAULT_wxUSE_WIZARDDLG=no | |
2148 | ||
2149 | DEFAULT_wxUSE_MENUS=no | |
2150 | DEFAULT_wxUSE_MINIFRAME=no | |
2151 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2152 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2153 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2154 | DEFAULT_wxUSE_FILESYSTEM=no |
2155 | DEFAULT_wxUSE_FS_INET=no | |
2156 | DEFAULT_wxUSE_FS_ZIP=no | |
2157 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2158 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2159 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2160 | DEFAULT_wxUSE_VALIDATORS=no |
2161 | ||
2162 | DEFAULT_wxUSE_ACCEL=no | |
2163 | DEFAULT_wxUSE_BUTTON=no | |
2164 | DEFAULT_wxUSE_BMPBUTTON=no | |
2165 | DEFAULT_wxUSE_CALCTRL=no | |
2166 | DEFAULT_wxUSE_CARET=no | |
2167 | DEFAULT_wxUSE_CHECKBOX=no | |
2168 | DEFAULT_wxUSE_CHECKLST=no | |
2169 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2170 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2171 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2172 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2173 | DEFAULT_wxUSE_DISPLAY=no |
2174 | DEFAULT_wxUSE_GAUGE=no | |
2175 | DEFAULT_wxUSE_GRID=no | |
2176 | DEFAULT_wxUSE_IMAGLIST=no | |
2177 | DEFAULT_wxUSE_LISTBOOK=no | |
2178 | DEFAULT_wxUSE_LISTBOX=no | |
2179 | DEFAULT_wxUSE_LISTCTRL=no | |
2180 | DEFAULT_wxUSE_NOTEBOOK=no | |
2181 | DEFAULT_wxUSE_RADIOBOX=no | |
2182 | DEFAULT_wxUSE_RADIOBTN=no | |
2183 | DEFAULT_wxUSE_SASH=no | |
2184 | DEFAULT_wxUSE_SCROLLBAR=no | |
2185 | DEFAULT_wxUSE_SLIDER=no | |
2186 | DEFAULT_wxUSE_SPINBTN=no | |
2187 | DEFAULT_wxUSE_SPINCTRL=no | |
2188 | DEFAULT_wxUSE_SPLITTER=no | |
2189 | DEFAULT_wxUSE_STATBMP=no | |
2190 | DEFAULT_wxUSE_STATBOX=no | |
2191 | DEFAULT_wxUSE_STATLINE=no | |
2192 | DEFAULT_wxUSE_STATTEXT=no | |
2193 | DEFAULT_wxUSE_STATUSBAR=yes | |
2194 | DEFAULT_wxUSE_TABDIALOG=no | |
2195 | DEFAULT_wxUSE_TEXTCTRL=no | |
2196 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2197 | DEFAULT_wxUSE_TOOLBAR=no | |
2198 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2199 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2200 | DEFAULT_wxUSE_TREECTRL=no | |
2201 | DEFAULT_wxUSE_POPUPWIN=no | |
2202 | DEFAULT_wxUSE_TIPWINDOW=no | |
2203 | ||
2204 | DEFAULT_wxUSE_UNICODE=no | |
2205 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2206 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2207 | ||
2208 | DEFAULT_wxUSE_PALETTE=no | |
2209 | DEFAULT_wxUSE_IMAGE=no | |
2210 | DEFAULT_wxUSE_GIF=no | |
2211 | DEFAULT_wxUSE_PCX=no | |
2212 | DEFAULT_wxUSE_PNM=no | |
2213 | DEFAULT_wxUSE_IFF=no | |
2214 | DEFAULT_wxUSE_XPM=no | |
2215 | DEFAULT_wxUSE_ICO_CUR=no | |
2216 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2217 | ||
2218 | DEFAULT_wxUSE_MONOLITHIC=no | |
2219 | DEFAULT_wxUSE_PLUGINS=no | |
2220 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2221 | else | |
2222 | DEFAULT_wxUSE_UNIVERSAL=no | |
2223 | DEFAULT_wxUSE_STL=no | |
2224 | ||
2225 | DEFAULT_wxUSE_NANOX=no | |
2226 | ||
2227 | DEFAULT_wxUSE_THREADS=yes | |
2228 | ||
2229 | DEFAULT_wxUSE_SHARED=yes | |
2230 | DEFAULT_wxUSE_OPTIMISE=yes | |
2231 | DEFAULT_wxUSE_PROFILE=no | |
2232 | DEFAULT_wxUSE_NO_DEPS=no | |
2233 | DEFAULT_wxUSE_NO_RTTI=no | |
2234 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2235 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2236 | DEFAULT_wxUSE_PERMISSIVE=no |
2237 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2238 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2239 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2240 | DEFAULT_wxUSE_MEM_TRACING=no | |
2241 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2242 | DEFAULT_wxUSE_DMALLOC=no | |
2243 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2244 | ||
2245 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2246 | DEFAULT_wxUSE_LOG=yes | |
2247 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2248 | DEFAULT_wxUSE_LOGGUI=yes | |
2249 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2250 | ||
2251 | DEFAULT_wxUSE_GUI=yes | |
2252 | ||
2253 | DEFAULT_wxUSE_REGEX=yes | |
2254 | DEFAULT_wxUSE_XML=yes | |
2255 | DEFAULT_wxUSE_EXPAT=yes | |
2256 | DEFAULT_wxUSE_ZLIB=yes | |
2257 | DEFAULT_wxUSE_LIBPNG=yes | |
2258 | DEFAULT_wxUSE_LIBJPEG=yes | |
2259 | DEFAULT_wxUSE_LIBTIFF=yes | |
2260 | DEFAULT_wxUSE_LIBXPM=yes | |
2261 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2262 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2263 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2264 | DEFAULT_wxUSE_ODBC=no |
2265 | DEFAULT_wxUSE_OPENGL=no | |
2266 | ||
2267 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2268 | DEFAULT_wxUSE_STACKWALKER=yes |
a848cd7e SC |
2269 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
2270 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2271 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2272 | DEFAULT_wxUSE_DATETIME=yes | |
2273 | DEFAULT_wxUSE_TIMER=yes | |
2274 | DEFAULT_wxUSE_STOPWATCH=yes | |
2275 | DEFAULT_wxUSE_FILE=yes | |
2276 | DEFAULT_wxUSE_FFILE=yes | |
2277 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2278 | DEFAULT_wxUSE_TEXTFILE=yes | |
2279 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2280 | DEFAULT_wxUSE_MEDIACTRL=no |
2281 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2282 | DEFAULT_wxUSE_INTL=yes |
2283 | DEFAULT_wxUSE_CONFIG=yes | |
2284 | DEFAULT_wxUSE_FONTMAP=yes | |
2285 | DEFAULT_wxUSE_STREAMS=yes | |
2286 | DEFAULT_wxUSE_SOCKETS=yes | |
2287 | DEFAULT_wxUSE_OLE=yes | |
2288 | DEFAULT_wxUSE_DATAOBJ=yes | |
2289 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2290 | DEFAULT_wxUSE_JOYSTICK=yes | |
2291 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2292 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2293 | DEFAULT_wxUSE_LONGLONG=yes | |
2294 | DEFAULT_wxUSE_GEOMETRY=yes | |
2295 | ||
2296 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2297 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2298 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2299 | ||
2300 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2301 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2302 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2303 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2304 | DEFAULT_wxUSE_SPLINES=yes | |
2305 | ||
8a7b1113 | 2306 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2307 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2308 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2309 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2310 | ||
2311 | DEFAULT_wxUSE_RESOURCES=no | |
2312 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2313 | DEFAULT_wxUSE_IPC=yes | |
2314 | DEFAULT_wxUSE_HELP=yes | |
2315 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2316 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2317 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2318 | DEFAULT_wxUSE_METAFILE=yes | |
2319 | DEFAULT_wxUSE_MIMETYPE=yes | |
2320 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2321 | DEFAULT_wxUSE_PROTOCOL=yes | |
2322 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2323 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2324 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2325 | DEFAULT_wxUSE_URL=yes | |
2326 | ||
2327 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2328 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2329 | DEFAULT_wxUSE_COLOURDLG=yes | |
2330 | DEFAULT_wxUSE_DIRDLG=yes | |
2331 | DEFAULT_wxUSE_FILEDLG=yes | |
2332 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2333 | DEFAULT_wxUSE_FONTDLG=yes | |
2334 | DEFAULT_wxUSE_MSGDLG=yes | |
2335 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2336 | DEFAULT_wxUSE_TEXTDLG=yes | |
2337 | DEFAULT_wxUSE_SPLASH=yes | |
2338 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2339 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2340 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2341 | ||
2342 | DEFAULT_wxUSE_MENUS=yes | |
2343 | DEFAULT_wxUSE_MINIFRAME=yes | |
2344 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2345 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2346 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2347 | DEFAULT_wxUSE_FILESYSTEM=yes |
2348 | DEFAULT_wxUSE_FS_INET=yes | |
2349 | DEFAULT_wxUSE_FS_ZIP=yes | |
2350 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2351 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2352 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2353 | DEFAULT_wxUSE_VALIDATORS=yes |
2354 | ||
2355 | DEFAULT_wxUSE_ACCEL=yes | |
2356 | DEFAULT_wxUSE_BUTTON=yes | |
2357 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2358 | DEFAULT_wxUSE_CALCTRL=yes | |
2359 | DEFAULT_wxUSE_CARET=yes | |
2360 | DEFAULT_wxUSE_CHECKBOX=yes | |
2361 | DEFAULT_wxUSE_CHECKLST=yes | |
2362 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2363 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2364 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2365 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2366 | DEFAULT_wxUSE_DISPLAY=yes |
2367 | DEFAULT_wxUSE_GAUGE=yes | |
2368 | DEFAULT_wxUSE_GRID=yes | |
2369 | DEFAULT_wxUSE_IMAGLIST=yes | |
2370 | DEFAULT_wxUSE_LISTBOOK=yes | |
2371 | DEFAULT_wxUSE_LISTBOX=yes | |
2372 | DEFAULT_wxUSE_LISTCTRL=yes | |
2373 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2374 | DEFAULT_wxUSE_RADIOBOX=yes | |
2375 | DEFAULT_wxUSE_RADIOBTN=yes | |
2376 | DEFAULT_wxUSE_SASH=yes | |
2377 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2378 | DEFAULT_wxUSE_SLIDER=yes | |
2379 | DEFAULT_wxUSE_SPINBTN=yes | |
2380 | DEFAULT_wxUSE_SPINCTRL=yes | |
2381 | DEFAULT_wxUSE_SPLITTER=yes | |
2382 | DEFAULT_wxUSE_STATBMP=yes | |
2383 | DEFAULT_wxUSE_STATBOX=yes | |
2384 | DEFAULT_wxUSE_STATLINE=yes | |
2385 | DEFAULT_wxUSE_STATTEXT=yes | |
2386 | DEFAULT_wxUSE_STATUSBAR=yes | |
2387 | DEFAULT_wxUSE_TABDIALOG=no | |
2388 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2389 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2390 | DEFAULT_wxUSE_TOOLBAR=yes | |
2391 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2392 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2393 | DEFAULT_wxUSE_TREECTRL=yes | |
2394 | DEFAULT_wxUSE_POPUPWIN=yes | |
2395 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2396 | ||
2397 | DEFAULT_wxUSE_UNICODE=no | |
2398 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2399 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2400 | ||
2401 | DEFAULT_wxUSE_PALETTE=yes | |
2402 | DEFAULT_wxUSE_IMAGE=yes | |
2403 | DEFAULT_wxUSE_GIF=yes | |
2404 | DEFAULT_wxUSE_PCX=yes | |
2405 | DEFAULT_wxUSE_IFF=no | |
2406 | DEFAULT_wxUSE_PNM=yes | |
2407 | DEFAULT_wxUSE_XPM=yes | |
2408 | DEFAULT_wxUSE_ICO_CUR=yes | |
2409 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2410 | ||
2411 | DEFAULT_wxUSE_MONOLITHIC=no | |
2412 | DEFAULT_wxUSE_PLUGINS=no | |
2413 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2414 | |
2415 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2416 | fi |
2417 | ||
2418 | ||
2419 | ||
2420 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2421 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2422 | if test "x$LINE" != "x" ; then | |
2423 | has_toolkit_in_cache=1 | |
2424 | eval "DEFAULT_$LINE" | |
2425 | eval "CACHE_$toolkit=1" | |
2426 | fi | |
2427 | done | |
2428 | ||
2429 | ||
2430 | ||
2431 | enablestring= | |
2432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2433 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2434 | no_cache=0 | |
2435 | # Check whether --enable-gui or --disable-gui was given. | |
2436 | if test "${enable_gui+set}" = set; then | |
2437 | enableval="$enable_gui" | |
2438 | ||
2439 | if test "$enableval" = yes; then | |
2440 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2441 | else | |
2442 | ac_cv_use_gui='wxUSE_GUI=no' | |
2443 | fi | |
2444 | ||
2445 | else | |
2446 | ||
2447 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2448 | if test "x$LINE" != x ; then | |
2449 | eval "DEFAULT_$LINE" | |
2450 | else | |
2451 | no_cache=1 | |
2452 | fi | |
2453 | ||
2454 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2455 | ||
2456 | fi; | |
2457 | ||
2458 | eval "$ac_cv_use_gui" | |
2459 | if test "$no_cache" != 1; then | |
2460 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2461 | fi | |
2462 | ||
2463 | if test "$wxUSE_GUI" = yes; then | |
2464 | echo "$as_me:$LINENO: result: yes" >&5 | |
2465 | echo "${ECHO_T}yes" >&6 | |
2466 | else | |
2467 | echo "$as_me:$LINENO: result: no" >&5 | |
2468 | echo "${ECHO_T}no" >&6 | |
2469 | fi | |
2470 | ||
2471 | ||
2472 | enablestring= | |
2473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2474 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2475 | no_cache=0 | |
2476 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2477 | if test "${enable_monolithic+set}" = set; then | |
2478 | enableval="$enable_monolithic" | |
2479 | ||
2480 | if test "$enableval" = yes; then | |
2481 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2482 | else | |
2483 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2484 | fi | |
2485 | ||
2486 | else | |
2487 | ||
2488 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2489 | if test "x$LINE" != x ; then | |
2490 | eval "DEFAULT_$LINE" | |
2491 | else | |
2492 | no_cache=1 | |
2493 | fi | |
2494 | ||
2495 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2496 | ||
2497 | fi; | |
2498 | ||
2499 | eval "$ac_cv_use_monolithic" | |
2500 | if test "$no_cache" != 1; then | |
2501 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2502 | fi | |
2503 | ||
2504 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2505 | echo "$as_me:$LINENO: result: yes" >&5 | |
2506 | echo "${ECHO_T}yes" >&6 | |
2507 | else | |
2508 | echo "$as_me:$LINENO: result: no" >&5 | |
2509 | echo "${ECHO_T}no" >&6 | |
2510 | fi | |
2511 | ||
2512 | ||
2513 | enablestring= | |
2514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2515 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2516 | no_cache=0 | |
2517 | # Check whether --enable-plugins or --disable-plugins was given. | |
2518 | if test "${enable_plugins+set}" = set; then | |
2519 | enableval="$enable_plugins" | |
2520 | ||
2521 | if test "$enableval" = yes; then | |
2522 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2523 | else | |
2524 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2525 | fi | |
2526 | ||
2527 | else | |
2528 | ||
2529 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2530 | if test "x$LINE" != x ; then | |
2531 | eval "DEFAULT_$LINE" | |
2532 | else | |
2533 | no_cache=1 | |
2534 | fi | |
2535 | ||
2536 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2537 | ||
2538 | fi; | |
2539 | ||
2540 | eval "$ac_cv_use_plugins" | |
2541 | if test "$no_cache" != 1; then | |
2542 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2543 | fi | |
2544 | ||
2545 | if test "$wxUSE_PLUGINS" = yes; then | |
2546 | echo "$as_me:$LINENO: result: yes" >&5 | |
2547 | echo "${ECHO_T}yes" >&6 | |
2548 | else | |
2549 | echo "$as_me:$LINENO: result: no" >&5 | |
2550 | echo "${ECHO_T}no" >&6 | |
2551 | fi | |
2552 | ||
2553 | ||
2554 | if test "$wxUSE_GUI" = "yes"; then | |
2555 | ||
2556 | ||
2557 | enablestring= | |
2558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2559 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2560 | no_cache=0 | |
2561 | # Check whether --enable-universal or --disable-universal was given. | |
2562 | if test "${enable_universal+set}" = set; then | |
2563 | enableval="$enable_universal" | |
2564 | ||
2565 | if test "$enableval" = yes; then | |
2566 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2567 | else | |
2568 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2569 | fi | |
2570 | ||
2571 | else | |
2572 | ||
2573 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2574 | if test "x$LINE" != x ; then | |
2575 | eval "DEFAULT_$LINE" | |
2576 | else | |
2577 | no_cache=1 | |
2578 | fi | |
2579 | ||
2580 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2581 | ||
2582 | fi; | |
2583 | ||
2584 | eval "$ac_cv_use_universal" | |
2585 | if test "$no_cache" != 1; then | |
2586 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2587 | fi | |
2588 | ||
2589 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2590 | echo "$as_me:$LINENO: result: yes" >&5 | |
2591 | echo "${ECHO_T}yes" >&6 | |
2592 | else | |
2593 | echo "$as_me:$LINENO: result: no" >&5 | |
2594 | echo "${ECHO_T}no" >&6 | |
2595 | fi | |
2596 | ||
2597 | ||
2598 | # Check whether --with-gtk or --without-gtk was given. | |
2599 | if test "${with_gtk+set}" = set; then | |
2600 | withval="$with_gtk" | |
2601 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2602 | fi; | |
2603 | ||
2604 | # Check whether --with-motif or --without-motif was given. | |
2605 | if test "${with_motif+set}" = set; then | |
2606 | withval="$with_motif" | |
2607 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2608 | fi; | |
2609 | ||
2610 | # Check whether --with-mac or --without-mac was given. | |
2611 | if test "${with_mac+set}" = set; then | |
2612 | withval="$with_mac" | |
c228d3a4 | 2613 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2614 | fi; |
2615 | ||
2616 | # Check whether --with-cocoa or --without-cocoa was given. | |
2617 | if test "${with_cocoa+set}" = set; then | |
2618 | withval="$with_cocoa" | |
c228d3a4 | 2619 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2620 | fi; |
2621 | ||
2622 | # Check whether --with-wine or --without-wine was given. | |
2623 | if test "${with_wine+set}" = set; then | |
2624 | withval="$with_wine" | |
2625 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2626 | fi; | |
2627 | ||
2628 | # Check whether --with-msw or --without-msw was given. | |
2629 | if test "${with_msw+set}" = set; then | |
2630 | withval="$with_msw" | |
2631 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2632 | fi; | |
2633 | ||
2634 | # Check whether --with-pm or --without-pm was given. | |
2635 | if test "${with_pm+set}" = set; then | |
2636 | withval="$with_pm" | |
2637 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2638 | fi; | |
2639 | ||
2640 | # Check whether --with-mgl or --without-mgl was given. | |
2641 | if test "${with_mgl+set}" = set; then | |
2642 | withval="$with_mgl" | |
2643 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2644 | fi; | |
2645 | ||
2646 | # Check whether --with-microwin or --without-microwin was given. | |
2647 | if test "${with_microwin+set}" = set; then | |
2648 | withval="$with_microwin" | |
2649 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2650 | fi; | |
2651 | ||
2652 | # Check whether --with-x11 or --without-x11 was given. | |
2653 | if test "${with_x11+set}" = set; then | |
2654 | withval="$with_x11" | |
2655 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2656 | fi; | |
2657 | ||
2658 | enablestring= | |
2659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2660 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2661 | no_cache=0 | |
2662 | # Check whether --enable-nanox or --disable-nanox was given. | |
2663 | if test "${enable_nanox+set}" = set; then | |
2664 | enableval="$enable_nanox" | |
2665 | ||
2666 | if test "$enableval" = yes; then | |
2667 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2668 | else | |
2669 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2670 | fi | |
2671 | ||
2672 | else | |
2673 | ||
2674 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2675 | if test "x$LINE" != x ; then | |
2676 | eval "DEFAULT_$LINE" | |
2677 | else | |
2678 | no_cache=1 | |
2679 | fi | |
2680 | ||
2681 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2682 | ||
2683 | fi; | |
2684 | ||
2685 | eval "$ac_cv_use_nanox" | |
2686 | if test "$no_cache" != 1; then | |
2687 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2688 | fi | |
2689 | ||
2690 | if test "$wxUSE_NANOX" = yes; then | |
2691 | echo "$as_me:$LINENO: result: yes" >&5 | |
2692 | echo "${ECHO_T}yes" >&6 | |
2693 | else | |
2694 | echo "$as_me:$LINENO: result: no" >&5 | |
2695 | echo "${ECHO_T}no" >&6 | |
2696 | fi | |
2697 | ||
2698 | ||
2699 | ||
2700 | enablestring= | |
2701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2702 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2703 | no_cache=0 | |
2704 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2705 | if test "${enable_gtk2+set}" = set; then | |
2706 | enableval="$enable_gtk2" | |
2707 | ||
2708 | if test "$enableval" = yes; then | |
2709 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2710 | else | |
2711 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2712 | fi | |
2713 | ||
2714 | else | |
2715 | ||
2716 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2717 | if test "x$LINE" != x ; then | |
2718 | eval "DEFAULT_$LINE" | |
2719 | else | |
2720 | no_cache=1 | |
2721 | fi | |
2722 | ||
2723 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2724 | ||
2725 | fi; | |
2726 | ||
2727 | eval "$ac_cv_use_gtk2" | |
2728 | if test "$no_cache" != 1; then | |
2729 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2730 | fi | |
2731 | ||
2732 | if test "$wxUSE_GTK2" = yes; then | |
2733 | echo "$as_me:$LINENO: result: yes" >&5 | |
2734 | echo "${ECHO_T}yes" >&6 | |
2735 | else | |
2736 | echo "$as_me:$LINENO: result: no" >&5 | |
2737 | echo "${ECHO_T}no" >&6 | |
2738 | fi | |
2739 | ||
2740 | ||
2741 | enablestring= | |
2742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2743 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2744 | no_cache=0 | |
2745 | # Check whether --enable-gpe or --disable-gpe was given. | |
2746 | if test "${enable_gpe+set}" = set; then | |
2747 | enableval="$enable_gpe" | |
2748 | ||
2749 | if test "$enableval" = yes; then | |
2750 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2751 | else | |
2752 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2753 | fi | |
2754 | ||
2755 | else | |
2756 | ||
2757 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2758 | if test "x$LINE" != x ; then | |
2759 | eval "DEFAULT_$LINE" | |
2760 | else | |
2761 | no_cache=1 | |
2762 | fi | |
2763 | ||
2764 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2765 | ||
2766 | fi; | |
2767 | ||
2768 | eval "$ac_cv_use_gpe" | |
2769 | if test "$no_cache" != 1; then | |
2770 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2771 | fi | |
2772 | ||
2773 | if test "$wxUSE_GPE" = yes; then | |
2774 | echo "$as_me:$LINENO: result: yes" >&5 | |
2775 | echo "${ECHO_T}yes" >&6 | |
2776 | else | |
2777 | echo "$as_me:$LINENO: result: no" >&5 | |
2778 | echo "${ECHO_T}no" >&6 | |
2779 | fi | |
2780 | ||
2781 | ||
2782 | ||
2783 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2784 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2785 | no_cache=0 | |
2786 | ||
2787 | # Check whether --with-libpng or --without-libpng was given. | |
2788 | if test "${with_libpng+set}" = set; then | |
2789 | withval="$with_libpng" | |
2790 | ||
2791 | if test "$withval" = yes; then | |
2792 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2793 | elif test "$withval" = no; then | |
2794 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2795 | elif test "$withval" = sys; then | |
2796 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2797 | elif test "$withval" = builtin; then | |
2798 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2799 | else | |
2800 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2801 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2802 | { (exit 1); exit 1; }; } | |
2803 | fi | |
2804 | ||
2805 | else | |
2806 | ||
2807 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2808 | if test "x$LINE" != x ; then | |
2809 | eval "DEFAULT_$LINE" | |
2810 | else | |
2811 | no_cache=1 | |
2812 | fi | |
2813 | ||
2814 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2815 | ||
2816 | fi; | |
2817 | ||
2818 | eval "$ac_cv_use_libpng" | |
2819 | if test "$no_cache" != 1; then | |
2820 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2821 | fi | |
2822 | ||
2823 | if test "$wxUSE_LIBPNG" = yes; then | |
2824 | echo "$as_me:$LINENO: result: yes" >&5 | |
2825 | echo "${ECHO_T}yes" >&6 | |
2826 | elif test "$wxUSE_LIBPNG" = no; then | |
2827 | echo "$as_me:$LINENO: result: no" >&5 | |
2828 | echo "${ECHO_T}no" >&6 | |
2829 | elif test "$wxUSE_LIBPNG" = sys; then | |
2830 | echo "$as_me:$LINENO: result: system version" >&5 | |
2831 | echo "${ECHO_T}system version" >&6 | |
2832 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2833 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2834 | echo "${ECHO_T}builtin version" >&6 | |
2835 | else | |
2836 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2837 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2838 | { (exit 1); exit 1; }; } | |
2839 | fi | |
2840 | ||
2841 | ||
2842 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2843 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2844 | no_cache=0 | |
2845 | ||
2846 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2847 | if test "${with_libjpeg+set}" = set; then | |
2848 | withval="$with_libjpeg" | |
2849 | ||
2850 | if test "$withval" = yes; then | |
2851 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2852 | elif test "$withval" = no; then | |
2853 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2854 | elif test "$withval" = sys; then | |
2855 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2856 | elif test "$withval" = builtin; then | |
2857 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2858 | else | |
2859 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2860 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2861 | { (exit 1); exit 1; }; } | |
2862 | fi | |
2863 | ||
2864 | else | |
2865 | ||
2866 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2867 | if test "x$LINE" != x ; then | |
2868 | eval "DEFAULT_$LINE" | |
2869 | else | |
2870 | no_cache=1 | |
2871 | fi | |
2872 | ||
2873 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2874 | ||
2875 | fi; | |
2876 | ||
2877 | eval "$ac_cv_use_libjpeg" | |
2878 | if test "$no_cache" != 1; then | |
2879 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2880 | fi | |
2881 | ||
2882 | if test "$wxUSE_LIBJPEG" = yes; then | |
2883 | echo "$as_me:$LINENO: result: yes" >&5 | |
2884 | echo "${ECHO_T}yes" >&6 | |
2885 | elif test "$wxUSE_LIBJPEG" = no; then | |
2886 | echo "$as_me:$LINENO: result: no" >&5 | |
2887 | echo "${ECHO_T}no" >&6 | |
2888 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2889 | echo "$as_me:$LINENO: result: system version" >&5 | |
2890 | echo "${ECHO_T}system version" >&6 | |
2891 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2892 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2893 | echo "${ECHO_T}builtin version" >&6 | |
2894 | else | |
2895 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2896 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2897 | { (exit 1); exit 1; }; } | |
2898 | fi | |
2899 | ||
2900 | ||
2901 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2902 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2903 | no_cache=0 | |
2904 | ||
2905 | # Check whether --with-libtiff or --without-libtiff was given. | |
2906 | if test "${with_libtiff+set}" = set; then | |
2907 | withval="$with_libtiff" | |
2908 | ||
2909 | if test "$withval" = yes; then | |
2910 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2911 | elif test "$withval" = no; then | |
2912 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2913 | elif test "$withval" = sys; then | |
2914 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2915 | elif test "$withval" = builtin; then | |
2916 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2917 | else | |
2918 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2919 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2920 | { (exit 1); exit 1; }; } | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | ||
2925 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2926 | if test "x$LINE" != x ; then | |
2927 | eval "DEFAULT_$LINE" | |
2928 | else | |
2929 | no_cache=1 | |
2930 | fi | |
2931 | ||
2932 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2933 | ||
2934 | fi; | |
2935 | ||
2936 | eval "$ac_cv_use_libtiff" | |
2937 | if test "$no_cache" != 1; then | |
2938 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2939 | fi | |
2940 | ||
2941 | if test "$wxUSE_LIBTIFF" = yes; then | |
2942 | echo "$as_me:$LINENO: result: yes" >&5 | |
2943 | echo "${ECHO_T}yes" >&6 | |
2944 | elif test "$wxUSE_LIBTIFF" = no; then | |
2945 | echo "$as_me:$LINENO: result: no" >&5 | |
2946 | echo "${ECHO_T}no" >&6 | |
2947 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2948 | echo "$as_me:$LINENO: result: system version" >&5 | |
2949 | echo "${ECHO_T}system version" >&6 | |
2950 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2951 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2952 | echo "${ECHO_T}builtin version" >&6 | |
2953 | else | |
2954 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2955 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2956 | { (exit 1); exit 1; }; } | |
2957 | fi | |
2958 | ||
2959 | ||
2960 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2961 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2962 | no_cache=0 | |
2963 | ||
2964 | # Check whether --with-libxpm or --without-libxpm was given. | |
2965 | if test "${with_libxpm+set}" = set; then | |
2966 | withval="$with_libxpm" | |
2967 | ||
2968 | if test "$withval" = yes; then | |
2969 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2970 | elif test "$withval" = no; then | |
2971 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2972 | elif test "$withval" = sys; then | |
2973 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2974 | elif test "$withval" = builtin; then | |
2975 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2976 | else | |
2977 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2978 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2979 | { (exit 1); exit 1; }; } | |
2980 | fi | |
2981 | ||
2982 | else | |
2983 | ||
2984 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2985 | if test "x$LINE" != x ; then | |
2986 | eval "DEFAULT_$LINE" | |
2987 | else | |
2988 | no_cache=1 | |
2989 | fi | |
2990 | ||
2991 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2992 | ||
2993 | fi; | |
2994 | ||
2995 | eval "$ac_cv_use_libxpm" | |
2996 | if test "$no_cache" != 1; then | |
2997 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2998 | fi | |
2999 | ||
3000 | if test "$wxUSE_LIBXPM" = yes; then | |
3001 | echo "$as_me:$LINENO: result: yes" >&5 | |
3002 | echo "${ECHO_T}yes" >&6 | |
3003 | elif test "$wxUSE_LIBXPM" = no; then | |
3004 | echo "$as_me:$LINENO: result: no" >&5 | |
3005 | echo "${ECHO_T}no" >&6 | |
3006 | elif test "$wxUSE_LIBXPM" = sys; then | |
3007 | echo "$as_me:$LINENO: result: system version" >&5 | |
3008 | echo "${ECHO_T}system version" >&6 | |
3009 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3010 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3011 | echo "${ECHO_T}builtin version" >&6 | |
3012 | else | |
3013 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3014 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3015 | { (exit 1); exit 1; }; } | |
3016 | fi | |
3017 | ||
3018 | ||
3019 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3020 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3021 | no_cache=0 | |
3022 | ||
3023 | # Check whether --with-libmspack or --without-libmspack was given. | |
3024 | if test "${with_libmspack+set}" = set; then | |
3025 | withval="$with_libmspack" | |
3026 | ||
3027 | if test "$withval" = yes; then | |
3028 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3029 | else | |
3030 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3031 | fi | |
3032 | ||
3033 | else | |
3034 | ||
3035 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3036 | if test "x$LINE" != x ; then | |
3037 | eval "DEFAULT_$LINE" | |
3038 | else | |
3039 | no_cache=1 | |
3040 | fi | |
3041 | ||
3042 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3043 | ||
3044 | fi; | |
3045 | ||
3046 | eval "$ac_cv_use_libmspack" | |
3047 | if test "$no_cache" != 1; then | |
3048 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3049 | fi | |
3050 | ||
3051 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3052 | echo "$as_me:$LINENO: result: yes" >&5 | |
3053 | echo "${ECHO_T}yes" >&6 | |
3054 | else | |
3055 | echo "$as_me:$LINENO: result: no" >&5 | |
3056 | echo "${ECHO_T}no" >&6 | |
3057 | fi | |
3058 | ||
3059 | ||
3060 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3061 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3062 | no_cache=0 | |
3063 | ||
3064 | # Check whether --with-sdl or --without-sdl was given. | |
3065 | if test "${with_sdl+set}" = set; then | |
3066 | withval="$with_sdl" | |
3067 | ||
3068 | if test "$withval" = yes; then | |
3069 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3070 | else | |
3071 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3072 | fi | |
3073 | ||
3074 | else | |
3075 | ||
3076 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3077 | if test "x$LINE" != x ; then | |
3078 | eval "DEFAULT_$LINE" | |
3079 | else | |
3080 | no_cache=1 | |
3081 | fi | |
3082 | ||
3083 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3084 | ||
3085 | fi; | |
3086 | ||
3087 | eval "$ac_cv_use_sdl" | |
3088 | if test "$no_cache" != 1; then | |
3089 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3090 | fi | |
3091 | ||
3092 | if test "$wxUSE_LIBSDL" = yes; then | |
3093 | echo "$as_me:$LINENO: result: yes" >&5 | |
3094 | echo "${ECHO_T}yes" >&6 | |
3095 | else | |
3096 | echo "$as_me:$LINENO: result: no" >&5 | |
3097 | echo "${ECHO_T}no" >&6 | |
3098 | fi | |
3099 | ||
3100 | ||
d1c38808 VZ |
3101 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3102 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3103 | no_cache=0 | |
3104 | ||
3105 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3106 | if test "${with_gnomeprint+set}" = set; then | |
3107 | withval="$with_gnomeprint" | |
3108 | ||
3109 | if test "$withval" = yes; then | |
3110 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3111 | else | |
3112 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3113 | fi | |
3114 | ||
3115 | else | |
3116 | ||
3117 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3118 | if test "x$LINE" != x ; then | |
3119 | eval "DEFAULT_$LINE" | |
3120 | else | |
3121 | no_cache=1 | |
3122 | fi | |
3123 | ||
3124 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3125 | ||
3126 | fi; | |
3127 | ||
3128 | eval "$ac_cv_use_gnomeprint" | |
3129 | if test "$no_cache" != 1; then | |
3130 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3131 | fi | |
3132 | ||
3133 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3134 | echo "$as_me:$LINENO: result: yes" >&5 | |
3135 | echo "${ECHO_T}yes" >&6 | |
3136 | else | |
3137 | echo "$as_me:$LINENO: result: no" >&5 | |
3138 | echo "${ECHO_T}no" >&6 | |
3139 | fi | |
3140 | ||
3141 | ||
a848cd7e SC |
3142 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3143 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3144 | no_cache=0 | |
3145 | ||
3146 | # Check whether --with-opengl or --without-opengl was given. | |
3147 | if test "${with_opengl+set}" = set; then | |
3148 | withval="$with_opengl" | |
3149 | ||
3150 | if test "$withval" = yes; then | |
3151 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3152 | else | |
3153 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3154 | fi | |
3155 | ||
3156 | else | |
3157 | ||
3158 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3159 | if test "x$LINE" != x ; then | |
3160 | eval "DEFAULT_$LINE" | |
3161 | else | |
3162 | no_cache=1 | |
3163 | fi | |
3164 | ||
3165 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3166 | ||
3167 | fi; | |
3168 | ||
3169 | eval "$ac_cv_use_opengl" | |
3170 | if test "$no_cache" != 1; then | |
3171 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3172 | fi | |
3173 | ||
3174 | if test "$wxUSE_OPENGL" = yes; then | |
3175 | echo "$as_me:$LINENO: result: yes" >&5 | |
3176 | echo "${ECHO_T}yes" >&6 | |
3177 | else | |
3178 | echo "$as_me:$LINENO: result: no" >&5 | |
3179 | echo "${ECHO_T}no" >&6 | |
3180 | fi | |
3181 | ||
3182 | ||
3183 | fi | |
3184 | ||
3185 | ||
3186 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3187 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3188 | no_cache=0 | |
3189 | ||
3190 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3191 | if test "${with_dmalloc+set}" = set; then | |
3192 | withval="$with_dmalloc" | |
3193 | ||
3194 | if test "$withval" = yes; then | |
3195 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3196 | else | |
3197 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3198 | fi | |
3199 | ||
3200 | else | |
3201 | ||
3202 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3203 | if test "x$LINE" != x ; then | |
3204 | eval "DEFAULT_$LINE" | |
3205 | else | |
3206 | no_cache=1 | |
3207 | fi | |
3208 | ||
3209 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3210 | ||
3211 | fi; | |
3212 | ||
3213 | eval "$ac_cv_use_dmalloc" | |
3214 | if test "$no_cache" != 1; then | |
3215 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3216 | fi | |
3217 | ||
3218 | if test "$wxUSE_DMALLOC" = yes; then | |
3219 | echo "$as_me:$LINENO: result: yes" >&5 | |
3220 | echo "${ECHO_T}yes" >&6 | |
3221 | else | |
3222 | echo "$as_me:$LINENO: result: no" >&5 | |
3223 | echo "${ECHO_T}no" >&6 | |
3224 | fi | |
3225 | ||
3226 | ||
3227 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3228 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3229 | no_cache=0 | |
3230 | ||
3231 | # Check whether --with-regex or --without-regex was given. | |
3232 | if test "${with_regex+set}" = set; then | |
3233 | withval="$with_regex" | |
3234 | ||
3235 | if test "$withval" = yes; then | |
3236 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3237 | elif test "$withval" = no; then | |
3238 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3239 | elif test "$withval" = sys; then | |
3240 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3241 | elif test "$withval" = builtin; then | |
3242 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3243 | else | |
3244 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3245 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3246 | { (exit 1); exit 1; }; } | |
3247 | fi | |
3248 | ||
3249 | else | |
3250 | ||
3251 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3252 | if test "x$LINE" != x ; then | |
3253 | eval "DEFAULT_$LINE" | |
3254 | else | |
3255 | no_cache=1 | |
3256 | fi | |
3257 | ||
3258 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3259 | ||
3260 | fi; | |
3261 | ||
3262 | eval "$ac_cv_use_regex" | |
3263 | if test "$no_cache" != 1; then | |
3264 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3265 | fi | |
3266 | ||
3267 | if test "$wxUSE_REGEX" = yes; then | |
3268 | echo "$as_me:$LINENO: result: yes" >&5 | |
3269 | echo "${ECHO_T}yes" >&6 | |
3270 | elif test "$wxUSE_REGEX" = no; then | |
3271 | echo "$as_me:$LINENO: result: no" >&5 | |
3272 | echo "${ECHO_T}no" >&6 | |
3273 | elif test "$wxUSE_REGEX" = sys; then | |
3274 | echo "$as_me:$LINENO: result: system version" >&5 | |
3275 | echo "${ECHO_T}system version" >&6 | |
3276 | elif test "$wxUSE_REGEX" = builtin; then | |
3277 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3278 | echo "${ECHO_T}builtin version" >&6 | |
3279 | else | |
3280 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3281 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3282 | { (exit 1); exit 1; }; } | |
3283 | fi | |
3284 | ||
3285 | ||
3286 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3287 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3288 | no_cache=0 | |
3289 | ||
3290 | # Check whether --with-zlib or --without-zlib was given. | |
3291 | if test "${with_zlib+set}" = set; then | |
3292 | withval="$with_zlib" | |
3293 | ||
3294 | if test "$withval" = yes; then | |
3295 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3296 | elif test "$withval" = no; then | |
3297 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3298 | elif test "$withval" = sys; then | |
3299 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3300 | elif test "$withval" = builtin; then | |
3301 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3302 | else | |
3303 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3304 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3305 | { (exit 1); exit 1; }; } | |
3306 | fi | |
3307 | ||
3308 | else | |
3309 | ||
3310 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3311 | if test "x$LINE" != x ; then | |
3312 | eval "DEFAULT_$LINE" | |
3313 | else | |
3314 | no_cache=1 | |
3315 | fi | |
3316 | ||
3317 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3318 | ||
3319 | fi; | |
3320 | ||
3321 | eval "$ac_cv_use_zlib" | |
3322 | if test "$no_cache" != 1; then | |
3323 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3324 | fi | |
3325 | ||
3326 | if test "$wxUSE_ZLIB" = yes; then | |
3327 | echo "$as_me:$LINENO: result: yes" >&5 | |
3328 | echo "${ECHO_T}yes" >&6 | |
3329 | elif test "$wxUSE_ZLIB" = no; then | |
3330 | echo "$as_me:$LINENO: result: no" >&5 | |
3331 | echo "${ECHO_T}no" >&6 | |
3332 | elif test "$wxUSE_ZLIB" = sys; then | |
3333 | echo "$as_me:$LINENO: result: system version" >&5 | |
3334 | echo "${ECHO_T}system version" >&6 | |
3335 | elif test "$wxUSE_ZLIB" = builtin; then | |
3336 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3337 | echo "${ECHO_T}builtin version" >&6 | |
3338 | else | |
3339 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3340 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3341 | { (exit 1); exit 1; }; } | |
3342 | fi | |
3343 | ||
3344 | ||
3345 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3346 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3347 | no_cache=0 | |
3348 | ||
3349 | # Check whether --with-odbc or --without-odbc was given. | |
3350 | if test "${with_odbc+set}" = set; then | |
3351 | withval="$with_odbc" | |
3352 | ||
3353 | if test "$withval" = yes; then | |
3354 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3355 | elif test "$withval" = no; then | |
3356 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3357 | elif test "$withval" = sys; then | |
3358 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3359 | elif test "$withval" = builtin; then | |
3360 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3361 | else | |
3362 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3363 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3364 | { (exit 1); exit 1; }; } | |
3365 | fi | |
3366 | ||
3367 | else | |
3368 | ||
3369 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3370 | if test "x$LINE" != x ; then | |
3371 | eval "DEFAULT_$LINE" | |
3372 | else | |
3373 | no_cache=1 | |
3374 | fi | |
3375 | ||
3376 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3377 | ||
3378 | fi; | |
3379 | ||
3380 | eval "$ac_cv_use_odbc" | |
3381 | if test "$no_cache" != 1; then | |
3382 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3383 | fi | |
3384 | ||
3385 | if test "$wxUSE_ODBC" = yes; then | |
3386 | echo "$as_me:$LINENO: result: yes" >&5 | |
3387 | echo "${ECHO_T}yes" >&6 | |
3388 | elif test "$wxUSE_ODBC" = no; then | |
3389 | echo "$as_me:$LINENO: result: no" >&5 | |
3390 | echo "${ECHO_T}no" >&6 | |
3391 | elif test "$wxUSE_ODBC" = sys; then | |
3392 | echo "$as_me:$LINENO: result: system version" >&5 | |
3393 | echo "${ECHO_T}system version" >&6 | |
3394 | elif test "$wxUSE_ODBC" = builtin; then | |
3395 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3396 | echo "${ECHO_T}builtin version" >&6 | |
3397 | else | |
3398 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3399 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3400 | { (exit 1); exit 1; }; } | |
3401 | fi | |
3402 | ||
3403 | ||
3404 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3405 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3406 | no_cache=0 | |
3407 | ||
3408 | # Check whether --with-expat or --without-expat was given. | |
3409 | if test "${with_expat+set}" = set; then | |
3410 | withval="$with_expat" | |
3411 | ||
3412 | if test "$withval" = yes; then | |
3413 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3414 | elif test "$withval" = no; then | |
3415 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3416 | elif test "$withval" = sys; then | |
3417 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3418 | elif test "$withval" = builtin; then | |
3419 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3420 | else | |
3421 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3422 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3423 | { (exit 1); exit 1; }; } | |
3424 | fi | |
3425 | ||
3426 | else | |
3427 | ||
3428 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3429 | if test "x$LINE" != x ; then | |
3430 | eval "DEFAULT_$LINE" | |
3431 | else | |
3432 | no_cache=1 | |
3433 | fi | |
3434 | ||
3435 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3436 | ||
3437 | fi; | |
3438 | ||
3439 | eval "$ac_cv_use_expat" | |
3440 | if test "$no_cache" != 1; then | |
3441 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3442 | fi | |
3443 | ||
3444 | if test "$wxUSE_EXPAT" = yes; then | |
3445 | echo "$as_me:$LINENO: result: yes" >&5 | |
3446 | echo "${ECHO_T}yes" >&6 | |
3447 | elif test "$wxUSE_EXPAT" = no; then | |
3448 | echo "$as_me:$LINENO: result: no" >&5 | |
3449 | echo "${ECHO_T}no" >&6 | |
3450 | elif test "$wxUSE_EXPAT" = sys; then | |
3451 | echo "$as_me:$LINENO: result: system version" >&5 | |
3452 | echo "${ECHO_T}system version" >&6 | |
3453 | elif test "$wxUSE_EXPAT" = builtin; then | |
3454 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3455 | echo "${ECHO_T}builtin version" >&6 | |
3456 | else | |
3457 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3458 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3459 | { (exit 1); exit 1; }; } | |
3460 | fi | |
3461 | ||
3462 | ||
3463 | ||
3464 | ||
3465 | enablestring= | |
3466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3467 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3468 | no_cache=0 | |
3469 | # Check whether --enable-shared or --disable-shared was given. | |
3470 | if test "${enable_shared+set}" = set; then | |
3471 | enableval="$enable_shared" | |
3472 | ||
3473 | if test "$enableval" = yes; then | |
3474 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3475 | else | |
3476 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3477 | fi | |
3478 | ||
3479 | else | |
3480 | ||
3481 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3482 | if test "x$LINE" != x ; then | |
3483 | eval "DEFAULT_$LINE" | |
3484 | else | |
3485 | no_cache=1 | |
3486 | fi | |
3487 | ||
3488 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3489 | ||
3490 | fi; | |
3491 | ||
3492 | eval "$ac_cv_use_shared" | |
3493 | if test "$no_cache" != 1; then | |
3494 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3495 | fi | |
3496 | ||
3497 | if test "$wxUSE_SHARED" = yes; then | |
3498 | echo "$as_me:$LINENO: result: yes" >&5 | |
3499 | echo "${ECHO_T}yes" >&6 | |
3500 | else | |
3501 | echo "$as_me:$LINENO: result: no" >&5 | |
3502 | echo "${ECHO_T}no" >&6 | |
3503 | fi | |
3504 | ||
3505 | ||
3506 | enablestring= | |
3507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3508 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3509 | no_cache=0 | |
3510 | # Check whether --enable-optimise or --disable-optimise was given. | |
3511 | if test "${enable_optimise+set}" = set; then | |
3512 | enableval="$enable_optimise" | |
3513 | ||
3514 | if test "$enableval" = yes; then | |
3515 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3516 | else | |
3517 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3518 | fi | |
3519 | ||
3520 | else | |
3521 | ||
3522 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3523 | if test "x$LINE" != x ; then | |
3524 | eval "DEFAULT_$LINE" | |
3525 | else | |
3526 | no_cache=1 | |
3527 | fi | |
3528 | ||
3529 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3530 | ||
3531 | fi; | |
3532 | ||
3533 | eval "$ac_cv_use_optimise" | |
3534 | if test "$no_cache" != 1; then | |
3535 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3536 | fi | |
3537 | ||
3538 | if test "$wxUSE_OPTIMISE" = yes; then | |
3539 | echo "$as_me:$LINENO: result: yes" >&5 | |
3540 | echo "${ECHO_T}yes" >&6 | |
3541 | else | |
3542 | echo "$as_me:$LINENO: result: no" >&5 | |
3543 | echo "${ECHO_T}no" >&6 | |
3544 | fi | |
3545 | ||
3546 | ||
3547 | enablestring= | |
3548 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3549 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3550 | no_cache=0 | |
3551 | # Check whether --enable-debug or --disable-debug was given. | |
3552 | if test "${enable_debug+set}" = set; then | |
3553 | enableval="$enable_debug" | |
3554 | ||
3555 | if test "$enableval" = yes; then | |
3556 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3557 | else | |
3558 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3559 | fi | |
3560 | ||
3561 | else | |
3562 | ||
3563 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3571 | ||
3572 | fi; | |
3573 | ||
3574 | eval "$ac_cv_use_debug" | |
3575 | if test "$no_cache" != 1; then | |
3576 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3577 | fi | |
3578 | ||
3579 | if test "$wxUSE_DEBUG" = yes; then | |
3580 | echo "$as_me:$LINENO: result: yes" >&5 | |
3581 | echo "${ECHO_T}yes" >&6 | |
3582 | else | |
3583 | echo "$as_me:$LINENO: result: no" >&5 | |
3584 | echo "${ECHO_T}no" >&6 | |
3585 | fi | |
3586 | ||
3587 | ||
3588 | enablestring= | |
3589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3590 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3591 | no_cache=0 | |
3592 | # Check whether --enable-stl or --disable-stl was given. | |
3593 | if test "${enable_stl+set}" = set; then | |
3594 | enableval="$enable_stl" | |
3595 | ||
3596 | if test "$enableval" = yes; then | |
3597 | ac_cv_use_stl='wxUSE_STL=yes' | |
3598 | else | |
3599 | ac_cv_use_stl='wxUSE_STL=no' | |
3600 | fi | |
3601 | ||
3602 | else | |
3603 | ||
3604 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3605 | if test "x$LINE" != x ; then | |
3606 | eval "DEFAULT_$LINE" | |
3607 | else | |
3608 | no_cache=1 | |
3609 | fi | |
3610 | ||
3611 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3612 | ||
3613 | fi; | |
3614 | ||
3615 | eval "$ac_cv_use_stl" | |
3616 | if test "$no_cache" != 1; then | |
3617 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3618 | fi | |
3619 | ||
3620 | if test "$wxUSE_STL" = yes; then | |
3621 | echo "$as_me:$LINENO: result: yes" >&5 | |
3622 | echo "${ECHO_T}yes" >&6 | |
3623 | else | |
3624 | echo "$as_me:$LINENO: result: no" >&5 | |
3625 | echo "${ECHO_T}no" >&6 | |
3626 | fi | |
3627 | ||
3628 | if test "$USE_OS2" = "1"; then | |
3629 | ||
3630 | enablestring= | |
3631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3632 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3633 | no_cache=0 | |
3634 | # Check whether --enable-omf or --disable-omf was given. | |
3635 | if test "${enable_omf+set}" = set; then | |
3636 | enableval="$enable_omf" | |
3637 | ||
3638 | if test "$enableval" = yes; then | |
3639 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3640 | else | |
3641 | ac_cv_use_omf='wxUSE_OMF=no' | |
3642 | fi | |
3643 | ||
3644 | else | |
3645 | ||
3646 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3647 | if test "x$LINE" != x ; then | |
3648 | eval "DEFAULT_$LINE" | |
3649 | else | |
3650 | no_cache=1 | |
3651 | fi | |
3652 | ||
3653 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3654 | ||
3655 | fi; | |
3656 | ||
3657 | eval "$ac_cv_use_omf" | |
3658 | if test "$no_cache" != 1; then | |
3659 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3660 | fi | |
3661 | ||
3662 | if test "$wxUSE_OMF" = yes; then | |
3663 | echo "$as_me:$LINENO: result: yes" >&5 | |
3664 | echo "${ECHO_T}yes" >&6 | |
3665 | else | |
3666 | echo "$as_me:$LINENO: result: no" >&5 | |
3667 | echo "${ECHO_T}no" >&6 | |
3668 | fi | |
3669 | ||
3670 | fi | |
3671 | ||
3672 | if test "$wxUSE_DEBUG" = "yes"; then | |
3673 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3674 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3675 | BUILD=debug | |
3676 | elif test "$wxUSE_DEBUG" = "no"; then | |
3677 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3678 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3679 | BUILD=release | |
3680 | fi | |
3681 | ||
3682 | ||
3683 | enablestring= | |
3684 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3685 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3686 | no_cache=0 | |
3687 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3688 | if test "${enable_debug_flag+set}" = set; then | |
3689 | enableval="$enable_debug_flag" | |
3690 | ||
3691 | if test "$enableval" = yes; then | |
3692 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3693 | else | |
3694 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3695 | fi | |
3696 | ||
3697 | else | |
3698 | ||
3699 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3700 | if test "x$LINE" != x ; then | |
3701 | eval "DEFAULT_$LINE" | |
3702 | else | |
3703 | no_cache=1 | |
3704 | fi | |
3705 | ||
3706 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3707 | ||
3708 | fi; | |
3709 | ||
3710 | eval "$ac_cv_use_debug_flag" | |
3711 | if test "$no_cache" != 1; then | |
3712 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3713 | fi | |
3714 | ||
3715 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3716 | echo "$as_me:$LINENO: result: yes" >&5 | |
3717 | echo "${ECHO_T}yes" >&6 | |
3718 | else | |
3719 | echo "$as_me:$LINENO: result: no" >&5 | |
3720 | echo "${ECHO_T}no" >&6 | |
3721 | fi | |
3722 | ||
3723 | ||
3724 | enablestring= | |
3725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3726 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3727 | no_cache=0 | |
3728 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3729 | if test "${enable_debug_info+set}" = set; then | |
3730 | enableval="$enable_debug_info" | |
3731 | ||
3732 | if test "$enableval" = yes; then | |
3733 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3734 | else | |
3735 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3736 | fi | |
3737 | ||
3738 | else | |
3739 | ||
3740 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3741 | if test "x$LINE" != x ; then | |
3742 | eval "DEFAULT_$LINE" | |
3743 | else | |
3744 | no_cache=1 | |
3745 | fi | |
3746 | ||
3747 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3748 | ||
3749 | fi; | |
3750 | ||
3751 | eval "$ac_cv_use_debug_info" | |
3752 | if test "$no_cache" != 1; then | |
3753 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3754 | fi | |
3755 | ||
3756 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3757 | echo "$as_me:$LINENO: result: yes" >&5 | |
3758 | echo "${ECHO_T}yes" >&6 | |
3759 | else | |
3760 | echo "$as_me:$LINENO: result: no" >&5 | |
3761 | echo "${ECHO_T}no" >&6 | |
3762 | fi | |
3763 | ||
3764 | ||
3765 | enablestring= | |
3766 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3767 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3768 | no_cache=0 | |
3769 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3770 | if test "${enable_debug_gdb+set}" = set; then | |
3771 | enableval="$enable_debug_gdb" | |
3772 | ||
3773 | if test "$enableval" = yes; then | |
3774 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3775 | else | |
3776 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3777 | fi | |
3778 | ||
3779 | else | |
3780 | ||
3781 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3782 | if test "x$LINE" != x ; then | |
3783 | eval "DEFAULT_$LINE" | |
3784 | else | |
3785 | no_cache=1 | |
3786 | fi | |
3787 | ||
3788 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3789 | ||
3790 | fi; | |
3791 | ||
3792 | eval "$ac_cv_use_debug_gdb" | |
3793 | if test "$no_cache" != 1; then | |
3794 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3795 | fi | |
3796 | ||
3797 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3798 | echo "$as_me:$LINENO: result: yes" >&5 | |
3799 | echo "${ECHO_T}yes" >&6 | |
3800 | else | |
3801 | echo "$as_me:$LINENO: result: no" >&5 | |
3802 | echo "${ECHO_T}no" >&6 | |
3803 | fi | |
3804 | ||
3805 | ||
3806 | enablestring= | |
3807 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3808 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3809 | no_cache=0 | |
3810 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3811 | if test "${enable_debug_cntxt+set}" = set; then | |
3812 | enableval="$enable_debug_cntxt" | |
3813 | ||
3814 | if test "$enableval" = yes; then | |
3815 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3816 | else | |
3817 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3818 | fi | |
3819 | ||
3820 | else | |
3821 | ||
3822 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3823 | if test "x$LINE" != x ; then | |
3824 | eval "DEFAULT_$LINE" | |
3825 | else | |
3826 | no_cache=1 | |
3827 | fi | |
3828 | ||
3829 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3830 | ||
3831 | fi; | |
3832 | ||
3833 | eval "$ac_cv_use_debug_cntxt" | |
3834 | if test "$no_cache" != 1; then | |
3835 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3836 | fi | |
3837 | ||
3838 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3839 | echo "$as_me:$LINENO: result: yes" >&5 | |
3840 | echo "${ECHO_T}yes" >&6 | |
3841 | else | |
3842 | echo "$as_me:$LINENO: result: no" >&5 | |
3843 | echo "${ECHO_T}no" >&6 | |
3844 | fi | |
3845 | ||
3846 | ||
3847 | enablestring= | |
3848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3849 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3850 | no_cache=0 | |
3851 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3852 | if test "${enable_mem_tracing+set}" = set; then | |
3853 | enableval="$enable_mem_tracing" | |
3854 | ||
3855 | if test "$enableval" = yes; then | |
3856 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3857 | else | |
3858 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3859 | fi | |
3860 | ||
3861 | else | |
3862 | ||
3863 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3864 | if test "x$LINE" != x ; then | |
3865 | eval "DEFAULT_$LINE" | |
3866 | else | |
3867 | no_cache=1 | |
3868 | fi | |
3869 | ||
3870 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3871 | ||
3872 | fi; | |
3873 | ||
3874 | eval "$ac_cv_use_mem_tracing" | |
3875 | if test "$no_cache" != 1; then | |
3876 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3877 | fi | |
3878 | ||
3879 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3880 | echo "$as_me:$LINENO: result: yes" >&5 | |
3881 | echo "${ECHO_T}yes" >&6 | |
3882 | else | |
3883 | echo "$as_me:$LINENO: result: no" >&5 | |
3884 | echo "${ECHO_T}no" >&6 | |
3885 | fi | |
3886 | ||
3887 | ||
3888 | enablestring= | |
3889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3890 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3891 | no_cache=0 | |
3892 | # Check whether --enable-profile or --disable-profile was given. | |
3893 | if test "${enable_profile+set}" = set; then | |
3894 | enableval="$enable_profile" | |
3895 | ||
3896 | if test "$enableval" = yes; then | |
3897 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3898 | else | |
3899 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3900 | fi | |
3901 | ||
3902 | else | |
3903 | ||
3904 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3905 | if test "x$LINE" != x ; then | |
3906 | eval "DEFAULT_$LINE" | |
3907 | else | |
3908 | no_cache=1 | |
3909 | fi | |
3910 | ||
3911 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3912 | ||
3913 | fi; | |
3914 | ||
3915 | eval "$ac_cv_use_profile" | |
3916 | if test "$no_cache" != 1; then | |
3917 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3918 | fi | |
3919 | ||
3920 | if test "$wxUSE_PROFILE" = yes; then | |
3921 | echo "$as_me:$LINENO: result: yes" >&5 | |
3922 | echo "${ECHO_T}yes" >&6 | |
3923 | else | |
3924 | echo "$as_me:$LINENO: result: no" >&5 | |
3925 | echo "${ECHO_T}no" >&6 | |
3926 | fi | |
3927 | ||
3928 | ||
3929 | enablestring= | |
3930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3931 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3932 | no_cache=0 | |
3933 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3934 | if test "${enable_no_rtti+set}" = set; then | |
3935 | enableval="$enable_no_rtti" | |
3936 | ||
3937 | if test "$enableval" = yes; then | |
3938 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3939 | else | |
3940 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3941 | fi | |
3942 | ||
3943 | else | |
3944 | ||
3945 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3946 | if test "x$LINE" != x ; then | |
3947 | eval "DEFAULT_$LINE" | |
3948 | else | |
3949 | no_cache=1 | |
3950 | fi | |
3951 | ||
3952 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3953 | ||
3954 | fi; | |
3955 | ||
3956 | eval "$ac_cv_use_no_rtti" | |
3957 | if test "$no_cache" != 1; then | |
3958 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3959 | fi | |
3960 | ||
3961 | if test "$wxUSE_NO_RTTI" = yes; then | |
3962 | echo "$as_me:$LINENO: result: yes" >&5 | |
3963 | echo "${ECHO_T}yes" >&6 | |
3964 | else | |
3965 | echo "$as_me:$LINENO: result: no" >&5 | |
3966 | echo "${ECHO_T}no" >&6 | |
3967 | fi | |
3968 | ||
3969 | ||
3970 | enablestring= | |
3971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3972 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3973 | no_cache=0 | |
3974 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3975 | if test "${enable_no_exceptions+set}" = set; then | |
3976 | enableval="$enable_no_exceptions" | |
3977 | ||
3978 | if test "$enableval" = yes; then | |
3979 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3980 | else | |
3981 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3982 | fi | |
3983 | ||
3984 | else | |
3985 | ||
3986 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3987 | if test "x$LINE" != x ; then | |
3988 | eval "DEFAULT_$LINE" | |
3989 | else | |
3990 | no_cache=1 | |
3991 | fi | |
3992 | ||
3993 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3994 | ||
3995 | fi; | |
3996 | ||
3997 | eval "$ac_cv_use_no_exceptions" | |
3998 | if test "$no_cache" != 1; then | |
3999 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4000 | fi | |
4001 | ||
4002 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4003 | echo "$as_me:$LINENO: result: yes" >&5 | |
4004 | echo "${ECHO_T}yes" >&6 | |
4005 | else | |
4006 | echo "$as_me:$LINENO: result: no" >&5 | |
4007 | echo "${ECHO_T}no" >&6 | |
4008 | fi | |
4009 | ||
4010 | ||
4011 | enablestring= | |
4012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4013 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4014 | no_cache=0 | |
4015 | # Check whether --enable-permissive or --disable-permissive was given. | |
4016 | if test "${enable_permissive+set}" = set; then | |
4017 | enableval="$enable_permissive" | |
4018 | ||
4019 | if test "$enableval" = yes; then | |
4020 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4021 | else | |
4022 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4023 | fi | |
4024 | ||
4025 | else | |
4026 | ||
4027 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4028 | if test "x$LINE" != x ; then | |
4029 | eval "DEFAULT_$LINE" | |
4030 | else | |
4031 | no_cache=1 | |
4032 | fi | |
4033 | ||
4034 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4035 | ||
4036 | fi; | |
4037 | ||
4038 | eval "$ac_cv_use_permissive" | |
4039 | if test "$no_cache" != 1; then | |
4040 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4041 | fi | |
4042 | ||
4043 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4044 | echo "$as_me:$LINENO: result: yes" >&5 | |
4045 | echo "${ECHO_T}yes" >&6 | |
4046 | else | |
4047 | echo "$as_me:$LINENO: result: no" >&5 | |
4048 | echo "${ECHO_T}no" >&6 | |
4049 | fi | |
4050 | ||
4051 | ||
4052 | enablestring= | |
4053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4054 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4055 | no_cache=0 | |
4056 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4057 | if test "${enable_no_deps+set}" = set; then | |
4058 | enableval="$enable_no_deps" | |
4059 | ||
4060 | if test "$enableval" = yes; then | |
4061 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4062 | else | |
4063 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4064 | fi | |
4065 | ||
4066 | else | |
4067 | ||
4068 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4069 | if test "x$LINE" != x ; then | |
4070 | eval "DEFAULT_$LINE" | |
4071 | else | |
4072 | no_cache=1 | |
4073 | fi | |
4074 | ||
4075 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4076 | ||
4077 | fi; | |
4078 | ||
4079 | eval "$ac_cv_use_no_deps" | |
4080 | if test "$no_cache" != 1; then | |
4081 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4082 | fi | |
4083 | ||
4084 | if test "$wxUSE_NO_DEPS" = yes; then | |
4085 | echo "$as_me:$LINENO: result: yes" >&5 | |
4086 | echo "${ECHO_T}yes" >&6 | |
4087 | else | |
4088 | echo "$as_me:$LINENO: result: no" >&5 | |
4089 | echo "${ECHO_T}no" >&6 | |
4090 | fi | |
4091 | ||
4092 | ||
4093 | ||
4094 | enablestring= | |
4095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4096 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4097 | no_cache=0 | |
4098 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4099 | if test "${enable_compat22+set}" = set; then | |
4100 | enableval="$enable_compat22" | |
4101 | ||
4102 | if test "$enableval" = yes; then | |
4103 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4104 | else | |
4105 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4106 | fi | |
4107 | ||
4108 | else | |
4109 | ||
4110 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4111 | if test "x$LINE" != x ; then | |
4112 | eval "DEFAULT_$LINE" | |
4113 | else | |
4114 | no_cache=1 | |
4115 | fi | |
4116 | ||
4117 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4118 | ||
4119 | fi; | |
4120 | ||
4121 | eval "$ac_cv_use_compat22" | |
4122 | if test "$no_cache" != 1; then | |
4123 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4124 | fi | |
4125 | ||
4126 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4127 | echo "$as_me:$LINENO: result: yes" >&5 | |
4128 | echo "${ECHO_T}yes" >&6 | |
4129 | else | |
4130 | echo "$as_me:$LINENO: result: no" >&5 | |
4131 | echo "${ECHO_T}no" >&6 | |
4132 | fi | |
4133 | ||
4134 | ||
4135 | enablestring=disable | |
4136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4137 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4138 | no_cache=0 | |
4139 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4140 | if test "${enable_compat24+set}" = set; then | |
4141 | enableval="$enable_compat24" | |
4142 | ||
4143 | if test "$enableval" = yes; then | |
4144 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4145 | else | |
4146 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4147 | fi | |
4148 | ||
4149 | else | |
4150 | ||
4151 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4152 | if test "x$LINE" != x ; then | |
4153 | eval "DEFAULT_$LINE" | |
4154 | else | |
4155 | no_cache=1 | |
4156 | fi | |
4157 | ||
4158 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4159 | ||
4160 | fi; | |
4161 | ||
4162 | eval "$ac_cv_use_compat24" | |
4163 | if test "$no_cache" != 1; then | |
4164 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4165 | fi | |
4166 | ||
4167 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4168 | echo "$as_me:$LINENO: result: yes" >&5 | |
4169 | echo "${ECHO_T}yes" >&6 | |
4170 | else | |
4171 | echo "$as_me:$LINENO: result: no" >&5 | |
4172 | echo "${ECHO_T}no" >&6 | |
4173 | fi | |
4174 | ||
4175 | ||
ffa0583f RL |
4176 | |
4177 | enablestring= | |
4178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4179 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4180 | no_cache=0 | |
4181 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4182 | if test "${enable_rpath+set}" = set; then |
4183 | enableval="$enable_rpath" | |
ffa0583f RL |
4184 | |
4185 | if test "$enableval" = yes; then | |
4186 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4187 | else | |
4188 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4189 | fi | |
4190 | ||
4191 | else | |
4192 | ||
4193 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4194 | if test "x$LINE" != x ; then | |
4195 | eval "DEFAULT_$LINE" | |
4196 | else | |
4197 | no_cache=1 | |
4198 | fi | |
4199 | ||
4200 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4201 | ||
a848cd7e SC |
4202 | fi; |
4203 | ||
ffa0583f RL |
4204 | eval "$ac_cv_use_rpath" |
4205 | if test "$no_cache" != 1; then | |
4206 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4207 | fi | |
4208 | ||
4209 | if test "$wxUSE_RPATH" = yes; then | |
4210 | echo "$as_me:$LINENO: result: yes" >&5 | |
4211 | echo "${ECHO_T}yes" >&6 | |
4212 | else | |
4213 | echo "$as_me:$LINENO: result: no" >&5 | |
4214 | echo "${ECHO_T}no" >&6 | |
4215 | fi | |
4216 | ||
a848cd7e SC |
4217 | |
4218 | ||
4219 | ||
4220 | ||
4221 | enablestring= | |
4222 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4223 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4224 | no_cache=0 | |
4225 | # Check whether --enable-intl or --disable-intl was given. | |
4226 | if test "${enable_intl+set}" = set; then | |
4227 | enableval="$enable_intl" | |
4228 | ||
4229 | if test "$enableval" = yes; then | |
4230 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4231 | else | |
4232 | ac_cv_use_intl='wxUSE_INTL=no' | |
4233 | fi | |
4234 | ||
4235 | else | |
4236 | ||
4237 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4238 | if test "x$LINE" != x ; then | |
4239 | eval "DEFAULT_$LINE" | |
4240 | else | |
4241 | no_cache=1 | |
4242 | fi | |
4243 | ||
4244 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4245 | ||
4246 | fi; | |
4247 | ||
4248 | eval "$ac_cv_use_intl" | |
4249 | if test "$no_cache" != 1; then | |
4250 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4251 | fi | |
4252 | ||
4253 | if test "$wxUSE_INTL" = yes; then | |
4254 | echo "$as_me:$LINENO: result: yes" >&5 | |
4255 | echo "${ECHO_T}yes" >&6 | |
4256 | else | |
4257 | echo "$as_me:$LINENO: result: no" >&5 | |
4258 | echo "${ECHO_T}no" >&6 | |
4259 | fi | |
4260 | ||
4261 | ||
4262 | enablestring= | |
4263 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4264 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4265 | no_cache=0 | |
4266 | # Check whether --enable-config or --disable-config was given. | |
4267 | if test "${enable_config+set}" = set; then | |
4268 | enableval="$enable_config" | |
4269 | ||
4270 | if test "$enableval" = yes; then | |
4271 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4272 | else | |
4273 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4274 | fi | |
4275 | ||
4276 | else | |
4277 | ||
4278 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4279 | if test "x$LINE" != x ; then | |
4280 | eval "DEFAULT_$LINE" | |
4281 | else | |
4282 | no_cache=1 | |
4283 | fi | |
4284 | ||
4285 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4286 | ||
4287 | fi; | |
4288 | ||
4289 | eval "$ac_cv_use_config" | |
4290 | if test "$no_cache" != 1; then | |
4291 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4292 | fi | |
4293 | ||
4294 | if test "$wxUSE_CONFIG" = yes; then | |
4295 | echo "$as_me:$LINENO: result: yes" >&5 | |
4296 | echo "${ECHO_T}yes" >&6 | |
4297 | else | |
4298 | echo "$as_me:$LINENO: result: no" >&5 | |
4299 | echo "${ECHO_T}no" >&6 | |
4300 | fi | |
4301 | ||
4302 | ||
4303 | ||
4304 | enablestring= | |
4305 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4306 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4307 | no_cache=0 | |
4308 | # Check whether --enable-protocols or --disable-protocols was given. | |
4309 | if test "${enable_protocols+set}" = set; then | |
4310 | enableval="$enable_protocols" | |
4311 | ||
4312 | if test "$enableval" = yes; then | |
4313 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4314 | else | |
4315 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4316 | fi | |
4317 | ||
4318 | else | |
4319 | ||
4320 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4321 | if test "x$LINE" != x ; then | |
4322 | eval "DEFAULT_$LINE" | |
4323 | else | |
4324 | no_cache=1 | |
4325 | fi | |
4326 | ||
4327 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4328 | ||
4329 | fi; | |
4330 | ||
4331 | eval "$ac_cv_use_protocols" | |
4332 | if test "$no_cache" != 1; then | |
4333 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4334 | fi | |
4335 | ||
4336 | if test "$wxUSE_PROTOCOL" = yes; then | |
4337 | echo "$as_me:$LINENO: result: yes" >&5 | |
4338 | echo "${ECHO_T}yes" >&6 | |
4339 | else | |
4340 | echo "$as_me:$LINENO: result: no" >&5 | |
4341 | echo "${ECHO_T}no" >&6 | |
4342 | fi | |
4343 | ||
4344 | ||
4345 | enablestring= | |
4346 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4347 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4348 | no_cache=0 | |
4349 | # Check whether --enable-ftp or --disable-ftp was given. | |
4350 | if test "${enable_ftp+set}" = set; then | |
4351 | enableval="$enable_ftp" | |
4352 | ||
4353 | if test "$enableval" = yes; then | |
4354 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4355 | else | |
4356 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4357 | fi | |
4358 | ||
4359 | else | |
4360 | ||
4361 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4362 | if test "x$LINE" != x ; then | |
4363 | eval "DEFAULT_$LINE" | |
4364 | else | |
4365 | no_cache=1 | |
4366 | fi | |
4367 | ||
4368 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4369 | ||
4370 | fi; | |
4371 | ||
4372 | eval "$ac_cv_use_ftp" | |
4373 | if test "$no_cache" != 1; then | |
4374 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4375 | fi | |
4376 | ||
4377 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4378 | echo "$as_me:$LINENO: result: yes" >&5 | |
4379 | echo "${ECHO_T}yes" >&6 | |
4380 | else | |
4381 | echo "$as_me:$LINENO: result: no" >&5 | |
4382 | echo "${ECHO_T}no" >&6 | |
4383 | fi | |
4384 | ||
4385 | ||
4386 | enablestring= | |
4387 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4388 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4389 | no_cache=0 | |
4390 | # Check whether --enable-http or --disable-http was given. | |
4391 | if test "${enable_http+set}" = set; then | |
4392 | enableval="$enable_http" | |
4393 | ||
4394 | if test "$enableval" = yes; then | |
4395 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4396 | else | |
4397 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4398 | fi | |
4399 | ||
4400 | else | |
4401 | ||
4402 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4403 | if test "x$LINE" != x ; then | |
4404 | eval "DEFAULT_$LINE" | |
4405 | else | |
4406 | no_cache=1 | |
4407 | fi | |
4408 | ||
4409 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4410 | ||
4411 | fi; | |
4412 | ||
4413 | eval "$ac_cv_use_http" | |
4414 | if test "$no_cache" != 1; then | |
4415 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4416 | fi | |
4417 | ||
4418 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4419 | echo "$as_me:$LINENO: result: yes" >&5 | |
4420 | echo "${ECHO_T}yes" >&6 | |
4421 | else | |
4422 | echo "$as_me:$LINENO: result: no" >&5 | |
4423 | echo "${ECHO_T}no" >&6 | |
4424 | fi | |
4425 | ||
4426 | ||
4427 | enablestring= | |
4428 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4429 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4430 | no_cache=0 | |
4431 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4432 | if test "${enable_fileproto+set}" = set; then | |
4433 | enableval="$enable_fileproto" | |
4434 | ||
4435 | if test "$enableval" = yes; then | |
4436 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4437 | else | |
4438 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4439 | fi | |
4440 | ||
4441 | else | |
4442 | ||
4443 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4444 | if test "x$LINE" != x ; then | |
4445 | eval "DEFAULT_$LINE" | |
4446 | else | |
4447 | no_cache=1 | |
4448 | fi | |
4449 | ||
4450 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4451 | ||
4452 | fi; | |
4453 | ||
4454 | eval "$ac_cv_use_fileproto" | |
4455 | if test "$no_cache" != 1; then | |
4456 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4457 | fi | |
4458 | ||
4459 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4460 | echo "$as_me:$LINENO: result: yes" >&5 | |
4461 | echo "${ECHO_T}yes" >&6 | |
4462 | else | |
4463 | echo "$as_me:$LINENO: result: no" >&5 | |
4464 | echo "${ECHO_T}no" >&6 | |
4465 | fi | |
4466 | ||
4467 | ||
4468 | enablestring= | |
4469 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4470 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4471 | no_cache=0 | |
4472 | # Check whether --enable-sockets or --disable-sockets was given. | |
4473 | if test "${enable_sockets+set}" = set; then | |
4474 | enableval="$enable_sockets" | |
4475 | ||
4476 | if test "$enableval" = yes; then | |
4477 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4478 | else | |
4479 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4480 | fi | |
4481 | ||
4482 | else | |
4483 | ||
4484 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4485 | if test "x$LINE" != x ; then | |
4486 | eval "DEFAULT_$LINE" | |
4487 | else | |
4488 | no_cache=1 | |
4489 | fi | |
4490 | ||
4491 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4492 | ||
4493 | fi; | |
4494 | ||
4495 | eval "$ac_cv_use_sockets" | |
4496 | if test "$no_cache" != 1; then | |
4497 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4498 | fi | |
4499 | ||
4500 | if test "$wxUSE_SOCKETS" = yes; then | |
4501 | echo "$as_me:$LINENO: result: yes" >&5 | |
4502 | echo "${ECHO_T}yes" >&6 | |
4503 | else | |
4504 | echo "$as_me:$LINENO: result: no" >&5 | |
4505 | echo "${ECHO_T}no" >&6 | |
4506 | fi | |
4507 | ||
4508 | ||
4509 | enablestring= | |
4510 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4511 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4512 | no_cache=0 | |
4513 | # Check whether --enable-ole or --disable-ole was given. | |
4514 | if test "${enable_ole+set}" = set; then | |
4515 | enableval="$enable_ole" | |
4516 | ||
4517 | if test "$enableval" = yes; then | |
4518 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4519 | else | |
4520 | ac_cv_use_ole='wxUSE_OLE=no' | |
4521 | fi | |
4522 | ||
4523 | else | |
4524 | ||
4525 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4526 | if test "x$LINE" != x ; then | |
4527 | eval "DEFAULT_$LINE" | |
4528 | else | |
4529 | no_cache=1 | |
4530 | fi | |
4531 | ||
4532 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4533 | ||
4534 | fi; | |
4535 | ||
4536 | eval "$ac_cv_use_ole" | |
4537 | if test "$no_cache" != 1; then | |
4538 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4539 | fi | |
4540 | ||
4541 | if test "$wxUSE_OLE" = yes; then | |
4542 | echo "$as_me:$LINENO: result: yes" >&5 | |
4543 | echo "${ECHO_T}yes" >&6 | |
4544 | else | |
4545 | echo "$as_me:$LINENO: result: no" >&5 | |
4546 | echo "${ECHO_T}no" >&6 | |
4547 | fi | |
4548 | ||
4549 | ||
4550 | enablestring= | |
4551 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4552 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4553 | no_cache=0 | |
4554 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4555 | if test "${enable_dataobj+set}" = set; then | |
4556 | enableval="$enable_dataobj" | |
4557 | ||
4558 | if test "$enableval" = yes; then | |
4559 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4560 | else | |
4561 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4562 | fi | |
4563 | ||
4564 | else | |
4565 | ||
4566 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4567 | if test "x$LINE" != x ; then | |
4568 | eval "DEFAULT_$LINE" | |
4569 | else | |
4570 | no_cache=1 | |
4571 | fi | |
4572 | ||
4573 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4574 | ||
4575 | fi; | |
4576 | ||
4577 | eval "$ac_cv_use_dataobj" | |
4578 | if test "$no_cache" != 1; then | |
4579 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4580 | fi | |
4581 | ||
4582 | if test "$wxUSE_DATAOBJ" = yes; then | |
4583 | echo "$as_me:$LINENO: result: yes" >&5 | |
4584 | echo "${ECHO_T}yes" >&6 | |
4585 | else | |
4586 | echo "$as_me:$LINENO: result: no" >&5 | |
4587 | echo "${ECHO_T}no" >&6 | |
4588 | fi | |
4589 | ||
4590 | ||
4591 | ||
4592 | enablestring= | |
4593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4594 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4595 | no_cache=0 | |
4596 | # Check whether --enable-ipc or --disable-ipc was given. | |
4597 | if test "${enable_ipc+set}" = set; then | |
4598 | enableval="$enable_ipc" | |
4599 | ||
4600 | if test "$enableval" = yes; then | |
4601 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4602 | else | |
4603 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4604 | fi | |
4605 | ||
4606 | else | |
4607 | ||
4608 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4609 | if test "x$LINE" != x ; then | |
4610 | eval "DEFAULT_$LINE" | |
4611 | else | |
4612 | no_cache=1 | |
4613 | fi | |
4614 | ||
4615 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4616 | ||
4617 | fi; | |
4618 | ||
4619 | eval "$ac_cv_use_ipc" | |
4620 | if test "$no_cache" != 1; then | |
4621 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4622 | fi | |
4623 | ||
4624 | if test "$wxUSE_IPC" = yes; then | |
4625 | echo "$as_me:$LINENO: result: yes" >&5 | |
4626 | echo "${ECHO_T}yes" >&6 | |
4627 | else | |
4628 | echo "$as_me:$LINENO: result: no" >&5 | |
4629 | echo "${ECHO_T}no" >&6 | |
4630 | fi | |
4631 | ||
4632 | ||
4633 | ||
4634 | enablestring= | |
4635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4636 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4637 | no_cache=0 | |
4638 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4639 | if test "${enable_apple_ieee+set}" = set; then | |
4640 | enableval="$enable_apple_ieee" | |
4641 | ||
4642 | if test "$enableval" = yes; then | |
4643 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4644 | else | |
4645 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4646 | fi | |
4647 | ||
4648 | else | |
4649 | ||
4650 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4651 | if test "x$LINE" != x ; then | |
4652 | eval "DEFAULT_$LINE" | |
4653 | else | |
4654 | no_cache=1 | |
4655 | fi | |
4656 | ||
4657 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4658 | ||
4659 | fi; | |
4660 | ||
4661 | eval "$ac_cv_use_apple_ieee" | |
4662 | if test "$no_cache" != 1; then | |
4663 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4664 | fi | |
4665 | ||
4666 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4667 | echo "$as_me:$LINENO: result: yes" >&5 | |
4668 | echo "${ECHO_T}yes" >&6 | |
4669 | else | |
4670 | echo "$as_me:$LINENO: result: no" >&5 | |
4671 | echo "${ECHO_T}no" >&6 | |
4672 | fi | |
4673 | ||
4674 | ||
81f90336 MW |
4675 | enablestring= |
4676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4677 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4678 | no_cache=0 | |
4679 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4680 | if test "${enable_arcstream+set}" = set; then | |
4681 | enableval="$enable_arcstream" | |
4682 | ||
4683 | if test "$enableval" = yes; then | |
9e8e867f | 4684 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4685 | else |
9e8e867f | 4686 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4687 | fi |
4688 | ||
4689 | else | |
4690 | ||
9e8e867f | 4691 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4692 | if test "x$LINE" != x ; then |
4693 | eval "DEFAULT_$LINE" | |
4694 | else | |
4695 | no_cache=1 | |
4696 | fi | |
4697 | ||
9e8e867f | 4698 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4699 | |
4700 | fi; | |
4701 | ||
4702 | eval "$ac_cv_use_arcstream" | |
4703 | if test "$no_cache" != 1; then | |
4704 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4705 | fi | |
4706 | ||
9e8e867f | 4707 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4708 | echo "$as_me:$LINENO: result: yes" >&5 |
4709 | echo "${ECHO_T}yes" >&6 | |
4710 | else | |
4711 | echo "$as_me:$LINENO: result: no" >&5 | |
4712 | echo "${ECHO_T}no" >&6 | |
4713 | fi | |
4714 | ||
4715 | ||
a848cd7e SC |
4716 | enablestring= |
4717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4718 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4719 | no_cache=0 | |
4720 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4721 | if test "${enable_catch_segvs+set}" = set; then | |
4722 | enableval="$enable_catch_segvs" | |
4723 | ||
4724 | if test "$enableval" = yes; then | |
4725 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4726 | else | |
4727 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4728 | fi | |
4729 | ||
4730 | else | |
4731 | ||
4732 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4733 | if test "x$LINE" != x ; then | |
4734 | eval "DEFAULT_$LINE" | |
4735 | else | |
4736 | no_cache=1 | |
4737 | fi | |
4738 | ||
4739 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4740 | ||
4741 | fi; | |
4742 | ||
4743 | eval "$ac_cv_use_catch_segvs" | |
4744 | if test "$no_cache" != 1; then | |
4745 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4746 | fi | |
4747 | ||
4748 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4749 | echo "$as_me:$LINENO: result: yes" >&5 | |
4750 | echo "${ECHO_T}yes" >&6 | |
4751 | else | |
4752 | echo "$as_me:$LINENO: result: no" >&5 | |
4753 | echo "${ECHO_T}no" >&6 | |
4754 | fi | |
4755 | ||
4756 | ||
eaff0f0d VZ |
4757 | enablestring= |
4758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 | |
4759 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
4760 | no_cache=0 | |
4761 | # Check whether --enable-backtrace or --disable-backtrace was given. | |
4762 | if test "${enable_backtrace+set}" = set; then | |
4763 | enableval="$enable_backtrace" | |
4764 | ||
4765 | if test "$enableval" = yes; then | |
4766 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' | |
4767 | else | |
4768 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' | |
4769 | fi | |
4770 | ||
4771 | else | |
4772 | ||
4773 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` | |
4774 | if test "x$LINE" != x ; then | |
4775 | eval "DEFAULT_$LINE" | |
4776 | else | |
4777 | no_cache=1 | |
4778 | fi | |
4779 | ||
4780 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER | |
4781 | ||
4782 | fi; | |
4783 | ||
4784 | eval "$ac_cv_use_backtrace" | |
4785 | if test "$no_cache" != 1; then | |
4786 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp | |
4787 | fi | |
4788 | ||
4789 | if test "$wxUSE_STACKWALKER" = yes; then | |
4790 | echo "$as_me:$LINENO: result: yes" >&5 | |
4791 | echo "${ECHO_T}yes" >&6 | |
4792 | else | |
4793 | echo "$as_me:$LINENO: result: no" >&5 | |
4794 | echo "${ECHO_T}no" >&6 | |
4795 | fi | |
4796 | ||
4797 | ||
a848cd7e SC |
4798 | enablestring= |
4799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4800 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4801 | no_cache=0 | |
4802 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4803 | if test "${enable_cmdline+set}" = set; then | |
4804 | enableval="$enable_cmdline" | |
4805 | ||
4806 | if test "$enableval" = yes; then | |
4807 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4808 | else | |
4809 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4810 | fi | |
4811 | ||
4812 | else | |
4813 | ||
4814 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4815 | if test "x$LINE" != x ; then | |
4816 | eval "DEFAULT_$LINE" | |
4817 | else | |
4818 | no_cache=1 | |
4819 | fi | |
4820 | ||
4821 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4822 | ||
4823 | fi; | |
4824 | ||
4825 | eval "$ac_cv_use_cmdline" | |
4826 | if test "$no_cache" != 1; then | |
4827 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4828 | fi | |
4829 | ||
4830 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4831 | echo "$as_me:$LINENO: result: yes" >&5 | |
4832 | echo "${ECHO_T}yes" >&6 | |
4833 | else | |
4834 | echo "$as_me:$LINENO: result: no" >&5 | |
4835 | echo "${ECHO_T}no" >&6 | |
4836 | fi | |
4837 | ||
4838 | ||
4839 | enablestring= | |
4840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4841 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4842 | no_cache=0 | |
4843 | # Check whether --enable-datetime or --disable-datetime was given. | |
4844 | if test "${enable_datetime+set}" = set; then | |
4845 | enableval="$enable_datetime" | |
4846 | ||
4847 | if test "$enableval" = yes; then | |
4848 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4849 | else | |
4850 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4851 | fi | |
4852 | ||
4853 | else | |
4854 | ||
4855 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4856 | if test "x$LINE" != x ; then | |
4857 | eval "DEFAULT_$LINE" | |
4858 | else | |
4859 | no_cache=1 | |
4860 | fi | |
4861 | ||
4862 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4863 | ||
4864 | fi; | |
4865 | ||
4866 | eval "$ac_cv_use_datetime" | |
4867 | if test "$no_cache" != 1; then | |
4868 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4869 | fi | |
4870 | ||
4871 | if test "$wxUSE_DATETIME" = yes; then | |
4872 | echo "$as_me:$LINENO: result: yes" >&5 | |
4873 | echo "${ECHO_T}yes" >&6 | |
4874 | else | |
4875 | echo "$as_me:$LINENO: result: no" >&5 | |
4876 | echo "${ECHO_T}no" >&6 | |
4877 | fi | |
4878 | ||
4879 | ||
4880 | enablestring= | |
4881 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4882 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4883 | no_cache=0 | |
4884 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4885 | if test "${enable_dialupman+set}" = set; then | |
4886 | enableval="$enable_dialupman" | |
4887 | ||
4888 | if test "$enableval" = yes; then | |
4889 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4890 | else | |
4891 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4892 | fi | |
4893 | ||
4894 | else | |
4895 | ||
4896 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4897 | if test "x$LINE" != x ; then | |
4898 | eval "DEFAULT_$LINE" | |
4899 | else | |
4900 | no_cache=1 | |
4901 | fi | |
4902 | ||
4903 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4904 | ||
4905 | fi; | |
4906 | ||
4907 | eval "$ac_cv_use_dialupman" | |
4908 | if test "$no_cache" != 1; then | |
4909 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4910 | fi | |
4911 | ||
4912 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4913 | echo "$as_me:$LINENO: result: yes" >&5 | |
4914 | echo "${ECHO_T}yes" >&6 | |
4915 | else | |
4916 | echo "$as_me:$LINENO: result: no" >&5 | |
4917 | echo "${ECHO_T}no" >&6 | |
4918 | fi | |
4919 | ||
4920 | ||
4921 | enablestring= | |
4922 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4923 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4924 | no_cache=0 | |
4925 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4926 | if test "${enable_dynlib+set}" = set; then | |
4927 | enableval="$enable_dynlib" | |
4928 | ||
4929 | if test "$enableval" = yes; then | |
4930 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4931 | else | |
4932 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4933 | fi | |
4934 | ||
4935 | else | |
4936 | ||
4937 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4938 | if test "x$LINE" != x ; then | |
4939 | eval "DEFAULT_$LINE" | |
4940 | else | |
4941 | no_cache=1 | |
4942 | fi | |
4943 | ||
4944 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4945 | ||
4946 | fi; | |
4947 | ||
4948 | eval "$ac_cv_use_dynlib" | |
4949 | if test "$no_cache" != 1; then | |
4950 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4951 | fi | |
4952 | ||
4953 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4954 | echo "$as_me:$LINENO: result: yes" >&5 | |
4955 | echo "${ECHO_T}yes" >&6 | |
4956 | else | |
4957 | echo "$as_me:$LINENO: result: no" >&5 | |
4958 | echo "${ECHO_T}no" >&6 | |
4959 | fi | |
4960 | ||
4961 | ||
4962 | enablestring= | |
4963 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4964 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4965 | no_cache=0 | |
4966 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4967 | if test "${enable_dynamicloader+set}" = set; then | |
4968 | enableval="$enable_dynamicloader" | |
4969 | ||
4970 | if test "$enableval" = yes; then | |
4971 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4972 | else | |
4973 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4974 | fi | |
4975 | ||
4976 | else | |
4977 | ||
4978 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4979 | if test "x$LINE" != x ; then | |
4980 | eval "DEFAULT_$LINE" | |
4981 | else | |
4982 | no_cache=1 | |
4983 | fi | |
4984 | ||
4985 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4986 | ||
4987 | fi; | |
4988 | ||
4989 | eval "$ac_cv_use_dynamicloader" | |
4990 | if test "$no_cache" != 1; then | |
4991 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4992 | fi | |
4993 | ||
4994 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4995 | echo "$as_me:$LINENO: result: yes" >&5 | |
4996 | echo "${ECHO_T}yes" >&6 | |
4997 | else | |
4998 | echo "$as_me:$LINENO: result: no" >&5 | |
4999 | echo "${ECHO_T}no" >&6 | |
5000 | fi | |
5001 | ||
5002 | ||
5003 | enablestring= | |
5004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5005 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5006 | no_cache=0 | |
5007 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5008 | if test "${enable_exceptions+set}" = set; then | |
5009 | enableval="$enable_exceptions" | |
5010 | ||
5011 | if test "$enableval" = yes; then | |
5012 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5013 | else | |
5014 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5015 | fi | |
5016 | ||
5017 | else | |
5018 | ||
5019 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5020 | if test "x$LINE" != x ; then | |
5021 | eval "DEFAULT_$LINE" | |
5022 | else | |
5023 | no_cache=1 | |
5024 | fi | |
5025 | ||
5026 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5027 | ||
5028 | fi; | |
5029 | ||
5030 | eval "$ac_cv_use_exceptions" | |
5031 | if test "$no_cache" != 1; then | |
5032 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5033 | fi | |
5034 | ||
5035 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5036 | echo "$as_me:$LINENO: result: yes" >&5 | |
5037 | echo "${ECHO_T}yes" >&6 | |
5038 | else | |
5039 | echo "$as_me:$LINENO: result: no" >&5 | |
5040 | echo "${ECHO_T}no" >&6 | |
5041 | fi | |
5042 | ||
5043 | ||
5044 | enablestring= | |
5045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5046 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5047 | no_cache=0 | |
5048 | # Check whether --enable-ffile or --disable-ffile was given. | |
5049 | if test "${enable_ffile+set}" = set; then | |
5050 | enableval="$enable_ffile" | |
5051 | ||
5052 | if test "$enableval" = yes; then | |
5053 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5054 | else | |
5055 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5056 | fi | |
5057 | ||
5058 | else | |
5059 | ||
5060 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5061 | if test "x$LINE" != x ; then | |
5062 | eval "DEFAULT_$LINE" | |
5063 | else | |
5064 | no_cache=1 | |
5065 | fi | |
5066 | ||
5067 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5068 | ||
5069 | fi; | |
5070 | ||
5071 | eval "$ac_cv_use_ffile" | |
5072 | if test "$no_cache" != 1; then | |
5073 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5074 | fi | |
5075 | ||
5076 | if test "$wxUSE_FFILE" = yes; then | |
5077 | echo "$as_me:$LINENO: result: yes" >&5 | |
5078 | echo "${ECHO_T}yes" >&6 | |
5079 | else | |
5080 | echo "$as_me:$LINENO: result: no" >&5 | |
5081 | echo "${ECHO_T}no" >&6 | |
5082 | fi | |
5083 | ||
5084 | ||
5085 | enablestring= | |
5086 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5087 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5088 | no_cache=0 | |
5089 | # Check whether --enable-file or --disable-file was given. | |
5090 | if test "${enable_file+set}" = set; then | |
5091 | enableval="$enable_file" | |
5092 | ||
5093 | if test "$enableval" = yes; then | |
5094 | ac_cv_use_file='wxUSE_FILE=yes' | |
5095 | else | |
5096 | ac_cv_use_file='wxUSE_FILE=no' | |
5097 | fi | |
5098 | ||
5099 | else | |
5100 | ||
5101 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5102 | if test "x$LINE" != x ; then | |
5103 | eval "DEFAULT_$LINE" | |
5104 | else | |
5105 | no_cache=1 | |
5106 | fi | |
5107 | ||
5108 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5109 | ||
5110 | fi; | |
5111 | ||
5112 | eval "$ac_cv_use_file" | |
5113 | if test "$no_cache" != 1; then | |
5114 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5115 | fi | |
5116 | ||
5117 | if test "$wxUSE_FILE" = yes; then | |
5118 | echo "$as_me:$LINENO: result: yes" >&5 | |
5119 | echo "${ECHO_T}yes" >&6 | |
5120 | else | |
5121 | echo "$as_me:$LINENO: result: no" >&5 | |
5122 | echo "${ECHO_T}no" >&6 | |
5123 | fi | |
5124 | ||
5125 | ||
5126 | enablestring= | |
5127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5128 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5129 | no_cache=0 | |
5130 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5131 | if test "${enable_filesystem+set}" = set; then | |
5132 | enableval="$enable_filesystem" | |
5133 | ||
5134 | if test "$enableval" = yes; then | |
5135 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5136 | else | |
5137 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5138 | fi | |
5139 | ||
5140 | else | |
5141 | ||
5142 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5143 | if test "x$LINE" != x ; then | |
5144 | eval "DEFAULT_$LINE" | |
5145 | else | |
5146 | no_cache=1 | |
5147 | fi | |
5148 | ||
5149 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5150 | ||
5151 | fi; | |
5152 | ||
5153 | eval "$ac_cv_use_filesystem" | |
5154 | if test "$no_cache" != 1; then | |
5155 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5156 | fi | |
5157 | ||
5158 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5159 | echo "$as_me:$LINENO: result: yes" >&5 | |
5160 | echo "${ECHO_T}yes" >&6 | |
5161 | else | |
5162 | echo "$as_me:$LINENO: result: no" >&5 | |
5163 | echo "${ECHO_T}no" >&6 | |
5164 | fi | |
5165 | ||
5166 | ||
5167 | enablestring= | |
5168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5169 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5170 | no_cache=0 | |
5171 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5172 | if test "${enable_fontmap+set}" = set; then | |
5173 | enableval="$enable_fontmap" | |
5174 | ||
5175 | if test "$enableval" = yes; then | |
5176 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5177 | else | |
5178 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5179 | fi | |
5180 | ||
5181 | else | |
5182 | ||
5183 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5184 | if test "x$LINE" != x ; then | |
5185 | eval "DEFAULT_$LINE" | |
5186 | else | |
5187 | no_cache=1 | |
5188 | fi | |
5189 | ||
5190 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5191 | ||
5192 | fi; | |
5193 | ||
5194 | eval "$ac_cv_use_fontmap" | |
5195 | if test "$no_cache" != 1; then | |
5196 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5197 | fi | |
5198 | ||
5199 | if test "$wxUSE_FONTMAP" = yes; then | |
5200 | echo "$as_me:$LINENO: result: yes" >&5 | |
5201 | echo "${ECHO_T}yes" >&6 | |
5202 | else | |
5203 | echo "$as_me:$LINENO: result: no" >&5 | |
5204 | echo "${ECHO_T}no" >&6 | |
5205 | fi | |
5206 | ||
5207 | ||
5208 | enablestring= | |
5209 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5210 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5211 | no_cache=0 | |
5212 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5213 | if test "${enable_fs_inet+set}" = set; then | |
5214 | enableval="$enable_fs_inet" | |
5215 | ||
5216 | if test "$enableval" = yes; then | |
5217 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5218 | else | |
5219 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5220 | fi | |
5221 | ||
5222 | else | |
5223 | ||
5224 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5225 | if test "x$LINE" != x ; then | |
5226 | eval "DEFAULT_$LINE" | |
5227 | else | |
5228 | no_cache=1 | |
5229 | fi | |
5230 | ||
5231 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5232 | ||
5233 | fi; | |
5234 | ||
5235 | eval "$ac_cv_use_fs_inet" | |
5236 | if test "$no_cache" != 1; then | |
5237 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5238 | fi | |
5239 | ||
5240 | if test "$wxUSE_FS_INET" = yes; then | |
5241 | echo "$as_me:$LINENO: result: yes" >&5 | |
5242 | echo "${ECHO_T}yes" >&6 | |
5243 | else | |
5244 | echo "$as_me:$LINENO: result: no" >&5 | |
5245 | echo "${ECHO_T}no" >&6 | |
5246 | fi | |
5247 | ||
5248 | ||
5249 | enablestring= | |
5250 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5251 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5252 | no_cache=0 | |
5253 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5254 | if test "${enable_fs_zip+set}" = set; then | |
5255 | enableval="$enable_fs_zip" | |
5256 | ||
5257 | if test "$enableval" = yes; then | |
5258 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5259 | else | |
5260 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5261 | fi | |
5262 | ||
5263 | else | |
5264 | ||
5265 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5266 | if test "x$LINE" != x ; then | |
5267 | eval "DEFAULT_$LINE" | |
5268 | else | |
5269 | no_cache=1 | |
5270 | fi | |
5271 | ||
5272 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5273 | ||
5274 | fi; | |
5275 | ||
5276 | eval "$ac_cv_use_fs_zip" | |
5277 | if test "$no_cache" != 1; then | |
5278 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5279 | fi | |
5280 | ||
5281 | if test "$wxUSE_FS_ZIP" = yes; then | |
5282 | echo "$as_me:$LINENO: result: yes" >&5 | |
5283 | echo "${ECHO_T}yes" >&6 | |
5284 | else | |
5285 | echo "$as_me:$LINENO: result: no" >&5 | |
5286 | echo "${ECHO_T}no" >&6 | |
5287 | fi | |
5288 | ||
5289 | ||
5290 | enablestring= | |
5291 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5292 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5293 | no_cache=0 | |
5294 | # Check whether --enable-geometry or --disable-geometry was given. | |
5295 | if test "${enable_geometry+set}" = set; then | |
5296 | enableval="$enable_geometry" | |
5297 | ||
5298 | if test "$enableval" = yes; then | |
5299 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5300 | else | |
5301 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5302 | fi | |
5303 | ||
5304 | else | |
5305 | ||
5306 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5307 | if test "x$LINE" != x ; then | |
5308 | eval "DEFAULT_$LINE" | |
5309 | else | |
5310 | no_cache=1 | |
5311 | fi | |
5312 | ||
5313 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5314 | ||
5315 | fi; | |
5316 | ||
5317 | eval "$ac_cv_use_geometry" | |
5318 | if test "$no_cache" != 1; then | |
5319 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5320 | fi | |
5321 | ||
5322 | if test "$wxUSE_GEOMETRY" = yes; then | |
5323 | echo "$as_me:$LINENO: result: yes" >&5 | |
5324 | echo "${ECHO_T}yes" >&6 | |
5325 | else | |
5326 | echo "$as_me:$LINENO: result: no" >&5 | |
5327 | echo "${ECHO_T}no" >&6 | |
5328 | fi | |
5329 | ||
5330 | ||
5331 | enablestring= | |
5332 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5333 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5334 | no_cache=0 | |
5335 | # Check whether --enable-log or --disable-log was given. | |
5336 | if test "${enable_log+set}" = set; then | |
5337 | enableval="$enable_log" | |
5338 | ||
5339 | if test "$enableval" = yes; then | |
5340 | ac_cv_use_log='wxUSE_LOG=yes' | |
5341 | else | |
5342 | ac_cv_use_log='wxUSE_LOG=no' | |
5343 | fi | |
5344 | ||
5345 | else | |
5346 | ||
5347 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5348 | if test "x$LINE" != x ; then | |
5349 | eval "DEFAULT_$LINE" | |
5350 | else | |
5351 | no_cache=1 | |
5352 | fi | |
5353 | ||
5354 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5355 | ||
5356 | fi; | |
5357 | ||
5358 | eval "$ac_cv_use_log" | |
5359 | if test "$no_cache" != 1; then | |
5360 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5361 | fi | |
5362 | ||
5363 | if test "$wxUSE_LOG" = yes; then | |
5364 | echo "$as_me:$LINENO: result: yes" >&5 | |
5365 | echo "${ECHO_T}yes" >&6 | |
5366 | else | |
5367 | echo "$as_me:$LINENO: result: no" >&5 | |
5368 | echo "${ECHO_T}no" >&6 | |
5369 | fi | |
5370 | ||
5371 | ||
5372 | enablestring= | |
5373 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5374 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5375 | no_cache=0 | |
5376 | # Check whether --enable-longlong or --disable-longlong was given. | |
5377 | if test "${enable_longlong+set}" = set; then | |
5378 | enableval="$enable_longlong" | |
5379 | ||
5380 | if test "$enableval" = yes; then | |
5381 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5382 | else | |
5383 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5384 | fi | |
5385 | ||
5386 | else | |
5387 | ||
5388 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5389 | if test "x$LINE" != x ; then | |
5390 | eval "DEFAULT_$LINE" | |
5391 | else | |
5392 | no_cache=1 | |
5393 | fi | |
5394 | ||
5395 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5396 | ||
5397 | fi; | |
5398 | ||
5399 | eval "$ac_cv_use_longlong" | |
5400 | if test "$no_cache" != 1; then | |
5401 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5402 | fi | |
5403 | ||
5404 | if test "$wxUSE_LONGLONG" = yes; then | |
5405 | echo "$as_me:$LINENO: result: yes" >&5 | |
5406 | echo "${ECHO_T}yes" >&6 | |
5407 | else | |
5408 | echo "$as_me:$LINENO: result: no" >&5 | |
5409 | echo "${ECHO_T}no" >&6 | |
5410 | fi | |
5411 | ||
5412 | ||
5413 | enablestring= | |
5414 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5415 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5416 | no_cache=0 | |
5417 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5418 | if test "${enable_mimetype+set}" = set; then | |
5419 | enableval="$enable_mimetype" | |
5420 | ||
5421 | if test "$enableval" = yes; then | |
5422 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5423 | else | |
5424 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5425 | fi | |
5426 | ||
5427 | else | |
5428 | ||
5429 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5430 | if test "x$LINE" != x ; then | |
5431 | eval "DEFAULT_$LINE" | |
5432 | else | |
5433 | no_cache=1 | |
5434 | fi | |
5435 | ||
5436 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5437 | ||
5438 | fi; | |
5439 | ||
5440 | eval "$ac_cv_use_mimetype" | |
5441 | if test "$no_cache" != 1; then | |
5442 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5443 | fi | |
5444 | ||
5445 | if test "$wxUSE_MIMETYPE" = yes; then | |
5446 | echo "$as_me:$LINENO: result: yes" >&5 | |
5447 | echo "${ECHO_T}yes" >&6 | |
5448 | else | |
5449 | echo "$as_me:$LINENO: result: no" >&5 | |
5450 | echo "${ECHO_T}no" >&6 | |
5451 | fi | |
5452 | ||
5453 | ||
5454 | enablestring= | |
5455 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5456 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5457 | no_cache=0 | |
5458 | # Check whether --enable-mslu or --disable-mslu was given. | |
5459 | if test "${enable_mslu+set}" = set; then | |
5460 | enableval="$enable_mslu" | |
5461 | ||
5462 | if test "$enableval" = yes; then | |
5463 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5464 | else | |
5465 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5466 | fi | |
5467 | ||
5468 | else | |
5469 | ||
5470 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5471 | if test "x$LINE" != x ; then | |
5472 | eval "DEFAULT_$LINE" | |
5473 | else | |
5474 | no_cache=1 | |
5475 | fi | |
5476 | ||
5477 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5478 | ||
5479 | fi; | |
5480 | ||
5481 | eval "$ac_cv_use_mslu" | |
5482 | if test "$no_cache" != 1; then | |
5483 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5484 | fi | |
5485 | ||
5486 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5487 | echo "$as_me:$LINENO: result: yes" >&5 | |
5488 | echo "${ECHO_T}yes" >&6 | |
5489 | else | |
5490 | echo "$as_me:$LINENO: result: no" >&5 | |
5491 | echo "${ECHO_T}no" >&6 | |
5492 | fi | |
5493 | ||
5494 | ||
5495 | enablestring= | |
5496 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5497 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5498 | no_cache=0 | |
5499 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5500 | if test "${enable_snglinst+set}" = set; then | |
5501 | enableval="$enable_snglinst" | |
5502 | ||
5503 | if test "$enableval" = yes; then | |
5504 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5505 | else | |
5506 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5507 | fi | |
5508 | ||
5509 | else | |
5510 | ||
5511 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5512 | if test "x$LINE" != x ; then | |
5513 | eval "DEFAULT_$LINE" | |
5514 | else | |
5515 | no_cache=1 | |
5516 | fi | |
5517 | ||
5518 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5519 | ||
5520 | fi; | |
5521 | ||
5522 | eval "$ac_cv_use_snglinst" | |
5523 | if test "$no_cache" != 1; then | |
5524 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5525 | fi | |
5526 | ||
5527 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5528 | echo "$as_me:$LINENO: result: yes" >&5 | |
5529 | echo "${ECHO_T}yes" >&6 | |
5530 | else | |
5531 | echo "$as_me:$LINENO: result: no" >&5 | |
5532 | echo "${ECHO_T}no" >&6 | |
5533 | fi | |
5534 | ||
5535 | ||
5536 | enablestring= | |
5537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5538 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5539 | no_cache=0 | |
5540 | # Check whether --enable-streams or --disable-streams was given. | |
5541 | if test "${enable_streams+set}" = set; then | |
5542 | enableval="$enable_streams" | |
5543 | ||
5544 | if test "$enableval" = yes; then | |
5545 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5546 | else | |
5547 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5548 | fi | |
5549 | ||
5550 | else | |
5551 | ||
5552 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5553 | if test "x$LINE" != x ; then | |
5554 | eval "DEFAULT_$LINE" | |
5555 | else | |
5556 | no_cache=1 | |
5557 | fi | |
5558 | ||
5559 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5560 | ||
5561 | fi; | |
5562 | ||
5563 | eval "$ac_cv_use_streams" | |
5564 | if test "$no_cache" != 1; then | |
5565 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5566 | fi | |
5567 | ||
5568 | if test "$wxUSE_STREAMS" = yes; then | |
5569 | echo "$as_me:$LINENO: result: yes" >&5 | |
5570 | echo "${ECHO_T}yes" >&6 | |
5571 | else | |
5572 | echo "$as_me:$LINENO: result: no" >&5 | |
5573 | echo "${ECHO_T}no" >&6 | |
5574 | fi | |
5575 | ||
5576 | ||
5577 | enablestring= | |
5578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5579 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5580 | no_cache=0 | |
5581 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5582 | if test "${enable_std_iostreams+set}" = set; then | |
5583 | enableval="$enable_std_iostreams" | |
5584 | ||
5585 | if test "$enableval" = yes; then | |
5586 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5587 | else | |
5588 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5589 | fi | |
5590 | ||
5591 | else | |
5592 | ||
5593 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5594 | if test "x$LINE" != x ; then | |
5595 | eval "DEFAULT_$LINE" | |
5596 | else | |
5597 | no_cache=1 | |
5598 | fi | |
5599 | ||
5600 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5601 | ||
5602 | fi; | |
5603 | ||
5604 | eval "$ac_cv_use_std_iostreams" | |
5605 | if test "$no_cache" != 1; then | |
5606 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5607 | fi | |
5608 | ||
5609 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5610 | echo "$as_me:$LINENO: result: yes" >&5 | |
5611 | echo "${ECHO_T}yes" >&6 | |
5612 | else | |
5613 | echo "$as_me:$LINENO: result: no" >&5 | |
5614 | echo "${ECHO_T}no" >&6 | |
5615 | fi | |
5616 | ||
5617 | ||
5618 | enablestring= | |
5619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5620 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5621 | no_cache=0 | |
5622 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5623 | if test "${enable_stopwatch+set}" = set; then | |
5624 | enableval="$enable_stopwatch" | |
5625 | ||
5626 | if test "$enableval" = yes; then | |
5627 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5628 | else | |
5629 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5630 | fi | |
5631 | ||
5632 | else | |
5633 | ||
5634 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5635 | if test "x$LINE" != x ; then | |
5636 | eval "DEFAULT_$LINE" | |
5637 | else | |
5638 | no_cache=1 | |
5639 | fi | |
5640 | ||
5641 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5642 | ||
5643 | fi; | |
5644 | ||
5645 | eval "$ac_cv_use_stopwatch" | |
5646 | if test "$no_cache" != 1; then | |
5647 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5648 | fi | |
5649 | ||
5650 | if test "$wxUSE_STOPWATCH" = yes; then | |
5651 | echo "$as_me:$LINENO: result: yes" >&5 | |
5652 | echo "${ECHO_T}yes" >&6 | |
5653 | else | |
5654 | echo "$as_me:$LINENO: result: no" >&5 | |
5655 | echo "${ECHO_T}no" >&6 | |
5656 | fi | |
5657 | ||
5658 | ||
5659 | enablestring= | |
5660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5661 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5662 | no_cache=0 | |
5663 | # Check whether --enable-system_options or --disable-system_options was given. | |
5664 | if test "${enable_system_options+set}" = set; then | |
5665 | enableval="$enable_system_options" | |
5666 | ||
5667 | if test "$enableval" = yes; then | |
5668 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5669 | else | |
5670 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5671 | fi | |
5672 | ||
5673 | else | |
5674 | ||
5675 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5676 | if test "x$LINE" != x ; then | |
5677 | eval "DEFAULT_$LINE" | |
5678 | else | |
5679 | no_cache=1 | |
5680 | fi | |
5681 | ||
5682 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5683 | ||
5684 | fi; | |
5685 | ||
5686 | eval "$ac_cv_use_system_options" | |
5687 | if test "$no_cache" != 1; then | |
5688 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5689 | fi | |
5690 | ||
5691 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5692 | echo "$as_me:$LINENO: result: yes" >&5 | |
5693 | echo "${ECHO_T}yes" >&6 | |
5694 | else | |
5695 | echo "$as_me:$LINENO: result: no" >&5 | |
5696 | echo "${ECHO_T}no" >&6 | |
5697 | fi | |
5698 | ||
5699 | ||
5700 | enablestring= | |
5701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5702 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5703 | no_cache=0 | |
5704 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5705 | if test "${enable_textbuf+set}" = set; then | |
5706 | enableval="$enable_textbuf" | |
5707 | ||
5708 | if test "$enableval" = yes; then | |
5709 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5710 | else | |
5711 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5712 | fi | |
5713 | ||
5714 | else | |
5715 | ||
5716 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5717 | if test "x$LINE" != x ; then | |
5718 | eval "DEFAULT_$LINE" | |
5719 | else | |
5720 | no_cache=1 | |
5721 | fi | |
5722 | ||
5723 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5724 | ||
5725 | fi; | |
5726 | ||
5727 | eval "$ac_cv_use_textbuf" | |
5728 | if test "$no_cache" != 1; then | |
5729 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5730 | fi | |
5731 | ||
5732 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5733 | echo "$as_me:$LINENO: result: yes" >&5 | |
5734 | echo "${ECHO_T}yes" >&6 | |
5735 | else | |
5736 | echo "$as_me:$LINENO: result: no" >&5 | |
5737 | echo "${ECHO_T}no" >&6 | |
5738 | fi | |
5739 | ||
5740 | ||
5741 | enablestring= | |
5742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5743 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5744 | no_cache=0 | |
5745 | # Check whether --enable-textfile or --disable-textfile was given. | |
5746 | if test "${enable_textfile+set}" = set; then | |
5747 | enableval="$enable_textfile" | |
5748 | ||
5749 | if test "$enableval" = yes; then | |
5750 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5751 | else | |
5752 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5753 | fi | |
5754 | ||
5755 | else | |
5756 | ||
5757 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5758 | if test "x$LINE" != x ; then | |
5759 | eval "DEFAULT_$LINE" | |
5760 | else | |
5761 | no_cache=1 | |
5762 | fi | |
5763 | ||
5764 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5765 | ||
5766 | fi; | |
5767 | ||
5768 | eval "$ac_cv_use_textfile" | |
5769 | if test "$no_cache" != 1; then | |
5770 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5771 | fi | |
5772 | ||
5773 | if test "$wxUSE_TEXTFILE" = yes; then | |
5774 | echo "$as_me:$LINENO: result: yes" >&5 | |
5775 | echo "${ECHO_T}yes" >&6 | |
5776 | else | |
5777 | echo "$as_me:$LINENO: result: no" >&5 | |
5778 | echo "${ECHO_T}no" >&6 | |
5779 | fi | |
5780 | ||
5781 | ||
5782 | enablestring= | |
5783 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5784 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5785 | no_cache=0 | |
5786 | # Check whether --enable-timer or --disable-timer was given. | |
5787 | if test "${enable_timer+set}" = set; then | |
5788 | enableval="$enable_timer" | |
5789 | ||
5790 | if test "$enableval" = yes; then | |
5791 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5792 | else | |
5793 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5794 | fi | |
5795 | ||
5796 | else | |
5797 | ||
5798 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5799 | if test "x$LINE" != x ; then | |
5800 | eval "DEFAULT_$LINE" | |
5801 | else | |
5802 | no_cache=1 | |
5803 | fi | |
5804 | ||
5805 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5806 | ||
5807 | fi; | |
5808 | ||
5809 | eval "$ac_cv_use_timer" | |
5810 | if test "$no_cache" != 1; then | |
5811 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5812 | fi | |
5813 | ||
5814 | if test "$wxUSE_TIMER" = yes; then | |
5815 | echo "$as_me:$LINENO: result: yes" >&5 | |
5816 | echo "${ECHO_T}yes" >&6 | |
5817 | else | |
5818 | echo "$as_me:$LINENO: result: no" >&5 | |
5819 | echo "${ECHO_T}no" >&6 | |
5820 | fi | |
5821 | ||
5822 | ||
5823 | enablestring= | |
5824 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5825 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5826 | no_cache=0 | |
5827 | # Check whether --enable-unicode or --disable-unicode was given. | |
5828 | if test "${enable_unicode+set}" = set; then | |
5829 | enableval="$enable_unicode" | |
5830 | ||
5831 | if test "$enableval" = yes; then | |
5832 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5833 | else | |
5834 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5835 | fi | |
5836 | ||
5837 | else | |
5838 | ||
5839 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5840 | if test "x$LINE" != x ; then | |
5841 | eval "DEFAULT_$LINE" | |
5842 | else | |
5843 | no_cache=1 | |
5844 | fi | |
5845 | ||
5846 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5847 | ||
5848 | fi; | |
5849 | ||
5850 | eval "$ac_cv_use_unicode" | |
5851 | if test "$no_cache" != 1; then | |
5852 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5853 | fi | |
5854 | ||
5855 | if test "$wxUSE_UNICODE" = yes; then | |
5856 | echo "$as_me:$LINENO: result: yes" >&5 | |
5857 | echo "${ECHO_T}yes" >&6 | |
5858 | else | |
5859 | echo "$as_me:$LINENO: result: no" >&5 | |
5860 | echo "${ECHO_T}no" >&6 | |
5861 | fi | |
5862 | ||
5863 | ||
5864 | enablestring= | |
5865 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5866 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5867 | no_cache=0 | |
5868 | # Check whether --enable-sound or --disable-sound was given. | |
5869 | if test "${enable_sound+set}" = set; then | |
5870 | enableval="$enable_sound" | |
5871 | ||
5872 | if test "$enableval" = yes; then | |
5873 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5874 | else | |
5875 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5876 | fi | |
5877 | ||
5878 | else | |
5879 | ||
5880 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5881 | if test "x$LINE" != x ; then | |
5882 | eval "DEFAULT_$LINE" | |
5883 | else | |
5884 | no_cache=1 | |
5885 | fi | |
5886 | ||
5887 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5888 | ||
5889 | fi; | |
5890 | ||
5891 | eval "$ac_cv_use_sound" | |
5892 | if test "$no_cache" != 1; then | |
5893 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5894 | fi | |
5895 | ||
5896 | if test "$wxUSE_SOUND" = yes; then | |
5897 | echo "$as_me:$LINENO: result: yes" >&5 | |
5898 | echo "${ECHO_T}yes" >&6 | |
5899 | else | |
5900 | echo "$as_me:$LINENO: result: no" >&5 | |
5901 | echo "${ECHO_T}no" >&6 | |
5902 | fi | |
5903 | ||
5904 | ||
3b57de8b RL |
5905 | enablestring= |
5906 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
5907 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
5908 | no_cache=0 | |
5909 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
5910 | if test "${enable_mediactrl+set}" = set; then | |
5911 | enableval="$enable_mediactrl" | |
5912 | ||
5913 | if test "$enableval" = yes; then | |
5914 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
5915 | else | |
5916 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
5917 | fi | |
5918 | ||
5919 | else | |
5920 | ||
5921 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
5922 | if test "x$LINE" != x ; then | |
5923 | eval "DEFAULT_$LINE" | |
5924 | else | |
5925 | no_cache=1 | |
5926 | fi | |
5927 | ||
5928 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
5929 | ||
5930 | fi; | |
5931 | ||
5932 | eval "$ac_cv_use_mediactrl" | |
5933 | if test "$no_cache" != 1; then | |
5934 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
5935 | fi | |
5936 | ||
5937 | if test "$wxUSE_MEDIACTRL" = yes; then | |
5938 | echo "$as_me:$LINENO: result: yes" >&5 | |
5939 | echo "${ECHO_T}yes" >&6 | |
5940 | else | |
5941 | echo "$as_me:$LINENO: result: no" >&5 | |
5942 | echo "${ECHO_T}no" >&6 | |
5943 | fi | |
5944 | ||
5945 | ||
a848cd7e SC |
5946 | enablestring= |
5947 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5948 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5949 | no_cache=0 | |
5950 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5951 | if test "${enable_wxprintfv+set}" = set; then | |
5952 | enableval="$enable_wxprintfv" | |
5953 | ||
5954 | if test "$enableval" = yes; then | |
5955 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5956 | else | |
5957 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5958 | fi | |
5959 | ||
5960 | else | |
5961 | ||
5962 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5963 | if test "x$LINE" != x ; then | |
5964 | eval "DEFAULT_$LINE" | |
5965 | else | |
5966 | no_cache=1 | |
5967 | fi | |
5968 | ||
5969 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5970 | ||
5971 | fi; | |
5972 | ||
5973 | eval "$ac_cv_use_wxprintfv" | |
5974 | if test "$no_cache" != 1; then | |
5975 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5976 | fi | |
5977 | ||
5978 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5979 | echo "$as_me:$LINENO: result: yes" >&5 | |
5980 | echo "${ECHO_T}yes" >&6 | |
5981 | else | |
5982 | echo "$as_me:$LINENO: result: no" >&5 | |
5983 | echo "${ECHO_T}no" >&6 | |
5984 | fi | |
5985 | ||
5986 | ||
5987 | enablestring= | |
5988 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5989 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5990 | no_cache=0 | |
5991 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5992 | if test "${enable_zipstream+set}" = set; then | |
5993 | enableval="$enable_zipstream" | |
5994 | ||
5995 | if test "$enableval" = yes; then | |
5996 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5997 | else | |
5998 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5999 | fi | |
6000 | ||
6001 | else | |
6002 | ||
6003 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6004 | if test "x$LINE" != x ; then | |
6005 | eval "DEFAULT_$LINE" | |
6006 | else | |
6007 | no_cache=1 | |
6008 | fi | |
6009 | ||
6010 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6011 | ||
6012 | fi; | |
6013 | ||
6014 | eval "$ac_cv_use_zipstream" | |
6015 | if test "$no_cache" != 1; then | |
6016 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6017 | fi | |
6018 | ||
6019 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6020 | echo "$as_me:$LINENO: result: yes" >&5 | |
6021 | echo "${ECHO_T}yes" >&6 | |
6022 | else | |
6023 | echo "$as_me:$LINENO: result: no" >&5 | |
6024 | echo "${ECHO_T}no" >&6 | |
6025 | fi | |
6026 | ||
6027 | ||
a848cd7e SC |
6028 | |
6029 | enablestring= | |
6030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6031 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6032 | no_cache=0 | |
6033 | # Check whether --enable-url or --disable-url was given. | |
6034 | if test "${enable_url+set}" = set; then | |
6035 | enableval="$enable_url" | |
6036 | ||
6037 | if test "$enableval" = yes; then | |
6038 | ac_cv_use_url='wxUSE_URL=yes' | |
6039 | else | |
6040 | ac_cv_use_url='wxUSE_URL=no' | |
6041 | fi | |
6042 | ||
6043 | else | |
6044 | ||
6045 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6046 | if test "x$LINE" != x ; then | |
6047 | eval "DEFAULT_$LINE" | |
6048 | else | |
6049 | no_cache=1 | |
6050 | fi | |
6051 | ||
6052 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6053 | ||
6054 | fi; | |
6055 | ||
6056 | eval "$ac_cv_use_url" | |
6057 | if test "$no_cache" != 1; then | |
6058 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6059 | fi | |
6060 | ||
6061 | if test "$wxUSE_URL" = yes; then | |
6062 | echo "$as_me:$LINENO: result: yes" >&5 | |
6063 | echo "${ECHO_T}yes" >&6 | |
6064 | else | |
6065 | echo "$as_me:$LINENO: result: no" >&5 | |
6066 | echo "${ECHO_T}no" >&6 | |
6067 | fi | |
6068 | ||
6069 | ||
6070 | enablestring= | |
6071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6072 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6073 | no_cache=0 | |
6074 | # Check whether --enable-protocol or --disable-protocol was given. | |
6075 | if test "${enable_protocol+set}" = set; then | |
6076 | enableval="$enable_protocol" | |
6077 | ||
6078 | if test "$enableval" = yes; then | |
6079 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6080 | else | |
6081 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6082 | fi | |
6083 | ||
6084 | else | |
6085 | ||
6086 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6087 | if test "x$LINE" != x ; then | |
6088 | eval "DEFAULT_$LINE" | |
6089 | else | |
6090 | no_cache=1 | |
6091 | fi | |
6092 | ||
6093 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6094 | ||
6095 | fi; | |
6096 | ||
6097 | eval "$ac_cv_use_protocol" | |
6098 | if test "$no_cache" != 1; then | |
6099 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6100 | fi | |
6101 | ||
6102 | if test "$wxUSE_PROTOCOL" = yes; then | |
6103 | echo "$as_me:$LINENO: result: yes" >&5 | |
6104 | echo "${ECHO_T}yes" >&6 | |
6105 | else | |
6106 | echo "$as_me:$LINENO: result: no" >&5 | |
6107 | echo "${ECHO_T}no" >&6 | |
6108 | fi | |
6109 | ||
6110 | ||
6111 | enablestring= | |
6112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6113 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6114 | no_cache=0 | |
6115 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6116 | if test "${enable_protocol_http+set}" = set; then | |
6117 | enableval="$enable_protocol_http" | |
6118 | ||
6119 | if test "$enableval" = yes; then | |
6120 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6121 | else | |
6122 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6123 | fi | |
6124 | ||
6125 | else | |
6126 | ||
6127 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6128 | if test "x$LINE" != x ; then | |
6129 | eval "DEFAULT_$LINE" | |
6130 | else | |
6131 | no_cache=1 | |
6132 | fi | |
6133 | ||
6134 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6135 | ||
6136 | fi; | |
6137 | ||
6138 | eval "$ac_cv_use_protocol_http" | |
6139 | if test "$no_cache" != 1; then | |
6140 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6141 | fi | |
6142 | ||
6143 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6144 | echo "$as_me:$LINENO: result: yes" >&5 | |
6145 | echo "${ECHO_T}yes" >&6 | |
6146 | else | |
6147 | echo "$as_me:$LINENO: result: no" >&5 | |
6148 | echo "${ECHO_T}no" >&6 | |
6149 | fi | |
6150 | ||
6151 | ||
6152 | enablestring= | |
6153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6154 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6155 | no_cache=0 | |
6156 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6157 | if test "${enable_protocol_ftp+set}" = set; then | |
6158 | enableval="$enable_protocol_ftp" | |
6159 | ||
6160 | if test "$enableval" = yes; then | |
6161 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6162 | else | |
6163 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6164 | fi | |
6165 | ||
6166 | else | |
6167 | ||
6168 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6169 | if test "x$LINE" != x ; then | |
6170 | eval "DEFAULT_$LINE" | |
6171 | else | |
6172 | no_cache=1 | |
6173 | fi | |
6174 | ||
6175 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6176 | ||
6177 | fi; | |
6178 | ||
6179 | eval "$ac_cv_use_protocol_ftp" | |
6180 | if test "$no_cache" != 1; then | |
6181 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6182 | fi | |
6183 | ||
6184 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6185 | echo "$as_me:$LINENO: result: yes" >&5 | |
6186 | echo "${ECHO_T}yes" >&6 | |
6187 | else | |
6188 | echo "$as_me:$LINENO: result: no" >&5 | |
6189 | echo "${ECHO_T}no" >&6 | |
6190 | fi | |
6191 | ||
6192 | ||
6193 | enablestring= | |
6194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6195 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6196 | no_cache=0 | |
6197 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6198 | if test "${enable_protocol_file+set}" = set; then | |
6199 | enableval="$enable_protocol_file" | |
6200 | ||
6201 | if test "$enableval" = yes; then | |
6202 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6203 | else | |
6204 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6205 | fi | |
6206 | ||
6207 | else | |
6208 | ||
6209 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6210 | if test "x$LINE" != x ; then | |
6211 | eval "DEFAULT_$LINE" | |
6212 | else | |
6213 | no_cache=1 | |
6214 | fi | |
6215 | ||
6216 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6217 | ||
6218 | fi; | |
6219 | ||
6220 | eval "$ac_cv_use_protocol_file" | |
6221 | if test "$no_cache" != 1; then | |
6222 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6223 | fi | |
6224 | ||
6225 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6226 | echo "$as_me:$LINENO: result: yes" >&5 | |
6227 | echo "${ECHO_T}yes" >&6 | |
6228 | else | |
6229 | echo "$as_me:$LINENO: result: no" >&5 | |
6230 | echo "${ECHO_T}no" >&6 | |
6231 | fi | |
6232 | ||
6233 | ||
6234 | ||
6235 | ||
6236 | ||
6237 | enablestring= | |
6238 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6239 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6240 | no_cache=0 | |
6241 | # Check whether --enable-threads or --disable-threads was given. | |
6242 | if test "${enable_threads+set}" = set; then | |
6243 | enableval="$enable_threads" | |
6244 | ||
6245 | if test "$enableval" = yes; then | |
6246 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6247 | else | |
6248 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6249 | fi | |
6250 | ||
6251 | else | |
6252 | ||
6253 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6254 | if test "x$LINE" != x ; then | |
6255 | eval "DEFAULT_$LINE" | |
6256 | else | |
6257 | no_cache=1 | |
6258 | fi | |
6259 | ||
6260 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6261 | ||
6262 | fi; | |
6263 | ||
6264 | eval "$ac_cv_use_threads" | |
6265 | if test "$no_cache" != 1; then | |
6266 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6267 | fi | |
6268 | ||
6269 | if test "$wxUSE_THREADS" = yes; then | |
6270 | echo "$as_me:$LINENO: result: yes" >&5 | |
6271 | echo "${ECHO_T}yes" >&6 | |
6272 | else | |
6273 | echo "$as_me:$LINENO: result: no" >&5 | |
6274 | echo "${ECHO_T}no" >&6 | |
6275 | fi | |
6276 | ||
6277 | ||
6278 | if test "$wxUSE_GUI" = "yes"; then | |
6279 | ||
6280 | ||
6281 | ||
6282 | enablestring= | |
6283 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6284 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6285 | no_cache=0 | |
6286 | # Check whether --enable-docview or --disable-docview was given. | |
6287 | if test "${enable_docview+set}" = set; then | |
6288 | enableval="$enable_docview" | |
6289 | ||
6290 | if test "$enableval" = yes; then | |
6291 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6292 | else | |
6293 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6294 | fi | |
6295 | ||
6296 | else | |
6297 | ||
6298 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6299 | if test "x$LINE" != x ; then | |
6300 | eval "DEFAULT_$LINE" | |
6301 | else | |
6302 | no_cache=1 | |
6303 | fi | |
6304 | ||
6305 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6306 | ||
6307 | fi; | |
6308 | ||
6309 | eval "$ac_cv_use_docview" | |
6310 | if test "$no_cache" != 1; then | |
6311 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6312 | fi | |
6313 | ||
6314 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6315 | echo "$as_me:$LINENO: result: yes" >&5 | |
6316 | echo "${ECHO_T}yes" >&6 | |
6317 | else | |
6318 | echo "$as_me:$LINENO: result: no" >&5 | |
6319 | echo "${ECHO_T}no" >&6 | |
6320 | fi | |
6321 | ||
6322 | ||
6323 | enablestring= | |
6324 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6325 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6326 | no_cache=0 | |
6327 | # Check whether --enable-help or --disable-help was given. | |
6328 | if test "${enable_help+set}" = set; then | |
6329 | enableval="$enable_help" | |
6330 | ||
6331 | if test "$enableval" = yes; then | |
6332 | ac_cv_use_help='wxUSE_HELP=yes' | |
6333 | else | |
6334 | ac_cv_use_help='wxUSE_HELP=no' | |
6335 | fi | |
6336 | ||
6337 | else | |
6338 | ||
6339 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6340 | if test "x$LINE" != x ; then | |
6341 | eval "DEFAULT_$LINE" | |
6342 | else | |
6343 | no_cache=1 | |
6344 | fi | |
6345 | ||
6346 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6347 | ||
6348 | fi; | |
6349 | ||
6350 | eval "$ac_cv_use_help" | |
6351 | if test "$no_cache" != 1; then | |
6352 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6353 | fi | |
6354 | ||
6355 | if test "$wxUSE_HELP" = yes; then | |
6356 | echo "$as_me:$LINENO: result: yes" >&5 | |
6357 | echo "${ECHO_T}yes" >&6 | |
6358 | else | |
6359 | echo "$as_me:$LINENO: result: no" >&5 | |
6360 | echo "${ECHO_T}no" >&6 | |
6361 | fi | |
6362 | ||
6363 | ||
6364 | enablestring= | |
6365 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6366 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6367 | no_cache=0 | |
6368 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6369 | if test "${enable_mshtmlhelp+set}" = set; then | |
6370 | enableval="$enable_mshtmlhelp" | |
6371 | ||
6372 | if test "$enableval" = yes; then | |
6373 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6374 | else | |
6375 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6376 | fi | |
6377 | ||
6378 | else | |
6379 | ||
6380 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6381 | if test "x$LINE" != x ; then | |
6382 | eval "DEFAULT_$LINE" | |
6383 | else | |
6384 | no_cache=1 | |
6385 | fi | |
6386 | ||
6387 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6388 | ||
6389 | fi; | |
6390 | ||
6391 | eval "$ac_cv_use_mshtmlhelp" | |
6392 | if test "$no_cache" != 1; then | |
6393 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6394 | fi | |
6395 | ||
6396 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6397 | echo "$as_me:$LINENO: result: yes" >&5 | |
6398 | echo "${ECHO_T}yes" >&6 | |
6399 | else | |
6400 | echo "$as_me:$LINENO: result: no" >&5 | |
6401 | echo "${ECHO_T}no" >&6 | |
6402 | fi | |
6403 | ||
6404 | ||
6405 | enablestring= | |
6406 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6407 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6408 | no_cache=0 | |
6409 | # Check whether --enable-html or --disable-html was given. | |
6410 | if test "${enable_html+set}" = set; then | |
6411 | enableval="$enable_html" | |
6412 | ||
6413 | if test "$enableval" = yes; then | |
6414 | ac_cv_use_html='wxUSE_HTML=yes' | |
6415 | else | |
6416 | ac_cv_use_html='wxUSE_HTML=no' | |
6417 | fi | |
6418 | ||
6419 | else | |
6420 | ||
6421 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6422 | if test "x$LINE" != x ; then | |
6423 | eval "DEFAULT_$LINE" | |
6424 | else | |
6425 | no_cache=1 | |
6426 | fi | |
6427 | ||
6428 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6429 | ||
6430 | fi; | |
6431 | ||
6432 | eval "$ac_cv_use_html" | |
6433 | if test "$no_cache" != 1; then | |
6434 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6435 | fi | |
6436 | ||
6437 | if test "$wxUSE_HTML" = yes; then | |
6438 | echo "$as_me:$LINENO: result: yes" >&5 | |
6439 | echo "${ECHO_T}yes" >&6 | |
6440 | else | |
6441 | echo "$as_me:$LINENO: result: no" >&5 | |
6442 | echo "${ECHO_T}no" >&6 | |
6443 | fi | |
6444 | ||
6445 | ||
6446 | enablestring= | |
6447 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6448 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6449 | no_cache=0 | |
6450 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6451 | if test "${enable_htmlhelp+set}" = set; then | |
6452 | enableval="$enable_htmlhelp" | |
6453 | ||
6454 | if test "$enableval" = yes; then | |
6455 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6456 | else | |
6457 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6458 | fi | |
6459 | ||
6460 | else | |
6461 | ||
6462 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6463 | if test "x$LINE" != x ; then | |
6464 | eval "DEFAULT_$LINE" | |
6465 | else | |
6466 | no_cache=1 | |
6467 | fi | |
6468 | ||
6469 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6470 | ||
6471 | fi; | |
6472 | ||
6473 | eval "$ac_cv_use_htmlhelp" | |
6474 | if test "$no_cache" != 1; then | |
6475 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6476 | fi | |
6477 | ||
6478 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6479 | echo "$as_me:$LINENO: result: yes" >&5 | |
6480 | echo "${ECHO_T}yes" >&6 | |
6481 | else | |
6482 | echo "$as_me:$LINENO: result: no" >&5 | |
6483 | echo "${ECHO_T}no" >&6 | |
6484 | fi | |
6485 | ||
6486 | ||
9a8f0513 VS |
6487 | enablestring= |
6488 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6489 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6490 | no_cache=0 | |
6491 | # Check whether --enable-xrc or --disable-xrc was given. | |
6492 | if test "${enable_xrc+set}" = set; then | |
6493 | enableval="$enable_xrc" | |
6494 | ||
6495 | if test "$enableval" = yes; then | |
6496 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6497 | else | |
6498 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6499 | fi | |
6500 | ||
6501 | else | |
6502 | ||
6503 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6504 | if test "x$LINE" != x ; then | |
6505 | eval "DEFAULT_$LINE" | |
6506 | else | |
6507 | no_cache=1 | |
6508 | fi | |
6509 | ||
6510 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6511 | ||
6512 | fi; | |
6513 | ||
6514 | eval "$ac_cv_use_xrc" | |
6515 | if test "$no_cache" != 1; then | |
6516 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6517 | fi | |
6518 | ||
6519 | if test "$wxUSE_XRC" = yes; then | |
6520 | echo "$as_me:$LINENO: result: yes" >&5 | |
6521 | echo "${ECHO_T}yes" >&6 | |
6522 | else | |
6523 | echo "$as_me:$LINENO: result: no" >&5 | |
6524 | echo "${ECHO_T}no" >&6 | |
6525 | fi | |
6526 | ||
6527 | ||
a848cd7e SC |
6528 | enablestring= |
6529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6530 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6531 | no_cache=0 | |
6532 | # Check whether --enable-constraints or --disable-constraints was given. | |
6533 | if test "${enable_constraints+set}" = set; then | |
6534 | enableval="$enable_constraints" | |
6535 | ||
6536 | if test "$enableval" = yes; then | |
6537 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6538 | else | |
6539 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6540 | fi | |
6541 | ||
6542 | else | |
6543 | ||
6544 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6545 | if test "x$LINE" != x ; then | |
6546 | eval "DEFAULT_$LINE" | |
6547 | else | |
6548 | no_cache=1 | |
6549 | fi | |
6550 | ||
6551 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6552 | ||
6553 | fi; | |
6554 | ||
6555 | eval "$ac_cv_use_constraints" | |
6556 | if test "$no_cache" != 1; then | |
6557 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6558 | fi | |
6559 | ||
6560 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6561 | echo "$as_me:$LINENO: result: yes" >&5 | |
6562 | echo "${ECHO_T}yes" >&6 | |
6563 | else | |
6564 | echo "$as_me:$LINENO: result: no" >&5 | |
6565 | echo "${ECHO_T}no" >&6 | |
6566 | fi | |
6567 | ||
6568 | ||
6569 | enablestring= | |
6570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6571 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6572 | no_cache=0 | |
6573 | # Check whether --enable-printarch or --disable-printarch was given. | |
6574 | if test "${enable_printarch+set}" = set; then | |
6575 | enableval="$enable_printarch" | |
6576 | ||
6577 | if test "$enableval" = yes; then | |
6578 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6579 | else | |
6580 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6581 | fi | |
6582 | ||
6583 | else | |
6584 | ||
6585 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6586 | if test "x$LINE" != x ; then | |
6587 | eval "DEFAULT_$LINE" | |
6588 | else | |
6589 | no_cache=1 | |
6590 | fi | |
6591 | ||
6592 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6593 | ||
6594 | fi; | |
6595 | ||
6596 | eval "$ac_cv_use_printarch" | |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6602 | echo "$as_me:$LINENO: result: yes" >&5 | |
6603 | echo "${ECHO_T}yes" >&6 | |
6604 | else | |
6605 | echo "$as_me:$LINENO: result: no" >&5 | |
6606 | echo "${ECHO_T}no" >&6 | |
6607 | fi | |
6608 | ||
6609 | ||
6610 | enablestring= | |
6611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6612 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6613 | no_cache=0 | |
6614 | # Check whether --enable-mdi or --disable-mdi was given. | |
6615 | if test "${enable_mdi+set}" = set; then | |
6616 | enableval="$enable_mdi" | |
6617 | ||
6618 | if test "$enableval" = yes; then | |
8a7b1113 | 6619 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6620 | else |
8a7b1113 | 6621 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6622 | fi |
6623 | ||
6624 | else | |
6625 | ||
8a7b1113 | 6626 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6627 | if test "x$LINE" != x ; then |
6628 | eval "DEFAULT_$LINE" | |
6629 | else | |
6630 | no_cache=1 | |
6631 | fi | |
6632 | ||
8a7b1113 | 6633 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6634 | |
6635 | fi; | |
6636 | ||
6637 | eval "$ac_cv_use_mdi" | |
6638 | if test "$no_cache" != 1; then | |
6639 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6640 | fi | |
6641 | ||
8a7b1113 VZ |
6642 | if test "$wxUSE_MDI" = yes; then |
6643 | echo "$as_me:$LINENO: result: yes" >&5 | |
6644 | echo "${ECHO_T}yes" >&6 | |
6645 | else | |
6646 | echo "$as_me:$LINENO: result: no" >&5 | |
6647 | echo "${ECHO_T}no" >&6 | |
6648 | fi | |
6649 | ||
6650 | ||
6651 | enablestring= | |
6652 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6653 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6654 | no_cache=0 | |
6655 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6656 | if test "${enable_mdidoc+set}" = set; then | |
6657 | enableval="$enable_mdidoc" | |
6658 | ||
6659 | if test "$enableval" = yes; then | |
6660 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6661 | else | |
6662 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6663 | fi | |
6664 | ||
6665 | else | |
6666 | ||
6667 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6668 | if test "x$LINE" != x ; then | |
6669 | eval "DEFAULT_$LINE" | |
6670 | else | |
6671 | no_cache=1 | |
6672 | fi | |
6673 | ||
6674 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6675 | ||
6676 | fi; | |
6677 | ||
6678 | eval "$ac_cv_use_mdidoc" | |
6679 | if test "$no_cache" != 1; then | |
6680 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6681 | fi | |
6682 | ||
a848cd7e SC |
6683 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6684 | echo "$as_me:$LINENO: result: yes" >&5 | |
6685 | echo "${ECHO_T}yes" >&6 | |
6686 | else | |
6687 | echo "$as_me:$LINENO: result: no" >&5 | |
6688 | echo "${ECHO_T}no" >&6 | |
6689 | fi | |
6690 | ||
6691 | ||
6692 | enablestring= | |
6693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6694 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6695 | no_cache=0 | |
6696 | # Check whether --enable-loggui or --disable-loggui was given. | |
6697 | if test "${enable_loggui+set}" = set; then | |
6698 | enableval="$enable_loggui" | |
6699 | ||
6700 | if test "$enableval" = yes; then | |
6701 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6702 | else | |
6703 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6704 | fi | |
6705 | ||
6706 | else | |
6707 | ||
6708 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6709 | if test "x$LINE" != x ; then | |
6710 | eval "DEFAULT_$LINE" | |
6711 | else | |
6712 | no_cache=1 | |
6713 | fi | |
6714 | ||
6715 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6716 | ||
6717 | fi; | |
6718 | ||
6719 | eval "$ac_cv_use_loggui" | |
6720 | if test "$no_cache" != 1; then | |
6721 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6722 | fi | |
6723 | ||
6724 | if test "$wxUSE_LOGGUI" = yes; then | |
6725 | echo "$as_me:$LINENO: result: yes" >&5 | |
6726 | echo "${ECHO_T}yes" >&6 | |
6727 | else | |
6728 | echo "$as_me:$LINENO: result: no" >&5 | |
6729 | echo "${ECHO_T}no" >&6 | |
6730 | fi | |
6731 | ||
6732 | ||
6733 | enablestring= | |
6734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6735 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6736 | no_cache=0 | |
6737 | # Check whether --enable-logwin or --disable-logwin was given. | |
6738 | if test "${enable_logwin+set}" = set; then | |
6739 | enableval="$enable_logwin" | |
6740 | ||
6741 | if test "$enableval" = yes; then | |
6742 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6743 | else | |
6744 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6745 | fi | |
6746 | ||
6747 | else | |
6748 | ||
6749 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6750 | if test "x$LINE" != x ; then | |
6751 | eval "DEFAULT_$LINE" | |
6752 | else | |
6753 | no_cache=1 | |
6754 | fi | |
6755 | ||
6756 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6757 | ||
6758 | fi; | |
6759 | ||
6760 | eval "$ac_cv_use_logwin" | |
6761 | if test "$no_cache" != 1; then | |
6762 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6763 | fi | |
6764 | ||
6765 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6766 | echo "$as_me:$LINENO: result: yes" >&5 | |
6767 | echo "${ECHO_T}yes" >&6 | |
6768 | else | |
6769 | echo "$as_me:$LINENO: result: no" >&5 | |
6770 | echo "${ECHO_T}no" >&6 | |
6771 | fi | |
6772 | ||
6773 | ||
6774 | enablestring= | |
6775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6776 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6777 | no_cache=0 | |
6778 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6779 | if test "${enable_logdialog+set}" = set; then | |
6780 | enableval="$enable_logdialog" | |
6781 | ||
6782 | if test "$enableval" = yes; then | |
6783 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6784 | else | |
6785 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6786 | fi | |
6787 | ||
6788 | else | |
6789 | ||
6790 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6791 | if test "x$LINE" != x ; then | |
6792 | eval "DEFAULT_$LINE" | |
6793 | else | |
6794 | no_cache=1 | |
6795 | fi | |
6796 | ||
6797 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6798 | ||
6799 | fi; | |
6800 | ||
6801 | eval "$ac_cv_use_logdialog" | |
6802 | if test "$no_cache" != 1; then | |
6803 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6804 | fi | |
6805 | ||
6806 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6807 | echo "$as_me:$LINENO: result: yes" >&5 | |
6808 | echo "${ECHO_T}yes" >&6 | |
6809 | else | |
6810 | echo "$as_me:$LINENO: result: no" >&5 | |
6811 | echo "${ECHO_T}no" >&6 | |
6812 | fi | |
6813 | ||
6814 | ||
646b6ec1 VS |
6815 | enablestring= |
6816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6817 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6818 | no_cache=0 | |
6819 | # Check whether --enable-webkit or --disable-webkit was given. | |
6820 | if test "${enable_webkit+set}" = set; then | |
6821 | enableval="$enable_webkit" | |
6822 | ||
6823 | if test "$enableval" = yes; then | |
6824 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6825 | else | |
6826 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6827 | fi | |
6828 | ||
6829 | else | |
6830 | ||
6831 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6832 | if test "x$LINE" != x ; then | |
6833 | eval "DEFAULT_$LINE" | |
6834 | else | |
6835 | no_cache=1 | |
6836 | fi | |
6837 | ||
6838 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6839 | ||
6840 | fi; | |
6841 | ||
6842 | eval "$ac_cv_use_webkit" | |
6843 | if test "$no_cache" != 1; then | |
6844 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6845 | fi | |
6846 | ||
6847 | if test "$wxUSE_WEBKIT" = yes; then | |
6848 | echo "$as_me:$LINENO: result: yes" >&5 | |
6849 | echo "${ECHO_T}yes" >&6 | |
6850 | else | |
6851 | echo "$as_me:$LINENO: result: no" >&5 | |
6852 | echo "${ECHO_T}no" >&6 | |
6853 | fi | |
6854 | ||
6855 | ||
a848cd7e SC |
6856 | |
6857 | enablestring= | |
6858 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6859 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6860 | no_cache=0 | |
6861 | # Check whether --enable-postscript or --disable-postscript was given. | |
6862 | if test "${enable_postscript+set}" = set; then | |
6863 | enableval="$enable_postscript" | |
6864 | ||
6865 | if test "$enableval" = yes; then | |
6866 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6867 | else | |
6868 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6869 | fi | |
6870 | ||
6871 | else | |
6872 | ||
6873 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6874 | if test "x$LINE" != x ; then | |
6875 | eval "DEFAULT_$LINE" | |
6876 | else | |
6877 | no_cache=1 | |
6878 | fi | |
6879 | ||
6880 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6881 | ||
6882 | fi; | |
6883 | ||
6884 | eval "$ac_cv_use_postscript" | |
6885 | if test "$no_cache" != 1; then | |
6886 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6887 | fi | |
6888 | ||
6889 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6890 | echo "$as_me:$LINENO: result: yes" >&5 | |
6891 | echo "${ECHO_T}yes" >&6 | |
6892 | else | |
6893 | echo "$as_me:$LINENO: result: no" >&5 | |
6894 | echo "${ECHO_T}no" >&6 | |
6895 | fi | |
6896 | ||
6897 | ||
6898 | ||
6899 | ||
6900 | ||
6901 | enablestring= | |
6902 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6903 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6904 | no_cache=0 | |
6905 | # Check whether --enable-prologio or --disable-prologio was given. | |
6906 | if test "${enable_prologio+set}" = set; then | |
6907 | enableval="$enable_prologio" | |
6908 | ||
6909 | if test "$enableval" = yes; then | |
6910 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6911 | else | |
6912 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6913 | fi | |
6914 | ||
6915 | else | |
6916 | ||
6917 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6918 | if test "x$LINE" != x ; then | |
6919 | eval "DEFAULT_$LINE" | |
6920 | else | |
6921 | no_cache=1 | |
6922 | fi | |
6923 | ||
6924 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6925 | ||
6926 | fi; | |
6927 | ||
6928 | eval "$ac_cv_use_prologio" | |
6929 | if test "$no_cache" != 1; then | |
6930 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6931 | fi | |
6932 | ||
6933 | if test "$wxUSE_PROLOGIO" = yes; then | |
6934 | echo "$as_me:$LINENO: result: yes" >&5 | |
6935 | echo "${ECHO_T}yes" >&6 | |
6936 | else | |
6937 | echo "$as_me:$LINENO: result: no" >&5 | |
6938 | echo "${ECHO_T}no" >&6 | |
6939 | fi | |
6940 | ||
6941 | ||
6942 | enablestring= | |
6943 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6944 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6945 | no_cache=0 | |
6946 | # Check whether --enable-resources or --disable-resources was given. | |
6947 | if test "${enable_resources+set}" = set; then | |
6948 | enableval="$enable_resources" | |
6949 | ||
6950 | if test "$enableval" = yes; then | |
6951 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6952 | else | |
6953 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6954 | fi | |
6955 | ||
6956 | else | |
6957 | ||
6958 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6959 | if test "x$LINE" != x ; then | |
6960 | eval "DEFAULT_$LINE" | |
6961 | else | |
6962 | no_cache=1 | |
6963 | fi | |
6964 | ||
6965 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6966 | ||
6967 | fi; | |
6968 | ||
6969 | eval "$ac_cv_use_resources" | |
6970 | if test "$no_cache" != 1; then | |
6971 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6972 | fi | |
6973 | ||
6974 | if test "$wxUSE_RESOURCES" = yes; then | |
6975 | echo "$as_me:$LINENO: result: yes" >&5 | |
6976 | echo "${ECHO_T}yes" >&6 | |
6977 | else | |
6978 | echo "$as_me:$LINENO: result: no" >&5 | |
6979 | echo "${ECHO_T}no" >&6 | |
6980 | fi | |
6981 | ||
6982 | ||
6983 | ||
6984 | ||
6985 | enablestring= | |
6986 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6987 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6988 | no_cache=0 | |
6989 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6990 | if test "${enable_clipboard+set}" = set; then | |
6991 | enableval="$enable_clipboard" | |
6992 | ||
6993 | if test "$enableval" = yes; then | |
6994 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6995 | else | |
6996 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6997 | fi | |
6998 | ||
6999 | else | |
7000 | ||
7001 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7002 | if test "x$LINE" != x ; then | |
7003 | eval "DEFAULT_$LINE" | |
7004 | else | |
7005 | no_cache=1 | |
7006 | fi | |
7007 | ||
7008 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7009 | ||
7010 | fi; | |
7011 | ||
7012 | eval "$ac_cv_use_clipboard" | |
7013 | if test "$no_cache" != 1; then | |
7014 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7015 | fi | |
7016 | ||
7017 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7018 | echo "$as_me:$LINENO: result: yes" >&5 | |
7019 | echo "${ECHO_T}yes" >&6 | |
7020 | else | |
7021 | echo "$as_me:$LINENO: result: no" >&5 | |
7022 | echo "${ECHO_T}no" >&6 | |
7023 | fi | |
7024 | ||
7025 | ||
7026 | enablestring= | |
7027 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7028 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7029 | no_cache=0 | |
7030 | # Check whether --enable-dnd or --disable-dnd was given. | |
7031 | if test "${enable_dnd+set}" = set; then | |
7032 | enableval="$enable_dnd" | |
7033 | ||
7034 | if test "$enableval" = yes; then | |
7035 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7036 | else | |
7037 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7038 | fi | |
7039 | ||
7040 | else | |
7041 | ||
7042 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7043 | if test "x$LINE" != x ; then | |
7044 | eval "DEFAULT_$LINE" | |
7045 | else | |
7046 | no_cache=1 | |
7047 | fi | |
7048 | ||
7049 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7050 | ||
7051 | fi; | |
7052 | ||
7053 | eval "$ac_cv_use_dnd" | |
7054 | if test "$no_cache" != 1; then | |
7055 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7056 | fi | |
7057 | ||
7058 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7059 | echo "$as_me:$LINENO: result: yes" >&5 | |
7060 | echo "${ECHO_T}yes" >&6 | |
7061 | else | |
7062 | echo "$as_me:$LINENO: result: no" >&5 | |
7063 | echo "${ECHO_T}no" >&6 | |
7064 | fi | |
7065 | ||
7066 | ||
7067 | enablestring= | |
7068 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7069 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7070 | no_cache=0 | |
7071 | # Check whether --enable-metafile or --disable-metafile was given. | |
7072 | if test "${enable_metafile+set}" = set; then | |
7073 | enableval="$enable_metafile" | |
7074 | ||
7075 | if test "$enableval" = yes; then | |
7076 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7077 | else | |
7078 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7079 | fi | |
7080 | ||
7081 | else | |
7082 | ||
7083 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7084 | if test "x$LINE" != x ; then | |
7085 | eval "DEFAULT_$LINE" | |
7086 | else | |
7087 | no_cache=1 | |
7088 | fi | |
7089 | ||
7090 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7091 | ||
7092 | fi; | |
7093 | ||
7094 | eval "$ac_cv_use_metafile" | |
7095 | if test "$no_cache" != 1; then | |
7096 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7097 | fi | |
7098 | ||
7099 | if test "$wxUSE_METAFILE" = yes; then | |
7100 | echo "$as_me:$LINENO: result: yes" >&5 | |
7101 | echo "${ECHO_T}yes" >&6 | |
7102 | else | |
7103 | echo "$as_me:$LINENO: result: no" >&5 | |
7104 | echo "${ECHO_T}no" >&6 | |
7105 | fi | |
7106 | ||
7107 | ||
7108 | ||
7109 | ||
7110 | ||
7111 | enablestring= | |
7112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7113 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7114 | no_cache=0 | |
7115 | # Check whether --enable-controls or --disable-controls was given. | |
7116 | if test "${enable_controls+set}" = set; then | |
7117 | enableval="$enable_controls" | |
7118 | ||
7119 | if test "$enableval" = yes; then | |
7120 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7121 | else | |
7122 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7123 | fi | |
7124 | ||
7125 | else | |
7126 | ||
7127 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7128 | if test "x$LINE" != x ; then | |
7129 | eval "DEFAULT_$LINE" | |
7130 | else | |
7131 | no_cache=1 | |
7132 | fi | |
7133 | ||
7134 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7135 | ||
7136 | fi; | |
7137 | ||
7138 | eval "$ac_cv_use_controls" | |
7139 | if test "$no_cache" != 1; then | |
7140 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7141 | fi | |
7142 | ||
7143 | if test "$wxUSE_CONTROLS" = yes; then | |
7144 | echo "$as_me:$LINENO: result: yes" >&5 | |
7145 | echo "${ECHO_T}yes" >&6 | |
7146 | else | |
7147 | echo "$as_me:$LINENO: result: no" >&5 | |
7148 | echo "${ECHO_T}no" >&6 | |
7149 | fi | |
7150 | ||
7151 | ||
7152 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7153 | DEFAULT_wxUSE_ACCEL=yes | |
7154 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7155 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7156 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7157 | DEFAULT_wxUSE_CARET=yes |
7158 | DEFAULT_wxUSE_COMBOBOX=yes | |
7159 | DEFAULT_wxUSE_CHECKBOX=yes | |
7160 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7161 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7162 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7163 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7164 | DEFAULT_wxUSE_GAUGE=yes |
7165 | DEFAULT_wxUSE_GRID=yes | |
7166 | DEFAULT_wxUSE_IMAGLIST=yes | |
7167 | DEFAULT_wxUSE_LISTBOOK=yes | |
7168 | DEFAULT_wxUSE_LISTBOX=yes | |
7169 | DEFAULT_wxUSE_LISTCTRL=yes | |
7170 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7171 | DEFAULT_wxUSE_RADIOBOX=yes | |
7172 | DEFAULT_wxUSE_RADIOBTN=yes | |
7173 | DEFAULT_wxUSE_SASH=yes | |
7174 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7175 | DEFAULT_wxUSE_SLIDER=yes | |
7176 | DEFAULT_wxUSE_SPINBTN=yes | |
7177 | DEFAULT_wxUSE_SPINCTRL=yes | |
7178 | DEFAULT_wxUSE_SPLITTER=yes | |
7179 | DEFAULT_wxUSE_STATBMP=yes | |
7180 | DEFAULT_wxUSE_STATBOX=yes | |
7181 | DEFAULT_wxUSE_STATLINE=yes | |
7182 | DEFAULT_wxUSE_STATUSBAR=yes | |
7183 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7184 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7185 | DEFAULT_wxUSE_TOOLBAR=yes | |
7186 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7187 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7188 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7189 | DEFAULT_wxUSE_TREECTRL=yes | |
7190 | DEFAULT_wxUSE_POPUPWIN=yes | |
7191 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7192 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7193 | DEFAULT_wxUSE_ACCEL=no | |
7194 | DEFAULT_wxUSE_BMPBUTTON=no | |
7195 | DEFAULT_wxUSE_BUTTON=no | |
7196 | DEFAULT_wxUSE_CALCTRL=no | |
7197 | DEFAULT_wxUSE_CARET=no | |
7198 | DEFAULT_wxUSE_COMBOBOX=no | |
7199 | DEFAULT_wxUSE_CHECKBOX=no | |
7200 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7201 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7202 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7203 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7204 | DEFAULT_wxUSE_GAUGE=no |
7205 | DEFAULT_wxUSE_GRID=no | |
7206 | DEFAULT_wxUSE_IMAGLIST=no | |
7207 | DEFAULT_wxUSE_LISTBOOK=no | |
7208 | DEFAULT_wxUSE_LISTBOX=no | |
7209 | DEFAULT_wxUSE_LISTCTRL=no | |
7210 | DEFAULT_wxUSE_NOTEBOOK=no | |
7211 | DEFAULT_wxUSE_RADIOBOX=no | |
7212 | DEFAULT_wxUSE_RADIOBTN=no | |
7213 | DEFAULT_wxUSE_SASH=no | |
7214 | DEFAULT_wxUSE_SCROLLBAR=no | |
7215 | DEFAULT_wxUSE_SLIDER=no | |
7216 | DEFAULT_wxUSE_SPINBTN=no | |
7217 | DEFAULT_wxUSE_SPINCTRL=no | |
7218 | DEFAULT_wxUSE_SPLITTER=no | |
7219 | DEFAULT_wxUSE_STATBMP=no | |
7220 | DEFAULT_wxUSE_STATBOX=no | |
7221 | DEFAULT_wxUSE_STATLINE=no | |
7222 | DEFAULT_wxUSE_STATUSBAR=no | |
7223 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7224 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7225 | DEFAULT_wxUSE_TOOLBAR=no | |
7226 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7227 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7228 | DEFAULT_wxUSE_TOOLTIPS=no | |
7229 | DEFAULT_wxUSE_TREECTRL=no | |
7230 | DEFAULT_wxUSE_POPUPWIN=no | |
7231 | DEFAULT_wxUSE_TIPWINDOW=no | |
7232 | fi | |
7233 | ||
a848cd7e SC |
7234 | |
7235 | enablestring= | |
7236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7237 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7238 | no_cache=0 | |
7239 | # Check whether --enable-accel or --disable-accel was given. | |
7240 | if test "${enable_accel+set}" = set; then | |
7241 | enableval="$enable_accel" | |
7242 | ||
7243 | if test "$enableval" = yes; then | |
7244 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7245 | else | |
7246 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7247 | fi | |
7248 | ||
7249 | else | |
7250 | ||
7251 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7252 | if test "x$LINE" != x ; then | |
7253 | eval "DEFAULT_$LINE" | |
7254 | else | |
7255 | no_cache=1 | |
7256 | fi | |
7257 | ||
7258 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7259 | ||
7260 | fi; | |
7261 | ||
7262 | eval "$ac_cv_use_accel" | |
7263 | if test "$no_cache" != 1; then | |
7264 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7265 | fi | |
7266 | ||
7267 | if test "$wxUSE_ACCEL" = yes; then | |
7268 | echo "$as_me:$LINENO: result: yes" >&5 | |
7269 | echo "${ECHO_T}yes" >&6 | |
7270 | else | |
7271 | echo "$as_me:$LINENO: result: no" >&5 | |
7272 | echo "${ECHO_T}no" >&6 | |
7273 | fi | |
7274 | ||
7275 | ||
7276 | enablestring= | |
7277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7278 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7279 | no_cache=0 | |
7280 | # Check whether --enable-button or --disable-button was given. | |
7281 | if test "${enable_button+set}" = set; then | |
7282 | enableval="$enable_button" | |
7283 | ||
7284 | if test "$enableval" = yes; then | |
7285 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7286 | else | |
7287 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7288 | fi | |
7289 | ||
7290 | else | |
7291 | ||
7292 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7293 | if test "x$LINE" != x ; then | |
7294 | eval "DEFAULT_$LINE" | |
7295 | else | |
7296 | no_cache=1 | |
7297 | fi | |
7298 | ||
7299 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7300 | ||
7301 | fi; | |
7302 | ||
7303 | eval "$ac_cv_use_button" | |
7304 | if test "$no_cache" != 1; then | |
7305 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7306 | fi | |
7307 | ||
7308 | if test "$wxUSE_BUTTON" = yes; then | |
7309 | echo "$as_me:$LINENO: result: yes" >&5 | |
7310 | echo "${ECHO_T}yes" >&6 | |
7311 | else | |
7312 | echo "$as_me:$LINENO: result: no" >&5 | |
7313 | echo "${ECHO_T}no" >&6 | |
7314 | fi | |
7315 | ||
7316 | ||
7317 | enablestring= | |
7318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7319 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7320 | no_cache=0 | |
7321 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7322 | if test "${enable_bmpbutton+set}" = set; then | |
7323 | enableval="$enable_bmpbutton" | |
7324 | ||
7325 | if test "$enableval" = yes; then | |
7326 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7327 | else | |
7328 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7329 | fi | |
7330 | ||
7331 | else | |
7332 | ||
7333 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7334 | if test "x$LINE" != x ; then | |
7335 | eval "DEFAULT_$LINE" | |
7336 | else | |
7337 | no_cache=1 | |
7338 | fi | |
7339 | ||
7340 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7341 | ||
7342 | fi; | |
7343 | ||
7344 | eval "$ac_cv_use_bmpbutton" | |
7345 | if test "$no_cache" != 1; then | |
7346 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7347 | fi | |
7348 | ||
7349 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7350 | echo "$as_me:$LINENO: result: yes" >&5 | |
7351 | echo "${ECHO_T}yes" >&6 | |
7352 | else | |
7353 | echo "$as_me:$LINENO: result: no" >&5 | |
7354 | echo "${ECHO_T}no" >&6 | |
7355 | fi | |
7356 | ||
7357 | ||
7358 | enablestring= | |
7359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7360 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7361 | no_cache=0 | |
7362 | # Check whether --enable-calendar or --disable-calendar was given. | |
7363 | if test "${enable_calendar+set}" = set; then | |
7364 | enableval="$enable_calendar" | |
7365 | ||
7366 | if test "$enableval" = yes; then | |
7367 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7368 | else | |
7369 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7370 | fi | |
7371 | ||
7372 | else | |
7373 | ||
7374 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7375 | if test "x$LINE" != x ; then | |
7376 | eval "DEFAULT_$LINE" | |
7377 | else | |
7378 | no_cache=1 | |
7379 | fi | |
7380 | ||
7381 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7382 | ||
7383 | fi; | |
7384 | ||
7385 | eval "$ac_cv_use_calendar" | |
7386 | if test "$no_cache" != 1; then | |
7387 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7388 | fi | |
7389 | ||
7390 | if test "$wxUSE_CALCTRL" = yes; then | |
7391 | echo "$as_me:$LINENO: result: yes" >&5 | |
7392 | echo "${ECHO_T}yes" >&6 | |
7393 | else | |
7394 | echo "$as_me:$LINENO: result: no" >&5 | |
7395 | echo "${ECHO_T}no" >&6 | |
7396 | fi | |
7397 | ||
7398 | ||
7399 | enablestring= | |
7400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7401 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7402 | no_cache=0 | |
7403 | # Check whether --enable-caret or --disable-caret was given. | |
7404 | if test "${enable_caret+set}" = set; then | |
7405 | enableval="$enable_caret" | |
7406 | ||
7407 | if test "$enableval" = yes; then | |
7408 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7409 | else | |
7410 | ac_cv_use_caret='wxUSE_CARET=no' | |
7411 | fi | |
7412 | ||
7413 | else | |
7414 | ||
7415 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7416 | if test "x$LINE" != x ; then | |
7417 | eval "DEFAULT_$LINE" | |
7418 | else | |
7419 | no_cache=1 | |
7420 | fi | |
7421 | ||
7422 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7423 | ||
7424 | fi; | |
7425 | ||
7426 | eval "$ac_cv_use_caret" | |
7427 | if test "$no_cache" != 1; then | |
7428 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7429 | fi | |
7430 | ||
7431 | if test "$wxUSE_CARET" = yes; then | |
7432 | echo "$as_me:$LINENO: result: yes" >&5 | |
7433 | echo "${ECHO_T}yes" >&6 | |
7434 | else | |
7435 | echo "$as_me:$LINENO: result: no" >&5 | |
7436 | echo "${ECHO_T}no" >&6 | |
7437 | fi | |
7438 | ||
7439 | ||
7440 | enablestring= | |
7441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7442 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7443 | no_cache=0 | |
7444 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7445 | if test "${enable_checkbox+set}" = set; then | |
7446 | enableval="$enable_checkbox" | |
7447 | ||
7448 | if test "$enableval" = yes; then | |
7449 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7450 | else | |
7451 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7452 | fi | |
7453 | ||
7454 | else | |
7455 | ||
7456 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7457 | if test "x$LINE" != x ; then | |
7458 | eval "DEFAULT_$LINE" | |
7459 | else | |
7460 | no_cache=1 | |
7461 | fi | |
7462 | ||
7463 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7464 | ||
7465 | fi; | |
7466 | ||
7467 | eval "$ac_cv_use_checkbox" | |
7468 | if test "$no_cache" != 1; then | |
7469 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7470 | fi | |
7471 | ||
7472 | if test "$wxUSE_CHECKBOX" = yes; then | |
7473 | echo "$as_me:$LINENO: result: yes" >&5 | |
7474 | echo "${ECHO_T}yes" >&6 | |
7475 | else | |
7476 | echo "$as_me:$LINENO: result: no" >&5 | |
7477 | echo "${ECHO_T}no" >&6 | |
7478 | fi | |
7479 | ||
7480 | ||
7481 | enablestring= | |
7482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7483 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7484 | no_cache=0 | |
7485 | # Check whether --enable-checklst or --disable-checklst was given. | |
7486 | if test "${enable_checklst+set}" = set; then | |
7487 | enableval="$enable_checklst" | |
7488 | ||
7489 | if test "$enableval" = yes; then | |
7490 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7491 | else | |
7492 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7493 | fi | |
7494 | ||
7495 | else | |
7496 | ||
7497 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7498 | if test "x$LINE" != x ; then | |
7499 | eval "DEFAULT_$LINE" | |
7500 | else | |
7501 | no_cache=1 | |
7502 | fi | |
7503 | ||
7504 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7505 | ||
7506 | fi; | |
7507 | ||
7508 | eval "$ac_cv_use_checklst" | |
7509 | if test "$no_cache" != 1; then | |
7510 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7511 | fi | |
7512 | ||
7513 | if test "$wxUSE_CHECKLST" = yes; then | |
7514 | echo "$as_me:$LINENO: result: yes" >&5 | |
7515 | echo "${ECHO_T}yes" >&6 | |
7516 | else | |
7517 | echo "$as_me:$LINENO: result: no" >&5 | |
7518 | echo "${ECHO_T}no" >&6 | |
7519 | fi | |
7520 | ||
7521 | ||
7522 | enablestring= | |
7523 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7524 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7525 | no_cache=0 | |
7526 | # Check whether --enable-choice or --disable-choice was given. | |
7527 | if test "${enable_choice+set}" = set; then | |
7528 | enableval="$enable_choice" | |
7529 | ||
7530 | if test "$enableval" = yes; then | |
7531 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7532 | else | |
7533 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7534 | fi | |
7535 | ||
7536 | else | |
7537 | ||
7538 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7539 | if test "x$LINE" != x ; then | |
7540 | eval "DEFAULT_$LINE" | |
7541 | else | |
7542 | no_cache=1 | |
7543 | fi | |
7544 | ||
7545 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7546 | ||
7547 | fi; | |
7548 | ||
7549 | eval "$ac_cv_use_choice" | |
7550 | if test "$no_cache" != 1; then | |
7551 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7552 | fi | |
7553 | ||
7554 | if test "$wxUSE_CHOICE" = yes; then | |
7555 | echo "$as_me:$LINENO: result: yes" >&5 | |
7556 | echo "${ECHO_T}yes" >&6 | |
7557 | else | |
7558 | echo "$as_me:$LINENO: result: no" >&5 | |
7559 | echo "${ECHO_T}no" >&6 | |
7560 | fi | |
7561 | ||
7562 | ||
92bbdbcd WS |
7563 | enablestring= |
7564 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7565 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7566 | no_cache=0 | |
7567 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7568 | if test "${enable_choicebook+set}" = set; then | |
7569 | enableval="$enable_choicebook" | |
7570 | ||
7571 | if test "$enableval" = yes; then | |
7572 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7573 | else | |
7574 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7575 | fi | |
7576 | ||
7577 | else | |
7578 | ||
7579 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7580 | if test "x$LINE" != x ; then | |
7581 | eval "DEFAULT_$LINE" | |
7582 | else | |
7583 | no_cache=1 | |
7584 | fi | |
7585 | ||
7586 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7587 | ||
7588 | fi; | |
7589 | ||
7590 | eval "$ac_cv_use_choicebook" | |
7591 | if test "$no_cache" != 1; then | |
7592 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7593 | fi | |
7594 | ||
7595 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7596 | echo "$as_me:$LINENO: result: yes" >&5 | |
7597 | echo "${ECHO_T}yes" >&6 | |
7598 | else | |
7599 | echo "$as_me:$LINENO: result: no" >&5 | |
7600 | echo "${ECHO_T}no" >&6 | |
7601 | fi | |
7602 | ||
7603 | ||
a848cd7e SC |
7604 | enablestring= |
7605 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7606 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7607 | no_cache=0 | |
7608 | # Check whether --enable-combobox or --disable-combobox was given. | |
7609 | if test "${enable_combobox+set}" = set; then | |
7610 | enableval="$enable_combobox" | |
7611 | ||
7612 | if test "$enableval" = yes; then | |
7613 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7614 | else | |
7615 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7616 | fi | |
7617 | ||
7618 | else | |
7619 | ||
7620 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7621 | if test "x$LINE" != x ; then | |
7622 | eval "DEFAULT_$LINE" | |
7623 | else | |
7624 | no_cache=1 | |
7625 | fi | |
7626 | ||
7627 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7628 | ||
7629 | fi; | |
7630 | ||
7631 | eval "$ac_cv_use_combobox" | |
7632 | if test "$no_cache" != 1; then | |
7633 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7634 | fi | |
7635 | ||
7636 | if test "$wxUSE_COMBOBOX" = yes; then | |
7637 | echo "$as_me:$LINENO: result: yes" >&5 | |
7638 | echo "${ECHO_T}yes" >&6 | |
7639 | else | |
7640 | echo "$as_me:$LINENO: result: no" >&5 | |
7641 | echo "${ECHO_T}no" >&6 | |
7642 | fi | |
7643 | ||
7644 | ||
da98e9be VZ |
7645 | enablestring= |
7646 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7647 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7648 | no_cache=0 | |
7649 | # Check whether --enable-datepick or --disable-datepick was given. | |
7650 | if test "${enable_datepick+set}" = set; then | |
7651 | enableval="$enable_datepick" | |
7652 | ||
7653 | if test "$enableval" = yes; then | |
7654 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7655 | else | |
7656 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7657 | fi | |
7658 | ||
7659 | else | |
7660 | ||
7661 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7662 | if test "x$LINE" != x ; then | |
7663 | eval "DEFAULT_$LINE" | |
7664 | else | |
7665 | no_cache=1 | |
7666 | fi | |
7667 | ||
7668 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7669 | ||
7670 | fi; | |
7671 | ||
7672 | eval "$ac_cv_use_datepick" | |
7673 | if test "$no_cache" != 1; then | |
7674 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7675 | fi | |
7676 | ||
7677 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7678 | echo "$as_me:$LINENO: result: yes" >&5 | |
7679 | echo "${ECHO_T}yes" >&6 | |
7680 | else | |
7681 | echo "$as_me:$LINENO: result: no" >&5 | |
7682 | echo "${ECHO_T}no" >&6 | |
7683 | fi | |
7684 | ||
7685 | ||
a848cd7e SC |
7686 | enablestring= |
7687 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7688 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7689 | no_cache=0 | |
7690 | # Check whether --enable-display or --disable-display was given. | |
7691 | if test "${enable_display+set}" = set; then | |
7692 | enableval="$enable_display" | |
7693 | ||
7694 | if test "$enableval" = yes; then | |
7695 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7696 | else | |
7697 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7698 | fi | |
7699 | ||
7700 | else | |
7701 | ||
7702 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7703 | if test "x$LINE" != x ; then | |
7704 | eval "DEFAULT_$LINE" | |
7705 | else | |
7706 | no_cache=1 | |
7707 | fi | |
7708 | ||
7709 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7710 | ||
7711 | fi; | |
7712 | ||
7713 | eval "$ac_cv_use_display" | |
7714 | if test "$no_cache" != 1; then | |
7715 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7716 | fi | |
7717 | ||
7718 | if test "$wxUSE_DISPLAY" = yes; then | |
7719 | echo "$as_me:$LINENO: result: yes" >&5 | |
7720 | echo "${ECHO_T}yes" >&6 | |
7721 | else | |
7722 | echo "$as_me:$LINENO: result: no" >&5 | |
7723 | echo "${ECHO_T}no" >&6 | |
7724 | fi | |
7725 | ||
7726 | ||
7727 | enablestring= | |
7728 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7729 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7730 | no_cache=0 | |
7731 | # Check whether --enable-gauge or --disable-gauge was given. | |
7732 | if test "${enable_gauge+set}" = set; then | |
7733 | enableval="$enable_gauge" | |
7734 | ||
7735 | if test "$enableval" = yes; then | |
7736 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7737 | else | |
7738 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7739 | fi | |
7740 | ||
7741 | else | |
7742 | ||
7743 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7744 | if test "x$LINE" != x ; then | |
7745 | eval "DEFAULT_$LINE" | |
7746 | else | |
7747 | no_cache=1 | |
7748 | fi | |
7749 | ||
7750 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7751 | ||
7752 | fi; | |
7753 | ||
7754 | eval "$ac_cv_use_gauge" | |
7755 | if test "$no_cache" != 1; then | |
7756 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7757 | fi | |
7758 | ||
7759 | if test "$wxUSE_GAUGE" = yes; then | |
7760 | echo "$as_me:$LINENO: result: yes" >&5 | |
7761 | echo "${ECHO_T}yes" >&6 | |
7762 | else | |
7763 | echo "$as_me:$LINENO: result: no" >&5 | |
7764 | echo "${ECHO_T}no" >&6 | |
7765 | fi | |
7766 | ||
7767 | ||
7768 | enablestring= | |
7769 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7770 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7771 | no_cache=0 | |
7772 | # Check whether --enable-grid or --disable-grid was given. | |
7773 | if test "${enable_grid+set}" = set; then | |
7774 | enableval="$enable_grid" | |
7775 | ||
7776 | if test "$enableval" = yes; then | |
7777 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7778 | else | |
7779 | ac_cv_use_grid='wxUSE_GRID=no' | |
7780 | fi | |
7781 | ||
7782 | else | |
7783 | ||
7784 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7785 | if test "x$LINE" != x ; then | |
7786 | eval "DEFAULT_$LINE" | |
7787 | else | |
7788 | no_cache=1 | |
7789 | fi | |
7790 | ||
7791 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7792 | ||
7793 | fi; | |
7794 | ||
7795 | eval "$ac_cv_use_grid" | |
7796 | if test "$no_cache" != 1; then | |
7797 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7798 | fi | |
7799 | ||
7800 | if test "$wxUSE_GRID" = yes; then | |
7801 | echo "$as_me:$LINENO: result: yes" >&5 | |
7802 | echo "${ECHO_T}yes" >&6 | |
7803 | else | |
7804 | echo "$as_me:$LINENO: result: no" >&5 | |
7805 | echo "${ECHO_T}no" >&6 | |
7806 | fi | |
7807 | ||
7808 | ||
7809 | enablestring= | |
7810 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7811 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7812 | no_cache=0 | |
7813 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7814 | if test "${enable_imaglist+set}" = set; then | |
7815 | enableval="$enable_imaglist" | |
7816 | ||
7817 | if test "$enableval" = yes; then | |
7818 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7819 | else | |
7820 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7821 | fi | |
7822 | ||
7823 | else | |
7824 | ||
7825 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7826 | if test "x$LINE" != x ; then | |
7827 | eval "DEFAULT_$LINE" | |
7828 | else | |
7829 | no_cache=1 | |
7830 | fi | |
7831 | ||
7832 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7833 | ||
7834 | fi; | |
7835 | ||
7836 | eval "$ac_cv_use_imaglist" | |
7837 | if test "$no_cache" != 1; then | |
7838 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7839 | fi | |
7840 | ||
7841 | if test "$wxUSE_IMAGLIST" = yes; then | |
7842 | echo "$as_me:$LINENO: result: yes" >&5 | |
7843 | echo "${ECHO_T}yes" >&6 | |
7844 | else | |
7845 | echo "$as_me:$LINENO: result: no" >&5 | |
7846 | echo "${ECHO_T}no" >&6 | |
7847 | fi | |
7848 | ||
7849 | ||
7850 | enablestring= | |
7851 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7852 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7853 | no_cache=0 | |
7854 | # Check whether --enable-listbook or --disable-listbook was given. | |
7855 | if test "${enable_listbook+set}" = set; then | |
7856 | enableval="$enable_listbook" | |
7857 | ||
7858 | if test "$enableval" = yes; then | |
7859 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7860 | else | |
7861 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7862 | fi | |
7863 | ||
7864 | else | |
7865 | ||
7866 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7867 | if test "x$LINE" != x ; then | |
7868 | eval "DEFAULT_$LINE" | |
7869 | else | |
7870 | no_cache=1 | |
7871 | fi | |
7872 | ||
7873 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7874 | ||
7875 | fi; | |
7876 | ||
7877 | eval "$ac_cv_use_listbook" | |
7878 | if test "$no_cache" != 1; then | |
7879 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7880 | fi | |
7881 | ||
7882 | if test "$wxUSE_LISTBOOK" = yes; then | |
7883 | echo "$as_me:$LINENO: result: yes" >&5 | |
7884 | echo "${ECHO_T}yes" >&6 | |
7885 | else | |
7886 | echo "$as_me:$LINENO: result: no" >&5 | |
7887 | echo "${ECHO_T}no" >&6 | |
7888 | fi | |
7889 | ||
7890 | ||
7891 | enablestring= | |
7892 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7893 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7894 | no_cache=0 | |
7895 | # Check whether --enable-listbox or --disable-listbox was given. | |
7896 | if test "${enable_listbox+set}" = set; then | |
7897 | enableval="$enable_listbox" | |
7898 | ||
7899 | if test "$enableval" = yes; then | |
7900 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7901 | else | |
7902 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7903 | fi | |
7904 | ||
7905 | else | |
7906 | ||
7907 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7908 | if test "x$LINE" != x ; then | |
7909 | eval "DEFAULT_$LINE" | |
7910 | else | |
7911 | no_cache=1 | |
7912 | fi | |
7913 | ||
7914 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7915 | ||
7916 | fi; | |
7917 | ||
7918 | eval "$ac_cv_use_listbox" | |
7919 | if test "$no_cache" != 1; then | |
7920 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7921 | fi | |
7922 | ||
7923 | if test "$wxUSE_LISTBOX" = yes; then | |
7924 | echo "$as_me:$LINENO: result: yes" >&5 | |
7925 | echo "${ECHO_T}yes" >&6 | |
7926 | else | |
7927 | echo "$as_me:$LINENO: result: no" >&5 | |
7928 | echo "${ECHO_T}no" >&6 | |
7929 | fi | |
7930 | ||
7931 | ||
7932 | enablestring= | |
7933 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7934 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7935 | no_cache=0 | |
7936 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7937 | if test "${enable_listctrl+set}" = set; then | |
7938 | enableval="$enable_listctrl" | |
7939 | ||
7940 | if test "$enableval" = yes; then | |
7941 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7942 | else | |
7943 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7944 | fi | |
7945 | ||
7946 | else | |
7947 | ||
7948 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7949 | if test "x$LINE" != x ; then | |
7950 | eval "DEFAULT_$LINE" | |
7951 | else | |
7952 | no_cache=1 | |
7953 | fi | |
7954 | ||
7955 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7956 | ||
7957 | fi; | |
7958 | ||
7959 | eval "$ac_cv_use_listctrl" | |
7960 | if test "$no_cache" != 1; then | |
7961 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7962 | fi | |
7963 | ||
7964 | if test "$wxUSE_LISTCTRL" = yes; then | |
7965 | echo "$as_me:$LINENO: result: yes" >&5 | |
7966 | echo "${ECHO_T}yes" >&6 | |
7967 | else | |
7968 | echo "$as_me:$LINENO: result: no" >&5 | |
7969 | echo "${ECHO_T}no" >&6 | |
7970 | fi | |
7971 | ||
7972 | ||
7973 | enablestring= | |
7974 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7975 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7976 | no_cache=0 | |
7977 | # Check whether --enable-notebook or --disable-notebook was given. | |
7978 | if test "${enable_notebook+set}" = set; then | |
7979 | enableval="$enable_notebook" | |
7980 | ||
7981 | if test "$enableval" = yes; then | |
7982 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7983 | else | |
7984 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7985 | fi | |
7986 | ||
7987 | else | |
7988 | ||
7989 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7990 | if test "x$LINE" != x ; then | |
7991 | eval "DEFAULT_$LINE" | |
7992 | else | |
7993 | no_cache=1 | |
7994 | fi | |
7995 | ||
7996 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7997 | ||
7998 | fi; | |
7999 | ||
8000 | eval "$ac_cv_use_notebook" | |
8001 | if test "$no_cache" != 1; then | |
8002 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8003 | fi | |
8004 | ||
8005 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8006 | echo "$as_me:$LINENO: result: yes" >&5 | |
8007 | echo "${ECHO_T}yes" >&6 | |
8008 | else | |
8009 | echo "$as_me:$LINENO: result: no" >&5 | |
8010 | echo "${ECHO_T}no" >&6 | |
8011 | fi | |
8012 | ||
8013 | ||
8014 | enablestring= | |
8015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8016 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8017 | no_cache=0 | |
8018 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8019 | if test "${enable_radiobox+set}" = set; then | |
8020 | enableval="$enable_radiobox" | |
8021 | ||
8022 | if test "$enableval" = yes; then | |
8023 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8024 | else | |
8025 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8026 | fi | |
8027 | ||
8028 | else | |
8029 | ||
8030 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8031 | if test "x$LINE" != x ; then | |
8032 | eval "DEFAULT_$LINE" | |
8033 | else | |
8034 | no_cache=1 | |
8035 | fi | |
8036 | ||
8037 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8038 | ||
8039 | fi; | |
8040 | ||
8041 | eval "$ac_cv_use_radiobox" | |
8042 | if test "$no_cache" != 1; then | |
8043 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8044 | fi | |
8045 | ||
8046 | if test "$wxUSE_RADIOBOX" = yes; then | |
8047 | echo "$as_me:$LINENO: result: yes" >&5 | |
8048 | echo "${ECHO_T}yes" >&6 | |
8049 | else | |
8050 | echo "$as_me:$LINENO: result: no" >&5 | |
8051 | echo "${ECHO_T}no" >&6 | |
8052 | fi | |
8053 | ||
8054 | ||
8055 | enablestring= | |
8056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8057 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8058 | no_cache=0 | |
8059 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8060 | if test "${enable_radiobtn+set}" = set; then | |
8061 | enableval="$enable_radiobtn" | |
8062 | ||
8063 | if test "$enableval" = yes; then | |
8064 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8065 | else | |
8066 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8067 | fi | |
8068 | ||
8069 | else | |
8070 | ||
8071 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8072 | if test "x$LINE" != x ; then | |
8073 | eval "DEFAULT_$LINE" | |
8074 | else | |
8075 | no_cache=1 | |
8076 | fi | |
8077 | ||
8078 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8079 | ||
8080 | fi; | |
8081 | ||
8082 | eval "$ac_cv_use_radiobtn" | |
8083 | if test "$no_cache" != 1; then | |
8084 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8085 | fi | |
8086 | ||
8087 | if test "$wxUSE_RADIOBTN" = yes; then | |
8088 | echo "$as_me:$LINENO: result: yes" >&5 | |
8089 | echo "${ECHO_T}yes" >&6 | |
8090 | else | |
8091 | echo "$as_me:$LINENO: result: no" >&5 | |
8092 | echo "${ECHO_T}no" >&6 | |
8093 | fi | |
8094 | ||
8095 | ||
8096 | enablestring= | |
8097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8098 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8099 | no_cache=0 | |
8100 | # Check whether --enable-sash or --disable-sash was given. | |
8101 | if test "${enable_sash+set}" = set; then | |
8102 | enableval="$enable_sash" | |
8103 | ||
8104 | if test "$enableval" = yes; then | |
8105 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8106 | else | |
8107 | ac_cv_use_sash='wxUSE_SASH=no' | |
8108 | fi | |
8109 | ||
8110 | else | |
8111 | ||
8112 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8113 | if test "x$LINE" != x ; then | |
8114 | eval "DEFAULT_$LINE" | |
8115 | else | |
8116 | no_cache=1 | |
8117 | fi | |
8118 | ||
8119 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8120 | ||
8121 | fi; | |
8122 | ||
8123 | eval "$ac_cv_use_sash" | |
8124 | if test "$no_cache" != 1; then | |
8125 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8126 | fi | |
8127 | ||
8128 | if test "$wxUSE_SASH" = yes; then | |
8129 | echo "$as_me:$LINENO: result: yes" >&5 | |
8130 | echo "${ECHO_T}yes" >&6 | |
8131 | else | |
8132 | echo "$as_me:$LINENO: result: no" >&5 | |
8133 | echo "${ECHO_T}no" >&6 | |
8134 | fi | |
8135 | ||
8136 | ||
8137 | enablestring= | |
8138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8139 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8140 | no_cache=0 | |
8141 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8142 | if test "${enable_scrollbar+set}" = set; then | |
8143 | enableval="$enable_scrollbar" | |
8144 | ||
8145 | if test "$enableval" = yes; then | |
8146 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8147 | else | |
8148 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8149 | fi | |
8150 | ||
8151 | else | |
8152 | ||
8153 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8154 | if test "x$LINE" != x ; then | |
8155 | eval "DEFAULT_$LINE" | |
8156 | else | |
8157 | no_cache=1 | |
8158 | fi | |
8159 | ||
8160 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8161 | ||
8162 | fi; | |
8163 | ||
8164 | eval "$ac_cv_use_scrollbar" | |
8165 | if test "$no_cache" != 1; then | |
8166 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8167 | fi | |
8168 | ||
8169 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8170 | echo "$as_me:$LINENO: result: yes" >&5 | |
8171 | echo "${ECHO_T}yes" >&6 | |
8172 | else | |
8173 | echo "$as_me:$LINENO: result: no" >&5 | |
8174 | echo "${ECHO_T}no" >&6 | |
8175 | fi | |
8176 | ||
8177 | ||
8178 | enablestring= | |
8179 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8180 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8181 | no_cache=0 | |
8182 | # Check whether --enable-slider or --disable-slider was given. | |
8183 | if test "${enable_slider+set}" = set; then | |
8184 | enableval="$enable_slider" | |
8185 | ||
8186 | if test "$enableval" = yes; then | |
8187 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8188 | else | |
8189 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8190 | fi | |
8191 | ||
8192 | else | |
8193 | ||
8194 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8195 | if test "x$LINE" != x ; then | |
8196 | eval "DEFAULT_$LINE" | |
8197 | else | |
8198 | no_cache=1 | |
8199 | fi | |
8200 | ||
8201 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8202 | ||
8203 | fi; | |
8204 | ||
8205 | eval "$ac_cv_use_slider" | |
8206 | if test "$no_cache" != 1; then | |
8207 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8208 | fi | |
8209 | ||
8210 | if test "$wxUSE_SLIDER" = yes; then | |
8211 | echo "$as_me:$LINENO: result: yes" >&5 | |
8212 | echo "${ECHO_T}yes" >&6 | |
8213 | else | |
8214 | echo "$as_me:$LINENO: result: no" >&5 | |
8215 | echo "${ECHO_T}no" >&6 | |
8216 | fi | |
8217 | ||
8218 | ||
8219 | enablestring= | |
8220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8221 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8222 | no_cache=0 | |
8223 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8224 | if test "${enable_spinbtn+set}" = set; then | |
8225 | enableval="$enable_spinbtn" | |
8226 | ||
8227 | if test "$enableval" = yes; then | |
8228 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8229 | else | |
8230 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8231 | fi | |
8232 | ||
8233 | else | |
8234 | ||
8235 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8236 | if test "x$LINE" != x ; then | |
8237 | eval "DEFAULT_$LINE" | |
8238 | else | |
8239 | no_cache=1 | |
8240 | fi | |
8241 | ||
8242 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8243 | ||
8244 | fi; | |
8245 | ||
8246 | eval "$ac_cv_use_spinbtn" | |
8247 | if test "$no_cache" != 1; then | |
8248 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8249 | fi | |
8250 | ||
8251 | if test "$wxUSE_SPINBTN" = yes; then | |
8252 | echo "$as_me:$LINENO: result: yes" >&5 | |
8253 | echo "${ECHO_T}yes" >&6 | |
8254 | else | |
8255 | echo "$as_me:$LINENO: result: no" >&5 | |
8256 | echo "${ECHO_T}no" >&6 | |
8257 | fi | |
8258 | ||
8259 | ||
8260 | enablestring= | |
8261 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8262 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8263 | no_cache=0 | |
8264 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8265 | if test "${enable_spinctrl+set}" = set; then | |
8266 | enableval="$enable_spinctrl" | |
8267 | ||
8268 | if test "$enableval" = yes; then | |
8269 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8270 | else | |
8271 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8272 | fi | |
8273 | ||
8274 | else | |
8275 | ||
8276 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8277 | if test "x$LINE" != x ; then | |
8278 | eval "DEFAULT_$LINE" | |
8279 | else | |
8280 | no_cache=1 | |
8281 | fi | |
8282 | ||
8283 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8284 | ||
8285 | fi; | |
8286 | ||
8287 | eval "$ac_cv_use_spinctrl" | |
8288 | if test "$no_cache" != 1; then | |
8289 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8290 | fi | |
8291 | ||
8292 | if test "$wxUSE_SPINCTRL" = yes; then | |
8293 | echo "$as_me:$LINENO: result: yes" >&5 | |
8294 | echo "${ECHO_T}yes" >&6 | |
8295 | else | |
8296 | echo "$as_me:$LINENO: result: no" >&5 | |
8297 | echo "${ECHO_T}no" >&6 | |
8298 | fi | |
8299 | ||
8300 | ||
8301 | enablestring= | |
8302 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8303 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8304 | no_cache=0 | |
8305 | # Check whether --enable-splitter or --disable-splitter was given. | |
8306 | if test "${enable_splitter+set}" = set; then | |
8307 | enableval="$enable_splitter" | |
8308 | ||
8309 | if test "$enableval" = yes; then | |
8310 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8311 | else | |
8312 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8313 | fi | |
8314 | ||
8315 | else | |
8316 | ||
8317 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8318 | if test "x$LINE" != x ; then | |
8319 | eval "DEFAULT_$LINE" | |
8320 | else | |
8321 | no_cache=1 | |
8322 | fi | |
8323 | ||
8324 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8325 | ||
8326 | fi; | |
8327 | ||
8328 | eval "$ac_cv_use_splitter" | |
8329 | if test "$no_cache" != 1; then | |
8330 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8331 | fi | |
8332 | ||
8333 | if test "$wxUSE_SPLITTER" = yes; then | |
8334 | echo "$as_me:$LINENO: result: yes" >&5 | |
8335 | echo "${ECHO_T}yes" >&6 | |
8336 | else | |
8337 | echo "$as_me:$LINENO: result: no" >&5 | |
8338 | echo "${ECHO_T}no" >&6 | |
8339 | fi | |
8340 | ||
8341 | ||
8342 | enablestring= | |
8343 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8344 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8345 | no_cache=0 | |
8346 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8347 | if test "${enable_statbmp+set}" = set; then | |
8348 | enableval="$enable_statbmp" | |
8349 | ||
8350 | if test "$enableval" = yes; then | |
8351 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8352 | else | |
8353 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8354 | fi | |
8355 | ||
8356 | else | |
8357 | ||
8358 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8359 | if test "x$LINE" != x ; then | |
8360 | eval "DEFAULT_$LINE" | |
8361 | else | |
8362 | no_cache=1 | |
8363 | fi | |
8364 | ||
8365 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8366 | ||
8367 | fi; | |
8368 | ||
8369 | eval "$ac_cv_use_statbmp" | |
8370 | if test "$no_cache" != 1; then | |
8371 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8372 | fi | |
8373 | ||
8374 | if test "$wxUSE_STATBMP" = yes; then | |
8375 | echo "$as_me:$LINENO: result: yes" >&5 | |
8376 | echo "${ECHO_T}yes" >&6 | |
8377 | else | |
8378 | echo "$as_me:$LINENO: result: no" >&5 | |
8379 | echo "${ECHO_T}no" >&6 | |
8380 | fi | |
8381 | ||
8382 | ||
8383 | enablestring= | |
8384 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8385 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8386 | no_cache=0 | |
8387 | # Check whether --enable-statbox or --disable-statbox was given. | |
8388 | if test "${enable_statbox+set}" = set; then | |
8389 | enableval="$enable_statbox" | |
8390 | ||
8391 | if test "$enableval" = yes; then | |
8392 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8393 | else | |
8394 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8395 | fi | |
8396 | ||
8397 | else | |
8398 | ||
8399 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8400 | if test "x$LINE" != x ; then | |
8401 | eval "DEFAULT_$LINE" | |
8402 | else | |
8403 | no_cache=1 | |
8404 | fi | |
8405 | ||
8406 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8407 | ||
8408 | fi; | |
8409 | ||
8410 | eval "$ac_cv_use_statbox" | |
8411 | if test "$no_cache" != 1; then | |
8412 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8413 | fi | |
8414 | ||
8415 | if test "$wxUSE_STATBOX" = yes; then | |
8416 | echo "$as_me:$LINENO: result: yes" >&5 | |
8417 | echo "${ECHO_T}yes" >&6 | |
8418 | else | |
8419 | echo "$as_me:$LINENO: result: no" >&5 | |
8420 | echo "${ECHO_T}no" >&6 | |
8421 | fi | |
8422 | ||
8423 | ||
8424 | enablestring= | |
8425 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8426 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8427 | no_cache=0 | |
8428 | # Check whether --enable-statline or --disable-statline was given. | |
8429 | if test "${enable_statline+set}" = set; then | |
8430 | enableval="$enable_statline" | |
8431 | ||
8432 | if test "$enableval" = yes; then | |
8433 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8434 | else | |
8435 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8436 | fi | |
8437 | ||
8438 | else | |
8439 | ||
8440 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8441 | if test "x$LINE" != x ; then | |
8442 | eval "DEFAULT_$LINE" | |
8443 | else | |
8444 | no_cache=1 | |
8445 | fi | |
8446 | ||
8447 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8448 | ||
8449 | fi; | |
8450 | ||
8451 | eval "$ac_cv_use_statline" | |
8452 | if test "$no_cache" != 1; then | |
8453 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8454 | fi | |
8455 | ||
8456 | if test "$wxUSE_STATLINE" = yes; then | |
8457 | echo "$as_me:$LINENO: result: yes" >&5 | |
8458 | echo "${ECHO_T}yes" >&6 | |
8459 | else | |
8460 | echo "$as_me:$LINENO: result: no" >&5 | |
8461 | echo "${ECHO_T}no" >&6 | |
8462 | fi | |
8463 | ||
8464 | ||
8465 | enablestring= | |
8466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8467 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8468 | no_cache=0 | |
8469 | # Check whether --enable-stattext or --disable-stattext was given. | |
8470 | if test "${enable_stattext+set}" = set; then | |
8471 | enableval="$enable_stattext" | |
8472 | ||
8473 | if test "$enableval" = yes; then | |
8474 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8475 | else | |
8476 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8477 | fi | |
8478 | ||
8479 | else | |
8480 | ||
8481 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8482 | if test "x$LINE" != x ; then | |
8483 | eval "DEFAULT_$LINE" | |
8484 | else | |
8485 | no_cache=1 | |
8486 | fi | |
8487 | ||
8488 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8489 | ||
8490 | fi; | |
8491 | ||
8492 | eval "$ac_cv_use_stattext" | |
8493 | if test "$no_cache" != 1; then | |
8494 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8495 | fi | |
8496 | ||
8497 | if test "$wxUSE_STATTEXT" = yes; then | |
8498 | echo "$as_me:$LINENO: result: yes" >&5 | |
8499 | echo "${ECHO_T}yes" >&6 | |
8500 | else | |
8501 | echo "$as_me:$LINENO: result: no" >&5 | |
8502 | echo "${ECHO_T}no" >&6 | |
8503 | fi | |
8504 | ||
8505 | ||
8506 | enablestring= | |
8507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8508 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8509 | no_cache=0 | |
8510 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8511 | if test "${enable_statusbar+set}" = set; then | |
8512 | enableval="$enable_statusbar" | |
8513 | ||
8514 | if test "$enableval" = yes; then | |
8515 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8516 | else | |
8517 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8518 | fi | |
8519 | ||
8520 | else | |
8521 | ||
8522 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8523 | if test "x$LINE" != x ; then | |
8524 | eval "DEFAULT_$LINE" | |
8525 | else | |
8526 | no_cache=1 | |
8527 | fi | |
8528 | ||
8529 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8530 | ||
8531 | fi; | |
8532 | ||
8533 | eval "$ac_cv_use_statusbar" | |
8534 | if test "$no_cache" != 1; then | |
8535 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8536 | fi | |
8537 | ||
8538 | if test "$wxUSE_STATUSBAR" = yes; then | |
8539 | echo "$as_me:$LINENO: result: yes" >&5 | |
8540 | echo "${ECHO_T}yes" >&6 | |
8541 | else | |
8542 | echo "$as_me:$LINENO: result: no" >&5 | |
8543 | echo "${ECHO_T}no" >&6 | |
8544 | fi | |
8545 | ||
8546 | ||
8547 | enablestring= | |
8548 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8549 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8550 | no_cache=0 | |
8551 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8552 | if test "${enable_tabdialog+set}" = set; then | |
8553 | enableval="$enable_tabdialog" | |
8554 | ||
8555 | if test "$enableval" = yes; then | |
8556 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8557 | else | |
8558 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8559 | fi | |
8560 | ||
8561 | else | |
8562 | ||
8563 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8564 | if test "x$LINE" != x ; then | |
8565 | eval "DEFAULT_$LINE" | |
8566 | else | |
8567 | no_cache=1 | |
8568 | fi | |
8569 | ||
8570 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8571 | ||
8572 | fi; | |
8573 | ||
8574 | eval "$ac_cv_use_tabdialog" | |
8575 | if test "$no_cache" != 1; then | |
8576 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8577 | fi | |
8578 | ||
8579 | if test "$wxUSE_TABDIALOG" = yes; then | |
8580 | echo "$as_me:$LINENO: result: yes" >&5 | |
8581 | echo "${ECHO_T}yes" >&6 | |
8582 | else | |
8583 | echo "$as_me:$LINENO: result: no" >&5 | |
8584 | echo "${ECHO_T}no" >&6 | |
8585 | fi | |
8586 | ||
8587 | ||
8588 | enablestring= | |
8589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8590 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8591 | no_cache=0 | |
8592 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8593 | if test "${enable_textctrl+set}" = set; then | |
8594 | enableval="$enable_textctrl" | |
8595 | ||
8596 | if test "$enableval" = yes; then | |
8597 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8598 | else | |
8599 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8600 | fi | |
8601 | ||
8602 | else | |
8603 | ||
8604 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8605 | if test "x$LINE" != x ; then | |
8606 | eval "DEFAULT_$LINE" | |
8607 | else | |
8608 | no_cache=1 | |
8609 | fi | |
8610 | ||
8611 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8612 | ||
8613 | fi; | |
8614 | ||
8615 | eval "$ac_cv_use_textctrl" | |
8616 | if test "$no_cache" != 1; then | |
8617 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8618 | fi | |
8619 | ||
8620 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8621 | echo "$as_me:$LINENO: result: yes" >&5 | |
8622 | echo "${ECHO_T}yes" >&6 | |
8623 | else | |
8624 | echo "$as_me:$LINENO: result: no" >&5 | |
8625 | echo "${ECHO_T}no" >&6 | |
8626 | fi | |
8627 | ||
8628 | ||
8629 | enablestring= | |
8630 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8631 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8632 | no_cache=0 | |
8633 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8634 | if test "${enable_togglebtn+set}" = set; then | |
8635 | enableval="$enable_togglebtn" | |
8636 | ||
8637 | if test "$enableval" = yes; then | |
8638 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8639 | else | |
8640 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8641 | fi | |
8642 | ||
8643 | else | |
8644 | ||
8645 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8646 | if test "x$LINE" != x ; then | |
8647 | eval "DEFAULT_$LINE" | |
8648 | else | |
8649 | no_cache=1 | |
8650 | fi | |
8651 | ||
8652 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8653 | ||
8654 | fi; | |
8655 | ||
8656 | eval "$ac_cv_use_togglebtn" | |
8657 | if test "$no_cache" != 1; then | |
8658 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8659 | fi | |
8660 | ||
8661 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8662 | echo "$as_me:$LINENO: result: yes" >&5 | |
8663 | echo "${ECHO_T}yes" >&6 | |
8664 | else | |
8665 | echo "$as_me:$LINENO: result: no" >&5 | |
8666 | echo "${ECHO_T}no" >&6 | |
8667 | fi | |
8668 | ||
8669 | ||
8670 | enablestring= | |
8671 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8672 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8673 | no_cache=0 | |
8674 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8675 | if test "${enable_toolbar+set}" = set; then | |
8676 | enableval="$enable_toolbar" | |
8677 | ||
8678 | if test "$enableval" = yes; then | |
8679 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8680 | else | |
8681 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8682 | fi | |
8683 | ||
8684 | else | |
8685 | ||
8686 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8687 | if test "x$LINE" != x ; then | |
8688 | eval "DEFAULT_$LINE" | |
8689 | else | |
8690 | no_cache=1 | |
8691 | fi | |
8692 | ||
8693 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8694 | ||
8695 | fi; | |
8696 | ||
8697 | eval "$ac_cv_use_toolbar" | |
8698 | if test "$no_cache" != 1; then | |
8699 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8700 | fi | |
8701 | ||
8702 | if test "$wxUSE_TOOLBAR" = yes; then | |
8703 | echo "$as_me:$LINENO: result: yes" >&5 | |
8704 | echo "${ECHO_T}yes" >&6 | |
8705 | else | |
8706 | echo "$as_me:$LINENO: result: no" >&5 | |
8707 | echo "${ECHO_T}no" >&6 | |
8708 | fi | |
8709 | ||
8710 | ||
8711 | enablestring= | |
8712 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8713 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8714 | no_cache=0 | |
8715 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8716 | if test "${enable_tbarnative+set}" = set; then | |
8717 | enableval="$enable_tbarnative" | |
8718 | ||
8719 | if test "$enableval" = yes; then | |
8720 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8721 | else | |
8722 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8723 | fi | |
8724 | ||
8725 | else | |
8726 | ||
8727 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8728 | if test "x$LINE" != x ; then | |
8729 | eval "DEFAULT_$LINE" | |
8730 | else | |
8731 | no_cache=1 | |
8732 | fi | |
8733 | ||
8734 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8735 | ||
8736 | fi; | |
8737 | ||
8738 | eval "$ac_cv_use_tbarnative" | |
8739 | if test "$no_cache" != 1; then | |
8740 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8741 | fi | |
8742 | ||
8743 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8744 | echo "$as_me:$LINENO: result: yes" >&5 | |
8745 | echo "${ECHO_T}yes" >&6 | |
8746 | else | |
8747 | echo "$as_me:$LINENO: result: no" >&5 | |
8748 | echo "${ECHO_T}no" >&6 | |
8749 | fi | |
8750 | ||
8751 | ||
8752 | enablestring= | |
8753 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8754 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8755 | no_cache=0 | |
8756 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8757 | if test "${enable_tbarsmpl+set}" = set; then | |
8758 | enableval="$enable_tbarsmpl" | |
8759 | ||
8760 | if test "$enableval" = yes; then | |
8761 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8762 | else | |
8763 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8764 | fi | |
8765 | ||
8766 | else | |
8767 | ||
8768 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8769 | if test "x$LINE" != x ; then | |
8770 | eval "DEFAULT_$LINE" | |
8771 | else | |
8772 | no_cache=1 | |
8773 | fi | |
8774 | ||
8775 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8776 | ||
8777 | fi; | |
8778 | ||
8779 | eval "$ac_cv_use_tbarsmpl" | |
8780 | if test "$no_cache" != 1; then | |
8781 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8782 | fi | |
8783 | ||
8784 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8785 | echo "$as_me:$LINENO: result: yes" >&5 | |
8786 | echo "${ECHO_T}yes" >&6 | |
8787 | else | |
8788 | echo "$as_me:$LINENO: result: no" >&5 | |
8789 | echo "${ECHO_T}no" >&6 | |
8790 | fi | |
8791 | ||
8792 | ||
8793 | enablestring= | |
8794 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8795 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8796 | no_cache=0 | |
8797 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8798 | if test "${enable_treectrl+set}" = set; then | |
8799 | enableval="$enable_treectrl" | |
8800 | ||
8801 | if test "$enableval" = yes; then | |
8802 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8803 | else | |
8804 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8805 | fi | |
8806 | ||
8807 | else | |
8808 | ||
8809 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8810 | if test "x$LINE" != x ; then | |
8811 | eval "DEFAULT_$LINE" | |
8812 | else | |
8813 | no_cache=1 | |
8814 | fi | |
8815 | ||
8816 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8817 | ||
8818 | fi; | |
8819 | ||
8820 | eval "$ac_cv_use_treectrl" | |
8821 | if test "$no_cache" != 1; then | |
8822 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8823 | fi | |
8824 | ||
8825 | if test "$wxUSE_TREECTRL" = yes; then | |
8826 | echo "$as_me:$LINENO: result: yes" >&5 | |
8827 | echo "${ECHO_T}yes" >&6 | |
8828 | else | |
8829 | echo "$as_me:$LINENO: result: no" >&5 | |
8830 | echo "${ECHO_T}no" >&6 | |
8831 | fi | |
8832 | ||
8833 | ||
8834 | enablestring= | |
8835 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8836 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8837 | no_cache=0 | |
8838 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8839 | if test "${enable_tipwindow+set}" = set; then | |
8840 | enableval="$enable_tipwindow" | |
8841 | ||
8842 | if test "$enableval" = yes; then | |
8843 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8844 | else | |
8845 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8846 | fi | |
8847 | ||
8848 | else | |
8849 | ||
8850 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8851 | if test "x$LINE" != x ; then | |
8852 | eval "DEFAULT_$LINE" | |
8853 | else | |
8854 | no_cache=1 | |
8855 | fi | |
8856 | ||
8857 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8858 | ||
8859 | fi; | |
8860 | ||
8861 | eval "$ac_cv_use_tipwindow" | |
8862 | if test "$no_cache" != 1; then | |
8863 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8864 | fi | |
8865 | ||
8866 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8867 | echo "$as_me:$LINENO: result: yes" >&5 | |
8868 | echo "${ECHO_T}yes" >&6 | |
8869 | else | |
8870 | echo "$as_me:$LINENO: result: no" >&5 | |
8871 | echo "${ECHO_T}no" >&6 | |
8872 | fi | |
8873 | ||
8874 | ||
8875 | enablestring= | |
8876 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8877 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8878 | no_cache=0 | |
8879 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8880 | if test "${enable_popupwin+set}" = set; then | |
8881 | enableval="$enable_popupwin" | |
8882 | ||
8883 | if test "$enableval" = yes; then | |
8884 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8885 | else | |
8886 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8887 | fi | |
8888 | ||
8889 | else | |
8890 | ||
8891 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8892 | if test "x$LINE" != x ; then | |
8893 | eval "DEFAULT_$LINE" | |
8894 | else | |
8895 | no_cache=1 | |
8896 | fi | |
8897 | ||
8898 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8899 | ||
8900 | fi; | |
8901 | ||
8902 | eval "$ac_cv_use_popupwin" | |
8903 | if test "$no_cache" != 1; then | |
8904 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8905 | fi | |
8906 | ||
8907 | if test "$wxUSE_POPUPWIN" = yes; then | |
8908 | echo "$as_me:$LINENO: result: yes" >&5 | |
8909 | echo "${ECHO_T}yes" >&6 | |
8910 | else | |
8911 | echo "$as_me:$LINENO: result: no" >&5 | |
8912 | echo "${ECHO_T}no" >&6 | |
8913 | fi | |
8914 | ||
8915 | ||
8916 | ||
8917 | ||
8918 | enablestring= | |
8919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8920 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8921 | no_cache=0 | |
8922 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8923 | if test "${enable_commondlg+set}" = set; then | |
8924 | enableval="$enable_commondlg" | |
8925 | ||
8926 | if test "$enableval" = yes; then | |
8927 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8928 | else | |
8929 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8930 | fi | |
8931 | ||
8932 | else | |
8933 | ||
8934 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8935 | if test "x$LINE" != x ; then | |
8936 | eval "DEFAULT_$LINE" | |
8937 | else | |
8938 | no_cache=1 | |
8939 | fi | |
8940 | ||
8941 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8942 | ||
8943 | fi; | |
8944 | ||
8945 | eval "$ac_cv_use_commondlg" | |
8946 | if test "$no_cache" != 1; then | |
8947 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8948 | fi | |
8949 | ||
8950 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8951 | echo "$as_me:$LINENO: result: yes" >&5 | |
8952 | echo "${ECHO_T}yes" >&6 | |
8953 | else | |
8954 | echo "$as_me:$LINENO: result: no" >&5 | |
8955 | echo "${ECHO_T}no" >&6 | |
8956 | fi | |
8957 | ||
8958 | ||
8959 | enablestring= | |
8960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8961 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8962 | no_cache=0 | |
8963 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8964 | if test "${enable_choicedlg+set}" = set; then | |
8965 | enableval="$enable_choicedlg" | |
8966 | ||
8967 | if test "$enableval" = yes; then | |
8968 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8969 | else | |
8970 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8971 | fi | |
8972 | ||
8973 | else | |
8974 | ||
8975 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8976 | if test "x$LINE" != x ; then | |
8977 | eval "DEFAULT_$LINE" | |
8978 | else | |
8979 | no_cache=1 | |
8980 | fi | |
8981 | ||
8982 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8983 | ||
8984 | fi; | |
8985 | ||
8986 | eval "$ac_cv_use_choicedlg" | |
8987 | if test "$no_cache" != 1; then | |
8988 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8989 | fi | |
8990 | ||
8991 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8992 | echo "$as_me:$LINENO: result: yes" >&5 | |
8993 | echo "${ECHO_T}yes" >&6 | |
8994 | else | |
8995 | echo "$as_me:$LINENO: result: no" >&5 | |
8996 | echo "${ECHO_T}no" >&6 | |
8997 | fi | |
8998 | ||
8999 | ||
9000 | enablestring= | |
9001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9002 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9003 | no_cache=0 | |
9004 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9005 | if test "${enable_coldlg+set}" = set; then | |
9006 | enableval="$enable_coldlg" | |
9007 | ||
9008 | if test "$enableval" = yes; then | |
9009 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9010 | else | |
9011 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9012 | fi | |
9013 | ||
9014 | else | |
9015 | ||
9016 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9017 | if test "x$LINE" != x ; then | |
9018 | eval "DEFAULT_$LINE" | |
9019 | else | |
9020 | no_cache=1 | |
9021 | fi | |
9022 | ||
9023 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9024 | ||
9025 | fi; | |
9026 | ||
9027 | eval "$ac_cv_use_coldlg" | |
9028 | if test "$no_cache" != 1; then | |
9029 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9030 | fi | |
9031 | ||
9032 | if test "$wxUSE_COLOURDLG" = yes; then | |
9033 | echo "$as_me:$LINENO: result: yes" >&5 | |
9034 | echo "${ECHO_T}yes" >&6 | |
9035 | else | |
9036 | echo "$as_me:$LINENO: result: no" >&5 | |
9037 | echo "${ECHO_T}no" >&6 | |
9038 | fi | |
9039 | ||
9040 | ||
9041 | enablestring= | |
9042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9043 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9044 | no_cache=0 | |
9045 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9046 | if test "${enable_filedlg+set}" = set; then | |
9047 | enableval="$enable_filedlg" | |
9048 | ||
9049 | if test "$enableval" = yes; then | |
9050 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9051 | else | |
9052 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9053 | fi | |
9054 | ||
9055 | else | |
9056 | ||
9057 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9058 | if test "x$LINE" != x ; then | |
9059 | eval "DEFAULT_$LINE" | |
9060 | else | |
9061 | no_cache=1 | |
9062 | fi | |
9063 | ||
9064 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9065 | ||
9066 | fi; | |
9067 | ||
9068 | eval "$ac_cv_use_filedlg" | |
9069 | if test "$no_cache" != 1; then | |
9070 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9071 | fi | |
9072 | ||
9073 | if test "$wxUSE_FILEDLG" = yes; then | |
9074 | echo "$as_me:$LINENO: result: yes" >&5 | |
9075 | echo "${ECHO_T}yes" >&6 | |
9076 | else | |
9077 | echo "$as_me:$LINENO: result: no" >&5 | |
9078 | echo "${ECHO_T}no" >&6 | |
9079 | fi | |
9080 | ||
9081 | ||
9082 | enablestring= | |
9083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9084 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9085 | no_cache=0 | |
9086 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9087 | if test "${enable_finddlg+set}" = set; then | |
9088 | enableval="$enable_finddlg" | |
9089 | ||
9090 | if test "$enableval" = yes; then | |
9091 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9092 | else | |
9093 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9094 | fi | |
9095 | ||
9096 | else | |
9097 | ||
9098 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9099 | if test "x$LINE" != x ; then | |
9100 | eval "DEFAULT_$LINE" | |
9101 | else | |
9102 | no_cache=1 | |
9103 | fi | |
9104 | ||
9105 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9106 | ||
9107 | fi; | |
9108 | ||
9109 | eval "$ac_cv_use_finddlg" | |
9110 | if test "$no_cache" != 1; then | |
9111 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9112 | fi | |
9113 | ||
9114 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9115 | echo "$as_me:$LINENO: result: yes" >&5 | |
9116 | echo "${ECHO_T}yes" >&6 | |
9117 | else | |
9118 | echo "$as_me:$LINENO: result: no" >&5 | |
9119 | echo "${ECHO_T}no" >&6 | |
9120 | fi | |
9121 | ||
9122 | ||
9123 | enablestring= | |
9124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9125 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9126 | no_cache=0 | |
9127 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9128 | if test "${enable_fontdlg+set}" = set; then | |
9129 | enableval="$enable_fontdlg" | |
9130 | ||
9131 | if test "$enableval" = yes; then | |
9132 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9133 | else | |
9134 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9135 | fi | |
9136 | ||
9137 | else | |
9138 | ||
9139 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9140 | if test "x$LINE" != x ; then | |
9141 | eval "DEFAULT_$LINE" | |
9142 | else | |
9143 | no_cache=1 | |
9144 | fi | |
9145 | ||
9146 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9147 | ||
9148 | fi; | |
9149 | ||
9150 | eval "$ac_cv_use_fontdlg" | |
9151 | if test "$no_cache" != 1; then | |
9152 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9153 | fi | |
9154 | ||
9155 | if test "$wxUSE_FONTDLG" = yes; then | |
9156 | echo "$as_me:$LINENO: result: yes" >&5 | |
9157 | echo "${ECHO_T}yes" >&6 | |
9158 | else | |
9159 | echo "$as_me:$LINENO: result: no" >&5 | |
9160 | echo "${ECHO_T}no" >&6 | |
9161 | fi | |
9162 | ||
9163 | ||
9164 | enablestring= | |
9165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9166 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9167 | no_cache=0 | |
9168 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9169 | if test "${enable_dirdlg+set}" = set; then | |
9170 | enableval="$enable_dirdlg" | |
9171 | ||
9172 | if test "$enableval" = yes; then | |
9173 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9174 | else | |
9175 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9176 | fi | |
9177 | ||
9178 | else | |
9179 | ||
9180 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9181 | if test "x$LINE" != x ; then | |
9182 | eval "DEFAULT_$LINE" | |
9183 | else | |
9184 | no_cache=1 | |
9185 | fi | |
9186 | ||
9187 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9188 | ||
9189 | fi; | |
9190 | ||
9191 | eval "$ac_cv_use_dirdlg" | |
9192 | if test "$no_cache" != 1; then | |
9193 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9194 | fi | |
9195 | ||
9196 | if test "$wxUSE_DIRDLG" = yes; then | |
9197 | echo "$as_me:$LINENO: result: yes" >&5 | |
9198 | echo "${ECHO_T}yes" >&6 | |
9199 | else | |
9200 | echo "$as_me:$LINENO: result: no" >&5 | |
9201 | echo "${ECHO_T}no" >&6 | |
9202 | fi | |
9203 | ||
9204 | ||
9205 | enablestring= | |
9206 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9207 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9208 | no_cache=0 | |
9209 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9210 | if test "${enable_msgdlg+set}" = set; then | |
9211 | enableval="$enable_msgdlg" | |
9212 | ||
9213 | if test "$enableval" = yes; then | |
9214 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9215 | else | |
9216 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9217 | fi | |
9218 | ||
9219 | else | |
9220 | ||
9221 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9222 | if test "x$LINE" != x ; then | |
9223 | eval "DEFAULT_$LINE" | |
9224 | else | |
9225 | no_cache=1 | |
9226 | fi | |
9227 | ||
9228 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9229 | ||
9230 | fi; | |
9231 | ||
9232 | eval "$ac_cv_use_msgdlg" | |
9233 | if test "$no_cache" != 1; then | |
9234 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9235 | fi | |
9236 | ||
9237 | if test "$wxUSE_MSGDLG" = yes; then | |
9238 | echo "$as_me:$LINENO: result: yes" >&5 | |
9239 | echo "${ECHO_T}yes" >&6 | |
9240 | else | |
9241 | echo "$as_me:$LINENO: result: no" >&5 | |
9242 | echo "${ECHO_T}no" >&6 | |
9243 | fi | |
9244 | ||
9245 | ||
9246 | enablestring= | |
9247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9248 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9249 | no_cache=0 | |
9250 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9251 | if test "${enable_numberdlg+set}" = set; then | |
9252 | enableval="$enable_numberdlg" | |
9253 | ||
9254 | if test "$enableval" = yes; then | |
9255 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9256 | else | |
9257 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9258 | fi | |
9259 | ||
9260 | else | |
9261 | ||
9262 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9263 | if test "x$LINE" != x ; then | |
9264 | eval "DEFAULT_$LINE" | |
9265 | else | |
9266 | no_cache=1 | |
9267 | fi | |
9268 | ||
9269 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9270 | ||
9271 | fi; | |
9272 | ||
9273 | eval "$ac_cv_use_numberdlg" | |
9274 | if test "$no_cache" != 1; then | |
9275 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9276 | fi | |
9277 | ||
9278 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9279 | echo "$as_me:$LINENO: result: yes" >&5 | |
9280 | echo "${ECHO_T}yes" >&6 | |
9281 | else | |
9282 | echo "$as_me:$LINENO: result: no" >&5 | |
9283 | echo "${ECHO_T}no" >&6 | |
9284 | fi | |
9285 | ||
9286 | ||
9287 | enablestring= | |
9288 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9289 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9290 | no_cache=0 | |
9291 | # Check whether --enable-splash or --disable-splash was given. | |
9292 | if test "${enable_splash+set}" = set; then | |
9293 | enableval="$enable_splash" | |
9294 | ||
9295 | if test "$enableval" = yes; then | |
9296 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9297 | else | |
9298 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9299 | fi | |
9300 | ||
9301 | else | |
9302 | ||
9303 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9304 | if test "x$LINE" != x ; then | |
9305 | eval "DEFAULT_$LINE" | |
9306 | else | |
9307 | no_cache=1 | |
9308 | fi | |
9309 | ||
9310 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9311 | ||
9312 | fi; | |
9313 | ||
9314 | eval "$ac_cv_use_splash" | |
9315 | if test "$no_cache" != 1; then | |
9316 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9317 | fi | |
9318 | ||
9319 | if test "$wxUSE_SPLASH" = yes; then | |
9320 | echo "$as_me:$LINENO: result: yes" >&5 | |
9321 | echo "${ECHO_T}yes" >&6 | |
9322 | else | |
9323 | echo "$as_me:$LINENO: result: no" >&5 | |
9324 | echo "${ECHO_T}no" >&6 | |
9325 | fi | |
9326 | ||
9327 | ||
9328 | enablestring= | |
9329 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9330 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9331 | no_cache=0 | |
9332 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9333 | if test "${enable_textdlg+set}" = set; then | |
9334 | enableval="$enable_textdlg" | |
9335 | ||
9336 | if test "$enableval" = yes; then | |
9337 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9338 | else | |
9339 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9340 | fi | |
9341 | ||
9342 | else | |
9343 | ||
9344 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9345 | if test "x$LINE" != x ; then | |
9346 | eval "DEFAULT_$LINE" | |
9347 | else | |
9348 | no_cache=1 | |
9349 | fi | |
9350 | ||
9351 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9352 | ||
9353 | fi; | |
9354 | ||
9355 | eval "$ac_cv_use_textdlg" | |
9356 | if test "$no_cache" != 1; then | |
9357 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9358 | fi | |
9359 | ||
9360 | if test "$wxUSE_TEXTDLG" = yes; then | |
9361 | echo "$as_me:$LINENO: result: yes" >&5 | |
9362 | echo "${ECHO_T}yes" >&6 | |
9363 | else | |
9364 | echo "$as_me:$LINENO: result: no" >&5 | |
9365 | echo "${ECHO_T}no" >&6 | |
9366 | fi | |
9367 | ||
9368 | ||
9369 | enablestring= | |
9370 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9371 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9372 | no_cache=0 | |
9373 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9374 | if test "${enable_tipdlg+set}" = set; then | |
9375 | enableval="$enable_tipdlg" | |
9376 | ||
9377 | if test "$enableval" = yes; then | |
9378 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9379 | else | |
9380 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9381 | fi | |
9382 | ||
9383 | else | |
9384 | ||
9385 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9386 | if test "x$LINE" != x ; then | |
9387 | eval "DEFAULT_$LINE" | |
9388 | else | |
9389 | no_cache=1 | |
9390 | fi | |
9391 | ||
9392 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9393 | ||
9394 | fi; | |
9395 | ||
9396 | eval "$ac_cv_use_tipdlg" | |
9397 | if test "$no_cache" != 1; then | |
9398 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9399 | fi | |
9400 | ||
9401 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9402 | echo "$as_me:$LINENO: result: yes" >&5 | |
9403 | echo "${ECHO_T}yes" >&6 | |
9404 | else | |
9405 | echo "$as_me:$LINENO: result: no" >&5 | |
9406 | echo "${ECHO_T}no" >&6 | |
9407 | fi | |
9408 | ||
9409 | ||
9410 | enablestring= | |
9411 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9412 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9413 | no_cache=0 | |
9414 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9415 | if test "${enable_progressdlg+set}" = set; then | |
9416 | enableval="$enable_progressdlg" | |
9417 | ||
9418 | if test "$enableval" = yes; then | |
9419 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9420 | else | |
9421 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9422 | fi | |
9423 | ||
9424 | else | |
9425 | ||
9426 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9427 | if test "x$LINE" != x ; then | |
9428 | eval "DEFAULT_$LINE" | |
9429 | else | |
9430 | no_cache=1 | |
9431 | fi | |
9432 | ||
9433 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9434 | ||
9435 | fi; | |
9436 | ||
9437 | eval "$ac_cv_use_progressdlg" | |
9438 | if test "$no_cache" != 1; then | |
9439 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9440 | fi | |
9441 | ||
9442 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9443 | echo "$as_me:$LINENO: result: yes" >&5 | |
9444 | echo "${ECHO_T}yes" >&6 | |
9445 | else | |
9446 | echo "$as_me:$LINENO: result: no" >&5 | |
9447 | echo "${ECHO_T}no" >&6 | |
9448 | fi | |
9449 | ||
9450 | ||
9451 | enablestring= | |
9452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9453 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9454 | no_cache=0 | |
9455 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9456 | if test "${enable_wizarddlg+set}" = set; then | |
9457 | enableval="$enable_wizarddlg" | |
9458 | ||
9459 | if test "$enableval" = yes; then | |
9460 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9461 | else | |
9462 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9463 | fi | |
9464 | ||
9465 | else | |
9466 | ||
9467 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9468 | if test "x$LINE" != x ; then | |
9469 | eval "DEFAULT_$LINE" | |
9470 | else | |
9471 | no_cache=1 | |
9472 | fi | |
9473 | ||
9474 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9475 | ||
9476 | fi; | |
9477 | ||
9478 | eval "$ac_cv_use_wizarddlg" | |
9479 | if test "$no_cache" != 1; then | |
9480 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9481 | fi | |
9482 | ||
9483 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9484 | echo "$as_me:$LINENO: result: yes" >&5 | |
9485 | echo "${ECHO_T}yes" >&6 | |
9486 | else | |
9487 | echo "$as_me:$LINENO: result: no" >&5 | |
9488 | echo "${ECHO_T}no" >&6 | |
9489 | fi | |
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | enablestring= | |
9495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9496 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9497 | no_cache=0 | |
9498 | # Check whether --enable-menus or --disable-menus was given. | |
9499 | if test "${enable_menus+set}" = set; then | |
9500 | enableval="$enable_menus" | |
9501 | ||
9502 | if test "$enableval" = yes; then | |
9503 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9504 | else | |
9505 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9506 | fi | |
9507 | ||
9508 | else | |
9509 | ||
9510 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9511 | if test "x$LINE" != x ; then | |
9512 | eval "DEFAULT_$LINE" | |
9513 | else | |
9514 | no_cache=1 | |
9515 | fi | |
9516 | ||
9517 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9518 | ||
9519 | fi; | |
9520 | ||
9521 | eval "$ac_cv_use_menus" | |
9522 | if test "$no_cache" != 1; then | |
9523 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9524 | fi | |
9525 | ||
9526 | if test "$wxUSE_MENUS" = yes; then | |
9527 | echo "$as_me:$LINENO: result: yes" >&5 | |
9528 | echo "${ECHO_T}yes" >&6 | |
9529 | else | |
9530 | echo "$as_me:$LINENO: result: no" >&5 | |
9531 | echo "${ECHO_T}no" >&6 | |
9532 | fi | |
9533 | ||
9534 | ||
9535 | enablestring= | |
9536 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9537 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9538 | no_cache=0 | |
9539 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9540 | if test "${enable_miniframe+set}" = set; then | |
9541 | enableval="$enable_miniframe" | |
9542 | ||
9543 | if test "$enableval" = yes; then | |
9544 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9545 | else | |
9546 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9547 | fi | |
9548 | ||
9549 | else | |
9550 | ||
9551 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9552 | if test "x$LINE" != x ; then | |
9553 | eval "DEFAULT_$LINE" | |
9554 | else | |
9555 | no_cache=1 | |
9556 | fi | |
9557 | ||
9558 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9559 | ||
9560 | fi; | |
9561 | ||
9562 | eval "$ac_cv_use_miniframe" | |
9563 | if test "$no_cache" != 1; then | |
9564 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9565 | fi | |
9566 | ||
9567 | if test "$wxUSE_MINIFRAME" = yes; then | |
9568 | echo "$as_me:$LINENO: result: yes" >&5 | |
9569 | echo "${ECHO_T}yes" >&6 | |
9570 | else | |
9571 | echo "$as_me:$LINENO: result: no" >&5 | |
9572 | echo "${ECHO_T}no" >&6 | |
9573 | fi | |
9574 | ||
9575 | ||
9576 | enablestring= | |
9577 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9578 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9579 | no_cache=0 | |
9580 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9581 | if test "${enable_tooltips+set}" = set; then | |
9582 | enableval="$enable_tooltips" | |
9583 | ||
9584 | if test "$enableval" = yes; then | |
9585 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9586 | else | |
9587 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9588 | fi | |
9589 | ||
9590 | else | |
9591 | ||
9592 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9593 | if test "x$LINE" != x ; then | |
9594 | eval "DEFAULT_$LINE" | |
9595 | else | |
9596 | no_cache=1 | |
9597 | fi | |
9598 | ||
9599 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9600 | ||
9601 | fi; | |
9602 | ||
9603 | eval "$ac_cv_use_tooltips" | |
9604 | if test "$no_cache" != 1; then | |
9605 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9606 | fi | |
9607 | ||
9608 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9609 | echo "$as_me:$LINENO: result: yes" >&5 | |
9610 | echo "${ECHO_T}yes" >&6 | |
9611 | else | |
9612 | echo "$as_me:$LINENO: result: no" >&5 | |
9613 | echo "${ECHO_T}no" >&6 | |
9614 | fi | |
9615 | ||
9616 | ||
9617 | enablestring= | |
9618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9619 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9620 | no_cache=0 | |
9621 | # Check whether --enable-splines or --disable-splines was given. | |
9622 | if test "${enable_splines+set}" = set; then | |
9623 | enableval="$enable_splines" | |
9624 | ||
9625 | if test "$enableval" = yes; then | |
9626 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9627 | else | |
9628 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9629 | fi | |
9630 | ||
9631 | else | |
9632 | ||
9633 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9634 | if test "x$LINE" != x ; then | |
9635 | eval "DEFAULT_$LINE" | |
9636 | else | |
9637 | no_cache=1 | |
9638 | fi | |
9639 | ||
9640 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9641 | ||
9642 | fi; | |
9643 | ||
9644 | eval "$ac_cv_use_splines" | |
9645 | if test "$no_cache" != 1; then | |
9646 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9647 | fi | |
9648 | ||
9649 | if test "$wxUSE_SPLINES" = yes; then | |
9650 | echo "$as_me:$LINENO: result: yes" >&5 | |
9651 | echo "${ECHO_T}yes" >&6 | |
9652 | else | |
9653 | echo "$as_me:$LINENO: result: no" >&5 | |
9654 | echo "${ECHO_T}no" >&6 | |
9655 | fi | |
9656 | ||
9657 | ||
9658 | enablestring= | |
9659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9660 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9661 | no_cache=0 | |
9662 | # Check whether --enable-validators or --disable-validators was given. | |
9663 | if test "${enable_validators+set}" = set; then | |
9664 | enableval="$enable_validators" | |
9665 | ||
9666 | if test "$enableval" = yes; then | |
9667 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9668 | else | |
9669 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9670 | fi | |
9671 | ||
9672 | else | |
9673 | ||
9674 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9675 | if test "x$LINE" != x ; then | |
9676 | eval "DEFAULT_$LINE" | |
9677 | else | |
9678 | no_cache=1 | |
9679 | fi | |
9680 | ||
9681 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9682 | ||
9683 | fi; | |
9684 | ||
9685 | eval "$ac_cv_use_validators" | |
9686 | if test "$no_cache" != 1; then | |
9687 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9688 | fi | |
9689 | ||
9690 | if test "$wxUSE_VALIDATORS" = yes; then | |
9691 | echo "$as_me:$LINENO: result: yes" >&5 | |
9692 | echo "${ECHO_T}yes" >&6 | |
9693 | else | |
9694 | echo "$as_me:$LINENO: result: no" >&5 | |
9695 | echo "${ECHO_T}no" >&6 | |
9696 | fi | |
9697 | ||
9698 | ||
9699 | enablestring= | |
9700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9701 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9702 | no_cache=0 | |
9703 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9704 | if test "${enable_busyinfo+set}" = set; then | |
9705 | enableval="$enable_busyinfo" | |
9706 | ||
9707 | if test "$enableval" = yes; then | |
9708 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9709 | else | |
9710 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9711 | fi | |
9712 | ||
9713 | else | |
9714 | ||
9715 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9716 | if test "x$LINE" != x ; then | |
9717 | eval "DEFAULT_$LINE" | |
9718 | else | |
9719 | no_cache=1 | |
9720 | fi | |
9721 | ||
9722 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9723 | ||
9724 | fi; | |
9725 | ||
9726 | eval "$ac_cv_use_busyinfo" | |
9727 | if test "$no_cache" != 1; then | |
9728 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9729 | fi | |
9730 | ||
9731 | if test "$wxUSE_BUSYINFO" = yes; then | |
9732 | echo "$as_me:$LINENO: result: yes" >&5 | |
9733 | echo "${ECHO_T}yes" >&6 | |
9734 | else | |
9735 | echo "$as_me:$LINENO: result: no" >&5 | |
9736 | echo "${ECHO_T}no" >&6 | |
9737 | fi | |
9738 | ||
9739 | ||
9740 | enablestring= | |
9741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9742 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9743 | no_cache=0 | |
9744 | # Check whether --enable-joystick or --disable-joystick was given. | |
9745 | if test "${enable_joystick+set}" = set; then | |
9746 | enableval="$enable_joystick" | |
9747 | ||
9748 | if test "$enableval" = yes; then | |
9749 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9750 | else | |
9751 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9752 | fi | |
9753 | ||
9754 | else | |
9755 | ||
9756 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9757 | if test "x$LINE" != x ; then | |
9758 | eval "DEFAULT_$LINE" | |
9759 | else | |
9760 | no_cache=1 | |
9761 | fi | |
9762 | ||
9763 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9764 | ||
9765 | fi; | |
9766 | ||
9767 | eval "$ac_cv_use_joystick" | |
9768 | if test "$no_cache" != 1; then | |
9769 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9770 | fi | |
9771 | ||
9772 | if test "$wxUSE_JOYSTICK" = yes; then | |
9773 | echo "$as_me:$LINENO: result: yes" >&5 | |
9774 | echo "${ECHO_T}yes" >&6 | |
9775 | else | |
9776 | echo "$as_me:$LINENO: result: no" >&5 | |
9777 | echo "${ECHO_T}no" >&6 | |
9778 | fi | |
9779 | ||
9780 | ||
9781 | enablestring= | |
9782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9783 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9784 | no_cache=0 | |
9785 | # Check whether --enable-metafile or --disable-metafile was given. | |
9786 | if test "${enable_metafile+set}" = set; then | |
9787 | enableval="$enable_metafile" | |
9788 | ||
9789 | if test "$enableval" = yes; then | |
9790 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9791 | else | |
9792 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9793 | fi | |
9794 | ||
9795 | else | |
9796 | ||
9797 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9798 | if test "x$LINE" != x ; then | |
9799 | eval "DEFAULT_$LINE" | |
9800 | else | |
9801 | no_cache=1 | |
9802 | fi | |
9803 | ||
9804 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9805 | ||
9806 | fi; | |
9807 | ||
9808 | eval "$ac_cv_use_metafile" | |
9809 | if test "$no_cache" != 1; then | |
9810 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9811 | fi | |
9812 | ||
9813 | if test "$wxUSE_METAFILE" = yes; then | |
9814 | echo "$as_me:$LINENO: result: yes" >&5 | |
9815 | echo "${ECHO_T}yes" >&6 | |
9816 | else | |
9817 | echo "$as_me:$LINENO: result: no" >&5 | |
9818 | echo "${ECHO_T}no" >&6 | |
9819 | fi | |
9820 | ||
9821 | ||
9822 | enablestring= | |
9823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9824 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9825 | no_cache=0 | |
9826 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9827 | if test "${enable_dragimage+set}" = set; then | |
9828 | enableval="$enable_dragimage" | |
9829 | ||
9830 | if test "$enableval" = yes; then | |
9831 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9832 | else | |
9833 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9834 | fi | |
9835 | ||
9836 | else | |
9837 | ||
9838 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9839 | if test "x$LINE" != x ; then | |
9840 | eval "DEFAULT_$LINE" | |
9841 | else | |
9842 | no_cache=1 | |
9843 | fi | |
9844 | ||
9845 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9846 | ||
9847 | fi; | |
9848 | ||
9849 | eval "$ac_cv_use_dragimage" | |
9850 | if test "$no_cache" != 1; then | |
9851 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9852 | fi | |
9853 | ||
9854 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9855 | echo "$as_me:$LINENO: result: yes" >&5 | |
9856 | echo "${ECHO_T}yes" >&6 | |
9857 | else | |
9858 | echo "$as_me:$LINENO: result: no" >&5 | |
9859 | echo "${ECHO_T}no" >&6 | |
9860 | fi | |
9861 | ||
9862 | ||
9863 | enablestring= | |
9864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9865 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9866 | no_cache=0 | |
9867 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9868 | if test "${enable_accessibility+set}" = set; then | |
9869 | enableval="$enable_accessibility" | |
9870 | ||
9871 | if test "$enableval" = yes; then | |
9872 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9873 | else | |
9874 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9875 | fi | |
9876 | ||
9877 | else | |
9878 | ||
9879 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9880 | if test "x$LINE" != x ; then | |
9881 | eval "DEFAULT_$LINE" | |
9882 | else | |
9883 | no_cache=1 | |
9884 | fi | |
9885 | ||
9886 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9887 | ||
9888 | fi; | |
9889 | ||
9890 | eval "$ac_cv_use_accessibility" | |
9891 | if test "$no_cache" != 1; then | |
9892 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9893 | fi | |
9894 | ||
9895 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9896 | echo "$as_me:$LINENO: result: yes" >&5 | |
9897 | echo "${ECHO_T}yes" >&6 | |
9898 | else | |
9899 | echo "$as_me:$LINENO: result: no" >&5 | |
9900 | echo "${ECHO_T}no" >&6 | |
9901 | fi | |
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | enablestring= | |
9907 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9908 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9909 | no_cache=0 | |
9910 | # Check whether --enable-palette or --disable-palette was given. | |
9911 | if test "${enable_palette+set}" = set; then | |
9912 | enableval="$enable_palette" | |
9913 | ||
9914 | if test "$enableval" = yes; then | |
9915 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9916 | else | |
9917 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9918 | fi | |
9919 | ||
9920 | else | |
9921 | ||
9922 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9923 | if test "x$LINE" != x ; then | |
9924 | eval "DEFAULT_$LINE" | |
9925 | else | |
9926 | no_cache=1 | |
9927 | fi | |
9928 | ||
9929 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9930 | ||
9931 | fi; | |
9932 | ||
9933 | eval "$ac_cv_use_palette" | |
9934 | if test "$no_cache" != 1; then | |
9935 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9936 | fi | |
9937 | ||
9938 | if test "$wxUSE_PALETTE" = yes; then | |
9939 | echo "$as_me:$LINENO: result: yes" >&5 | |
9940 | echo "${ECHO_T}yes" >&6 | |
9941 | else | |
9942 | echo "$as_me:$LINENO: result: no" >&5 | |
9943 | echo "${ECHO_T}no" >&6 | |
9944 | fi | |
9945 | ||
9946 | ||
9947 | enablestring= | |
9948 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9949 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9950 | no_cache=0 | |
9951 | # Check whether --enable-image or --disable-image was given. | |
9952 | if test "${enable_image+set}" = set; then | |
9953 | enableval="$enable_image" | |
9954 | ||
9955 | if test "$enableval" = yes; then | |
9956 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9957 | else | |
9958 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9959 | fi | |
9960 | ||
9961 | else | |
9962 | ||
9963 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9964 | if test "x$LINE" != x ; then | |
9965 | eval "DEFAULT_$LINE" | |
9966 | else | |
9967 | no_cache=1 | |
9968 | fi | |
9969 | ||
9970 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9971 | ||
9972 | fi; | |
9973 | ||
9974 | eval "$ac_cv_use_image" | |
9975 | if test "$no_cache" != 1; then | |
9976 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9977 | fi | |
9978 | ||
9979 | if test "$wxUSE_IMAGE" = yes; then | |
9980 | echo "$as_me:$LINENO: result: yes" >&5 | |
9981 | echo "${ECHO_T}yes" >&6 | |
9982 | else | |
9983 | echo "$as_me:$LINENO: result: no" >&5 | |
9984 | echo "${ECHO_T}no" >&6 | |
9985 | fi | |
9986 | ||
9987 | ||
9988 | enablestring= | |
9989 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9990 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9991 | no_cache=0 | |
9992 | # Check whether --enable-gif or --disable-gif was given. | |
9993 | if test "${enable_gif+set}" = set; then | |
9994 | enableval="$enable_gif" | |
9995 | ||
9996 | if test "$enableval" = yes; then | |
9997 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9998 | else | |
9999 | ac_cv_use_gif='wxUSE_GIF=no' | |
10000 | fi | |
10001 | ||
10002 | else | |
10003 | ||
10004 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10005 | if test "x$LINE" != x ; then | |
10006 | eval "DEFAULT_$LINE" | |
10007 | else | |
10008 | no_cache=1 | |
10009 | fi | |
10010 | ||
10011 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10012 | ||
10013 | fi; | |
10014 | ||
10015 | eval "$ac_cv_use_gif" | |
10016 | if test "$no_cache" != 1; then | |
10017 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10018 | fi | |
10019 | ||
10020 | if test "$wxUSE_GIF" = yes; then | |
10021 | echo "$as_me:$LINENO: result: yes" >&5 | |
10022 | echo "${ECHO_T}yes" >&6 | |
10023 | else | |
10024 | echo "$as_me:$LINENO: result: no" >&5 | |
10025 | echo "${ECHO_T}no" >&6 | |
10026 | fi | |
10027 | ||
10028 | ||
10029 | enablestring= | |
10030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10031 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10032 | no_cache=0 | |
10033 | # Check whether --enable-pcx or --disable-pcx was given. | |
10034 | if test "${enable_pcx+set}" = set; then | |
10035 | enableval="$enable_pcx" | |
10036 | ||
10037 | if test "$enableval" = yes; then | |
10038 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10039 | else | |
10040 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10041 | fi | |
10042 | ||
10043 | else | |
10044 | ||
10045 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10046 | if test "x$LINE" != x ; then | |
10047 | eval "DEFAULT_$LINE" | |
10048 | else | |
10049 | no_cache=1 | |
10050 | fi | |
10051 | ||
10052 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10053 | ||
10054 | fi; | |
10055 | ||
10056 | eval "$ac_cv_use_pcx" | |
10057 | if test "$no_cache" != 1; then | |
10058 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10059 | fi | |
10060 | ||
10061 | if test "$wxUSE_PCX" = yes; then | |
10062 | echo "$as_me:$LINENO: result: yes" >&5 | |
10063 | echo "${ECHO_T}yes" >&6 | |
10064 | else | |
10065 | echo "$as_me:$LINENO: result: no" >&5 | |
10066 | echo "${ECHO_T}no" >&6 | |
10067 | fi | |
10068 | ||
10069 | ||
10070 | enablestring= | |
10071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10072 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10073 | no_cache=0 | |
10074 | # Check whether --enable-iff or --disable-iff was given. | |
10075 | if test "${enable_iff+set}" = set; then | |
10076 | enableval="$enable_iff" | |
10077 | ||
10078 | if test "$enableval" = yes; then | |
10079 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10080 | else | |
10081 | ac_cv_use_iff='wxUSE_IFF=no' | |
10082 | fi | |
10083 | ||
10084 | else | |
10085 | ||
10086 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10087 | if test "x$LINE" != x ; then | |
10088 | eval "DEFAULT_$LINE" | |
10089 | else | |
10090 | no_cache=1 | |
10091 | fi | |
10092 | ||
10093 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10094 | ||
10095 | fi; | |
10096 | ||
10097 | eval "$ac_cv_use_iff" | |
10098 | if test "$no_cache" != 1; then | |
10099 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10100 | fi | |
10101 | ||
10102 | if test "$wxUSE_IFF" = yes; then | |
10103 | echo "$as_me:$LINENO: result: yes" >&5 | |
10104 | echo "${ECHO_T}yes" >&6 | |
10105 | else | |
10106 | echo "$as_me:$LINENO: result: no" >&5 | |
10107 | echo "${ECHO_T}no" >&6 | |
10108 | fi | |
10109 | ||
10110 | ||
10111 | enablestring= | |
10112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10113 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10114 | no_cache=0 | |
10115 | # Check whether --enable-pnm or --disable-pnm was given. | |
10116 | if test "${enable_pnm+set}" = set; then | |
10117 | enableval="$enable_pnm" | |
10118 | ||
10119 | if test "$enableval" = yes; then | |
10120 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10121 | else | |
10122 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10123 | fi | |
10124 | ||
10125 | else | |
10126 | ||
10127 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10128 | if test "x$LINE" != x ; then | |
10129 | eval "DEFAULT_$LINE" | |
10130 | else | |
10131 | no_cache=1 | |
10132 | fi | |
10133 | ||
10134 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10135 | ||
10136 | fi; | |
10137 | ||
10138 | eval "$ac_cv_use_pnm" | |
10139 | if test "$no_cache" != 1; then | |
10140 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10141 | fi | |
10142 | ||
10143 | if test "$wxUSE_PNM" = yes; then | |
10144 | echo "$as_me:$LINENO: result: yes" >&5 | |
10145 | echo "${ECHO_T}yes" >&6 | |
10146 | else | |
10147 | echo "$as_me:$LINENO: result: no" >&5 | |
10148 | echo "${ECHO_T}no" >&6 | |
10149 | fi | |
10150 | ||
10151 | ||
10152 | enablestring= | |
10153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10154 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10155 | no_cache=0 | |
10156 | # Check whether --enable-xpm or --disable-xpm was given. | |
10157 | if test "${enable_xpm+set}" = set; then | |
10158 | enableval="$enable_xpm" | |
10159 | ||
10160 | if test "$enableval" = yes; then | |
10161 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10162 | else | |
10163 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10164 | fi | |
10165 | ||
10166 | else | |
10167 | ||
10168 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10169 | if test "x$LINE" != x ; then | |
10170 | eval "DEFAULT_$LINE" | |
10171 | else | |
10172 | no_cache=1 | |
10173 | fi | |
10174 | ||
10175 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10176 | ||
10177 | fi; | |
10178 | ||
10179 | eval "$ac_cv_use_xpm" | |
10180 | if test "$no_cache" != 1; then | |
10181 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10182 | fi | |
10183 | ||
10184 | if test "$wxUSE_XPM" = yes; then | |
10185 | echo "$as_me:$LINENO: result: yes" >&5 | |
10186 | echo "${ECHO_T}yes" >&6 | |
10187 | else | |
10188 | echo "$as_me:$LINENO: result: no" >&5 | |
10189 | echo "${ECHO_T}no" >&6 | |
10190 | fi | |
10191 | ||
10192 | ||
10193 | enablestring= | |
10194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10195 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10196 | no_cache=0 | |
10197 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10198 | if test "${enable_ico_cur+set}" = set; then | |
10199 | enableval="$enable_ico_cur" | |
10200 | ||
10201 | if test "$enableval" = yes; then | |
10202 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10203 | else | |
10204 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10205 | fi | |
10206 | ||
10207 | else | |
10208 | ||
10209 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10210 | if test "x$LINE" != x ; then | |
10211 | eval "DEFAULT_$LINE" | |
10212 | else | |
10213 | no_cache=1 | |
10214 | fi | |
10215 | ||
10216 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10217 | ||
10218 | fi; | |
10219 | ||
10220 | eval "$ac_cv_use_ico_cur" | |
10221 | if test "$no_cache" != 1; then | |
10222 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10223 | fi | |
10224 | ||
10225 | if test "$wxUSE_ICO_CUR" = yes; then | |
10226 | echo "$as_me:$LINENO: result: yes" >&5 | |
10227 | echo "${ECHO_T}yes" >&6 | |
10228 | else | |
10229 | echo "$as_me:$LINENO: result: no" >&5 | |
10230 | echo "${ECHO_T}no" >&6 | |
10231 | fi | |
10232 | ||
10233 | ||
10234 | fi | |
10235 | ||
10236 | ||
10237 | ||
ceec2216 RL |
10238 | # Check whether --with-flavour or --without-flavour was given. |
10239 | if test "${with_flavour+set}" = set; then | |
10240 | withval="$with_flavour" | |
10241 | WX_FLAVOUR="$withval" | |
10242 | fi; | |
10243 | ||
10244 | ||
10245 | ||
a848cd7e SC |
10246 | enablestring= |
10247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10248 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10249 | no_cache=0 | |
10250 | # Check whether --enable-official_build or --disable-official_build was given. | |
10251 | if test "${enable_official_build+set}" = set; then | |
10252 | enableval="$enable_official_build" | |
10253 | ||
10254 | if test "$enableval" = yes; then | |
10255 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10256 | else | |
10257 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10258 | fi | |
10259 | ||
10260 | else | |
10261 | ||
10262 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10263 | if test "x$LINE" != x ; then | |
10264 | eval "DEFAULT_$LINE" | |
10265 | else | |
10266 | no_cache=1 | |
10267 | fi | |
10268 | ||
10269 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10270 | ||
10271 | fi; | |
10272 | ||
10273 | eval "$ac_cv_use_official_build" | |
10274 | if test "$no_cache" != 1; then | |
10275 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10276 | fi | |
10277 | ||
10278 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10279 | echo "$as_me:$LINENO: result: yes" >&5 | |
10280 | echo "${ECHO_T}yes" >&6 | |
10281 | else | |
10282 | echo "$as_me:$LINENO: result: no" >&5 | |
10283 | echo "${ECHO_T}no" >&6 | |
10284 | fi | |
10285 | ||
10286 | # Check whether --enable-vendor or --disable-vendor was given. | |
10287 | if test "${enable_vendor+set}" = set; then | |
10288 | enableval="$enable_vendor" | |
10289 | VENDOR="$enableval" | |
10290 | fi; | |
10291 | if test "x$VENDOR" = "x"; then | |
10292 | VENDOR="custom" | |
10293 | fi | |
10294 | ||
a848cd7e SC |
10295 | |
10296 | ||
10297 | ||
10298 | echo "saving argument cache $wx_arg_cache_file" | |
10299 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10300 | ||
10301 | ||
10302 | ||
10303 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10304 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10305 | ||
10306 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10307 | if test "$wxUSE_WINE" = "yes"; then | |
10308 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10309 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10310 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10311 | wxUSE_SHARED=no | |
10312 | fi | |
10313 | ||
10314 | if test "$wxUSE_GUI" = "yes"; then | |
10315 | ||
10316 | if test "$USE_BEOS" = 1; then | |
10317 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10318 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10319 | { (exit 1); exit 1; }; } | |
10320 | fi | |
10321 | ||
10322 | if test "$TOOLKIT_GIVEN" = 1; then | |
10323 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10324 | var=wxUSE_$toolkit | |
10325 | eval "value=\$${var}" | |
10326 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10327 | done | |
10328 | else | |
10329 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10330 | if test "$has_toolkit_in_cache" != 1; then | |
10331 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10332 | else | |
10333 | var=DEFAULT_wxUSE_$toolkit | |
10334 | fi | |
10335 | eval "wxUSE_$toolkit=\$${var}" | |
10336 | done | |
10337 | fi | |
10338 | ||
10339 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10340 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10341 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10342 | ||
10343 | case "${host}" in | |
10344 | *-pc-os2_emx | *-pc-os2-emx ) | |
10345 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10346 | esac | |
10347 | ||
10348 | case "$NUM_TOOLKITS" in | |
10349 | 1) | |
10350 | ;; | |
10351 | 0) | |
10352 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10353 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10354 | { (exit 1); exit 1; }; } | |
10355 | ;; | |
10356 | *) | |
10357 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10358 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10359 | { (exit 1); exit 1; }; } | |
10360 | esac | |
10361 | ||
10362 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10363 | var=wxUSE_$toolkit | |
10364 | eval "value=\$${var}" | |
10365 | if test "x$value" != x; then | |
10366 | cache_var=CACHE_$toolkit | |
10367 | eval "cache=\$${cache_var}" | |
10368 | if test "$cache" = 1; then | |
10369 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10370 | fi | |
10371 | if test "$value" = 1; then | |
10372 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10373 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10374 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10375 | fi | |
10376 | fi | |
10377 | done | |
10378 | else | |
10379 | if test "x$host_alias" != "x"; then | |
10380 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10381 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10382 | else | |
10383 | echo "$as_me:$LINENO: result: base only" >&5 | |
10384 | echo "${ECHO_T}base only" >&6 | |
10385 | fi | |
10386 | fi | |
10387 | ||
10388 | wants_win32=0 | |
10389 | doesnt_want_win32=0 | |
10390 | case "${host}" in | |
10391 | *-*-cygwin*) | |
10392 | if test "$wxUSE_MSW" = 1 ; then | |
10393 | wants_win32=1 | |
10394 | else | |
10395 | doesnt_want_win32=1 | |
10396 | fi | |
10397 | ;; | |
10398 | *-*-mingw*) | |
10399 | wants_win32=1 | |
10400 | ;; | |
10401 | esac | |
10402 | ||
10403 | if test "$wxUSE_WINE" = "yes"; then | |
10404 | wants_win32=1 | |
10405 | CC=winegcc | |
10406 | CXX=wineg++ | |
10407 | RESCOMP=wrc | |
10408 | LDFLAGS_GUI="-mwindows" | |
10409 | fi | |
10410 | ||
10411 | if test "$wants_win32" = 1 ; then | |
10412 | USE_UNIX=0 | |
10413 | USE_WIN32=1 | |
10414 | cat >>confdefs.h <<\_ACEOF | |
10415 | #define __WIN32__ 1 | |
10416 | _ACEOF | |
10417 | ||
10418 | cat >>confdefs.h <<\_ACEOF | |
10419 | #define __WIN95__ 1 | |
10420 | _ACEOF | |
10421 | ||
10422 | cat >>confdefs.h <<\_ACEOF | |
10423 | #define __WINDOWS__ 1 | |
10424 | _ACEOF | |
10425 | ||
10426 | cat >>confdefs.h <<\_ACEOF | |
10427 | #define __GNUWIN32__ 1 | |
10428 | _ACEOF | |
10429 | ||
10430 | cat >>confdefs.h <<\_ACEOF | |
10431 | #define STRICT 1 | |
10432 | _ACEOF | |
10433 | ||
10434 | cat >>confdefs.h <<\_ACEOF | |
10435 | #define WINVER 0x0400 | |
10436 | _ACEOF | |
10437 | ||
10438 | fi | |
10439 | if test "$doesnt_want_win32" = 1 ; then | |
10440 | USE_UNIX=1 | |
10441 | USE_WIN32=0 | |
10442 | fi | |
10443 | ||
10444 | if test "$USE_UNIX" = 1 ; then | |
10445 | wxUSE_UNIX=yes | |
10446 | cat >>confdefs.h <<\_ACEOF | |
10447 | #define __UNIX__ 1 | |
10448 | _ACEOF | |
10449 | ||
10450 | fi | |
10451 | ||
10452 | ||
10453 | cat >confcache <<\_ACEOF | |
10454 | # This file is a shell script that caches the results of configure | |
10455 | # tests run on this system so they can be shared between configure | |
10456 | # scripts and configure runs, see configure's option --config-cache. | |
10457 | # It is not useful on other systems. If it contains results you don't | |
10458 | # want to keep, you may remove or edit it. | |
10459 | # | |
10460 | # config.status only pays attention to the cache file if you give it | |
10461 | # the --recheck option to rerun configure. | |
10462 | # | |
10463 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10464 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10465 | # following values. | |
10466 | ||
10467 | _ACEOF | |
10468 | ||
10469 | # The following way of writing the cache mishandles newlines in values, | |
10470 | # but we know of no workaround that is simple, portable, and efficient. | |
10471 | # So, don't put newlines in cache variables' values. | |
10472 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10473 | # and sets the high bit in the cache file unless we assign to the vars. | |
10474 | { | |
10475 | (set) 2>&1 | | |
10476 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10477 | *ac_space=\ *) | |
10478 | # `set' does not quote correctly, so add quotes (double-quote | |
10479 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10480 | sed -n \ | |
ac1cb8d3 VS |
10481 | "s/'/'\\\\''/g; |
10482 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10483 | ;; |
10484 | *) | |
10485 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10486 | sed -n \ | |
ac1cb8d3 | 10487 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10488 | ;; |
10489 | esac; | |
10490 | } | | |
10491 | sed ' | |
10492 | t clear | |
10493 | : clear | |
10494 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10495 | t end | |
10496 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10497 | : end' >>confcache | |
10498 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10499 | if test -w $cache_file; then | |
10500 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10501 | cat confcache >$cache_file | |
10502 | else | |
10503 | echo "not updating unwritable cache $cache_file" | |
10504 | fi | |
10505 | fi | |
10506 | rm -f confcache | |
10507 | ||
10508 | if test "$build" != "$host" ; then | |
1e9e8aba | 10509 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10510 | CC=$host_alias-gcc |
10511 | CXX=$host_alias-c++ | |
10512 | AR=$host_alias-ar | |
10513 | RANLIB=$host_alias-ranlib | |
10514 | DLLTOOL=$host_alias-dlltool | |
10515 | RESCOMP=$host_alias-windres | |
a848cd7e | 10516 | STRIP=$host_alias-strip |
1e9e8aba DE |
10517 | elif test "x$CC" '!=' "x"; then |
10518 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10519 | else |
10520 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10521 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10522 | { (exit 1); exit 1; }; } | |
10523 | fi | |
10524 | fi | |
10525 | ||
10526 | CFLAGS=${CFLAGS:=} | |
10527 | ac_ext=c | |
10528 | ac_cpp='$CPP $CPPFLAGS' | |
10529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10532 | if test -n "$ac_tool_prefix"; then | |
10533 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10534 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10537 | if test "${ac_cv_prog_CC+set}" = set; then | |
10538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10539 | else | |
10540 | if test -n "$CC"; then | |
10541 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10542 | else | |
10543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10544 | for as_dir in $PATH | |
10545 | do | |
10546 | IFS=$as_save_IFS | |
10547 | test -z "$as_dir" && as_dir=. | |
10548 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10550 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10552 | break 2 | |
10553 | fi | |
10554 | done | |
10555 | done | |
10556 | ||
10557 | fi | |
10558 | fi | |
10559 | CC=$ac_cv_prog_CC | |
10560 | if test -n "$CC"; then | |
10561 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10562 | echo "${ECHO_T}$CC" >&6 | |
10563 | else | |
10564 | echo "$as_me:$LINENO: result: no" >&5 | |
10565 | echo "${ECHO_T}no" >&6 | |
10566 | fi | |
10567 | ||
10568 | fi | |
10569 | if test -z "$ac_cv_prog_CC"; then | |
10570 | ac_ct_CC=$CC | |
10571 | # Extract the first word of "gcc", so it can be a program name with args. | |
10572 | set dummy gcc; ac_word=$2 | |
10573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10575 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10577 | else | |
10578 | if test -n "$ac_ct_CC"; then | |
10579 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10580 | else | |
10581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10582 | for as_dir in $PATH | |
10583 | do | |
10584 | IFS=$as_save_IFS | |
10585 | test -z "$as_dir" && as_dir=. | |
10586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10588 | ac_cv_prog_ac_ct_CC="gcc" | |
10589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10590 | break 2 | |
10591 | fi | |
10592 | done | |
10593 | done | |
10594 | ||
10595 | fi | |
10596 | fi | |
10597 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10598 | if test -n "$ac_ct_CC"; then | |
10599 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10600 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10601 | else | |
10602 | echo "$as_me:$LINENO: result: no" >&5 | |
10603 | echo "${ECHO_T}no" >&6 | |
10604 | fi | |
10605 | ||
10606 | CC=$ac_ct_CC | |
10607 | else | |
10608 | CC="$ac_cv_prog_CC" | |
10609 | fi | |
10610 | ||
10611 | if test -z "$CC"; then | |
10612 | if test -n "$ac_tool_prefix"; then | |
10613 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10614 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10617 | if test "${ac_cv_prog_CC+set}" = set; then | |
10618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10619 | else | |
10620 | if test -n "$CC"; then | |
10621 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10622 | else | |
10623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10624 | for as_dir in $PATH | |
10625 | do | |
10626 | IFS=$as_save_IFS | |
10627 | test -z "$as_dir" && as_dir=. | |
10628 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10629 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10630 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10631 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10632 | break 2 | |
10633 | fi | |
10634 | done | |
10635 | done | |
10636 | ||
10637 | fi | |
10638 | fi | |
10639 | CC=$ac_cv_prog_CC | |
10640 | if test -n "$CC"; then | |
10641 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10642 | echo "${ECHO_T}$CC" >&6 | |
10643 | else | |
10644 | echo "$as_me:$LINENO: result: no" >&5 | |
10645 | echo "${ECHO_T}no" >&6 | |
10646 | fi | |
10647 | ||
10648 | fi | |
10649 | if test -z "$ac_cv_prog_CC"; then | |
10650 | ac_ct_CC=$CC | |
10651 | # Extract the first word of "cc", so it can be a program name with args. | |
10652 | set dummy cc; ac_word=$2 | |
10653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10655 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10657 | else | |
10658 | if test -n "$ac_ct_CC"; then | |
10659 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10660 | else | |
10661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10662 | for as_dir in $PATH | |
10663 | do | |
10664 | IFS=$as_save_IFS | |
10665 | test -z "$as_dir" && as_dir=. | |
10666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10668 | ac_cv_prog_ac_ct_CC="cc" | |
10669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10670 | break 2 | |
10671 | fi | |
10672 | done | |
10673 | done | |
10674 | ||
10675 | fi | |
10676 | fi | |
10677 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10678 | if test -n "$ac_ct_CC"; then | |
10679 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10680 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10681 | else | |
10682 | echo "$as_me:$LINENO: result: no" >&5 | |
10683 | echo "${ECHO_T}no" >&6 | |
10684 | fi | |
10685 | ||
10686 | CC=$ac_ct_CC | |
10687 | else | |
10688 | CC="$ac_cv_prog_CC" | |
10689 | fi | |
10690 | ||
10691 | fi | |
10692 | if test -z "$CC"; then | |
10693 | # Extract the first word of "cc", so it can be a program name with args. | |
10694 | set dummy cc; ac_word=$2 | |
10695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10697 | if test "${ac_cv_prog_CC+set}" = set; then | |
10698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10699 | else | |
10700 | if test -n "$CC"; then | |
10701 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10702 | else | |
10703 | ac_prog_rejected=no | |
10704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10705 | for as_dir in $PATH | |
10706 | do | |
10707 | IFS=$as_save_IFS | |
10708 | test -z "$as_dir" && as_dir=. | |
10709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10710 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10711 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10712 | ac_prog_rejected=yes | |
10713 | continue | |
10714 | fi | |
10715 | ac_cv_prog_CC="cc" | |
10716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10717 | break 2 | |
10718 | fi | |
10719 | done | |
10720 | done | |
10721 | ||
10722 | if test $ac_prog_rejected = yes; then | |
10723 | # We found a bogon in the path, so make sure we never use it. | |
10724 | set dummy $ac_cv_prog_CC | |
10725 | shift | |
10726 | if test $# != 0; then | |
10727 | # We chose a different compiler from the bogus one. | |
10728 | # However, it has the same basename, so the bogon will be chosen | |
10729 | # first if we set CC to just the basename; use the full file name. | |
10730 | shift | |
10731 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10732 | fi | |
10733 | fi | |
10734 | fi | |
10735 | fi | |
10736 | CC=$ac_cv_prog_CC | |
10737 | if test -n "$CC"; then | |
10738 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10739 | echo "${ECHO_T}$CC" >&6 | |
10740 | else | |
10741 | echo "$as_me:$LINENO: result: no" >&5 | |
10742 | echo "${ECHO_T}no" >&6 | |
10743 | fi | |
10744 | ||
10745 | fi | |
10746 | if test -z "$CC"; then | |
10747 | if test -n "$ac_tool_prefix"; then | |
10748 | for ac_prog in cl | |
10749 | do | |
10750 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10751 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10754 | if test "${ac_cv_prog_CC+set}" = set; then | |
10755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10756 | else | |
10757 | if test -n "$CC"; then | |
10758 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10759 | else | |
10760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10761 | for as_dir in $PATH | |
10762 | do | |
10763 | IFS=$as_save_IFS | |
10764 | test -z "$as_dir" && as_dir=. | |
10765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10767 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10769 | break 2 | |
10770 | fi | |
10771 | done | |
10772 | done | |
10773 | ||
10774 | fi | |
10775 | fi | |
10776 | CC=$ac_cv_prog_CC | |
10777 | if test -n "$CC"; then | |
10778 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10779 | echo "${ECHO_T}$CC" >&6 | |
10780 | else | |
10781 | echo "$as_me:$LINENO: result: no" >&5 | |
10782 | echo "${ECHO_T}no" >&6 | |
10783 | fi | |
10784 | ||
10785 | test -n "$CC" && break | |
10786 | done | |
10787 | fi | |
10788 | if test -z "$CC"; then | |
10789 | ac_ct_CC=$CC | |
10790 | for ac_prog in cl | |
10791 | do | |
10792 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10793 | set dummy $ac_prog; ac_word=$2 | |
10794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10796 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10798 | else | |
10799 | if test -n "$ac_ct_CC"; then | |
10800 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10801 | else | |
10802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10803 | for as_dir in $PATH | |
10804 | do | |
10805 | IFS=$as_save_IFS | |
10806 | test -z "$as_dir" && as_dir=. | |
10807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10808 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10809 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10811 | break 2 | |
10812 | fi | |
10813 | done | |
10814 | done | |
10815 | ||
10816 | fi | |
10817 | fi | |
10818 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10819 | if test -n "$ac_ct_CC"; then | |
10820 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10821 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10822 | else | |
10823 | echo "$as_me:$LINENO: result: no" >&5 | |
10824 | echo "${ECHO_T}no" >&6 | |
10825 | fi | |
10826 | ||
10827 | test -n "$ac_ct_CC" && break | |
10828 | done | |
10829 | ||
10830 | CC=$ac_ct_CC | |
10831 | fi | |
10832 | ||
10833 | fi | |
10834 | ||
10835 | ||
10836 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10837 | See \`config.log' for more details." >&5 | |
10838 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10839 | See \`config.log' for more details." >&2;} | |
10840 | { (exit 1); exit 1; }; } | |
10841 | ||
10842 | # Provide some information about the compiler. | |
10843 | echo "$as_me:$LINENO:" \ | |
10844 | "checking for C compiler version" >&5 | |
10845 | ac_compiler=`set X $ac_compile; echo $2` | |
10846 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10847 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10848 | ac_status=$? | |
10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10850 | (exit $ac_status); } | |
10851 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10852 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10853 | ac_status=$? | |
10854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10855 | (exit $ac_status); } | |
10856 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10857 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10858 | ac_status=$? | |
10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10860 | (exit $ac_status); } | |
10861 | ||
10862 | cat >conftest.$ac_ext <<_ACEOF | |
10863 | /* confdefs.h. */ | |
10864 | _ACEOF | |
10865 | cat confdefs.h >>conftest.$ac_ext | |
10866 | cat >>conftest.$ac_ext <<_ACEOF | |
10867 | /* end confdefs.h. */ | |
10868 | ||
10869 | int | |
10870 | main () | |
10871 | { | |
10872 | ||
10873 | ; | |
10874 | return 0; | |
10875 | } | |
10876 | _ACEOF | |
10877 | ac_clean_files_save=$ac_clean_files | |
10878 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10879 | # Try to create an executable without -o first, disregard a.out. | |
10880 | # It will help us diagnose broken compilers, and finding out an intuition | |
10881 | # of exeext. | |
ac1cb8d3 VS |
10882 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10883 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10884 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10885 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10886 | (eval $ac_link_default) 2>&5 | |
10887 | ac_status=$? | |
10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10889 | (exit $ac_status); }; then | |
10890 | # Find the output, starting from the most likely. This scheme is | |
10891 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10892 | # resort. | |
10893 | ||
10894 | # Be careful to initialize this variable, since it used to be cached. | |
10895 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10896 | ac_cv_exeext= | |
10897 | # b.out is created by i960 compilers. | |
10898 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10899 | do | |
10900 | test -f "$ac_file" || continue | |
10901 | case $ac_file in | |
10902 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10903 | ;; |
a848cd7e | 10904 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10905 | # This is the source file. |
10906 | ;; | |
a848cd7e | 10907 | [ab].out ) |
ac1cb8d3 VS |
10908 | # We found the default executable, but exeext='' is most |
10909 | # certainly right. | |
10910 | break;; | |
a848cd7e | 10911 | *.* ) |
ac1cb8d3 VS |
10912 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10913 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10914 | # but it would be cool to find out if it's true. Does anybody | |
10915 | # maintain Libtool? --akim. | |
10916 | export ac_cv_exeext | |
10917 | break;; | |
a848cd7e | 10918 | * ) |
ac1cb8d3 | 10919 | break;; |
a848cd7e SC |
10920 | esac |
10921 | done | |
10922 | else | |
10923 | echo "$as_me: failed program was:" >&5 | |
10924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10925 | ||
10926 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10927 | See \`config.log' for more details." >&5 | |
10928 | echo "$as_me: error: C compiler cannot create executables | |
10929 | See \`config.log' for more details." >&2;} | |
10930 | { (exit 77); exit 77; }; } | |
10931 | fi | |
10932 | ||
10933 | ac_exeext=$ac_cv_exeext | |
10934 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10935 | echo "${ECHO_T}$ac_file" >&6 | |
10936 | ||
10937 | # Check the compiler produces executables we can run. If not, either | |
10938 | # the compiler is broken, or we cross compile. | |
10939 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10940 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10941 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10942 | # If not cross compiling, check that we can run a simple program. | |
10943 | if test "$cross_compiling" != yes; then | |
10944 | if { ac_try='./$ac_file' | |
10945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10946 | (eval $ac_try) 2>&5 | |
10947 | ac_status=$? | |
10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10949 | (exit $ac_status); }; }; then | |
10950 | cross_compiling=no | |
10951 | else | |
10952 | if test "$cross_compiling" = maybe; then | |
10953 | cross_compiling=yes | |
10954 | else | |
10955 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10956 | If you meant to cross compile, use \`--host'. | |
10957 | See \`config.log' for more details." >&5 | |
10958 | echo "$as_me: error: cannot run C compiled programs. | |
10959 | If you meant to cross compile, use \`--host'. | |
10960 | See \`config.log' for more details." >&2;} | |
10961 | { (exit 1); exit 1; }; } | |
10962 | fi | |
10963 | fi | |
10964 | fi | |
10965 | echo "$as_me:$LINENO: result: yes" >&5 | |
10966 | echo "${ECHO_T}yes" >&6 | |
10967 | ||
10968 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10969 | ac_clean_files=$ac_clean_files_save | |
10970 | # Check the compiler produces executables we can run. If not, either | |
10971 | # the compiler is broken, or we cross compile. | |
10972 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10973 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10974 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10975 | echo "${ECHO_T}$cross_compiling" >&6 | |
10976 | ||
10977 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10978 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10980 | (eval $ac_link) 2>&5 | |
10981 | ac_status=$? | |
10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10983 | (exit $ac_status); }; then | |
10984 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10985 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10986 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10987 | # `rm'. | |
10988 | for ac_file in conftest.exe conftest conftest.*; do | |
10989 | test -f "$ac_file" || continue | |
10990 | case $ac_file in | |
10991 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10992 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10993 | export ac_cv_exeext |
10994 | break;; | |
a848cd7e SC |
10995 | * ) break;; |
10996 | esac | |
10997 | done | |
10998 | else | |
10999 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11000 | See \`config.log' for more details." >&5 | |
11001 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11002 | See \`config.log' for more details." >&2;} | |
11003 | { (exit 1); exit 1; }; } | |
11004 | fi | |
11005 | ||
11006 | rm -f conftest$ac_cv_exeext | |
11007 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11008 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11009 | ||
11010 | rm -f conftest.$ac_ext | |
11011 | EXEEXT=$ac_cv_exeext | |
11012 | ac_exeext=$EXEEXT | |
11013 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11014 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11015 | if test "${ac_cv_objext+set}" = set; then | |
11016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11017 | else | |
11018 | cat >conftest.$ac_ext <<_ACEOF | |
11019 | /* confdefs.h. */ | |
11020 | _ACEOF | |
11021 | cat confdefs.h >>conftest.$ac_ext | |
11022 | cat >>conftest.$ac_ext <<_ACEOF | |
11023 | /* end confdefs.h. */ | |
11024 | ||
11025 | int | |
11026 | main () | |
11027 | { | |
11028 | ||
11029 | ; | |
11030 | return 0; | |
11031 | } | |
11032 | _ACEOF | |
11033 | rm -f conftest.o conftest.obj | |
11034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11035 | (eval $ac_compile) 2>&5 | |
11036 | ac_status=$? | |
11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11038 | (exit $ac_status); }; then | |
11039 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11040 | case $ac_file in | |
11041 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11042 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11043 | break;; | |
11044 | esac | |
11045 | done | |
11046 | else | |
11047 | echo "$as_me: failed program was:" >&5 | |
11048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11049 | ||
11050 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11051 | See \`config.log' for more details." >&5 | |
11052 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11053 | See \`config.log' for more details." >&2;} | |
11054 | { (exit 1); exit 1; }; } | |
11055 | fi | |
11056 | ||
11057 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11058 | fi | |
11059 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11060 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11061 | OBJEXT=$ac_cv_objext | |
11062 | ac_objext=$OBJEXT | |
11063 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11064 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11065 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11067 | else | |
11068 | cat >conftest.$ac_ext <<_ACEOF | |
11069 | /* confdefs.h. */ | |
11070 | _ACEOF | |
11071 | cat confdefs.h >>conftest.$ac_ext | |
11072 | cat >>conftest.$ac_ext <<_ACEOF | |
11073 | /* end confdefs.h. */ | |
11074 | ||
11075 | int | |
11076 | main () | |
11077 | { | |
11078 | #ifndef __GNUC__ | |
11079 | choke me | |
11080 | #endif | |
11081 | ||
11082 | ; | |
11083 | return 0; | |
11084 | } | |
11085 | _ACEOF | |
11086 | rm -f conftest.$ac_objext | |
11087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11088 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11089 | ac_status=$? |
ac1cb8d3 VS |
11090 | grep -v '^ *+' conftest.er1 >conftest.err |
11091 | rm -f conftest.er1 | |
11092 | cat conftest.err >&5 | |
a848cd7e SC |
11093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11094 | (exit $ac_status); } && | |
89be85c2 VS |
11095 | { ac_try='test -z "$ac_c_werror_flag" |
11096 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11098 | (eval $ac_try) 2>&5 | |
11099 | ac_status=$? | |
11100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11101 | (exit $ac_status); }; } && | |
11102 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11104 | (eval $ac_try) 2>&5 | |
11105 | ac_status=$? | |
11106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11107 | (exit $ac_status); }; }; then | |
11108 | ac_compiler_gnu=yes | |
11109 | else | |
11110 | echo "$as_me: failed program was:" >&5 | |
11111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11112 | ||
11113 | ac_compiler_gnu=no | |
11114 | fi | |
ac1cb8d3 | 11115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11116 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11117 | ||
11118 | fi | |
11119 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11120 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11121 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11122 | ac_test_CFLAGS=${CFLAGS+set} | |
11123 | ac_save_CFLAGS=$CFLAGS | |
11124 | CFLAGS="-g" | |
11125 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11126 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11127 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11129 | else | |
11130 | cat >conftest.$ac_ext <<_ACEOF | |
11131 | /* confdefs.h. */ | |
11132 | _ACEOF | |
11133 | cat confdefs.h >>conftest.$ac_ext | |
11134 | cat >>conftest.$ac_ext <<_ACEOF | |
11135 | /* end confdefs.h. */ | |
11136 | ||
11137 | int | |
11138 | main () | |
11139 | { | |
11140 | ||
11141 | ; | |
11142 | return 0; | |
11143 | } | |
11144 | _ACEOF | |
11145 | rm -f conftest.$ac_objext | |
11146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11147 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11148 | ac_status=$? |
ac1cb8d3 VS |
11149 | grep -v '^ *+' conftest.er1 >conftest.err |
11150 | rm -f conftest.er1 | |
11151 | cat conftest.err >&5 | |
a848cd7e SC |
11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11153 | (exit $ac_status); } && | |
89be85c2 VS |
11154 | { ac_try='test -z "$ac_c_werror_flag" |
11155 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11157 | (eval $ac_try) 2>&5 | |
11158 | ac_status=$? | |
11159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11160 | (exit $ac_status); }; } && | |
11161 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11163 | (eval $ac_try) 2>&5 | |
11164 | ac_status=$? | |
11165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11166 | (exit $ac_status); }; }; then | |
11167 | ac_cv_prog_cc_g=yes | |
11168 | else | |
11169 | echo "$as_me: failed program was:" >&5 | |
11170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11171 | ||
11172 | ac_cv_prog_cc_g=no | |
11173 | fi | |
ac1cb8d3 | 11174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11175 | fi |
11176 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11177 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11178 | if test "$ac_test_CFLAGS" = set; then | |
11179 | CFLAGS=$ac_save_CFLAGS | |
11180 | elif test $ac_cv_prog_cc_g = yes; then | |
11181 | if test "$GCC" = yes; then | |
11182 | CFLAGS="-g -O2" | |
11183 | else | |
11184 | CFLAGS="-g" | |
11185 | fi | |
11186 | else | |
11187 | if test "$GCC" = yes; then | |
11188 | CFLAGS="-O2" | |
11189 | else | |
11190 | CFLAGS= | |
11191 | fi | |
11192 | fi | |
11193 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11194 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11195 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11197 | else | |
11198 | ac_cv_prog_cc_stdc=no | |
11199 | ac_save_CC=$CC | |
11200 | cat >conftest.$ac_ext <<_ACEOF | |
11201 | /* confdefs.h. */ | |
11202 | _ACEOF | |
11203 | cat confdefs.h >>conftest.$ac_ext | |
11204 | cat >>conftest.$ac_ext <<_ACEOF | |
11205 | /* end confdefs.h. */ | |
11206 | #include <stdarg.h> | |
11207 | #include <stdio.h> | |
11208 | #include <sys/types.h> | |
11209 | #include <sys/stat.h> | |
11210 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11211 | struct buf { int x; }; | |
11212 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11213 | static char *e (p, i) | |
11214 | char **p; | |
11215 | int i; | |
11216 | { | |
11217 | return p[i]; | |
11218 | } | |
11219 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11220 | { | |
11221 | char *s; | |
11222 | va_list v; | |
11223 | va_start (v,p); | |
11224 | s = g (p, va_arg (v,int)); | |
11225 | va_end (v); | |
11226 | return s; | |
11227 | } | |
ac1cb8d3 VS |
11228 | |
11229 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11230 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11231 | These don't provoke an error unfortunately, instead are silently treated | |
11232 | as 'x'. The following induces an error, until -std1 is added to get | |
11233 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11234 | array size at least. It's necessary to write '\x00'==0 to get something | |
11235 | that's true only with -std1. */ | |
11236 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11237 | ||
a848cd7e SC |
11238 | int test (int i, double x); |
11239 | struct s1 {int (*f) (int a);}; | |
11240 | struct s2 {int (*f) (double a);}; | |
11241 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11242 | int argc; | |
11243 | char **argv; | |
11244 | int | |
11245 | main () | |
11246 | { | |
11247 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11248 | ; | |
11249 | return 0; | |
11250 | } | |
11251 | _ACEOF | |
11252 | # Don't try gcc -ansi; that turns off useful extensions and | |
11253 | # breaks some systems' header files. | |
11254 | # AIX -qlanglvl=ansi | |
11255 | # Ultrix and OSF/1 -std1 | |
11256 | # HP-UX 10.20 and later -Ae | |
11257 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11258 | # SVR4 -Xc -D__EXTENSIONS__ | |
11259 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11260 | do | |
11261 | CC="$ac_save_CC $ac_arg" | |
11262 | rm -f conftest.$ac_objext | |
11263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11264 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11265 | ac_status=$? |
ac1cb8d3 VS |
11266 | grep -v '^ *+' conftest.er1 >conftest.err |
11267 | rm -f conftest.er1 | |
11268 | cat conftest.err >&5 | |
a848cd7e SC |
11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11270 | (exit $ac_status); } && | |
89be85c2 VS |
11271 | { ac_try='test -z "$ac_c_werror_flag" |
11272 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11274 | (eval $ac_try) 2>&5 | |
11275 | ac_status=$? | |
11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11277 | (exit $ac_status); }; } && | |
11278 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11280 | (eval $ac_try) 2>&5 | |
11281 | ac_status=$? | |
11282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11283 | (exit $ac_status); }; }; then | |
11284 | ac_cv_prog_cc_stdc=$ac_arg | |
11285 | break | |
11286 | else | |
11287 | echo "$as_me: failed program was:" >&5 | |
11288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11289 | ||
11290 | fi | |
ac1cb8d3 | 11291 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11292 | done |
11293 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11294 | CC=$ac_save_CC | |
11295 | ||
11296 | fi | |
11297 | ||
11298 | case "x$ac_cv_prog_cc_stdc" in | |
11299 | x|xno) | |
11300 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11301 | echo "${ECHO_T}none needed" >&6 ;; | |
11302 | *) | |
11303 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11304 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11305 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11306 | esac | |
11307 | ||
11308 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11309 | # in C++ we need to declare it. In case someone uses the same compiler | |
11310 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11311 | # the declaration of exit, since it's the most demanding environment. | |
11312 | cat >conftest.$ac_ext <<_ACEOF | |
11313 | #ifndef __cplusplus | |
11314 | choke me | |
11315 | #endif | |
11316 | _ACEOF | |
11317 | rm -f conftest.$ac_objext | |
11318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11319 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11320 | ac_status=$? |
ac1cb8d3 VS |
11321 | grep -v '^ *+' conftest.er1 >conftest.err |
11322 | rm -f conftest.er1 | |
11323 | cat conftest.err >&5 | |
a848cd7e SC |
11324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11325 | (exit $ac_status); } && | |
89be85c2 VS |
11326 | { ac_try='test -z "$ac_c_werror_flag" |
11327 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11329 | (eval $ac_try) 2>&5 | |
11330 | ac_status=$? | |
11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11332 | (exit $ac_status); }; } && | |
11333 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11335 | (eval $ac_try) 2>&5 | |
11336 | ac_status=$? | |
11337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11338 | (exit $ac_status); }; }; then | |
11339 | for ac_declaration in \ | |
ac1cb8d3 | 11340 | '' \ |
a848cd7e SC |
11341 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11342 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11343 | 'extern "C" void exit (int) throw ();' \ | |
11344 | 'extern "C" void exit (int);' \ | |
11345 | 'void exit (int);' | |
11346 | do | |
11347 | cat >conftest.$ac_ext <<_ACEOF | |
11348 | /* confdefs.h. */ | |
11349 | _ACEOF | |
11350 | cat confdefs.h >>conftest.$ac_ext | |
11351 | cat >>conftest.$ac_ext <<_ACEOF | |
11352 | /* end confdefs.h. */ | |
de59c161 | 11353 | $ac_declaration |
ac1cb8d3 | 11354 | #include <stdlib.h> |
a848cd7e SC |
11355 | int |
11356 | main () | |
11357 | { | |
11358 | exit (42); | |
11359 | ; | |
11360 | return 0; | |
11361 | } | |
11362 | _ACEOF | |
11363 | rm -f conftest.$ac_objext | |
11364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11365 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11366 | ac_status=$? |
ac1cb8d3 VS |
11367 | grep -v '^ *+' conftest.er1 >conftest.err |
11368 | rm -f conftest.er1 | |
11369 | cat conftest.err >&5 | |
a848cd7e SC |
11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11371 | (exit $ac_status); } && | |
89be85c2 VS |
11372 | { ac_try='test -z "$ac_c_werror_flag" |
11373 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11375 | (eval $ac_try) 2>&5 | |
11376 | ac_status=$? | |
11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11378 | (exit $ac_status); }; } && | |
11379 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11381 | (eval $ac_try) 2>&5 | |
11382 | ac_status=$? | |
11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11384 | (exit $ac_status); }; }; then | |
11385 | : | |
11386 | else | |
11387 | echo "$as_me: failed program was:" >&5 | |
11388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11389 | ||
11390 | continue | |
11391 | fi | |
ac1cb8d3 | 11392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11393 | cat >conftest.$ac_ext <<_ACEOF |
11394 | /* confdefs.h. */ | |
11395 | _ACEOF | |
11396 | cat confdefs.h >>conftest.$ac_ext | |
11397 | cat >>conftest.$ac_ext <<_ACEOF | |
11398 | /* end confdefs.h. */ | |
11399 | $ac_declaration | |
11400 | int | |
11401 | main () | |
11402 | { | |
11403 | exit (42); | |
11404 | ; | |
11405 | return 0; | |
11406 | } | |
11407 | _ACEOF | |
11408 | rm -f conftest.$ac_objext | |
11409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11410 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11411 | ac_status=$? |
ac1cb8d3 VS |
11412 | grep -v '^ *+' conftest.er1 >conftest.err |
11413 | rm -f conftest.er1 | |
11414 | cat conftest.err >&5 | |
a848cd7e SC |
11415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11416 | (exit $ac_status); } && | |
89be85c2 VS |
11417 | { ac_try='test -z "$ac_c_werror_flag" |
11418 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11420 | (eval $ac_try) 2>&5 | |
11421 | ac_status=$? | |
11422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11423 | (exit $ac_status); }; } && | |
11424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11426 | (eval $ac_try) 2>&5 | |
11427 | ac_status=$? | |
11428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11429 | (exit $ac_status); }; }; then | |
11430 | break | |
11431 | else | |
11432 | echo "$as_me: failed program was:" >&5 | |
11433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11434 | ||
11435 | fi | |
ac1cb8d3 | 11436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11437 | done |
11438 | rm -f conftest* | |
11439 | if test -n "$ac_declaration"; then | |
11440 | echo '#ifdef __cplusplus' >>confdefs.h | |
11441 | echo $ac_declaration >>confdefs.h | |
11442 | echo '#endif' >>confdefs.h | |
11443 | fi | |
11444 | ||
11445 | else | |
11446 | echo "$as_me: failed program was:" >&5 | |
11447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11448 | ||
11449 | fi | |
ac1cb8d3 | 11450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11451 | ac_ext=c |
11452 | ac_cpp='$CPP $CPPFLAGS' | |
11453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11456 | ||
11457 | ||
95986553 DE |
11458 | ac_ext=c |
11459 | ac_cpp='$CPP $CPPFLAGS' | |
11460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11463 | ||
11464 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11465 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11466 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11468 | else | |
11469 | cat >conftest.$ac_ext <<_ACEOF | |
11470 | /* confdefs.h. */ | |
11471 | _ACEOF | |
11472 | cat confdefs.h >>conftest.$ac_ext | |
11473 | cat >>conftest.$ac_ext <<_ACEOF | |
11474 | /* end confdefs.h. */ | |
11475 | ||
11476 | int | |
11477 | main () | |
11478 | { | |
11479 | #ifndef __MWERKS__ | |
11480 | choke me | |
11481 | #endif | |
11482 | ||
11483 | ; | |
11484 | return 0; | |
11485 | } | |
11486 | _ACEOF | |
11487 | rm -f conftest.$ac_objext | |
11488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11489 | (eval $ac_compile) 2>conftest.er1 | |
11490 | ac_status=$? | |
11491 | grep -v '^ *+' conftest.er1 >conftest.err | |
11492 | rm -f conftest.er1 | |
11493 | cat conftest.err >&5 | |
11494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11495 | (exit $ac_status); } && | |
89be85c2 VS |
11496 | { ac_try='test -z "$ac_c_werror_flag" |
11497 | || test ! -s conftest.err' | |
95986553 DE |
11498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11499 | (eval $ac_try) 2>&5 | |
11500 | ac_status=$? | |
11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11502 | (exit $ac_status); }; } && | |
11503 | { ac_try='test -s conftest.$ac_objext' | |
11504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11505 | (eval $ac_try) 2>&5 | |
11506 | ac_status=$? | |
11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11508 | (exit $ac_status); }; }; then | |
11509 | bakefile_compiler_mwerks=yes | |
11510 | else | |
11511 | echo "$as_me: failed program was:" >&5 | |
11512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11513 | ||
11514 | bakefile_compiler_mwerks=no | |
11515 | fi | |
11516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11517 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11518 | ||
11519 | fi | |
11520 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11521 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11522 | ||
11523 | MWCC=`test $bakefile_compiler_mwerks = yes && echo yes` | |
11524 | ac_ext=c | |
11525 | ac_cpp='$CPP $CPPFLAGS' | |
11526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11529 | ||
11530 | ||
a848cd7e SC |
11531 | |
11532 | ac_ext=c | |
11533 | ac_cpp='$CPP $CPPFLAGS' | |
11534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11537 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11538 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11539 | # On Suns, sometimes $CPP names a directory. | |
11540 | if test -n "$CPP" && test -d "$CPP"; then | |
11541 | CPP= | |
11542 | fi | |
11543 | if test -z "$CPP"; then | |
11544 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11546 | else | |
11547 | # Double quotes because CPP needs to be expanded | |
11548 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11549 | do | |
11550 | ac_preproc_ok=false | |
11551 | for ac_c_preproc_warn_flag in '' yes | |
11552 | do | |
11553 | # Use a header file that comes with gcc, so configuring glibc | |
11554 | # with a fresh cross-compiler works. | |
11555 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11556 | # <limits.h> exists even on freestanding compilers. | |
11557 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11558 | # not just through cpp. "Syntax error" is here to catch this case. | |
11559 | cat >conftest.$ac_ext <<_ACEOF | |
11560 | /* confdefs.h. */ | |
11561 | _ACEOF | |
11562 | cat confdefs.h >>conftest.$ac_ext | |
11563 | cat >>conftest.$ac_ext <<_ACEOF | |
11564 | /* end confdefs.h. */ | |
11565 | #ifdef __STDC__ | |
11566 | # include <limits.h> | |
11567 | #else | |
11568 | # include <assert.h> | |
11569 | #endif | |
ac1cb8d3 | 11570 | Syntax error |
a848cd7e SC |
11571 | _ACEOF |
11572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11574 | ac_status=$? | |
11575 | grep -v '^ *+' conftest.er1 >conftest.err | |
11576 | rm -f conftest.er1 | |
11577 | cat conftest.err >&5 | |
11578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11579 | (exit $ac_status); } >/dev/null; then | |
11580 | if test -s conftest.err; then | |
11581 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11582 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11583 | else |
11584 | ac_cpp_err= | |
11585 | fi | |
11586 | else | |
11587 | ac_cpp_err=yes | |
11588 | fi | |
11589 | if test -z "$ac_cpp_err"; then | |
11590 | : | |
11591 | else | |
11592 | echo "$as_me: failed program was:" >&5 | |
11593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11594 | ||
11595 | # Broken: fails on valid input. | |
11596 | continue | |
11597 | fi | |
11598 | rm -f conftest.err conftest.$ac_ext | |
11599 | ||
11600 | # OK, works on sane cases. Now check whether non-existent headers | |
11601 | # can be detected and how. | |
11602 | cat >conftest.$ac_ext <<_ACEOF | |
11603 | /* confdefs.h. */ | |
11604 | _ACEOF | |
11605 | cat confdefs.h >>conftest.$ac_ext | |
11606 | cat >>conftest.$ac_ext <<_ACEOF | |
11607 | /* end confdefs.h. */ | |
11608 | #include <ac_nonexistent.h> | |
11609 | _ACEOF | |
11610 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11611 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11612 | ac_status=$? | |
11613 | grep -v '^ *+' conftest.er1 >conftest.err | |
11614 | rm -f conftest.er1 | |
11615 | cat conftest.err >&5 | |
11616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11617 | (exit $ac_status); } >/dev/null; then | |
11618 | if test -s conftest.err; then | |
11619 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11620 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11621 | else |
11622 | ac_cpp_err= | |
11623 | fi | |
11624 | else | |
11625 | ac_cpp_err=yes | |
11626 | fi | |
11627 | if test -z "$ac_cpp_err"; then | |
11628 | # Broken: success on invalid input. | |
11629 | continue | |
11630 | else | |
11631 | echo "$as_me: failed program was:" >&5 | |
11632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11633 | ||
11634 | # Passes both tests. | |
11635 | ac_preproc_ok=: | |
11636 | break | |
11637 | fi | |
11638 | rm -f conftest.err conftest.$ac_ext | |
11639 | ||
11640 | done | |
11641 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11642 | rm -f conftest.err conftest.$ac_ext | |
11643 | if $ac_preproc_ok; then | |
11644 | break | |
11645 | fi | |
11646 | ||
11647 | done | |
11648 | ac_cv_prog_CPP=$CPP | |
11649 | ||
11650 | fi | |
11651 | CPP=$ac_cv_prog_CPP | |
11652 | else | |
11653 | ac_cv_prog_CPP=$CPP | |
11654 | fi | |
11655 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11656 | echo "${ECHO_T}$CPP" >&6 | |
11657 | ac_preproc_ok=false | |
11658 | for ac_c_preproc_warn_flag in '' yes | |
11659 | do | |
11660 | # Use a header file that comes with gcc, so configuring glibc | |
11661 | # with a fresh cross-compiler works. | |
11662 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11663 | # <limits.h> exists even on freestanding compilers. | |
11664 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11665 | # not just through cpp. "Syntax error" is here to catch this case. | |
11666 | cat >conftest.$ac_ext <<_ACEOF | |
11667 | /* confdefs.h. */ | |
11668 | _ACEOF | |
11669 | cat confdefs.h >>conftest.$ac_ext | |
11670 | cat >>conftest.$ac_ext <<_ACEOF | |
11671 | /* end confdefs.h. */ | |
11672 | #ifdef __STDC__ | |
11673 | # include <limits.h> | |
11674 | #else | |
11675 | # include <assert.h> | |
11676 | #endif | |
ac1cb8d3 | 11677 | Syntax error |
a848cd7e SC |
11678 | _ACEOF |
11679 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11680 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11681 | ac_status=$? | |
11682 | grep -v '^ *+' conftest.er1 >conftest.err | |
11683 | rm -f conftest.er1 | |
11684 | cat conftest.err >&5 | |
11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11686 | (exit $ac_status); } >/dev/null; then | |
11687 | if test -s conftest.err; then | |
11688 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11689 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11690 | else |
11691 | ac_cpp_err= | |
11692 | fi | |
11693 | else | |
11694 | ac_cpp_err=yes | |
11695 | fi | |
11696 | if test -z "$ac_cpp_err"; then | |
11697 | : | |
11698 | else | |
11699 | echo "$as_me: failed program was:" >&5 | |
11700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11701 | ||
11702 | # Broken: fails on valid input. | |
11703 | continue | |
11704 | fi | |
11705 | rm -f conftest.err conftest.$ac_ext | |
11706 | ||
11707 | # OK, works on sane cases. Now check whether non-existent headers | |
11708 | # can be detected and how. | |
11709 | cat >conftest.$ac_ext <<_ACEOF | |
11710 | /* confdefs.h. */ | |
11711 | _ACEOF | |
11712 | cat confdefs.h >>conftest.$ac_ext | |
11713 | cat >>conftest.$ac_ext <<_ACEOF | |
11714 | /* end confdefs.h. */ | |
11715 | #include <ac_nonexistent.h> | |
11716 | _ACEOF | |
11717 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11718 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11719 | ac_status=$? | |
11720 | grep -v '^ *+' conftest.er1 >conftest.err | |
11721 | rm -f conftest.er1 | |
11722 | cat conftest.err >&5 | |
11723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11724 | (exit $ac_status); } >/dev/null; then | |
11725 | if test -s conftest.err; then | |
11726 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11727 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11728 | else |
11729 | ac_cpp_err= | |
11730 | fi | |
11731 | else | |
11732 | ac_cpp_err=yes | |
11733 | fi | |
11734 | if test -z "$ac_cpp_err"; then | |
11735 | # Broken: success on invalid input. | |
11736 | continue | |
11737 | else | |
11738 | echo "$as_me: failed program was:" >&5 | |
11739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11740 | ||
11741 | # Passes both tests. | |
11742 | ac_preproc_ok=: | |
11743 | break | |
11744 | fi | |
11745 | rm -f conftest.err conftest.$ac_ext | |
11746 | ||
11747 | done | |
11748 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11749 | rm -f conftest.err conftest.$ac_ext | |
11750 | if $ac_preproc_ok; then | |
11751 | : | |
11752 | else | |
11753 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11754 | See \`config.log' for more details." >&5 | |
11755 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11756 | See \`config.log' for more details." >&2;} | |
11757 | { (exit 1); exit 1; }; } | |
11758 | fi | |
11759 | ||
11760 | ac_ext=c | |
11761 | ac_cpp='$CPP $CPPFLAGS' | |
11762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11765 | ||
11766 | ||
11767 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11768 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11769 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11771 | else | |
11772 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11773 | then ac_cv_prog_egrep='grep -E' | |
11774 | else ac_cv_prog_egrep='egrep' | |
11775 | fi | |
11776 | fi | |
11777 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11778 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11779 | EGREP=$ac_cv_prog_egrep | |
11780 | ||
11781 | ||
11782 | if test $ac_cv_c_compiler_gnu = yes; then | |
11783 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11784 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11785 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11787 | else | |
11788 | ac_pattern="Autoconf.*'x'" | |
11789 | cat >conftest.$ac_ext <<_ACEOF | |
11790 | /* confdefs.h. */ | |
11791 | _ACEOF | |
11792 | cat confdefs.h >>conftest.$ac_ext | |
11793 | cat >>conftest.$ac_ext <<_ACEOF | |
11794 | /* end confdefs.h. */ | |
11795 | #include <sgtty.h> | |
11796 | Autoconf TIOCGETP | |
11797 | _ACEOF | |
11798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11799 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11800 | ac_cv_prog_gcc_traditional=yes | |
11801 | else | |
11802 | ac_cv_prog_gcc_traditional=no | |
11803 | fi | |
11804 | rm -f conftest* | |
11805 | ||
11806 | ||
11807 | if test $ac_cv_prog_gcc_traditional = no; then | |
11808 | cat >conftest.$ac_ext <<_ACEOF | |
11809 | /* confdefs.h. */ | |
11810 | _ACEOF | |
11811 | cat confdefs.h >>conftest.$ac_ext | |
11812 | cat >>conftest.$ac_ext <<_ACEOF | |
11813 | /* end confdefs.h. */ | |
11814 | #include <termio.h> | |
11815 | Autoconf TCGETA | |
11816 | _ACEOF | |
11817 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11818 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11819 | ac_cv_prog_gcc_traditional=yes | |
11820 | fi | |
11821 | rm -f conftest* | |
11822 | ||
11823 | fi | |
11824 | fi | |
11825 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11826 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11827 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11828 | CC="$CC -traditional" | |
11829 | fi | |
11830 | fi | |
11831 | ||
11832 | ||
11833 | ||
11834 | ||
11835 | ac_ext=cc | |
11836 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11837 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11838 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11839 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11840 | ||
11841 | ||
11842 | CXXFLAGS=${CXXFLAGS:=} | |
11843 | ac_ext=cc | |
11844 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11848 | if test -n "$ac_tool_prefix"; then | |
11849 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11850 | do | |
11851 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11852 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11855 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11857 | else | |
11858 | if test -n "$CXX"; then | |
11859 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11860 | else | |
11861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11862 | for as_dir in $PATH | |
11863 | do | |
11864 | IFS=$as_save_IFS | |
11865 | test -z "$as_dir" && as_dir=. | |
11866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11868 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11870 | break 2 | |
11871 | fi | |
11872 | done | |
11873 | done | |
11874 | ||
11875 | fi | |
11876 | fi | |
11877 | CXX=$ac_cv_prog_CXX | |
11878 | if test -n "$CXX"; then | |
11879 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11880 | echo "${ECHO_T}$CXX" >&6 | |
11881 | else | |
11882 | echo "$as_me:$LINENO: result: no" >&5 | |
11883 | echo "${ECHO_T}no" >&6 | |
11884 | fi | |
11885 | ||
11886 | test -n "$CXX" && break | |
11887 | done | |
11888 | fi | |
11889 | if test -z "$CXX"; then | |
11890 | ac_ct_CXX=$CXX | |
11891 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11892 | do | |
11893 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11894 | set dummy $ac_prog; ac_word=$2 | |
11895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11897 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11899 | else | |
11900 | if test -n "$ac_ct_CXX"; then | |
11901 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11902 | else | |
11903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11904 | for as_dir in $PATH | |
11905 | do | |
11906 | IFS=$as_save_IFS | |
11907 | test -z "$as_dir" && as_dir=. | |
11908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11910 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11912 | break 2 | |
11913 | fi | |
11914 | done | |
11915 | done | |
11916 | ||
11917 | fi | |
11918 | fi | |
11919 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11920 | if test -n "$ac_ct_CXX"; then | |
11921 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11922 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11923 | else | |
11924 | echo "$as_me:$LINENO: result: no" >&5 | |
11925 | echo "${ECHO_T}no" >&6 | |
11926 | fi | |
11927 | ||
11928 | test -n "$ac_ct_CXX" && break | |
11929 | done | |
11930 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11931 | ||
11932 | CXX=$ac_ct_CXX | |
11933 | fi | |
11934 | ||
11935 | ||
11936 | # Provide some information about the compiler. | |
11937 | echo "$as_me:$LINENO:" \ | |
11938 | "checking for C++ compiler version" >&5 | |
11939 | ac_compiler=`set X $ac_compile; echo $2` | |
11940 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11941 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11942 | ac_status=$? | |
11943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11944 | (exit $ac_status); } | |
11945 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11946 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11947 | ac_status=$? | |
11948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11949 | (exit $ac_status); } | |
11950 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11951 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11952 | ac_status=$? | |
11953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11954 | (exit $ac_status); } | |
11955 | ||
11956 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11957 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11958 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11960 | else | |
11961 | cat >conftest.$ac_ext <<_ACEOF | |
11962 | /* confdefs.h. */ | |
11963 | _ACEOF | |
11964 | cat confdefs.h >>conftest.$ac_ext | |
11965 | cat >>conftest.$ac_ext <<_ACEOF | |
11966 | /* end confdefs.h. */ | |
11967 | ||
11968 | int | |
11969 | main () | |
11970 | { | |
11971 | #ifndef __GNUC__ | |
11972 | choke me | |
11973 | #endif | |
11974 | ||
11975 | ; | |
11976 | return 0; | |
11977 | } | |
11978 | _ACEOF | |
11979 | rm -f conftest.$ac_objext | |
11980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11982 | ac_status=$? |
ac1cb8d3 VS |
11983 | grep -v '^ *+' conftest.er1 >conftest.err |
11984 | rm -f conftest.er1 | |
11985 | cat conftest.err >&5 | |
a848cd7e SC |
11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11987 | (exit $ac_status); } && | |
89be85c2 VS |
11988 | { ac_try='test -z "$ac_cxx_werror_flag" |
11989 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11991 | (eval $ac_try) 2>&5 | |
11992 | ac_status=$? | |
11993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11994 | (exit $ac_status); }; } && | |
11995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11997 | (eval $ac_try) 2>&5 | |
11998 | ac_status=$? | |
11999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12000 | (exit $ac_status); }; }; then | |
12001 | ac_compiler_gnu=yes | |
12002 | else | |
12003 | echo "$as_me: failed program was:" >&5 | |
12004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12005 | ||
12006 | ac_compiler_gnu=no | |
12007 | fi | |
ac1cb8d3 | 12008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12009 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12010 | ||
12011 | fi | |
12012 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12013 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12014 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12015 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12016 | ac_save_CXXFLAGS=$CXXFLAGS | |
12017 | CXXFLAGS="-g" | |
12018 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12019 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12020 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12022 | else | |
12023 | cat >conftest.$ac_ext <<_ACEOF | |
12024 | /* confdefs.h. */ | |
12025 | _ACEOF | |
12026 | cat confdefs.h >>conftest.$ac_ext | |
12027 | cat >>conftest.$ac_ext <<_ACEOF | |
12028 | /* end confdefs.h. */ | |
12029 | ||
12030 | int | |
12031 | main () | |
12032 | { | |
12033 | ||
12034 | ; | |
12035 | return 0; | |
12036 | } | |
12037 | _ACEOF | |
12038 | rm -f conftest.$ac_objext | |
12039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12040 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12041 | ac_status=$? |
ac1cb8d3 VS |
12042 | grep -v '^ *+' conftest.er1 >conftest.err |
12043 | rm -f conftest.er1 | |
12044 | cat conftest.err >&5 | |
a848cd7e SC |
12045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12046 | (exit $ac_status); } && | |
89be85c2 VS |
12047 | { ac_try='test -z "$ac_cxx_werror_flag" |
12048 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12050 | (eval $ac_try) 2>&5 | |
12051 | ac_status=$? | |
12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12053 | (exit $ac_status); }; } && | |
12054 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12056 | (eval $ac_try) 2>&5 | |
12057 | ac_status=$? | |
12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12059 | (exit $ac_status); }; }; then | |
12060 | ac_cv_prog_cxx_g=yes | |
12061 | else | |
12062 | echo "$as_me: failed program was:" >&5 | |
12063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12064 | ||
12065 | ac_cv_prog_cxx_g=no | |
12066 | fi | |
ac1cb8d3 | 12067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12068 | fi |
12069 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12070 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12071 | if test "$ac_test_CXXFLAGS" = set; then | |
12072 | CXXFLAGS=$ac_save_CXXFLAGS | |
12073 | elif test $ac_cv_prog_cxx_g = yes; then | |
12074 | if test "$GXX" = yes; then | |
12075 | CXXFLAGS="-g -O2" | |
12076 | else | |
12077 | CXXFLAGS="-g" | |
12078 | fi | |
12079 | else | |
12080 | if test "$GXX" = yes; then | |
12081 | CXXFLAGS="-O2" | |
12082 | else | |
12083 | CXXFLAGS= | |
12084 | fi | |
12085 | fi | |
12086 | for ac_declaration in \ | |
ac1cb8d3 | 12087 | '' \ |
a848cd7e SC |
12088 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12089 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12090 | 'extern "C" void exit (int) throw ();' \ | |
12091 | 'extern "C" void exit (int);' \ | |
12092 | 'void exit (int);' | |
12093 | do | |
12094 | cat >conftest.$ac_ext <<_ACEOF | |
12095 | /* confdefs.h. */ | |
12096 | _ACEOF | |
12097 | cat confdefs.h >>conftest.$ac_ext | |
12098 | cat >>conftest.$ac_ext <<_ACEOF | |
12099 | /* end confdefs.h. */ | |
de59c161 | 12100 | $ac_declaration |
ac1cb8d3 | 12101 | #include <stdlib.h> |
a848cd7e SC |
12102 | int |
12103 | main () | |
12104 | { | |
12105 | exit (42); | |
12106 | ; | |
12107 | return 0; | |
12108 | } | |
12109 | _ACEOF | |
12110 | rm -f conftest.$ac_objext | |
12111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12113 | ac_status=$? |
ac1cb8d3 VS |
12114 | grep -v '^ *+' conftest.er1 >conftest.err |
12115 | rm -f conftest.er1 | |
12116 | cat conftest.err >&5 | |
a848cd7e SC |
12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12118 | (exit $ac_status); } && | |
89be85c2 VS |
12119 | { ac_try='test -z "$ac_cxx_werror_flag" |
12120 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12122 | (eval $ac_try) 2>&5 | |
12123 | ac_status=$? | |
12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12125 | (exit $ac_status); }; } && | |
12126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12128 | (eval $ac_try) 2>&5 | |
12129 | ac_status=$? | |
12130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12131 | (exit $ac_status); }; }; then | |
12132 | : | |
12133 | else | |
12134 | echo "$as_me: failed program was:" >&5 | |
12135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12136 | ||
12137 | continue | |
12138 | fi | |
ac1cb8d3 | 12139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12140 | cat >conftest.$ac_ext <<_ACEOF |
12141 | /* confdefs.h. */ | |
12142 | _ACEOF | |
12143 | cat confdefs.h >>conftest.$ac_ext | |
12144 | cat >>conftest.$ac_ext <<_ACEOF | |
12145 | /* end confdefs.h. */ | |
12146 | $ac_declaration | |
12147 | int | |
12148 | main () | |
12149 | { | |
12150 | exit (42); | |
12151 | ; | |
12152 | return 0; | |
12153 | } | |
12154 | _ACEOF | |
12155 | rm -f conftest.$ac_objext | |
12156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12157 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12158 | ac_status=$? |
ac1cb8d3 VS |
12159 | grep -v '^ *+' conftest.er1 >conftest.err |
12160 | rm -f conftest.er1 | |
12161 | cat conftest.err >&5 | |
a848cd7e SC |
12162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12163 | (exit $ac_status); } && | |
89be85c2 VS |
12164 | { ac_try='test -z "$ac_cxx_werror_flag" |
12165 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12167 | (eval $ac_try) 2>&5 | |
12168 | ac_status=$? | |
12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12170 | (exit $ac_status); }; } && | |
12171 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12173 | (eval $ac_try) 2>&5 | |
12174 | ac_status=$? | |
12175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12176 | (exit $ac_status); }; }; then | |
12177 | break | |
12178 | else | |
12179 | echo "$as_me: failed program was:" >&5 | |
12180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12181 | ||
12182 | fi | |
ac1cb8d3 | 12183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12184 | done |
12185 | rm -f conftest* | |
12186 | if test -n "$ac_declaration"; then | |
12187 | echo '#ifdef __cplusplus' >>confdefs.h | |
12188 | echo $ac_declaration >>confdefs.h | |
12189 | echo '#endif' >>confdefs.h | |
12190 | fi | |
12191 | ||
12192 | ac_ext=cc | |
12193 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12194 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12195 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12196 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12197 | ||
12198 | ||
95986553 DE |
12199 | ac_ext=cc |
12200 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12201 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12202 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12203 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12204 | ||
12205 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12206 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12207 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12209 | else | |
12210 | cat >conftest.$ac_ext <<_ACEOF | |
12211 | /* confdefs.h. */ | |
12212 | _ACEOF | |
12213 | cat confdefs.h >>conftest.$ac_ext | |
12214 | cat >>conftest.$ac_ext <<_ACEOF | |
12215 | /* end confdefs.h. */ | |
12216 | ||
12217 | int | |
12218 | main () | |
12219 | { | |
12220 | #ifndef __MWERKS__ | |
12221 | choke me | |
12222 | #endif | |
12223 | ||
12224 | ; | |
12225 | return 0; | |
12226 | } | |
12227 | _ACEOF | |
12228 | rm -f conftest.$ac_objext | |
12229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12230 | (eval $ac_compile) 2>conftest.er1 | |
12231 | ac_status=$? | |
12232 | grep -v '^ *+' conftest.er1 >conftest.err | |
12233 | rm -f conftest.er1 | |
12234 | cat conftest.err >&5 | |
12235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12236 | (exit $ac_status); } && | |
89be85c2 VS |
12237 | { ac_try='test -z "$ac_cxx_werror_flag" |
12238 | || test ! -s conftest.err' | |
95986553 DE |
12239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12240 | (eval $ac_try) 2>&5 | |
12241 | ac_status=$? | |
12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12243 | (exit $ac_status); }; } && | |
12244 | { ac_try='test -s conftest.$ac_objext' | |
12245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12246 | (eval $ac_try) 2>&5 | |
12247 | ac_status=$? | |
12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12249 | (exit $ac_status); }; }; then | |
12250 | bakefile_compiler_mwerks=yes | |
12251 | else | |
12252 | echo "$as_me: failed program was:" >&5 | |
12253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12254 | ||
12255 | bakefile_compiler_mwerks=no | |
12256 | fi | |
12257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12258 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12259 | ||
12260 | fi | |
12261 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12262 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12263 | ||
12264 | MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes` | |
12265 | ac_ext=cc | |
12266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12267 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12268 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12269 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12270 | ||
12271 | ||
12272 | ||
a848cd7e SC |
12273 | ac_ext=c |
12274 | ac_cpp='$CPP $CPPFLAGS' | |
12275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12278 | ||
12279 | ||
a848cd7e SC |
12280 | if test -n "$ac_tool_prefix"; then |
12281 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12282 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12285 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12287 | else | |
12288 | if test -n "$RANLIB"; then | |
12289 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12290 | else | |
12291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12292 | for as_dir in $PATH | |
12293 | do | |
12294 | IFS=$as_save_IFS | |
12295 | test -z "$as_dir" && as_dir=. | |
12296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12298 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12300 | break 2 | |
12301 | fi | |
12302 | done | |
12303 | done | |
12304 | ||
12305 | fi | |
12306 | fi | |
12307 | RANLIB=$ac_cv_prog_RANLIB | |
12308 | if test -n "$RANLIB"; then | |
12309 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12310 | echo "${ECHO_T}$RANLIB" >&6 | |
12311 | else | |
12312 | echo "$as_me:$LINENO: result: no" >&5 | |
12313 | echo "${ECHO_T}no" >&6 | |
12314 | fi | |
12315 | ||
12316 | fi | |
12317 | if test -z "$ac_cv_prog_RANLIB"; then | |
12318 | ac_ct_RANLIB=$RANLIB | |
12319 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12320 | set dummy ranlib; ac_word=$2 | |
12321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12323 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12325 | else | |
12326 | if test -n "$ac_ct_RANLIB"; then | |
12327 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12328 | else | |
12329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12330 | for as_dir in $PATH | |
12331 | do | |
12332 | IFS=$as_save_IFS | |
12333 | test -z "$as_dir" && as_dir=. | |
12334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12336 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12338 | break 2 | |
12339 | fi | |
12340 | done | |
12341 | done | |
12342 | ||
12343 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12344 | fi | |
12345 | fi | |
12346 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12347 | if test -n "$ac_ct_RANLIB"; then | |
12348 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12349 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12350 | else | |
12351 | echo "$as_me:$LINENO: result: no" >&5 | |
12352 | echo "${ECHO_T}no" >&6 | |
12353 | fi | |
12354 | ||
12355 | RANLIB=$ac_ct_RANLIB | |
12356 | else | |
12357 | RANLIB="$ac_cv_prog_RANLIB" | |
12358 | fi | |
12359 | ||
12360 | ||
12361 | # Extract the first word of "ar", so it can be a program name with args. | |
12362 | set dummy ar; ac_word=$2 | |
12363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12365 | if test "${ac_cv_prog_AR+set}" = set; then | |
12366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12367 | else | |
12368 | if test -n "$AR"; then | |
12369 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12370 | else | |
12371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12372 | for as_dir in $PATH | |
12373 | do | |
12374 | IFS=$as_save_IFS | |
12375 | test -z "$as_dir" && as_dir=. | |
12376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12377 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12378 | ac_cv_prog_AR="ar" | |
12379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12380 | break 2 | |
12381 | fi | |
12382 | done | |
12383 | done | |
12384 | ||
12385 | fi | |
12386 | fi | |
12387 | AR=$ac_cv_prog_AR | |
12388 | if test -n "$AR"; then | |
12389 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12390 | echo "${ECHO_T}$AR" >&6 | |
12391 | else | |
12392 | echo "$as_me:$LINENO: result: no" >&5 | |
12393 | echo "${ECHO_T}no" >&6 | |
12394 | fi | |
12395 | ||
12396 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12397 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12398 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12399 | { (exit 1); exit 1; }; } |
12400 | fi | |
12401 | ||
12402 | # Find a good install program. We prefer a C program (faster), | |
12403 | # so one script is as good as another. But avoid the broken or | |
12404 | # incompatible versions: | |
12405 | # SysV /etc/install, /usr/sbin/install | |
12406 | # SunOS /usr/etc/install | |
12407 | # IRIX /sbin/install | |
12408 | # AIX /bin/install | |
12409 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12410 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12411 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12412 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12413 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12414 | # ./install, which can be erroneously created by make from ./install.sh. |
12415 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12416 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12417 | if test -z "$INSTALL"; then | |
12418 | if test "${ac_cv_path_install+set}" = set; then | |
12419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12420 | else | |
12421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12422 | for as_dir in $PATH | |
12423 | do | |
12424 | IFS=$as_save_IFS | |
12425 | test -z "$as_dir" && as_dir=. | |
12426 | # Account for people who put trailing slashes in PATH elements. | |
12427 | case $as_dir/ in | |
12428 | ./ | .// | /cC/* | \ | |
12429 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12430 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12431 | /usr/ucb/* ) ;; |
12432 | *) | |
12433 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12434 | # Don't use installbsd from OSF since it installs stuff as root | |
12435 | # by default. | |
12436 | for ac_prog in ginstall scoinst install; do | |
12437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12438 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12439 | if test $ac_prog = install && | |
12440 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12441 | # AIX install. It has an incompatible calling convention. | |
12442 | : | |
12443 | elif test $ac_prog = install && | |
12444 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12445 | # program-specific install script used by HP pwplus--don't use. | |
12446 | : | |
12447 | else | |
12448 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12449 | break 3 | |
12450 | fi | |
12451 | fi | |
a848cd7e SC |
12452 | done |
12453 | done | |
12454 | ;; | |
12455 | esac | |
12456 | done | |
12457 | ||
12458 | ||
12459 | fi | |
12460 | if test "${ac_cv_path_install+set}" = set; then | |
12461 | INSTALL=$ac_cv_path_install | |
12462 | else | |
12463 | # As a last resort, use the slow shell script. We don't cache a | |
12464 | # path for INSTALL within a source directory, because that will | |
12465 | # break other packages using the cache if that directory is | |
12466 | # removed, or if the path is relative. | |
12467 | INSTALL=$ac_install_sh | |
12468 | fi | |
12469 | fi | |
12470 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12471 | echo "${ECHO_T}$INSTALL" >&6 | |
12472 | ||
12473 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12474 | # It thinks the first close brace ends the variable substitution. | |
12475 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12476 | ||
12477 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12478 | ||
12479 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12480 | ||
12481 | ||
12482 | case ${INSTALL} in | |
12483 | /* ) # Absolute | |
12484 | ;; | |
12485 | ?:* ) # Drive letter, considered as absolute. | |
12486 | ;; | |
12487 | *) | |
12488 | INSTALL=`pwd`/${INSTALL} ;; | |
12489 | esac | |
12490 | ||
a848cd7e SC |
12491 | |
12492 | case "${host}" in | |
12493 | ||
12494 | powerpc-*-darwin* ) | |
12495 | INSTALL_PROGRAM="cp -fp" | |
12496 | INSTALL_DATA="cp -fp" | |
12497 | ;; | |
12498 | *) | |
12499 | ;; | |
12500 | esac | |
12501 | ||
12502 | # Extract the first word of "strip", so it can be a program name with args. | |
12503 | set dummy strip; ac_word=$2 | |
12504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12506 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12508 | else | |
12509 | if test -n "$STRIP"; then | |
12510 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12511 | else | |
12512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12513 | for as_dir in $PATH | |
12514 | do | |
12515 | IFS=$as_save_IFS | |
12516 | test -z "$as_dir" && as_dir=. | |
12517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12519 | ac_cv_prog_STRIP="strip" | |
12520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12521 | break 2 | |
12522 | fi | |
12523 | done | |
12524 | done | |
12525 | ||
12526 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12527 | fi | |
12528 | fi | |
12529 | STRIP=$ac_cv_prog_STRIP | |
12530 | if test -n "$STRIP"; then | |
12531 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12532 | echo "${ECHO_T}$STRIP" >&6 | |
12533 | else | |
12534 | echo "$as_me:$LINENO: result: no" >&5 | |
12535 | echo "${ECHO_T}no" >&6 | |
12536 | fi | |
12537 | ||
12538 | ||
12539 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12540 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12541 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12543 | else | |
12544 | ||
12545 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12546 | egrep -s GNU > /dev/null); then | |
12547 | wx_cv_prog_makeisgnu="yes" | |
12548 | else | |
12549 | wx_cv_prog_makeisgnu="no" | |
12550 | fi | |
12551 | ||
12552 | fi | |
12553 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12554 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12555 | ||
12556 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12557 | IF_GNU_MAKE="" | |
12558 | else | |
12559 | IF_GNU_MAKE="#" | |
12560 | fi | |
12561 | ||
12562 | ||
12563 | ||
12564 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12565 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12566 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12567 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12569 | else | |
12570 | ||
12571 | cat - << EOF > confMake | |
12572 | check : file | |
12573 | cp \$? \$@ | |
12574 | cp \$? final_file | |
12575 | EOF | |
12576 | ||
12577 | if test ! -d sub ; then | |
12578 | mkdir sub | |
12579 | fi | |
12580 | echo dummy > sub/file | |
12581 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12582 | RESULT=$? | |
12583 | rm -f sub/file check final_file confMake | |
12584 | rmdir sub | |
12585 | if test "$RESULT" = 0; then | |
12586 | wx_cv_prog_makevpath="yes" | |
12587 | else | |
12588 | wx_cv_prog_makevpath="no" | |
12589 | fi | |
12590 | ||
12591 | fi | |
12592 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12593 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12594 | ||
12595 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12596 | { { echo "$as_me:$LINENO: error: | |
12597 | You need a make-utility that is able to use the variable | |
12598 | VPATH correctly. | |
12599 | If your version of make does not support VPATH correctly, | |
12600 | please install GNU-make (possibly as gmake), and start | |
12601 | configure with the following command: | |
12602 | export MAKE=gmake; ./configure for sh-type shells | |
12603 | setenv MAKE gmake; ./configure for csh-type shells | |
12604 | Also please do remember to use gmake in this case every time | |
12605 | you are trying to compile. | |
12606 | " >&5 | |
12607 | echo "$as_me: error: | |
12608 | You need a make-utility that is able to use the variable | |
12609 | VPATH correctly. | |
12610 | If your version of make does not support VPATH correctly, | |
12611 | please install GNU-make (possibly as gmake), and start | |
12612 | configure with the following command: | |
12613 | export MAKE=gmake; ./configure for sh-type shells | |
12614 | setenv MAKE gmake; ./configure for csh-type shells | |
12615 | Also please do remember to use gmake in this case every time | |
12616 | you are trying to compile. | |
12617 | " >&2;} | |
12618 | { (exit 1); exit 1; }; } | |
12619 | fi fi | |
12620 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12621 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12622 | LN_S=$as_ln_s | |
12623 | if test "$LN_S" = "ln -s"; then | |
12624 | echo "$as_me:$LINENO: result: yes" >&5 | |
12625 | echo "${ECHO_T}yes" >&6 | |
12626 | else | |
12627 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12628 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12629 | fi | |
12630 | ||
12631 | ||
12632 | ||
12633 | case "${host}" in | |
12634 | *-pc-os2_emx | *-pc-os2-emx ) | |
12635 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12636 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12637 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12638 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12640 | else | |
12641 | ac_check_lib_save_LIBS=$LIBS | |
12642 | LIBS="-lcExt $LIBS" | |
12643 | cat >conftest.$ac_ext <<_ACEOF | |
12644 | /* confdefs.h. */ | |
12645 | _ACEOF | |
12646 | cat confdefs.h >>conftest.$ac_ext | |
12647 | cat >>conftest.$ac_ext <<_ACEOF | |
12648 | /* end confdefs.h. */ | |
12649 | ||
12650 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12651 | #ifdef __cplusplus | |
12652 | extern "C" | |
12653 | #endif | |
12654 | /* We use char because int might match the return type of a gcc2 | |
12655 | builtin and then its argument prototype would still apply. */ | |
12656 | char drand48 (); | |
12657 | int | |
12658 | main () | |
12659 | { | |
12660 | drand48 (); | |
12661 | ; | |
12662 | return 0; | |
12663 | } | |
12664 | _ACEOF | |
12665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12667 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12668 | ac_status=$? |
ac1cb8d3 VS |
12669 | grep -v '^ *+' conftest.er1 >conftest.err |
12670 | rm -f conftest.er1 | |
12671 | cat conftest.err >&5 | |
a848cd7e SC |
12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12673 | (exit $ac_status); } && | |
89be85c2 VS |
12674 | { ac_try='test -z "$ac_c_werror_flag" |
12675 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12677 | (eval $ac_try) 2>&5 | |
12678 | ac_status=$? | |
12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12680 | (exit $ac_status); }; } && | |
12681 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12683 | (eval $ac_try) 2>&5 | |
12684 | ac_status=$? | |
12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12686 | (exit $ac_status); }; }; then | |
12687 | ac_cv_lib_cExt_drand48=yes | |
12688 | else | |
12689 | echo "$as_me: failed program was:" >&5 | |
12690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12691 | ||
12692 | ac_cv_lib_cExt_drand48=no | |
12693 | fi | |
ac1cb8d3 VS |
12694 | rm -f conftest.err conftest.$ac_objext \ |
12695 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12696 | LIBS=$ac_check_lib_save_LIBS |
12697 | fi | |
12698 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12699 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12700 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12701 | LIBS="$LIBS -lcExt" | |
12702 | fi | |
12703 | ||
12704 | else | |
12705 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12706 | fi | |
391a765e | 12707 | echo "$as_me:$LINENO: checking for gcc version" >&5 |
a848cd7e SC |
12708 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 |
12709 | if test "${wx_cv_gccversion+set}" = set; then | |
12710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12711 | else | |
12712 | ||
391a765e VS |
12713 | if test "$cross_compiling" = yes; then |
12714 | wx_cv_gccversion="EMX2" | |
12715 | ||
12716 | else | |
12717 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
12718 | /* confdefs.h. */ |
12719 | _ACEOF | |
12720 | cat confdefs.h >>conftest.$ac_ext | |
12721 | cat >>conftest.$ac_ext <<_ACEOF | |
12722 | /* end confdefs.h. */ | |
12723 | ||
391a765e | 12724 | #include <stdio.h> |
a848cd7e | 12725 | |
391a765e VS |
12726 | int main() |
12727 | { | |
12728 | FILE *f=fopen("conftestval", "w"); | |
12729 | if (!f) exit(1); | |
12730 | fprintf(f, | |
a848cd7e | 12731 | #if (__GNUC__ < 3) |
391a765e VS |
12732 | "EMX2" |
12733 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12734 | "EMX3" | |
12735 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
12736 | "Innotek5" | |
12737 | #else | |
12738 | "Innotek6" | |
a848cd7e | 12739 | #endif |
391a765e VS |
12740 | ); |
12741 | exit(0); | |
12742 | } | |
a848cd7e | 12743 | |
a848cd7e | 12744 | _ACEOF |
391a765e VS |
12745 | rm -f conftest$ac_exeext |
12746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12747 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
12748 | ac_status=$? |
12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 12750 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
12751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12752 | (eval $ac_try) 2>&5 | |
12753 | ac_status=$? | |
12754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12755 | (exit $ac_status); }; }; then | |
391a765e | 12756 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 12757 | else |
391a765e VS |
12758 | echo "$as_me: program exited with status $ac_status" >&5 |
12759 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
12760 | sed 's/^/| /' conftest.$ac_ext >&5 |
12761 | ||
391a765e VS |
12762 | ( exit $ac_status ) |
12763 | wx_cv_gccversion="EMX2" | |
a848cd7e | 12764 | fi |
391a765e | 12765 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 12766 | fi |
a848cd7e SC |
12767 | |
12768 | fi | |
12769 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12770 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 12771 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
12772 | LIBS="$LIBS -lstdcpp" |
12773 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12774 | else | |
391a765e | 12775 | if test "$wx_cv_gccversion" = "EMX3"; then |
a848cd7e SC |
12776 | LIBS="$LIBS -lstdcxx" |
12777 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12778 | else | |
12779 | LIBS="$LIBS -lstdc++" | |
12780 | fi | |
12781 | fi | |
12782 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12783 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12784 | fi |
12785 | ;; | |
12786 | *) | |
12787 | ||
12788 | ||
12789 | ||
12790 | ac_ext=cc | |
12791 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12792 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12793 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12794 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12795 | ||
12796 | ||
95986553 | 12797 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
12798 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
12799 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12801 | else | |
12802 | ||
12803 | cat >conftest.$ac_ext <<_ACEOF | |
12804 | /* confdefs.h. */ | |
12805 | _ACEOF | |
12806 | cat confdefs.h >>conftest.$ac_ext | |
12807 | cat >>conftest.$ac_ext <<_ACEOF | |
12808 | /* end confdefs.h. */ | |
12809 | ||
12810 | #include <string.h> | |
12811 | ||
12812 | int | |
12813 | main () | |
12814 | { | |
12815 | ||
12816 | strcasecmp("foo", "bar"); | |
12817 | ||
12818 | ; | |
12819 | return 0; | |
12820 | } | |
12821 | _ACEOF | |
12822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12824 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12825 | ac_status=$? |
ac1cb8d3 VS |
12826 | grep -v '^ *+' conftest.er1 >conftest.err |
12827 | rm -f conftest.er1 | |
12828 | cat conftest.err >&5 | |
a848cd7e SC |
12829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12830 | (exit $ac_status); } && | |
89be85c2 VS |
12831 | { ac_try='test -z "$ac_cxx_werror_flag" |
12832 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12834 | (eval $ac_try) 2>&5 | |
12835 | ac_status=$? | |
12836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12837 | (exit $ac_status); }; } && | |
12838 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12840 | (eval $ac_try) 2>&5 | |
12841 | ac_status=$? | |
12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12843 | (exit $ac_status); }; }; then | |
12844 | ac_cv_string_strcasecmp=yes | |
12845 | else | |
12846 | echo "$as_me: failed program was:" >&5 | |
12847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12848 | ||
12849 | ac_cv_string_strcasecmp=no | |
12850 | ||
12851 | fi | |
ac1cb8d3 VS |
12852 | rm -f conftest.err conftest.$ac_objext \ |
12853 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12854 | |
12855 | fi | |
12856 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12857 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12858 | ||
12859 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12860 | cat >>confdefs.h <<\_ACEOF | |
12861 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12862 | _ACEOF | |
12863 | ||
12864 | else | |
12865 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12866 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12867 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12869 | else | |
12870 | ||
12871 | cat >conftest.$ac_ext <<_ACEOF | |
12872 | /* confdefs.h. */ | |
12873 | _ACEOF | |
12874 | cat confdefs.h >>conftest.$ac_ext | |
12875 | cat >>conftest.$ac_ext <<_ACEOF | |
12876 | /* end confdefs.h. */ | |
12877 | ||
12878 | #include <strings.h> | |
12879 | ||
12880 | int | |
12881 | main () | |
12882 | { | |
12883 | ||
12884 | strcasecmp("foo", "bar"); | |
12885 | ||
12886 | ; | |
12887 | return 0; | |
12888 | } | |
12889 | _ACEOF | |
12890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12892 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12893 | ac_status=$? |
ac1cb8d3 VS |
12894 | grep -v '^ *+' conftest.er1 >conftest.err |
12895 | rm -f conftest.er1 | |
12896 | cat conftest.err >&5 | |
a848cd7e SC |
12897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12898 | (exit $ac_status); } && | |
89be85c2 VS |
12899 | { ac_try='test -z "$ac_cxx_werror_flag" |
12900 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12902 | (eval $ac_try) 2>&5 | |
12903 | ac_status=$? | |
12904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12905 | (exit $ac_status); }; } && | |
12906 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12908 | (eval $ac_try) 2>&5 | |
12909 | ac_status=$? | |
12910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12911 | (exit $ac_status); }; }; then | |
12912 | ac_cv_strings_strcasecmp=yes | |
12913 | else | |
12914 | echo "$as_me: failed program was:" >&5 | |
12915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12916 | ||
12917 | ac_cv_strings_strcasecmp=no | |
12918 | ||
12919 | fi | |
ac1cb8d3 VS |
12920 | rm -f conftest.err conftest.$ac_objext \ |
12921 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12922 | |
12923 | fi | |
12924 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12925 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12926 | ||
0c3c69fc | 12927 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12928 | cat >>confdefs.h <<\_ACEOF |
12929 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12930 | _ACEOF | |
12931 | ||
12932 | else | |
12933 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12934 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12935 | { (exit 1); exit 1; }; } | |
12936 | fi | |
12937 | fi | |
12938 | ||
12939 | ac_ext=c | |
12940 | ac_cpp='$CPP $CPPFLAGS' | |
12941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12944 | ||
12945 | ;; | |
12946 | esac | |
12947 | ||
12948 | ||
12949 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12950 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12951 | if test "${ac_cv_header_stdc+set}" = set; then | |
12952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12953 | else | |
12954 | cat >conftest.$ac_ext <<_ACEOF | |
12955 | /* confdefs.h. */ | |
12956 | _ACEOF | |
12957 | cat confdefs.h >>conftest.$ac_ext | |
12958 | cat >>conftest.$ac_ext <<_ACEOF | |
12959 | /* end confdefs.h. */ | |
12960 | #include <stdlib.h> | |
12961 | #include <stdarg.h> | |
12962 | #include <string.h> | |
12963 | #include <float.h> | |
12964 | ||
12965 | int | |
12966 | main () | |
12967 | { | |
12968 | ||
12969 | ; | |
12970 | return 0; | |
12971 | } | |
12972 | _ACEOF | |
12973 | rm -f conftest.$ac_objext | |
12974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12975 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12976 | ac_status=$? |
ac1cb8d3 VS |
12977 | grep -v '^ *+' conftest.er1 >conftest.err |
12978 | rm -f conftest.er1 | |
12979 | cat conftest.err >&5 | |
a848cd7e SC |
12980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12981 | (exit $ac_status); } && | |
89be85c2 VS |
12982 | { ac_try='test -z "$ac_c_werror_flag" |
12983 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12985 | (eval $ac_try) 2>&5 | |
12986 | ac_status=$? | |
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12988 | (exit $ac_status); }; } && | |
12989 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12991 | (eval $ac_try) 2>&5 | |
12992 | ac_status=$? | |
12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12994 | (exit $ac_status); }; }; then | |
12995 | ac_cv_header_stdc=yes | |
12996 | else | |
12997 | echo "$as_me: failed program was:" >&5 | |
12998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12999 | ||
13000 | ac_cv_header_stdc=no | |
13001 | fi | |
ac1cb8d3 | 13002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13003 | |
13004 | if test $ac_cv_header_stdc = yes; then | |
13005 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13006 | cat >conftest.$ac_ext <<_ACEOF | |
13007 | /* confdefs.h. */ | |
13008 | _ACEOF | |
13009 | cat confdefs.h >>conftest.$ac_ext | |
13010 | cat >>conftest.$ac_ext <<_ACEOF | |
13011 | /* end confdefs.h. */ | |
13012 | #include <string.h> | |
13013 | ||
13014 | _ACEOF | |
13015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13016 | $EGREP "memchr" >/dev/null 2>&1; then | |
13017 | : | |
13018 | else | |
13019 | ac_cv_header_stdc=no | |
13020 | fi | |
13021 | rm -f conftest* | |
13022 | ||
13023 | fi | |
13024 | ||
13025 | if test $ac_cv_header_stdc = yes; then | |
13026 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13027 | cat >conftest.$ac_ext <<_ACEOF | |
13028 | /* confdefs.h. */ | |
13029 | _ACEOF | |
13030 | cat confdefs.h >>conftest.$ac_ext | |
13031 | cat >>conftest.$ac_ext <<_ACEOF | |
13032 | /* end confdefs.h. */ | |
13033 | #include <stdlib.h> | |
13034 | ||
13035 | _ACEOF | |
13036 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13037 | $EGREP "free" >/dev/null 2>&1; then | |
13038 | : | |
13039 | else | |
13040 | ac_cv_header_stdc=no | |
13041 | fi | |
13042 | rm -f conftest* | |
13043 | ||
13044 | fi | |
13045 | ||
13046 | if test $ac_cv_header_stdc = yes; then | |
13047 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13048 | if test "$cross_compiling" = yes; then | |
13049 | : | |
13050 | else | |
13051 | cat >conftest.$ac_ext <<_ACEOF | |
13052 | /* confdefs.h. */ | |
13053 | _ACEOF | |
13054 | cat confdefs.h >>conftest.$ac_ext | |
13055 | cat >>conftest.$ac_ext <<_ACEOF | |
13056 | /* end confdefs.h. */ | |
13057 | #include <ctype.h> | |
13058 | #if ((' ' & 0x0FF) == 0x020) | |
13059 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13060 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13061 | #else | |
13062 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
13063 | (('a' <= (c) && (c) <= 'i') \ |
13064 | || ('j' <= (c) && (c) <= 'r') \ | |
13065 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
13066 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
13067 | #endif | |
13068 | ||
13069 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
13070 | int | |
13071 | main () | |
13072 | { | |
13073 | int i; | |
13074 | for (i = 0; i < 256; i++) | |
13075 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 13076 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
13077 | exit(2); |
13078 | exit (0); | |
13079 | } | |
13080 | _ACEOF | |
13081 | rm -f conftest$ac_exeext | |
13082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13083 | (eval $ac_link) 2>&5 | |
13084 | ac_status=$? | |
13085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13088 | (eval $ac_try) 2>&5 | |
13089 | ac_status=$? | |
13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13091 | (exit $ac_status); }; }; then | |
13092 | : | |
13093 | else | |
13094 | echo "$as_me: program exited with status $ac_status" >&5 | |
13095 | echo "$as_me: failed program was:" >&5 | |
13096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13097 | ||
13098 | ( exit $ac_status ) | |
13099 | ac_cv_header_stdc=no | |
13100 | fi | |
ac1cb8d3 | 13101 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13102 | fi |
13103 | fi | |
13104 | fi | |
13105 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
13106 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
13107 | if test $ac_cv_header_stdc = yes; then | |
13108 | ||
13109 | cat >>confdefs.h <<\_ACEOF | |
13110 | #define STDC_HEADERS 1 | |
13111 | _ACEOF | |
13112 | ||
13113 | fi | |
13114 | ||
13115 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
13116 | ||
13117 | ||
13118 | ||
13119 | ||
13120 | ||
13121 | ||
13122 | ||
13123 | ||
13124 | ||
13125 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 13126 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
13127 | do |
13128 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13129 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13133 | else | |
13134 | cat >conftest.$ac_ext <<_ACEOF | |
13135 | /* confdefs.h. */ | |
13136 | _ACEOF | |
13137 | cat confdefs.h >>conftest.$ac_ext | |
13138 | cat >>conftest.$ac_ext <<_ACEOF | |
13139 | /* end confdefs.h. */ | |
13140 | $ac_includes_default | |
13141 | ||
13142 | #include <$ac_header> | |
13143 | _ACEOF | |
13144 | rm -f conftest.$ac_objext | |
13145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13146 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13147 | ac_status=$? |
ac1cb8d3 VS |
13148 | grep -v '^ *+' conftest.er1 >conftest.err |
13149 | rm -f conftest.er1 | |
13150 | cat conftest.err >&5 | |
a848cd7e SC |
13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13152 | (exit $ac_status); } && | |
89be85c2 VS |
13153 | { ac_try='test -z "$ac_c_werror_flag" |
13154 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13156 | (eval $ac_try) 2>&5 | |
13157 | ac_status=$? | |
13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13159 | (exit $ac_status); }; } && | |
13160 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13162 | (eval $ac_try) 2>&5 | |
13163 | ac_status=$? | |
13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13165 | (exit $ac_status); }; }; then | |
13166 | eval "$as_ac_Header=yes" | |
13167 | else | |
13168 | echo "$as_me: failed program was:" >&5 | |
13169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13170 | ||
13171 | eval "$as_ac_Header=no" | |
13172 | fi | |
ac1cb8d3 | 13173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13174 | fi |
13175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13176 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13177 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13178 | cat >>confdefs.h <<_ACEOF | |
13179 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13180 | _ACEOF | |
13181 | ||
13182 | fi | |
13183 | ||
13184 | done | |
13185 | ||
13186 | ||
13187 | ||
13188 | for ac_header in stdlib.h | |
13189 | do | |
13190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13196 | fi | |
13197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13199 | else | |
13200 | # Is the header compilable? | |
13201 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13202 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13203 | cat >conftest.$ac_ext <<_ACEOF | |
13204 | /* confdefs.h. */ | |
13205 | _ACEOF | |
13206 | cat confdefs.h >>conftest.$ac_ext | |
13207 | cat >>conftest.$ac_ext <<_ACEOF | |
13208 | /* end confdefs.h. */ | |
13209 | $ac_includes_default | |
13210 | #include <$ac_header> | |
13211 | _ACEOF | |
13212 | rm -f conftest.$ac_objext | |
13213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13214 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13215 | ac_status=$? |
ac1cb8d3 VS |
13216 | grep -v '^ *+' conftest.er1 >conftest.err |
13217 | rm -f conftest.er1 | |
13218 | cat conftest.err >&5 | |
a848cd7e SC |
13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13220 | (exit $ac_status); } && | |
89be85c2 VS |
13221 | { ac_try='test -z "$ac_c_werror_flag" |
13222 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13224 | (eval $ac_try) 2>&5 | |
13225 | ac_status=$? | |
13226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13227 | (exit $ac_status); }; } && | |
13228 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13230 | (eval $ac_try) 2>&5 | |
13231 | ac_status=$? | |
13232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13233 | (exit $ac_status); }; }; then | |
13234 | ac_header_compiler=yes | |
13235 | else | |
13236 | echo "$as_me: failed program was:" >&5 | |
13237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13238 | ||
13239 | ac_header_compiler=no | |
13240 | fi | |
ac1cb8d3 | 13241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13242 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13243 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13244 | ||
13245 | # Is the header present? | |
13246 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13248 | cat >conftest.$ac_ext <<_ACEOF | |
13249 | /* confdefs.h. */ | |
13250 | _ACEOF | |
13251 | cat confdefs.h >>conftest.$ac_ext | |
13252 | cat >>conftest.$ac_ext <<_ACEOF | |
13253 | /* end confdefs.h. */ | |
13254 | #include <$ac_header> | |
13255 | _ACEOF | |
13256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13258 | ac_status=$? | |
13259 | grep -v '^ *+' conftest.er1 >conftest.err | |
13260 | rm -f conftest.er1 | |
13261 | cat conftest.err >&5 | |
13262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13263 | (exit $ac_status); } >/dev/null; then | |
13264 | if test -s conftest.err; then | |
13265 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13266 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13267 | else |
13268 | ac_cpp_err= | |
13269 | fi | |
13270 | else | |
13271 | ac_cpp_err=yes | |
13272 | fi | |
13273 | if test -z "$ac_cpp_err"; then | |
13274 | ac_header_preproc=yes | |
13275 | else | |
13276 | echo "$as_me: failed program was:" >&5 | |
13277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13278 | ||
13279 | ac_header_preproc=no | |
13280 | fi | |
13281 | rm -f conftest.err conftest.$ac_ext | |
13282 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13283 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13284 | ||
13285 | # So? What about this header? | |
ac1cb8d3 VS |
13286 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13287 | yes:no: ) | |
a848cd7e SC |
13288 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13289 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13291 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13292 | ac_header_preproc=yes | |
a848cd7e | 13293 | ;; |
ac1cb8d3 | 13294 | no:yes:* ) |
a848cd7e SC |
13295 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13296 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13297 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13298 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13299 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13300 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13301 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13302 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13305 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13306 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13307 | ( |
13308 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13309 | ## ----------------------------------------- ## |
13310 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13311 | ## ----------------------------------------- ## | |
a848cd7e SC |
13312 | _ASBOX |
13313 | ) | | |
13314 | sed "s/^/$as_me: WARNING: /" >&2 | |
13315 | ;; | |
13316 | esac | |
13317 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13321 | else | |
ac1cb8d3 | 13322 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13323 | fi |
13324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13325 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13326 | ||
13327 | fi | |
13328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13329 | cat >>confdefs.h <<_ACEOF | |
13330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13331 | _ACEOF | |
13332 | ||
13333 | fi | |
13334 | ||
13335 | done | |
13336 | ||
13337 | ||
13338 | for ac_header in malloc.h | |
13339 | do | |
13340 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13346 | fi | |
13347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13348 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13349 | else | |
13350 | # Is the header compilable? | |
13351 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13352 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13353 | cat >conftest.$ac_ext <<_ACEOF | |
13354 | /* confdefs.h. */ | |
13355 | _ACEOF | |
13356 | cat confdefs.h >>conftest.$ac_ext | |
13357 | cat >>conftest.$ac_ext <<_ACEOF | |
13358 | /* end confdefs.h. */ | |
13359 | $ac_includes_default | |
13360 | #include <$ac_header> | |
13361 | _ACEOF | |
13362 | rm -f conftest.$ac_objext | |
13363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13364 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13365 | ac_status=$? |
ac1cb8d3 VS |
13366 | grep -v '^ *+' conftest.er1 >conftest.err |
13367 | rm -f conftest.er1 | |
13368 | cat conftest.err >&5 | |
a848cd7e SC |
13369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13370 | (exit $ac_status); } && | |
89be85c2 VS |
13371 | { ac_try='test -z "$ac_c_werror_flag" |
13372 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13374 | (eval $ac_try) 2>&5 | |
13375 | ac_status=$? | |
13376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13377 | (exit $ac_status); }; } && | |
13378 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13380 | (eval $ac_try) 2>&5 | |
13381 | ac_status=$? | |
13382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13383 | (exit $ac_status); }; }; then | |
13384 | ac_header_compiler=yes | |
13385 | else | |
13386 | echo "$as_me: failed program was:" >&5 | |
13387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13388 | ||
13389 | ac_header_compiler=no | |
13390 | fi | |
ac1cb8d3 | 13391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13392 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13393 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13394 | ||
13395 | # Is the header present? | |
13396 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13397 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13398 | cat >conftest.$ac_ext <<_ACEOF | |
13399 | /* confdefs.h. */ | |
13400 | _ACEOF | |
13401 | cat confdefs.h >>conftest.$ac_ext | |
13402 | cat >>conftest.$ac_ext <<_ACEOF | |
13403 | /* end confdefs.h. */ | |
13404 | #include <$ac_header> | |
13405 | _ACEOF | |
13406 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13407 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13408 | ac_status=$? | |
13409 | grep -v '^ *+' conftest.er1 >conftest.err | |
13410 | rm -f conftest.er1 | |
13411 | cat conftest.err >&5 | |
13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13413 | (exit $ac_status); } >/dev/null; then | |
13414 | if test -s conftest.err; then | |
13415 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13416 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13417 | else |
13418 | ac_cpp_err= | |
13419 | fi | |
13420 | else | |
13421 | ac_cpp_err=yes | |
13422 | fi | |
13423 | if test -z "$ac_cpp_err"; then | |
13424 | ac_header_preproc=yes | |
13425 | else | |
13426 | echo "$as_me: failed program was:" >&5 | |
13427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13428 | ||
13429 | ac_header_preproc=no | |
13430 | fi | |
13431 | rm -f conftest.err conftest.$ac_ext | |
13432 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13433 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13434 | ||
13435 | # So? What about this header? | |
ac1cb8d3 VS |
13436 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13437 | yes:no: ) | |
a848cd7e SC |
13438 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13439 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13441 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13442 | ac_header_preproc=yes | |
a848cd7e | 13443 | ;; |
ac1cb8d3 | 13444 | no:yes:* ) |
a848cd7e SC |
13445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13449 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13450 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13451 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13452 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13454 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13455 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13456 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13457 | ( |
13458 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13459 | ## ----------------------------------------- ## |
13460 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13461 | ## ----------------------------------------- ## | |
a848cd7e SC |
13462 | _ASBOX |
13463 | ) | | |
13464 | sed "s/^/$as_me: WARNING: /" >&2 | |
13465 | ;; | |
13466 | esac | |
13467 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13471 | else | |
ac1cb8d3 | 13472 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13473 | fi |
13474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13475 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13476 | ||
13477 | fi | |
13478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13479 | cat >>confdefs.h <<_ACEOF | |
13480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13481 | _ACEOF | |
13482 | ||
13483 | fi | |
13484 | ||
13485 | done | |
13486 | ||
13487 | ||
13488 | for ac_header in unistd.h | |
13489 | do | |
13490 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13492 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13496 | fi | |
13497 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13498 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13499 | else | |
13500 | # Is the header compilable? | |
13501 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13502 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13503 | cat >conftest.$ac_ext <<_ACEOF | |
13504 | /* confdefs.h. */ | |
13505 | _ACEOF | |
13506 | cat confdefs.h >>conftest.$ac_ext | |
13507 | cat >>conftest.$ac_ext <<_ACEOF | |
13508 | /* end confdefs.h. */ | |
13509 | $ac_includes_default | |
13510 | #include <$ac_header> | |
13511 | _ACEOF | |
13512 | rm -f conftest.$ac_objext | |
13513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13514 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13515 | ac_status=$? |
ac1cb8d3 VS |
13516 | grep -v '^ *+' conftest.er1 >conftest.err |
13517 | rm -f conftest.er1 | |
13518 | cat conftest.err >&5 | |
a848cd7e SC |
13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13520 | (exit $ac_status); } && | |
89be85c2 VS |
13521 | { ac_try='test -z "$ac_c_werror_flag" |
13522 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13524 | (eval $ac_try) 2>&5 | |
13525 | ac_status=$? | |
13526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13527 | (exit $ac_status); }; } && | |
13528 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13530 | (eval $ac_try) 2>&5 | |
13531 | ac_status=$? | |
13532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13533 | (exit $ac_status); }; }; then | |
13534 | ac_header_compiler=yes | |
13535 | else | |
13536 | echo "$as_me: failed program was:" >&5 | |
13537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13538 | ||
13539 | ac_header_compiler=no | |
13540 | fi | |
ac1cb8d3 | 13541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13542 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13543 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13544 | ||
13545 | # Is the header present? | |
13546 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13547 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13548 | cat >conftest.$ac_ext <<_ACEOF | |
13549 | /* confdefs.h. */ | |
13550 | _ACEOF | |
13551 | cat confdefs.h >>conftest.$ac_ext | |
13552 | cat >>conftest.$ac_ext <<_ACEOF | |
13553 | /* end confdefs.h. */ | |
13554 | #include <$ac_header> | |
13555 | _ACEOF | |
13556 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13557 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13558 | ac_status=$? | |
13559 | grep -v '^ *+' conftest.er1 >conftest.err | |
13560 | rm -f conftest.er1 | |
13561 | cat conftest.err >&5 | |
13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13563 | (exit $ac_status); } >/dev/null; then | |
13564 | if test -s conftest.err; then | |
13565 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13566 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13567 | else |
13568 | ac_cpp_err= | |
13569 | fi | |
13570 | else | |
13571 | ac_cpp_err=yes | |
13572 | fi | |
13573 | if test -z "$ac_cpp_err"; then | |
13574 | ac_header_preproc=yes | |
13575 | else | |
13576 | echo "$as_me: failed program was:" >&5 | |
13577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13578 | ||
13579 | ac_header_preproc=no | |
13580 | fi | |
13581 | rm -f conftest.err conftest.$ac_ext | |
13582 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13583 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13584 | ||
13585 | # So? What about this header? | |
ac1cb8d3 VS |
13586 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13587 | yes:no: ) | |
a848cd7e SC |
13588 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13589 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13591 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13592 | ac_header_preproc=yes | |
a848cd7e | 13593 | ;; |
ac1cb8d3 | 13594 | no:yes:* ) |
a848cd7e SC |
13595 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13596 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13597 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13598 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13599 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13600 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13601 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13602 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13603 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13604 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13605 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13606 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13607 | ( |
13608 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13609 | ## ----------------------------------------- ## |
13610 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13611 | ## ----------------------------------------- ## | |
a848cd7e SC |
13612 | _ASBOX |
13613 | ) | | |
13614 | sed "s/^/$as_me: WARNING: /" >&2 | |
13615 | ;; | |
13616 | esac | |
13617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13621 | else | |
ac1cb8d3 | 13622 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13623 | fi |
13624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13625 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13626 | ||
13627 | fi | |
13628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13629 | cat >>confdefs.h <<_ACEOF | |
13630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13631 | _ACEOF | |
13632 | ||
13633 | fi | |
13634 | ||
13635 | done | |
13636 | ||
13637 | ||
13638 | for ac_header in wchar.h | |
13639 | do | |
13640 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13642 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13646 | fi | |
13647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13649 | else | |
13650 | # Is the header compilable? | |
13651 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13652 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13653 | cat >conftest.$ac_ext <<_ACEOF | |
13654 | /* confdefs.h. */ | |
13655 | _ACEOF | |
13656 | cat confdefs.h >>conftest.$ac_ext | |
13657 | cat >>conftest.$ac_ext <<_ACEOF | |
13658 | /* end confdefs.h. */ | |
13659 | $ac_includes_default | |
13660 | #include <$ac_header> | |
13661 | _ACEOF | |
13662 | rm -f conftest.$ac_objext | |
13663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13664 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13665 | ac_status=$? |
ac1cb8d3 VS |
13666 | grep -v '^ *+' conftest.er1 >conftest.err |
13667 | rm -f conftest.er1 | |
13668 | cat conftest.err >&5 | |
a848cd7e SC |
13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13670 | (exit $ac_status); } && | |
89be85c2 VS |
13671 | { ac_try='test -z "$ac_c_werror_flag" |
13672 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13674 | (eval $ac_try) 2>&5 | |
13675 | ac_status=$? | |
13676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13677 | (exit $ac_status); }; } && | |
13678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13680 | (eval $ac_try) 2>&5 | |
13681 | ac_status=$? | |
13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13683 | (exit $ac_status); }; }; then | |
13684 | ac_header_compiler=yes | |
13685 | else | |
13686 | echo "$as_me: failed program was:" >&5 | |
13687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13688 | ||
13689 | ac_header_compiler=no | |
13690 | fi | |
ac1cb8d3 | 13691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13692 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13693 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13694 | ||
13695 | # Is the header present? | |
13696 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13697 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13698 | cat >conftest.$ac_ext <<_ACEOF | |
13699 | /* confdefs.h. */ | |
13700 | _ACEOF | |
13701 | cat confdefs.h >>conftest.$ac_ext | |
13702 | cat >>conftest.$ac_ext <<_ACEOF | |
13703 | /* end confdefs.h. */ | |
13704 | #include <$ac_header> | |
13705 | _ACEOF | |
13706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13708 | ac_status=$? | |
13709 | grep -v '^ *+' conftest.er1 >conftest.err | |
13710 | rm -f conftest.er1 | |
13711 | cat conftest.err >&5 | |
13712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13713 | (exit $ac_status); } >/dev/null; then | |
13714 | if test -s conftest.err; then | |
13715 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13716 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13717 | else |
13718 | ac_cpp_err= | |
13719 | fi | |
13720 | else | |
13721 | ac_cpp_err=yes | |
13722 | fi | |
13723 | if test -z "$ac_cpp_err"; then | |
13724 | ac_header_preproc=yes | |
13725 | else | |
13726 | echo "$as_me: failed program was:" >&5 | |
13727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13728 | ||
13729 | ac_header_preproc=no | |
13730 | fi | |
13731 | rm -f conftest.err conftest.$ac_ext | |
13732 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13733 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13734 | ||
13735 | # So? What about this header? | |
ac1cb8d3 VS |
13736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13737 | yes:no: ) | |
a848cd7e SC |
13738 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13739 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13741 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13742 | ac_header_preproc=yes | |
a848cd7e | 13743 | ;; |
ac1cb8d3 | 13744 | no:yes:* ) |
a848cd7e SC |
13745 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13746 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13747 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13748 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13749 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13750 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13751 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13752 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13754 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13755 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13756 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13757 | ( |
13758 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13759 | ## ----------------------------------------- ## |
13760 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13761 | ## ----------------------------------------- ## | |
a848cd7e SC |
13762 | _ASBOX |
13763 | ) | | |
13764 | sed "s/^/$as_me: WARNING: /" >&2 | |
13765 | ;; | |
13766 | esac | |
13767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13771 | else | |
ac1cb8d3 | 13772 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13773 | fi |
13774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13776 | ||
13777 | fi | |
13778 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13779 | cat >>confdefs.h <<_ACEOF | |
13780 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13781 | _ACEOF | |
13782 | ||
13783 | fi | |
13784 | ||
13785 | done | |
13786 | ||
13787 | ||
13788 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13789 | ||
13790 | for ac_header in wcstr.h | |
13791 | do | |
13792 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13794 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13795 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13798 | fi | |
13799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13800 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13801 | else | |
13802 | # Is the header compilable? | |
13803 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13804 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13805 | cat >conftest.$ac_ext <<_ACEOF | |
13806 | /* confdefs.h. */ | |
13807 | _ACEOF | |
13808 | cat confdefs.h >>conftest.$ac_ext | |
13809 | cat >>conftest.$ac_ext <<_ACEOF | |
13810 | /* end confdefs.h. */ | |
13811 | $ac_includes_default | |
13812 | #include <$ac_header> | |
13813 | _ACEOF | |
13814 | rm -f conftest.$ac_objext | |
13815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13816 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13817 | ac_status=$? |
ac1cb8d3 VS |
13818 | grep -v '^ *+' conftest.er1 >conftest.err |
13819 | rm -f conftest.er1 | |
13820 | cat conftest.err >&5 | |
a848cd7e SC |
13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13822 | (exit $ac_status); } && | |
89be85c2 VS |
13823 | { ac_try='test -z "$ac_c_werror_flag" |
13824 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13826 | (eval $ac_try) 2>&5 | |
13827 | ac_status=$? | |
13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13829 | (exit $ac_status); }; } && | |
13830 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13832 | (eval $ac_try) 2>&5 | |
13833 | ac_status=$? | |
13834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13835 | (exit $ac_status); }; }; then | |
13836 | ac_header_compiler=yes | |
13837 | else | |
13838 | echo "$as_me: failed program was:" >&5 | |
13839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13840 | ||
13841 | ac_header_compiler=no | |
13842 | fi | |
ac1cb8d3 | 13843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13844 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13845 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13846 | ||
13847 | # Is the header present? | |
13848 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13849 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13850 | cat >conftest.$ac_ext <<_ACEOF | |
13851 | /* confdefs.h. */ | |
13852 | _ACEOF | |
13853 | cat confdefs.h >>conftest.$ac_ext | |
13854 | cat >>conftest.$ac_ext <<_ACEOF | |
13855 | /* end confdefs.h. */ | |
13856 | #include <$ac_header> | |
13857 | _ACEOF | |
13858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13860 | ac_status=$? | |
13861 | grep -v '^ *+' conftest.er1 >conftest.err | |
13862 | rm -f conftest.er1 | |
13863 | cat conftest.err >&5 | |
13864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13865 | (exit $ac_status); } >/dev/null; then | |
13866 | if test -s conftest.err; then | |
13867 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13868 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13869 | else |
13870 | ac_cpp_err= | |
13871 | fi | |
13872 | else | |
13873 | ac_cpp_err=yes | |
13874 | fi | |
13875 | if test -z "$ac_cpp_err"; then | |
13876 | ac_header_preproc=yes | |
13877 | else | |
13878 | echo "$as_me: failed program was:" >&5 | |
13879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13880 | ||
13881 | ac_header_preproc=no | |
13882 | fi | |
13883 | rm -f conftest.err conftest.$ac_ext | |
13884 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13885 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13886 | ||
13887 | # So? What about this header? | |
ac1cb8d3 VS |
13888 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13889 | yes:no: ) | |
a848cd7e SC |
13890 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13891 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13893 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13894 | ac_header_preproc=yes | |
a848cd7e | 13895 | ;; |
ac1cb8d3 | 13896 | no:yes:* ) |
a848cd7e SC |
13897 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13898 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13899 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13900 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13901 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13902 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13903 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13904 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13906 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13907 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13908 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13909 | ( |
13910 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13911 | ## ----------------------------------------- ## |
13912 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13913 | ## ----------------------------------------- ## | |
a848cd7e SC |
13914 | _ASBOX |
13915 | ) | | |
13916 | sed "s/^/$as_me: WARNING: /" >&2 | |
13917 | ;; | |
13918 | esac | |
13919 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13923 | else | |
ac1cb8d3 | 13924 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13925 | fi |
13926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13927 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13928 | ||
13929 | fi | |
13930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13931 | cat >>confdefs.h <<_ACEOF | |
13932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13933 | _ACEOF | |
13934 | ||
13935 | fi | |
13936 | ||
13937 | done | |
13938 | ||
13939 | fi | |
13940 | ||
13941 | ||
13942 | for ac_header in fnmatch.h | |
13943 | do | |
13944 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13946 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13947 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13948 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13950 | fi | |
13951 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13952 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13953 | else | |
13954 | # Is the header compilable? | |
13955 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13956 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13957 | cat >conftest.$ac_ext <<_ACEOF | |
13958 | /* confdefs.h. */ | |
13959 | _ACEOF | |
13960 | cat confdefs.h >>conftest.$ac_ext | |
13961 | cat >>conftest.$ac_ext <<_ACEOF | |
13962 | /* end confdefs.h. */ | |
13963 | $ac_includes_default | |
13964 | #include <$ac_header> | |
13965 | _ACEOF | |
13966 | rm -f conftest.$ac_objext | |
13967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13968 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13969 | ac_status=$? |
ac1cb8d3 VS |
13970 | grep -v '^ *+' conftest.er1 >conftest.err |
13971 | rm -f conftest.er1 | |
13972 | cat conftest.err >&5 | |
a848cd7e SC |
13973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13974 | (exit $ac_status); } && | |
89be85c2 VS |
13975 | { ac_try='test -z "$ac_c_werror_flag" |
13976 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13978 | (eval $ac_try) 2>&5 | |
13979 | ac_status=$? | |
13980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13981 | (exit $ac_status); }; } && | |
13982 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13984 | (eval $ac_try) 2>&5 | |
13985 | ac_status=$? | |
13986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13987 | (exit $ac_status); }; }; then | |
13988 | ac_header_compiler=yes | |
13989 | else | |
13990 | echo "$as_me: failed program was:" >&5 | |
13991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13992 | ||
13993 | ac_header_compiler=no | |
13994 | fi | |
ac1cb8d3 | 13995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13996 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13997 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13998 | ||
13999 | # Is the header present? | |
14000 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14001 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14002 | cat >conftest.$ac_ext <<_ACEOF | |
14003 | /* confdefs.h. */ | |
14004 | _ACEOF | |
14005 | cat confdefs.h >>conftest.$ac_ext | |
14006 | cat >>conftest.$ac_ext <<_ACEOF | |
14007 | /* end confdefs.h. */ | |
14008 | #include <$ac_header> | |
14009 | _ACEOF | |
14010 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14011 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14012 | ac_status=$? | |
14013 | grep -v '^ *+' conftest.er1 >conftest.err | |
14014 | rm -f conftest.er1 | |
14015 | cat conftest.err >&5 | |
14016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14017 | (exit $ac_status); } >/dev/null; then | |
14018 | if test -s conftest.err; then | |
14019 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14020 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14021 | else |
14022 | ac_cpp_err= | |
14023 | fi | |
14024 | else | |
14025 | ac_cpp_err=yes | |
14026 | fi | |
14027 | if test -z "$ac_cpp_err"; then | |
14028 | ac_header_preproc=yes | |
14029 | else | |
14030 | echo "$as_me: failed program was:" >&5 | |
14031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14032 | ||
14033 | ac_header_preproc=no | |
14034 | fi | |
14035 | rm -f conftest.err conftest.$ac_ext | |
14036 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14037 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14038 | ||
14039 | # So? What about this header? | |
ac1cb8d3 VS |
14040 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14041 | yes:no: ) | |
a848cd7e SC |
14042 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14043 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14044 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14045 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14046 | ac_header_preproc=yes | |
a848cd7e | 14047 | ;; |
ac1cb8d3 | 14048 | no:yes:* ) |
a848cd7e SC |
14049 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14050 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14051 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14052 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14053 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14054 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14055 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14056 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14057 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14058 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14059 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14060 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14061 | ( |
14062 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14063 | ## ----------------------------------------- ## |
14064 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14065 | ## ----------------------------------------- ## | |
a848cd7e SC |
14066 | _ASBOX |
14067 | ) | | |
14068 | sed "s/^/$as_me: WARNING: /" >&2 | |
14069 | ;; | |
14070 | esac | |
14071 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14075 | else | |
ac1cb8d3 | 14076 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14077 | fi |
14078 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14079 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14080 | ||
14081 | fi | |
14082 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14083 | cat >>confdefs.h <<_ACEOF | |
14084 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14085 | _ACEOF | |
14086 | ||
14087 | fi | |
14088 | ||
14089 | done | |
14090 | ||
14091 | ||
14092 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
14093 | ||
14094 | for ac_func in fnmatch | |
14095 | do | |
14096 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14097 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14098 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14099 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14101 | else | |
14102 | cat >conftest.$ac_ext <<_ACEOF | |
14103 | /* confdefs.h. */ | |
14104 | _ACEOF | |
14105 | cat confdefs.h >>conftest.$ac_ext | |
14106 | cat >>conftest.$ac_ext <<_ACEOF | |
14107 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
14108 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14109 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14110 | #define $ac_func innocuous_$ac_func | |
14111 | ||
a848cd7e SC |
14112 | /* System header to define __stub macros and hopefully few prototypes, |
14113 | which can conflict with char $ac_func (); below. | |
14114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14115 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 14116 | |
a848cd7e SC |
14117 | #ifdef __STDC__ |
14118 | # include <limits.h> | |
14119 | #else | |
14120 | # include <assert.h> | |
14121 | #endif | |
ac1cb8d3 VS |
14122 | |
14123 | #undef $ac_func | |
14124 | ||
a848cd7e SC |
14125 | /* Override any gcc2 internal prototype to avoid an error. */ |
14126 | #ifdef __cplusplus | |
14127 | extern "C" | |
14128 | { | |
14129 | #endif | |
14130 | /* We use char because int might match the return type of a gcc2 | |
14131 | builtin and then its argument prototype would still apply. */ | |
14132 | char $ac_func (); | |
14133 | /* The GNU C library defines this for functions which it implements | |
14134 | to always fail with ENOSYS. Some functions are actually named | |
14135 | something starting with __ and the normal name is an alias. */ | |
14136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14137 | choke me | |
14138 | #else | |
14139 | char (*f) () = $ac_func; | |
14140 | #endif | |
14141 | #ifdef __cplusplus | |
14142 | } | |
14143 | #endif | |
14144 | ||
14145 | int | |
14146 | main () | |
14147 | { | |
14148 | return f != $ac_func; | |
14149 | ; | |
14150 | return 0; | |
14151 | } | |
14152 | _ACEOF | |
14153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14155 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14156 | ac_status=$? |
ac1cb8d3 VS |
14157 | grep -v '^ *+' conftest.er1 >conftest.err |
14158 | rm -f conftest.er1 | |
14159 | cat conftest.err >&5 | |
a848cd7e SC |
14160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14161 | (exit $ac_status); } && | |
89be85c2 VS |
14162 | { ac_try='test -z "$ac_c_werror_flag" |
14163 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14165 | (eval $ac_try) 2>&5 | |
14166 | ac_status=$? | |
14167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14168 | (exit $ac_status); }; } && | |
14169 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14171 | (eval $ac_try) 2>&5 | |
14172 | ac_status=$? | |
14173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14174 | (exit $ac_status); }; }; then | |
14175 | eval "$as_ac_var=yes" | |
14176 | else | |
14177 | echo "$as_me: failed program was:" >&5 | |
14178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14179 | ||
14180 | eval "$as_ac_var=no" | |
14181 | fi | |
ac1cb8d3 VS |
14182 | rm -f conftest.err conftest.$ac_objext \ |
14183 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14184 | fi |
14185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14186 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14187 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14188 | cat >>confdefs.h <<_ACEOF | |
14189 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14190 | _ACEOF | |
14191 | ||
14192 | fi | |
14193 | done | |
14194 | ||
14195 | fi | |
14196 | ||
14197 | ||
14198 | for ac_header in langinfo.h | |
14199 | do | |
14200 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14201 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14202 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14206 | fi | |
14207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14208 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14209 | else | |
14210 | # Is the header compilable? | |
14211 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14212 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14213 | cat >conftest.$ac_ext <<_ACEOF | |
14214 | /* confdefs.h. */ | |
14215 | _ACEOF | |
14216 | cat confdefs.h >>conftest.$ac_ext | |
14217 | cat >>conftest.$ac_ext <<_ACEOF | |
14218 | /* end confdefs.h. */ | |
14219 | $ac_includes_default | |
14220 | #include <$ac_header> | |
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); } && | |
89be85c2 VS |
14231 | { ac_try='test -z "$ac_c_werror_flag" |
14232 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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_header_compiler=yes | |
14245 | else | |
14246 | echo "$as_me: failed program was:" >&5 | |
14247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14248 | ||
14249 | ac_header_compiler=no | |
14250 | fi | |
ac1cb8d3 | 14251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14252 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14253 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14254 | ||
14255 | # Is the header present? | |
14256 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14257 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14258 | cat >conftest.$ac_ext <<_ACEOF | |
14259 | /* confdefs.h. */ | |
14260 | _ACEOF | |
14261 | cat confdefs.h >>conftest.$ac_ext | |
14262 | cat >>conftest.$ac_ext <<_ACEOF | |
14263 | /* end confdefs.h. */ | |
14264 | #include <$ac_header> | |
14265 | _ACEOF | |
14266 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14267 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14268 | ac_status=$? | |
14269 | grep -v '^ *+' conftest.er1 >conftest.err | |
14270 | rm -f conftest.er1 | |
14271 | cat conftest.err >&5 | |
14272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14273 | (exit $ac_status); } >/dev/null; then | |
14274 | if test -s conftest.err; then | |
14275 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14276 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14277 | else |
14278 | ac_cpp_err= | |
14279 | fi | |
14280 | else | |
14281 | ac_cpp_err=yes | |
14282 | fi | |
14283 | if test -z "$ac_cpp_err"; then | |
14284 | ac_header_preproc=yes | |
14285 | else | |
14286 | echo "$as_me: failed program was:" >&5 | |
14287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14288 | ||
14289 | ac_header_preproc=no | |
14290 | fi | |
14291 | rm -f conftest.err conftest.$ac_ext | |
14292 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14293 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14294 | ||
14295 | # So? What about this header? | |
ac1cb8d3 VS |
14296 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14297 | yes:no: ) | |
a848cd7e SC |
14298 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14299 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14300 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14301 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14302 | ac_header_preproc=yes | |
a848cd7e | 14303 | ;; |
ac1cb8d3 | 14304 | no:yes:* ) |
a848cd7e SC |
14305 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14306 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14307 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14308 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14309 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14310 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14311 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14312 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14313 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14314 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14315 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14316 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14317 | ( |
14318 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14319 | ## ----------------------------------------- ## |
14320 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14321 | ## ----------------------------------------- ## | |
a848cd7e SC |
14322 | _ASBOX |
14323 | ) | | |
14324 | sed "s/^/$as_me: WARNING: /" >&2 | |
14325 | ;; | |
14326 | esac | |
14327 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14328 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14331 | else | |
ac1cb8d3 | 14332 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14333 | fi |
14334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14335 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14336 | ||
14337 | fi | |
14338 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14339 | cat >>confdefs.h <<_ACEOF | |
14340 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14341 | _ACEOF | |
14342 | ||
14343 | fi | |
14344 | ||
14345 | done | |
14346 | ||
14347 | ||
14348 | case "${host}" in | |
14349 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
14350 | if test $ac_cv_header_langinfo_h = "yes" \ |
14351 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
14352 | -o "$wx_cv_gccversion" = "EMX3" \ | |
14353 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
14354 | LIBS="$LIBS -lintl" |
14355 | fi | |
14356 | ;; | |
14357 | esac | |
14358 | ||
14359 | if test "$wxUSE_GUI" = "yes"; then | |
14360 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14361 | ||
14362 | for ac_header in X11/Xlib.h | |
14363 | do | |
14364 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14366 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14370 | fi | |
14371 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14372 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14373 | else | |
14374 | # Is the header compilable? | |
14375 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14376 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14377 | cat >conftest.$ac_ext <<_ACEOF | |
14378 | /* confdefs.h. */ | |
14379 | _ACEOF | |
14380 | cat confdefs.h >>conftest.$ac_ext | |
14381 | cat >>conftest.$ac_ext <<_ACEOF | |
14382 | /* end confdefs.h. */ | |
14383 | $ac_includes_default | |
14384 | #include <$ac_header> | |
14385 | _ACEOF | |
14386 | rm -f conftest.$ac_objext | |
14387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14388 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14389 | ac_status=$? |
ac1cb8d3 VS |
14390 | grep -v '^ *+' conftest.er1 >conftest.err |
14391 | rm -f conftest.er1 | |
14392 | cat conftest.err >&5 | |
a848cd7e SC |
14393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14394 | (exit $ac_status); } && | |
89be85c2 VS |
14395 | { ac_try='test -z "$ac_c_werror_flag" |
14396 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14398 | (eval $ac_try) 2>&5 | |
14399 | ac_status=$? | |
14400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14401 | (exit $ac_status); }; } && | |
14402 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14404 | (eval $ac_try) 2>&5 | |
14405 | ac_status=$? | |
14406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14407 | (exit $ac_status); }; }; then | |
14408 | ac_header_compiler=yes | |
14409 | else | |
14410 | echo "$as_me: failed program was:" >&5 | |
14411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14412 | ||
14413 | ac_header_compiler=no | |
14414 | fi | |
ac1cb8d3 | 14415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14416 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14417 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14418 | ||
14419 | # Is the header present? | |
14420 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14421 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14422 | cat >conftest.$ac_ext <<_ACEOF | |
14423 | /* confdefs.h. */ | |
14424 | _ACEOF | |
14425 | cat confdefs.h >>conftest.$ac_ext | |
14426 | cat >>conftest.$ac_ext <<_ACEOF | |
14427 | /* end confdefs.h. */ | |
14428 | #include <$ac_header> | |
14429 | _ACEOF | |
14430 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14431 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14432 | ac_status=$? | |
14433 | grep -v '^ *+' conftest.er1 >conftest.err | |
14434 | rm -f conftest.er1 | |
14435 | cat conftest.err >&5 | |
14436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14437 | (exit $ac_status); } >/dev/null; then | |
14438 | if test -s conftest.err; then | |
14439 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14440 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14441 | else |
14442 | ac_cpp_err= | |
14443 | fi | |
14444 | else | |
14445 | ac_cpp_err=yes | |
14446 | fi | |
14447 | if test -z "$ac_cpp_err"; then | |
14448 | ac_header_preproc=yes | |
14449 | else | |
14450 | echo "$as_me: failed program was:" >&5 | |
14451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14452 | ||
14453 | ac_header_preproc=no | |
14454 | fi | |
14455 | rm -f conftest.err conftest.$ac_ext | |
14456 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14457 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14458 | ||
14459 | # So? What about this header? | |
ac1cb8d3 VS |
14460 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14461 | yes:no: ) | |
a848cd7e SC |
14462 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14463 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14465 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14466 | ac_header_preproc=yes | |
a848cd7e | 14467 | ;; |
ac1cb8d3 | 14468 | no:yes:* ) |
a848cd7e SC |
14469 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14470 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14471 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14472 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14473 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14474 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14475 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14476 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14477 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14478 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14479 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14480 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14481 | ( |
14482 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14483 | ## ----------------------------------------- ## |
14484 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14485 | ## ----------------------------------------- ## | |
a848cd7e SC |
14486 | _ASBOX |
14487 | ) | | |
14488 | sed "s/^/$as_me: WARNING: /" >&2 | |
14489 | ;; | |
14490 | esac | |
14491 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14492 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14495 | else | |
ac1cb8d3 | 14496 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14497 | fi |
14498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14500 | ||
14501 | fi | |
14502 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14503 | cat >>confdefs.h <<_ACEOF | |
14504 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14505 | _ACEOF | |
14506 | ||
14507 | fi | |
14508 | ||
14509 | done | |
14510 | ||
14511 | ||
14512 | for ac_header in X11/XKBlib.h | |
14513 | do | |
14514 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14515 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14517 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14519 | else | |
14520 | cat >conftest.$ac_ext <<_ACEOF | |
14521 | /* confdefs.h. */ | |
14522 | _ACEOF | |
14523 | cat confdefs.h >>conftest.$ac_ext | |
14524 | cat >>conftest.$ac_ext <<_ACEOF | |
14525 | /* end confdefs.h. */ | |
14526 | ||
14527 | #if HAVE_X11_XLIB_H | |
14528 | #include <X11/Xlib.h> | |
14529 | #endif | |
14530 | ||
14531 | ||
14532 | #include <$ac_header> | |
14533 | _ACEOF | |
14534 | rm -f conftest.$ac_objext | |
14535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14536 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14537 | ac_status=$? |
ac1cb8d3 VS |
14538 | grep -v '^ *+' conftest.er1 >conftest.err |
14539 | rm -f conftest.er1 | |
14540 | cat conftest.err >&5 | |
a848cd7e SC |
14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14542 | (exit $ac_status); } && | |
89be85c2 VS |
14543 | { ac_try='test -z "$ac_c_werror_flag" |
14544 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14546 | (eval $ac_try) 2>&5 | |
14547 | ac_status=$? | |
14548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14549 | (exit $ac_status); }; } && | |
14550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14552 | (eval $ac_try) 2>&5 | |
14553 | ac_status=$? | |
14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14555 | (exit $ac_status); }; }; then | |
14556 | eval "$as_ac_Header=yes" | |
14557 | else | |
14558 | echo "$as_me: failed program was:" >&5 | |
14559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14560 | ||
14561 | eval "$as_ac_Header=no" | |
14562 | fi | |
ac1cb8d3 | 14563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14564 | fi |
14565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14567 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14568 | cat >>confdefs.h <<_ACEOF | |
14569 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14570 | _ACEOF | |
14571 | ||
14572 | fi | |
14573 | ||
14574 | done | |
14575 | ||
14576 | fi | |
14577 | fi | |
14578 | ||
14579 | ||
14580 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14581 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14582 | if test "${ac_cv_c_const+set}" = set; then | |
14583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14584 | else | |
14585 | cat >conftest.$ac_ext <<_ACEOF | |
14586 | /* confdefs.h. */ | |
14587 | _ACEOF | |
14588 | cat confdefs.h >>conftest.$ac_ext | |
14589 | cat >>conftest.$ac_ext <<_ACEOF | |
14590 | /* end confdefs.h. */ | |
14591 | ||
14592 | int | |
14593 | main () | |
14594 | { | |
14595 | /* FIXME: Include the comments suggested by Paul. */ | |
14596 | #ifndef __cplusplus | |
14597 | /* Ultrix mips cc rejects this. */ | |
14598 | typedef int charset[2]; | |
14599 | const charset x; | |
14600 | /* SunOS 4.1.1 cc rejects this. */ | |
14601 | char const *const *ccp; | |
14602 | char **p; | |
14603 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14604 | struct point {int x, y;}; | |
14605 | static struct point const zero = {0,0}; | |
14606 | /* AIX XL C 1.02.0.0 rejects this. | |
14607 | It does not let you subtract one const X* pointer from another in | |
14608 | an arm of an if-expression whose if-part is not a constant | |
14609 | expression */ | |
14610 | const char *g = "string"; | |
14611 | ccp = &g + (g ? g-g : 0); | |
14612 | /* HPUX 7.0 cc rejects these. */ | |
14613 | ++ccp; | |
14614 | p = (char**) ccp; | |
14615 | ccp = (char const *const *) p; | |
14616 | { /* SCO 3.2v4 cc rejects this. */ | |
14617 | char *t; | |
14618 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14619 | ||
14620 | *t++ = 0; | |
14621 | } | |
14622 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14623 | int x[] = {25, 17}; | |
14624 | const int *foo = &x[0]; | |
14625 | ++foo; | |
14626 | } | |
14627 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14628 | typedef const int *iptr; | |
14629 | iptr p = 0; | |
14630 | ++p; | |
14631 | } | |
14632 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14633 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14634 | struct s { int j; const int *ap[3]; }; | |
14635 | struct s *b; b->j = 5; | |
14636 | } | |
14637 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14638 | const int foo = 10; | |
14639 | } | |
14640 | #endif | |
14641 | ||
14642 | ; | |
14643 | return 0; | |
14644 | } | |
14645 | _ACEOF | |
14646 | rm -f conftest.$ac_objext | |
14647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14648 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14649 | ac_status=$? |
ac1cb8d3 VS |
14650 | grep -v '^ *+' conftest.er1 >conftest.err |
14651 | rm -f conftest.er1 | |
14652 | cat conftest.err >&5 | |
a848cd7e SC |
14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14654 | (exit $ac_status); } && | |
89be85c2 VS |
14655 | { ac_try='test -z "$ac_c_werror_flag" |
14656 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14658 | (eval $ac_try) 2>&5 | |
14659 | ac_status=$? | |
14660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14661 | (exit $ac_status); }; } && | |
14662 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14664 | (eval $ac_try) 2>&5 | |
14665 | ac_status=$? | |
14666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14667 | (exit $ac_status); }; }; then | |
14668 | ac_cv_c_const=yes | |
14669 | else | |
14670 | echo "$as_me: failed program was:" >&5 | |
14671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14672 | ||
14673 | ac_cv_c_const=no | |
14674 | fi | |
ac1cb8d3 | 14675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14676 | fi |
14677 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14678 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14679 | if test $ac_cv_c_const = no; then | |
14680 | ||
14681 | cat >>confdefs.h <<\_ACEOF | |
14682 | #define const | |
14683 | _ACEOF | |
14684 | ||
14685 | fi | |
14686 | ||
14687 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14688 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14689 | if test "${ac_cv_c_inline+set}" = set; then | |
14690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14691 | else | |
14692 | ac_cv_c_inline=no | |
14693 | for ac_kw in inline __inline__ __inline; do | |
14694 | cat >conftest.$ac_ext <<_ACEOF | |
14695 | /* confdefs.h. */ | |
14696 | _ACEOF | |
14697 | cat confdefs.h >>conftest.$ac_ext | |
14698 | cat >>conftest.$ac_ext <<_ACEOF | |
14699 | /* end confdefs.h. */ | |
14700 | #ifndef __cplusplus | |
14701 | typedef int foo_t; | |
14702 | static $ac_kw foo_t static_foo () {return 0; } | |
14703 | $ac_kw foo_t foo () {return 0; } | |
14704 | #endif | |
14705 | ||
14706 | _ACEOF | |
14707 | rm -f conftest.$ac_objext | |
14708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14709 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14710 | ac_status=$? |
ac1cb8d3 VS |
14711 | grep -v '^ *+' conftest.er1 >conftest.err |
14712 | rm -f conftest.er1 | |
14713 | cat conftest.err >&5 | |
a848cd7e SC |
14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14715 | (exit $ac_status); } && | |
89be85c2 VS |
14716 | { ac_try='test -z "$ac_c_werror_flag" |
14717 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14719 | (eval $ac_try) 2>&5 | |
14720 | ac_status=$? | |
14721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14722 | (exit $ac_status); }; } && | |
14723 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14725 | (eval $ac_try) 2>&5 | |
14726 | ac_status=$? | |
14727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14728 | (exit $ac_status); }; }; then | |
14729 | ac_cv_c_inline=$ac_kw; break | |
14730 | else | |
14731 | echo "$as_me: failed program was:" >&5 | |
14732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14733 | ||
14734 | fi | |
ac1cb8d3 | 14735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14736 | done |
14737 | ||
14738 | fi | |
14739 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14740 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14741 | |
14742 | ||
a848cd7e SC |
14743 | case $ac_cv_c_inline in |
14744 | inline | yes) ;; | |
ac1cb8d3 VS |
14745 | *) |
14746 | case $ac_cv_c_inline in | |
14747 | no) ac_val=;; | |
14748 | *) ac_val=$ac_cv_c_inline;; | |
14749 | esac | |
14750 | cat >>confdefs.h <<_ACEOF | |
14751 | #ifndef __cplusplus | |
14752 | #define inline $ac_val | |
14753 | #endif | |
de59c161 | 14754 | _ACEOF |
ac1cb8d3 | 14755 | ;; |
a848cd7e SC |
14756 | esac |
14757 | ||
14758 | ||
14759 | echo "$as_me:$LINENO: checking for char" >&5 | |
14760 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14761 | if test "${ac_cv_type_char+set}" = set; then | |
14762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14763 | else | |
14764 | cat >conftest.$ac_ext <<_ACEOF | |
14765 | /* confdefs.h. */ | |
14766 | _ACEOF | |
14767 | cat confdefs.h >>conftest.$ac_ext | |
14768 | cat >>conftest.$ac_ext <<_ACEOF | |
14769 | /* end confdefs.h. */ | |
14770 | $ac_includes_default | |
14771 | int | |
14772 | main () | |
14773 | { | |
14774 | if ((char *) 0) | |
14775 | return 0; | |
14776 | if (sizeof (char)) | |
14777 | return 0; | |
14778 | ; | |
14779 | return 0; | |
14780 | } | |
14781 | _ACEOF | |
14782 | rm -f conftest.$ac_objext | |
14783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14785 | ac_status=$? |
ac1cb8d3 VS |
14786 | grep -v '^ *+' conftest.er1 >conftest.err |
14787 | rm -f conftest.er1 | |
14788 | cat conftest.err >&5 | |
a848cd7e SC |
14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14790 | (exit $ac_status); } && | |
89be85c2 VS |
14791 | { ac_try='test -z "$ac_c_werror_flag" |
14792 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14794 | (eval $ac_try) 2>&5 | |
14795 | ac_status=$? | |
14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14797 | (exit $ac_status); }; } && | |
14798 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14800 | (eval $ac_try) 2>&5 | |
14801 | ac_status=$? | |
14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14803 | (exit $ac_status); }; }; then | |
14804 | ac_cv_type_char=yes | |
14805 | else | |
14806 | echo "$as_me: failed program was:" >&5 | |
14807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14808 | ||
14809 | ac_cv_type_char=no | |
14810 | fi | |
ac1cb8d3 | 14811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14812 | fi |
14813 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14814 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14815 | ||
14816 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14817 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14818 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14820 | else | |
14821 | if test "$ac_cv_type_char" = yes; then | |
14822 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14823 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14824 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14825 | # This bug is HP SR number 8606223364. | |
14826 | if test "$cross_compiling" = yes; then | |
14827 | # Depending upon the size, compute the lo and hi bounds. | |
14828 | cat >conftest.$ac_ext <<_ACEOF | |
14829 | /* confdefs.h. */ | |
14830 | _ACEOF | |
14831 | cat confdefs.h >>conftest.$ac_ext | |
14832 | cat >>conftest.$ac_ext <<_ACEOF | |
14833 | /* end confdefs.h. */ | |
14834 | $ac_includes_default | |
14835 | int | |
14836 | main () | |
14837 | { | |
14838 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14839 | test_array [0] = 0 | |
14840 | ||
14841 | ; | |
14842 | return 0; | |
14843 | } | |
14844 | _ACEOF | |
14845 | rm -f conftest.$ac_objext | |
14846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14848 | ac_status=$? |
ac1cb8d3 VS |
14849 | grep -v '^ *+' conftest.er1 >conftest.err |
14850 | rm -f conftest.er1 | |
14851 | cat conftest.err >&5 | |
a848cd7e SC |
14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14853 | (exit $ac_status); } && | |
89be85c2 VS |
14854 | { ac_try='test -z "$ac_c_werror_flag" |
14855 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14857 | (eval $ac_try) 2>&5 | |
14858 | ac_status=$? | |
14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14860 | (exit $ac_status); }; } && | |
14861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14863 | (eval $ac_try) 2>&5 | |
14864 | ac_status=$? | |
14865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14866 | (exit $ac_status); }; }; then | |
14867 | ac_lo=0 ac_mid=0 | |
14868 | while :; do | |
14869 | cat >conftest.$ac_ext <<_ACEOF | |
14870 | /* confdefs.h. */ | |
14871 | _ACEOF | |
14872 | cat confdefs.h >>conftest.$ac_ext | |
14873 | cat >>conftest.$ac_ext <<_ACEOF | |
14874 | /* end confdefs.h. */ | |
14875 | $ac_includes_default | |
14876 | int | |
14877 | main () | |
14878 | { | |
14879 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14880 | test_array [0] = 0 | |
14881 | ||
14882 | ; | |
14883 | return 0; | |
14884 | } | |
14885 | _ACEOF | |
14886 | rm -f conftest.$ac_objext | |
14887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14888 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14889 | ac_status=$? |
ac1cb8d3 VS |
14890 | grep -v '^ *+' conftest.er1 >conftest.err |
14891 | rm -f conftest.er1 | |
14892 | cat conftest.err >&5 | |
a848cd7e SC |
14893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14894 | (exit $ac_status); } && | |
89be85c2 VS |
14895 | { ac_try='test -z "$ac_c_werror_flag" |
14896 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14898 | (eval $ac_try) 2>&5 | |
14899 | ac_status=$? | |
14900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14901 | (exit $ac_status); }; } && | |
14902 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14904 | (eval $ac_try) 2>&5 | |
14905 | ac_status=$? | |
14906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14907 | (exit $ac_status); }; }; then | |
14908 | ac_hi=$ac_mid; break | |
14909 | else | |
14910 | echo "$as_me: failed program was:" >&5 | |
14911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14912 | ||
14913 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14914 | if test $ac_lo -le $ac_mid; then |
14915 | ac_lo= ac_hi= | |
14916 | break | |
14917 | fi | |
14918 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14919 | fi |
ac1cb8d3 | 14920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14921 | done |
14922 | else | |
14923 | echo "$as_me: failed program was:" >&5 | |
14924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14925 | ||
14926 | cat >conftest.$ac_ext <<_ACEOF | |
14927 | /* confdefs.h. */ | |
14928 | _ACEOF | |
14929 | cat confdefs.h >>conftest.$ac_ext | |
14930 | cat >>conftest.$ac_ext <<_ACEOF | |
14931 | /* end confdefs.h. */ | |
14932 | $ac_includes_default | |
14933 | int | |
14934 | main () | |
14935 | { | |
14936 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14937 | test_array [0] = 0 | |
14938 | ||
14939 | ; | |
14940 | return 0; | |
14941 | } | |
14942 | _ACEOF | |
14943 | rm -f conftest.$ac_objext | |
14944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14945 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14946 | ac_status=$? |
ac1cb8d3 VS |
14947 | grep -v '^ *+' conftest.er1 >conftest.err |
14948 | rm -f conftest.er1 | |
14949 | cat conftest.err >&5 | |
a848cd7e SC |
14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14951 | (exit $ac_status); } && | |
89be85c2 VS |
14952 | { ac_try='test -z "$ac_c_werror_flag" |
14953 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14955 | (eval $ac_try) 2>&5 | |
14956 | ac_status=$? | |
14957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14958 | (exit $ac_status); }; } && | |
14959 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14961 | (eval $ac_try) 2>&5 | |
14962 | ac_status=$? | |
14963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14964 | (exit $ac_status); }; }; then | |
14965 | ac_hi=-1 ac_mid=-1 | |
14966 | while :; do | |
14967 | cat >conftest.$ac_ext <<_ACEOF | |
14968 | /* confdefs.h. */ | |
14969 | _ACEOF | |
14970 | cat confdefs.h >>conftest.$ac_ext | |
14971 | cat >>conftest.$ac_ext <<_ACEOF | |
14972 | /* end confdefs.h. */ | |
14973 | $ac_includes_default | |
14974 | int | |
14975 | main () | |
14976 | { | |
14977 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14978 | test_array [0] = 0 | |
14979 | ||
14980 | ; | |
14981 | return 0; | |
14982 | } | |
14983 | _ACEOF | |
14984 | rm -f conftest.$ac_objext | |
14985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14986 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14987 | ac_status=$? |
ac1cb8d3 VS |
14988 | grep -v '^ *+' conftest.er1 >conftest.err |
14989 | rm -f conftest.er1 | |
14990 | cat conftest.err >&5 | |
a848cd7e SC |
14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14992 | (exit $ac_status); } && | |
89be85c2 VS |
14993 | { ac_try='test -z "$ac_c_werror_flag" |
14994 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14996 | (eval $ac_try) 2>&5 | |
14997 | ac_status=$? | |
14998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14999 | (exit $ac_status); }; } && | |
15000 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15002 | (eval $ac_try) 2>&5 | |
15003 | ac_status=$? | |
15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15005 | (exit $ac_status); }; }; then | |
15006 | ac_lo=$ac_mid; break | |
15007 | else | |
15008 | echo "$as_me: failed program was:" >&5 | |
15009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15010 | ||
15011 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15012 | if test $ac_mid -le $ac_hi; then |
15013 | ac_lo= ac_hi= | |
15014 | break | |
15015 | fi | |
15016 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15017 | fi |
ac1cb8d3 | 15018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15019 | done |
15020 | else | |
15021 | echo "$as_me: failed program was:" >&5 | |
15022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15023 | ||
15024 | ac_lo= ac_hi= | |
15025 | fi | |
ac1cb8d3 | 15026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15027 | fi |
ac1cb8d3 | 15028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15029 | # Binary search between lo and hi bounds. |
15030 | while test "x$ac_lo" != "x$ac_hi"; do | |
15031 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15032 | cat >conftest.$ac_ext <<_ACEOF | |
15033 | /* confdefs.h. */ | |
15034 | _ACEOF | |
15035 | cat confdefs.h >>conftest.$ac_ext | |
15036 | cat >>conftest.$ac_ext <<_ACEOF | |
15037 | /* end confdefs.h. */ | |
15038 | $ac_includes_default | |
15039 | int | |
15040 | main () | |
15041 | { | |
15042 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15043 | test_array [0] = 0 | |
15044 | ||
15045 | ; | |
15046 | return 0; | |
15047 | } | |
15048 | _ACEOF | |
15049 | rm -f conftest.$ac_objext | |
15050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15051 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15052 | ac_status=$? |
ac1cb8d3 VS |
15053 | grep -v '^ *+' conftest.er1 >conftest.err |
15054 | rm -f conftest.er1 | |
15055 | cat conftest.err >&5 | |
a848cd7e SC |
15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15057 | (exit $ac_status); } && | |
89be85c2 VS |
15058 | { ac_try='test -z "$ac_c_werror_flag" |
15059 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15061 | (eval $ac_try) 2>&5 | |
15062 | ac_status=$? | |
15063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15064 | (exit $ac_status); }; } && | |
15065 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15067 | (eval $ac_try) 2>&5 | |
15068 | ac_status=$? | |
15069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15070 | (exit $ac_status); }; }; then | |
15071 | ac_hi=$ac_mid | |
15072 | else | |
15073 | echo "$as_me: failed program was:" >&5 | |
15074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15075 | ||
15076 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15077 | fi | |
ac1cb8d3 | 15078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15079 | done |
15080 | case $ac_lo in | |
15081 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15082 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15083 | See \`config.log' for more details." >&5 | |
15084 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15085 | See \`config.log' for more details." >&2;} | |
15086 | { (exit 1); exit 1; }; } ;; | |
15087 | esac | |
15088 | else | |
15089 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
15090 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15091 | See \`config.log' for more details." >&5 | |
15092 | echo "$as_me: error: cannot run test program while cross compiling | |
15093 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15094 | { (exit 1); exit 1; }; } |
15095 | else | |
15096 | cat >conftest.$ac_ext <<_ACEOF | |
15097 | /* confdefs.h. */ | |
15098 | _ACEOF | |
15099 | cat confdefs.h >>conftest.$ac_ext | |
15100 | cat >>conftest.$ac_ext <<_ACEOF | |
15101 | /* end confdefs.h. */ | |
15102 | $ac_includes_default | |
15103 | long longval () { return (long) (sizeof (char)); } | |
15104 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15105 | #include <stdio.h> | |
15106 | #include <stdlib.h> | |
15107 | int | |
15108 | main () | |
15109 | { | |
15110 | ||
15111 | FILE *f = fopen ("conftest.val", "w"); | |
15112 | if (! f) | |
15113 | exit (1); | |
15114 | if (((long) (sizeof (char))) < 0) | |
15115 | { | |
15116 | long i = longval (); | |
15117 | if (i != ((long) (sizeof (char)))) | |
15118 | exit (1); | |
15119 | fprintf (f, "%ld\n", i); | |
15120 | } | |
15121 | else | |
15122 | { | |
15123 | unsigned long i = ulongval (); | |
15124 | if (i != ((long) (sizeof (char)))) | |
15125 | exit (1); | |
15126 | fprintf (f, "%lu\n", i); | |
15127 | } | |
15128 | exit (ferror (f) || fclose (f) != 0); | |
15129 | ||
15130 | ; | |
15131 | return 0; | |
15132 | } | |
15133 | _ACEOF | |
15134 | rm -f conftest$ac_exeext | |
15135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15136 | (eval $ac_link) 2>&5 | |
15137 | ac_status=$? | |
15138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15139 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15141 | (eval $ac_try) 2>&5 | |
15142 | ac_status=$? | |
15143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15144 | (exit $ac_status); }; }; then | |
15145 | ac_cv_sizeof_char=`cat conftest.val` | |
15146 | else | |
15147 | echo "$as_me: program exited with status $ac_status" >&5 | |
15148 | echo "$as_me: failed program was:" >&5 | |
15149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15150 | ||
15151 | ( exit $ac_status ) | |
15152 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15153 | See \`config.log' for more details." >&5 | |
15154 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15155 | See \`config.log' for more details." >&2;} | |
15156 | { (exit 1); exit 1; }; } | |
15157 | fi | |
ac1cb8d3 | 15158 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15159 | fi |
15160 | fi | |
15161 | rm -f conftest.val | |
15162 | else | |
15163 | ac_cv_sizeof_char=0 | |
15164 | fi | |
15165 | fi | |
15166 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15167 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15168 | cat >>confdefs.h <<_ACEOF | |
15169 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15170 | _ACEOF | |
15171 | ||
15172 | ||
15173 | echo "$as_me:$LINENO: checking for short" >&5 | |
15174 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
15175 | if test "${ac_cv_type_short+set}" = set; then | |
15176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15177 | else | |
15178 | cat >conftest.$ac_ext <<_ACEOF | |
15179 | /* confdefs.h. */ | |
15180 | _ACEOF | |
15181 | cat confdefs.h >>conftest.$ac_ext | |
15182 | cat >>conftest.$ac_ext <<_ACEOF | |
15183 | /* end confdefs.h. */ | |
15184 | $ac_includes_default | |
15185 | int | |
15186 | main () | |
15187 | { | |
15188 | if ((short *) 0) | |
15189 | return 0; | |
15190 | if (sizeof (short)) | |
15191 | return 0; | |
15192 | ; | |
15193 | return 0; | |
15194 | } | |
15195 | _ACEOF | |
15196 | rm -f conftest.$ac_objext | |
15197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15198 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15199 | ac_status=$? |
ac1cb8d3 VS |
15200 | grep -v '^ *+' conftest.er1 >conftest.err |
15201 | rm -f conftest.er1 | |
15202 | cat conftest.err >&5 | |
a848cd7e SC |
15203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15204 | (exit $ac_status); } && | |
89be85c2 VS |
15205 | { ac_try='test -z "$ac_c_werror_flag" |
15206 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15208 | (eval $ac_try) 2>&5 | |
15209 | ac_status=$? | |
15210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15211 | (exit $ac_status); }; } && | |
15212 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15214 | (eval $ac_try) 2>&5 | |
15215 | ac_status=$? | |
15216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15217 | (exit $ac_status); }; }; then | |
15218 | ac_cv_type_short=yes | |
15219 | else | |
15220 | echo "$as_me: failed program was:" >&5 | |
15221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15222 | ||
15223 | ac_cv_type_short=no | |
15224 | fi | |
ac1cb8d3 | 15225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15226 | fi |
15227 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15228 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
15229 | ||
15230 | echo "$as_me:$LINENO: checking size of short" >&5 | |
15231 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
15232 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15234 | else | |
15235 | if test "$ac_cv_type_short" = yes; then | |
15236 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15237 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15238 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15239 | # This bug is HP SR number 8606223364. | |
15240 | if test "$cross_compiling" = yes; then | |
15241 | # Depending upon the size, compute the lo and hi bounds. | |
15242 | cat >conftest.$ac_ext <<_ACEOF | |
15243 | /* confdefs.h. */ | |
15244 | _ACEOF | |
15245 | cat confdefs.h >>conftest.$ac_ext | |
15246 | cat >>conftest.$ac_ext <<_ACEOF | |
15247 | /* end confdefs.h. */ | |
15248 | $ac_includes_default | |
15249 | int | |
15250 | main () | |
15251 | { | |
15252 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
15253 | test_array [0] = 0 | |
15254 | ||
15255 | ; | |
15256 | return 0; | |
15257 | } | |
15258 | _ACEOF | |
15259 | rm -f conftest.$ac_objext | |
15260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15261 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15262 | ac_status=$? |
ac1cb8d3 VS |
15263 | grep -v '^ *+' conftest.er1 >conftest.err |
15264 | rm -f conftest.er1 | |
15265 | cat conftest.err >&5 | |
a848cd7e SC |
15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15267 | (exit $ac_status); } && | |
89be85c2 VS |
15268 | { ac_try='test -z "$ac_c_werror_flag" |
15269 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15271 | (eval $ac_try) 2>&5 | |
15272 | ac_status=$? | |
15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15274 | (exit $ac_status); }; } && | |
15275 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15277 | (eval $ac_try) 2>&5 | |
15278 | ac_status=$? | |
15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15280 | (exit $ac_status); }; }; then | |
15281 | ac_lo=0 ac_mid=0 | |
15282 | while :; do | |
15283 | cat >conftest.$ac_ext <<_ACEOF | |
15284 | /* confdefs.h. */ | |
15285 | _ACEOF | |
15286 | cat confdefs.h >>conftest.$ac_ext | |
15287 | cat >>conftest.$ac_ext <<_ACEOF | |
15288 | /* end confdefs.h. */ | |
15289 | $ac_includes_default | |
15290 | int | |
15291 | main () | |
15292 | { | |
15293 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15294 | test_array [0] = 0 | |
15295 | ||
15296 | ; | |
15297 | return 0; | |
15298 | } | |
15299 | _ACEOF | |
15300 | rm -f conftest.$ac_objext | |
15301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15302 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15303 | ac_status=$? |
ac1cb8d3 VS |
15304 | grep -v '^ *+' conftest.er1 >conftest.err |
15305 | rm -f conftest.er1 | |
15306 | cat conftest.err >&5 | |
a848cd7e SC |
15307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15308 | (exit $ac_status); } && | |
89be85c2 VS |
15309 | { ac_try='test -z "$ac_c_werror_flag" |
15310 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15312 | (eval $ac_try) 2>&5 | |
15313 | ac_status=$? | |
15314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15315 | (exit $ac_status); }; } && | |
15316 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15318 | (eval $ac_try) 2>&5 | |
15319 | ac_status=$? | |
15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15321 | (exit $ac_status); }; }; then | |
15322 | ac_hi=$ac_mid; break | |
15323 | else | |
15324 | echo "$as_me: failed program was:" >&5 | |
15325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15326 | ||
15327 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15328 | if test $ac_lo -le $ac_mid; then |
15329 | ac_lo= ac_hi= | |
15330 | break | |
15331 | fi | |
15332 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15333 | fi |
ac1cb8d3 | 15334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15335 | done |
15336 | else | |
15337 | echo "$as_me: failed program was:" >&5 | |
15338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15339 | ||
15340 | cat >conftest.$ac_ext <<_ACEOF | |
15341 | /* confdefs.h. */ | |
15342 | _ACEOF | |
15343 | cat confdefs.h >>conftest.$ac_ext | |
15344 | cat >>conftest.$ac_ext <<_ACEOF | |
15345 | /* end confdefs.h. */ | |
15346 | $ac_includes_default | |
15347 | int | |
15348 | main () | |
15349 | { | |
15350 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15351 | test_array [0] = 0 | |
15352 | ||
15353 | ; | |
15354 | return 0; | |
15355 | } | |
15356 | _ACEOF | |
15357 | rm -f conftest.$ac_objext | |
15358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15359 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15360 | ac_status=$? |
ac1cb8d3 VS |
15361 | grep -v '^ *+' conftest.er1 >conftest.err |
15362 | rm -f conftest.er1 | |
15363 | cat conftest.err >&5 | |
a848cd7e SC |
15364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15365 | (exit $ac_status); } && | |
89be85c2 VS |
15366 | { ac_try='test -z "$ac_c_werror_flag" |
15367 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15369 | (eval $ac_try) 2>&5 | |
15370 | ac_status=$? | |
15371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15372 | (exit $ac_status); }; } && | |
15373 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15375 | (eval $ac_try) 2>&5 | |
15376 | ac_status=$? | |
15377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15378 | (exit $ac_status); }; }; then | |
15379 | ac_hi=-1 ac_mid=-1 | |
15380 | while :; do | |
15381 | cat >conftest.$ac_ext <<_ACEOF | |
15382 | /* confdefs.h. */ | |
15383 | _ACEOF | |
15384 | cat confdefs.h >>conftest.$ac_ext | |
15385 | cat >>conftest.$ac_ext <<_ACEOF | |
15386 | /* end confdefs.h. */ | |
15387 | $ac_includes_default | |
15388 | int | |
15389 | main () | |
15390 | { | |
15391 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15392 | test_array [0] = 0 | |
15393 | ||
15394 | ; | |
15395 | return 0; | |
15396 | } | |
15397 | _ACEOF | |
15398 | rm -f conftest.$ac_objext | |
15399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15400 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15401 | ac_status=$? |
ac1cb8d3 VS |
15402 | grep -v '^ *+' conftest.er1 >conftest.err |
15403 | rm -f conftest.er1 | |
15404 | cat conftest.err >&5 | |
a848cd7e SC |
15405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15406 | (exit $ac_status); } && | |
89be85c2 VS |
15407 | { ac_try='test -z "$ac_c_werror_flag" |
15408 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15410 | (eval $ac_try) 2>&5 | |
15411 | ac_status=$? | |
15412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15413 | (exit $ac_status); }; } && | |
15414 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15416 | (eval $ac_try) 2>&5 | |
15417 | ac_status=$? | |
15418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15419 | (exit $ac_status); }; }; then | |
15420 | ac_lo=$ac_mid; break | |
15421 | else | |
15422 | echo "$as_me: failed program was:" >&5 | |
15423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15424 | ||
15425 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15426 | if test $ac_mid -le $ac_hi; then |
15427 | ac_lo= ac_hi= | |
15428 | break | |
15429 | fi | |
15430 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15431 | fi |
ac1cb8d3 | 15432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15433 | done |
15434 | else | |
15435 | echo "$as_me: failed program was:" >&5 | |
15436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15437 | ||
15438 | ac_lo= ac_hi= | |
15439 | fi | |
ac1cb8d3 | 15440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15441 | fi |
ac1cb8d3 | 15442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15443 | # Binary search between lo and hi bounds. |
15444 | while test "x$ac_lo" != "x$ac_hi"; do | |
15445 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15446 | cat >conftest.$ac_ext <<_ACEOF | |
15447 | /* confdefs.h. */ | |
15448 | _ACEOF | |
15449 | cat confdefs.h >>conftest.$ac_ext | |
15450 | cat >>conftest.$ac_ext <<_ACEOF | |
15451 | /* end confdefs.h. */ | |
15452 | $ac_includes_default | |
15453 | int | |
15454 | main () | |
15455 | { | |
15456 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15457 | test_array [0] = 0 | |
15458 | ||
15459 | ; | |
15460 | return 0; | |
15461 | } | |
15462 | _ACEOF | |
15463 | rm -f conftest.$ac_objext | |
15464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15465 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15466 | ac_status=$? |
ac1cb8d3 VS |
15467 | grep -v '^ *+' conftest.er1 >conftest.err |
15468 | rm -f conftest.er1 | |
15469 | cat conftest.err >&5 | |
a848cd7e SC |
15470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15471 | (exit $ac_status); } && | |
89be85c2 VS |
15472 | { ac_try='test -z "$ac_c_werror_flag" |
15473 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15475 | (eval $ac_try) 2>&5 | |
15476 | ac_status=$? | |
15477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15478 | (exit $ac_status); }; } && | |
15479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15481 | (eval $ac_try) 2>&5 | |
15482 | ac_status=$? | |
15483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15484 | (exit $ac_status); }; }; then | |
15485 | ac_hi=$ac_mid | |
15486 | else | |
15487 | echo "$as_me: failed program was:" >&5 | |
15488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15489 | ||
15490 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15491 | fi | |
ac1cb8d3 | 15492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15493 | done |
15494 | case $ac_lo in | |
15495 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15496 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15497 | See \`config.log' for more details." >&5 | |
15498 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15499 | See \`config.log' for more details." >&2;} | |
15500 | { (exit 1); exit 1; }; } ;; | |
15501 | esac | |
15502 | else | |
15503 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
15504 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15505 | See \`config.log' for more details." >&5 | |
15506 | echo "$as_me: error: cannot run test program while cross compiling | |
15507 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15508 | { (exit 1); exit 1; }; } |
15509 | else | |
15510 | cat >conftest.$ac_ext <<_ACEOF | |
15511 | /* confdefs.h. */ | |
15512 | _ACEOF | |
15513 | cat confdefs.h >>conftest.$ac_ext | |
15514 | cat >>conftest.$ac_ext <<_ACEOF | |
15515 | /* end confdefs.h. */ | |
15516 | $ac_includes_default | |
15517 | long longval () { return (long) (sizeof (short)); } | |
15518 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15519 | #include <stdio.h> | |
15520 | #include <stdlib.h> | |
15521 | int | |
15522 | main () | |
15523 | { | |
15524 | ||
15525 | FILE *f = fopen ("conftest.val", "w"); | |
15526 | if (! f) | |
15527 | exit (1); | |
15528 | if (((long) (sizeof (short))) < 0) | |
15529 | { | |
15530 | long i = longval (); | |
15531 | if (i != ((long) (sizeof (short)))) | |
15532 | exit (1); | |
15533 | fprintf (f, "%ld\n", i); | |
15534 | } | |
15535 | else | |
15536 | { | |
15537 | unsigned long i = ulongval (); | |
15538 | if (i != ((long) (sizeof (short)))) | |
15539 | exit (1); | |
15540 | fprintf (f, "%lu\n", i); | |
15541 | } | |
15542 | exit (ferror (f) || fclose (f) != 0); | |
15543 | ||
15544 | ; | |
15545 | return 0; | |
15546 | } | |
15547 | _ACEOF | |
15548 | rm -f conftest$ac_exeext | |
15549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15550 | (eval $ac_link) 2>&5 | |
15551 | ac_status=$? | |
15552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15553 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15555 | (eval $ac_try) 2>&5 | |
15556 | ac_status=$? | |
15557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15558 | (exit $ac_status); }; }; then | |
15559 | ac_cv_sizeof_short=`cat conftest.val` | |
15560 | else | |
15561 | echo "$as_me: program exited with status $ac_status" >&5 | |
15562 | echo "$as_me: failed program was:" >&5 | |
15563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15564 | ||
15565 | ( exit $ac_status ) | |
15566 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15567 | See \`config.log' for more details." >&5 | |
15568 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15569 | See \`config.log' for more details." >&2;} | |
15570 | { (exit 1); exit 1; }; } | |
15571 | fi | |
ac1cb8d3 | 15572 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15573 | fi |
15574 | fi | |
15575 | rm -f conftest.val | |
15576 | else | |
15577 | ac_cv_sizeof_short=0 | |
15578 | fi | |
15579 | fi | |
15580 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15581 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15582 | cat >>confdefs.h <<_ACEOF | |
15583 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15584 | _ACEOF | |
15585 | ||
15586 | ||
15587 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15588 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15589 | if test "${ac_cv_type_void_p+set}" = set; then | |
15590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15591 | else | |
15592 | cat >conftest.$ac_ext <<_ACEOF | |
15593 | /* confdefs.h. */ | |
15594 | _ACEOF | |
15595 | cat confdefs.h >>conftest.$ac_ext | |
15596 | cat >>conftest.$ac_ext <<_ACEOF | |
15597 | /* end confdefs.h. */ | |
15598 | $ac_includes_default | |
15599 | int | |
15600 | main () | |
15601 | { | |
15602 | if ((void * *) 0) | |
15603 | return 0; | |
15604 | if (sizeof (void *)) | |
15605 | return 0; | |
15606 | ; | |
15607 | return 0; | |
15608 | } | |
15609 | _ACEOF | |
15610 | rm -f conftest.$ac_objext | |
15611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15613 | ac_status=$? |
ac1cb8d3 VS |
15614 | grep -v '^ *+' conftest.er1 >conftest.err |
15615 | rm -f conftest.er1 | |
15616 | cat conftest.err >&5 | |
a848cd7e SC |
15617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15618 | (exit $ac_status); } && | |
89be85c2 VS |
15619 | { ac_try='test -z "$ac_c_werror_flag" |
15620 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15622 | (eval $ac_try) 2>&5 | |
15623 | ac_status=$? | |
15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15625 | (exit $ac_status); }; } && | |
15626 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15628 | (eval $ac_try) 2>&5 | |
15629 | ac_status=$? | |
15630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15631 | (exit $ac_status); }; }; then | |
15632 | ac_cv_type_void_p=yes | |
15633 | else | |
15634 | echo "$as_me: failed program was:" >&5 | |
15635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15636 | ||
15637 | ac_cv_type_void_p=no | |
15638 | fi | |
ac1cb8d3 | 15639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15640 | fi |
15641 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15642 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15643 | ||
15644 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15645 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15646 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15648 | else | |
15649 | if test "$ac_cv_type_void_p" = yes; then | |
15650 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15651 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15652 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15653 | # This bug is HP SR number 8606223364. | |
15654 | if test "$cross_compiling" = yes; then | |
15655 | # Depending upon the size, compute the lo and hi bounds. | |
15656 | cat >conftest.$ac_ext <<_ACEOF | |
15657 | /* confdefs.h. */ | |
15658 | _ACEOF | |
15659 | cat confdefs.h >>conftest.$ac_ext | |
15660 | cat >>conftest.$ac_ext <<_ACEOF | |
15661 | /* end confdefs.h. */ | |
15662 | $ac_includes_default | |
15663 | int | |
15664 | main () | |
15665 | { | |
15666 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15667 | test_array [0] = 0 | |
15668 | ||
15669 | ; | |
15670 | return 0; | |
15671 | } | |
15672 | _ACEOF | |
15673 | rm -f conftest.$ac_objext | |
15674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15675 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15676 | ac_status=$? |
ac1cb8d3 VS |
15677 | grep -v '^ *+' conftest.er1 >conftest.err |
15678 | rm -f conftest.er1 | |
15679 | cat conftest.err >&5 | |
a848cd7e SC |
15680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15681 | (exit $ac_status); } && | |
89be85c2 VS |
15682 | { ac_try='test -z "$ac_c_werror_flag" |
15683 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15685 | (eval $ac_try) 2>&5 | |
15686 | ac_status=$? | |
15687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15688 | (exit $ac_status); }; } && | |
15689 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15691 | (eval $ac_try) 2>&5 | |
15692 | ac_status=$? | |
15693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15694 | (exit $ac_status); }; }; then | |
15695 | ac_lo=0 ac_mid=0 | |
15696 | while :; do | |
15697 | cat >conftest.$ac_ext <<_ACEOF | |
15698 | /* confdefs.h. */ | |
15699 | _ACEOF | |
15700 | cat confdefs.h >>conftest.$ac_ext | |
15701 | cat >>conftest.$ac_ext <<_ACEOF | |
15702 | /* end confdefs.h. */ | |
15703 | $ac_includes_default | |
15704 | int | |
15705 | main () | |
15706 | { | |
15707 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15708 | test_array [0] = 0 | |
15709 | ||
15710 | ; | |
15711 | return 0; | |
15712 | } | |
15713 | _ACEOF | |
15714 | rm -f conftest.$ac_objext | |
15715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15716 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15717 | ac_status=$? |
ac1cb8d3 VS |
15718 | grep -v '^ *+' conftest.er1 >conftest.err |
15719 | rm -f conftest.er1 | |
15720 | cat conftest.err >&5 | |
a848cd7e SC |
15721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15722 | (exit $ac_status); } && | |
89be85c2 VS |
15723 | { ac_try='test -z "$ac_c_werror_flag" |
15724 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15726 | (eval $ac_try) 2>&5 | |
15727 | ac_status=$? | |
15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15729 | (exit $ac_status); }; } && | |
15730 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15732 | (eval $ac_try) 2>&5 | |
15733 | ac_status=$? | |
15734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15735 | (exit $ac_status); }; }; then | |
15736 | ac_hi=$ac_mid; break | |
15737 | else | |
15738 | echo "$as_me: failed program was:" >&5 | |
15739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15740 | ||
15741 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15742 | if test $ac_lo -le $ac_mid; then |
15743 | ac_lo= ac_hi= | |
15744 | break | |
15745 | fi | |
15746 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15747 | fi |
ac1cb8d3 | 15748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15749 | done |
15750 | else | |
15751 | echo "$as_me: failed program was:" >&5 | |
15752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15753 | ||
15754 | cat >conftest.$ac_ext <<_ACEOF | |
15755 | /* confdefs.h. */ | |
15756 | _ACEOF | |
15757 | cat confdefs.h >>conftest.$ac_ext | |
15758 | cat >>conftest.$ac_ext <<_ACEOF | |
15759 | /* end confdefs.h. */ | |
15760 | $ac_includes_default | |
15761 | int | |
15762 | main () | |
15763 | { | |
15764 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15765 | test_array [0] = 0 | |
15766 | ||
15767 | ; | |
15768 | return 0; | |
15769 | } | |
15770 | _ACEOF | |
15771 | rm -f conftest.$ac_objext | |
15772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15773 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15774 | ac_status=$? |
ac1cb8d3 VS |
15775 | grep -v '^ *+' conftest.er1 >conftest.err |
15776 | rm -f conftest.er1 | |
15777 | cat conftest.err >&5 | |
a848cd7e SC |
15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15779 | (exit $ac_status); } && | |
89be85c2 VS |
15780 | { ac_try='test -z "$ac_c_werror_flag" |
15781 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15783 | (eval $ac_try) 2>&5 | |
15784 | ac_status=$? | |
15785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15786 | (exit $ac_status); }; } && | |
15787 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15789 | (eval $ac_try) 2>&5 | |
15790 | ac_status=$? | |
15791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15792 | (exit $ac_status); }; }; then | |
15793 | ac_hi=-1 ac_mid=-1 | |
15794 | while :; do | |
15795 | cat >conftest.$ac_ext <<_ACEOF | |
15796 | /* confdefs.h. */ | |
15797 | _ACEOF | |
15798 | cat confdefs.h >>conftest.$ac_ext | |
15799 | cat >>conftest.$ac_ext <<_ACEOF | |
15800 | /* end confdefs.h. */ | |
15801 | $ac_includes_default | |
15802 | int | |
15803 | main () | |
15804 | { | |
15805 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15806 | test_array [0] = 0 | |
15807 | ||
15808 | ; | |
15809 | return 0; | |
15810 | } | |
15811 | _ACEOF | |
15812 | rm -f conftest.$ac_objext | |
15813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15814 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15815 | ac_status=$? |
ac1cb8d3 VS |
15816 | grep -v '^ *+' conftest.er1 >conftest.err |
15817 | rm -f conftest.er1 | |
15818 | cat conftest.err >&5 | |
a848cd7e SC |
15819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15820 | (exit $ac_status); } && | |
89be85c2 VS |
15821 | { ac_try='test -z "$ac_c_werror_flag" |
15822 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15824 | (eval $ac_try) 2>&5 | |
15825 | ac_status=$? | |
15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15827 | (exit $ac_status); }; } && | |
15828 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15830 | (eval $ac_try) 2>&5 | |
15831 | ac_status=$? | |
15832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15833 | (exit $ac_status); }; }; then | |
15834 | ac_lo=$ac_mid; break | |
15835 | else | |
15836 | echo "$as_me: failed program was:" >&5 | |
15837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15838 | ||
15839 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15840 | if test $ac_mid -le $ac_hi; then |
15841 | ac_lo= ac_hi= | |
15842 | break | |
15843 | fi | |
15844 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15845 | fi |
ac1cb8d3 | 15846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15847 | done |
15848 | else | |
15849 | echo "$as_me: failed program was:" >&5 | |
15850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15851 | ||
15852 | ac_lo= ac_hi= | |
15853 | fi | |
ac1cb8d3 | 15854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15855 | fi |
ac1cb8d3 | 15856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15857 | # Binary search between lo and hi bounds. |
15858 | while test "x$ac_lo" != "x$ac_hi"; do | |
15859 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15860 | cat >conftest.$ac_ext <<_ACEOF | |
15861 | /* confdefs.h. */ | |
15862 | _ACEOF | |
15863 | cat confdefs.h >>conftest.$ac_ext | |
15864 | cat >>conftest.$ac_ext <<_ACEOF | |
15865 | /* end confdefs.h. */ | |
15866 | $ac_includes_default | |
15867 | int | |
15868 | main () | |
15869 | { | |
15870 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15871 | test_array [0] = 0 | |
15872 | ||
15873 | ; | |
15874 | return 0; | |
15875 | } | |
15876 | _ACEOF | |
15877 | rm -f conftest.$ac_objext | |
15878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15879 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15880 | ac_status=$? |
ac1cb8d3 VS |
15881 | grep -v '^ *+' conftest.er1 >conftest.err |
15882 | rm -f conftest.er1 | |
15883 | cat conftest.err >&5 | |
a848cd7e SC |
15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15885 | (exit $ac_status); } && | |
89be85c2 VS |
15886 | { ac_try='test -z "$ac_c_werror_flag" |
15887 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15889 | (eval $ac_try) 2>&5 | |
15890 | ac_status=$? | |
15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15892 | (exit $ac_status); }; } && | |
15893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15895 | (eval $ac_try) 2>&5 | |
15896 | ac_status=$? | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); }; }; then | |
15899 | ac_hi=$ac_mid | |
15900 | else | |
15901 | echo "$as_me: failed program was:" >&5 | |
15902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15903 | ||
15904 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15905 | fi | |
ac1cb8d3 | 15906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15907 | done |
15908 | case $ac_lo in | |
15909 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15910 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15911 | See \`config.log' for more details." >&5 | |
15912 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15913 | See \`config.log' for more details." >&2;} | |
15914 | { (exit 1); exit 1; }; } ;; | |
15915 | esac | |
15916 | else | |
15917 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
15918 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15919 | See \`config.log' for more details." >&5 | |
15920 | echo "$as_me: error: cannot run test program while cross compiling | |
15921 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15922 | { (exit 1); exit 1; }; } |
15923 | else | |
15924 | cat >conftest.$ac_ext <<_ACEOF | |
15925 | /* confdefs.h. */ | |
15926 | _ACEOF | |
15927 | cat confdefs.h >>conftest.$ac_ext | |
15928 | cat >>conftest.$ac_ext <<_ACEOF | |
15929 | /* end confdefs.h. */ | |
15930 | $ac_includes_default | |
15931 | long longval () { return (long) (sizeof (void *)); } | |
15932 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15933 | #include <stdio.h> | |
15934 | #include <stdlib.h> | |
15935 | int | |
15936 | main () | |
15937 | { | |
15938 | ||
15939 | FILE *f = fopen ("conftest.val", "w"); | |
15940 | if (! f) | |
15941 | exit (1); | |
15942 | if (((long) (sizeof (void *))) < 0) | |
15943 | { | |
15944 | long i = longval (); | |
15945 | if (i != ((long) (sizeof (void *)))) | |
15946 | exit (1); | |
15947 | fprintf (f, "%ld\n", i); | |
15948 | } | |
15949 | else | |
15950 | { | |
15951 | unsigned long i = ulongval (); | |
15952 | if (i != ((long) (sizeof (void *)))) | |
15953 | exit (1); | |
15954 | fprintf (f, "%lu\n", i); | |
15955 | } | |
15956 | exit (ferror (f) || fclose (f) != 0); | |
15957 | ||
15958 | ; | |
15959 | return 0; | |
15960 | } | |
15961 | _ACEOF | |
15962 | rm -f conftest$ac_exeext | |
15963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15964 | (eval $ac_link) 2>&5 | |
15965 | ac_status=$? | |
15966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15969 | (eval $ac_try) 2>&5 | |
15970 | ac_status=$? | |
15971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15972 | (exit $ac_status); }; }; then | |
15973 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15974 | else | |
15975 | echo "$as_me: program exited with status $ac_status" >&5 | |
15976 | echo "$as_me: failed program was:" >&5 | |
15977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15978 | ||
15979 | ( exit $ac_status ) | |
15980 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15981 | See \`config.log' for more details." >&5 | |
15982 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15983 | See \`config.log' for more details." >&2;} | |
15984 | { (exit 1); exit 1; }; } | |
15985 | fi | |
ac1cb8d3 | 15986 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15987 | fi |
15988 | fi | |
15989 | rm -f conftest.val | |
15990 | else | |
15991 | ac_cv_sizeof_void_p=0 | |
15992 | fi | |
15993 | fi | |
15994 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15995 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15996 | cat >>confdefs.h <<_ACEOF | |
15997 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15998 | _ACEOF | |
15999 | ||
16000 | ||
16001 | echo "$as_me:$LINENO: checking for int" >&5 | |
16002 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16003 | if test "${ac_cv_type_int+set}" = set; then | |
16004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16005 | else | |
16006 | cat >conftest.$ac_ext <<_ACEOF | |
16007 | /* confdefs.h. */ | |
16008 | _ACEOF | |
16009 | cat confdefs.h >>conftest.$ac_ext | |
16010 | cat >>conftest.$ac_ext <<_ACEOF | |
16011 | /* end confdefs.h. */ | |
16012 | $ac_includes_default | |
16013 | int | |
16014 | main () | |
16015 | { | |
16016 | if ((int *) 0) | |
16017 | return 0; | |
16018 | if (sizeof (int)) | |
16019 | return 0; | |
16020 | ; | |
16021 | return 0; | |
16022 | } | |
16023 | _ACEOF | |
16024 | rm -f conftest.$ac_objext | |
16025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16026 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16027 | ac_status=$? |
ac1cb8d3 VS |
16028 | grep -v '^ *+' conftest.er1 >conftest.err |
16029 | rm -f conftest.er1 | |
16030 | cat conftest.err >&5 | |
a848cd7e SC |
16031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16032 | (exit $ac_status); } && | |
89be85c2 VS |
16033 | { ac_try='test -z "$ac_c_werror_flag" |
16034 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16036 | (eval $ac_try) 2>&5 | |
16037 | ac_status=$? | |
16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16039 | (exit $ac_status); }; } && | |
16040 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16042 | (eval $ac_try) 2>&5 | |
16043 | ac_status=$? | |
16044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16045 | (exit $ac_status); }; }; then | |
16046 | ac_cv_type_int=yes | |
16047 | else | |
16048 | echo "$as_me: failed program was:" >&5 | |
16049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16050 | ||
16051 | ac_cv_type_int=no | |
16052 | fi | |
ac1cb8d3 | 16053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16054 | fi |
16055 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16056 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16057 | ||
16058 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16059 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16060 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16062 | else | |
16063 | if test "$ac_cv_type_int" = yes; then | |
16064 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16065 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16066 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16067 | # This bug is HP SR number 8606223364. | |
16068 | if test "$cross_compiling" = yes; then | |
16069 | # Depending upon the size, compute the lo and hi bounds. | |
16070 | cat >conftest.$ac_ext <<_ACEOF | |
16071 | /* confdefs.h. */ | |
16072 | _ACEOF | |
16073 | cat confdefs.h >>conftest.$ac_ext | |
16074 | cat >>conftest.$ac_ext <<_ACEOF | |
16075 | /* end confdefs.h. */ | |
16076 | $ac_includes_default | |
16077 | int | |
16078 | main () | |
16079 | { | |
16080 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16081 | test_array [0] = 0 | |
16082 | ||
16083 | ; | |
16084 | return 0; | |
16085 | } | |
16086 | _ACEOF | |
16087 | rm -f conftest.$ac_objext | |
16088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16089 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16090 | ac_status=$? |
ac1cb8d3 VS |
16091 | grep -v '^ *+' conftest.er1 >conftest.err |
16092 | rm -f conftest.er1 | |
16093 | cat conftest.err >&5 | |
a848cd7e SC |
16094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16095 | (exit $ac_status); } && | |
89be85c2 VS |
16096 | { ac_try='test -z "$ac_c_werror_flag" |
16097 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16099 | (eval $ac_try) 2>&5 | |
16100 | ac_status=$? | |
16101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16102 | (exit $ac_status); }; } && | |
16103 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16105 | (eval $ac_try) 2>&5 | |
16106 | ac_status=$? | |
16107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16108 | (exit $ac_status); }; }; then | |
16109 | ac_lo=0 ac_mid=0 | |
16110 | while :; do | |
16111 | cat >conftest.$ac_ext <<_ACEOF | |
16112 | /* confdefs.h. */ | |
16113 | _ACEOF | |
16114 | cat confdefs.h >>conftest.$ac_ext | |
16115 | cat >>conftest.$ac_ext <<_ACEOF | |
16116 | /* end confdefs.h. */ | |
16117 | $ac_includes_default | |
16118 | int | |
16119 | main () | |
16120 | { | |
16121 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16122 | test_array [0] = 0 | |
16123 | ||
16124 | ; | |
16125 | return 0; | |
16126 | } | |
16127 | _ACEOF | |
16128 | rm -f conftest.$ac_objext | |
16129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16130 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16131 | ac_status=$? |
ac1cb8d3 VS |
16132 | grep -v '^ *+' conftest.er1 >conftest.err |
16133 | rm -f conftest.er1 | |
16134 | cat conftest.err >&5 | |
a848cd7e SC |
16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16136 | (exit $ac_status); } && | |
89be85c2 VS |
16137 | { ac_try='test -z "$ac_c_werror_flag" |
16138 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16140 | (eval $ac_try) 2>&5 | |
16141 | ac_status=$? | |
16142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16143 | (exit $ac_status); }; } && | |
16144 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16146 | (eval $ac_try) 2>&5 | |
16147 | ac_status=$? | |
16148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16149 | (exit $ac_status); }; }; then | |
16150 | ac_hi=$ac_mid; break | |
16151 | else | |
16152 | echo "$as_me: failed program was:" >&5 | |
16153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16154 | ||
16155 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16156 | if test $ac_lo -le $ac_mid; then |
16157 | ac_lo= ac_hi= | |
16158 | break | |
16159 | fi | |
16160 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16161 | fi |
ac1cb8d3 | 16162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16163 | done |
16164 | else | |
16165 | echo "$as_me: failed program was:" >&5 | |
16166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16167 | ||
16168 | cat >conftest.$ac_ext <<_ACEOF | |
16169 | /* confdefs.h. */ | |
16170 | _ACEOF | |
16171 | cat confdefs.h >>conftest.$ac_ext | |
16172 | cat >>conftest.$ac_ext <<_ACEOF | |
16173 | /* end confdefs.h. */ | |
16174 | $ac_includes_default | |
16175 | int | |
16176 | main () | |
16177 | { | |
16178 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
16179 | test_array [0] = 0 | |
16180 | ||
16181 | ; | |
16182 | return 0; | |
16183 | } | |
16184 | _ACEOF | |
16185 | rm -f conftest.$ac_objext | |
16186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16187 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16188 | ac_status=$? |
ac1cb8d3 VS |
16189 | grep -v '^ *+' conftest.er1 >conftest.err |
16190 | rm -f conftest.er1 | |
16191 | cat conftest.err >&5 | |
a848cd7e SC |
16192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16193 | (exit $ac_status); } && | |
89be85c2 VS |
16194 | { ac_try='test -z "$ac_c_werror_flag" |
16195 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16197 | (eval $ac_try) 2>&5 | |
16198 | ac_status=$? | |
16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16200 | (exit $ac_status); }; } && | |
16201 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16203 | (eval $ac_try) 2>&5 | |
16204 | ac_status=$? | |
16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16206 | (exit $ac_status); }; }; then | |
16207 | ac_hi=-1 ac_mid=-1 | |
16208 | while :; do | |
16209 | cat >conftest.$ac_ext <<_ACEOF | |
16210 | /* confdefs.h. */ | |
16211 | _ACEOF | |
16212 | cat confdefs.h >>conftest.$ac_ext | |
16213 | cat >>conftest.$ac_ext <<_ACEOF | |
16214 | /* end confdefs.h. */ | |
16215 | $ac_includes_default | |
16216 | int | |
16217 | main () | |
16218 | { | |
16219 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16220 | test_array [0] = 0 | |
16221 | ||
16222 | ; | |
16223 | return 0; | |
16224 | } | |
16225 | _ACEOF | |
16226 | rm -f conftest.$ac_objext | |
16227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16228 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16229 | ac_status=$? |
ac1cb8d3 VS |
16230 | grep -v '^ *+' conftest.er1 >conftest.err |
16231 | rm -f conftest.er1 | |
16232 | cat conftest.err >&5 | |
a848cd7e SC |
16233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16234 | (exit $ac_status); } && | |
89be85c2 VS |
16235 | { ac_try='test -z "$ac_c_werror_flag" |
16236 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16238 | (eval $ac_try) 2>&5 | |
16239 | ac_status=$? | |
16240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16241 | (exit $ac_status); }; } && | |
16242 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16244 | (eval $ac_try) 2>&5 | |
16245 | ac_status=$? | |
16246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16247 | (exit $ac_status); }; }; then | |
16248 | ac_lo=$ac_mid; break | |
16249 | else | |
16250 | echo "$as_me: failed program was:" >&5 | |
16251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16252 | ||
16253 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16254 | if test $ac_mid -le $ac_hi; then |
16255 | ac_lo= ac_hi= | |
16256 | break | |
16257 | fi | |
16258 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16259 | fi |
ac1cb8d3 | 16260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16261 | done |
16262 | else | |
16263 | echo "$as_me: failed program was:" >&5 | |
16264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16265 | ||
16266 | ac_lo= ac_hi= | |
16267 | fi | |
ac1cb8d3 | 16268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16269 | fi |
ac1cb8d3 | 16270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16271 | # Binary search between lo and hi bounds. |
16272 | while test "x$ac_lo" != "x$ac_hi"; do | |
16273 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16274 | cat >conftest.$ac_ext <<_ACEOF | |
16275 | /* confdefs.h. */ | |
16276 | _ACEOF | |
16277 | cat confdefs.h >>conftest.$ac_ext | |
16278 | cat >>conftest.$ac_ext <<_ACEOF | |
16279 | /* end confdefs.h. */ | |
16280 | $ac_includes_default | |
16281 | int | |
16282 | main () | |
16283 | { | |
16284 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16285 | test_array [0] = 0 | |
16286 | ||
16287 | ; | |
16288 | return 0; | |
16289 | } | |
16290 | _ACEOF | |
16291 | rm -f conftest.$ac_objext | |
16292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16293 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16294 | ac_status=$? |
ac1cb8d3 VS |
16295 | grep -v '^ *+' conftest.er1 >conftest.err |
16296 | rm -f conftest.er1 | |
16297 | cat conftest.err >&5 | |
a848cd7e SC |
16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16299 | (exit $ac_status); } && | |
89be85c2 VS |
16300 | { ac_try='test -z "$ac_c_werror_flag" |
16301 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16303 | (eval $ac_try) 2>&5 | |
16304 | ac_status=$? | |
16305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16306 | (exit $ac_status); }; } && | |
16307 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16309 | (eval $ac_try) 2>&5 | |
16310 | ac_status=$? | |
16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16312 | (exit $ac_status); }; }; then | |
16313 | ac_hi=$ac_mid | |
16314 | else | |
16315 | echo "$as_me: failed program was:" >&5 | |
16316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16317 | ||
16318 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16319 | fi | |
ac1cb8d3 | 16320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16321 | done |
16322 | case $ac_lo in | |
16323 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
16324 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16325 | See \`config.log' for more details." >&5 | |
16326 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16327 | See \`config.log' for more details." >&2;} | |
16328 | { (exit 1); exit 1; }; } ;; | |
16329 | esac | |
16330 | else | |
16331 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
16332 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16333 | See \`config.log' for more details." >&5 | |
16334 | echo "$as_me: error: cannot run test program while cross compiling | |
16335 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16336 | { (exit 1); exit 1; }; } |
16337 | else | |
16338 | cat >conftest.$ac_ext <<_ACEOF | |
16339 | /* confdefs.h. */ | |
16340 | _ACEOF | |
16341 | cat confdefs.h >>conftest.$ac_ext | |
16342 | cat >>conftest.$ac_ext <<_ACEOF | |
16343 | /* end confdefs.h. */ | |
16344 | $ac_includes_default | |
16345 | long longval () { return (long) (sizeof (int)); } | |
16346 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16347 | #include <stdio.h> | |
16348 | #include <stdlib.h> | |
16349 | int | |
16350 | main () | |
16351 | { | |
16352 | ||
16353 | FILE *f = fopen ("conftest.val", "w"); | |
16354 | if (! f) | |
16355 | exit (1); | |
16356 | if (((long) (sizeof (int))) < 0) | |
16357 | { | |
16358 | long i = longval (); | |
16359 | if (i != ((long) (sizeof (int)))) | |
16360 | exit (1); | |
16361 | fprintf (f, "%ld\n", i); | |
16362 | } | |
16363 | else | |
16364 | { | |
16365 | unsigned long i = ulongval (); | |
16366 | if (i != ((long) (sizeof (int)))) | |
16367 | exit (1); | |
16368 | fprintf (f, "%lu\n", i); | |
16369 | } | |
16370 | exit (ferror (f) || fclose (f) != 0); | |
16371 | ||
16372 | ; | |
16373 | return 0; | |
16374 | } | |
16375 | _ACEOF | |
16376 | rm -f conftest$ac_exeext | |
16377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16378 | (eval $ac_link) 2>&5 | |
16379 | ac_status=$? | |
16380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16381 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16383 | (eval $ac_try) 2>&5 | |
16384 | ac_status=$? | |
16385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16386 | (exit $ac_status); }; }; then | |
16387 | ac_cv_sizeof_int=`cat conftest.val` | |
16388 | else | |
16389 | echo "$as_me: program exited with status $ac_status" >&5 | |
16390 | echo "$as_me: failed program was:" >&5 | |
16391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16392 | ||
16393 | ( exit $ac_status ) | |
16394 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16395 | See \`config.log' for more details." >&5 | |
16396 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16397 | See \`config.log' for more details." >&2;} | |
16398 | { (exit 1); exit 1; }; } | |
16399 | fi | |
ac1cb8d3 | 16400 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16401 | fi |
16402 | fi | |
16403 | rm -f conftest.val | |
16404 | else | |
16405 | ac_cv_sizeof_int=0 | |
16406 | fi | |
16407 | fi | |
16408 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16409 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16410 | cat >>confdefs.h <<_ACEOF | |
16411 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16412 | _ACEOF | |
16413 | ||
16414 | ||
16415 | echo "$as_me:$LINENO: checking for long" >&5 | |
16416 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16417 | if test "${ac_cv_type_long+set}" = set; then | |
16418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16419 | else | |
16420 | cat >conftest.$ac_ext <<_ACEOF | |
16421 | /* confdefs.h. */ | |
16422 | _ACEOF | |
16423 | cat confdefs.h >>conftest.$ac_ext | |
16424 | cat >>conftest.$ac_ext <<_ACEOF | |
16425 | /* end confdefs.h. */ | |
16426 | $ac_includes_default | |
16427 | int | |
16428 | main () | |
16429 | { | |
16430 | if ((long *) 0) | |
16431 | return 0; | |
16432 | if (sizeof (long)) | |
16433 | return 0; | |
16434 | ; | |
16435 | return 0; | |
16436 | } | |
16437 | _ACEOF | |
16438 | rm -f conftest.$ac_objext | |
16439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16440 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16441 | ac_status=$? |
ac1cb8d3 VS |
16442 | grep -v '^ *+' conftest.er1 >conftest.err |
16443 | rm -f conftest.er1 | |
16444 | cat conftest.err >&5 | |
a848cd7e SC |
16445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16446 | (exit $ac_status); } && | |
89be85c2 VS |
16447 | { ac_try='test -z "$ac_c_werror_flag" |
16448 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16450 | (eval $ac_try) 2>&5 | |
16451 | ac_status=$? | |
16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16453 | (exit $ac_status); }; } && | |
16454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16456 | (eval $ac_try) 2>&5 | |
16457 | ac_status=$? | |
16458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16459 | (exit $ac_status); }; }; then | |
16460 | ac_cv_type_long=yes | |
16461 | else | |
16462 | echo "$as_me: failed program was:" >&5 | |
16463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16464 | ||
16465 | ac_cv_type_long=no | |
16466 | fi | |
ac1cb8d3 | 16467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16468 | fi |
16469 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16470 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16471 | ||
16472 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16473 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16474 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16476 | else | |
16477 | if test "$ac_cv_type_long" = yes; then | |
16478 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16479 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16480 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16481 | # This bug is HP SR number 8606223364. | |
16482 | if test "$cross_compiling" = yes; then | |
16483 | # Depending upon the size, compute the lo and hi bounds. | |
16484 | cat >conftest.$ac_ext <<_ACEOF | |
16485 | /* confdefs.h. */ | |
16486 | _ACEOF | |
16487 | cat confdefs.h >>conftest.$ac_ext | |
16488 | cat >>conftest.$ac_ext <<_ACEOF | |
16489 | /* end confdefs.h. */ | |
16490 | $ac_includes_default | |
16491 | int | |
16492 | main () | |
16493 | { | |
16494 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16495 | test_array [0] = 0 | |
16496 | ||
16497 | ; | |
16498 | return 0; | |
16499 | } | |
16500 | _ACEOF | |
16501 | rm -f conftest.$ac_objext | |
16502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16503 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16504 | ac_status=$? |
ac1cb8d3 VS |
16505 | grep -v '^ *+' conftest.er1 >conftest.err |
16506 | rm -f conftest.er1 | |
16507 | cat conftest.err >&5 | |
a848cd7e SC |
16508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16509 | (exit $ac_status); } && | |
89be85c2 VS |
16510 | { ac_try='test -z "$ac_c_werror_flag" |
16511 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16513 | (eval $ac_try) 2>&5 | |
16514 | ac_status=$? | |
16515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16516 | (exit $ac_status); }; } && | |
16517 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16519 | (eval $ac_try) 2>&5 | |
16520 | ac_status=$? | |
16521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16522 | (exit $ac_status); }; }; then | |
16523 | ac_lo=0 ac_mid=0 | |
16524 | while :; do | |
16525 | cat >conftest.$ac_ext <<_ACEOF | |
16526 | /* confdefs.h. */ | |
16527 | _ACEOF | |
16528 | cat confdefs.h >>conftest.$ac_ext | |
16529 | cat >>conftest.$ac_ext <<_ACEOF | |
16530 | /* end confdefs.h. */ | |
16531 | $ac_includes_default | |
16532 | int | |
16533 | main () | |
16534 | { | |
16535 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16536 | test_array [0] = 0 | |
16537 | ||
16538 | ; | |
16539 | return 0; | |
16540 | } | |
16541 | _ACEOF | |
16542 | rm -f conftest.$ac_objext | |
16543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16544 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16545 | ac_status=$? |
ac1cb8d3 VS |
16546 | grep -v '^ *+' conftest.er1 >conftest.err |
16547 | rm -f conftest.er1 | |
16548 | cat conftest.err >&5 | |
a848cd7e SC |
16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16550 | (exit $ac_status); } && | |
89be85c2 VS |
16551 | { ac_try='test -z "$ac_c_werror_flag" |
16552 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16554 | (eval $ac_try) 2>&5 | |
16555 | ac_status=$? | |
16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16557 | (exit $ac_status); }; } && | |
16558 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16560 | (eval $ac_try) 2>&5 | |
16561 | ac_status=$? | |
16562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16563 | (exit $ac_status); }; }; then | |
16564 | ac_hi=$ac_mid; break | |
16565 | else | |
16566 | echo "$as_me: failed program was:" >&5 | |
16567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16568 | ||
16569 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16570 | if test $ac_lo -le $ac_mid; then |
16571 | ac_lo= ac_hi= | |
16572 | break | |
16573 | fi | |
16574 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16575 | fi |
ac1cb8d3 | 16576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16577 | done |
16578 | else | |
16579 | echo "$as_me: failed program was:" >&5 | |
16580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16581 | ||
16582 | cat >conftest.$ac_ext <<_ACEOF | |
16583 | /* confdefs.h. */ | |
16584 | _ACEOF | |
16585 | cat confdefs.h >>conftest.$ac_ext | |
16586 | cat >>conftest.$ac_ext <<_ACEOF | |
16587 | /* end confdefs.h. */ | |
16588 | $ac_includes_default | |
16589 | int | |
16590 | main () | |
16591 | { | |
16592 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16593 | test_array [0] = 0 | |
16594 | ||
16595 | ; | |
16596 | return 0; | |
16597 | } | |
16598 | _ACEOF | |
16599 | rm -f conftest.$ac_objext | |
16600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16602 | ac_status=$? |
ac1cb8d3 VS |
16603 | grep -v '^ *+' conftest.er1 >conftest.err |
16604 | rm -f conftest.er1 | |
16605 | cat conftest.err >&5 | |
a848cd7e SC |
16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16607 | (exit $ac_status); } && | |
89be85c2 VS |
16608 | { ac_try='test -z "$ac_c_werror_flag" |
16609 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16611 | (eval $ac_try) 2>&5 | |
16612 | ac_status=$? | |
16613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16614 | (exit $ac_status); }; } && | |
16615 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16617 | (eval $ac_try) 2>&5 | |
16618 | ac_status=$? | |
16619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16620 | (exit $ac_status); }; }; then | |
16621 | ac_hi=-1 ac_mid=-1 | |
16622 | while :; do | |
16623 | cat >conftest.$ac_ext <<_ACEOF | |
16624 | /* confdefs.h. */ | |
16625 | _ACEOF | |
16626 | cat confdefs.h >>conftest.$ac_ext | |
16627 | cat >>conftest.$ac_ext <<_ACEOF | |
16628 | /* end confdefs.h. */ | |
16629 | $ac_includes_default | |
16630 | int | |
16631 | main () | |
16632 | { | |
16633 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16634 | test_array [0] = 0 | |
16635 | ||
16636 | ; | |
16637 | return 0; | |
16638 | } | |
16639 | _ACEOF | |
16640 | rm -f conftest.$ac_objext | |
16641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16642 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16643 | ac_status=$? |
ac1cb8d3 VS |
16644 | grep -v '^ *+' conftest.er1 >conftest.err |
16645 | rm -f conftest.er1 | |
16646 | cat conftest.err >&5 | |
a848cd7e SC |
16647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16648 | (exit $ac_status); } && | |
89be85c2 VS |
16649 | { ac_try='test -z "$ac_c_werror_flag" |
16650 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16652 | (eval $ac_try) 2>&5 | |
16653 | ac_status=$? | |
16654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16655 | (exit $ac_status); }; } && | |
16656 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16658 | (eval $ac_try) 2>&5 | |
16659 | ac_status=$? | |
16660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16661 | (exit $ac_status); }; }; then | |
16662 | ac_lo=$ac_mid; break | |
16663 | else | |
16664 | echo "$as_me: failed program was:" >&5 | |
16665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16666 | ||
16667 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16668 | if test $ac_mid -le $ac_hi; then |
16669 | ac_lo= ac_hi= | |
16670 | break | |
16671 | fi | |
16672 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16673 | fi |
ac1cb8d3 | 16674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16675 | done |
16676 | else | |
16677 | echo "$as_me: failed program was:" >&5 | |
16678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16679 | ||
16680 | ac_lo= ac_hi= | |
16681 | fi | |
ac1cb8d3 | 16682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16683 | fi |
ac1cb8d3 | 16684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16685 | # Binary search between lo and hi bounds. |
16686 | while test "x$ac_lo" != "x$ac_hi"; do | |
16687 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16688 | cat >conftest.$ac_ext <<_ACEOF | |
16689 | /* confdefs.h. */ | |
16690 | _ACEOF | |
16691 | cat confdefs.h >>conftest.$ac_ext | |
16692 | cat >>conftest.$ac_ext <<_ACEOF | |
16693 | /* end confdefs.h. */ | |
16694 | $ac_includes_default | |
16695 | int | |
16696 | main () | |
16697 | { | |
16698 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16699 | test_array [0] = 0 | |
16700 | ||
16701 | ; | |
16702 | return 0; | |
16703 | } | |
16704 | _ACEOF | |
16705 | rm -f conftest.$ac_objext | |
16706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16707 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16708 | ac_status=$? |
ac1cb8d3 VS |
16709 | grep -v '^ *+' conftest.er1 >conftest.err |
16710 | rm -f conftest.er1 | |
16711 | cat conftest.err >&5 | |
a848cd7e SC |
16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16713 | (exit $ac_status); } && | |
89be85c2 VS |
16714 | { ac_try='test -z "$ac_c_werror_flag" |
16715 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16717 | (eval $ac_try) 2>&5 | |
16718 | ac_status=$? | |
16719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16720 | (exit $ac_status); }; } && | |
16721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16723 | (eval $ac_try) 2>&5 | |
16724 | ac_status=$? | |
16725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16726 | (exit $ac_status); }; }; then | |
16727 | ac_hi=$ac_mid | |
16728 | else | |
16729 | echo "$as_me: failed program was:" >&5 | |
16730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16731 | ||
16732 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16733 | fi | |
ac1cb8d3 | 16734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16735 | done |
16736 | case $ac_lo in | |
16737 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16738 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16739 | See \`config.log' for more details." >&5 | |
16740 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16741 | See \`config.log' for more details." >&2;} | |
16742 | { (exit 1); exit 1; }; } ;; | |
16743 | esac | |
16744 | else | |
16745 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
16746 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16747 | See \`config.log' for more details." >&5 | |
16748 | echo "$as_me: error: cannot run test program while cross compiling | |
16749 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16750 | { (exit 1); exit 1; }; } |
16751 | else | |
16752 | cat >conftest.$ac_ext <<_ACEOF | |
16753 | /* confdefs.h. */ | |
16754 | _ACEOF | |
16755 | cat confdefs.h >>conftest.$ac_ext | |
16756 | cat >>conftest.$ac_ext <<_ACEOF | |
16757 | /* end confdefs.h. */ | |
16758 | $ac_includes_default | |
16759 | long longval () { return (long) (sizeof (long)); } | |
16760 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16761 | #include <stdio.h> | |
16762 | #include <stdlib.h> | |
16763 | int | |
16764 | main () | |
16765 | { | |
16766 | ||
16767 | FILE *f = fopen ("conftest.val", "w"); | |
16768 | if (! f) | |
16769 | exit (1); | |
16770 | if (((long) (sizeof (long))) < 0) | |
16771 | { | |
16772 | long i = longval (); | |
16773 | if (i != ((long) (sizeof (long)))) | |
16774 | exit (1); | |
16775 | fprintf (f, "%ld\n", i); | |
16776 | } | |
16777 | else | |
16778 | { | |
16779 | unsigned long i = ulongval (); | |
16780 | if (i != ((long) (sizeof (long)))) | |
16781 | exit (1); | |
16782 | fprintf (f, "%lu\n", i); | |
16783 | } | |
16784 | exit (ferror (f) || fclose (f) != 0); | |
16785 | ||
16786 | ; | |
16787 | return 0; | |
16788 | } | |
16789 | _ACEOF | |
16790 | rm -f conftest$ac_exeext | |
16791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16792 | (eval $ac_link) 2>&5 | |
16793 | ac_status=$? | |
16794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16795 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16797 | (eval $ac_try) 2>&5 | |
16798 | ac_status=$? | |
16799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16800 | (exit $ac_status); }; }; then | |
16801 | ac_cv_sizeof_long=`cat conftest.val` | |
16802 | else | |
16803 | echo "$as_me: program exited with status $ac_status" >&5 | |
16804 | echo "$as_me: failed program was:" >&5 | |
16805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16806 | ||
16807 | ( exit $ac_status ) | |
16808 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16809 | See \`config.log' for more details." >&5 | |
16810 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16811 | See \`config.log' for more details." >&2;} | |
16812 | { (exit 1); exit 1; }; } | |
16813 | fi | |
ac1cb8d3 | 16814 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16815 | fi |
16816 | fi | |
16817 | rm -f conftest.val | |
16818 | else | |
16819 | ac_cv_sizeof_long=0 | |
16820 | fi | |
16821 | fi | |
16822 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16823 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16824 | cat >>confdefs.h <<_ACEOF | |
16825 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16826 | _ACEOF | |
16827 | ||
16828 | ||
16829 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16830 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16831 | if test "${ac_cv_type_size_t+set}" = set; then | |
16832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16833 | else | |
16834 | cat >conftest.$ac_ext <<_ACEOF | |
16835 | /* confdefs.h. */ | |
16836 | _ACEOF | |
16837 | cat confdefs.h >>conftest.$ac_ext | |
16838 | cat >>conftest.$ac_ext <<_ACEOF | |
16839 | /* end confdefs.h. */ | |
16840 | $ac_includes_default | |
16841 | int | |
16842 | main () | |
16843 | { | |
16844 | if ((size_t *) 0) | |
16845 | return 0; | |
16846 | if (sizeof (size_t)) | |
16847 | return 0; | |
16848 | ; | |
16849 | return 0; | |
16850 | } | |
16851 | _ACEOF | |
16852 | rm -f conftest.$ac_objext | |
16853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16854 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16855 | ac_status=$? |
ac1cb8d3 VS |
16856 | grep -v '^ *+' conftest.er1 >conftest.err |
16857 | rm -f conftest.er1 | |
16858 | cat conftest.err >&5 | |
a848cd7e SC |
16859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16860 | (exit $ac_status); } && | |
89be85c2 VS |
16861 | { ac_try='test -z "$ac_c_werror_flag" |
16862 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16864 | (eval $ac_try) 2>&5 | |
16865 | ac_status=$? | |
16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16867 | (exit $ac_status); }; } && | |
16868 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16870 | (eval $ac_try) 2>&5 | |
16871 | ac_status=$? | |
16872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16873 | (exit $ac_status); }; }; then | |
16874 | ac_cv_type_size_t=yes | |
16875 | else | |
16876 | echo "$as_me: failed program was:" >&5 | |
16877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16878 | ||
16879 | ac_cv_type_size_t=no | |
16880 | fi | |
ac1cb8d3 | 16881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16882 | fi |
16883 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16884 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16885 | ||
16886 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16887 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16888 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16890 | else | |
16891 | if test "$ac_cv_type_size_t" = yes; then | |
16892 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16893 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16894 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16895 | # This bug is HP SR number 8606223364. | |
16896 | if test "$cross_compiling" = yes; then | |
16897 | # Depending upon the size, compute the lo and hi bounds. | |
16898 | cat >conftest.$ac_ext <<_ACEOF | |
16899 | /* confdefs.h. */ | |
16900 | _ACEOF | |
16901 | cat confdefs.h >>conftest.$ac_ext | |
16902 | cat >>conftest.$ac_ext <<_ACEOF | |
16903 | /* end confdefs.h. */ | |
16904 | $ac_includes_default | |
16905 | int | |
16906 | main () | |
16907 | { | |
16908 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16909 | test_array [0] = 0 | |
16910 | ||
16911 | ; | |
16912 | return 0; | |
16913 | } | |
16914 | _ACEOF | |
16915 | rm -f conftest.$ac_objext | |
16916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16917 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16918 | ac_status=$? |
ac1cb8d3 VS |
16919 | grep -v '^ *+' conftest.er1 >conftest.err |
16920 | rm -f conftest.er1 | |
16921 | cat conftest.err >&5 | |
a848cd7e SC |
16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16923 | (exit $ac_status); } && | |
89be85c2 VS |
16924 | { ac_try='test -z "$ac_c_werror_flag" |
16925 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16927 | (eval $ac_try) 2>&5 | |
16928 | ac_status=$? | |
16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16930 | (exit $ac_status); }; } && | |
16931 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16933 | (eval $ac_try) 2>&5 | |
16934 | ac_status=$? | |
16935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16936 | (exit $ac_status); }; }; then | |
16937 | ac_lo=0 ac_mid=0 | |
16938 | while :; do | |
16939 | cat >conftest.$ac_ext <<_ACEOF | |
16940 | /* confdefs.h. */ | |
16941 | _ACEOF | |
16942 | cat confdefs.h >>conftest.$ac_ext | |
16943 | cat >>conftest.$ac_ext <<_ACEOF | |
16944 | /* end confdefs.h. */ | |
16945 | $ac_includes_default | |
16946 | int | |
16947 | main () | |
16948 | { | |
16949 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16950 | test_array [0] = 0 | |
16951 | ||
16952 | ; | |
16953 | return 0; | |
16954 | } | |
16955 | _ACEOF | |
16956 | rm -f conftest.$ac_objext | |
16957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16958 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16959 | ac_status=$? |
ac1cb8d3 VS |
16960 | grep -v '^ *+' conftest.er1 >conftest.err |
16961 | rm -f conftest.er1 | |
16962 | cat conftest.err >&5 | |
a848cd7e SC |
16963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16964 | (exit $ac_status); } && | |
89be85c2 VS |
16965 | { ac_try='test -z "$ac_c_werror_flag" |
16966 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16968 | (eval $ac_try) 2>&5 | |
16969 | ac_status=$? | |
16970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16971 | (exit $ac_status); }; } && | |
16972 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16974 | (eval $ac_try) 2>&5 | |
16975 | ac_status=$? | |
16976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16977 | (exit $ac_status); }; }; then | |
16978 | ac_hi=$ac_mid; break | |
16979 | else | |
16980 | echo "$as_me: failed program was:" >&5 | |
16981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16982 | ||
16983 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16984 | if test $ac_lo -le $ac_mid; then |
16985 | ac_lo= ac_hi= | |
16986 | break | |
16987 | fi | |
16988 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16989 | fi |
ac1cb8d3 | 16990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16991 | done |
16992 | else | |
16993 | echo "$as_me: failed program was:" >&5 | |
16994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16995 | ||
16996 | cat >conftest.$ac_ext <<_ACEOF | |
16997 | /* confdefs.h. */ | |
16998 | _ACEOF | |
16999 | cat confdefs.h >>conftest.$ac_ext | |
17000 | cat >>conftest.$ac_ext <<_ACEOF | |
17001 | /* end confdefs.h. */ | |
17002 | $ac_includes_default | |
17003 | int | |
17004 | main () | |
17005 | { | |
17006 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17007 | test_array [0] = 0 | |
17008 | ||
17009 | ; | |
17010 | return 0; | |
17011 | } | |
17012 | _ACEOF | |
17013 | rm -f conftest.$ac_objext | |
17014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17016 | ac_status=$? |
ac1cb8d3 VS |
17017 | grep -v '^ *+' conftest.er1 >conftest.err |
17018 | rm -f conftest.er1 | |
17019 | cat conftest.err >&5 | |
a848cd7e SC |
17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17021 | (exit $ac_status); } && | |
89be85c2 VS |
17022 | { ac_try='test -z "$ac_c_werror_flag" |
17023 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17025 | (eval $ac_try) 2>&5 | |
17026 | ac_status=$? | |
17027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17028 | (exit $ac_status); }; } && | |
17029 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17031 | (eval $ac_try) 2>&5 | |
17032 | ac_status=$? | |
17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17034 | (exit $ac_status); }; }; then | |
17035 | ac_hi=-1 ac_mid=-1 | |
17036 | while :; do | |
17037 | cat >conftest.$ac_ext <<_ACEOF | |
17038 | /* confdefs.h. */ | |
17039 | _ACEOF | |
17040 | cat confdefs.h >>conftest.$ac_ext | |
17041 | cat >>conftest.$ac_ext <<_ACEOF | |
17042 | /* end confdefs.h. */ | |
17043 | $ac_includes_default | |
17044 | int | |
17045 | main () | |
17046 | { | |
17047 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17048 | test_array [0] = 0 | |
17049 | ||
17050 | ; | |
17051 | return 0; | |
17052 | } | |
17053 | _ACEOF | |
17054 | rm -f conftest.$ac_objext | |
17055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17056 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17057 | ac_status=$? |
ac1cb8d3 VS |
17058 | grep -v '^ *+' conftest.er1 >conftest.err |
17059 | rm -f conftest.er1 | |
17060 | cat conftest.err >&5 | |
a848cd7e SC |
17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17062 | (exit $ac_status); } && | |
89be85c2 VS |
17063 | { ac_try='test -z "$ac_c_werror_flag" |
17064 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17066 | (eval $ac_try) 2>&5 | |
17067 | ac_status=$? | |
17068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17069 | (exit $ac_status); }; } && | |
17070 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17072 | (eval $ac_try) 2>&5 | |
17073 | ac_status=$? | |
17074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17075 | (exit $ac_status); }; }; then | |
17076 | ac_lo=$ac_mid; break | |
17077 | else | |
17078 | echo "$as_me: failed program was:" >&5 | |
17079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17080 | ||
17081 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17082 | if test $ac_mid -le $ac_hi; then |
17083 | ac_lo= ac_hi= | |
17084 | break | |
17085 | fi | |
17086 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17087 | fi |
ac1cb8d3 | 17088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17089 | done |
17090 | else | |
17091 | echo "$as_me: failed program was:" >&5 | |
17092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17093 | ||
17094 | ac_lo= ac_hi= | |
17095 | fi | |
ac1cb8d3 | 17096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17097 | fi |
ac1cb8d3 | 17098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17099 | # Binary search between lo and hi bounds. |
17100 | while test "x$ac_lo" != "x$ac_hi"; do | |
17101 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17102 | cat >conftest.$ac_ext <<_ACEOF | |
17103 | /* confdefs.h. */ | |
17104 | _ACEOF | |
17105 | cat confdefs.h >>conftest.$ac_ext | |
17106 | cat >>conftest.$ac_ext <<_ACEOF | |
17107 | /* end confdefs.h. */ | |
17108 | $ac_includes_default | |
17109 | int | |
17110 | main () | |
17111 | { | |
17112 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17113 | test_array [0] = 0 | |
17114 | ||
17115 | ; | |
17116 | return 0; | |
17117 | } | |
17118 | _ACEOF | |
17119 | rm -f conftest.$ac_objext | |
17120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17122 | ac_status=$? |
ac1cb8d3 VS |
17123 | grep -v '^ *+' conftest.er1 >conftest.err |
17124 | rm -f conftest.er1 | |
17125 | cat conftest.err >&5 | |
a848cd7e SC |
17126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17127 | (exit $ac_status); } && | |
89be85c2 VS |
17128 | { ac_try='test -z "$ac_c_werror_flag" |
17129 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17131 | (eval $ac_try) 2>&5 | |
17132 | ac_status=$? | |
17133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17134 | (exit $ac_status); }; } && | |
17135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17137 | (eval $ac_try) 2>&5 | |
17138 | ac_status=$? | |
17139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17140 | (exit $ac_status); }; }; then | |
17141 | ac_hi=$ac_mid | |
17142 | else | |
17143 | echo "$as_me: failed program was:" >&5 | |
17144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17145 | ||
17146 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17147 | fi | |
ac1cb8d3 | 17148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17149 | done |
17150 | case $ac_lo in | |
17151 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
17152 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17153 | See \`config.log' for more details." >&5 | |
17154 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17155 | See \`config.log' for more details." >&2;} | |
17156 | { (exit 1); exit 1; }; } ;; | |
17157 | esac | |
17158 | else | |
17159 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
17160 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17161 | See \`config.log' for more details." >&5 | |
17162 | echo "$as_me: error: cannot run test program while cross compiling | |
17163 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17164 | { (exit 1); exit 1; }; } |
17165 | else | |
17166 | cat >conftest.$ac_ext <<_ACEOF | |
17167 | /* confdefs.h. */ | |
17168 | _ACEOF | |
17169 | cat confdefs.h >>conftest.$ac_ext | |
17170 | cat >>conftest.$ac_ext <<_ACEOF | |
17171 | /* end confdefs.h. */ | |
17172 | $ac_includes_default | |
17173 | long longval () { return (long) (sizeof (size_t)); } | |
17174 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
17175 | #include <stdio.h> | |
17176 | #include <stdlib.h> | |
17177 | int | |
17178 | main () | |
17179 | { | |
17180 | ||
17181 | FILE *f = fopen ("conftest.val", "w"); | |
17182 | if (! f) | |
17183 | exit (1); | |
17184 | if (((long) (sizeof (size_t))) < 0) | |
17185 | { | |
17186 | long i = longval (); | |
17187 | if (i != ((long) (sizeof (size_t)))) | |
17188 | exit (1); | |
17189 | fprintf (f, "%ld\n", i); | |
17190 | } | |
17191 | else | |
17192 | { | |
17193 | unsigned long i = ulongval (); | |
17194 | if (i != ((long) (sizeof (size_t)))) | |
17195 | exit (1); | |
17196 | fprintf (f, "%lu\n", i); | |
17197 | } | |
17198 | exit (ferror (f) || fclose (f) != 0); | |
17199 | ||
17200 | ; | |
17201 | return 0; | |
17202 | } | |
17203 | _ACEOF | |
17204 | rm -f conftest$ac_exeext | |
17205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17206 | (eval $ac_link) 2>&5 | |
17207 | ac_status=$? | |
17208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17209 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17211 | (eval $ac_try) 2>&5 | |
17212 | ac_status=$? | |
17213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17214 | (exit $ac_status); }; }; then | |
17215 | ac_cv_sizeof_size_t=`cat conftest.val` | |
17216 | else | |
17217 | echo "$as_me: program exited with status $ac_status" >&5 | |
17218 | echo "$as_me: failed program was:" >&5 | |
17219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17220 | ||
17221 | ( exit $ac_status ) | |
17222 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17223 | See \`config.log' for more details." >&5 | |
17224 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17225 | See \`config.log' for more details." >&2;} | |
17226 | { (exit 1); exit 1; }; } | |
17227 | fi | |
ac1cb8d3 | 17228 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17229 | fi |
17230 | fi | |
17231 | rm -f conftest.val | |
17232 | else | |
17233 | ac_cv_sizeof_size_t=0 | |
17234 | fi | |
17235 | fi | |
17236 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
17237 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
17238 | cat >>confdefs.h <<_ACEOF | |
17239 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
17240 | _ACEOF | |
17241 | ||
17242 | ||
17243 | ||
17244 | case "${host}" in | |
17245 | arm-*-linux* ) | |
17246 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17247 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17248 | if test "${ac_cv_type_long_long+set}" = set; then | |
17249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17250 | else | |
17251 | cat >conftest.$ac_ext <<_ACEOF | |
17252 | /* confdefs.h. */ | |
17253 | _ACEOF | |
17254 | cat confdefs.h >>conftest.$ac_ext | |
17255 | cat >>conftest.$ac_ext <<_ACEOF | |
17256 | /* end confdefs.h. */ | |
17257 | $ac_includes_default | |
17258 | int | |
17259 | main () | |
17260 | { | |
17261 | if ((long long *) 0) | |
17262 | return 0; | |
17263 | if (sizeof (long long)) | |
17264 | return 0; | |
17265 | ; | |
17266 | return 0; | |
17267 | } | |
17268 | _ACEOF | |
17269 | rm -f conftest.$ac_objext | |
17270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17271 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17272 | ac_status=$? |
ac1cb8d3 VS |
17273 | grep -v '^ *+' conftest.er1 >conftest.err |
17274 | rm -f conftest.er1 | |
17275 | cat conftest.err >&5 | |
a848cd7e SC |
17276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17277 | (exit $ac_status); } && | |
89be85c2 VS |
17278 | { ac_try='test -z "$ac_c_werror_flag" |
17279 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17281 | (eval $ac_try) 2>&5 | |
17282 | ac_status=$? | |
17283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17284 | (exit $ac_status); }; } && | |
17285 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17287 | (eval $ac_try) 2>&5 | |
17288 | ac_status=$? | |
17289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17290 | (exit $ac_status); }; }; then | |
17291 | ac_cv_type_long_long=yes | |
17292 | else | |
17293 | echo "$as_me: failed program was:" >&5 | |
17294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17295 | ||
17296 | ac_cv_type_long_long=no | |
17297 | fi | |
ac1cb8d3 | 17298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17299 | fi |
17300 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17301 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17302 | ||
17303 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17304 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17305 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17307 | else | |
17308 | if test "$ac_cv_type_long_long" = yes; then | |
17309 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17310 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17311 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17312 | # This bug is HP SR number 8606223364. | |
17313 | if test "$cross_compiling" = yes; then | |
17314 | # Depending upon the size, compute the lo and hi bounds. | |
17315 | cat >conftest.$ac_ext <<_ACEOF | |
17316 | /* confdefs.h. */ | |
17317 | _ACEOF | |
17318 | cat confdefs.h >>conftest.$ac_ext | |
17319 | cat >>conftest.$ac_ext <<_ACEOF | |
17320 | /* end confdefs.h. */ | |
17321 | $ac_includes_default | |
17322 | int | |
17323 | main () | |
17324 | { | |
17325 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17326 | test_array [0] = 0 | |
17327 | ||
17328 | ; | |
17329 | return 0; | |
17330 | } | |
17331 | _ACEOF | |
17332 | rm -f conftest.$ac_objext | |
17333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17334 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17335 | ac_status=$? |
ac1cb8d3 VS |
17336 | grep -v '^ *+' conftest.er1 >conftest.err |
17337 | rm -f conftest.er1 | |
17338 | cat conftest.err >&5 | |
a848cd7e SC |
17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17340 | (exit $ac_status); } && | |
89be85c2 VS |
17341 | { ac_try='test -z "$ac_c_werror_flag" |
17342 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17344 | (eval $ac_try) 2>&5 | |
17345 | ac_status=$? | |
17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17347 | (exit $ac_status); }; } && | |
17348 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17350 | (eval $ac_try) 2>&5 | |
17351 | ac_status=$? | |
17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17353 | (exit $ac_status); }; }; then | |
17354 | ac_lo=0 ac_mid=0 | |
17355 | while :; do | |
17356 | cat >conftest.$ac_ext <<_ACEOF | |
17357 | /* confdefs.h. */ | |
17358 | _ACEOF | |
17359 | cat confdefs.h >>conftest.$ac_ext | |
17360 | cat >>conftest.$ac_ext <<_ACEOF | |
17361 | /* end confdefs.h. */ | |
17362 | $ac_includes_default | |
17363 | int | |
17364 | main () | |
17365 | { | |
17366 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17367 | test_array [0] = 0 | |
17368 | ||
17369 | ; | |
17370 | return 0; | |
17371 | } | |
17372 | _ACEOF | |
17373 | rm -f conftest.$ac_objext | |
17374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17375 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17376 | ac_status=$? |
ac1cb8d3 VS |
17377 | grep -v '^ *+' conftest.er1 >conftest.err |
17378 | rm -f conftest.er1 | |
17379 | cat conftest.err >&5 | |
a848cd7e SC |
17380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17381 | (exit $ac_status); } && | |
89be85c2 VS |
17382 | { ac_try='test -z "$ac_c_werror_flag" |
17383 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17385 | (eval $ac_try) 2>&5 | |
17386 | ac_status=$? | |
17387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17388 | (exit $ac_status); }; } && | |
17389 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17391 | (eval $ac_try) 2>&5 | |
17392 | ac_status=$? | |
17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17394 | (exit $ac_status); }; }; then | |
17395 | ac_hi=$ac_mid; break | |
17396 | else | |
17397 | echo "$as_me: failed program was:" >&5 | |
17398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17399 | ||
17400 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17401 | if test $ac_lo -le $ac_mid; then |
17402 | ac_lo= ac_hi= | |
17403 | break | |
17404 | fi | |
17405 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17406 | fi |
ac1cb8d3 | 17407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17408 | done |
17409 | else | |
17410 | echo "$as_me: failed program was:" >&5 | |
17411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17412 | ||
17413 | cat >conftest.$ac_ext <<_ACEOF | |
17414 | /* confdefs.h. */ | |
17415 | _ACEOF | |
17416 | cat confdefs.h >>conftest.$ac_ext | |
17417 | cat >>conftest.$ac_ext <<_ACEOF | |
17418 | /* end confdefs.h. */ | |
17419 | $ac_includes_default | |
17420 | int | |
17421 | main () | |
17422 | { | |
17423 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17424 | test_array [0] = 0 | |
17425 | ||
17426 | ; | |
17427 | return 0; | |
17428 | } | |
17429 | _ACEOF | |
17430 | rm -f conftest.$ac_objext | |
17431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17432 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17433 | ac_status=$? |
ac1cb8d3 VS |
17434 | grep -v '^ *+' conftest.er1 >conftest.err |
17435 | rm -f conftest.er1 | |
17436 | cat conftest.err >&5 | |
a848cd7e SC |
17437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17438 | (exit $ac_status); } && | |
89be85c2 VS |
17439 | { ac_try='test -z "$ac_c_werror_flag" |
17440 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17442 | (eval $ac_try) 2>&5 | |
17443 | ac_status=$? | |
17444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17445 | (exit $ac_status); }; } && | |
17446 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17448 | (eval $ac_try) 2>&5 | |
17449 | ac_status=$? | |
17450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17451 | (exit $ac_status); }; }; then | |
17452 | ac_hi=-1 ac_mid=-1 | |
17453 | while :; do | |
17454 | cat >conftest.$ac_ext <<_ACEOF | |
17455 | /* confdefs.h. */ | |
17456 | _ACEOF | |
17457 | cat confdefs.h >>conftest.$ac_ext | |
17458 | cat >>conftest.$ac_ext <<_ACEOF | |
17459 | /* end confdefs.h. */ | |
17460 | $ac_includes_default | |
17461 | int | |
17462 | main () | |
17463 | { | |
17464 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17465 | test_array [0] = 0 | |
17466 | ||
17467 | ; | |
17468 | return 0; | |
17469 | } | |
17470 | _ACEOF | |
17471 | rm -f conftest.$ac_objext | |
17472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17473 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17474 | ac_status=$? |
ac1cb8d3 VS |
17475 | grep -v '^ *+' conftest.er1 >conftest.err |
17476 | rm -f conftest.er1 | |
17477 | cat conftest.err >&5 | |
a848cd7e SC |
17478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17479 | (exit $ac_status); } && | |
89be85c2 VS |
17480 | { ac_try='test -z "$ac_c_werror_flag" |
17481 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17483 | (eval $ac_try) 2>&5 | |
17484 | ac_status=$? | |
17485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17486 | (exit $ac_status); }; } && | |
17487 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17489 | (eval $ac_try) 2>&5 | |
17490 | ac_status=$? | |
17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17492 | (exit $ac_status); }; }; then | |
17493 | ac_lo=$ac_mid; break | |
17494 | else | |
17495 | echo "$as_me: failed program was:" >&5 | |
17496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17497 | ||
17498 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17499 | if test $ac_mid -le $ac_hi; then |
17500 | ac_lo= ac_hi= | |
17501 | break | |
17502 | fi | |
17503 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17504 | fi |
ac1cb8d3 | 17505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17506 | done |
17507 | else | |
17508 | echo "$as_me: failed program was:" >&5 | |
17509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17510 | ||
17511 | ac_lo= ac_hi= | |
17512 | fi | |
ac1cb8d3 | 17513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17514 | fi |
ac1cb8d3 | 17515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17516 | # Binary search between lo and hi bounds. |
17517 | while test "x$ac_lo" != "x$ac_hi"; do | |
17518 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17519 | cat >conftest.$ac_ext <<_ACEOF | |
17520 | /* confdefs.h. */ | |
17521 | _ACEOF | |
17522 | cat confdefs.h >>conftest.$ac_ext | |
17523 | cat >>conftest.$ac_ext <<_ACEOF | |
17524 | /* end confdefs.h. */ | |
17525 | $ac_includes_default | |
17526 | int | |
17527 | main () | |
17528 | { | |
17529 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17530 | test_array [0] = 0 | |
17531 | ||
17532 | ; | |
17533 | return 0; | |
17534 | } | |
17535 | _ACEOF | |
17536 | rm -f conftest.$ac_objext | |
17537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17538 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17539 | ac_status=$? |
ac1cb8d3 VS |
17540 | grep -v '^ *+' conftest.er1 >conftest.err |
17541 | rm -f conftest.er1 | |
17542 | cat conftest.err >&5 | |
a848cd7e SC |
17543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17544 | (exit $ac_status); } && | |
89be85c2 VS |
17545 | { ac_try='test -z "$ac_c_werror_flag" |
17546 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17548 | (eval $ac_try) 2>&5 | |
17549 | ac_status=$? | |
17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17551 | (exit $ac_status); }; } && | |
17552 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17554 | (eval $ac_try) 2>&5 | |
17555 | ac_status=$? | |
17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17557 | (exit $ac_status); }; }; then | |
17558 | ac_hi=$ac_mid | |
17559 | else | |
17560 | echo "$as_me: failed program was:" >&5 | |
17561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17562 | ||
17563 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17564 | fi | |
ac1cb8d3 | 17565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17566 | done |
17567 | case $ac_lo in | |
17568 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17569 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17570 | See \`config.log' for more details." >&5 | |
17571 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17572 | See \`config.log' for more details." >&2;} | |
17573 | { (exit 1); exit 1; }; } ;; | |
17574 | esac | |
17575 | else | |
17576 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
17577 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17578 | See \`config.log' for more details." >&5 | |
17579 | echo "$as_me: error: cannot run test program while cross compiling | |
17580 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17581 | { (exit 1); exit 1; }; } |
17582 | else | |
17583 | cat >conftest.$ac_ext <<_ACEOF | |
17584 | /* confdefs.h. */ | |
17585 | _ACEOF | |
17586 | cat confdefs.h >>conftest.$ac_ext | |
17587 | cat >>conftest.$ac_ext <<_ACEOF | |
17588 | /* end confdefs.h. */ | |
17589 | $ac_includes_default | |
17590 | long longval () { return (long) (sizeof (long long)); } | |
17591 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17592 | #include <stdio.h> | |
17593 | #include <stdlib.h> | |
17594 | int | |
17595 | main () | |
17596 | { | |
17597 | ||
17598 | FILE *f = fopen ("conftest.val", "w"); | |
17599 | if (! f) | |
17600 | exit (1); | |
17601 | if (((long) (sizeof (long long))) < 0) | |
17602 | { | |
17603 | long i = longval (); | |
17604 | if (i != ((long) (sizeof (long long)))) | |
17605 | exit (1); | |
17606 | fprintf (f, "%ld\n", i); | |
17607 | } | |
17608 | else | |
17609 | { | |
17610 | unsigned long i = ulongval (); | |
17611 | if (i != ((long) (sizeof (long long)))) | |
17612 | exit (1); | |
17613 | fprintf (f, "%lu\n", i); | |
17614 | } | |
17615 | exit (ferror (f) || fclose (f) != 0); | |
17616 | ||
17617 | ; | |
17618 | return 0; | |
17619 | } | |
17620 | _ACEOF | |
17621 | rm -f conftest$ac_exeext | |
17622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17623 | (eval $ac_link) 2>&5 | |
17624 | ac_status=$? | |
17625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17626 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17628 | (eval $ac_try) 2>&5 | |
17629 | ac_status=$? | |
17630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17631 | (exit $ac_status); }; }; then | |
17632 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17633 | else | |
17634 | echo "$as_me: program exited with status $ac_status" >&5 | |
17635 | echo "$as_me: failed program was:" >&5 | |
17636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17637 | ||
17638 | ( exit $ac_status ) | |
17639 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17640 | See \`config.log' for more details." >&5 | |
17641 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17642 | See \`config.log' for more details." >&2;} | |
17643 | { (exit 1); exit 1; }; } | |
17644 | fi | |
ac1cb8d3 | 17645 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17646 | fi |
17647 | fi | |
17648 | rm -f conftest.val | |
17649 | else | |
17650 | ac_cv_sizeof_long_long=0 | |
17651 | fi | |
17652 | fi | |
17653 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17654 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17655 | cat >>confdefs.h <<_ACEOF | |
17656 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17657 | _ACEOF | |
17658 | ||
17659 | ||
17660 | ;; | |
17661 | *-hp-hpux* ) | |
17662 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17663 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17664 | if test "${ac_cv_type_long_long+set}" = set; then | |
17665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17666 | else | |
17667 | cat >conftest.$ac_ext <<_ACEOF | |
17668 | /* confdefs.h. */ | |
17669 | _ACEOF | |
17670 | cat confdefs.h >>conftest.$ac_ext | |
17671 | cat >>conftest.$ac_ext <<_ACEOF | |
17672 | /* end confdefs.h. */ | |
17673 | $ac_includes_default | |
17674 | int | |
17675 | main () | |
17676 | { | |
17677 | if ((long long *) 0) | |
17678 | return 0; | |
17679 | if (sizeof (long long)) | |
17680 | return 0; | |
17681 | ; | |
17682 | return 0; | |
17683 | } | |
17684 | _ACEOF | |
17685 | rm -f conftest.$ac_objext | |
17686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17687 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17688 | ac_status=$? |
ac1cb8d3 VS |
17689 | grep -v '^ *+' conftest.er1 >conftest.err |
17690 | rm -f conftest.er1 | |
17691 | cat conftest.err >&5 | |
a848cd7e SC |
17692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17693 | (exit $ac_status); } && | |
89be85c2 VS |
17694 | { ac_try='test -z "$ac_c_werror_flag" |
17695 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17697 | (eval $ac_try) 2>&5 | |
17698 | ac_status=$? | |
17699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17700 | (exit $ac_status); }; } && | |
17701 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17703 | (eval $ac_try) 2>&5 | |
17704 | ac_status=$? | |
17705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17706 | (exit $ac_status); }; }; then | |
17707 | ac_cv_type_long_long=yes | |
17708 | else | |
17709 | echo "$as_me: failed program was:" >&5 | |
17710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17711 | ||
17712 | ac_cv_type_long_long=no | |
17713 | fi | |
ac1cb8d3 | 17714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17715 | fi |
17716 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17717 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17718 | ||
17719 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17720 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17721 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17723 | else | |
17724 | if test "$ac_cv_type_long_long" = yes; then | |
17725 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17726 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17727 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17728 | # This bug is HP SR number 8606223364. | |
17729 | if test "$cross_compiling" = yes; then | |
17730 | # Depending upon the size, compute the lo and hi bounds. | |
17731 | cat >conftest.$ac_ext <<_ACEOF | |
17732 | /* confdefs.h. */ | |
17733 | _ACEOF | |
17734 | cat confdefs.h >>conftest.$ac_ext | |
17735 | cat >>conftest.$ac_ext <<_ACEOF | |
17736 | /* end confdefs.h. */ | |
17737 | $ac_includes_default | |
17738 | int | |
17739 | main () | |
17740 | { | |
17741 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17742 | test_array [0] = 0 | |
17743 | ||
17744 | ; | |
17745 | return 0; | |
17746 | } | |
17747 | _ACEOF | |
17748 | rm -f conftest.$ac_objext | |
17749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17750 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17751 | ac_status=$? |
ac1cb8d3 VS |
17752 | grep -v '^ *+' conftest.er1 >conftest.err |
17753 | rm -f conftest.er1 | |
17754 | cat conftest.err >&5 | |
a848cd7e SC |
17755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17756 | (exit $ac_status); } && | |
89be85c2 VS |
17757 | { ac_try='test -z "$ac_c_werror_flag" |
17758 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17760 | (eval $ac_try) 2>&5 | |
17761 | ac_status=$? | |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17763 | (exit $ac_status); }; } && | |
17764 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17766 | (eval $ac_try) 2>&5 | |
17767 | ac_status=$? | |
17768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17769 | (exit $ac_status); }; }; then | |
17770 | ac_lo=0 ac_mid=0 | |
17771 | while :; do | |
17772 | cat >conftest.$ac_ext <<_ACEOF | |
17773 | /* confdefs.h. */ | |
17774 | _ACEOF | |
17775 | cat confdefs.h >>conftest.$ac_ext | |
17776 | cat >>conftest.$ac_ext <<_ACEOF | |
17777 | /* end confdefs.h. */ | |
17778 | $ac_includes_default | |
17779 | int | |
17780 | main () | |
17781 | { | |
17782 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17783 | test_array [0] = 0 | |
17784 | ||
17785 | ; | |
17786 | return 0; | |
17787 | } | |
17788 | _ACEOF | |
17789 | rm -f conftest.$ac_objext | |
17790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17791 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17792 | ac_status=$? |
ac1cb8d3 VS |
17793 | grep -v '^ *+' conftest.er1 >conftest.err |
17794 | rm -f conftest.er1 | |
17795 | cat conftest.err >&5 | |
a848cd7e SC |
17796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17797 | (exit $ac_status); } && | |
89be85c2 VS |
17798 | { ac_try='test -z "$ac_c_werror_flag" |
17799 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17801 | (eval $ac_try) 2>&5 | |
17802 | ac_status=$? | |
17803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17804 | (exit $ac_status); }; } && | |
17805 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17807 | (eval $ac_try) 2>&5 | |
17808 | ac_status=$? | |
17809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17810 | (exit $ac_status); }; }; then | |
17811 | ac_hi=$ac_mid; break | |
17812 | else | |
17813 | echo "$as_me: failed program was:" >&5 | |
17814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17815 | ||
17816 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17817 | if test $ac_lo -le $ac_mid; then |
17818 | ac_lo= ac_hi= | |
17819 | break | |
17820 | fi | |
17821 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17822 | fi |
ac1cb8d3 | 17823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17824 | done |
17825 | else | |
17826 | echo "$as_me: failed program was:" >&5 | |
17827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17828 | ||
17829 | cat >conftest.$ac_ext <<_ACEOF | |
17830 | /* confdefs.h. */ | |
17831 | _ACEOF | |
17832 | cat confdefs.h >>conftest.$ac_ext | |
17833 | cat >>conftest.$ac_ext <<_ACEOF | |
17834 | /* end confdefs.h. */ | |
17835 | $ac_includes_default | |
17836 | int | |
17837 | main () | |
17838 | { | |
17839 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17840 | test_array [0] = 0 | |
17841 | ||
17842 | ; | |
17843 | return 0; | |
17844 | } | |
17845 | _ACEOF | |
17846 | rm -f conftest.$ac_objext | |
17847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17848 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17849 | ac_status=$? |
ac1cb8d3 VS |
17850 | grep -v '^ *+' conftest.er1 >conftest.err |
17851 | rm -f conftest.er1 | |
17852 | cat conftest.err >&5 | |
a848cd7e SC |
17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17854 | (exit $ac_status); } && | |
89be85c2 VS |
17855 | { ac_try='test -z "$ac_c_werror_flag" |
17856 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17858 | (eval $ac_try) 2>&5 | |
17859 | ac_status=$? | |
17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17861 | (exit $ac_status); }; } && | |
17862 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17864 | (eval $ac_try) 2>&5 | |
17865 | ac_status=$? | |
17866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17867 | (exit $ac_status); }; }; then | |
17868 | ac_hi=-1 ac_mid=-1 | |
17869 | while :; do | |
17870 | cat >conftest.$ac_ext <<_ACEOF | |
17871 | /* confdefs.h. */ | |
17872 | _ACEOF | |
17873 | cat confdefs.h >>conftest.$ac_ext | |
17874 | cat >>conftest.$ac_ext <<_ACEOF | |
17875 | /* end confdefs.h. */ | |
17876 | $ac_includes_default | |
17877 | int | |
17878 | main () | |
17879 | { | |
17880 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17881 | test_array [0] = 0 | |
17882 | ||
17883 | ; | |
17884 | return 0; | |
17885 | } | |
17886 | _ACEOF | |
17887 | rm -f conftest.$ac_objext | |
17888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17889 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17890 | ac_status=$? |
ac1cb8d3 VS |
17891 | grep -v '^ *+' conftest.er1 >conftest.err |
17892 | rm -f conftest.er1 | |
17893 | cat conftest.err >&5 | |
a848cd7e SC |
17894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17895 | (exit $ac_status); } && | |
89be85c2 VS |
17896 | { ac_try='test -z "$ac_c_werror_flag" |
17897 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17899 | (eval $ac_try) 2>&5 | |
17900 | ac_status=$? | |
17901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17902 | (exit $ac_status); }; } && | |
17903 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17905 | (eval $ac_try) 2>&5 | |
17906 | ac_status=$? | |
17907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17908 | (exit $ac_status); }; }; then | |
17909 | ac_lo=$ac_mid; break | |
17910 | else | |
17911 | echo "$as_me: failed program was:" >&5 | |
17912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17913 | ||
17914 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17915 | if test $ac_mid -le $ac_hi; then |
17916 | ac_lo= ac_hi= | |
17917 | break | |
17918 | fi | |
17919 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17920 | fi |
ac1cb8d3 | 17921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17922 | done |
17923 | else | |
17924 | echo "$as_me: failed program was:" >&5 | |
17925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17926 | ||
17927 | ac_lo= ac_hi= | |
17928 | fi | |
ac1cb8d3 | 17929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17930 | fi |
ac1cb8d3 | 17931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17932 | # Binary search between lo and hi bounds. |
17933 | while test "x$ac_lo" != "x$ac_hi"; do | |
17934 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17935 | cat >conftest.$ac_ext <<_ACEOF | |
17936 | /* confdefs.h. */ | |
17937 | _ACEOF | |
17938 | cat confdefs.h >>conftest.$ac_ext | |
17939 | cat >>conftest.$ac_ext <<_ACEOF | |
17940 | /* end confdefs.h. */ | |
17941 | $ac_includes_default | |
17942 | int | |
17943 | main () | |
17944 | { | |
17945 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17946 | test_array [0] = 0 | |
17947 | ||
17948 | ; | |
17949 | return 0; | |
17950 | } | |
17951 | _ACEOF | |
17952 | rm -f conftest.$ac_objext | |
17953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17954 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17955 | ac_status=$? |
ac1cb8d3 VS |
17956 | grep -v '^ *+' conftest.er1 >conftest.err |
17957 | rm -f conftest.er1 | |
17958 | cat conftest.err >&5 | |
a848cd7e SC |
17959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17960 | (exit $ac_status); } && | |
89be85c2 VS |
17961 | { ac_try='test -z "$ac_c_werror_flag" |
17962 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17964 | (eval $ac_try) 2>&5 | |
17965 | ac_status=$? | |
17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17967 | (exit $ac_status); }; } && | |
17968 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17970 | (eval $ac_try) 2>&5 | |
17971 | ac_status=$? | |
17972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17973 | (exit $ac_status); }; }; then | |
17974 | ac_hi=$ac_mid | |
17975 | else | |
17976 | echo "$as_me: failed program was:" >&5 | |
17977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17978 | ||
17979 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17980 | fi | |
ac1cb8d3 | 17981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17982 | done |
17983 | case $ac_lo in | |
17984 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17985 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17986 | See \`config.log' for more details." >&5 | |
17987 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17988 | See \`config.log' for more details." >&2;} | |
17989 | { (exit 1); exit 1; }; } ;; | |
17990 | esac | |
17991 | else | |
17992 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
17993 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17994 | See \`config.log' for more details." >&5 | |
17995 | echo "$as_me: error: cannot run test program while cross compiling | |
17996 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17997 | { (exit 1); exit 1; }; } |
17998 | else | |
17999 | cat >conftest.$ac_ext <<_ACEOF | |
18000 | /* confdefs.h. */ | |
18001 | _ACEOF | |
18002 | cat confdefs.h >>conftest.$ac_ext | |
18003 | cat >>conftest.$ac_ext <<_ACEOF | |
18004 | /* end confdefs.h. */ | |
18005 | $ac_includes_default | |
18006 | long longval () { return (long) (sizeof (long long)); } | |
18007 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18008 | #include <stdio.h> | |
18009 | #include <stdlib.h> | |
18010 | int | |
18011 | main () | |
18012 | { | |
18013 | ||
18014 | FILE *f = fopen ("conftest.val", "w"); | |
18015 | if (! f) | |
18016 | exit (1); | |
18017 | if (((long) (sizeof (long long))) < 0) | |
18018 | { | |
18019 | long i = longval (); | |
18020 | if (i != ((long) (sizeof (long long)))) | |
18021 | exit (1); | |
18022 | fprintf (f, "%ld\n", i); | |
18023 | } | |
18024 | else | |
18025 | { | |
18026 | unsigned long i = ulongval (); | |
18027 | if (i != ((long) (sizeof (long long)))) | |
18028 | exit (1); | |
18029 | fprintf (f, "%lu\n", i); | |
18030 | } | |
18031 | exit (ferror (f) || fclose (f) != 0); | |
18032 | ||
18033 | ; | |
18034 | return 0; | |
18035 | } | |
18036 | _ACEOF | |
18037 | rm -f conftest$ac_exeext | |
18038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18039 | (eval $ac_link) 2>&5 | |
18040 | ac_status=$? | |
18041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18044 | (eval $ac_try) 2>&5 | |
18045 | ac_status=$? | |
18046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18047 | (exit $ac_status); }; }; then | |
18048 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18049 | else | |
18050 | echo "$as_me: program exited with status $ac_status" >&5 | |
18051 | echo "$as_me: failed program was:" >&5 | |
18052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18053 | ||
18054 | ( exit $ac_status ) | |
18055 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18056 | See \`config.log' for more details." >&5 | |
18057 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18058 | See \`config.log' for more details." >&2;} | |
18059 | { (exit 1); exit 1; }; } | |
18060 | fi | |
ac1cb8d3 | 18061 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18062 | fi |
18063 | fi | |
18064 | rm -f conftest.val | |
18065 | else | |
18066 | ac_cv_sizeof_long_long=0 | |
18067 | fi | |
18068 | fi | |
18069 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18070 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18071 | cat >>confdefs.h <<_ACEOF | |
18072 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18073 | _ACEOF | |
18074 | ||
18075 | ||
18076 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
18077 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
18078 | fi | |
18079 | ;; | |
18080 | * ) | |
18081 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18082 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18083 | if test "${ac_cv_type_long_long+set}" = set; then | |
18084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18085 | else | |
18086 | cat >conftest.$ac_ext <<_ACEOF | |
18087 | /* confdefs.h. */ | |
18088 | _ACEOF | |
18089 | cat confdefs.h >>conftest.$ac_ext | |
18090 | cat >>conftest.$ac_ext <<_ACEOF | |
18091 | /* end confdefs.h. */ | |
18092 | $ac_includes_default | |
18093 | int | |
18094 | main () | |
18095 | { | |
18096 | if ((long long *) 0) | |
18097 | return 0; | |
18098 | if (sizeof (long long)) | |
18099 | return 0; | |
18100 | ; | |
18101 | return 0; | |
18102 | } | |
18103 | _ACEOF | |
18104 | rm -f conftest.$ac_objext | |
18105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18106 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18107 | ac_status=$? |
ac1cb8d3 VS |
18108 | grep -v '^ *+' conftest.er1 >conftest.err |
18109 | rm -f conftest.er1 | |
18110 | cat conftest.err >&5 | |
a848cd7e SC |
18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18112 | (exit $ac_status); } && | |
89be85c2 VS |
18113 | { ac_try='test -z "$ac_c_werror_flag" |
18114 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18116 | (eval $ac_try) 2>&5 | |
18117 | ac_status=$? | |
18118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18119 | (exit $ac_status); }; } && | |
18120 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18122 | (eval $ac_try) 2>&5 | |
18123 | ac_status=$? | |
18124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18125 | (exit $ac_status); }; }; then | |
18126 | ac_cv_type_long_long=yes | |
18127 | else | |
18128 | echo "$as_me: failed program was:" >&5 | |
18129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18130 | ||
18131 | ac_cv_type_long_long=no | |
18132 | fi | |
ac1cb8d3 | 18133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18134 | fi |
18135 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18136 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18137 | ||
18138 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18139 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18140 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18142 | else | |
18143 | if test "$ac_cv_type_long_long" = yes; then | |
18144 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18145 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18146 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18147 | # This bug is HP SR number 8606223364. | |
18148 | if test "$cross_compiling" = yes; then | |
18149 | # Depending upon the size, compute the lo and hi bounds. | |
18150 | cat >conftest.$ac_ext <<_ACEOF | |
18151 | /* confdefs.h. */ | |
18152 | _ACEOF | |
18153 | cat confdefs.h >>conftest.$ac_ext | |
18154 | cat >>conftest.$ac_ext <<_ACEOF | |
18155 | /* end confdefs.h. */ | |
18156 | $ac_includes_default | |
18157 | int | |
18158 | main () | |
18159 | { | |
18160 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18161 | test_array [0] = 0 | |
18162 | ||
18163 | ; | |
18164 | return 0; | |
18165 | } | |
18166 | _ACEOF | |
18167 | rm -f conftest.$ac_objext | |
18168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18169 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18170 | ac_status=$? |
ac1cb8d3 VS |
18171 | grep -v '^ *+' conftest.er1 >conftest.err |
18172 | rm -f conftest.er1 | |
18173 | cat conftest.err >&5 | |
a848cd7e SC |
18174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18175 | (exit $ac_status); } && | |
89be85c2 VS |
18176 | { ac_try='test -z "$ac_c_werror_flag" |
18177 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18179 | (eval $ac_try) 2>&5 | |
18180 | ac_status=$? | |
18181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18182 | (exit $ac_status); }; } && | |
18183 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18185 | (eval $ac_try) 2>&5 | |
18186 | ac_status=$? | |
18187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18188 | (exit $ac_status); }; }; then | |
18189 | ac_lo=0 ac_mid=0 | |
18190 | while :; do | |
18191 | cat >conftest.$ac_ext <<_ACEOF | |
18192 | /* confdefs.h. */ | |
18193 | _ACEOF | |
18194 | cat confdefs.h >>conftest.$ac_ext | |
18195 | cat >>conftest.$ac_ext <<_ACEOF | |
18196 | /* end confdefs.h. */ | |
18197 | $ac_includes_default | |
18198 | int | |
18199 | main () | |
18200 | { | |
18201 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18202 | test_array [0] = 0 | |
18203 | ||
18204 | ; | |
18205 | return 0; | |
18206 | } | |
18207 | _ACEOF | |
18208 | rm -f conftest.$ac_objext | |
18209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18210 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18211 | ac_status=$? |
ac1cb8d3 VS |
18212 | grep -v '^ *+' conftest.er1 >conftest.err |
18213 | rm -f conftest.er1 | |
18214 | cat conftest.err >&5 | |
a848cd7e SC |
18215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18216 | (exit $ac_status); } && | |
89be85c2 VS |
18217 | { ac_try='test -z "$ac_c_werror_flag" |
18218 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18220 | (eval $ac_try) 2>&5 | |
18221 | ac_status=$? | |
18222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18223 | (exit $ac_status); }; } && | |
18224 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18226 | (eval $ac_try) 2>&5 | |
18227 | ac_status=$? | |
18228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18229 | (exit $ac_status); }; }; then | |
18230 | ac_hi=$ac_mid; break | |
18231 | else | |
18232 | echo "$as_me: failed program was:" >&5 | |
18233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18234 | ||
18235 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18236 | if test $ac_lo -le $ac_mid; then |
18237 | ac_lo= ac_hi= | |
18238 | break | |
18239 | fi | |
18240 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18241 | fi |
ac1cb8d3 | 18242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18243 | done |
18244 | else | |
18245 | echo "$as_me: failed program was:" >&5 | |
18246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18247 | ||
18248 | cat >conftest.$ac_ext <<_ACEOF | |
18249 | /* confdefs.h. */ | |
18250 | _ACEOF | |
18251 | cat confdefs.h >>conftest.$ac_ext | |
18252 | cat >>conftest.$ac_ext <<_ACEOF | |
18253 | /* end confdefs.h. */ | |
18254 | $ac_includes_default | |
18255 | int | |
18256 | main () | |
18257 | { | |
18258 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18259 | test_array [0] = 0 | |
18260 | ||
18261 | ; | |
18262 | return 0; | |
18263 | } | |
18264 | _ACEOF | |
18265 | rm -f conftest.$ac_objext | |
18266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18267 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18268 | ac_status=$? |
ac1cb8d3 VS |
18269 | grep -v '^ *+' conftest.er1 >conftest.err |
18270 | rm -f conftest.er1 | |
18271 | cat conftest.err >&5 | |
a848cd7e SC |
18272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18273 | (exit $ac_status); } && | |
89be85c2 VS |
18274 | { ac_try='test -z "$ac_c_werror_flag" |
18275 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18277 | (eval $ac_try) 2>&5 | |
18278 | ac_status=$? | |
18279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18280 | (exit $ac_status); }; } && | |
18281 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18283 | (eval $ac_try) 2>&5 | |
18284 | ac_status=$? | |
18285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18286 | (exit $ac_status); }; }; then | |
18287 | ac_hi=-1 ac_mid=-1 | |
18288 | while :; do | |
18289 | cat >conftest.$ac_ext <<_ACEOF | |
18290 | /* confdefs.h. */ | |
18291 | _ACEOF | |
18292 | cat confdefs.h >>conftest.$ac_ext | |
18293 | cat >>conftest.$ac_ext <<_ACEOF | |
18294 | /* end confdefs.h. */ | |
18295 | $ac_includes_default | |
18296 | int | |
18297 | main () | |
18298 | { | |
18299 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18300 | test_array [0] = 0 | |
18301 | ||
18302 | ; | |
18303 | return 0; | |
18304 | } | |
18305 | _ACEOF | |
18306 | rm -f conftest.$ac_objext | |
18307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18308 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18309 | ac_status=$? |
ac1cb8d3 VS |
18310 | grep -v '^ *+' conftest.er1 >conftest.err |
18311 | rm -f conftest.er1 | |
18312 | cat conftest.err >&5 | |
a848cd7e SC |
18313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18314 | (exit $ac_status); } && | |
89be85c2 VS |
18315 | { ac_try='test -z "$ac_c_werror_flag" |
18316 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18318 | (eval $ac_try) 2>&5 | |
18319 | ac_status=$? | |
18320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18321 | (exit $ac_status); }; } && | |
18322 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18324 | (eval $ac_try) 2>&5 | |
18325 | ac_status=$? | |
18326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18327 | (exit $ac_status); }; }; then | |
18328 | ac_lo=$ac_mid; break | |
18329 | else | |
18330 | echo "$as_me: failed program was:" >&5 | |
18331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18332 | ||
18333 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18334 | if test $ac_mid -le $ac_hi; then |
18335 | ac_lo= ac_hi= | |
18336 | break | |
18337 | fi | |
18338 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18339 | fi |
ac1cb8d3 | 18340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18341 | done |
18342 | else | |
18343 | echo "$as_me: failed program was:" >&5 | |
18344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18345 | ||
18346 | ac_lo= ac_hi= | |
18347 | fi | |
ac1cb8d3 | 18348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18349 | fi |
ac1cb8d3 | 18350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18351 | # Binary search between lo and hi bounds. |
18352 | while test "x$ac_lo" != "x$ac_hi"; do | |
18353 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18354 | cat >conftest.$ac_ext <<_ACEOF | |
18355 | /* confdefs.h. */ | |
18356 | _ACEOF | |
18357 | cat confdefs.h >>conftest.$ac_ext | |
18358 | cat >>conftest.$ac_ext <<_ACEOF | |
18359 | /* end confdefs.h. */ | |
18360 | $ac_includes_default | |
18361 | int | |
18362 | main () | |
18363 | { | |
18364 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18365 | test_array [0] = 0 | |
18366 | ||
18367 | ; | |
18368 | return 0; | |
18369 | } | |
18370 | _ACEOF | |
18371 | rm -f conftest.$ac_objext | |
18372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18373 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18374 | ac_status=$? |
ac1cb8d3 VS |
18375 | grep -v '^ *+' conftest.er1 >conftest.err |
18376 | rm -f conftest.er1 | |
18377 | cat conftest.err >&5 | |
a848cd7e SC |
18378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18379 | (exit $ac_status); } && | |
89be85c2 VS |
18380 | { ac_try='test -z "$ac_c_werror_flag" |
18381 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18383 | (eval $ac_try) 2>&5 | |
18384 | ac_status=$? | |
18385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18386 | (exit $ac_status); }; } && | |
18387 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18389 | (eval $ac_try) 2>&5 | |
18390 | ac_status=$? | |
18391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18392 | (exit $ac_status); }; }; then | |
18393 | ac_hi=$ac_mid | |
18394 | else | |
18395 | echo "$as_me: failed program was:" >&5 | |
18396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18397 | ||
18398 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18399 | fi | |
ac1cb8d3 | 18400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18401 | done |
18402 | case $ac_lo in | |
18403 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18404 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18405 | See \`config.log' for more details." >&5 | |
18406 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18407 | See \`config.log' for more details." >&2;} | |
18408 | { (exit 1); exit 1; }; } ;; | |
18409 | esac | |
18410 | else | |
18411 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
18412 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18413 | See \`config.log' for more details." >&5 | |
18414 | echo "$as_me: error: cannot run test program while cross compiling | |
18415 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18416 | { (exit 1); exit 1; }; } |
18417 | else | |
18418 | cat >conftest.$ac_ext <<_ACEOF | |
18419 | /* confdefs.h. */ | |
18420 | _ACEOF | |
18421 | cat confdefs.h >>conftest.$ac_ext | |
18422 | cat >>conftest.$ac_ext <<_ACEOF | |
18423 | /* end confdefs.h. */ | |
18424 | $ac_includes_default | |
18425 | long longval () { return (long) (sizeof (long long)); } | |
18426 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18427 | #include <stdio.h> | |
18428 | #include <stdlib.h> | |
18429 | int | |
18430 | main () | |
18431 | { | |
18432 | ||
18433 | FILE *f = fopen ("conftest.val", "w"); | |
18434 | if (! f) | |
18435 | exit (1); | |
18436 | if (((long) (sizeof (long long))) < 0) | |
18437 | { | |
18438 | long i = longval (); | |
18439 | if (i != ((long) (sizeof (long long)))) | |
18440 | exit (1); | |
18441 | fprintf (f, "%ld\n", i); | |
18442 | } | |
18443 | else | |
18444 | { | |
18445 | unsigned long i = ulongval (); | |
18446 | if (i != ((long) (sizeof (long long)))) | |
18447 | exit (1); | |
18448 | fprintf (f, "%lu\n", i); | |
18449 | } | |
18450 | exit (ferror (f) || fclose (f) != 0); | |
18451 | ||
18452 | ; | |
18453 | return 0; | |
18454 | } | |
18455 | _ACEOF | |
18456 | rm -f conftest$ac_exeext | |
18457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18458 | (eval $ac_link) 2>&5 | |
18459 | ac_status=$? | |
18460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18461 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18463 | (eval $ac_try) 2>&5 | |
18464 | ac_status=$? | |
18465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18466 | (exit $ac_status); }; }; then | |
18467 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18468 | else | |
18469 | echo "$as_me: program exited with status $ac_status" >&5 | |
18470 | echo "$as_me: failed program was:" >&5 | |
18471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18472 | ||
18473 | ( exit $ac_status ) | |
18474 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18475 | See \`config.log' for more details." >&5 | |
18476 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18477 | See \`config.log' for more details." >&2;} | |
18478 | { (exit 1); exit 1; }; } | |
18479 | fi | |
ac1cb8d3 | 18480 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18481 | fi |
18482 | fi | |
18483 | rm -f conftest.val | |
18484 | else | |
18485 | ac_cv_sizeof_long_long=0 | |
18486 | fi | |
18487 | fi | |
18488 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18489 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18490 | cat >>confdefs.h <<_ACEOF | |
18491 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18492 | _ACEOF | |
18493 | ||
18494 | ||
18495 | esac | |
18496 | ||
18497 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18498 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18499 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18501 | else | |
18502 | ||
18503 | if test "$cross_compiling" = yes; then | |
18504 | ||
18505 | case "${host}" in | |
18506 | *-pc-msdosdjgpp ) | |
18507 | wx_cv_sizeof_wchar_t=0 | |
18508 | ;; | |
18509 | * ) | |
18510 | wx_cv_sizeof_wchar_t=4 | |
18511 | ;; | |
18512 | esac | |
18513 | ||
18514 | ||
18515 | else | |
18516 | cat >conftest.$ac_ext <<_ACEOF | |
18517 | /* confdefs.h. */ | |
18518 | _ACEOF | |
18519 | cat confdefs.h >>conftest.$ac_ext | |
18520 | cat >>conftest.$ac_ext <<_ACEOF | |
18521 | /* end confdefs.h. */ | |
18522 | ||
18523 | /* DJGPP only has fake wchar_t: */ | |
18524 | #ifdef __DJGPP__ | |
18525 | # error "fake wchar_t" | |
18526 | #endif | |
18527 | #ifdef HAVE_WCHAR_H | |
18528 | # ifdef __CYGWIN__ | |
18529 | # include <stddef.h> | |
18530 | # endif | |
18531 | # include <wchar.h> | |
18532 | #endif | |
18533 | #ifdef HAVE_STDLIB_H | |
18534 | # include <stdlib.h> | |
18535 | #endif | |
18536 | #include <stdio.h> | |
18537 | int main() | |
18538 | { | |
18539 | FILE *f=fopen("conftestval", "w"); | |
18540 | if (!f) exit(1); | |
18541 | fprintf(f, "%i", sizeof(wchar_t)); | |
18542 | exit(0); | |
18543 | } | |
18544 | ||
18545 | _ACEOF | |
18546 | rm -f conftest$ac_exeext | |
18547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18548 | (eval $ac_link) 2>&5 | |
18549 | ac_status=$? | |
18550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18551 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18553 | (eval $ac_try) 2>&5 | |
18554 | ac_status=$? | |
18555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18556 | (exit $ac_status); }; }; then | |
18557 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18558 | else | |
18559 | echo "$as_me: program exited with status $ac_status" >&5 | |
18560 | echo "$as_me: failed program was:" >&5 | |
18561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18562 | ||
18563 | ( exit $ac_status ) | |
18564 | wx_cv_sizeof_wchar_t=0 | |
18565 | fi | |
ac1cb8d3 | 18566 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18567 | fi |
18568 | ||
18569 | fi | |
18570 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18571 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18572 | ||
18573 | cat >>confdefs.h <<_ACEOF | |
18574 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18575 | _ACEOF | |
18576 | ||
18577 | ||
ba3d13e1 VZ |
18578 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
18579 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
18580 | if test "${wx_cv_func_va_copy+set}" = set; then | |
18581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18582 | else | |
18583 | ||
18584 | cat >conftest.$ac_ext <<_ACEOF | |
18585 | ||
18586 | #include <stdarg.h> | |
18587 | void foo(char *f, ...) | |
18588 | { | |
18589 | va_list ap1, ap2; | |
18590 | va_start(ap1, f); | |
18591 | va_copy(ap2, ap1); | |
18592 | va_end(ap2); | |
18593 | va_end(ap1); | |
18594 | } | |
5886b072 VZ |
18595 | int main() |
18596 | { | |
b902e639 VZ |
18597 | foo("hi", 17); |
18598 | return 0; | |
5886b072 | 18599 | } |
ba3d13e1 VZ |
18600 | _ACEOF |
18601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18603 | (eval $ac_link) 2>conftest.er1 | |
18604 | ac_status=$? | |
18605 | grep -v '^ *+' conftest.er1 >conftest.err | |
18606 | rm -f conftest.er1 | |
18607 | cat conftest.err >&5 | |
18608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18609 | (exit $ac_status); } && | |
89be85c2 VS |
18610 | { ac_try='test -z "$ac_c_werror_flag" |
18611 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
18612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18613 | (eval $ac_try) 2>&5 | |
18614 | ac_status=$? | |
18615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18616 | (exit $ac_status); }; } && | |
18617 | { ac_try='test -s conftest$ac_exeext' | |
18618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18619 | (eval $ac_try) 2>&5 | |
18620 | ac_status=$? | |
18621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18622 | (exit $ac_status); }; }; then | |
18623 | wx_cv_func_va_copy=yes | |
18624 | else | |
18625 | echo "$as_me: failed program was:" >&5 | |
18626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18627 | ||
18628 | wx_cv_func_va_copy=no | |
18629 | ||
18630 | fi | |
18631 | rm -f conftest.err conftest.$ac_objext \ | |
18632 | conftest$ac_exeext conftest.$ac_ext | |
18633 | ||
18634 | ||
18635 | fi | |
18636 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
18637 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
18638 | ||
18639 | if test $wx_cv_func_va_copy = "yes"; then | |
18640 | cat >>confdefs.h <<\_ACEOF | |
18641 | #define HAVE_VA_COPY 1 | |
18642 | _ACEOF | |
18643 | ||
18644 | else | |
18645 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
18646 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
18647 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
18648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18649 | else | |
18650 | ||
18651 | if test "$cross_compiling" = yes; then | |
18652 | wx_cv_type_va_list_lvalue=yes | |
18653 | ||
18654 | else | |
18655 | cat >conftest.$ac_ext <<_ACEOF | |
18656 | ||
18657 | #include <stdarg.h> | |
18658 | int foo(char *f, ...) | |
18659 | { | |
18660 | va_list ap1, ap2; | |
18661 | va_start(ap1, f); | |
18662 | ap2 = ap1; | |
18663 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
18664 | return 1; | |
18665 | va_end(ap2); | |
18666 | va_end(ap1); | |
18667 | return 0; | |
18668 | } | |
18669 | int main() | |
18670 | { | |
18671 | return foo("hi", 17); | |
18672 | } | |
18673 | _ACEOF | |
18674 | rm -f conftest$ac_exeext | |
18675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18676 | (eval $ac_link) 2>&5 | |
18677 | ac_status=$? | |
18678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18681 | (eval $ac_try) 2>&5 | |
18682 | ac_status=$? | |
18683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18684 | (exit $ac_status); }; }; then | |
18685 | wx_cv_type_va_list_lvalue=yes | |
18686 | else | |
18687 | echo "$as_me: program exited with status $ac_status" >&5 | |
18688 | echo "$as_me: failed program was:" >&5 | |
18689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18690 | ||
18691 | ( exit $ac_status ) | |
18692 | wx_cv_type_va_list_lvalue=no | |
18693 | fi | |
18694 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18695 | fi | |
18696 | ||
18697 | ||
18698 | fi | |
18699 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
18700 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
18701 | ||
18702 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
18703 | cat >>confdefs.h <<\_ACEOF | |
18704 | #define VA_LIST_IS_ARRAY 1 | |
18705 | _ACEOF | |
18706 | ||
18707 | fi | |
18708 | fi | |
18709 | ||
a848cd7e SC |
18710 | # Check whether --enable-largefile or --disable-largefile was given. |
18711 | if test "${enable_largefile+set}" = set; then | |
18712 | enableval="$enable_largefile" | |
18713 | ||
18714 | fi; | |
18715 | if test "$enable_largefile" != no; then | |
18716 | wx_largefile=no | |
18717 | ||
18718 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18719 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18720 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18722 | else | |
18723 | ||
18724 | cat >conftest.$ac_ext <<_ACEOF | |
18725 | /* confdefs.h. */ | |
18726 | _ACEOF | |
18727 | cat confdefs.h >>conftest.$ac_ext | |
18728 | cat >>conftest.$ac_ext <<_ACEOF | |
18729 | /* end confdefs.h. */ | |
18730 | #define _FILE_OFFSET_BITS 64 | |
18731 | #include <sys/types.h> | |
18732 | int | |
18733 | main () | |
18734 | { | |
18735 | typedef struct { | |
18736 | unsigned int field: sizeof(off_t) == 8; | |
18737 | } wxlf; | |
18738 | ||
18739 | ; | |
18740 | return 0; | |
18741 | } | |
18742 | _ACEOF | |
18743 | rm -f conftest.$ac_objext | |
18744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18745 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18746 | ac_status=$? |
ac1cb8d3 VS |
18747 | grep -v '^ *+' conftest.er1 >conftest.err |
18748 | rm -f conftest.er1 | |
18749 | cat conftest.err >&5 | |
a848cd7e SC |
18750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18751 | (exit $ac_status); } && | |
89be85c2 VS |
18752 | { ac_try='test -z "$ac_c_werror_flag" |
18753 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18755 | (eval $ac_try) 2>&5 | |
18756 | ac_status=$? | |
18757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18758 | (exit $ac_status); }; } && | |
18759 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18761 | (eval $ac_try) 2>&5 | |
18762 | ac_status=$? | |
18763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18764 | (exit $ac_status); }; }; then | |
18765 | ac_cv_sys_file_offset_bits=64 | |
18766 | else | |
18767 | echo "$as_me: failed program was:" >&5 | |
18768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18769 | ||
18770 | ac_cv_sys_file_offset_bits=no | |
18771 | fi | |
ac1cb8d3 | 18772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18773 | |
18774 | ||
18775 | fi | |
18776 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18777 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18778 | ||
18779 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18780 | wx_largefile=yes | |
18781 | cat >>confdefs.h <<_ACEOF | |
18782 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18783 | _ACEOF | |
18784 | ||
18785 | fi | |
18786 | ||
18787 | if test "x$wx_largefile" != "xyes"; then | |
18788 | ||
18789 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18790 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18791 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18793 | else | |
18794 | ||
18795 | cat >conftest.$ac_ext <<_ACEOF | |
18796 | /* confdefs.h. */ | |
18797 | _ACEOF | |
18798 | cat confdefs.h >>conftest.$ac_ext | |
18799 | cat >>conftest.$ac_ext <<_ACEOF | |
18800 | /* end confdefs.h. */ | |
18801 | #define _LARGE_FILES 1 | |
18802 | #include <sys/types.h> | |
18803 | int | |
18804 | main () | |
18805 | { | |
18806 | typedef struct { | |
18807 | unsigned int field: sizeof(off_t) == 8; | |
18808 | } wxlf; | |
18809 | ||
18810 | ; | |
18811 | return 0; | |
18812 | } | |
18813 | _ACEOF | |
18814 | rm -f conftest.$ac_objext | |
18815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18816 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18817 | ac_status=$? |
ac1cb8d3 VS |
18818 | grep -v '^ *+' conftest.er1 >conftest.err |
18819 | rm -f conftest.er1 | |
18820 | cat conftest.err >&5 | |
a848cd7e SC |
18821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18822 | (exit $ac_status); } && | |
89be85c2 VS |
18823 | { ac_try='test -z "$ac_c_werror_flag" |
18824 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18826 | (eval $ac_try) 2>&5 | |
18827 | ac_status=$? | |
18828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18829 | (exit $ac_status); }; } && | |
18830 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18832 | (eval $ac_try) 2>&5 | |
18833 | ac_status=$? | |
18834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18835 | (exit $ac_status); }; }; then | |
18836 | ac_cv_sys_large_files=1 | |
18837 | else | |
18838 | echo "$as_me: failed program was:" >&5 | |
18839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18840 | ||
18841 | ac_cv_sys_large_files=no | |
18842 | fi | |
ac1cb8d3 | 18843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18844 | |
18845 | ||
18846 | fi | |
18847 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18848 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18849 | ||
18850 | if test "$ac_cv_sys_large_files" != no; then | |
18851 | wx_largefile=yes | |
18852 | cat >>confdefs.h <<_ACEOF | |
18853 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18854 | _ACEOF | |
18855 | ||
18856 | fi | |
18857 | ||
18858 | fi | |
18859 | ||
18860 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18861 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18862 | if test "x$wx_largefile" = "xyes"; then | |
18863 | cat >>confdefs.h <<\_ACEOF | |
18864 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18865 | _ACEOF | |
18866 | ||
18867 | fi | |
18868 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18869 | echo "${ECHO_T}$wx_largefile" >&6 | |
18870 | fi | |
18871 | ||
5b674b9d DE |
18872 | |
18873 | if test "x$wx_largefile" = "xyes"; then | |
18874 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18875 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18876 | else | |
18877 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18878 | fi | |
18879 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
18880 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
18881 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
18882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18883 | else | |
18884 | while :; do | |
18885 | ac_cv_sys_largefile_source=no | |
18886 | cat >conftest.$ac_ext <<_ACEOF | |
18887 | /* confdefs.h. */ | |
18888 | _ACEOF | |
18889 | cat confdefs.h >>conftest.$ac_ext | |
18890 | cat >>conftest.$ac_ext <<_ACEOF | |
18891 | /* end confdefs.h. */ | |
18892 | #include <stdio.h> | |
18893 | int | |
18894 | main () | |
18895 | { | |
18896 | return !fseeko; | |
18897 | ; | |
18898 | return 0; | |
18899 | } | |
18900 | _ACEOF | |
18901 | rm -f conftest.$ac_objext | |
18902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18903 | (eval $ac_compile) 2>conftest.er1 | |
18904 | ac_status=$? | |
18905 | grep -v '^ *+' conftest.er1 >conftest.err | |
18906 | rm -f conftest.er1 | |
18907 | cat conftest.err >&5 | |
18908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18909 | (exit $ac_status); } && | |
89be85c2 VS |
18910 | { ac_try='test -z "$ac_c_werror_flag" |
18911 | || test ! -s conftest.err' | |
5294a27e VZ |
18912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18913 | (eval $ac_try) 2>&5 | |
18914 | ac_status=$? | |
18915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18916 | (exit $ac_status); }; } && | |
18917 | { ac_try='test -s conftest.$ac_objext' | |
18918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18919 | (eval $ac_try) 2>&5 | |
18920 | ac_status=$? | |
18921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18922 | (exit $ac_status); }; }; then | |
18923 | break | |
18924 | else | |
18925 | echo "$as_me: failed program was:" >&5 | |
18926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18927 | ||
18928 | fi | |
18929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18930 | cat >conftest.$ac_ext <<_ACEOF | |
18931 | /* confdefs.h. */ | |
18932 | _ACEOF | |
18933 | cat confdefs.h >>conftest.$ac_ext | |
18934 | cat >>conftest.$ac_ext <<_ACEOF | |
18935 | /* end confdefs.h. */ | |
18936 | #define _LARGEFILE_SOURCE 1 | |
18937 | #include <stdio.h> | |
18938 | int | |
18939 | main () | |
18940 | { | |
18941 | return !fseeko; | |
18942 | ; | |
18943 | return 0; | |
18944 | } | |
18945 | _ACEOF | |
18946 | rm -f conftest.$ac_objext | |
18947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18948 | (eval $ac_compile) 2>conftest.er1 | |
18949 | ac_status=$? | |
18950 | grep -v '^ *+' conftest.er1 >conftest.err | |
18951 | rm -f conftest.er1 | |
18952 | cat conftest.err >&5 | |
18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18954 | (exit $ac_status); } && | |
89be85c2 VS |
18955 | { ac_try='test -z "$ac_c_werror_flag" |
18956 | || test ! -s conftest.err' | |
5294a27e VZ |
18957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18958 | (eval $ac_try) 2>&5 | |
18959 | ac_status=$? | |
18960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18961 | (exit $ac_status); }; } && | |
18962 | { ac_try='test -s conftest.$ac_objext' | |
18963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18964 | (eval $ac_try) 2>&5 | |
18965 | ac_status=$? | |
18966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18967 | (exit $ac_status); }; }; then | |
18968 | ac_cv_sys_largefile_source=1; break | |
18969 | else | |
18970 | echo "$as_me: failed program was:" >&5 | |
18971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18972 | ||
18973 | fi | |
18974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18975 | break | |
18976 | done | |
18977 | fi | |
18978 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
18979 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
18980 | if test "$ac_cv_sys_largefile_source" != no; then | |
18981 | ||
18982 | cat >>confdefs.h <<_ACEOF | |
18983 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
18984 | _ACEOF | |
18985 | ||
18986 | fi | |
18987 | rm -f conftest* | |
18988 | ||
18989 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
18990 | # in glibc 2.1.3, but that breaks too many other things. | |
18991 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
18992 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
18993 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
18994 | if test "${ac_cv_func_fseeko+set}" = set; then | |
18995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18996 | else | |
18997 | cat >conftest.$ac_ext <<_ACEOF | |
18998 | /* confdefs.h. */ | |
18999 | _ACEOF | |
19000 | cat confdefs.h >>conftest.$ac_ext | |
19001 | cat >>conftest.$ac_ext <<_ACEOF | |
19002 | /* end confdefs.h. */ | |
19003 | #include <stdio.h> | |
19004 | int | |
19005 | main () | |
19006 | { | |
19007 | return fseeko && fseeko (stdin, 0, 0); | |
19008 | ; | |
19009 | return 0; | |
19010 | } | |
19011 | _ACEOF | |
19012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19014 | (eval $ac_link) 2>conftest.er1 | |
19015 | ac_status=$? | |
19016 | grep -v '^ *+' conftest.er1 >conftest.err | |
19017 | rm -f conftest.er1 | |
19018 | cat conftest.err >&5 | |
19019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19020 | (exit $ac_status); } && | |
89be85c2 VS |
19021 | { ac_try='test -z "$ac_c_werror_flag" |
19022 | || test ! -s conftest.err' | |
5294a27e VZ |
19023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19024 | (eval $ac_try) 2>&5 | |
19025 | ac_status=$? | |
19026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19027 | (exit $ac_status); }; } && | |
19028 | { ac_try='test -s conftest$ac_exeext' | |
19029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19030 | (eval $ac_try) 2>&5 | |
19031 | ac_status=$? | |
19032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19033 | (exit $ac_status); }; }; then | |
19034 | ac_cv_func_fseeko=yes | |
19035 | else | |
19036 | echo "$as_me: failed program was:" >&5 | |
19037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19038 | ||
19039 | ac_cv_func_fseeko=no | |
19040 | fi | |
19041 | rm -f conftest.err conftest.$ac_objext \ | |
19042 | conftest$ac_exeext conftest.$ac_ext | |
19043 | fi | |
19044 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
19045 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
19046 | if test $ac_cv_func_fseeko = yes; then | |
19047 | ||
19048 | cat >>confdefs.h <<\_ACEOF | |
19049 | #define HAVE_FSEEKO 1 | |
19050 | _ACEOF | |
19051 | ||
19052 | fi | |
19053 | ||
5b674b9d DE |
19054 | if test "$ac_cv_sys_largefile_source" != no; then |
19055 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
19056 | fi |
19057 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
19058 | fi | |
19059 | ||
19060 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
19061 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
19062 | if test "${ac_cv_c_bigendian+set}" = set; then | |
19063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19064 | else | |
19065 | ac_cv_c_bigendian=unknown | |
19066 | # See if sys/param.h defines the BYTE_ORDER macro. | |
19067 | cat >conftest.$ac_ext <<_ACEOF | |
19068 | /* confdefs.h. */ | |
19069 | _ACEOF | |
19070 | cat confdefs.h >>conftest.$ac_ext | |
19071 | cat >>conftest.$ac_ext <<_ACEOF | |
19072 | /* end confdefs.h. */ | |
19073 | #include <sys/types.h> | |
19074 | #include <sys/param.h> | |
19075 | int | |
19076 | main () | |
19077 | { | |
19078 | ||
19079 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
19080 | bogus endian macros | |
19081 | #endif | |
19082 | ; | |
19083 | return 0; | |
19084 | } | |
19085 | _ACEOF | |
19086 | rm -f conftest.$ac_objext | |
19087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19088 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19089 | ac_status=$? |
ac1cb8d3 VS |
19090 | grep -v '^ *+' conftest.er1 >conftest.err |
19091 | rm -f conftest.er1 | |
19092 | cat conftest.err >&5 | |
a848cd7e SC |
19093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19094 | (exit $ac_status); } && | |
89be85c2 VS |
19095 | { ac_try='test -z "$ac_c_werror_flag" |
19096 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19098 | (eval $ac_try) 2>&5 | |
19099 | ac_status=$? | |
19100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19101 | (exit $ac_status); }; } && | |
19102 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19104 | (eval $ac_try) 2>&5 | |
19105 | ac_status=$? | |
19106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19107 | (exit $ac_status); }; }; then | |
19108 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
19109 | cat >conftest.$ac_ext <<_ACEOF | |
19110 | /* confdefs.h. */ | |
19111 | _ACEOF | |
19112 | cat confdefs.h >>conftest.$ac_ext | |
19113 | cat >>conftest.$ac_ext <<_ACEOF | |
19114 | /* end confdefs.h. */ | |
19115 | #include <sys/types.h> | |
19116 | #include <sys/param.h> | |
19117 | int | |
19118 | main () | |
19119 | { | |
19120 | ||
19121 | #if BYTE_ORDER != BIG_ENDIAN | |
19122 | not big endian | |
19123 | #endif | |
19124 | ; | |
19125 | return 0; | |
19126 | } | |
19127 | _ACEOF | |
19128 | rm -f conftest.$ac_objext | |
19129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19130 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19131 | ac_status=$? |
ac1cb8d3 VS |
19132 | grep -v '^ *+' conftest.er1 >conftest.err |
19133 | rm -f conftest.er1 | |
19134 | cat conftest.err >&5 | |
a848cd7e SC |
19135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19136 | (exit $ac_status); } && | |
89be85c2 VS |
19137 | { ac_try='test -z "$ac_c_werror_flag" |
19138 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19140 | (eval $ac_try) 2>&5 | |
19141 | ac_status=$? | |
19142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19143 | (exit $ac_status); }; } && | |
19144 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19146 | (eval $ac_try) 2>&5 | |
19147 | ac_status=$? | |
19148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19149 | (exit $ac_status); }; }; then | |
19150 | ac_cv_c_bigendian=yes | |
19151 | else | |
19152 | echo "$as_me: failed program was:" >&5 | |
19153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19154 | ||
19155 | ac_cv_c_bigendian=no | |
19156 | fi | |
ac1cb8d3 | 19157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19158 | else |
19159 | echo "$as_me: failed program was:" >&5 | |
19160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19161 | ||
19162 | fi | |
ac1cb8d3 | 19163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19164 | if test $ac_cv_c_bigendian = unknown; then |
19165 | if test "$cross_compiling" = yes; then | |
19166 | ac_cv_c_bigendian=unknown | |
19167 | else | |
19168 | cat >conftest.$ac_ext <<_ACEOF | |
19169 | /* confdefs.h. */ | |
19170 | _ACEOF | |
19171 | cat confdefs.h >>conftest.$ac_ext | |
19172 | cat >>conftest.$ac_ext <<_ACEOF | |
19173 | /* end confdefs.h. */ | |
19174 | main () { | |
19175 | /* Are we little or big endian? From Harbison&Steele. */ | |
19176 | union | |
19177 | { | |
19178 | long l; | |
19179 | char c[sizeof (long)]; | |
19180 | } u; | |
19181 | u.l = 1; | |
19182 | exit (u.c[sizeof (long) - 1] == 1); | |
19183 | } | |
19184 | _ACEOF | |
19185 | rm -f conftest$ac_exeext | |
19186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19187 | (eval $ac_link) 2>&5 | |
19188 | ac_status=$? | |
19189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19192 | (eval $ac_try) 2>&5 | |
19193 | ac_status=$? | |
19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19195 | (exit $ac_status); }; }; then | |
19196 | ac_cv_c_bigendian=no | |
19197 | else | |
19198 | echo "$as_me: program exited with status $ac_status" >&5 | |
19199 | echo "$as_me: failed program was:" >&5 | |
19200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19201 | ||
19202 | ( exit $ac_status ) | |
19203 | ac_cv_c_bigendian=yes | |
19204 | fi | |
ac1cb8d3 | 19205 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19206 | fi |
19207 | fi | |
19208 | fi | |
19209 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
19210 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
19211 | if test $ac_cv_c_bigendian = unknown; then | |
19212 | { 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 | |
19213 | 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;} | |
19214 | fi | |
19215 | if test $ac_cv_c_bigendian = yes; then | |
19216 | cat >>confdefs.h <<\_ACEOF | |
19217 | #define WORDS_BIGENDIAN 1 | |
19218 | _ACEOF | |
19219 | ||
19220 | fi | |
19221 | ||
19222 | ||
19223 | ac_ext=cc | |
19224 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19225 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19226 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19227 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19228 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
19229 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
19230 | if test -z "$CXXCPP"; then | |
19231 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
19232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19233 | else | |
19234 | # Double quotes because CXXCPP needs to be expanded | |
19235 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
19236 | do | |
19237 | ac_preproc_ok=false | |
19238 | for ac_cxx_preproc_warn_flag in '' yes | |
19239 | do | |
19240 | # Use a header file that comes with gcc, so configuring glibc | |
19241 | # with a fresh cross-compiler works. | |
19242 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19243 | # <limits.h> exists even on freestanding compilers. | |
19244 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19245 | # not just through cpp. "Syntax error" is here to catch this case. | |
19246 | cat >conftest.$ac_ext <<_ACEOF | |
19247 | /* confdefs.h. */ | |
19248 | _ACEOF | |
19249 | cat confdefs.h >>conftest.$ac_ext | |
19250 | cat >>conftest.$ac_ext <<_ACEOF | |
19251 | /* end confdefs.h. */ | |
19252 | #ifdef __STDC__ | |
19253 | # include <limits.h> | |
19254 | #else | |
19255 | # include <assert.h> | |
19256 | #endif | |
ac1cb8d3 | 19257 | Syntax error |
a848cd7e SC |
19258 | _ACEOF |
19259 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19260 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19261 | ac_status=$? | |
19262 | grep -v '^ *+' conftest.er1 >conftest.err | |
19263 | rm -f conftest.er1 | |
19264 | cat conftest.err >&5 | |
19265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19266 | (exit $ac_status); } >/dev/null; then | |
19267 | if test -s conftest.err; then | |
19268 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19269 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19270 | else |
19271 | ac_cpp_err= | |
19272 | fi | |
19273 | else | |
19274 | ac_cpp_err=yes | |
19275 | fi | |
19276 | if test -z "$ac_cpp_err"; then | |
19277 | : | |
19278 | else | |
19279 | echo "$as_me: failed program was:" >&5 | |
19280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19281 | ||
19282 | # Broken: fails on valid input. | |
19283 | continue | |
19284 | fi | |
19285 | rm -f conftest.err conftest.$ac_ext | |
19286 | ||
19287 | # OK, works on sane cases. Now check whether non-existent headers | |
19288 | # can be detected and how. | |
19289 | cat >conftest.$ac_ext <<_ACEOF | |
19290 | /* confdefs.h. */ | |
19291 | _ACEOF | |
19292 | cat confdefs.h >>conftest.$ac_ext | |
19293 | cat >>conftest.$ac_ext <<_ACEOF | |
19294 | /* end confdefs.h. */ | |
19295 | #include <ac_nonexistent.h> | |
19296 | _ACEOF | |
19297 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19298 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19299 | ac_status=$? | |
19300 | grep -v '^ *+' conftest.er1 >conftest.err | |
19301 | rm -f conftest.er1 | |
19302 | cat conftest.err >&5 | |
19303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19304 | (exit $ac_status); } >/dev/null; then | |
19305 | if test -s conftest.err; then | |
19306 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19307 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19308 | else |
19309 | ac_cpp_err= | |
19310 | fi | |
19311 | else | |
19312 | ac_cpp_err=yes | |
19313 | fi | |
19314 | if test -z "$ac_cpp_err"; then | |
19315 | # Broken: success on invalid input. | |
19316 | continue | |
19317 | else | |
19318 | echo "$as_me: failed program was:" >&5 | |
19319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19320 | ||
19321 | # Passes both tests. | |
19322 | ac_preproc_ok=: | |
19323 | break | |
19324 | fi | |
19325 | rm -f conftest.err conftest.$ac_ext | |
19326 | ||
19327 | done | |
19328 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19329 | rm -f conftest.err conftest.$ac_ext | |
19330 | if $ac_preproc_ok; then | |
19331 | break | |
19332 | fi | |
19333 | ||
19334 | done | |
19335 | ac_cv_prog_CXXCPP=$CXXCPP | |
19336 | ||
19337 | fi | |
19338 | CXXCPP=$ac_cv_prog_CXXCPP | |
19339 | else | |
19340 | ac_cv_prog_CXXCPP=$CXXCPP | |
19341 | fi | |
19342 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
19343 | echo "${ECHO_T}$CXXCPP" >&6 | |
19344 | ac_preproc_ok=false | |
19345 | for ac_cxx_preproc_warn_flag in '' yes | |
19346 | do | |
19347 | # Use a header file that comes with gcc, so configuring glibc | |
19348 | # with a fresh cross-compiler works. | |
19349 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19350 | # <limits.h> exists even on freestanding compilers. | |
19351 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19352 | # not just through cpp. "Syntax error" is here to catch this case. | |
19353 | cat >conftest.$ac_ext <<_ACEOF | |
19354 | /* confdefs.h. */ | |
19355 | _ACEOF | |
19356 | cat confdefs.h >>conftest.$ac_ext | |
19357 | cat >>conftest.$ac_ext <<_ACEOF | |
19358 | /* end confdefs.h. */ | |
19359 | #ifdef __STDC__ | |
19360 | # include <limits.h> | |
19361 | #else | |
19362 | # include <assert.h> | |
19363 | #endif | |
ac1cb8d3 | 19364 | Syntax error |
a848cd7e SC |
19365 | _ACEOF |
19366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19368 | ac_status=$? | |
19369 | grep -v '^ *+' conftest.er1 >conftest.err | |
19370 | rm -f conftest.er1 | |
19371 | cat conftest.err >&5 | |
19372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19373 | (exit $ac_status); } >/dev/null; then | |
19374 | if test -s conftest.err; then | |
19375 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19376 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19377 | else |
19378 | ac_cpp_err= | |
19379 | fi | |
19380 | else | |
19381 | ac_cpp_err=yes | |
19382 | fi | |
19383 | if test -z "$ac_cpp_err"; then | |
19384 | : | |
19385 | else | |
19386 | echo "$as_me: failed program was:" >&5 | |
19387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19388 | ||
19389 | # Broken: fails on valid input. | |
19390 | continue | |
19391 | fi | |
19392 | rm -f conftest.err conftest.$ac_ext | |
19393 | ||
19394 | # OK, works on sane cases. Now check whether non-existent headers | |
19395 | # can be detected and how. | |
19396 | cat >conftest.$ac_ext <<_ACEOF | |
19397 | /* confdefs.h. */ | |
19398 | _ACEOF | |
19399 | cat confdefs.h >>conftest.$ac_ext | |
19400 | cat >>conftest.$ac_ext <<_ACEOF | |
19401 | /* end confdefs.h. */ | |
19402 | #include <ac_nonexistent.h> | |
19403 | _ACEOF | |
19404 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19405 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19406 | ac_status=$? | |
19407 | grep -v '^ *+' conftest.er1 >conftest.err | |
19408 | rm -f conftest.er1 | |
19409 | cat conftest.err >&5 | |
19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19411 | (exit $ac_status); } >/dev/null; then | |
19412 | if test -s conftest.err; then | |
19413 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19414 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19415 | else |
19416 | ac_cpp_err= | |
19417 | fi | |
19418 | else | |
19419 | ac_cpp_err=yes | |
19420 | fi | |
19421 | if test -z "$ac_cpp_err"; then | |
19422 | # Broken: success on invalid input. | |
19423 | continue | |
19424 | else | |
19425 | echo "$as_me: failed program was:" >&5 | |
19426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19427 | ||
19428 | # Passes both tests. | |
19429 | ac_preproc_ok=: | |
19430 | break | |
19431 | fi | |
19432 | rm -f conftest.err conftest.$ac_ext | |
19433 | ||
19434 | done | |
19435 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19436 | rm -f conftest.err conftest.$ac_ext | |
19437 | if $ac_preproc_ok; then | |
19438 | : | |
19439 | else | |
19440 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19441 | See \`config.log' for more details." >&5 | |
19442 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19443 | See \`config.log' for more details." >&2;} | |
19444 | { (exit 1); exit 1; }; } | |
19445 | fi | |
19446 | ||
19447 | ac_ext=cc | |
19448 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19449 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19450 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19451 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19452 | ||
19453 | ||
19454 | ||
19455 | ||
19456 | ||
19457 | ac_ext=cc | |
19458 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19459 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19460 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19461 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19462 | ||
19463 | ||
19464 | ||
19465 | for ac_header in iostream | |
19466 | do | |
19467 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19468 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19469 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19470 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19471 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19473 | fi | |
19474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19475 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19476 | else | |
19477 | # Is the header compilable? | |
19478 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19479 | echo $ECHO_N "checking $ac_header 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 <$ac_header> | |
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 |
a848cd7e | 19492 | ac_status=$? |
ac1cb8d3 VS |
19493 | grep -v '^ *+' conftest.er1 >conftest.err |
19494 | rm -f conftest.er1 | |
19495 | cat conftest.err >&5 | |
a848cd7e SC |
19496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19497 | (exit $ac_status); } && | |
89be85c2 VS |
19498 | { ac_try='test -z "$ac_cxx_werror_flag" |
19499 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19501 | (eval $ac_try) 2>&5 | |
19502 | ac_status=$? | |
19503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19504 | (exit $ac_status); }; } && | |
19505 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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 |
a848cd7e SC |
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 $ac_header presence" >&5 | |
19524 | echo $ECHO_N "checking $ac_header 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 <$ac_header> | |
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 |
a848cd7e SC |
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: ) | |
a848cd7e SC |
19565 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19566 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19568 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19569 | ac_header_preproc=yes | |
a848cd7e | 19570 | ;; |
ac1cb8d3 | 19571 | no:yes:* ) |
a848cd7e SC |
19572 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19573 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19574 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19575 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19576 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19577 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19578 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19579 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
19580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19581 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19582 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19583 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
19584 | ( |
19585 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19586 | ## ----------------------------------------- ## |
19587 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19588 | ## ----------------------------------------- ## | |
a848cd7e SC |
19589 | _ASBOX |
19590 | ) | | |
19591 | sed "s/^/$as_me: WARNING: /" >&2 | |
19592 | ;; | |
19593 | esac | |
19594 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19598 | else | |
ac1cb8d3 | 19599 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
19600 | fi |
19601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19602 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19603 | ||
19604 | fi | |
19605 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19606 | cat >>confdefs.h <<_ACEOF | |
19607 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19608 | _ACEOF | |
19609 | ||
19610 | fi | |
19611 | ||
19612 | done | |
19613 | ||
19614 | ||
19615 | if test "$ac_cv_header_iostream" = "yes" ; then | |
19616 | : | |
19617 | else | |
19618 | cat >>confdefs.h <<\_ACEOF | |
19619 | #define wxUSE_IOSTREAMH 1 | |
19620 | _ACEOF | |
19621 | ||
19622 | fi | |
19623 | ||
19624 | ac_ext=c | |
19625 | ac_cpp='$CPP $CPPFLAGS' | |
19626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19629 | ||
19630 | ||
19631 | ||
19632 | ||
19633 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
19634 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
19635 | if test "${wx_cv_cpp_bool+set}" = set; then | |
19636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19637 | else | |
19638 | ||
19639 | ||
19640 | ||
19641 | ac_ext=cc | |
19642 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19643 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19644 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19645 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19646 | ||
19647 | ||
19648 | cat >conftest.$ac_ext <<_ACEOF | |
19649 | /* confdefs.h. */ | |
19650 | _ACEOF | |
19651 | cat confdefs.h >>conftest.$ac_ext | |
19652 | cat >>conftest.$ac_ext <<_ACEOF | |
19653 | /* end confdefs.h. */ | |
19654 | ||
19655 | ||
19656 | int | |
19657 | main () | |
19658 | { | |
19659 | ||
19660 | bool b = true; | |
19661 | ||
19662 | return 0; | |
19663 | ||
19664 | ; | |
19665 | return 0; | |
19666 | } | |
19667 | _ACEOF | |
19668 | rm -f conftest.$ac_objext | |
19669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19670 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19671 | ac_status=$? |
ac1cb8d3 VS |
19672 | grep -v '^ *+' conftest.er1 >conftest.err |
19673 | rm -f conftest.er1 | |
19674 | cat conftest.err >&5 | |
a848cd7e SC |
19675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19676 | (exit $ac_status); } && | |
89be85c2 VS |
19677 | { ac_try='test -z "$ac_cxx_werror_flag" |
19678 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19680 | (eval $ac_try) 2>&5 | |
19681 | ac_status=$? | |
19682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19683 | (exit $ac_status); }; } && | |
19684 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19686 | (eval $ac_try) 2>&5 | |
19687 | ac_status=$? | |
19688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19689 | (exit $ac_status); }; }; then | |
19690 | ||
19691 | wx_cv_cpp_bool=yes | |
19692 | ||
19693 | else | |
19694 | echo "$as_me: failed program was:" >&5 | |
19695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19696 | ||
19697 | ||
19698 | wx_cv_cpp_bool=no | |
19699 | ||
19700 | ||
19701 | fi | |
ac1cb8d3 | 19702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19703 | |
19704 | ac_ext=c | |
19705 | ac_cpp='$CPP $CPPFLAGS' | |
19706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19709 | ||
19710 | ||
19711 | fi | |
19712 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19713 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19714 | ||
19715 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19716 | cat >>confdefs.h <<\_ACEOF | |
19717 | #define HAVE_BOOL 1 | |
19718 | _ACEOF | |
19719 | ||
19720 | fi | |
19721 | ||
19722 | ||
19723 | ||
19724 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19725 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19726 | if test "${wx_cv_explicit+set}" = set; then | |
19727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19728 | else | |
19729 | ||
19730 | ||
19731 | ||
19732 | ac_ext=cc | |
19733 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19734 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19735 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19736 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19737 | ||
19738 | ||
19739 | cat >conftest.$ac_ext <<_ACEOF | |
19740 | /* confdefs.h. */ | |
19741 | _ACEOF | |
19742 | cat confdefs.h >>conftest.$ac_ext | |
19743 | cat >>conftest.$ac_ext <<_ACEOF | |
19744 | /* end confdefs.h. */ | |
19745 | ||
19746 | class Foo { public: explicit Foo(int) {} }; | |
19747 | ||
19748 | int | |
19749 | main () | |
19750 | { | |
19751 | ||
19752 | return 0; | |
19753 | ||
19754 | ; | |
19755 | return 0; | |
19756 | } | |
19757 | _ACEOF | |
19758 | rm -f conftest.$ac_objext | |
19759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19760 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19761 | ac_status=$? |
ac1cb8d3 VS |
19762 | grep -v '^ *+' conftest.er1 >conftest.err |
19763 | rm -f conftest.er1 | |
19764 | cat conftest.err >&5 | |
a848cd7e SC |
19765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19766 | (exit $ac_status); } && | |
89be85c2 VS |
19767 | { ac_try='test -z "$ac_cxx_werror_flag" |
19768 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19770 | (eval $ac_try) 2>&5 | |
19771 | ac_status=$? | |
19772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19773 | (exit $ac_status); }; } && | |
19774 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19776 | (eval $ac_try) 2>&5 | |
19777 | ac_status=$? | |
19778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19779 | (exit $ac_status); }; }; then | |
19780 | ||
19781 | cat >conftest.$ac_ext <<_ACEOF | |
19782 | /* confdefs.h. */ | |
19783 | _ACEOF | |
19784 | cat confdefs.h >>conftest.$ac_ext | |
19785 | cat >>conftest.$ac_ext <<_ACEOF | |
19786 | /* end confdefs.h. */ | |
19787 | ||
19788 | class Foo { public: explicit Foo(int) {} }; | |
19789 | static void TakeFoo(const Foo& foo) { } | |
19790 | ||
19791 | int | |
19792 | main () | |
19793 | { | |
19794 | ||
19795 | TakeFoo(17); | |
19796 | return 0; | |
19797 | ||
19798 | ; | |
19799 | return 0; | |
19800 | } | |
19801 | _ACEOF | |
19802 | rm -f conftest.$ac_objext | |
19803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19804 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19805 | ac_status=$? |
ac1cb8d3 VS |
19806 | grep -v '^ *+' conftest.er1 >conftest.err |
19807 | rm -f conftest.er1 | |
19808 | cat conftest.err >&5 | |
a848cd7e SC |
19809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19810 | (exit $ac_status); } && | |
89be85c2 VS |
19811 | { ac_try='test -z "$ac_cxx_werror_flag" |
19812 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19814 | (eval $ac_try) 2>&5 | |
19815 | ac_status=$? | |
19816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19817 | (exit $ac_status); }; } && | |
19818 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19820 | (eval $ac_try) 2>&5 | |
19821 | ac_status=$? | |
19822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19823 | (exit $ac_status); }; }; then | |
19824 | wx_cv_explicit=no | |
19825 | else | |
19826 | echo "$as_me: failed program was:" >&5 | |
19827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19828 | ||
19829 | wx_cv_explicit=yes | |
19830 | ||
19831 | fi | |
ac1cb8d3 | 19832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19833 | |
19834 | else | |
19835 | echo "$as_me: failed program was:" >&5 | |
19836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19837 | ||
19838 | wx_cv_explicit=no | |
19839 | ||
19840 | fi | |
ac1cb8d3 | 19841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19842 | |
19843 | ac_ext=c | |
19844 | ac_cpp='$CPP $CPPFLAGS' | |
19845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19848 | ||
19849 | ||
19850 | fi | |
19851 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19852 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19853 | ||
19854 | if test "$wx_cv_explicit" = "yes"; then | |
19855 | cat >>confdefs.h <<\_ACEOF | |
19856 | #define HAVE_EXPLICIT 1 | |
19857 | _ACEOF | |
19858 | ||
19859 | fi | |
19860 | ||
19861 | ||
19862 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19863 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19864 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19866 | else | |
19867 | ||
19868 | ||
19869 | ac_ext=cc | |
19870 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19871 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19872 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19873 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19874 | ||
19875 | cat >conftest.$ac_ext <<_ACEOF | |
19876 | /* confdefs.h. */ | |
19877 | _ACEOF | |
19878 | cat confdefs.h >>conftest.$ac_ext | |
19879 | cat >>conftest.$ac_ext <<_ACEOF | |
19880 | /* end confdefs.h. */ | |
19881 | ||
19882 | int | |
19883 | main () | |
19884 | { | |
19885 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19886 | ; | |
19887 | return 0; | |
19888 | } | |
19889 | _ACEOF | |
19890 | rm -f conftest.$ac_objext | |
19891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19892 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19893 | ac_status=$? |
ac1cb8d3 VS |
19894 | grep -v '^ *+' conftest.er1 >conftest.err |
19895 | rm -f conftest.er1 | |
19896 | cat conftest.err >&5 | |
a848cd7e SC |
19897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19898 | (exit $ac_status); } && | |
89be85c2 VS |
19899 | { ac_try='test -z "$ac_cxx_werror_flag" |
19900 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19902 | (eval $ac_try) 2>&5 | |
19903 | ac_status=$? | |
19904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19905 | (exit $ac_status); }; } && | |
19906 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19908 | (eval $ac_try) 2>&5 | |
19909 | ac_status=$? | |
19910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19911 | (exit $ac_status); }; }; then | |
19912 | ac_cv_cxx_const_cast=yes | |
19913 | else | |
19914 | echo "$as_me: failed program was:" >&5 | |
19915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19916 | ||
19917 | ac_cv_cxx_const_cast=no | |
19918 | fi | |
ac1cb8d3 | 19919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19920 | ac_ext=c |
19921 | ac_cpp='$CPP $CPPFLAGS' | |
19922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19925 | ||
19926 | ||
19927 | fi | |
19928 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19929 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19930 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19931 | ||
19932 | cat >>confdefs.h <<\_ACEOF | |
19933 | #define HAVE_CONST_CAST | |
19934 | _ACEOF | |
19935 | ||
19936 | fi | |
19937 | ||
7714864e RL |
19938 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
19939 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
19940 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
19941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19942 | else | |
19943 | ||
19944 | ||
19945 | ac_ext=cc | |
19946 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19947 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19948 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19949 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19950 | ||
19951 | cat >conftest.$ac_ext <<_ACEOF | |
19952 | /* confdefs.h. */ | |
19953 | _ACEOF | |
19954 | cat confdefs.h >>conftest.$ac_ext | |
19955 | cat >>conftest.$ac_ext <<_ACEOF | |
19956 | /* end confdefs.h. */ | |
19957 | #include <typeinfo> | |
19958 | class Base { public : Base () {} virtual void f () = 0;}; | |
19959 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19960 | class Unrelated { public : Unrelated () {} }; | |
19961 | int g (Unrelated&) { return 0; } | |
19962 | int | |
19963 | main () | |
19964 | { | |
19965 | ||
19966 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
19967 | ; | |
19968 | return 0; | |
19969 | } | |
19970 | _ACEOF | |
19971 | rm -f conftest.$ac_objext | |
19972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19973 | (eval $ac_compile) 2>conftest.er1 | |
19974 | ac_status=$? | |
19975 | grep -v '^ *+' conftest.er1 >conftest.err | |
19976 | rm -f conftest.er1 | |
19977 | cat conftest.err >&5 | |
19978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19979 | (exit $ac_status); } && | |
89be85c2 VS |
19980 | { ac_try='test -z "$ac_cxx_werror_flag" |
19981 | || test ! -s conftest.err' | |
7714864e RL |
19982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19983 | (eval $ac_try) 2>&5 | |
19984 | ac_status=$? | |
19985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19986 | (exit $ac_status); }; } && | |
19987 | { ac_try='test -s conftest.$ac_objext' | |
19988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19989 | (eval $ac_try) 2>&5 | |
19990 | ac_status=$? | |
19991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19992 | (exit $ac_status); }; }; then | |
19993 | ac_cv_cxx_reinterpret_cast=yes | |
19994 | else | |
19995 | echo "$as_me: failed program was:" >&5 | |
19996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19997 | ||
19998 | ac_cv_cxx_reinterpret_cast=no | |
19999 | fi | |
20000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20001 | ac_ext=c | |
20002 | ac_cpp='$CPP $CPPFLAGS' | |
20003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20006 | ||
20007 | ||
20008 | fi | |
20009 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
20010 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
20011 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
20012 | ||
20013 | cat >>confdefs.h <<\_ACEOF | |
20014 | #define HAVE_REINTERPRET_CAST | |
20015 | _ACEOF | |
20016 | ||
20017 | fi | |
20018 | ||
a848cd7e SC |
20019 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
20020 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
20021 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
20022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20023 | else | |
20024 | ||
20025 | ||
20026 | ac_ext=cc | |
20027 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20028 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20029 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20030 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20031 | ||
20032 | cat >conftest.$ac_ext <<_ACEOF | |
20033 | /* confdefs.h. */ | |
20034 | _ACEOF | |
20035 | cat confdefs.h >>conftest.$ac_ext | |
20036 | cat >>conftest.$ac_ext <<_ACEOF | |
20037 | /* end confdefs.h. */ | |
20038 | #include <typeinfo> | |
20039 | class Base { public : Base () {} virtual void f () = 0; }; | |
20040 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
20041 | int g (Derived&) { return 0; } | |
20042 | int | |
20043 | main () | |
20044 | { | |
20045 | ||
20046 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
20047 | ; | |
20048 | return 0; | |
20049 | } | |
20050 | _ACEOF | |
20051 | rm -f conftest.$ac_objext | |
20052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20053 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20054 | ac_status=$? |
ac1cb8d3 VS |
20055 | grep -v '^ *+' conftest.er1 >conftest.err |
20056 | rm -f conftest.er1 | |
20057 | cat conftest.err >&5 | |
a848cd7e SC |
20058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20059 | (exit $ac_status); } && | |
89be85c2 VS |
20060 | { ac_try='test -z "$ac_cxx_werror_flag" |
20061 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20063 | (eval $ac_try) 2>&5 | |
20064 | ac_status=$? | |
20065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20066 | (exit $ac_status); }; } && | |
20067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20069 | (eval $ac_try) 2>&5 | |
20070 | ac_status=$? | |
20071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20072 | (exit $ac_status); }; }; then | |
20073 | ac_cv_cxx_static_cast=yes | |
20074 | else | |
20075 | echo "$as_me: failed program was:" >&5 | |
20076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20077 | ||
20078 | ac_cv_cxx_static_cast=no | |
20079 | fi | |
ac1cb8d3 | 20080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20081 | ac_ext=c |
20082 | ac_cpp='$CPP $CPPFLAGS' | |
20083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20086 | ||
20087 | ||
20088 | fi | |
20089 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
20090 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
20091 | if test "$ac_cv_cxx_static_cast" = yes; then | |
20092 | ||
20093 | cat >>confdefs.h <<\_ACEOF | |
20094 | #define HAVE_STATIC_CAST | |
20095 | _ACEOF | |
20096 | ||
20097 | fi | |
20098 | ||
20099 | ||
20100 | if test "$wxUSE_STL" = "yes"; then | |
20101 | ac_ext=cc | |
20102 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20103 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20104 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20105 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20106 | ||
20107 | ||
20108 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
20109 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
20110 | cat >conftest.$ac_ext <<_ACEOF | |
20111 | /* confdefs.h. */ | |
20112 | _ACEOF | |
20113 | cat confdefs.h >>conftest.$ac_ext | |
20114 | cat >>conftest.$ac_ext <<_ACEOF | |
20115 | /* end confdefs.h. */ | |
20116 | #include <string> | |
20117 | #include <functional> | |
20118 | #include <algorithm> | |
20119 | #include <vector> | |
20120 | #include <list> | |
20121 | int | |
20122 | main () | |
20123 | { | |
20124 | std::vector<int> moo; | |
20125 | std::list<int> foo; | |
20126 | std::vector<int>::iterator it = | |
20127 | std::find_if(moo.begin(), moo.end(), | |
20128 | std::bind2nd(std::less<int>(), 3)); | |
20129 | ; | |
20130 | return 0; | |
20131 | } | |
20132 | _ACEOF | |
20133 | rm -f conftest.$ac_objext | |
20134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20135 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20136 | ac_status=$? |
ac1cb8d3 VS |
20137 | grep -v '^ *+' conftest.er1 >conftest.err |
20138 | rm -f conftest.er1 | |
20139 | cat conftest.err >&5 | |
a848cd7e SC |
20140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20141 | (exit $ac_status); } && | |
89be85c2 VS |
20142 | { ac_try='test -z "$ac_cxx_werror_flag" |
20143 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20145 | (eval $ac_try) 2>&5 | |
20146 | ac_status=$? | |
20147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20148 | (exit $ac_status); }; } && | |
20149 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20151 | (eval $ac_try) 2>&5 | |
20152 | ac_status=$? | |
20153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20154 | (exit $ac_status); }; }; then | |
20155 | echo "$as_me:$LINENO: result: yes" >&5 | |
20156 | echo "${ECHO_T}yes" >&6 | |
20157 | else | |
20158 | echo "$as_me: failed program was:" >&5 | |
20159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20160 | ||
20161 | echo "$as_me:$LINENO: result: no" >&5 | |
20162 | echo "${ECHO_T}no" >&6 | |
20163 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
20164 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
20165 | { (exit 1); exit 1; }; } | |
20166 | fi | |
ac1cb8d3 | 20167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20168 | |
20169 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
20170 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
20171 | cat >conftest.$ac_ext <<_ACEOF | |
20172 | /* confdefs.h. */ | |
20173 | _ACEOF | |
20174 | cat confdefs.h >>conftest.$ac_ext | |
20175 | cat >>conftest.$ac_ext <<_ACEOF | |
20176 | /* end confdefs.h. */ | |
20177 | #include <string> | |
20178 | int | |
20179 | main () | |
20180 | { | |
20181 | std::wstring foo; | |
20182 | ; | |
20183 | return 0; | |
20184 | } | |
20185 | _ACEOF | |
20186 | rm -f conftest.$ac_objext | |
20187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20188 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20189 | ac_status=$? |
ac1cb8d3 VS |
20190 | grep -v '^ *+' conftest.er1 >conftest.err |
20191 | rm -f conftest.er1 | |
20192 | cat conftest.err >&5 | |
a848cd7e SC |
20193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20194 | (exit $ac_status); } && | |
89be85c2 VS |
20195 | { ac_try='test -z "$ac_cxx_werror_flag" |
20196 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20198 | (eval $ac_try) 2>&5 | |
20199 | ac_status=$? | |
20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20201 | (exit $ac_status); }; } && | |
20202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20204 | (eval $ac_try) 2>&5 | |
20205 | ac_status=$? | |
20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20207 | (exit $ac_status); }; }; then | |
20208 | echo "$as_me:$LINENO: result: yes" >&5 | |
20209 | echo "${ECHO_T}yes" >&6 | |
20210 | cat >>confdefs.h <<\_ACEOF | |
20211 | #define HAVE_STD_WSTRING 1 | |
20212 | _ACEOF | |
20213 | ||
20214 | else | |
20215 | echo "$as_me: failed program was:" >&5 | |
20216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20217 | ||
20218 | echo "$as_me:$LINENO: result: no" >&5 | |
20219 | echo "${ECHO_T}no" >&6 | |
20220 | fi | |
ac1cb8d3 | 20221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20222 | |
20223 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
20224 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
20225 | cat >conftest.$ac_ext <<_ACEOF | |
20226 | /* confdefs.h. */ | |
20227 | _ACEOF | |
20228 | cat confdefs.h >>conftest.$ac_ext | |
20229 | cat >>conftest.$ac_ext <<_ACEOF | |
20230 | /* end confdefs.h. */ | |
20231 | #include <string> | |
20232 | int | |
20233 | main () | |
20234 | { | |
20235 | std::string foo, bar; | |
20236 | foo.compare(bar); | |
20237 | foo.compare(1, 1, bar); | |
20238 | foo.compare(1, 1, bar, 1, 1); | |
20239 | foo.compare(""); | |
20240 | foo.compare(1, 1, ""); | |
20241 | foo.compare(1, 1, "", 2); | |
20242 | ; | |
20243 | return 0; | |
20244 | } | |
20245 | _ACEOF | |
20246 | rm -f conftest.$ac_objext | |
20247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20248 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20249 | ac_status=$? |
ac1cb8d3 VS |
20250 | grep -v '^ *+' conftest.er1 >conftest.err |
20251 | rm -f conftest.er1 | |
20252 | cat conftest.err >&5 | |
a848cd7e SC |
20253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20254 | (exit $ac_status); } && | |
89be85c2 VS |
20255 | { ac_try='test -z "$ac_cxx_werror_flag" |
20256 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20258 | (eval $ac_try) 2>&5 | |
20259 | ac_status=$? | |
20260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20261 | (exit $ac_status); }; } && | |
20262 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20264 | (eval $ac_try) 2>&5 | |
20265 | ac_status=$? | |
20266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20267 | (exit $ac_status); }; }; then | |
20268 | echo "$as_me:$LINENO: result: yes" >&5 | |
20269 | echo "${ECHO_T}yes" >&6 | |
20270 | cat >>confdefs.h <<\_ACEOF | |
20271 | #define HAVE_STD_STRING_COMPARE 1 | |
20272 | _ACEOF | |
20273 | ||
20274 | else | |
20275 | echo "$as_me: failed program was:" >&5 | |
20276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20277 | ||
20278 | echo "$as_me:$LINENO: result: no" >&5 | |
20279 | echo "${ECHO_T}no" >&6 | |
20280 | fi | |
ac1cb8d3 | 20281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20282 | |
20283 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20284 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20285 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20286 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20288 | fi | |
20289 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20290 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20291 | else | |
20292 | # Is the header compilable? | |
20293 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
20294 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
20295 | cat >conftest.$ac_ext <<_ACEOF | |
20296 | /* confdefs.h. */ | |
20297 | _ACEOF | |
20298 | cat confdefs.h >>conftest.$ac_ext | |
20299 | cat >>conftest.$ac_ext <<_ACEOF | |
20300 | /* end confdefs.h. */ | |
20301 | $ac_includes_default | |
20302 | #include <hash_map> | |
20303 | _ACEOF | |
20304 | rm -f conftest.$ac_objext | |
20305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20306 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20307 | ac_status=$? |
ac1cb8d3 VS |
20308 | grep -v '^ *+' conftest.er1 >conftest.err |
20309 | rm -f conftest.er1 | |
20310 | cat conftest.err >&5 | |
bdcade0a MB |
20311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20312 | (exit $ac_status); } && | |
89be85c2 VS |
20313 | { ac_try='test -z "$ac_cxx_werror_flag" |
20314 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20316 | (eval $ac_try) 2>&5 | |
20317 | ac_status=$? | |
20318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20319 | (exit $ac_status); }; } && | |
20320 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20322 | (eval $ac_try) 2>&5 | |
20323 | ac_status=$? | |
20324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20325 | (exit $ac_status); }; }; then | |
20326 | ac_header_compiler=yes | |
20327 | else | |
20328 | echo "$as_me: failed program was:" >&5 | |
20329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20330 | ||
20331 | ac_header_compiler=no | |
20332 | fi | |
ac1cb8d3 | 20333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20334 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20335 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20336 | ||
20337 | # Is the header present? | |
20338 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
20339 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
20340 | cat >conftest.$ac_ext <<_ACEOF | |
20341 | /* confdefs.h. */ | |
20342 | _ACEOF | |
20343 | cat confdefs.h >>conftest.$ac_ext | |
20344 | cat >>conftest.$ac_ext <<_ACEOF | |
20345 | /* end confdefs.h. */ | |
20346 | #include <hash_map> | |
20347 | _ACEOF | |
20348 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20349 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20350 | ac_status=$? | |
20351 | grep -v '^ *+' conftest.er1 >conftest.err | |
20352 | rm -f conftest.er1 | |
20353 | cat conftest.err >&5 | |
20354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20355 | (exit $ac_status); } >/dev/null; then | |
20356 | if test -s conftest.err; then | |
20357 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20358 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20359 | else |
20360 | ac_cpp_err= | |
20361 | fi | |
20362 | else | |
20363 | ac_cpp_err=yes | |
20364 | fi | |
20365 | if test -z "$ac_cpp_err"; then | |
20366 | ac_header_preproc=yes | |
20367 | else | |
20368 | echo "$as_me: failed program was:" >&5 | |
20369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20370 | ||
20371 | ac_header_preproc=no | |
20372 | fi | |
20373 | rm -f conftest.err conftest.$ac_ext | |
20374 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20375 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20376 | ||
20377 | # So? What about this header? | |
ac1cb8d3 VS |
20378 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20379 | yes:no: ) | |
bdcade0a MB |
20380 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20381 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20382 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
20383 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
20384 | ac_header_preproc=yes | |
bdcade0a | 20385 | ;; |
ac1cb8d3 | 20386 | no:yes:* ) |
bdcade0a MB |
20387 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
20388 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20389 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
20390 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
20391 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
20392 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
20393 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20394 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20395 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
20396 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20397 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
20398 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20399 | ( |
20400 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20401 | ## ----------------------------------------- ## |
20402 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20403 | ## ----------------------------------------- ## | |
bdcade0a MB |
20404 | _ASBOX |
20405 | ) | | |
20406 | sed "s/^/$as_me: WARNING: /" >&2 | |
20407 | ;; | |
20408 | esac | |
20409 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20410 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20411 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20413 | else | |
20414 | ac_cv_header_hash_map=$ac_header_preproc | |
20415 | fi | |
20416 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20417 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20418 | ||
20419 | fi | |
20420 | if test $ac_cv_header_hash_map = yes; then | |
20421 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20422 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20423 | cat >conftest.$ac_ext <<_ACEOF | |
20424 | /* confdefs.h. */ | |
20425 | _ACEOF | |
20426 | cat confdefs.h >>conftest.$ac_ext | |
20427 | cat >>conftest.$ac_ext <<_ACEOF | |
20428 | /* end confdefs.h. */ | |
20429 | #include <hash_map> | |
20430 | #include <hash_set> | |
20431 | int | |
20432 | main () | |
20433 | { | |
20434 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
20435 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
20436 | ; | |
20437 | return 0; | |
20438 | } | |
20439 | _ACEOF | |
20440 | rm -f conftest.$ac_objext | |
20441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20442 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20443 | ac_status=$? |
ac1cb8d3 VS |
20444 | grep -v '^ *+' conftest.er1 >conftest.err |
20445 | rm -f conftest.er1 | |
20446 | cat conftest.err >&5 | |
bdcade0a MB |
20447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20448 | (exit $ac_status); } && | |
89be85c2 VS |
20449 | { ac_try='test -z "$ac_cxx_werror_flag" |
20450 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20452 | (eval $ac_try) 2>&5 | |
20453 | ac_status=$? | |
20454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20455 | (exit $ac_status); }; } && | |
20456 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20458 | (eval $ac_try) 2>&5 | |
20459 | ac_status=$? | |
20460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20461 | (exit $ac_status); }; }; then | |
20462 | echo "$as_me:$LINENO: result: yes" >&5 | |
20463 | echo "${ECHO_T}yes" >&6 | |
20464 | cat >>confdefs.h <<\_ACEOF | |
20465 | #define HAVE_HASH_MAP 1 | |
20466 | _ACEOF | |
20467 | ||
20468 | cat >>confdefs.h <<\_ACEOF | |
20469 | #define HAVE_STD_HASH_MAP 1 | |
20470 | _ACEOF | |
20471 | ||
20472 | else | |
20473 | echo "$as_me: failed program was:" >&5 | |
20474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20475 | ||
20476 | echo "$as_me:$LINENO: result: no" >&5 | |
20477 | echo "${ECHO_T}no" >&6 | |
20478 | fi | |
ac1cb8d3 | 20479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20480 | |
20481 | fi | |
20482 | ||
20483 | ||
20484 | ||
20485 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20486 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20487 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20488 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20490 | fi | |
20491 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20492 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20493 | else | |
20494 | # Is the header compilable? | |
20495 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
20496 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
20497 | cat >conftest.$ac_ext <<_ACEOF | |
20498 | /* confdefs.h. */ | |
20499 | _ACEOF | |
20500 | cat confdefs.h >>conftest.$ac_ext | |
20501 | cat >>conftest.$ac_ext <<_ACEOF | |
20502 | /* end confdefs.h. */ | |
20503 | $ac_includes_default | |
20504 | #include <ext/hash_map> | |
20505 | _ACEOF | |
20506 | rm -f conftest.$ac_objext | |
20507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20508 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20509 | ac_status=$? |
ac1cb8d3 VS |
20510 | grep -v '^ *+' conftest.er1 >conftest.err |
20511 | rm -f conftest.er1 | |
20512 | cat conftest.err >&5 | |
bdcade0a MB |
20513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20514 | (exit $ac_status); } && | |
89be85c2 VS |
20515 | { ac_try='test -z "$ac_cxx_werror_flag" |
20516 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20518 | (eval $ac_try) 2>&5 | |
20519 | ac_status=$? | |
20520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20521 | (exit $ac_status); }; } && | |
20522 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20524 | (eval $ac_try) 2>&5 | |
20525 | ac_status=$? | |
20526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20527 | (exit $ac_status); }; }; then | |
20528 | ac_header_compiler=yes | |
20529 | else | |
20530 | echo "$as_me: failed program was:" >&5 | |
20531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20532 | ||
20533 | ac_header_compiler=no | |
20534 | fi | |
ac1cb8d3 | 20535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20536 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20537 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20538 | ||
20539 | # Is the header present? | |
20540 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
20541 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
20542 | cat >conftest.$ac_ext <<_ACEOF | |
20543 | /* confdefs.h. */ | |
20544 | _ACEOF | |
20545 | cat confdefs.h >>conftest.$ac_ext | |
20546 | cat >>conftest.$ac_ext <<_ACEOF | |
20547 | /* end confdefs.h. */ | |
20548 | #include <ext/hash_map> | |
20549 | _ACEOF | |
20550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20552 | ac_status=$? | |
20553 | grep -v '^ *+' conftest.er1 >conftest.err | |
20554 | rm -f conftest.er1 | |
20555 | cat conftest.err >&5 | |
20556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20557 | (exit $ac_status); } >/dev/null; then | |
20558 | if test -s conftest.err; then | |
20559 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20560 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20561 | else |
20562 | ac_cpp_err= | |
20563 | fi | |
20564 | else | |
20565 | ac_cpp_err=yes | |
20566 | fi | |
20567 | if test -z "$ac_cpp_err"; then | |
20568 | ac_header_preproc=yes | |
20569 | else | |
20570 | echo "$as_me: failed program was:" >&5 | |
20571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20572 | ||
20573 | ac_header_preproc=no | |
20574 | fi | |
20575 | rm -f conftest.err conftest.$ac_ext | |
20576 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20577 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20578 | ||
20579 | # So? What about this header? | |
ac1cb8d3 VS |
20580 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20581 | yes:no: ) | |
bdcade0a MB |
20582 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20583 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20584 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
20585 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
20586 | ac_header_preproc=yes | |
bdcade0a | 20587 | ;; |
ac1cb8d3 | 20588 | no:yes:* ) |
bdcade0a MB |
20589 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
20590 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20591 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
20592 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
20593 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
20594 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
20595 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20596 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20597 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
20598 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20599 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
20600 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20601 | ( |
20602 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20603 | ## ----------------------------------------- ## |
20604 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20605 | ## ----------------------------------------- ## | |
bdcade0a MB |
20606 | _ASBOX |
20607 | ) | | |
20608 | sed "s/^/$as_me: WARNING: /" >&2 | |
20609 | ;; | |
20610 | esac | |
20611 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20612 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20613 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20615 | else | |
20616 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
20617 | fi | |
20618 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20619 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20620 | ||
20621 | fi | |
20622 | if test $ac_cv_header_ext_hash_map = yes; then | |
20623 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20624 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20625 | cat >conftest.$ac_ext <<_ACEOF | |
20626 | /* confdefs.h. */ | |
20627 | _ACEOF | |
20628 | cat confdefs.h >>conftest.$ac_ext | |
20629 | cat >>conftest.$ac_ext <<_ACEOF | |
20630 | /* end confdefs.h. */ | |
20631 | #include <ext/hash_map> | |
20632 | #include <ext/hash_set> | |
20633 | int | |
20634 | main () | |
20635 | { | |
20636 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
20637 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
20638 | ; | |
20639 | return 0; | |
20640 | } | |
20641 | _ACEOF | |
20642 | rm -f conftest.$ac_objext | |
20643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20644 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20645 | ac_status=$? |
ac1cb8d3 VS |
20646 | grep -v '^ *+' conftest.er1 >conftest.err |
20647 | rm -f conftest.er1 | |
20648 | cat conftest.err >&5 | |
bdcade0a MB |
20649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20650 | (exit $ac_status); } && | |
89be85c2 VS |
20651 | { ac_try='test -z "$ac_cxx_werror_flag" |
20652 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20654 | (eval $ac_try) 2>&5 | |
20655 | ac_status=$? | |
20656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20657 | (exit $ac_status); }; } && | |
20658 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20660 | (eval $ac_try) 2>&5 | |
20661 | ac_status=$? | |
20662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20663 | (exit $ac_status); }; }; then | |
20664 | echo "$as_me:$LINENO: result: yes" >&5 | |
20665 | echo "${ECHO_T}yes" >&6 | |
20666 | cat >>confdefs.h <<\_ACEOF | |
20667 | #define HAVE_EXT_HASH_MAP 1 | |
20668 | _ACEOF | |
20669 | ||
20670 | cat >>confdefs.h <<\_ACEOF | |
20671 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
20672 | _ACEOF | |
20673 | ||
20674 | else | |
20675 | echo "$as_me: failed program was:" >&5 | |
20676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20677 | ||
20678 | echo "$as_me:$LINENO: result: no" >&5 | |
20679 | echo "${ECHO_T}no" >&6 | |
20680 | fi | |
ac1cb8d3 | 20681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20682 | |
20683 | fi | |
20684 | ||
20685 | ||
a848cd7e SC |
20686 | |
20687 | ac_ext=c | |
20688 | ac_cpp='$CPP $CPPFLAGS' | |
20689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20692 | ||
20693 | fi | |
20694 | ||
20695 | ||
20696 | SEARCH_INCLUDE="\ | |
20697 | /usr/local/include \ | |
20698 | \ | |
20699 | /usr/Motif-2.1/include \ | |
20700 | /usr/Motif-1.2/include \ | |
20701 | /usr/include/Motif1.2 \ | |
20702 | /opt/xpm/include/X11 \ | |
20703 | /opt/GBxpm/include/ \ | |
20704 | /opt/GBxpm/X11/include/ \ | |
20705 | \ | |
20706 | /usr/dt/include \ | |
20707 | /usr/openwin/include \ | |
20708 | \ | |
20709 | /usr/include/Xm \ | |
20710 | \ | |
20711 | /usr/X11R6/include \ | |
20712 | /usr/X11R6.4/include \ | |
20713 | /usr/X11R5/include \ | |
20714 | /usr/X11R4/include \ | |
20715 | \ | |
20716 | /usr/include/X11R6 \ | |
20717 | /usr/include/X11R5 \ | |
20718 | /usr/include/X11R4 \ | |
20719 | \ | |
20720 | /usr/local/X11R6/include \ | |
20721 | /usr/local/X11R5/include \ | |
20722 | /usr/local/X11R4/include \ | |
20723 | \ | |
20724 | /usr/local/include/X11R6 \ | |
20725 | /usr/local/include/X11R5 \ | |
20726 | /usr/local/include/X11R4 \ | |
20727 | \ | |
20728 | /usr/X11/include \ | |
20729 | /usr/include/X11 \ | |
20730 | /usr/local/X11/include \ | |
20731 | /usr/local/include/X11 \ | |
20732 | \ | |
20733 | /usr/X386/include \ | |
20734 | /usr/x386/include \ | |
20735 | /usr/XFree86/include/X11 \ | |
20736 | \ | |
20737 | X:/XFree86/include \ | |
20738 | X:/XFree86/include/X11 \ | |
20739 | \ | |
20740 | /usr/include/gtk \ | |
20741 | /usr/local/include/gtk \ | |
20742 | /usr/include/glib \ | |
20743 | /usr/local/include/glib \ | |
20744 | \ | |
20745 | /usr/include/qt \ | |
20746 | /usr/local/include/qt \ | |
20747 | \ | |
20748 | /usr/local/arm/3.3.2/include \ | |
20749 | \ | |
20750 | /usr/include/windows \ | |
20751 | /usr/include/wine \ | |
20752 | /usr/local/include/wine \ | |
20753 | \ | |
20754 | /usr/unsupported/include \ | |
20755 | /usr/athena/include \ | |
20756 | /usr/local/x11r5/include \ | |
20757 | /usr/lpp/Xamples/include \ | |
20758 | \ | |
20759 | /usr/openwin/share/include" | |
20760 | ||
20761 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20762 | ||
20763 | ||
20764 | cat >confcache <<\_ACEOF | |
20765 | # This file is a shell script that caches the results of configure | |
20766 | # tests run on this system so they can be shared between configure | |
20767 | # scripts and configure runs, see configure's option --config-cache. | |
20768 | # It is not useful on other systems. If it contains results you don't | |
20769 | # want to keep, you may remove or edit it. | |
20770 | # | |
20771 | # config.status only pays attention to the cache file if you give it | |
20772 | # the --recheck option to rerun configure. | |
20773 | # | |
20774 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20775 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20776 | # following values. | |
20777 | ||
20778 | _ACEOF | |
20779 | ||
20780 | # The following way of writing the cache mishandles newlines in values, | |
20781 | # but we know of no workaround that is simple, portable, and efficient. | |
20782 | # So, don't put newlines in cache variables' values. | |
20783 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20784 | # and sets the high bit in the cache file unless we assign to the vars. | |
20785 | { | |
20786 | (set) 2>&1 | | |
20787 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20788 | *ac_space=\ *) | |
20789 | # `set' does not quote correctly, so add quotes (double-quote | |
20790 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20791 | sed -n \ | |
ac1cb8d3 VS |
20792 | "s/'/'\\\\''/g; |
20793 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20794 | ;; |
20795 | *) | |
20796 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20797 | sed -n \ | |
ac1cb8d3 | 20798 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20799 | ;; |
20800 | esac; | |
20801 | } | | |
20802 | sed ' | |
20803 | t clear | |
20804 | : clear | |
20805 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20806 | t end | |
20807 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20808 | : end' >>confcache | |
20809 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20810 | if test -w $cache_file; then | |
20811 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20812 | cat confcache >$cache_file | |
20813 | else | |
20814 | echo "not updating unwritable cache $cache_file" | |
20815 | fi | |
20816 | fi | |
20817 | rm -f confcache | |
20818 | ||
20819 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20820 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20821 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20822 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20824 | else | |
20825 | ||
20826 | cat >conftest.$ac_ext <<_ACEOF | |
20827 | /* confdefs.h. */ | |
20828 | _ACEOF | |
20829 | cat confdefs.h >>conftest.$ac_ext | |
20830 | cat >>conftest.$ac_ext <<_ACEOF | |
20831 | /* end confdefs.h. */ | |
20832 | #include <features.h> | |
20833 | int | |
20834 | main () | |
20835 | { | |
20836 | ||
20837 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20838 | #error not glibc2.1 | |
20839 | #endif | |
20840 | ||
20841 | ; | |
20842 | return 0; | |
20843 | } | |
20844 | _ACEOF | |
20845 | rm -f conftest.$ac_objext | |
20846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20848 | ac_status=$? |
ac1cb8d3 VS |
20849 | grep -v '^ *+' conftest.er1 >conftest.err |
20850 | rm -f conftest.er1 | |
20851 | cat conftest.err >&5 | |
a848cd7e SC |
20852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20853 | (exit $ac_status); } && | |
89be85c2 VS |
20854 | { ac_try='test -z "$ac_c_werror_flag" |
20855 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20857 | (eval $ac_try) 2>&5 | |
20858 | ac_status=$? | |
20859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20860 | (exit $ac_status); }; } && | |
20861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20863 | (eval $ac_try) 2>&5 | |
20864 | ac_status=$? | |
20865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20866 | (exit $ac_status); }; }; then | |
20867 | ||
20868 | wx_cv_lib_glibc21=yes | |
20869 | ||
20870 | else | |
20871 | echo "$as_me: failed program was:" >&5 | |
20872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20873 | ||
20874 | ||
20875 | wx_cv_lib_glibc21=no | |
20876 | ||
20877 | ||
20878 | fi | |
ac1cb8d3 | 20879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20880 | |
20881 | fi | |
20882 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20883 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20884 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20885 | cat >>confdefs.h <<\_ACEOF | |
20886 | #define wxHAVE_GLIBC2 1 | |
20887 | _ACEOF | |
20888 | ||
20889 | fi | |
20890 | fi | |
20891 | ||
20892 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20893 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20894 | cat >>confdefs.h <<\_ACEOF | |
20895 | #define _GNU_SOURCE 1 | |
20896 | _ACEOF | |
20897 | ||
20898 | fi | |
20899 | fi | |
20900 | ||
20901 | ||
20902 | ||
20903 | if test "$wxUSE_REGEX" != "no"; then | |
20904 | cat >>confdefs.h <<\_ACEOF | |
20905 | #define wxUSE_REGEX 1 | |
20906 | _ACEOF | |
20907 | ||
20908 | ||
20909 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20910 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20911 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20912 | wxUSE_REGEX=builtin | |
20913 | fi | |
20914 | ||
20915 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20916 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20917 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20918 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20919 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20921 | fi | |
20922 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20923 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20924 | else | |
20925 | # Is the header compilable? | |
20926 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20927 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20928 | cat >conftest.$ac_ext <<_ACEOF | |
20929 | /* confdefs.h. */ | |
20930 | _ACEOF | |
20931 | cat confdefs.h >>conftest.$ac_ext | |
20932 | cat >>conftest.$ac_ext <<_ACEOF | |
20933 | /* end confdefs.h. */ | |
20934 | $ac_includes_default | |
20935 | #include <regex.h> | |
20936 | _ACEOF | |
20937 | rm -f conftest.$ac_objext | |
20938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20939 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20940 | ac_status=$? |
ac1cb8d3 VS |
20941 | grep -v '^ *+' conftest.er1 >conftest.err |
20942 | rm -f conftest.er1 | |
20943 | cat conftest.err >&5 | |
a848cd7e SC |
20944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20945 | (exit $ac_status); } && | |
89be85c2 VS |
20946 | { ac_try='test -z "$ac_c_werror_flag" |
20947 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20949 | (eval $ac_try) 2>&5 | |
20950 | ac_status=$? | |
20951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20952 | (exit $ac_status); }; } && | |
20953 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20955 | (eval $ac_try) 2>&5 | |
20956 | ac_status=$? | |
20957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20958 | (exit $ac_status); }; }; then | |
20959 | ac_header_compiler=yes | |
20960 | else | |
20961 | echo "$as_me: failed program was:" >&5 | |
20962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20963 | ||
20964 | ac_header_compiler=no | |
20965 | fi | |
ac1cb8d3 | 20966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20967 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20968 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20969 | ||
20970 | # Is the header present? | |
20971 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20972 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20973 | cat >conftest.$ac_ext <<_ACEOF | |
20974 | /* confdefs.h. */ | |
20975 | _ACEOF | |
20976 | cat confdefs.h >>conftest.$ac_ext | |
20977 | cat >>conftest.$ac_ext <<_ACEOF | |
20978 | /* end confdefs.h. */ | |
20979 | #include <regex.h> | |
20980 | _ACEOF | |
20981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20983 | ac_status=$? | |
20984 | grep -v '^ *+' conftest.er1 >conftest.err | |
20985 | rm -f conftest.er1 | |
20986 | cat conftest.err >&5 | |
20987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20988 | (exit $ac_status); } >/dev/null; then | |
20989 | if test -s conftest.err; then | |
20990 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20991 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20992 | else |
20993 | ac_cpp_err= | |
20994 | fi | |
20995 | else | |
20996 | ac_cpp_err=yes | |
20997 | fi | |
20998 | if test -z "$ac_cpp_err"; then | |
20999 | ac_header_preproc=yes | |
21000 | else | |
21001 | echo "$as_me: failed program was:" >&5 | |
21002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21003 | ||
21004 | ac_header_preproc=no | |
21005 | fi | |
21006 | rm -f conftest.err conftest.$ac_ext | |
21007 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21008 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21009 | ||
21010 | # So? What about this header? | |
ac1cb8d3 VS |
21011 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21012 | yes:no: ) | |
a848cd7e SC |
21013 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21014 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21015 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
21016 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
21017 | ac_header_preproc=yes | |
a848cd7e | 21018 | ;; |
ac1cb8d3 | 21019 | no:yes:* ) |
a848cd7e SC |
21020 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
21021 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21022 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
21023 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
21024 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
21025 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
21026 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21027 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21028 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
21029 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21030 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
21031 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21032 | ( |
21033 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21034 | ## ----------------------------------------- ## |
21035 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21036 | ## ----------------------------------------- ## | |
a848cd7e SC |
21037 | _ASBOX |
21038 | ) | | |
21039 | sed "s/^/$as_me: WARNING: /" >&2 | |
21040 | ;; | |
21041 | esac | |
21042 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
21043 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
21044 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21046 | else | |
21047 | ac_cv_header_regex_h=$ac_header_preproc | |
21048 | fi | |
21049 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
21050 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
21051 | ||
21052 | fi | |
21053 | if test $ac_cv_header_regex_h = yes; then | |
21054 | ||
21055 | for ac_func in regcomp | |
21056 | do | |
21057 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
21058 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21059 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21060 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21062 | else | |
21063 | cat >conftest.$ac_ext <<_ACEOF | |
21064 | /* confdefs.h. */ | |
21065 | _ACEOF | |
21066 | cat confdefs.h >>conftest.$ac_ext | |
21067 | cat >>conftest.$ac_ext <<_ACEOF | |
21068 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
21069 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21070 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21071 | #define $ac_func innocuous_$ac_func | |
21072 | ||
a848cd7e SC |
21073 | /* System header to define __stub macros and hopefully few prototypes, |
21074 | which can conflict with char $ac_func (); below. | |
21075 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21076 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 21077 | |
a848cd7e SC |
21078 | #ifdef __STDC__ |
21079 | # include <limits.h> | |
21080 | #else | |
21081 | # include <assert.h> | |
21082 | #endif | |
ac1cb8d3 VS |
21083 | |
21084 | #undef $ac_func | |
21085 | ||
a848cd7e SC |
21086 | /* Override any gcc2 internal prototype to avoid an error. */ |
21087 | #ifdef __cplusplus | |
21088 | extern "C" | |
21089 | { | |
21090 | #endif | |
21091 | /* We use char because int might match the return type of a gcc2 | |
21092 | builtin and then its argument prototype would still apply. */ | |
21093 | char $ac_func (); | |
21094 | /* The GNU C library defines this for functions which it implements | |
21095 | to always fail with ENOSYS. Some functions are actually named | |
21096 | something starting with __ and the normal name is an alias. */ | |
21097 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21098 | choke me | |
21099 | #else | |
21100 | char (*f) () = $ac_func; | |
21101 | #endif | |
21102 | #ifdef __cplusplus | |
21103 | } | |
21104 | #endif | |
21105 | ||
21106 | int | |
21107 | main () | |
21108 | { | |
21109 | return f != $ac_func; | |
21110 | ; | |
21111 | return 0; | |
21112 | } | |
21113 | _ACEOF | |
21114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21116 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21117 | ac_status=$? |
ac1cb8d3 VS |
21118 | grep -v '^ *+' conftest.er1 >conftest.err |
21119 | rm -f conftest.er1 | |
21120 | cat conftest.err >&5 | |
a848cd7e SC |
21121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21122 | (exit $ac_status); } && | |
89be85c2 VS |
21123 | { ac_try='test -z "$ac_c_werror_flag" |
21124 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21126 | (eval $ac_try) 2>&5 | |
21127 | ac_status=$? | |
21128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21129 | (exit $ac_status); }; } && | |
21130 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21132 | (eval $ac_try) 2>&5 | |
21133 | ac_status=$? | |
21134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21135 | (exit $ac_status); }; }; then | |
21136 | eval "$as_ac_var=yes" | |
21137 | else | |
21138 | echo "$as_me: failed program was:" >&5 | |
21139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21140 | ||
21141 | eval "$as_ac_var=no" | |
21142 | fi | |
ac1cb8d3 VS |
21143 | rm -f conftest.err conftest.$ac_objext \ |
21144 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21145 | fi |
21146 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21147 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21148 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21149 | cat >>confdefs.h <<_ACEOF | |
21150 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21151 | _ACEOF | |
21152 | ||
21153 | fi | |
21154 | done | |
21155 | ||
21156 | fi | |
21157 | ||
21158 | ||
21159 | ||
21160 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
21161 | if test "$wxUSE_REGEX" = "sys" ; then | |
21162 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
21163 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
21164 | { (exit 1); exit 1; }; } | |
21165 | else | |
21166 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
21167 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21168 | wxUSE_REGEX=builtin | |
21169 | fi | |
21170 | else | |
21171 | wxUSE_REGEX=sys | |
21172 | cat >>confdefs.h <<\_ACEOF | |
21173 | #define WX_NO_REGEX_ADVANCED 1 | |
21174 | _ACEOF | |
21175 | ||
21176 | fi | |
21177 | fi | |
21178 | fi | |
21179 | ||
21180 | ||
21181 | ZLIB_LINK= | |
21182 | if test "$wxUSE_ZLIB" != "no" ; then | |
21183 | cat >>confdefs.h <<\_ACEOF | |
21184 | #define wxUSE_ZLIB 1 | |
21185 | _ACEOF | |
21186 | ||
21187 | ||
21188 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
21189 | if test "$USE_DARWIN" = 1; then | |
21190 | system_zlib_h_ok="yes" | |
21191 | else | |
21192 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
21193 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
21194 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21196 | else | |
21197 | if test "$cross_compiling" = yes; then | |
21198 | unset ac_cv_header_zlib_h | |
21199 | ||
21200 | else | |
21201 | cat >conftest.$ac_ext <<_ACEOF | |
21202 | /* confdefs.h. */ | |
21203 | _ACEOF | |
21204 | cat confdefs.h >>conftest.$ac_ext | |
21205 | cat >>conftest.$ac_ext <<_ACEOF | |
21206 | /* end confdefs.h. */ | |
21207 | ||
21208 | #include <zlib.h> | |
21209 | #include <stdio.h> | |
21210 | ||
21211 | int main() | |
21212 | { | |
21213 | FILE *f=fopen("conftestval", "w"); | |
21214 | if (!f) exit(1); | |
21215 | fprintf(f, "%s", | |
21216 | ZLIB_VERSION[0] == '1' && | |
21217 | (ZLIB_VERSION[2] > '1' || | |
21218 | (ZLIB_VERSION[2] == '1' && | |
21219 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
21220 | exit(0); | |
21221 | } | |
21222 | ||
21223 | _ACEOF | |
21224 | rm -f conftest$ac_exeext | |
21225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21226 | (eval $ac_link) 2>&5 | |
21227 | ac_status=$? | |
21228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21229 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21231 | (eval $ac_try) 2>&5 | |
21232 | ac_status=$? | |
21233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21234 | (exit $ac_status); }; }; then | |
21235 | ac_cv_header_zlib_h=`cat conftestval` | |
21236 | else | |
21237 | echo "$as_me: program exited with status $ac_status" >&5 | |
21238 | echo "$as_me: failed program was:" >&5 | |
21239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21240 | ||
21241 | ( exit $ac_status ) | |
21242 | ac_cv_header_zlib_h=no | |
21243 | fi | |
ac1cb8d3 | 21244 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21245 | fi |
21246 | ||
21247 | fi | |
21248 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21249 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21250 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21251 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21252 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21253 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21255 | fi | |
21256 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21257 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21258 | else | |
21259 | # Is the header compilable? | |
21260 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
21261 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
21262 | cat >conftest.$ac_ext <<_ACEOF | |
21263 | /* confdefs.h. */ | |
21264 | _ACEOF | |
21265 | cat confdefs.h >>conftest.$ac_ext | |
21266 | cat >>conftest.$ac_ext <<_ACEOF | |
21267 | /* end confdefs.h. */ | |
21268 | $ac_includes_default | |
21269 | #include <zlib.h> | |
21270 | _ACEOF | |
21271 | rm -f conftest.$ac_objext | |
21272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21273 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21274 | ac_status=$? |
ac1cb8d3 VS |
21275 | grep -v '^ *+' conftest.er1 >conftest.err |
21276 | rm -f conftest.er1 | |
21277 | cat conftest.err >&5 | |
a848cd7e SC |
21278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21279 | (exit $ac_status); } && | |
89be85c2 VS |
21280 | { ac_try='test -z "$ac_c_werror_flag" |
21281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21283 | (eval $ac_try) 2>&5 | |
21284 | ac_status=$? | |
21285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21286 | (exit $ac_status); }; } && | |
21287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21289 | (eval $ac_try) 2>&5 | |
21290 | ac_status=$? | |
21291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21292 | (exit $ac_status); }; }; then | |
21293 | ac_header_compiler=yes | |
21294 | else | |
21295 | echo "$as_me: failed program was:" >&5 | |
21296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21297 | ||
21298 | ac_header_compiler=no | |
21299 | fi | |
ac1cb8d3 | 21300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21301 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21302 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21303 | ||
21304 | # Is the header present? | |
21305 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
21306 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
21307 | cat >conftest.$ac_ext <<_ACEOF | |
21308 | /* confdefs.h. */ | |
21309 | _ACEOF | |
21310 | cat confdefs.h >>conftest.$ac_ext | |
21311 | cat >>conftest.$ac_ext <<_ACEOF | |
21312 | /* end confdefs.h. */ | |
21313 | #include <zlib.h> | |
21314 | _ACEOF | |
21315 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21316 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21317 | ac_status=$? | |
21318 | grep -v '^ *+' conftest.er1 >conftest.err | |
21319 | rm -f conftest.er1 | |
21320 | cat conftest.err >&5 | |
21321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21322 | (exit $ac_status); } >/dev/null; then | |
21323 | if test -s conftest.err; then | |
21324 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21325 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21326 | else |
21327 | ac_cpp_err= | |
21328 | fi | |
21329 | else | |
21330 | ac_cpp_err=yes | |
21331 | fi | |
21332 | if test -z "$ac_cpp_err"; then | |
21333 | ac_header_preproc=yes | |
21334 | else | |
21335 | echo "$as_me: failed program was:" >&5 | |
21336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21337 | ||
21338 | ac_header_preproc=no | |
21339 | fi | |
21340 | rm -f conftest.err conftest.$ac_ext | |
21341 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21342 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21343 | ||
21344 | # So? What about this header? | |
ac1cb8d3 VS |
21345 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21346 | yes:no: ) | |
a848cd7e SC |
21347 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21348 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21349 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
21350 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
21351 | ac_header_preproc=yes | |
a848cd7e | 21352 | ;; |
ac1cb8d3 | 21353 | no:yes:* ) |
a848cd7e SC |
21354 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
21355 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21356 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
21357 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
21358 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
21359 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
21360 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21361 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21362 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
21363 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21364 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
21365 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21366 | ( |
21367 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21368 | ## ----------------------------------------- ## |
21369 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21370 | ## ----------------------------------------- ## | |
a848cd7e SC |
21371 | _ASBOX |
21372 | ) | | |
21373 | sed "s/^/$as_me: WARNING: /" >&2 | |
21374 | ;; | |
21375 | esac | |
21376 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21377 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21378 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21380 | else | |
21381 | ac_cv_header_zlib_h=$ac_header_preproc | |
21382 | fi | |
21383 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21384 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21385 | ||
21386 | fi | |
21387 | ||
21388 | ||
21389 | ||
21390 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
21391 | fi | |
21392 | ||
21393 | if test "$system_zlib_h_ok" = "yes"; then | |
21394 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
21395 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
21396 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
21397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21398 | else | |
21399 | ac_check_lib_save_LIBS=$LIBS | |
21400 | LIBS="-lz $LIBS" | |
21401 | cat >conftest.$ac_ext <<_ACEOF | |
21402 | /* confdefs.h. */ | |
21403 | _ACEOF | |
21404 | cat confdefs.h >>conftest.$ac_ext | |
21405 | cat >>conftest.$ac_ext <<_ACEOF | |
21406 | /* end confdefs.h. */ | |
21407 | ||
21408 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21409 | #ifdef __cplusplus | |
21410 | extern "C" | |
21411 | #endif | |
21412 | /* We use char because int might match the return type of a gcc2 | |
21413 | builtin and then its argument prototype would still apply. */ | |
21414 | char deflate (); | |
21415 | int | |
21416 | main () | |
21417 | { | |
21418 | deflate (); | |
21419 | ; | |
21420 | return 0; | |
21421 | } | |
21422 | _ACEOF | |
21423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21425 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21426 | ac_status=$? |
ac1cb8d3 VS |
21427 | grep -v '^ *+' conftest.er1 >conftest.err |
21428 | rm -f conftest.er1 | |
21429 | cat conftest.err >&5 | |
a848cd7e SC |
21430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21431 | (exit $ac_status); } && | |
89be85c2 VS |
21432 | { ac_try='test -z "$ac_c_werror_flag" |
21433 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
21439 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21441 | (eval $ac_try) 2>&5 | |
21442 | ac_status=$? | |
21443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21444 | (exit $ac_status); }; }; then | |
21445 | ac_cv_lib_z_deflate=yes | |
21446 | else | |
21447 | echo "$as_me: failed program was:" >&5 | |
21448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21449 | ||
21450 | ac_cv_lib_z_deflate=no | |
21451 | fi | |
ac1cb8d3 VS |
21452 | rm -f conftest.err conftest.$ac_objext \ |
21453 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21454 | LIBS=$ac_check_lib_save_LIBS |
21455 | fi | |
21456 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
21457 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
21458 | if test $ac_cv_lib_z_deflate = yes; then | |
21459 | ZLIB_LINK=" -lz" | |
21460 | fi | |
21461 | ||
21462 | fi | |
21463 | ||
21464 | if test "x$ZLIB_LINK" = "x" ; then | |
21465 | if test "$wxUSE_ZLIB" = "sys" ; then | |
21466 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
21467 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
21468 | { (exit 1); exit 1; }; } | |
21469 | else | |
21470 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
21471 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21472 | wxUSE_ZLIB=builtin | |
21473 | fi | |
21474 | else | |
21475 | wxUSE_ZLIB=sys | |
21476 | fi | |
21477 | fi | |
21478 | fi | |
21479 | ||
21480 | ||
21481 | PNG_LINK= | |
21482 | if test "$wxUSE_LIBPNG" != "no" ; then | |
21483 | cat >>confdefs.h <<\_ACEOF | |
21484 | #define wxUSE_LIBPNG 1 | |
21485 | _ACEOF | |
21486 | ||
21487 | ||
21488 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
21489 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
21490 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21491 | wxUSE_LIBPNG=sys | |
21492 | fi | |
21493 | ||
21494 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
21495 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
21496 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21497 | wxUSE_LIBPNG=builtin | |
21498 | fi | |
21499 | ||
21500 | if test "$wxUSE_MGL" != 1 ; then | |
21501 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
21502 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
21503 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
21504 | if test "${ac_cv_header_png_h+set}" = set; then | |
21505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21506 | else | |
21507 | if test "$cross_compiling" = yes; then | |
21508 | unset ac_cv_header_png_h | |
21509 | ||
21510 | else | |
21511 | cat >conftest.$ac_ext <<_ACEOF | |
21512 | /* confdefs.h. */ | |
21513 | _ACEOF | |
21514 | cat confdefs.h >>conftest.$ac_ext | |
21515 | cat >>conftest.$ac_ext <<_ACEOF | |
21516 | /* end confdefs.h. */ | |
21517 | ||
21518 | #include <png.h> | |
21519 | #include <stdio.h> | |
21520 | ||
21521 | int main() | |
21522 | { | |
21523 | FILE *f=fopen("conftestval", "w"); | |
21524 | if (!f) exit(1); | |
21525 | fprintf(f, "%s", | |
21526 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
21527 | exit(0); | |
21528 | } | |
21529 | ||
21530 | _ACEOF | |
21531 | rm -f conftest$ac_exeext | |
21532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21533 | (eval $ac_link) 2>&5 | |
21534 | ac_status=$? | |
21535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21536 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21538 | (eval $ac_try) 2>&5 | |
21539 | ac_status=$? | |
21540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21541 | (exit $ac_status); }; }; then | |
21542 | ac_cv_header_png_h=`cat conftestval` | |
21543 | else | |
21544 | echo "$as_me: program exited with status $ac_status" >&5 | |
21545 | echo "$as_me: failed program was:" >&5 | |
21546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21547 | ||
21548 | ( exit $ac_status ) | |
21549 | ac_cv_header_png_h=no | |
21550 | fi | |
ac1cb8d3 | 21551 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21552 | fi |
21553 | ||
21554 | fi | |
21555 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21556 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21557 | if test "${ac_cv_header_png_h+set}" = set; then | |
21558 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21559 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21560 | if test "${ac_cv_header_png_h+set}" = set; then | |
21561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21562 | fi | |
21563 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21564 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21565 | else | |
21566 | # Is the header compilable? | |
21567 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
21568 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
21569 | cat >conftest.$ac_ext <<_ACEOF | |
21570 | /* confdefs.h. */ | |
21571 | _ACEOF | |
21572 | cat confdefs.h >>conftest.$ac_ext | |
21573 | cat >>conftest.$ac_ext <<_ACEOF | |
21574 | /* end confdefs.h. */ | |
21575 | $ac_includes_default | |
21576 | #include <png.h> | |
21577 | _ACEOF | |
21578 | rm -f conftest.$ac_objext | |
21579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21580 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21581 | ac_status=$? |
ac1cb8d3 VS |
21582 | grep -v '^ *+' conftest.er1 >conftest.err |
21583 | rm -f conftest.er1 | |
21584 | cat conftest.err >&5 | |
a848cd7e SC |
21585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21586 | (exit $ac_status); } && | |
89be85c2 VS |
21587 | { ac_try='test -z "$ac_c_werror_flag" |
21588 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21590 | (eval $ac_try) 2>&5 | |
21591 | ac_status=$? | |
21592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21593 | (exit $ac_status); }; } && | |
21594 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21596 | (eval $ac_try) 2>&5 | |
21597 | ac_status=$? | |
21598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21599 | (exit $ac_status); }; }; then | |
21600 | ac_header_compiler=yes | |
21601 | else | |
21602 | echo "$as_me: failed program was:" >&5 | |
21603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21604 | ||
21605 | ac_header_compiler=no | |
21606 | fi | |
ac1cb8d3 | 21607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21608 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21609 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21610 | ||
21611 | # Is the header present? | |
21612 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
21613 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
21614 | cat >conftest.$ac_ext <<_ACEOF | |
21615 | /* confdefs.h. */ | |
21616 | _ACEOF | |
21617 | cat confdefs.h >>conftest.$ac_ext | |
21618 | cat >>conftest.$ac_ext <<_ACEOF | |
21619 | /* end confdefs.h. */ | |
21620 | #include <png.h> | |
21621 | _ACEOF | |
21622 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21623 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21624 | ac_status=$? | |
21625 | grep -v '^ *+' conftest.er1 >conftest.err | |
21626 | rm -f conftest.er1 | |
21627 | cat conftest.err >&5 | |
21628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21629 | (exit $ac_status); } >/dev/null; then | |
21630 | if test -s conftest.err; then | |
21631 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21632 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21633 | else |
21634 | ac_cpp_err= | |
21635 | fi | |
21636 | else | |
21637 | ac_cpp_err=yes | |
21638 | fi | |
21639 | if test -z "$ac_cpp_err"; then | |
21640 | ac_header_preproc=yes | |
21641 | else | |
21642 | echo "$as_me: failed program was:" >&5 | |
21643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21644 | ||
21645 | ac_header_preproc=no | |
21646 | fi | |
21647 | rm -f conftest.err conftest.$ac_ext | |
21648 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21649 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21650 | ||
21651 | # So? What about this header? | |
ac1cb8d3 VS |
21652 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21653 | yes:no: ) | |
a848cd7e SC |
21654 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21655 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21656 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
21657 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
21658 | ac_header_preproc=yes | |
a848cd7e | 21659 | ;; |
ac1cb8d3 | 21660 | no:yes:* ) |
a848cd7e SC |
21661 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
21662 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21663 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
21664 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
21665 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
21666 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
21667 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21668 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21669 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
21670 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21671 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
21672 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21673 | ( |
21674 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21675 | ## ----------------------------------------- ## |
21676 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21677 | ## ----------------------------------------- ## | |
a848cd7e SC |
21678 | _ASBOX |
21679 | ) | | |
21680 | sed "s/^/$as_me: WARNING: /" >&2 | |
21681 | ;; | |
21682 | esac | |
21683 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21684 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21685 | if test "${ac_cv_header_png_h+set}" = set; then | |
21686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21687 | else | |
21688 | ac_cv_header_png_h=$ac_header_preproc | |
21689 | fi | |
21690 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21691 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21692 | ||
21693 | fi | |
21694 | ||
21695 | ||
21696 | ||
21697 | if test "$ac_cv_header_png_h" = "yes"; then | |
21698 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
21699 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
21700 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
21701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21702 | else | |
21703 | ac_check_lib_save_LIBS=$LIBS | |
21704 | LIBS="-lpng -lz -lm $LIBS" | |
21705 | cat >conftest.$ac_ext <<_ACEOF | |
21706 | /* confdefs.h. */ | |
21707 | _ACEOF | |
21708 | cat confdefs.h >>conftest.$ac_ext | |
21709 | cat >>conftest.$ac_ext <<_ACEOF | |
21710 | /* end confdefs.h. */ | |
21711 | ||
21712 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21713 | #ifdef __cplusplus | |
21714 | extern "C" | |
21715 | #endif | |
21716 | /* We use char because int might match the return type of a gcc2 | |
21717 | builtin and then its argument prototype would still apply. */ | |
21718 | char png_check_sig (); | |
21719 | int | |
21720 | main () | |
21721 | { | |
21722 | png_check_sig (); | |
21723 | ; | |
21724 | return 0; | |
21725 | } | |
21726 | _ACEOF | |
21727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21729 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21730 | ac_status=$? |
ac1cb8d3 VS |
21731 | grep -v '^ *+' conftest.er1 >conftest.err |
21732 | rm -f conftest.er1 | |
21733 | cat conftest.err >&5 | |
a848cd7e SC |
21734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21735 | (exit $ac_status); } && | |
89be85c2 VS |
21736 | { ac_try='test -z "$ac_c_werror_flag" |
21737 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21739 | (eval $ac_try) 2>&5 | |
21740 | ac_status=$? | |
21741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21742 | (exit $ac_status); }; } && | |
21743 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21745 | (eval $ac_try) 2>&5 | |
21746 | ac_status=$? | |
21747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21748 | (exit $ac_status); }; }; then | |
21749 | ac_cv_lib_png_png_check_sig=yes | |
21750 | else | |
21751 | echo "$as_me: failed program was:" >&5 | |
21752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21753 | ||
21754 | ac_cv_lib_png_png_check_sig=no | |
21755 | fi | |
ac1cb8d3 VS |
21756 | rm -f conftest.err conftest.$ac_objext \ |
21757 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21758 | LIBS=$ac_check_lib_save_LIBS |
21759 | fi | |
21760 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21761 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21762 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21763 | PNG_LINK=" -lpng -lz" | |
21764 | fi | |
21765 | ||
21766 | fi | |
21767 | ||
21768 | if test "x$PNG_LINK" = "x" ; then | |
21769 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21770 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21771 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21772 | { (exit 1); exit 1; }; } | |
21773 | else | |
21774 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21775 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21776 | wxUSE_LIBPNG=builtin | |
21777 | fi | |
21778 | else | |
21779 | wxUSE_LIBPNG=sys | |
21780 | fi | |
21781 | fi | |
21782 | fi | |
21783 | ||
21784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21785 | fi | |
21786 | ||
21787 | ||
21788 | JPEG_LINK= | |
21789 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21790 | cat >>confdefs.h <<\_ACEOF | |
21791 | #define wxUSE_LIBJPEG 1 | |
21792 | _ACEOF | |
21793 | ||
21794 | ||
21795 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21796 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21797 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21798 | wxUSE_LIBJPEG=sys | |
21799 | fi | |
21800 | ||
21801 | if test "$wxUSE_MGL" != 1 ; then | |
21802 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21803 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21804 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21805 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
21806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21807 | else | |
21808 | cat >conftest.$ac_ext <<_ACEOF | |
21809 | /* confdefs.h. */ | |
21810 | _ACEOF | |
21811 | cat confdefs.h >>conftest.$ac_ext | |
21812 | cat >>conftest.$ac_ext <<_ACEOF | |
21813 | /* end confdefs.h. */ | |
21814 | ||
21815 | #undef HAVE_STDLIB_H | |
21816 | #include <stdio.h> | |
21817 | #include <jpeglib.h> | |
21818 | ||
21819 | int | |
21820 | main () | |
21821 | { | |
21822 | ||
21823 | ||
21824 | ; | |
21825 | return 0; | |
21826 | } | |
21827 | _ACEOF | |
21828 | rm -f conftest.$ac_objext | |
21829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21830 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21831 | ac_status=$? |
ac1cb8d3 VS |
21832 | grep -v '^ *+' conftest.er1 >conftest.err |
21833 | rm -f conftest.er1 | |
21834 | cat conftest.err >&5 | |
a848cd7e SC |
21835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21836 | (exit $ac_status); } && | |
89be85c2 VS |
21837 | { ac_try='test -z "$ac_c_werror_flag" |
21838 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21840 | (eval $ac_try) 2>&5 | |
21841 | ac_status=$? | |
21842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21843 | (exit $ac_status); }; } && | |
21844 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21846 | (eval $ac_try) 2>&5 | |
21847 | ac_status=$? | |
21848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21849 | (exit $ac_status); }; }; then | |
21850 | ac_cv_header_jpeglib_h=yes | |
21851 | else | |
21852 | echo "$as_me: failed program was:" >&5 | |
21853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21854 | ||
21855 | ac_cv_header_jpeglib_h=no | |
21856 | ||
21857 | fi | |
ac1cb8d3 | 21858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21859 | |
21860 | fi | |
21861 | ||
21862 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21863 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21864 | ||
21865 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21866 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21867 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21868 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21870 | else | |
21871 | ac_check_lib_save_LIBS=$LIBS | |
21872 | LIBS="-ljpeg $LIBS" | |
21873 | cat >conftest.$ac_ext <<_ACEOF | |
21874 | /* confdefs.h. */ | |
21875 | _ACEOF | |
21876 | cat confdefs.h >>conftest.$ac_ext | |
21877 | cat >>conftest.$ac_ext <<_ACEOF | |
21878 | /* end confdefs.h. */ | |
21879 | ||
21880 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21881 | #ifdef __cplusplus | |
21882 | extern "C" | |
21883 | #endif | |
21884 | /* We use char because int might match the return type of a gcc2 | |
21885 | builtin and then its argument prototype would still apply. */ | |
21886 | char jpeg_read_header (); | |
21887 | int | |
21888 | main () | |
21889 | { | |
21890 | jpeg_read_header (); | |
21891 | ; | |
21892 | return 0; | |
21893 | } | |
21894 | _ACEOF | |
21895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21897 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21898 | ac_status=$? |
ac1cb8d3 VS |
21899 | grep -v '^ *+' conftest.er1 >conftest.err |
21900 | rm -f conftest.er1 | |
21901 | cat conftest.err >&5 | |
a848cd7e SC |
21902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21903 | (exit $ac_status); } && | |
89be85c2 VS |
21904 | { ac_try='test -z "$ac_c_werror_flag" |
21905 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21907 | (eval $ac_try) 2>&5 | |
21908 | ac_status=$? | |
21909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21910 | (exit $ac_status); }; } && | |
21911 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21913 | (eval $ac_try) 2>&5 | |
21914 | ac_status=$? | |
21915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21916 | (exit $ac_status); }; }; then | |
21917 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21918 | else | |
21919 | echo "$as_me: failed program was:" >&5 | |
21920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21921 | ||
21922 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21923 | fi | |
ac1cb8d3 VS |
21924 | rm -f conftest.err conftest.$ac_objext \ |
21925 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21926 | LIBS=$ac_check_lib_save_LIBS |
21927 | fi | |
21928 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21929 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21930 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21931 | JPEG_LINK=" -ljpeg" | |
21932 | fi | |
21933 | ||
21934 | fi | |
21935 | ||
21936 | if test "x$JPEG_LINK" = "x" ; then | |
21937 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21938 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21939 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21940 | { (exit 1); exit 1; }; } | |
21941 | else | |
21942 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21943 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21944 | wxUSE_LIBJPEG=builtin | |
21945 | fi | |
21946 | else | |
21947 | wxUSE_LIBJPEG=sys | |
21948 | fi | |
21949 | fi | |
21950 | fi | |
21951 | fi | |
21952 | ||
21953 | ||
21954 | TIFF_LINK= | |
21955 | TIFF_PREREQ_LINKS=-lm | |
21956 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21957 | cat >>confdefs.h <<\_ACEOF | |
21958 | #define wxUSE_LIBTIFF 1 | |
21959 | _ACEOF | |
21960 | ||
21961 | ||
21962 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21963 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21964 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21965 | fi | |
21966 | if test "$wxUSE_ZLIB" = "sys"; then | |
21967 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21968 | fi | |
21969 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21970 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21971 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21972 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21974 | fi | |
21975 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21976 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21977 | else | |
21978 | # Is the header compilable? | |
21979 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21980 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21981 | cat >conftest.$ac_ext <<_ACEOF | |
21982 | /* confdefs.h. */ | |
21983 | _ACEOF | |
21984 | cat confdefs.h >>conftest.$ac_ext | |
21985 | cat >>conftest.$ac_ext <<_ACEOF | |
21986 | /* end confdefs.h. */ | |
21987 | $ac_includes_default | |
21988 | #include <tiffio.h> | |
21989 | _ACEOF | |
21990 | rm -f conftest.$ac_objext | |
21991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21992 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21993 | ac_status=$? |
ac1cb8d3 VS |
21994 | grep -v '^ *+' conftest.er1 >conftest.err |
21995 | rm -f conftest.er1 | |
21996 | cat conftest.err >&5 | |
a848cd7e SC |
21997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21998 | (exit $ac_status); } && | |
89be85c2 VS |
21999 | { ac_try='test -z "$ac_c_werror_flag" |
22000 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22002 | (eval $ac_try) 2>&5 | |
22003 | ac_status=$? | |
22004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22005 | (exit $ac_status); }; } && | |
22006 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22008 | (eval $ac_try) 2>&5 | |
22009 | ac_status=$? | |
22010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22011 | (exit $ac_status); }; }; then | |
22012 | ac_header_compiler=yes | |
22013 | else | |
22014 | echo "$as_me: failed program was:" >&5 | |
22015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22016 | ||
22017 | ac_header_compiler=no | |
22018 | fi | |
ac1cb8d3 | 22019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22020 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22021 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22022 | ||
22023 | # Is the header present? | |
22024 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
22025 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
22026 | cat >conftest.$ac_ext <<_ACEOF | |
22027 | /* confdefs.h. */ | |
22028 | _ACEOF | |
22029 | cat confdefs.h >>conftest.$ac_ext | |
22030 | cat >>conftest.$ac_ext <<_ACEOF | |
22031 | /* end confdefs.h. */ | |
22032 | #include <tiffio.h> | |
22033 | _ACEOF | |
22034 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22035 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22036 | ac_status=$? | |
22037 | grep -v '^ *+' conftest.er1 >conftest.err | |
22038 | rm -f conftest.er1 | |
22039 | cat conftest.err >&5 | |
22040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22041 | (exit $ac_status); } >/dev/null; then | |
22042 | if test -s conftest.err; then | |
22043 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22044 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22045 | else |
22046 | ac_cpp_err= | |
22047 | fi | |
22048 | else | |
22049 | ac_cpp_err=yes | |
22050 | fi | |
22051 | if test -z "$ac_cpp_err"; then | |
22052 | ac_header_preproc=yes | |
22053 | else | |
22054 | echo "$as_me: failed program was:" >&5 | |
22055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22056 | ||
22057 | ac_header_preproc=no | |
22058 | fi | |
22059 | rm -f conftest.err conftest.$ac_ext | |
22060 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22061 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22062 | ||
22063 | # So? What about this header? | |
ac1cb8d3 VS |
22064 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22065 | yes:no: ) | |
a848cd7e SC |
22066 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22067 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22068 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
22069 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
22070 | ac_header_preproc=yes | |
a848cd7e | 22071 | ;; |
ac1cb8d3 | 22072 | no:yes:* ) |
a848cd7e SC |
22073 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
22074 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22075 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
22076 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
22077 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
22078 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
22079 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22080 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22081 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
22082 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22083 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
22084 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22085 | ( |
22086 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22087 | ## ----------------------------------------- ## |
22088 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22089 | ## ----------------------------------------- ## | |
a848cd7e SC |
22090 | _ASBOX |
22091 | ) | | |
22092 | sed "s/^/$as_me: WARNING: /" >&2 | |
22093 | ;; | |
22094 | esac | |
22095 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
22096 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
22097 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22099 | else | |
22100 | ac_cv_header_tiffio_h=$ac_header_preproc | |
22101 | fi | |
22102 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
22103 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
22104 | ||
22105 | fi | |
22106 | if test $ac_cv_header_tiffio_h = yes; then | |
22107 | ||
22108 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
22109 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
22110 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
22111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22112 | else | |
22113 | ac_check_lib_save_LIBS=$LIBS | |
22114 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
22115 | cat >conftest.$ac_ext <<_ACEOF | |
22116 | /* confdefs.h. */ | |
22117 | _ACEOF | |
22118 | cat confdefs.h >>conftest.$ac_ext | |
22119 | cat >>conftest.$ac_ext <<_ACEOF | |
22120 | /* end confdefs.h. */ | |
22121 | ||
22122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22123 | #ifdef __cplusplus | |
22124 | extern "C" | |
22125 | #endif | |
22126 | /* We use char because int might match the return type of a gcc2 | |
22127 | builtin and then its argument prototype would still apply. */ | |
22128 | char TIFFError (); | |
22129 | int | |
22130 | main () | |
22131 | { | |
22132 | TIFFError (); | |
22133 | ; | |
22134 | return 0; | |
22135 | } | |
22136 | _ACEOF | |
22137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22139 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22140 | ac_status=$? |
ac1cb8d3 VS |
22141 | grep -v '^ *+' conftest.er1 >conftest.err |
22142 | rm -f conftest.er1 | |
22143 | cat conftest.err >&5 | |
a848cd7e SC |
22144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22145 | (exit $ac_status); } && | |
89be85c2 VS |
22146 | { ac_try='test -z "$ac_c_werror_flag" |
22147 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22149 | (eval $ac_try) 2>&5 | |
22150 | ac_status=$? | |
22151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22152 | (exit $ac_status); }; } && | |
22153 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22155 | (eval $ac_try) 2>&5 | |
22156 | ac_status=$? | |
22157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22158 | (exit $ac_status); }; }; then | |
22159 | ac_cv_lib_tiff_TIFFError=yes | |
22160 | else | |
22161 | echo "$as_me: failed program was:" >&5 | |
22162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22163 | ||
22164 | ac_cv_lib_tiff_TIFFError=no | |
22165 | fi | |
ac1cb8d3 VS |
22166 | rm -f conftest.err conftest.$ac_objext \ |
22167 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22168 | LIBS=$ac_check_lib_save_LIBS |
22169 | fi | |
22170 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
22171 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
22172 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
22173 | TIFF_LINK=" -ltiff" | |
22174 | fi | |
22175 | ||
22176 | ||
22177 | ||
22178 | fi | |
22179 | ||
22180 | ||
22181 | ||
22182 | if test "x$TIFF_LINK" = "x" ; then | |
22183 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
22184 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
22185 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
22186 | { (exit 1); exit 1; }; } | |
22187 | else | |
22188 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
22189 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
22190 | wxUSE_LIBTIFF=builtin | |
22191 | fi | |
22192 | else | |
22193 | wxUSE_LIBTIFF=sys | |
22194 | fi | |
22195 | fi | |
22196 | fi | |
22197 | ||
22198 | ||
22199 | if test "$wxUSE_EXPAT" != "no"; then | |
22200 | wxUSE_XML=yes | |
22201 | cat >>confdefs.h <<\_ACEOF | |
22202 | #define wxUSE_EXPAT 1 | |
22203 | _ACEOF | |
22204 | ||
22205 | cat >>confdefs.h <<\_ACEOF | |
22206 | #define wxUSE_XML 1 | |
22207 | _ACEOF | |
22208 | ||
22209 | ||
22210 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
22211 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22212 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22213 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22214 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22216 | fi | |
22217 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22218 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22219 | else | |
22220 | # Is the header compilable? | |
22221 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
22222 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
22223 | cat >conftest.$ac_ext <<_ACEOF | |
22224 | /* confdefs.h. */ | |
22225 | _ACEOF | |
22226 | cat confdefs.h >>conftest.$ac_ext | |
22227 | cat >>conftest.$ac_ext <<_ACEOF | |
22228 | /* end confdefs.h. */ | |
22229 | $ac_includes_default | |
22230 | #include <expat.h> | |
22231 | _ACEOF | |
22232 | rm -f conftest.$ac_objext | |
22233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22234 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22235 | ac_status=$? |
ac1cb8d3 VS |
22236 | grep -v '^ *+' conftest.er1 >conftest.err |
22237 | rm -f conftest.er1 | |
22238 | cat conftest.err >&5 | |
a848cd7e SC |
22239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22240 | (exit $ac_status); } && | |
89be85c2 VS |
22241 | { ac_try='test -z "$ac_c_werror_flag" |
22242 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22244 | (eval $ac_try) 2>&5 | |
22245 | ac_status=$? | |
22246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22247 | (exit $ac_status); }; } && | |
22248 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22250 | (eval $ac_try) 2>&5 | |
22251 | ac_status=$? | |
22252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22253 | (exit $ac_status); }; }; then | |
22254 | ac_header_compiler=yes | |
22255 | else | |
22256 | echo "$as_me: failed program was:" >&5 | |
22257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22258 | ||
22259 | ac_header_compiler=no | |
22260 | fi | |
ac1cb8d3 | 22261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22262 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22263 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22264 | ||
22265 | # Is the header present? | |
22266 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
22267 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
22268 | cat >conftest.$ac_ext <<_ACEOF | |
22269 | /* confdefs.h. */ | |
22270 | _ACEOF | |
22271 | cat confdefs.h >>conftest.$ac_ext | |
22272 | cat >>conftest.$ac_ext <<_ACEOF | |
22273 | /* end confdefs.h. */ | |
22274 | #include <expat.h> | |
22275 | _ACEOF | |
22276 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22277 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22278 | ac_status=$? | |
22279 | grep -v '^ *+' conftest.er1 >conftest.err | |
22280 | rm -f conftest.er1 | |
22281 | cat conftest.err >&5 | |
22282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22283 | (exit $ac_status); } >/dev/null; then | |
22284 | if test -s conftest.err; then | |
22285 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22286 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22287 | else |
22288 | ac_cpp_err= | |
22289 | fi | |
22290 | else | |
22291 | ac_cpp_err=yes | |
22292 | fi | |
22293 | if test -z "$ac_cpp_err"; then | |
22294 | ac_header_preproc=yes | |
22295 | else | |
22296 | echo "$as_me: failed program was:" >&5 | |
22297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22298 | ||
22299 | ac_header_preproc=no | |
22300 | fi | |
22301 | rm -f conftest.err conftest.$ac_ext | |
22302 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22303 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22304 | ||
22305 | # So? What about this header? | |
ac1cb8d3 VS |
22306 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22307 | yes:no: ) | |
a848cd7e SC |
22308 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22309 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22310 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
22311 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
22312 | ac_header_preproc=yes | |
a848cd7e | 22313 | ;; |
ac1cb8d3 | 22314 | no:yes:* ) |
a848cd7e SC |
22315 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
22316 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22317 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
22318 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
22319 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
22320 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
22321 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22322 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22323 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
22324 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22325 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
22326 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22327 | ( |
22328 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22329 | ## ----------------------------------------- ## |
22330 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22331 | ## ----------------------------------------- ## | |
a848cd7e SC |
22332 | _ASBOX |
22333 | ) | | |
22334 | sed "s/^/$as_me: WARNING: /" >&2 | |
22335 | ;; | |
22336 | esac | |
22337 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22338 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22339 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22341 | else | |
22342 | ac_cv_header_expat_h=$ac_header_preproc | |
22343 | fi | |
22344 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22345 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22346 | ||
22347 | fi | |
22348 | if test $ac_cv_header_expat_h = yes; then | |
22349 | found_expat_h=1 | |
22350 | fi | |
22351 | ||
22352 | ||
22353 | if test "x$found_expat_h" = "x1"; then | |
22354 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
22355 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
22356 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
22357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22358 | else | |
22359 | ||
22360 | ||
22361 | ||
22362 | ac_ext=cc | |
22363 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22364 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22365 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22366 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22367 | ||
22368 | cat >conftest.$ac_ext <<_ACEOF | |
22369 | /* confdefs.h. */ | |
22370 | _ACEOF | |
22371 | cat confdefs.h >>conftest.$ac_ext | |
22372 | cat >>conftest.$ac_ext <<_ACEOF | |
22373 | /* end confdefs.h. */ | |
22374 | #include <expat.h> | |
22375 | int | |
22376 | main () | |
22377 | { | |
22378 | ||
22379 | ; | |
22380 | return 0; | |
22381 | } | |
22382 | _ACEOF | |
22383 | rm -f conftest.$ac_objext | |
22384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22385 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22386 | ac_status=$? |
ac1cb8d3 VS |
22387 | grep -v '^ *+' conftest.er1 >conftest.err |
22388 | rm -f conftest.er1 | |
22389 | cat conftest.err >&5 | |
a848cd7e SC |
22390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22391 | (exit $ac_status); } && | |
89be85c2 VS |
22392 | { ac_try='test -z "$ac_cxx_werror_flag" |
22393 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22395 | (eval $ac_try) 2>&5 | |
22396 | ac_status=$? | |
22397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22398 | (exit $ac_status); }; } && | |
22399 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22401 | (eval $ac_try) 2>&5 | |
22402 | ac_status=$? | |
22403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22404 | (exit $ac_status); }; }; then | |
22405 | wx_cv_expat_is_not_broken=yes | |
22406 | else | |
22407 | echo "$as_me: failed program was:" >&5 | |
22408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22409 | ||
22410 | wx_cv_expat_is_not_broken=no | |
22411 | ||
22412 | fi | |
ac1cb8d3 | 22413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22414 | ac_ext=c |
22415 | ac_cpp='$CPP $CPPFLAGS' | |
22416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22419 | ||
22420 | ||
22421 | ||
22422 | fi | |
22423 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
22424 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
22425 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
22426 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
22427 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
22428 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
22429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22430 | else | |
22431 | ac_check_lib_save_LIBS=$LIBS | |
22432 | LIBS="-lexpat $LIBS" | |
22433 | cat >conftest.$ac_ext <<_ACEOF | |
22434 | /* confdefs.h. */ | |
22435 | _ACEOF | |
22436 | cat confdefs.h >>conftest.$ac_ext | |
22437 | cat >>conftest.$ac_ext <<_ACEOF | |
22438 | /* end confdefs.h. */ | |
22439 | ||
22440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22441 | #ifdef __cplusplus | |
22442 | extern "C" | |
22443 | #endif | |
22444 | /* We use char because int might match the return type of a gcc2 | |
22445 | builtin and then its argument prototype would still apply. */ | |
22446 | char XML_ParserCreate (); | |
22447 | int | |
22448 | main () | |
22449 | { | |
22450 | XML_ParserCreate (); | |
22451 | ; | |
22452 | return 0; | |
22453 | } | |
22454 | _ACEOF | |
22455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22457 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22458 | ac_status=$? |
ac1cb8d3 VS |
22459 | grep -v '^ *+' conftest.er1 >conftest.err |
22460 | rm -f conftest.er1 | |
22461 | cat conftest.err >&5 | |
a848cd7e SC |
22462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22463 | (exit $ac_status); } && | |
89be85c2 VS |
22464 | { ac_try='test -z "$ac_c_werror_flag" |
22465 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22467 | (eval $ac_try) 2>&5 | |
22468 | ac_status=$? | |
22469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22470 | (exit $ac_status); }; } && | |
22471 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22473 | (eval $ac_try) 2>&5 | |
22474 | ac_status=$? | |
22475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22476 | (exit $ac_status); }; }; then | |
22477 | ac_cv_lib_expat_XML_ParserCreate=yes | |
22478 | else | |
22479 | echo "$as_me: failed program was:" >&5 | |
22480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22481 | ||
22482 | ac_cv_lib_expat_XML_ParserCreate=no | |
22483 | fi | |
ac1cb8d3 VS |
22484 | rm -f conftest.err conftest.$ac_objext \ |
22485 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22486 | LIBS=$ac_check_lib_save_LIBS |
22487 | fi | |
22488 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
22489 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
22490 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
22491 | EXPAT_LINK=" -lexpat" | |
22492 | fi | |
22493 | ||
22494 | fi | |
22495 | fi | |
22496 | if test "x$EXPAT_LINK" = "x" ; then | |
22497 | if test "$wxUSE_EXPAT" = "sys" ; then | |
22498 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
22499 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
22500 | { (exit 1); exit 1; }; } | |
22501 | else | |
22502 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
22503 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
22504 | wxUSE_EXPAT=builtin | |
22505 | fi | |
22506 | else | |
22507 | wxUSE_EXPAT=sys | |
22508 | fi | |
22509 | fi | |
22510 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
22511 | ||
22512 | ||
22513 | subdirs="$subdirs src/expat" | |
22514 | ||
22515 | fi | |
22516 | fi | |
22517 | ||
22518 | ||
22519 | ||
22520 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
22521 | if test "${ac_cv_header_mspack_h+set}" = set; then |
22522 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22523 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22524 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22526 | fi | |
22527 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22528 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22529 | else | |
22530 | # Is the header compilable? | |
22531 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
22532 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
22533 | cat >conftest.$ac_ext <<_ACEOF | |
22534 | /* confdefs.h. */ | |
22535 | _ACEOF | |
22536 | cat confdefs.h >>conftest.$ac_ext | |
22537 | cat >>conftest.$ac_ext <<_ACEOF | |
22538 | /* end confdefs.h. */ | |
22539 | $ac_includes_default | |
22540 | #include <mspack.h> | |
22541 | _ACEOF | |
22542 | rm -f conftest.$ac_objext | |
22543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22544 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22545 | ac_status=$? |
ac1cb8d3 VS |
22546 | grep -v '^ *+' conftest.er1 >conftest.err |
22547 | rm -f conftest.er1 | |
22548 | cat conftest.err >&5 | |
a848cd7e SC |
22549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22550 | (exit $ac_status); } && | |
89be85c2 VS |
22551 | { ac_try='test -z "$ac_c_werror_flag" |
22552 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22554 | (eval $ac_try) 2>&5 | |
22555 | ac_status=$? | |
22556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22557 | (exit $ac_status); }; } && | |
22558 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22560 | (eval $ac_try) 2>&5 | |
22561 | ac_status=$? | |
22562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22563 | (exit $ac_status); }; }; then | |
22564 | ac_header_compiler=yes | |
22565 | else | |
22566 | echo "$as_me: failed program was:" >&5 | |
22567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22568 | ||
22569 | ac_header_compiler=no | |
22570 | fi | |
ac1cb8d3 | 22571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22572 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22573 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22574 | ||
22575 | # Is the header present? | |
22576 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
22577 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
22578 | cat >conftest.$ac_ext <<_ACEOF | |
22579 | /* confdefs.h. */ | |
22580 | _ACEOF | |
22581 | cat confdefs.h >>conftest.$ac_ext | |
22582 | cat >>conftest.$ac_ext <<_ACEOF | |
22583 | /* end confdefs.h. */ | |
22584 | #include <mspack.h> | |
22585 | _ACEOF | |
22586 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22587 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22588 | ac_status=$? | |
22589 | grep -v '^ *+' conftest.er1 >conftest.err | |
22590 | rm -f conftest.er1 | |
22591 | cat conftest.err >&5 | |
22592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22593 | (exit $ac_status); } >/dev/null; then | |
22594 | if test -s conftest.err; then | |
22595 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22596 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22597 | else |
22598 | ac_cpp_err= | |
22599 | fi | |
22600 | else | |
22601 | ac_cpp_err=yes | |
22602 | fi | |
22603 | if test -z "$ac_cpp_err"; then | |
22604 | ac_header_preproc=yes | |
22605 | else | |
22606 | echo "$as_me: failed program was:" >&5 | |
22607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22608 | ||
22609 | ac_header_preproc=no | |
22610 | fi | |
22611 | rm -f conftest.err conftest.$ac_ext | |
22612 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22613 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22614 | ||
22615 | # So? What about this header? | |
ac1cb8d3 VS |
22616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22617 | yes:no: ) | |
a848cd7e SC |
22618 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22619 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22620 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
22621 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
22622 | ac_header_preproc=yes | |
a848cd7e | 22623 | ;; |
ac1cb8d3 | 22624 | no:yes:* ) |
a848cd7e SC |
22625 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
22626 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22627 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
22628 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
22629 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
22630 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
22631 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22632 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22633 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
22634 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22635 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
22636 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22637 | ( |
22638 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22639 | ## ----------------------------------------- ## |
22640 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22641 | ## ----------------------------------------- ## | |
a848cd7e SC |
22642 | _ASBOX |
22643 | ) | | |
22644 | sed "s/^/$as_me: WARNING: /" >&2 | |
22645 | ;; | |
22646 | esac | |
22647 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22648 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22649 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22651 | else | |
22652 | ac_cv_header_mspack_h=$ac_header_preproc | |
22653 | fi | |
22654 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22655 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22656 | ||
22657 | fi | |
22658 | if test $ac_cv_header_mspack_h = yes; then | |
22659 | found_mspack_h=1 | |
22660 | fi | |
22661 | ||
22662 | ||
22663 | if test "x$found_mspack_h" = "x1"; then | |
22664 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
22665 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
22666 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
22667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22668 | else | |
22669 | ac_check_lib_save_LIBS=$LIBS | |
22670 | LIBS="-lmspack $LIBS" | |
22671 | cat >conftest.$ac_ext <<_ACEOF | |
22672 | /* confdefs.h. */ | |
22673 | _ACEOF | |
22674 | cat confdefs.h >>conftest.$ac_ext | |
22675 | cat >>conftest.$ac_ext <<_ACEOF | |
22676 | /* end confdefs.h. */ | |
22677 | ||
22678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22679 | #ifdef __cplusplus | |
22680 | extern "C" | |
22681 | #endif | |
22682 | /* We use char because int might match the return type of a gcc2 | |
22683 | builtin and then its argument prototype would still apply. */ | |
22684 | char mspack_create_chm_decompressor (); | |
22685 | int | |
22686 | main () | |
22687 | { | |
22688 | mspack_create_chm_decompressor (); | |
22689 | ; | |
22690 | return 0; | |
22691 | } | |
22692 | _ACEOF | |
22693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22695 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22696 | ac_status=$? |
ac1cb8d3 VS |
22697 | grep -v '^ *+' conftest.er1 >conftest.err |
22698 | rm -f conftest.er1 | |
22699 | cat conftest.err >&5 | |
a848cd7e SC |
22700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22701 | (exit $ac_status); } && | |
89be85c2 VS |
22702 | { ac_try='test -z "$ac_c_werror_flag" |
22703 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22705 | (eval $ac_try) 2>&5 | |
22706 | ac_status=$? | |
22707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22708 | (exit $ac_status); }; } && | |
22709 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22711 | (eval $ac_try) 2>&5 | |
22712 | ac_status=$? | |
22713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22714 | (exit $ac_status); }; }; then | |
22715 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
22716 | else | |
22717 | echo "$as_me: failed program was:" >&5 | |
22718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22719 | ||
22720 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
22721 | fi | |
ac1cb8d3 VS |
22722 | rm -f conftest.err conftest.$ac_objext \ |
22723 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22724 | LIBS=$ac_check_lib_save_LIBS |
22725 | fi | |
22726 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
22727 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
22728 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
22729 | MSPACK_LINK=" -lmspack" | |
22730 | fi | |
22731 | ||
22732 | fi | |
22733 | if test "x$MSPACK_LINK" = "x" ; then | |
22734 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
22735 | fi |
22736 | fi | |
22737 | ||
22738 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
22739 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
22740 | #define wxUSE_LIBMSPACK 1 |
22741 | _ACEOF | |
22742 | ||
a848cd7e SC |
22743 | fi |
22744 | ||
22745 | ||
22746 | ||
22747 | AFMINSTALL= | |
22748 | WIN32INSTALL= | |
22749 | ||
22750 | TOOLKIT= | |
22751 | TOOLKIT_INCLUDE= | |
22752 | WIDGET_SET= | |
22753 | ||
22754 | if test "$USE_WIN32" = 1 ; then | |
22755 | ||
22756 | for ac_header in w32api.h | |
22757 | do | |
22758 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22764 | fi | |
22765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22767 | else | |
22768 | # Is the header compilable? | |
22769 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22771 | cat >conftest.$ac_ext <<_ACEOF | |
22772 | /* confdefs.h. */ | |
22773 | _ACEOF | |
22774 | cat confdefs.h >>conftest.$ac_ext | |
22775 | cat >>conftest.$ac_ext <<_ACEOF | |
22776 | /* end confdefs.h. */ | |
22777 | $ac_includes_default | |
22778 | #include <$ac_header> | |
22779 | _ACEOF | |
22780 | rm -f conftest.$ac_objext | |
22781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22782 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22783 | ac_status=$? |
ac1cb8d3 VS |
22784 | grep -v '^ *+' conftest.er1 >conftest.err |
22785 | rm -f conftest.er1 | |
22786 | cat conftest.err >&5 | |
a848cd7e SC |
22787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22788 | (exit $ac_status); } && | |
89be85c2 VS |
22789 | { ac_try='test -z "$ac_c_werror_flag" |
22790 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22792 | (eval $ac_try) 2>&5 | |
22793 | ac_status=$? | |
22794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22795 | (exit $ac_status); }; } && | |
22796 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22798 | (eval $ac_try) 2>&5 | |
22799 | ac_status=$? | |
22800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22801 | (exit $ac_status); }; }; then | |
22802 | ac_header_compiler=yes | |
22803 | else | |
22804 | echo "$as_me: failed program was:" >&5 | |
22805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22806 | ||
22807 | ac_header_compiler=no | |
22808 | fi | |
ac1cb8d3 | 22809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22810 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22811 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22812 | ||
22813 | # Is the header present? | |
22814 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22816 | cat >conftest.$ac_ext <<_ACEOF | |
22817 | /* confdefs.h. */ | |
22818 | _ACEOF | |
22819 | cat confdefs.h >>conftest.$ac_ext | |
22820 | cat >>conftest.$ac_ext <<_ACEOF | |
22821 | /* end confdefs.h. */ | |
22822 | #include <$ac_header> | |
22823 | _ACEOF | |
22824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22826 | ac_status=$? | |
22827 | grep -v '^ *+' conftest.er1 >conftest.err | |
22828 | rm -f conftest.er1 | |
22829 | cat conftest.err >&5 | |
22830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22831 | (exit $ac_status); } >/dev/null; then | |
22832 | if test -s conftest.err; then | |
22833 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22834 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22835 | else |
22836 | ac_cpp_err= | |
22837 | fi | |
22838 | else | |
22839 | ac_cpp_err=yes | |
22840 | fi | |
22841 | if test -z "$ac_cpp_err"; then | |
22842 | ac_header_preproc=yes | |
22843 | else | |
22844 | echo "$as_me: failed program was:" >&5 | |
22845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22846 | ||
22847 | ac_header_preproc=no | |
22848 | fi | |
22849 | rm -f conftest.err conftest.$ac_ext | |
22850 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22851 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22852 | ||
22853 | # So? What about this header? | |
ac1cb8d3 VS |
22854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22855 | yes:no: ) | |
a848cd7e SC |
22856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22859 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22860 | ac_header_preproc=yes | |
a848cd7e | 22861 | ;; |
ac1cb8d3 | 22862 | no:yes:* ) |
a848cd7e SC |
22863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22874 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22875 | ( |
22876 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22877 | ## ----------------------------------------- ## |
22878 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22879 | ## ----------------------------------------- ## | |
a848cd7e SC |
22880 | _ASBOX |
22881 | ) | | |
22882 | sed "s/^/$as_me: WARNING: /" >&2 | |
22883 | ;; | |
22884 | esac | |
22885 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22887 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22889 | else | |
ac1cb8d3 | 22890 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22891 | fi |
22892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22894 | ||
22895 | fi | |
22896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22897 | cat >>confdefs.h <<_ACEOF | |
22898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22899 | _ACEOF | |
22900 | ||
22901 | fi | |
22902 | ||
22903 | done | |
22904 | ||
22905 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22906 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22907 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22908 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22910 | fi | |
22911 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22912 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22913 | else | |
22914 | # Is the header compilable? | |
22915 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22916 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22917 | cat >conftest.$ac_ext <<_ACEOF | |
22918 | /* confdefs.h. */ | |
22919 | _ACEOF | |
22920 | cat confdefs.h >>conftest.$ac_ext | |
22921 | cat >>conftest.$ac_ext <<_ACEOF | |
22922 | /* end confdefs.h. */ | |
22923 | $ac_includes_default | |
22924 | #include <windows.h> | |
22925 | _ACEOF | |
22926 | rm -f conftest.$ac_objext | |
22927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22928 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22929 | ac_status=$? |
ac1cb8d3 VS |
22930 | grep -v '^ *+' conftest.er1 >conftest.err |
22931 | rm -f conftest.er1 | |
22932 | cat conftest.err >&5 | |
a848cd7e SC |
22933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22934 | (exit $ac_status); } && | |
89be85c2 VS |
22935 | { ac_try='test -z "$ac_c_werror_flag" |
22936 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22938 | (eval $ac_try) 2>&5 | |
22939 | ac_status=$? | |
22940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22941 | (exit $ac_status); }; } && | |
22942 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22944 | (eval $ac_try) 2>&5 | |
22945 | ac_status=$? | |
22946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22947 | (exit $ac_status); }; }; then | |
22948 | ac_header_compiler=yes | |
22949 | else | |
22950 | echo "$as_me: failed program was:" >&5 | |
22951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22952 | ||
22953 | ac_header_compiler=no | |
22954 | fi | |
ac1cb8d3 | 22955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22956 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22957 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22958 | ||
22959 | # Is the header present? | |
22960 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22961 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22962 | cat >conftest.$ac_ext <<_ACEOF | |
22963 | /* confdefs.h. */ | |
22964 | _ACEOF | |
22965 | cat confdefs.h >>conftest.$ac_ext | |
22966 | cat >>conftest.$ac_ext <<_ACEOF | |
22967 | /* end confdefs.h. */ | |
22968 | #include <windows.h> | |
22969 | _ACEOF | |
22970 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22971 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22972 | ac_status=$? | |
22973 | grep -v '^ *+' conftest.er1 >conftest.err | |
22974 | rm -f conftest.er1 | |
22975 | cat conftest.err >&5 | |
22976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22977 | (exit $ac_status); } >/dev/null; then | |
22978 | if test -s conftest.err; then | |
22979 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22980 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22981 | else |
22982 | ac_cpp_err= | |
22983 | fi | |
22984 | else | |
22985 | ac_cpp_err=yes | |
22986 | fi | |
22987 | if test -z "$ac_cpp_err"; then | |
22988 | ac_header_preproc=yes | |
22989 | else | |
22990 | echo "$as_me: failed program was:" >&5 | |
22991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22992 | ||
22993 | ac_header_preproc=no | |
22994 | fi | |
22995 | rm -f conftest.err conftest.$ac_ext | |
22996 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22997 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22998 | ||
22999 | # So? What about this header? | |
ac1cb8d3 VS |
23000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23001 | yes:no: ) | |
a848cd7e SC |
23002 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23003 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23004 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
23005 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
23006 | ac_header_preproc=yes | |
a848cd7e | 23007 | ;; |
ac1cb8d3 | 23008 | no:yes:* ) |
a848cd7e SC |
23009 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
23010 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23011 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
23012 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
23013 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
23014 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
23015 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23016 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23017 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
23018 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23019 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
23020 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23021 | ( |
23022 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23023 | ## ----------------------------------------- ## |
23024 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23025 | ## ----------------------------------------- ## | |
a848cd7e SC |
23026 | _ASBOX |
23027 | ) | | |
23028 | sed "s/^/$as_me: WARNING: /" >&2 | |
23029 | ;; | |
23030 | esac | |
23031 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
23032 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
23033 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23035 | else | |
23036 | ac_cv_header_windows_h=$ac_header_preproc | |
23037 | fi | |
23038 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
23039 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
23040 | ||
23041 | fi | |
23042 | if test $ac_cv_header_windows_h = yes; then | |
23043 | : | |
23044 | else | |
23045 | ||
23046 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
23047 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
23048 | { (exit 1); exit 1; }; } | |
23049 | ||
23050 | fi | |
23051 | ||
23052 | ||
23053 | ||
23054 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
23055 | ||
23056 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
23057 | LIBS="$LIBS -loleacc" | |
23058 | fi | |
23059 | ||
23060 | case "${host}" in | |
23061 | *-*-cygwin* ) | |
23062 | LIBS="$LIBS -lkernel32 -luser32" | |
23063 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
23064 | esac | |
23065 | ||
23066 | if test "$wxUSE_ODBC" = "sys" ; then | |
23067 | wxUSE_ODBC = "yes" | |
23068 | fi | |
23069 | if test "$wxUSE_ODBC" = "yes" ; then | |
23070 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
23071 | cat >>confdefs.h <<\_ACEOF | |
23072 | #define wxUSE_ODBC 1 | |
23073 | _ACEOF | |
23074 | ||
23075 | fi | |
23076 | ||
23077 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
23078 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
23079 | ||
23080 | WIN32INSTALL=win32install | |
23081 | fi | |
23082 | ||
23083 | if test "$wxUSE_GUI" = "yes"; then | |
23084 | USE_GUI=1 | |
23085 | ||
23086 | GUI_TK_LIBRARY= | |
23087 | ||
23088 | WXGTK12= | |
23089 | WXGTK127= | |
23090 | WXGTK20= | |
23091 | WXGPE= | |
23092 | ||
207bc66c RN |
23093 | if test "$wxUSE_COCOA" = 1 ; then |
23094 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
23095 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
23096 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
23097 | wxUSE_PRINTING_ARCHITECTURE=no | |
23098 | fi | |
23099 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
23100 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
23101 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
23102 | wxUSE_DRAG_AND_DROP=no | |
23103 | fi | |
23104 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
23105 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
23106 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
23107 | wxUSE_DRAGIMAGE=no | |
23108 | fi | |
23109 | fi | |
23110 | ||
a848cd7e SC |
23111 | if test "$wxUSE_MSW" = 1 ; then |
23112 | TOOLKIT=MSW | |
23113 | GUIDIST=MSW_DIST | |
23114 | ||
ceec2216 | 23115 | case "${host}" in |
a848cd7e SC |
23116 | *-*-mingw32* ) |
23117 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
23118 | esac | |
23119 | fi | |
23120 | ||
23121 | if test "$wxUSE_GTK" = 1; then | |
23122 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
23123 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
23124 | ||
23125 | gtk_version_cached=1 | |
23126 | if test "${wx_cv_lib_gtk+set}" = set; then | |
23127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23128 | else | |
23129 | ||
23130 | gtk_version_cached=0 | |
23131 | echo "$as_me:$LINENO: result: " >&5 | |
23132 | echo "${ECHO_T}" >&6 | |
23133 | ||
23134 | GTK_MODULES= | |
23135 | if test "$wxUSE_THREADS" = "yes"; then | |
23136 | GTK_MODULES=gthread | |
23137 | fi | |
23138 | ||
23139 | wx_cv_lib_gtk= | |
23140 | if test "x$wxUSE_GTK2" = "xyes"; then | |
23141 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23142 | if test "${enable_gtktest+set}" = set; then | |
23143 | enableval="$enable_gtktest" | |
23144 | ||
23145 | else | |
23146 | enable_gtktest=yes | |
23147 | fi; | |
23148 | ||
23149 | pkg_config_args=gtk+-2.0 | |
23150 | for module in . $GTK_MODULES | |
23151 | do | |
23152 | case "$module" in | |
23153 | gthread) | |
23154 | pkg_config_args="$pkg_config_args gthread-2.0" | |
23155 | ;; | |
23156 | esac | |
23157 | done | |
23158 | ||
23159 | no_gtk="" | |
23160 | ||
23161 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23162 | set dummy pkg-config; ac_word=$2 | |
23163 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23165 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23167 | else | |
23168 | case $PKG_CONFIG in | |
23169 | [\\/]* | ?:[\\/]*) | |
23170 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23171 | ;; | |
23172 | *) | |
23173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23174 | for as_dir in $PATH | |
23175 | do | |
23176 | IFS=$as_save_IFS | |
23177 | test -z "$as_dir" && as_dir=. | |
23178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23179 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23180 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23182 | break 2 | |
23183 | fi | |
23184 | done | |
23185 | done | |
23186 | ||
23187 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23188 | ;; | |
23189 | esac | |
23190 | fi | |
23191 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23192 | ||
23193 | if test -n "$PKG_CONFIG"; then | |
23194 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23195 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23196 | else | |
23197 | echo "$as_me:$LINENO: result: no" >&5 | |
23198 | echo "${ECHO_T}no" >&6 | |
23199 | fi | |
23200 | ||
23201 | ||
23202 | if test x$PKG_CONFIG != xno ; then | |
23203 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
23204 | : | |
23205 | else | |
c2218763 | 23206 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
23207 | no_gtk=yes |
23208 | PKG_CONFIG=no | |
23209 | fi | |
23210 | else | |
23211 | no_gtk=yes | |
23212 | fi | |
23213 | ||
23214 | min_gtk_version=2.0.0 | |
23215 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
23216 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
23217 | ||
23218 | if test x$PKG_CONFIG != xno ; then | |
23219 | ## don't try to run the test against uninstalled libtool libs | |
23220 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
23221 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
23222 | enable_gtktest=no | |
23223 | fi | |
23224 | ||
23225 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
23226 | : | |
23227 | else | |
23228 | no_gtk=yes | |
23229 | fi | |
23230 | fi | |
23231 | ||
23232 | if test x"$no_gtk" = x ; then | |
23233 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
23234 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
23235 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23236 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23237 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23238 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23239 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23240 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23241 | if test "x$enable_gtktest" = "xyes" ; then | |
23242 | ac_save_CFLAGS="$CFLAGS" | |
23243 | ac_save_LIBS="$LIBS" | |
23244 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23245 | LIBS="$GTK_LIBS $LIBS" | |
23246 | rm -f conf.gtktest | |
23247 | if test "$cross_compiling" = yes; then | |
23248 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23249 | else | |
23250 | cat >conftest.$ac_ext <<_ACEOF | |
23251 | /* confdefs.h. */ | |
23252 | _ACEOF | |
23253 | cat confdefs.h >>conftest.$ac_ext | |
23254 | cat >>conftest.$ac_ext <<_ACEOF | |
23255 | /* end confdefs.h. */ | |
23256 | ||
23257 | #include <gtk/gtk.h> | |
23258 | #include <stdio.h> | |
23259 | #include <stdlib.h> | |
23260 | ||
23261 | int | |
23262 | main () | |
23263 | { | |
23264 | int major, minor, micro; | |
23265 | char *tmp_version; | |
23266 | ||
23267 | system ("touch conf.gtktest"); | |
23268 | ||
23269 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23270 | tmp_version = g_strdup("$min_gtk_version"); | |
23271 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23272 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23273 | exit(1); | |
23274 | } | |
23275 | ||
23276 | if ((gtk_major_version != $gtk_config_major_version) || | |
23277 | (gtk_minor_version != $gtk_config_minor_version) || | |
23278 | (gtk_micro_version != $gtk_config_micro_version)) | |
23279 | { | |
23280 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23281 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23282 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23283 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
23284 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23285 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23286 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23287 | printf("*** required on your system.\n"); | |
23288 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
23289 | printf("*** to point to the correct configuration files\n"); | |
23290 | } | |
23291 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23292 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23293 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23294 | { | |
23295 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23296 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23297 | printf("*** library (version %d.%d.%d)\n", | |
23298 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23299 | } | |
23300 | else | |
23301 | { | |
23302 | if ((gtk_major_version > major) || | |
23303 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23304 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23305 | { | |
23306 | return 0; | |
23307 | } | |
23308 | else | |
23309 | { | |
23310 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23311 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23312 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23313 | major, minor, micro); | |
23314 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23315 | printf("***\n"); | |
23316 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23317 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
23318 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23319 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
23320 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
23321 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23322 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23323 | } | |
23324 | } | |
23325 | return 1; | |
23326 | } | |
23327 | ||
23328 | _ACEOF | |
23329 | rm -f conftest$ac_exeext | |
23330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23331 | (eval $ac_link) 2>&5 | |
23332 | ac_status=$? | |
23333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23336 | (eval $ac_try) 2>&5 | |
23337 | ac_status=$? | |
23338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23339 | (exit $ac_status); }; }; then | |
23340 | : | |
23341 | else | |
23342 | echo "$as_me: program exited with status $ac_status" >&5 | |
23343 | echo "$as_me: failed program was:" >&5 | |
23344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23345 | ||
23346 | ( exit $ac_status ) | |
23347 | no_gtk=yes | |
23348 | fi | |
ac1cb8d3 | 23349 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23350 | fi |
23351 | CFLAGS="$ac_save_CFLAGS" | |
23352 | LIBS="$ac_save_LIBS" | |
23353 | fi | |
23354 | fi | |
23355 | if test "x$no_gtk" = x ; then | |
23356 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
23357 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
23358 | wx_cv_lib_gtk=2.0 | |
23359 | else | |
23360 | echo "$as_me:$LINENO: result: no" >&5 | |
23361 | echo "${ECHO_T}no" >&6 | |
23362 | if test "$PKG_CONFIG" = "no" ; then | |
23363 | echo "*** A new enough version of pkg-config was not found." | |
23364 | echo "*** See http://pkgconfig.sourceforge.net" | |
23365 | else | |
23366 | if test -f conf.gtktest ; then | |
23367 | : | |
23368 | else | |
23369 | echo "*** Could not run GTK+ test program, checking why..." | |
23370 | ac_save_CFLAGS="$CFLAGS" | |
23371 | ac_save_LIBS="$LIBS" | |
23372 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23373 | LIBS="$LIBS $GTK_LIBS" | |
23374 | cat >conftest.$ac_ext <<_ACEOF | |
23375 | /* confdefs.h. */ | |
23376 | _ACEOF | |
23377 | cat confdefs.h >>conftest.$ac_ext | |
23378 | cat >>conftest.$ac_ext <<_ACEOF | |
23379 | /* end confdefs.h. */ | |
23380 | ||
23381 | #include <gtk/gtk.h> | |
23382 | #include <stdio.h> | |
23383 | ||
23384 | int | |
23385 | main () | |
23386 | { | |
23387 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23388 | ; | |
23389 | return 0; | |
23390 | } | |
23391 | _ACEOF | |
23392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23394 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23395 | ac_status=$? |
ac1cb8d3 VS |
23396 | grep -v '^ *+' conftest.er1 >conftest.err |
23397 | rm -f conftest.er1 | |
23398 | cat conftest.err >&5 | |
a848cd7e SC |
23399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23400 | (exit $ac_status); } && | |
89be85c2 VS |
23401 | { ac_try='test -z "$ac_c_werror_flag" |
23402 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23404 | (eval $ac_try) 2>&5 | |
23405 | ac_status=$? | |
23406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23407 | (exit $ac_status); }; } && | |
23408 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23410 | (eval $ac_try) 2>&5 | |
23411 | ac_status=$? | |
23412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23413 | (exit $ac_status); }; }; then | |
23414 | echo "*** The test program compiled, but did not run. This usually means" | |
23415 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
23416 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
23417 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23418 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23419 | echo "*** is required on your system" | |
23420 | echo "***" | |
23421 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23422 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23423 | else | |
23424 | echo "$as_me: failed program was:" >&5 | |
23425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23426 | ||
23427 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23428 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
23429 | fi | |
ac1cb8d3 VS |
23430 | rm -f conftest.err conftest.$ac_objext \ |
23431 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23432 | CFLAGS="$ac_save_CFLAGS" |
23433 | LIBS="$ac_save_LIBS" | |
23434 | fi | |
23435 | fi | |
23436 | GTK_CFLAGS="" | |
23437 | GTK_LIBS="" | |
23438 | : | |
23439 | fi | |
23440 | ||
23441 | ||
23442 | rm -f conf.gtktest | |
23443 | ||
23444 | else | |
23445 | ||
23446 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23447 | if test "${with_gtk_prefix+set}" = set; then | |
23448 | withval="$with_gtk_prefix" | |
23449 | gtk_config_prefix="$withval" | |
23450 | else | |
23451 | gtk_config_prefix="" | |
23452 | fi; | |
23453 | ||
23454 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23455 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23456 | withval="$with_gtk_exec_prefix" | |
23457 | gtk_config_exec_prefix="$withval" | |
23458 | else | |
23459 | gtk_config_exec_prefix="" | |
23460 | fi; | |
23461 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23462 | if test "${enable_gtktest+set}" = set; then | |
23463 | enableval="$enable_gtktest" | |
23464 | ||
23465 | else | |
23466 | enable_gtktest=yes | |
23467 | fi; | |
23468 | ||
23469 | for module in . $GTK_MODULES | |
23470 | do | |
23471 | case "$module" in | |
23472 | gthread) | |
23473 | gtk_config_args="$gtk_config_args gthread" | |
23474 | ;; | |
23475 | esac | |
23476 | done | |
23477 | ||
23478 | if test x$gtk_config_exec_prefix != x ; then | |
23479 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23480 | if test x${GTK_CONFIG+set} != xset ; then | |
23481 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23482 | fi | |
23483 | fi | |
23484 | if test x$gtk_config_prefix != x ; then | |
23485 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23486 | if test x${GTK_CONFIG+set} != xset ; then | |
23487 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23488 | fi | |
23489 | fi | |
23490 | ||
23491 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23492 | set dummy gtk-config; ac_word=$2 | |
23493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23495 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23497 | else | |
23498 | case $GTK_CONFIG in | |
23499 | [\\/]* | ?:[\\/]*) | |
23500 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23501 | ;; | |
23502 | *) | |
23503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23504 | for as_dir in $PATH | |
23505 | do | |
23506 | IFS=$as_save_IFS | |
23507 | test -z "$as_dir" && as_dir=. | |
23508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23509 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23510 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23512 | break 2 | |
23513 | fi | |
23514 | done | |
23515 | done | |
23516 | ||
23517 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23518 | ;; | |
23519 | esac | |
23520 | fi | |
23521 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23522 | ||
23523 | if test -n "$GTK_CONFIG"; then | |
23524 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23525 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23526 | else | |
23527 | echo "$as_me:$LINENO: result: no" >&5 | |
23528 | echo "${ECHO_T}no" >&6 | |
23529 | fi | |
23530 | ||
23531 | min_gtk_version=1.2.7 | |
23532 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23533 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23534 | no_gtk="" | |
23535 | if test "$GTK_CONFIG" = "no" ; then | |
23536 | no_gtk=yes | |
23537 | else | |
23538 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23539 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23540 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23541 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23542 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23543 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23544 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23545 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23546 | if test "x$enable_gtktest" = "xyes" ; then | |
23547 | ac_save_CFLAGS="$CFLAGS" | |
23548 | ac_save_LIBS="$LIBS" | |
23549 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23550 | LIBS="$GTK_LIBS $LIBS" | |
23551 | rm -f conf.gtktest | |
23552 | if test "$cross_compiling" = yes; then | |
23553 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23554 | else | |
23555 | cat >conftest.$ac_ext <<_ACEOF | |
23556 | /* confdefs.h. */ | |
23557 | _ACEOF | |
23558 | cat confdefs.h >>conftest.$ac_ext | |
23559 | cat >>conftest.$ac_ext <<_ACEOF | |
23560 | /* end confdefs.h. */ | |
23561 | ||
23562 | #include <gtk/gtk.h> | |
23563 | #include <stdio.h> | |
23564 | #include <stdlib.h> | |
23565 | ||
23566 | int | |
23567 | main () | |
23568 | { | |
23569 | int major, minor, micro; | |
23570 | char *tmp_version; | |
23571 | ||
23572 | system ("touch conf.gtktest"); | |
23573 | ||
23574 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23575 | tmp_version = g_strdup("$min_gtk_version"); | |
23576 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23577 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23578 | exit(1); | |
23579 | } | |
23580 | ||
23581 | if ((gtk_major_version != $gtk_config_major_version) || | |
23582 | (gtk_minor_version != $gtk_config_minor_version) || | |
23583 | (gtk_micro_version != $gtk_config_micro_version)) | |
23584 | { | |
23585 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23586 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23587 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23588 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23589 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23590 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23591 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23592 | printf("*** required on your system.\n"); | |
23593 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23594 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23595 | printf("*** before re-running configure\n"); | |
23596 | } | |
23597 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23598 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23599 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23600 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23601 | { | |
23602 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23603 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23604 | printf("*** library (version %d.%d.%d)\n", | |
23605 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23606 | } | |
23607 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23608 | else | |
23609 | { | |
23610 | if ((gtk_major_version > major) || | |
23611 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23612 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23613 | { | |
23614 | return 0; | |
23615 | } | |
23616 | else | |
23617 | { | |
23618 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23619 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23620 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23621 | major, minor, micro); | |
23622 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23623 | printf("***\n"); | |
23624 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23625 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23626 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23627 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23628 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23629 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23630 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23631 | } | |
23632 | } | |
23633 | return 1; | |
23634 | } | |
23635 | ||
23636 | _ACEOF | |
23637 | rm -f conftest$ac_exeext | |
23638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23639 | (eval $ac_link) 2>&5 | |
23640 | ac_status=$? | |
23641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23642 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23644 | (eval $ac_try) 2>&5 | |
23645 | ac_status=$? | |
23646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23647 | (exit $ac_status); }; }; then | |
23648 | : | |
23649 | else | |
23650 | echo "$as_me: program exited with status $ac_status" >&5 | |
23651 | echo "$as_me: failed program was:" >&5 | |
23652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23653 | ||
23654 | ( exit $ac_status ) | |
23655 | no_gtk=yes | |
23656 | fi | |
ac1cb8d3 | 23657 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23658 | fi |
23659 | CFLAGS="$ac_save_CFLAGS" | |
23660 | LIBS="$ac_save_LIBS" | |
23661 | fi | |
23662 | fi | |
23663 | if test "x$no_gtk" = x ; then | |
23664 | echo "$as_me:$LINENO: result: yes" >&5 | |
23665 | echo "${ECHO_T}yes" >&6 | |
23666 | wx_cv_lib_gtk=1.2.7 | |
23667 | else | |
23668 | echo "$as_me:$LINENO: result: no" >&5 | |
23669 | echo "${ECHO_T}no" >&6 | |
23670 | if test "$GTK_CONFIG" = "no" ; then | |
23671 | echo "*** The gtk-config script installed by GTK could not be found" | |
23672 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23673 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23674 | echo "*** full path to gtk-config." | |
23675 | else | |
23676 | if test -f conf.gtktest ; then | |
23677 | : | |
23678 | else | |
23679 | echo "*** Could not run GTK test program, checking why..." | |
23680 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23681 | LIBS="$LIBS $GTK_LIBS" | |
23682 | cat >conftest.$ac_ext <<_ACEOF | |
23683 | /* confdefs.h. */ | |
23684 | _ACEOF | |
23685 | cat confdefs.h >>conftest.$ac_ext | |
23686 | cat >>conftest.$ac_ext <<_ACEOF | |
23687 | /* end confdefs.h. */ | |
23688 | ||
23689 | #include <gtk/gtk.h> | |
23690 | #include <stdio.h> | |
23691 | ||
23692 | int | |
23693 | main () | |
23694 | { | |
23695 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23696 | ; | |
23697 | return 0; | |
23698 | } | |
23699 | _ACEOF | |
23700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23702 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23703 | ac_status=$? |
ac1cb8d3 VS |
23704 | grep -v '^ *+' conftest.er1 >conftest.err |
23705 | rm -f conftest.er1 | |
23706 | cat conftest.err >&5 | |
a848cd7e SC |
23707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23708 | (exit $ac_status); } && | |
89be85c2 VS |
23709 | { ac_try='test -z "$ac_c_werror_flag" |
23710 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23712 | (eval $ac_try) 2>&5 | |
23713 | ac_status=$? | |
23714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23715 | (exit $ac_status); }; } && | |
23716 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23718 | (eval $ac_try) 2>&5 | |
23719 | ac_status=$? | |
23720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23721 | (exit $ac_status); }; }; then | |
23722 | echo "*** The test program compiled, but did not run. This usually means" | |
23723 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23724 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23725 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23726 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23727 | echo "*** is required on your system" | |
23728 | echo "***" | |
23729 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23730 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23731 | echo "***" | |
23732 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23733 | echo "*** came with the system with the command" | |
23734 | echo "***" | |
23735 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23736 | else | |
23737 | echo "$as_me: failed program was:" >&5 | |
23738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23739 | ||
23740 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23741 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23742 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23743 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23744 | fi | |
ac1cb8d3 VS |
23745 | rm -f conftest.err conftest.$ac_objext \ |
23746 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23747 | CFLAGS="$ac_save_CFLAGS" |
23748 | LIBS="$ac_save_LIBS" | |
23749 | fi | |
23750 | fi | |
23751 | GTK_CFLAGS="" | |
23752 | GTK_LIBS="" | |
23753 | : | |
23754 | fi | |
23755 | ||
23756 | ||
23757 | rm -f conf.gtktest | |
23758 | ||
23759 | ||
23760 | if test -z "$wx_cv_lib_gtk"; then | |
23761 | ||
23762 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23763 | if test "${with_gtk_prefix+set}" = set; then | |
23764 | withval="$with_gtk_prefix" | |
23765 | gtk_config_prefix="$withval" | |
23766 | else | |
23767 | gtk_config_prefix="" | |
23768 | fi; | |
23769 | ||
23770 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23771 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23772 | withval="$with_gtk_exec_prefix" | |
23773 | gtk_config_exec_prefix="$withval" | |
23774 | else | |
23775 | gtk_config_exec_prefix="" | |
23776 | fi; | |
23777 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23778 | if test "${enable_gtktest+set}" = set; then | |
23779 | enableval="$enable_gtktest" | |
23780 | ||
23781 | else | |
23782 | enable_gtktest=yes | |
23783 | fi; | |
23784 | ||
23785 | for module in . $GTK_MODULES | |
23786 | do | |
23787 | case "$module" in | |
23788 | gthread) | |
23789 | gtk_config_args="$gtk_config_args gthread" | |
23790 | ;; | |
23791 | esac | |
23792 | done | |
23793 | ||
23794 | if test x$gtk_config_exec_prefix != x ; then | |
23795 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23796 | if test x${GTK_CONFIG+set} != xset ; then | |
23797 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23798 | fi | |
23799 | fi | |
23800 | if test x$gtk_config_prefix != x ; then | |
23801 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23802 | if test x${GTK_CONFIG+set} != xset ; then | |
23803 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23804 | fi | |
23805 | fi | |
23806 | ||
23807 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23808 | set dummy gtk-config; ac_word=$2 | |
23809 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23811 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23813 | else | |
23814 | case $GTK_CONFIG in | |
23815 | [\\/]* | ?:[\\/]*) | |
23816 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23817 | ;; | |
23818 | *) | |
23819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23820 | for as_dir in $PATH | |
23821 | do | |
23822 | IFS=$as_save_IFS | |
23823 | test -z "$as_dir" && as_dir=. | |
23824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23826 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23828 | break 2 | |
23829 | fi | |
23830 | done | |
23831 | done | |
23832 | ||
23833 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23834 | ;; | |
23835 | esac | |
23836 | fi | |
23837 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23838 | ||
23839 | if test -n "$GTK_CONFIG"; then | |
23840 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23841 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23842 | else | |
23843 | echo "$as_me:$LINENO: result: no" >&5 | |
23844 | echo "${ECHO_T}no" >&6 | |
23845 | fi | |
23846 | ||
23847 | min_gtk_version=1.2.3 | |
23848 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23849 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23850 | no_gtk="" | |
23851 | if test "$GTK_CONFIG" = "no" ; then | |
23852 | no_gtk=yes | |
23853 | else | |
23854 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23855 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23856 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23857 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23858 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23859 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23860 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23861 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23862 | if test "x$enable_gtktest" = "xyes" ; then | |
23863 | ac_save_CFLAGS="$CFLAGS" | |
23864 | ac_save_LIBS="$LIBS" | |
23865 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23866 | LIBS="$GTK_LIBS $LIBS" | |
23867 | rm -f conf.gtktest | |
23868 | if test "$cross_compiling" = yes; then | |
23869 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23870 | else | |
23871 | cat >conftest.$ac_ext <<_ACEOF | |
23872 | /* confdefs.h. */ | |
23873 | _ACEOF | |
23874 | cat confdefs.h >>conftest.$ac_ext | |
23875 | cat >>conftest.$ac_ext <<_ACEOF | |
23876 | /* end confdefs.h. */ | |
23877 | ||
23878 | #include <gtk/gtk.h> | |
23879 | #include <stdio.h> | |
23880 | #include <stdlib.h> | |
23881 | ||
23882 | int | |
23883 | main () | |
23884 | { | |
23885 | int major, minor, micro; | |
23886 | char *tmp_version; | |
23887 | ||
23888 | system ("touch conf.gtktest"); | |
23889 | ||
23890 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23891 | tmp_version = g_strdup("$min_gtk_version"); | |
23892 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23893 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23894 | exit(1); | |
23895 | } | |
23896 | ||
23897 | if ((gtk_major_version != $gtk_config_major_version) || | |
23898 | (gtk_minor_version != $gtk_config_minor_version) || | |
23899 | (gtk_micro_version != $gtk_config_micro_version)) | |
23900 | { | |
23901 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23902 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23903 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23904 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23905 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23906 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23907 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23908 | printf("*** required on your system.\n"); | |
23909 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23910 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23911 | printf("*** before re-running configure\n"); | |
23912 | } | |
23913 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23914 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23915 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23916 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23917 | { | |
23918 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23919 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23920 | printf("*** library (version %d.%d.%d)\n", | |
23921 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23922 | } | |
23923 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23924 | else | |
23925 | { | |
23926 | if ((gtk_major_version > major) || | |
23927 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23928 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23929 | { | |
23930 | return 0; | |
23931 | } | |
23932 | else | |
23933 | { | |
23934 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23935 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23936 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23937 | major, minor, micro); | |
23938 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23939 | printf("***\n"); | |
23940 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23941 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23942 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23943 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23944 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23945 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23946 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23947 | } | |
23948 | } | |
23949 | return 1; | |
23950 | } | |
23951 | ||
23952 | _ACEOF | |
23953 | rm -f conftest$ac_exeext | |
23954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23955 | (eval $ac_link) 2>&5 | |
23956 | ac_status=$? | |
23957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23958 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23960 | (eval $ac_try) 2>&5 | |
23961 | ac_status=$? | |
23962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23963 | (exit $ac_status); }; }; then | |
23964 | : | |
23965 | else | |
23966 | echo "$as_me: program exited with status $ac_status" >&5 | |
23967 | echo "$as_me: failed program was:" >&5 | |
23968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23969 | ||
23970 | ( exit $ac_status ) | |
23971 | no_gtk=yes | |
23972 | fi | |
ac1cb8d3 | 23973 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23974 | fi |
23975 | CFLAGS="$ac_save_CFLAGS" | |
23976 | LIBS="$ac_save_LIBS" | |
23977 | fi | |
23978 | fi | |
23979 | if test "x$no_gtk" = x ; then | |
23980 | echo "$as_me:$LINENO: result: yes" >&5 | |
23981 | echo "${ECHO_T}yes" >&6 | |
23982 | wx_cv_lib_gtk=1.2.3 | |
23983 | else | |
23984 | echo "$as_me:$LINENO: result: no" >&5 | |
23985 | echo "${ECHO_T}no" >&6 | |
23986 | if test "$GTK_CONFIG" = "no" ; then | |
23987 | echo "*** The gtk-config script installed by GTK could not be found" | |
23988 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23989 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23990 | echo "*** full path to gtk-config." | |
23991 | else | |
23992 | if test -f conf.gtktest ; then | |
23993 | : | |
23994 | else | |
23995 | echo "*** Could not run GTK test program, checking why..." | |
23996 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23997 | LIBS="$LIBS $GTK_LIBS" | |
23998 | cat >conftest.$ac_ext <<_ACEOF | |
23999 | /* confdefs.h. */ | |
24000 | _ACEOF | |
24001 | cat confdefs.h >>conftest.$ac_ext | |
24002 | cat >>conftest.$ac_ext <<_ACEOF | |
24003 | /* end confdefs.h. */ | |
24004 | ||
24005 | #include <gtk/gtk.h> | |
24006 | #include <stdio.h> | |
24007 | ||
24008 | int | |
24009 | main () | |
24010 | { | |
24011 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24012 | ; | |
24013 | return 0; | |
24014 | } | |
24015 | _ACEOF | |
24016 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24018 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24019 | ac_status=$? |
ac1cb8d3 VS |
24020 | grep -v '^ *+' conftest.er1 >conftest.err |
24021 | rm -f conftest.er1 | |
24022 | cat conftest.err >&5 | |
a848cd7e SC |
24023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24024 | (exit $ac_status); } && | |
89be85c2 VS |
24025 | { ac_try='test -z "$ac_c_werror_flag" |
24026 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24028 | (eval $ac_try) 2>&5 | |
24029 | ac_status=$? | |
24030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24031 | (exit $ac_status); }; } && | |
24032 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24034 | (eval $ac_try) 2>&5 | |
24035 | ac_status=$? | |
24036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24037 | (exit $ac_status); }; }; then | |
24038 | echo "*** The test program compiled, but did not run. This usually means" | |
24039 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24040 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24041 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24042 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24043 | echo "*** is required on your system" | |
24044 | echo "***" | |
24045 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24046 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24047 | echo "***" | |
24048 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24049 | echo "*** came with the system with the command" | |
24050 | echo "***" | |
24051 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24052 | else | |
24053 | echo "$as_me: failed program was:" >&5 | |
24054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24055 | ||
24056 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24057 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24058 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24059 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24060 | fi | |
ac1cb8d3 VS |
24061 | rm -f conftest.err conftest.$ac_objext \ |
24062 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24063 | CFLAGS="$ac_save_CFLAGS" |
24064 | LIBS="$ac_save_LIBS" | |
24065 | fi | |
24066 | fi | |
24067 | GTK_CFLAGS="" | |
24068 | GTK_LIBS="" | |
24069 | : | |
24070 | fi | |
24071 | ||
24072 | ||
24073 | rm -f conf.gtktest | |
24074 | ||
24075 | fi | |
24076 | fi | |
24077 | ||
24078 | if test -z "$wx_cv_lib_gtk"; then | |
24079 | wx_cv_lib_gtk=none | |
24080 | else | |
24081 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
24082 | wx_cv_libs_gtk=$GTK_LIBS | |
24083 | fi | |
24084 | ||
24085 | ||
24086 | fi | |
24087 | ||
24088 | ||
24089 | if test "$gtk_version_cached" = 1; then | |
24090 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
24091 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
24092 | fi | |
24093 | ||
24094 | case "$wx_cv_lib_gtk" in | |
24095 | 2.0) WXGTK20=1 | |
24096 | TOOLKIT_VERSION=2 | |
24097 | ;; | |
24098 | 1.2.7) WXGTK127=1 | |
24099 | WXGTK12=1 | |
24100 | ;; | |
24101 | 1.2.3) WXGTK12=1 | |
24102 | ;; | |
24103 | *) { { echo "$as_me:$LINENO: error: | |
24104 | Please check that gtk-config is in path, the directory | |
24105 | where GTK+ libraries are installed (returned by | |
24106 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
24107 | equivalent variable and GTK+ is version 1.2.3 or above. | |
24108 | " >&5 | |
24109 | echo "$as_me: error: | |
24110 | Please check that gtk-config is in path, the directory | |
24111 | where GTK+ libraries are installed (returned by | |
24112 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
24113 | equivalent variable and GTK+ is version 1.2.3 or above. | |
24114 | " >&2;} | |
24115 | { (exit 1); exit 1; }; } | |
24116 | ;; | |
24117 | esac | |
24118 | ||
24119 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
24120 | save_CFLAGS="$CFLAGS" |
24121 | save_LIBS="$LIBS" | |
24122 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24123 | LIBS="$LIBS $GTK_LIBS" | |
24124 | ||
9755e73b | 24125 | |
304205f1 VS |
24126 | for ac_func in pango_font_family_is_monospace |
24127 | do | |
24128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24129 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24131 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24133 | else | |
24134 | cat >conftest.$ac_ext <<_ACEOF | |
24135 | /* confdefs.h. */ | |
24136 | _ACEOF | |
24137 | cat confdefs.h >>conftest.$ac_ext | |
24138 | cat >>conftest.$ac_ext <<_ACEOF | |
24139 | /* end confdefs.h. */ | |
24140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24142 | #define $ac_func innocuous_$ac_func | |
24143 | ||
24144 | /* System header to define __stub macros and hopefully few prototypes, | |
24145 | which can conflict with char $ac_func (); below. | |
24146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24147 | <limits.h> exists even on freestanding compilers. */ | |
24148 | ||
24149 | #ifdef __STDC__ | |
24150 | # include <limits.h> | |
24151 | #else | |
24152 | # include <assert.h> | |
24153 | #endif | |
24154 | ||
24155 | #undef $ac_func | |
24156 | ||
24157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24158 | #ifdef __cplusplus | |
24159 | extern "C" | |
24160 | { | |
24161 | #endif | |
24162 | /* We use char because int might match the return type of a gcc2 | |
24163 | builtin and then its argument prototype would still apply. */ | |
24164 | char $ac_func (); | |
24165 | /* The GNU C library defines this for functions which it implements | |
24166 | to always fail with ENOSYS. Some functions are actually named | |
24167 | something starting with __ and the normal name is an alias. */ | |
24168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24169 | choke me | |
24170 | #else | |
24171 | char (*f) () = $ac_func; | |
24172 | #endif | |
24173 | #ifdef __cplusplus | |
24174 | } | |
24175 | #endif | |
24176 | ||
24177 | int | |
24178 | main () | |
24179 | { | |
24180 | return f != $ac_func; | |
24181 | ; | |
24182 | return 0; | |
24183 | } | |
24184 | _ACEOF | |
24185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24187 | (eval $ac_link) 2>conftest.er1 | |
24188 | ac_status=$? | |
24189 | grep -v '^ *+' conftest.er1 >conftest.err | |
24190 | rm -f conftest.er1 | |
24191 | cat conftest.err >&5 | |
24192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24193 | (exit $ac_status); } && | |
89be85c2 VS |
24194 | { ac_try='test -z "$ac_c_werror_flag" |
24195 | || test ! -s conftest.err' | |
304205f1 VS |
24196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24197 | (eval $ac_try) 2>&5 | |
24198 | ac_status=$? | |
24199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24200 | (exit $ac_status); }; } && | |
24201 | { ac_try='test -s conftest$ac_exeext' | |
24202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24203 | (eval $ac_try) 2>&5 | |
24204 | ac_status=$? | |
24205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24206 | (exit $ac_status); }; }; then | |
24207 | eval "$as_ac_var=yes" | |
24208 | else | |
24209 | echo "$as_me: failed program was:" >&5 | |
24210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24211 | ||
24212 | eval "$as_ac_var=no" | |
24213 | fi | |
24214 | rm -f conftest.err conftest.$ac_objext \ | |
24215 | conftest$ac_exeext conftest.$ac_ext | |
24216 | fi | |
24217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24218 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24219 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24220 | cat >>confdefs.h <<_ACEOF | |
24221 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24222 | _ACEOF | |
24223 | ||
24224 | fi | |
24225 | done | |
24226 | ||
9755e73b VS |
24227 | |
24228 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
24229 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
24230 | cat >conftest.$ac_ext <<_ACEOF | |
24231 | /* confdefs.h. */ | |
24232 | _ACEOF | |
24233 | cat confdefs.h >>conftest.$ac_ext | |
24234 | cat >>conftest.$ac_ext <<_ACEOF | |
24235 | /* end confdefs.h. */ | |
24236 | ||
24237 | #include <gtk/gtk.h> | |
24238 | ||
24239 | int | |
24240 | main () | |
24241 | { | |
24242 | ||
24243 | #if !GTK_CHECK_VERSION(2,4,0) | |
24244 | #error "Not GTK+ 2.4" | |
24245 | #endif | |
24246 | ||
24247 | ; | |
24248 | return 0; | |
24249 | } | |
24250 | _ACEOF | |
24251 | rm -f conftest.$ac_objext | |
24252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24253 | (eval $ac_compile) 2>conftest.er1 | |
24254 | ac_status=$? | |
24255 | grep -v '^ *+' conftest.er1 >conftest.err | |
24256 | rm -f conftest.er1 | |
24257 | cat conftest.err >&5 | |
24258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24259 | (exit $ac_status); } && | |
89be85c2 VS |
24260 | { ac_try='test -z "$ac_c_werror_flag" |
24261 | || test ! -s conftest.err' | |
9755e73b VS |
24262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24263 | (eval $ac_try) 2>&5 | |
24264 | ac_status=$? | |
24265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24266 | (exit $ac_status); }; } && | |
24267 | { ac_try='test -s conftest.$ac_objext' | |
24268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24269 | (eval $ac_try) 2>&5 | |
24270 | ac_status=$? | |
24271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24272 | (exit $ac_status); }; }; then | |
24273 | ||
24274 | cat >>confdefs.h <<\_ACEOF | |
24275 | #define __WXGTK24__ 1 | |
24276 | _ACEOF | |
24277 | ||
24278 | echo "$as_me:$LINENO: result: yes" >&5 | |
24279 | echo "${ECHO_T}yes" >&6 | |
24280 | ||
24281 | else | |
24282 | echo "$as_me: failed program was:" >&5 | |
24283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24284 | ||
24285 | ||
24286 | echo "$as_me:$LINENO: result: no" >&5 | |
24287 | echo "${ECHO_T}no" >&6 | |
24288 | ||
24289 | fi | |
24290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24291 | ||
304205f1 VS |
24292 | CFLAGS="$save_CFLAGS" |
24293 | LIBS="$save_LIBS" | |
a848cd7e SC |
24294 | else |
24295 | if test "$wxUSE_UNICODE" = "yes"; then | |
24296 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
24297 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
24298 | wxUSE_UNICODE=no | |
24299 | fi | |
24300 | fi | |
24301 | ||
24302 | if test "$USE_DARWIN" != 1; then | |
24303 | ||
24304 | for ac_func in poll | |
24305 | do | |
24306 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24307 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24308 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24309 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24311 | else | |
24312 | cat >conftest.$ac_ext <<_ACEOF | |
24313 | /* confdefs.h. */ | |
24314 | _ACEOF | |
24315 | cat confdefs.h >>conftest.$ac_ext | |
24316 | cat >>conftest.$ac_ext <<_ACEOF | |
24317 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24318 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24319 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24320 | #define $ac_func innocuous_$ac_func | |
24321 | ||
a848cd7e SC |
24322 | /* System header to define __stub macros and hopefully few prototypes, |
24323 | which can conflict with char $ac_func (); below. | |
24324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24325 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24326 | |
a848cd7e SC |
24327 | #ifdef __STDC__ |
24328 | # include <limits.h> | |
24329 | #else | |
24330 | # include <assert.h> | |
24331 | #endif | |
ac1cb8d3 VS |
24332 | |
24333 | #undef $ac_func | |
24334 | ||
a848cd7e SC |
24335 | /* Override any gcc2 internal prototype to avoid an error. */ |
24336 | #ifdef __cplusplus | |
24337 | extern "C" | |
24338 | { | |
24339 | #endif | |
24340 | /* We use char because int might match the return type of a gcc2 | |
24341 | builtin and then its argument prototype would still apply. */ | |
24342 | char $ac_func (); | |
24343 | /* The GNU C library defines this for functions which it implements | |
24344 | to always fail with ENOSYS. Some functions are actually named | |
24345 | something starting with __ and the normal name is an alias. */ | |
24346 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24347 | choke me | |
24348 | #else | |
24349 | char (*f) () = $ac_func; | |
24350 | #endif | |
24351 | #ifdef __cplusplus | |
24352 | } | |
24353 | #endif | |
24354 | ||
24355 | int | |
24356 | main () | |
24357 | { | |
24358 | return f != $ac_func; | |
24359 | ; | |
24360 | return 0; | |
24361 | } | |
24362 | _ACEOF | |
24363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24365 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24366 | ac_status=$? |
ac1cb8d3 VS |
24367 | grep -v '^ *+' conftest.er1 >conftest.err |
24368 | rm -f conftest.er1 | |
24369 | cat conftest.err >&5 | |
a848cd7e SC |
24370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24371 | (exit $ac_status); } && | |
89be85c2 VS |
24372 | { ac_try='test -z "$ac_c_werror_flag" |
24373 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24375 | (eval $ac_try) 2>&5 | |
24376 | ac_status=$? | |
24377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24378 | (exit $ac_status); }; } && | |
24379 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24381 | (eval $ac_try) 2>&5 | |
24382 | ac_status=$? | |
24383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24384 | (exit $ac_status); }; }; then | |
24385 | eval "$as_ac_var=yes" | |
24386 | else | |
24387 | echo "$as_me: failed program was:" >&5 | |
24388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24389 | ||
24390 | eval "$as_ac_var=no" | |
24391 | fi | |
ac1cb8d3 VS |
24392 | rm -f conftest.err conftest.$ac_objext \ |
24393 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24394 | fi |
24395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24396 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24397 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24398 | cat >>confdefs.h <<_ACEOF | |
24399 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24400 | _ACEOF | |
24401 | ||
24402 | fi | |
24403 | done | |
24404 | ||
24405 | fi | |
24406 | ||
24407 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
24408 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
24409 | ||
24410 | AFMINSTALL=afminstall | |
24411 | TOOLKIT=GTK | |
24412 | GUIDIST=GTK_DIST | |
24413 | ||
24414 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
24415 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
24416 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
24417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24418 | else | |
24419 | ac_check_lib_save_LIBS=$LIBS | |
24420 | LIBS="-lgdk $LIBS" | |
24421 | cat >conftest.$ac_ext <<_ACEOF | |
24422 | /* confdefs.h. */ | |
24423 | _ACEOF | |
24424 | cat confdefs.h >>conftest.$ac_ext | |
24425 | cat >>conftest.$ac_ext <<_ACEOF | |
24426 | /* end confdefs.h. */ | |
24427 | ||
24428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24429 | #ifdef __cplusplus | |
24430 | extern "C" | |
24431 | #endif | |
24432 | /* We use char because int might match the return type of a gcc2 | |
24433 | builtin and then its argument prototype would still apply. */ | |
24434 | char gdk_im_open (); | |
24435 | int | |
24436 | main () | |
24437 | { | |
24438 | gdk_im_open (); | |
24439 | ; | |
24440 | return 0; | |
24441 | } | |
24442 | _ACEOF | |
24443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24445 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24446 | ac_status=$? |
ac1cb8d3 VS |
24447 | grep -v '^ *+' conftest.er1 >conftest.err |
24448 | rm -f conftest.er1 | |
24449 | cat conftest.err >&5 | |
a848cd7e SC |
24450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24451 | (exit $ac_status); } && | |
89be85c2 VS |
24452 | { ac_try='test -z "$ac_c_werror_flag" |
24453 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24455 | (eval $ac_try) 2>&5 | |
24456 | ac_status=$? | |
24457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24458 | (exit $ac_status); }; } && | |
24459 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24461 | (eval $ac_try) 2>&5 | |
24462 | ac_status=$? | |
24463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24464 | (exit $ac_status); }; }; then | |
24465 | ac_cv_lib_gdk_gdk_im_open=yes | |
24466 | else | |
24467 | echo "$as_me: failed program was:" >&5 | |
24468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24469 | ||
24470 | ac_cv_lib_gdk_gdk_im_open=no | |
24471 | fi | |
ac1cb8d3 VS |
24472 | rm -f conftest.err conftest.$ac_objext \ |
24473 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24474 | LIBS=$ac_check_lib_save_LIBS |
24475 | fi | |
24476 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
24477 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
24478 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
24479 | cat >>confdefs.h <<\_ACEOF | |
24480 | #define HAVE_XIM 1 | |
24481 | _ACEOF | |
24482 | ||
24483 | fi | |
24484 | ||
24485 | ||
24486 | ||
24487 | if test "$wxUSE_GPE" = "yes"; then | |
24488 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
24489 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
24490 | ||
24491 | ac_find_libraries= | |
24492 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24493 | do | |
24494 | for ac_extension in a so sl dylib; do | |
24495 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
24496 | ac_find_libraries=$ac_dir | |
24497 | break 2 | |
24498 | fi | |
24499 | done | |
24500 | done | |
24501 | ||
24502 | if test "$ac_find_libraries" != "" ; then | |
24503 | ||
24504 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
24505 | result=$? | |
24506 | if test $result = 0; then | |
24507 | ac_path_to_link="" | |
24508 | else | |
24509 | ac_path_to_link=" -L$ac_find_libraries" | |
24510 | fi | |
24511 | ||
24512 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
24513 | WXGPE=1 | |
24514 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
24515 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24516 | else | |
24517 | echo "$as_me:$LINENO: result: not found" >&5 | |
24518 | echo "${ECHO_T}not found" >&6 | |
24519 | fi | |
24520 | ||
24521 | fi | |
24522 | fi | |
24523 | ||
24524 | if test "$wxUSE_MGL" = 1; then | |
24525 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
24526 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
24527 | if test "x$MGL_ROOT" = x ; then | |
24528 | echo "$as_me:$LINENO: result: not found" >&5 | |
24529 | echo "${ECHO_T}not found" >&6 | |
24530 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
24531 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
24532 | { (exit 1); exit 1; }; } | |
24533 | else | |
24534 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
24535 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
24536 | fi | |
24537 | ||
24538 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
24539 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
24540 | case "${host}" in | |
24541 | *-*-linux* ) | |
24542 | if test "x$wxUSE_SHARED" = xyes ; then | |
24543 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
24544 | else | |
24545 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
24546 | fi | |
24547 | ;; | |
24548 | *-pc-msdosdjgpp ) | |
24549 | mgl_os_candidates="dos32/dj2" | |
24550 | ;; | |
24551 | *) | |
24552 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
24553 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
24554 | { (exit 1); exit 1; }; } | |
24555 | esac | |
24556 | ||
24557 | mgl_lib_type="" | |
24558 | mgl_os="" | |
24559 | ||
24560 | for mgl_os_i in $mgl_os_candidates ; do | |
24561 | if test "x$mgl_os" = x ; then | |
24562 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
24563 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
24564 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
24565 | mgl_lib_type=debug | |
24566 | mgl_os=$mgl_os_i | |
24567 | fi | |
24568 | fi | |
24569 | if test "x$mgl_lib_type" = x ; then | |
24570 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
24571 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
24572 | mgl_lib_type=release | |
24573 | mgl_os=$mgl_os_i | |
24574 | fi | |
24575 | fi | |
24576 | fi | |
24577 | done | |
24578 | ||
24579 | if test "x$mgl_os" = x ; then | |
24580 | echo "$as_me:$LINENO: result: not found" >&5 | |
24581 | echo "${ECHO_T}not found" >&6 | |
24582 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
24583 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
24584 | { (exit 1); exit 1; }; } | |
24585 | fi | |
24586 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
24587 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
24588 | ||
24589 | wxUSE_UNIVERSAL="yes" | |
24590 | ||
24591 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
24592 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
24593 | ||
24594 | AFMINSTALL=afminstall | |
24595 | TOOLKIT=MGL | |
24596 | GUIDIST=MGL_DIST | |
24597 | fi | |
24598 | ||
24599 | if test "$wxUSE_MICROWIN" = 1; then | |
24600 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
24601 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
24602 | if test "x$MICROWINDOWS" = x ; then | |
24603 | echo "$as_me:$LINENO: result: not found" >&5 | |
24604 | echo "${ECHO_T}not found" >&6 | |
24605 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
24606 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
24607 | { (exit 1); exit 1; }; } | |
24608 | else | |
24609 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
24610 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
24611 | fi | |
24612 | ||
24613 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
24614 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
24615 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
24616 | else | |
24617 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
24618 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
24619 | { (exit 1); exit 1; }; } | |
24620 | fi | |
24621 | ||
24622 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
24623 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
24624 | ||
24625 | wxUSE_UNIVERSAL="yes" | |
24626 | ||
24627 | AFMINSTALL=afminstall | |
24628 | TOOLKIT=MICROWIN | |
24629 | GUIDIST=MICROWIN_DIST | |
24630 | ||
24631 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
24632 | fi | |
24633 | ||
74b84332 | 24634 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
89be85c2 | 24635 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
24636 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
24637 | ||
24638 | ||
24639 | # Check whether --with-x or --without-x was given. | |
24640 | if test "${with_x+set}" = set; then | |
24641 | withval="$with_x" | |
24642 | ||
24643 | fi; | |
24644 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
24645 | if test "x$with_x" = xno; then | |
24646 | # The user explicitly disabled X. | |
24647 | have_x=disabled | |
24648 | else | |
24649 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
24650 | # Both variables are already set. | |
24651 | have_x=yes | |
24652 | else | |
24653 | if test "${ac_cv_have_x+set}" = set; then | |
24654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24655 | else | |
24656 | # One or both of the vars are not set, and there is no cached value. | |
24657 | ac_x_includes=no ac_x_libraries=no | |
24658 | rm -fr conftest.dir | |
24659 | if mkdir conftest.dir; then | |
24660 | cd conftest.dir | |
24661 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
24662 | cat >Imakefile <<'_ACEOF' | |
24663 | acfindx: | |
24664 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
24665 | _ACEOF | |
24666 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
24667 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
24668 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24669 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24670 | for ac_extension in a so sl; do | |
24671 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
24672 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24673 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
24674 | fi |
24675 | done | |
24676 | # Screen out bogus values from the imake configuration. They are | |
24677 | # bogus both because they are the default anyway, and because | |
24678 | # using them would break gcc on systems where it needs fixed includes. | |
24679 | case $ac_im_incroot in | |
24680 | /usr/include) ;; | |
24681 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
24682 | esac | |
24683 | case $ac_im_usrlibdir in | |
24684 | /usr/lib | /lib) ;; | |
24685 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
24686 | esac | |
24687 | fi | |
24688 | cd .. | |
24689 | rm -fr conftest.dir | |
24690 | fi | |
24691 | ||
24692 | # Standard set of common directories for X headers. | |
24693 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24694 | ac_x_header_dirs=' | |
24695 | /usr/X11/include | |
24696 | /usr/X11R6/include | |
24697 | /usr/X11R5/include | |
24698 | /usr/X11R4/include | |
24699 | ||
24700 | /usr/include/X11 | |
24701 | /usr/include/X11R6 | |
24702 | /usr/include/X11R5 | |
24703 | /usr/include/X11R4 | |
24704 | ||
24705 | /usr/local/X11/include | |
24706 | /usr/local/X11R6/include | |
24707 | /usr/local/X11R5/include | |
24708 | /usr/local/X11R4/include | |
24709 | ||
24710 | /usr/local/include/X11 | |
24711 | /usr/local/include/X11R6 | |
24712 | /usr/local/include/X11R5 | |
24713 | /usr/local/include/X11R4 | |
24714 | ||
24715 | /usr/X386/include | |
24716 | /usr/x386/include | |
24717 | /usr/XFree86/include/X11 | |
24718 | ||
24719 | /usr/include | |
24720 | /usr/local/include | |
24721 | /usr/unsupported/include | |
24722 | /usr/athena/include | |
24723 | /usr/local/x11r5/include | |
24724 | /usr/lpp/Xamples/include | |
24725 | ||
24726 | /usr/openwin/include | |
24727 | /usr/openwin/share/include' | |
24728 | ||
24729 | if test "$ac_x_includes" = no; then | |
89be85c2 | 24730 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
24731 | # First, try using that file with no special directory specified. |
24732 | cat >conftest.$ac_ext <<_ACEOF | |
24733 | /* confdefs.h. */ | |
24734 | _ACEOF | |
24735 | cat confdefs.h >>conftest.$ac_ext | |
24736 | cat >>conftest.$ac_ext <<_ACEOF | |
24737 | /* end confdefs.h. */ | |
24738 | #include <X11/Intrinsic.h> | |
24739 | _ACEOF | |
24740 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24741 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24742 | ac_status=$? | |
24743 | grep -v '^ *+' conftest.er1 >conftest.err | |
24744 | rm -f conftest.er1 | |
24745 | cat conftest.err >&5 | |
24746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24747 | (exit $ac_status); } >/dev/null; then | |
24748 | if test -s conftest.err; then | |
24749 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24750 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24751 | else |
24752 | ac_cpp_err= | |
24753 | fi | |
24754 | else | |
24755 | ac_cpp_err=yes | |
24756 | fi | |
24757 | if test -z "$ac_cpp_err"; then | |
24758 | # We can compile using X headers with no special include directory. | |
24759 | ac_x_includes= | |
24760 | else | |
24761 | echo "$as_me: failed program was:" >&5 | |
24762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24763 | ||
24764 | for ac_dir in $ac_x_header_dirs; do | |
24765 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24766 | ac_x_includes=$ac_dir | |
24767 | break | |
24768 | fi | |
24769 | done | |
24770 | fi | |
24771 | rm -f conftest.err conftest.$ac_ext | |
24772 | fi # $ac_x_includes = no | |
24773 | ||
24774 | if test "$ac_x_libraries" = no; then | |
24775 | # Check for the libraries. | |
24776 | # See if we find them without any special options. | |
24777 | # Don't add to $LIBS permanently. | |
24778 | ac_save_LIBS=$LIBS | |
24779 | LIBS="-lXt $LIBS" | |
24780 | cat >conftest.$ac_ext <<_ACEOF | |
24781 | /* confdefs.h. */ | |
24782 | _ACEOF | |
24783 | cat confdefs.h >>conftest.$ac_ext | |
24784 | cat >>conftest.$ac_ext <<_ACEOF | |
24785 | /* end confdefs.h. */ | |
24786 | #include <X11/Intrinsic.h> | |
24787 | int | |
24788 | main () | |
24789 | { | |
24790 | XtMalloc (0) | |
24791 | ; | |
24792 | return 0; | |
24793 | } | |
24794 | _ACEOF | |
24795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24797 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24798 | ac_status=$? |
ac1cb8d3 VS |
24799 | grep -v '^ *+' conftest.er1 >conftest.err |
24800 | rm -f conftest.er1 | |
24801 | cat conftest.err >&5 | |
a848cd7e SC |
24802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24803 | (exit $ac_status); } && | |
89be85c2 VS |
24804 | { ac_try='test -z "$ac_c_werror_flag" |
24805 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24807 | (eval $ac_try) 2>&5 | |
24808 | ac_status=$? | |
24809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24810 | (exit $ac_status); }; } && | |
24811 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24813 | (eval $ac_try) 2>&5 | |
24814 | ac_status=$? | |
24815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24816 | (exit $ac_status); }; }; then | |
24817 | LIBS=$ac_save_LIBS | |
24818 | # We can link X programs with no special library path. | |
24819 | ac_x_libraries= | |
24820 | else | |
24821 | echo "$as_me: failed program was:" >&5 | |
24822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24823 | ||
24824 | LIBS=$ac_save_LIBS | |
24825 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24826 | do | |
24827 | # Don't even attempt the hair of trying to link an X program! | |
24828 | for ac_extension in a so sl; do | |
24829 | if test -r $ac_dir/libXt.$ac_extension; then | |
24830 | ac_x_libraries=$ac_dir | |
24831 | break 2 | |
24832 | fi | |
24833 | done | |
24834 | done | |
24835 | fi | |
ac1cb8d3 VS |
24836 | rm -f conftest.err conftest.$ac_objext \ |
24837 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24838 | fi # $ac_x_libraries = no |
24839 | ||
24840 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24841 | # Didn't find X anywhere. Cache the known absence of X. | |
24842 | ac_cv_have_x="have_x=no" | |
24843 | else | |
24844 | # Record where we found X for the cache. | |
24845 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24846 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24847 | fi |
24848 | fi | |
24849 | ||
24850 | fi | |
24851 | eval "$ac_cv_have_x" | |
24852 | fi # $with_x != no | |
24853 | ||
24854 | if test "$have_x" != yes; then | |
24855 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24856 | echo "${ECHO_T}$have_x" >&6 | |
24857 | no_x=yes | |
24858 | else | |
24859 | # If each of the values was on the command line, it overrides each guess. | |
24860 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24861 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24862 | # Update the cache value to reflect the command line values. | |
24863 | ac_cv_have_x="have_x=yes \ | |
24864 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
89be85c2 VS |
24865 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
24866 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
24867 | fi |
24868 | ||
24869 | if test "$no_x" = yes; then | |
24870 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24871 | ||
24872 | cat >>confdefs.h <<\_ACEOF | |
24873 | #define X_DISPLAY_MISSING 1 | |
24874 | _ACEOF | |
24875 | ||
24876 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24877 | else | |
24878 | if test -n "$x_includes"; then | |
24879 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24880 | fi | |
24881 | ||
24882 | # It would also be nice to do this for all -L options, not just this one. | |
24883 | if test -n "$x_libraries"; then | |
24884 | X_LIBS="$X_LIBS -L$x_libraries" | |
24885 | # For Solaris; some versions of Sun CC require a space after -R and | |
24886 | # others require no space. Words are not sufficient . . . . | |
24887 | case `(uname -sr) 2>/dev/null` in | |
24888 | "SunOS 5"*) | |
24889 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24890 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24891 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24892 | cat >conftest.$ac_ext <<_ACEOF | |
24893 | /* confdefs.h. */ | |
24894 | _ACEOF | |
24895 | cat confdefs.h >>conftest.$ac_ext | |
24896 | cat >>conftest.$ac_ext <<_ACEOF | |
24897 | /* end confdefs.h. */ | |
24898 | ||
24899 | int | |
24900 | main () | |
24901 | { | |
24902 | ||
24903 | ; | |
24904 | return 0; | |
24905 | } | |
24906 | _ACEOF | |
24907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24909 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24910 | ac_status=$? |
ac1cb8d3 VS |
24911 | grep -v '^ *+' conftest.er1 >conftest.err |
24912 | rm -f conftest.er1 | |
24913 | cat conftest.err >&5 | |
a848cd7e SC |
24914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24915 | (exit $ac_status); } && | |
89be85c2 VS |
24916 | { ac_try='test -z "$ac_c_werror_flag" |
24917 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24919 | (eval $ac_try) 2>&5 | |
24920 | ac_status=$? | |
24921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24922 | (exit $ac_status); }; } && | |
24923 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24925 | (eval $ac_try) 2>&5 | |
24926 | ac_status=$? | |
24927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24928 | (exit $ac_status); }; }; then | |
24929 | ac_R_nospace=yes | |
24930 | else | |
24931 | echo "$as_me: failed program was:" >&5 | |
24932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24933 | ||
24934 | ac_R_nospace=no | |
24935 | fi | |
ac1cb8d3 VS |
24936 | rm -f conftest.err conftest.$ac_objext \ |
24937 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24938 | if test $ac_R_nospace = yes; then |
24939 | echo "$as_me:$LINENO: result: no" >&5 | |
24940 | echo "${ECHO_T}no" >&6 | |
24941 | X_LIBS="$X_LIBS -R$x_libraries" | |
24942 | else | |
24943 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24944 | cat >conftest.$ac_ext <<_ACEOF | |
24945 | /* confdefs.h. */ | |
24946 | _ACEOF | |
24947 | cat confdefs.h >>conftest.$ac_ext | |
24948 | cat >>conftest.$ac_ext <<_ACEOF | |
24949 | /* end confdefs.h. */ | |
24950 | ||
24951 | int | |
24952 | main () | |
24953 | { | |
24954 | ||
24955 | ; | |
24956 | return 0; | |
24957 | } | |
24958 | _ACEOF | |
24959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24961 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24962 | ac_status=$? |
ac1cb8d3 VS |
24963 | grep -v '^ *+' conftest.er1 >conftest.err |
24964 | rm -f conftest.er1 | |
24965 | cat conftest.err >&5 | |
a848cd7e SC |
24966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24967 | (exit $ac_status); } && | |
89be85c2 VS |
24968 | { ac_try='test -z "$ac_c_werror_flag" |
24969 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24971 | (eval $ac_try) 2>&5 | |
24972 | ac_status=$? | |
24973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24974 | (exit $ac_status); }; } && | |
24975 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24977 | (eval $ac_try) 2>&5 | |
24978 | ac_status=$? | |
24979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24980 | (exit $ac_status); }; }; then | |
24981 | ac_R_space=yes | |
24982 | else | |
24983 | echo "$as_me: failed program was:" >&5 | |
24984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24985 | ||
24986 | ac_R_space=no | |
24987 | fi | |
ac1cb8d3 VS |
24988 | rm -f conftest.err conftest.$ac_objext \ |
24989 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24990 | if test $ac_R_space = yes; then |
24991 | echo "$as_me:$LINENO: result: yes" >&5 | |
24992 | echo "${ECHO_T}yes" >&6 | |
24993 | X_LIBS="$X_LIBS -R $x_libraries" | |
24994 | else | |
24995 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24996 | echo "${ECHO_T}neither works" >&6 | |
24997 | fi | |
24998 | fi | |
24999 | LIBS=$ac_xsave_LIBS | |
25000 | esac | |
25001 | fi | |
25002 | ||
25003 | # Check for system-dependent libraries X programs must link with. | |
25004 | # Do this before checking for the system-independent R6 libraries | |
25005 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
25006 | ||
25007 | if test "$ISC" = yes; then | |
25008 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
25009 | else | |
25010 | # Martyn Johnson says this is needed for Ultrix, if the X | |
25011 | # libraries were built with DECnet support. And Karl Berry says | |
25012 | # the Alpha needs dnet_stub (dnet does not exist). | |
25013 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
25014 | cat >conftest.$ac_ext <<_ACEOF | |
25015 | /* confdefs.h. */ | |
25016 | _ACEOF | |
25017 | cat confdefs.h >>conftest.$ac_ext | |
25018 | cat >>conftest.$ac_ext <<_ACEOF | |
25019 | /* end confdefs.h. */ | |
25020 | ||
25021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25022 | #ifdef __cplusplus | |
25023 | extern "C" | |
25024 | #endif | |
25025 | /* We use char because int might match the return type of a gcc2 | |
25026 | builtin and then its argument prototype would still apply. */ | |
25027 | char XOpenDisplay (); | |
25028 | int | |
25029 | main () | |
25030 | { | |
25031 | XOpenDisplay (); | |
25032 | ; | |
25033 | return 0; | |
25034 | } | |
25035 | _ACEOF | |
25036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25038 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25039 | ac_status=$? |
ac1cb8d3 VS |
25040 | grep -v '^ *+' conftest.er1 >conftest.err |
25041 | rm -f conftest.er1 | |
25042 | cat conftest.err >&5 | |
a848cd7e SC |
25043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25044 | (exit $ac_status); } && | |
89be85c2 VS |
25045 | { ac_try='test -z "$ac_c_werror_flag" |
25046 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25048 | (eval $ac_try) 2>&5 | |
25049 | ac_status=$? | |
25050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25051 | (exit $ac_status); }; } && | |
25052 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
25058 | : | |
25059 | else | |
25060 | echo "$as_me: failed program was:" >&5 | |
25061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25062 | ||
25063 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
25064 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
25065 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
25066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25067 | else | |
25068 | ac_check_lib_save_LIBS=$LIBS | |
25069 | LIBS="-ldnet $LIBS" | |
25070 | cat >conftest.$ac_ext <<_ACEOF | |
25071 | /* confdefs.h. */ | |
25072 | _ACEOF | |
25073 | cat confdefs.h >>conftest.$ac_ext | |
25074 | cat >>conftest.$ac_ext <<_ACEOF | |
25075 | /* end confdefs.h. */ | |
25076 | ||
25077 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25078 | #ifdef __cplusplus | |
25079 | extern "C" | |
25080 | #endif | |
25081 | /* We use char because int might match the return type of a gcc2 | |
25082 | builtin and then its argument prototype would still apply. */ | |
25083 | char dnet_ntoa (); | |
25084 | int | |
25085 | main () | |
25086 | { | |
25087 | dnet_ntoa (); | |
25088 | ; | |
25089 | return 0; | |
25090 | } | |
25091 | _ACEOF | |
25092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25094 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25095 | ac_status=$? |
ac1cb8d3 VS |
25096 | grep -v '^ *+' conftest.er1 >conftest.err |
25097 | rm -f conftest.er1 | |
25098 | cat conftest.err >&5 | |
a848cd7e SC |
25099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25100 | (exit $ac_status); } && | |
89be85c2 VS |
25101 | { ac_try='test -z "$ac_c_werror_flag" |
25102 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25104 | (eval $ac_try) 2>&5 | |
25105 | ac_status=$? | |
25106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25107 | (exit $ac_status); }; } && | |
25108 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25110 | (eval $ac_try) 2>&5 | |
25111 | ac_status=$? | |
25112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25113 | (exit $ac_status); }; }; then | |
25114 | ac_cv_lib_dnet_dnet_ntoa=yes | |
25115 | else | |
25116 | echo "$as_me: failed program was:" >&5 | |
25117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25118 | ||
25119 | ac_cv_lib_dnet_dnet_ntoa=no | |
25120 | fi | |
ac1cb8d3 VS |
25121 | rm -f conftest.err conftest.$ac_objext \ |
25122 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25123 | LIBS=$ac_check_lib_save_LIBS |
25124 | fi | |
25125 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
25126 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
25127 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
25128 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
25129 | fi | |
25130 | ||
25131 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
25132 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
25133 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
25134 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
25135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25136 | else | |
25137 | ac_check_lib_save_LIBS=$LIBS | |
25138 | LIBS="-ldnet_stub $LIBS" | |
25139 | cat >conftest.$ac_ext <<_ACEOF | |
25140 | /* confdefs.h. */ | |
25141 | _ACEOF | |
25142 | cat confdefs.h >>conftest.$ac_ext | |
25143 | cat >>conftest.$ac_ext <<_ACEOF | |
25144 | /* end confdefs.h. */ | |
25145 | ||
25146 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25147 | #ifdef __cplusplus | |
25148 | extern "C" | |
25149 | #endif | |
25150 | /* We use char because int might match the return type of a gcc2 | |
25151 | builtin and then its argument prototype would still apply. */ | |
25152 | char dnet_ntoa (); | |
25153 | int | |
25154 | main () | |
25155 | { | |
25156 | dnet_ntoa (); | |
25157 | ; | |
25158 | return 0; | |
25159 | } | |
25160 | _ACEOF | |
25161 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25163 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25164 | ac_status=$? |
ac1cb8d3 VS |
25165 | grep -v '^ *+' conftest.er1 >conftest.err |
25166 | rm -f conftest.er1 | |
25167 | cat conftest.err >&5 | |
a848cd7e SC |
25168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25169 | (exit $ac_status); } && | |
89be85c2 VS |
25170 | { ac_try='test -z "$ac_c_werror_flag" |
25171 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25173 | (eval $ac_try) 2>&5 | |
25174 | ac_status=$? | |
25175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25176 | (exit $ac_status); }; } && | |
25177 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25179 | (eval $ac_try) 2>&5 | |
25180 | ac_status=$? | |
25181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25182 | (exit $ac_status); }; }; then | |
25183 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
25184 | else | |
25185 | echo "$as_me: failed program was:" >&5 | |
25186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25187 | ||
25188 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
25189 | fi | |
ac1cb8d3 VS |
25190 | rm -f conftest.err conftest.$ac_objext \ |
25191 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25192 | LIBS=$ac_check_lib_save_LIBS |
25193 | fi | |
25194 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
25195 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
25196 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
25197 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
25198 | fi | |
25199 | ||
25200 | fi | |
25201 | fi | |
ac1cb8d3 VS |
25202 | rm -f conftest.err conftest.$ac_objext \ |
25203 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25204 | LIBS="$ac_xsave_LIBS" |
25205 | ||
25206 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
25207 | # to get the SysV transport functions. | |
25208 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
25209 | # needs -lnsl. | |
25210 | # The nsl library prevents programs from opening the X display | |
25211 | # on Irix 5.2, according to T.E. Dickey. | |
25212 | # The functions gethostbyname, getservbyname, and inet_addr are | |
25213 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
25214 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
25215 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
25216 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
25217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25218 | else | |
25219 | cat >conftest.$ac_ext <<_ACEOF | |
25220 | /* confdefs.h. */ | |
25221 | _ACEOF | |
25222 | cat confdefs.h >>conftest.$ac_ext | |
25223 | cat >>conftest.$ac_ext <<_ACEOF | |
25224 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25225 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
25226 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25227 | #define gethostbyname innocuous_gethostbyname | |
25228 | ||
a848cd7e SC |
25229 | /* System header to define __stub macros and hopefully few prototypes, |
25230 | which can conflict with char gethostbyname (); below. | |
25231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25232 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25233 | |
a848cd7e SC |
25234 | #ifdef __STDC__ |
25235 | # include <limits.h> | |
25236 | #else | |
25237 | # include <assert.h> | |
25238 | #endif | |
ac1cb8d3 VS |
25239 | |
25240 | #undef gethostbyname | |
25241 | ||
a848cd7e SC |
25242 | /* Override any gcc2 internal prototype to avoid an error. */ |
25243 | #ifdef __cplusplus | |
25244 | extern "C" | |
25245 | { | |
25246 | #endif | |
25247 | /* We use char because int might match the return type of a gcc2 | |
25248 | builtin and then its argument prototype would still apply. */ | |
25249 | char gethostbyname (); | |
25250 | /* The GNU C library defines this for functions which it implements | |
25251 | to always fail with ENOSYS. Some functions are actually named | |
25252 | something starting with __ and the normal name is an alias. */ | |
25253 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
25254 | choke me | |
25255 | #else | |
25256 | char (*f) () = gethostbyname; | |
25257 | #endif | |
25258 | #ifdef __cplusplus | |
25259 | } | |
25260 | #endif | |
25261 | ||
25262 | int | |
25263 | main () | |
25264 | { | |
25265 | return f != gethostbyname; | |
25266 | ; | |
25267 | return 0; | |
25268 | } | |
25269 | _ACEOF | |
25270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25272 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25273 | ac_status=$? |
ac1cb8d3 VS |
25274 | grep -v '^ *+' conftest.er1 >conftest.err |
25275 | rm -f conftest.er1 | |
25276 | cat conftest.err >&5 | |
a848cd7e SC |
25277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25278 | (exit $ac_status); } && | |
89be85c2 VS |
25279 | { ac_try='test -z "$ac_c_werror_flag" |
25280 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25282 | (eval $ac_try) 2>&5 | |
25283 | ac_status=$? | |
25284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25285 | (exit $ac_status); }; } && | |
25286 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25288 | (eval $ac_try) 2>&5 | |
25289 | ac_status=$? | |
25290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25291 | (exit $ac_status); }; }; then | |
25292 | ac_cv_func_gethostbyname=yes | |
25293 | else | |
25294 | echo "$as_me: failed program was:" >&5 | |
25295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25296 | ||
25297 | ac_cv_func_gethostbyname=no | |
25298 | fi | |
ac1cb8d3 VS |
25299 | rm -f conftest.err conftest.$ac_objext \ |
25300 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25301 | fi |
25302 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
25303 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
25304 | ||
25305 | if test $ac_cv_func_gethostbyname = no; then | |
25306 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
25307 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
25308 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
25309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25310 | else | |
25311 | ac_check_lib_save_LIBS=$LIBS | |
25312 | LIBS="-lnsl $LIBS" | |
25313 | cat >conftest.$ac_ext <<_ACEOF | |
25314 | /* confdefs.h. */ | |
25315 | _ACEOF | |
25316 | cat confdefs.h >>conftest.$ac_ext | |
25317 | cat >>conftest.$ac_ext <<_ACEOF | |
25318 | /* end confdefs.h. */ | |
25319 | ||
25320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25321 | #ifdef __cplusplus | |
25322 | extern "C" | |
25323 | #endif | |
25324 | /* We use char because int might match the return type of a gcc2 | |
25325 | builtin and then its argument prototype would still apply. */ | |
25326 | char gethostbyname (); | |
25327 | int | |
25328 | main () | |
25329 | { | |
25330 | gethostbyname (); | |
25331 | ; | |
25332 | return 0; | |
25333 | } | |
25334 | _ACEOF | |
25335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
25337 | (eval $ac_link) 2>conftest.er1 |
25338 | ac_status=$? | |
25339 | grep -v '^ *+' conftest.er1 >conftest.err | |
25340 | rm -f conftest.er1 | |
25341 | cat conftest.err >&5 | |
25342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25343 | (exit $ac_status); } && | |
89be85c2 VS |
25344 | { ac_try='test -z "$ac_c_werror_flag" |
25345 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25347 | (eval $ac_try) 2>&5 | |
25348 | ac_status=$? | |
25349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25350 | (exit $ac_status); }; } && | |
25351 | { ac_try='test -s conftest$ac_exeext' | |
25352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25353 | (eval $ac_try) 2>&5 | |
25354 | ac_status=$? | |
25355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25356 | (exit $ac_status); }; }; then | |
25357 | ac_cv_lib_nsl_gethostbyname=yes | |
25358 | else | |
25359 | echo "$as_me: failed program was:" >&5 | |
25360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25361 | ||
25362 | ac_cv_lib_nsl_gethostbyname=no | |
25363 | fi | |
25364 | rm -f conftest.err conftest.$ac_objext \ | |
25365 | conftest$ac_exeext conftest.$ac_ext | |
25366 | LIBS=$ac_check_lib_save_LIBS | |
25367 | fi | |
25368 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
25369 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
25370 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
25371 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
25372 | fi | |
25373 | ||
25374 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
25375 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
25376 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
25377 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
25378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25379 | else | |
25380 | ac_check_lib_save_LIBS=$LIBS | |
25381 | LIBS="-lbsd $LIBS" | |
25382 | cat >conftest.$ac_ext <<_ACEOF | |
25383 | /* confdefs.h. */ | |
25384 | _ACEOF | |
25385 | cat confdefs.h >>conftest.$ac_ext | |
25386 | cat >>conftest.$ac_ext <<_ACEOF | |
25387 | /* end confdefs.h. */ | |
25388 | ||
25389 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25390 | #ifdef __cplusplus | |
25391 | extern "C" | |
25392 | #endif | |
25393 | /* We use char because int might match the return type of a gcc2 | |
25394 | builtin and then its argument prototype would still apply. */ | |
25395 | char gethostbyname (); | |
25396 | int | |
25397 | main () | |
25398 | { | |
25399 | gethostbyname (); | |
25400 | ; | |
25401 | return 0; | |
25402 | } | |
25403 | _ACEOF | |
25404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25406 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 25407 | ac_status=$? |
ac1cb8d3 VS |
25408 | grep -v '^ *+' conftest.er1 >conftest.err |
25409 | rm -f conftest.er1 | |
25410 | cat conftest.err >&5 | |
a848cd7e SC |
25411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25412 | (exit $ac_status); } && | |
89be85c2 VS |
25413 | { ac_try='test -z "$ac_c_werror_flag" |
25414 | || test ! -s conftest.err' | |
a848cd7e SC |
25415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25416 | (eval $ac_try) 2>&5 | |
25417 | ac_status=$? | |
25418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
25419 | (exit $ac_status); }; } && |
25420 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25422 | (eval $ac_try) 2>&5 | |
25423 | ac_status=$? | |
25424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25425 | (exit $ac_status); }; }; then | |
25426 | ac_cv_lib_bsd_gethostbyname=yes | |
25427 | else | |
25428 | echo "$as_me: failed program was:" >&5 | |
25429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25430 | ||
25431 | ac_cv_lib_bsd_gethostbyname=no | |
25432 | fi | |
ac1cb8d3 VS |
25433 | rm -f conftest.err conftest.$ac_objext \ |
25434 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25435 | LIBS=$ac_check_lib_save_LIBS |
25436 | fi | |
25437 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
25438 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
25439 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
25440 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
25441 | fi | |
25442 | ||
25443 | fi | |
25444 | fi | |
25445 | ||
25446 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
25447 | # socket/setsockopt and other routines are undefined under SCO ODT | |
25448 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
25449 | # on later versions), says Simon Leinen: it contains gethostby* | |
25450 | # variants that don't use the name server (or something). -lsocket | |
25451 | # must be given before -lnsl if both are needed. We assume that | |
25452 | # if connect needs -lnsl, so does gethostbyname. | |
25453 | echo "$as_me:$LINENO: checking for connect" >&5 | |
25454 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
25455 | if test "${ac_cv_func_connect+set}" = set; then | |
25456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25457 | else | |
25458 | cat >conftest.$ac_ext <<_ACEOF | |
25459 | /* confdefs.h. */ | |
25460 | _ACEOF | |
25461 | cat confdefs.h >>conftest.$ac_ext | |
25462 | cat >>conftest.$ac_ext <<_ACEOF | |
25463 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25464 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
25465 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25466 | #define connect innocuous_connect | |
25467 | ||
a848cd7e SC |
25468 | /* System header to define __stub macros and hopefully few prototypes, |
25469 | which can conflict with char connect (); below. | |
25470 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25471 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25472 | |
a848cd7e SC |
25473 | #ifdef __STDC__ |
25474 | # include <limits.h> | |
25475 | #else | |
25476 | # include <assert.h> | |
25477 | #endif | |
ac1cb8d3 VS |
25478 | |
25479 | #undef connect | |
25480 | ||
a848cd7e SC |
25481 | /* Override any gcc2 internal prototype to avoid an error. */ |
25482 | #ifdef __cplusplus | |
25483 | extern "C" | |
25484 | { | |
25485 | #endif | |
25486 | /* We use char because int might match the return type of a gcc2 | |
25487 | builtin and then its argument prototype would still apply. */ | |
25488 | char connect (); | |
25489 | /* The GNU C library defines this for functions which it implements | |
25490 | to always fail with ENOSYS. Some functions are actually named | |
25491 | something starting with __ and the normal name is an alias. */ | |
25492 | #if defined (__stub_connect) || defined (__stub___connect) | |
25493 | choke me | |
25494 | #else | |
25495 | char (*f) () = connect; | |
25496 | #endif | |
25497 | #ifdef __cplusplus | |
25498 | } | |
25499 | #endif | |
25500 | ||
25501 | int | |
25502 | main () | |
25503 | { | |
25504 | return f != connect; | |
25505 | ; | |
25506 | return 0; | |
25507 | } | |
25508 | _ACEOF | |
25509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25511 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25512 | ac_status=$? |
ac1cb8d3 VS |
25513 | grep -v '^ *+' conftest.er1 >conftest.err |
25514 | rm -f conftest.er1 | |
25515 | cat conftest.err >&5 | |
a848cd7e SC |
25516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25517 | (exit $ac_status); } && | |
89be85c2 VS |
25518 | { ac_try='test -z "$ac_c_werror_flag" |
25519 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25521 | (eval $ac_try) 2>&5 | |
25522 | ac_status=$? | |
25523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25524 | (exit $ac_status); }; } && | |
25525 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25527 | (eval $ac_try) 2>&5 | |
25528 | ac_status=$? | |
25529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25530 | (exit $ac_status); }; }; then | |
25531 | ac_cv_func_connect=yes | |
25532 | else | |
25533 | echo "$as_me: failed program was:" >&5 | |
25534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25535 | ||
25536 | ac_cv_func_connect=no | |
25537 | fi | |
ac1cb8d3 VS |
25538 | rm -f conftest.err conftest.$ac_objext \ |
25539 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25540 | fi |
25541 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25542 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
25543 | ||
25544 | if test $ac_cv_func_connect = no; then | |
25545 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
25546 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25547 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25549 | else | |
25550 | ac_check_lib_save_LIBS=$LIBS | |
25551 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
25552 | cat >conftest.$ac_ext <<_ACEOF | |
25553 | /* confdefs.h. */ | |
25554 | _ACEOF | |
25555 | cat confdefs.h >>conftest.$ac_ext | |
25556 | cat >>conftest.$ac_ext <<_ACEOF | |
25557 | /* end confdefs.h. */ | |
25558 | ||
25559 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25560 | #ifdef __cplusplus | |
25561 | extern "C" | |
25562 | #endif | |
25563 | /* We use char because int might match the return type of a gcc2 | |
25564 | builtin and then its argument prototype would still apply. */ | |
25565 | char connect (); | |
25566 | int | |
25567 | main () | |
25568 | { | |
25569 | connect (); | |
25570 | ; | |
25571 | return 0; | |
25572 | } | |
25573 | _ACEOF | |
25574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25576 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25577 | ac_status=$? |
ac1cb8d3 VS |
25578 | grep -v '^ *+' conftest.er1 >conftest.err |
25579 | rm -f conftest.er1 | |
25580 | cat conftest.err >&5 | |
a848cd7e SC |
25581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25582 | (exit $ac_status); } && | |
89be85c2 VS |
25583 | { ac_try='test -z "$ac_c_werror_flag" |
25584 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25586 | (eval $ac_try) 2>&5 | |
25587 | ac_status=$? | |
25588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25589 | (exit $ac_status); }; } && | |
25590 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25592 | (eval $ac_try) 2>&5 | |
25593 | ac_status=$? | |
25594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25595 | (exit $ac_status); }; }; then | |
25596 | ac_cv_lib_socket_connect=yes | |
25597 | else | |
25598 | echo "$as_me: failed program was:" >&5 | |
25599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25600 | ||
25601 | ac_cv_lib_socket_connect=no | |
25602 | fi | |
ac1cb8d3 VS |
25603 | rm -f conftest.err conftest.$ac_objext \ |
25604 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25605 | LIBS=$ac_check_lib_save_LIBS |
25606 | fi | |
25607 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25608 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25609 | if test $ac_cv_lib_socket_connect = yes; then | |
25610 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
25611 | fi | |
25612 | ||
25613 | fi | |
25614 | ||
25615 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
25616 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25617 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25618 | if test "${ac_cv_func_remove+set}" = set; then | |
25619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25620 | else | |
25621 | cat >conftest.$ac_ext <<_ACEOF | |
25622 | /* confdefs.h. */ | |
25623 | _ACEOF | |
25624 | cat confdefs.h >>conftest.$ac_ext | |
25625 | cat >>conftest.$ac_ext <<_ACEOF | |
25626 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25627 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25628 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25629 | #define remove innocuous_remove | |
25630 | ||
a848cd7e SC |
25631 | /* System header to define __stub macros and hopefully few prototypes, |
25632 | which can conflict with char remove (); below. | |
25633 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25634 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25635 | |
a848cd7e SC |
25636 | #ifdef __STDC__ |
25637 | # include <limits.h> | |
25638 | #else | |
25639 | # include <assert.h> | |
25640 | #endif | |
ac1cb8d3 VS |
25641 | |
25642 | #undef remove | |
25643 | ||
a848cd7e SC |
25644 | /* Override any gcc2 internal prototype to avoid an error. */ |
25645 | #ifdef __cplusplus | |
25646 | extern "C" | |
25647 | { | |
25648 | #endif | |
25649 | /* We use char because int might match the return type of a gcc2 | |
25650 | builtin and then its argument prototype would still apply. */ | |
25651 | char remove (); | |
25652 | /* The GNU C library defines this for functions which it implements | |
25653 | to always fail with ENOSYS. Some functions are actually named | |
25654 | something starting with __ and the normal name is an alias. */ | |
25655 | #if defined (__stub_remove) || defined (__stub___remove) | |
25656 | choke me | |
25657 | #else | |
25658 | char (*f) () = remove; | |
25659 | #endif | |
25660 | #ifdef __cplusplus | |
25661 | } | |
25662 | #endif | |
25663 | ||
25664 | int | |
25665 | main () | |
25666 | { | |
25667 | return f != remove; | |
25668 | ; | |
25669 | return 0; | |
25670 | } | |
25671 | _ACEOF | |
25672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25674 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25675 | ac_status=$? |
ac1cb8d3 VS |
25676 | grep -v '^ *+' conftest.er1 >conftest.err |
25677 | rm -f conftest.er1 | |
25678 | cat conftest.err >&5 | |
a848cd7e SC |
25679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25680 | (exit $ac_status); } && | |
89be85c2 VS |
25681 | { ac_try='test -z "$ac_c_werror_flag" |
25682 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25684 | (eval $ac_try) 2>&5 | |
25685 | ac_status=$? | |
25686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25687 | (exit $ac_status); }; } && | |
25688 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25690 | (eval $ac_try) 2>&5 | |
25691 | ac_status=$? | |
25692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25693 | (exit $ac_status); }; }; then | |
25694 | ac_cv_func_remove=yes | |
25695 | else | |
25696 | echo "$as_me: failed program was:" >&5 | |
25697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25698 | ||
25699 | ac_cv_func_remove=no | |
25700 | fi | |
ac1cb8d3 VS |
25701 | rm -f conftest.err conftest.$ac_objext \ |
25702 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25703 | fi |
25704 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25705 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
25706 | ||
25707 | if test $ac_cv_func_remove = no; then | |
25708 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
25709 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25710 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25712 | else | |
25713 | ac_check_lib_save_LIBS=$LIBS | |
25714 | LIBS="-lposix $LIBS" | |
25715 | cat >conftest.$ac_ext <<_ACEOF | |
25716 | /* confdefs.h. */ | |
25717 | _ACEOF | |
25718 | cat confdefs.h >>conftest.$ac_ext | |
25719 | cat >>conftest.$ac_ext <<_ACEOF | |
25720 | /* end confdefs.h. */ | |
25721 | ||
25722 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25723 | #ifdef __cplusplus | |
25724 | extern "C" | |
25725 | #endif | |
25726 | /* We use char because int might match the return type of a gcc2 | |
25727 | builtin and then its argument prototype would still apply. */ | |
25728 | char remove (); | |
25729 | int | |
25730 | main () | |
25731 | { | |
25732 | remove (); | |
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); } && | |
89be85c2 VS |
25746 | { ac_try='test -z "$ac_c_werror_flag" |
25747 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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_cv_lib_posix_remove=yes | |
25760 | else | |
25761 | echo "$as_me: failed program was:" >&5 | |
25762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25763 | ||
25764 | ac_cv_lib_posix_remove=no | |
25765 | fi | |
ac1cb8d3 VS |
25766 | rm -f conftest.err conftest.$ac_objext \ |
25767 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25768 | LIBS=$ac_check_lib_save_LIBS |
25769 | fi | |
25770 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25771 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25772 | if test $ac_cv_lib_posix_remove = yes; then | |
25773 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25774 | fi | |
25775 | ||
25776 | fi | |
25777 | ||
25778 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25779 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25780 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25781 | if test "${ac_cv_func_shmat+set}" = set; then | |
25782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25783 | else | |
25784 | cat >conftest.$ac_ext <<_ACEOF | |
25785 | /* confdefs.h. */ | |
25786 | _ACEOF | |
25787 | cat confdefs.h >>conftest.$ac_ext | |
25788 | cat >>conftest.$ac_ext <<_ACEOF | |
25789 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25790 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25791 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25792 | #define shmat innocuous_shmat | |
25793 | ||
a848cd7e SC |
25794 | /* System header to define __stub macros and hopefully few prototypes, |
25795 | which can conflict with char shmat (); below. | |
25796 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25797 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25798 | |
a848cd7e SC |
25799 | #ifdef __STDC__ |
25800 | # include <limits.h> | |
25801 | #else | |
25802 | # include <assert.h> | |
25803 | #endif | |
ac1cb8d3 VS |
25804 | |
25805 | #undef shmat | |
25806 | ||
a848cd7e SC |
25807 | /* Override any gcc2 internal prototype to avoid an error. */ |
25808 | #ifdef __cplusplus | |
25809 | extern "C" | |
25810 | { | |
25811 | #endif | |
25812 | /* We use char because int might match the return type of a gcc2 | |
25813 | builtin and then its argument prototype would still apply. */ | |
25814 | char shmat (); | |
25815 | /* The GNU C library defines this for functions which it implements | |
25816 | to always fail with ENOSYS. Some functions are actually named | |
25817 | something starting with __ and the normal name is an alias. */ | |
25818 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25819 | choke me | |
25820 | #else | |
25821 | char (*f) () = shmat; | |
25822 | #endif | |
25823 | #ifdef __cplusplus | |
25824 | } | |
25825 | #endif | |
25826 | ||
25827 | int | |
25828 | main () | |
25829 | { | |
25830 | return f != shmat; | |
25831 | ; | |
25832 | return 0; | |
25833 | } | |
25834 | _ACEOF | |
25835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25837 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25838 | ac_status=$? |
ac1cb8d3 VS |
25839 | grep -v '^ *+' conftest.er1 >conftest.err |
25840 | rm -f conftest.er1 | |
25841 | cat conftest.err >&5 | |
a848cd7e SC |
25842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25843 | (exit $ac_status); } && | |
89be85c2 VS |
25844 | { ac_try='test -z "$ac_c_werror_flag" |
25845 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25847 | (eval $ac_try) 2>&5 | |
25848 | ac_status=$? | |
25849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25850 | (exit $ac_status); }; } && | |
25851 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25853 | (eval $ac_try) 2>&5 | |
25854 | ac_status=$? | |
25855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25856 | (exit $ac_status); }; }; then | |
25857 | ac_cv_func_shmat=yes | |
25858 | else | |
25859 | echo "$as_me: failed program was:" >&5 | |
25860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25861 | ||
25862 | ac_cv_func_shmat=no | |
25863 | fi | |
ac1cb8d3 VS |
25864 | rm -f conftest.err conftest.$ac_objext \ |
25865 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25866 | fi |
25867 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25868 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25869 | ||
25870 | if test $ac_cv_func_shmat = no; then | |
25871 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25872 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25873 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25875 | else | |
25876 | ac_check_lib_save_LIBS=$LIBS | |
25877 | LIBS="-lipc $LIBS" | |
25878 | cat >conftest.$ac_ext <<_ACEOF | |
25879 | /* confdefs.h. */ | |
25880 | _ACEOF | |
25881 | cat confdefs.h >>conftest.$ac_ext | |
25882 | cat >>conftest.$ac_ext <<_ACEOF | |
25883 | /* end confdefs.h. */ | |
25884 | ||
25885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25886 | #ifdef __cplusplus | |
25887 | extern "C" | |
25888 | #endif | |
25889 | /* We use char because int might match the return type of a gcc2 | |
25890 | builtin and then its argument prototype would still apply. */ | |
25891 | char shmat (); | |
25892 | int | |
25893 | main () | |
25894 | { | |
25895 | shmat (); | |
25896 | ; | |
25897 | return 0; | |
25898 | } | |
25899 | _ACEOF | |
25900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25902 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25903 | ac_status=$? |
ac1cb8d3 VS |
25904 | grep -v '^ *+' conftest.er1 >conftest.err |
25905 | rm -f conftest.er1 | |
25906 | cat conftest.err >&5 | |
a848cd7e SC |
25907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25908 | (exit $ac_status); } && | |
89be85c2 VS |
25909 | { ac_try='test -z "$ac_c_werror_flag" |
25910 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25912 | (eval $ac_try) 2>&5 | |
25913 | ac_status=$? | |
25914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25915 | (exit $ac_status); }; } && | |
25916 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25918 | (eval $ac_try) 2>&5 | |
25919 | ac_status=$? | |
25920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25921 | (exit $ac_status); }; }; then | |
25922 | ac_cv_lib_ipc_shmat=yes | |
25923 | else | |
25924 | echo "$as_me: failed program was:" >&5 | |
25925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25926 | ||
25927 | ac_cv_lib_ipc_shmat=no | |
25928 | fi | |
ac1cb8d3 VS |
25929 | rm -f conftest.err conftest.$ac_objext \ |
25930 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25931 | LIBS=$ac_check_lib_save_LIBS |
25932 | fi | |
25933 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25934 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25935 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25936 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25937 | fi | |
25938 | ||
25939 | fi | |
25940 | fi | |
25941 | ||
25942 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25943 | ac_save_LDFLAGS=$LDFLAGS | |
25944 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25945 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25946 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25947 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25948 | # These have to be linked with before -lX11, unlike the other | |
25949 | # libraries we check for below, so use a different variable. | |
25950 | # John Interrante, Karl Berry | |
25951 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25952 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25953 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25955 | else | |
25956 | ac_check_lib_save_LIBS=$LIBS | |
25957 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25958 | cat >conftest.$ac_ext <<_ACEOF | |
25959 | /* confdefs.h. */ | |
25960 | _ACEOF | |
25961 | cat confdefs.h >>conftest.$ac_ext | |
25962 | cat >>conftest.$ac_ext <<_ACEOF | |
25963 | /* end confdefs.h. */ | |
25964 | ||
25965 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25966 | #ifdef __cplusplus | |
25967 | extern "C" | |
25968 | #endif | |
25969 | /* We use char because int might match the return type of a gcc2 | |
25970 | builtin and then its argument prototype would still apply. */ | |
25971 | char IceConnectionNumber (); | |
25972 | int | |
25973 | main () | |
25974 | { | |
25975 | IceConnectionNumber (); | |
25976 | ; | |
25977 | return 0; | |
25978 | } | |
25979 | _ACEOF | |
25980 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25982 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25983 | ac_status=$? |
ac1cb8d3 VS |
25984 | grep -v '^ *+' conftest.er1 >conftest.err |
25985 | rm -f conftest.er1 | |
25986 | cat conftest.err >&5 | |
a848cd7e SC |
25987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25988 | (exit $ac_status); } && | |
89be85c2 VS |
25989 | { ac_try='test -z "$ac_c_werror_flag" |
25990 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25992 | (eval $ac_try) 2>&5 | |
25993 | ac_status=$? | |
25994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25995 | (exit $ac_status); }; } && | |
25996 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25998 | (eval $ac_try) 2>&5 | |
25999 | ac_status=$? | |
26000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26001 | (exit $ac_status); }; }; then | |
26002 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
26003 | else | |
26004 | echo "$as_me: failed program was:" >&5 | |
26005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26006 | ||
26007 | ac_cv_lib_ICE_IceConnectionNumber=no | |
26008 | fi | |
ac1cb8d3 VS |
26009 | rm -f conftest.err conftest.$ac_objext \ |
26010 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26011 | LIBS=$ac_check_lib_save_LIBS |
26012 | fi | |
26013 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
26014 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
26015 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
26016 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
26017 | fi | |
26018 | ||
26019 | LDFLAGS=$ac_save_LDFLAGS | |
26020 | ||
26021 | fi | |
26022 | ||
26023 | ||
26024 | if test "$no_x" = "yes"; then | |
26025 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
26026 | echo "$as_me: error: X11 not found" >&2;} | |
26027 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
26028 | fi | |
26029 | ||
74b84332 VS |
26030 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
26031 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
26032 | AFMINSTALL=afminstall |
26033 | COMPILED_X_PROGRAM=0 | |
26034 | ||
74b84332 VS |
26035 | fi |
26036 | ||
26037 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
26038 | if test "$wxUSE_NANOX" = "yes"; then |
26039 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
26040 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
26041 | if test "x$MICROWIN" = x ; then | |
26042 | echo "$as_me:$LINENO: result: not found" >&5 | |
26043 | echo "${ECHO_T}not found" >&6 | |
26044 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
26045 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
26046 | { (exit 1); exit 1; }; } | |
26047 | else | |
26048 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
26049 | echo "${ECHO_T}$MICROWIN" >&6 | |
26050 | cat >>confdefs.h <<\_ACEOF | |
26051 | #define wxUSE_NANOX 1 | |
26052 | _ACEOF | |
26053 | ||
26054 | fi | |
26055 | fi | |
26056 | ||
26057 | if test "$wxUSE_UNICODE" = "yes"; then | |
26058 | ||
26059 | succeeded=no | |
26060 | ||
26061 | if test -z "$PKG_CONFIG"; then | |
26062 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26063 | set dummy pkg-config; ac_word=$2 | |
26064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26066 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26068 | else | |
26069 | case $PKG_CONFIG in | |
26070 | [\\/]* | ?:[\\/]*) | |
26071 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26072 | ;; | |
26073 | *) | |
26074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26075 | for as_dir in $PATH | |
26076 | do | |
26077 | IFS=$as_save_IFS | |
26078 | test -z "$as_dir" && as_dir=. | |
26079 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26080 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26081 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26083 | break 2 | |
26084 | fi | |
26085 | done | |
26086 | done | |
26087 | ||
26088 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26089 | ;; | |
26090 | esac | |
26091 | fi | |
26092 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26093 | ||
26094 | if test -n "$PKG_CONFIG"; then | |
26095 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26096 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26097 | else | |
26098 | echo "$as_me:$LINENO: result: no" >&5 | |
26099 | echo "${ECHO_T}no" >&6 | |
26100 | fi | |
26101 | ||
26102 | fi | |
26103 | ||
26104 | if test "$PKG_CONFIG" = "no" ; then | |
26105 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26106 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26107 | echo "*** to the full path to pkg-config." | |
26108 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26109 | else | |
26110 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26111 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26112 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
26113 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
26114 | ||
26115 | if $PKG_CONFIG --exists "pangox" ; then | |
26116 | echo "$as_me:$LINENO: result: yes" >&5 | |
26117 | echo "${ECHO_T}yes" >&6 | |
26118 | succeeded=yes | |
26119 | ||
26120 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
26121 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
26122 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
26123 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
26124 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
26125 | ||
26126 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
26127 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
26128 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
26129 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
26130 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
26131 | else | |
26132 | PANGOX_CFLAGS="" | |
26133 | PANGOX_LIBS="" | |
26134 | ## If we have a custom action on failure, don't print errors, but | |
26135 | ## do set a variable so people can do so. | |
26136 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
26137 | ||
26138 | fi | |
26139 | ||
26140 | ||
26141 | ||
26142 | else | |
26143 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26144 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26145 | fi | |
26146 | fi | |
26147 | ||
26148 | if test $succeeded = yes; then | |
26149 | ||
26150 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
26151 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
26152 | ||
26153 | else | |
26154 | ||
26155 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
26156 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
26157 | { (exit 1); exit 1; }; } | |
26158 | ||
26159 | ||
26160 | fi | |
26161 | ||
26162 | ||
26163 | succeeded=no | |
26164 | ||
26165 | if test -z "$PKG_CONFIG"; then | |
26166 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26167 | set dummy pkg-config; ac_word=$2 | |
26168 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26170 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26172 | else | |
26173 | case $PKG_CONFIG in | |
26174 | [\\/]* | ?:[\\/]*) | |
26175 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26176 | ;; | |
26177 | *) | |
26178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26179 | for as_dir in $PATH | |
26180 | do | |
26181 | IFS=$as_save_IFS | |
26182 | test -z "$as_dir" && as_dir=. | |
26183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26184 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26185 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26187 | break 2 | |
26188 | fi | |
26189 | done | |
26190 | done | |
26191 | ||
26192 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26193 | ;; | |
26194 | esac | |
26195 | fi | |
26196 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26197 | ||
26198 | if test -n "$PKG_CONFIG"; then | |
26199 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26200 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26201 | else | |
26202 | echo "$as_me:$LINENO: result: no" >&5 | |
26203 | echo "${ECHO_T}no" >&6 | |
26204 | fi | |
26205 | ||
26206 | fi | |
26207 | ||
26208 | if test "$PKG_CONFIG" = "no" ; then | |
26209 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26210 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26211 | echo "*** to the full path to pkg-config." | |
26212 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26213 | else | |
26214 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26215 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26216 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
26217 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
26218 | ||
26219 | if $PKG_CONFIG --exists "pangoft2" ; then | |
26220 | echo "$as_me:$LINENO: result: yes" >&5 | |
26221 | echo "${ECHO_T}yes" >&6 | |
26222 | succeeded=yes | |
26223 | ||
26224 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
26225 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
26226 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
26227 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
26228 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
26229 | ||
26230 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
26231 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
26232 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
26233 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
26234 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
26235 | else | |
26236 | PANGOFT2_CFLAGS="" | |
26237 | PANGOFT2_LIBS="" | |
26238 | ## If we have a custom action on failure, don't print errors, but | |
26239 | ## do set a variable so people can do so. | |
26240 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
26241 | ||
26242 | fi | |
26243 | ||
26244 | ||
26245 | ||
26246 | else | |
26247 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26248 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26249 | fi | |
26250 | fi | |
26251 | ||
26252 | if test $succeeded = yes; then | |
26253 | ||
26254 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
26255 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
26256 | ||
26257 | else | |
26258 | ||
26259 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
26260 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
26261 | wxUSE_PRINTING_ARCHITECTURE="no" | |
26262 | ||
26263 | ||
26264 | fi | |
26265 | ||
26266 | ||
26267 | succeeded=no | |
26268 | ||
26269 | if test -z "$PKG_CONFIG"; then | |
26270 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26271 | set dummy pkg-config; ac_word=$2 | |
26272 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26274 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26276 | else | |
26277 | case $PKG_CONFIG in | |
26278 | [\\/]* | ?:[\\/]*) | |
26279 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26280 | ;; | |
26281 | *) | |
26282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26283 | for as_dir in $PATH | |
26284 | do | |
26285 | IFS=$as_save_IFS | |
26286 | test -z "$as_dir" && as_dir=. | |
26287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26289 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26291 | break 2 | |
26292 | fi | |
26293 | done | |
26294 | done | |
26295 | ||
26296 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26297 | ;; | |
26298 | esac | |
26299 | fi | |
26300 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26301 | ||
26302 | if test -n "$PKG_CONFIG"; then | |
26303 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26304 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26305 | else | |
26306 | echo "$as_me:$LINENO: result: no" >&5 | |
26307 | echo "${ECHO_T}no" >&6 | |
26308 | fi | |
26309 | ||
26310 | fi | |
26311 | ||
26312 | if test "$PKG_CONFIG" = "no" ; then | |
26313 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26314 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26315 | echo "*** to the full path to pkg-config." | |
26316 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26317 | else | |
26318 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26319 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26320 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
26321 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
26322 | ||
26323 | if $PKG_CONFIG --exists "pangoxft" ; then | |
26324 | echo "$as_me:$LINENO: result: yes" >&5 | |
26325 | echo "${ECHO_T}yes" >&6 | |
26326 | succeeded=yes | |
26327 | ||
26328 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
26329 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
26330 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
26331 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
26332 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
26333 | ||
26334 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
26335 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
26336 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
26337 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
26338 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
26339 | else | |
26340 | PANGOXFT_CFLAGS="" | |
26341 | PANGOXFT_LIBS="" | |
26342 | ## If we have a custom action on failure, don't print errors, but | |
26343 | ## do set a variable so people can do so. | |
26344 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
26345 | ||
26346 | fi | |
26347 | ||
26348 | ||
26349 | ||
26350 | else | |
26351 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26352 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26353 | fi | |
26354 | fi | |
26355 | ||
26356 | if test $succeeded = yes; then | |
26357 | ||
4ae1af05 MB |
26358 | cat >>confdefs.h <<\_ACEOF |
26359 | #define HAVE_PANGO_XFT 1 | |
26360 | _ACEOF | |
26361 | ||
a848cd7e SC |
26362 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
26363 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
26364 | ||
26365 | else | |
26366 | ||
26367 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
26368 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
26369 | ||
26370 | ||
26371 | fi | |
26372 | ||
304205f1 VS |
26373 | save_CFLAGS="$CFLAGS" |
26374 | save_LIBS="$LIBS" | |
26375 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
26376 | LIBS="$LIBS $PANGOX_LIBS" | |
26377 | ||
26378 | for ac_func in pango_font_family_is_monospace | |
26379 | do | |
26380 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26381 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26382 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26383 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26385 | else | |
26386 | cat >conftest.$ac_ext <<_ACEOF | |
26387 | /* confdefs.h. */ | |
26388 | _ACEOF | |
26389 | cat confdefs.h >>conftest.$ac_ext | |
26390 | cat >>conftest.$ac_ext <<_ACEOF | |
26391 | /* end confdefs.h. */ | |
26392 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26393 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26394 | #define $ac_func innocuous_$ac_func | |
26395 | ||
26396 | /* System header to define __stub macros and hopefully few prototypes, | |
26397 | which can conflict with char $ac_func (); below. | |
26398 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26399 | <limits.h> exists even on freestanding compilers. */ | |
26400 | ||
26401 | #ifdef __STDC__ | |
26402 | # include <limits.h> | |
26403 | #else | |
26404 | # include <assert.h> | |
26405 | #endif | |
26406 | ||
26407 | #undef $ac_func | |
26408 | ||
26409 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26410 | #ifdef __cplusplus | |
26411 | extern "C" | |
26412 | { | |
26413 | #endif | |
26414 | /* We use char because int might match the return type of a gcc2 | |
26415 | builtin and then its argument prototype would still apply. */ | |
26416 | char $ac_func (); | |
26417 | /* The GNU C library defines this for functions which it implements | |
26418 | to always fail with ENOSYS. Some functions are actually named | |
26419 | something starting with __ and the normal name is an alias. */ | |
26420 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26421 | choke me | |
26422 | #else | |
26423 | char (*f) () = $ac_func; | |
26424 | #endif | |
26425 | #ifdef __cplusplus | |
26426 | } | |
26427 | #endif | |
26428 | ||
26429 | int | |
26430 | main () | |
26431 | { | |
26432 | return f != $ac_func; | |
26433 | ; | |
26434 | return 0; | |
26435 | } | |
26436 | _ACEOF | |
26437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26439 | (eval $ac_link) 2>conftest.er1 | |
26440 | ac_status=$? | |
26441 | grep -v '^ *+' conftest.er1 >conftest.err | |
26442 | rm -f conftest.er1 | |
26443 | cat conftest.err >&5 | |
26444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26445 | (exit $ac_status); } && | |
89be85c2 VS |
26446 | { ac_try='test -z "$ac_c_werror_flag" |
26447 | || test ! -s conftest.err' | |
304205f1 VS |
26448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26449 | (eval $ac_try) 2>&5 | |
26450 | ac_status=$? | |
26451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26452 | (exit $ac_status); }; } && | |
26453 | { ac_try='test -s conftest$ac_exeext' | |
26454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26455 | (eval $ac_try) 2>&5 | |
26456 | ac_status=$? | |
26457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26458 | (exit $ac_status); }; }; then | |
26459 | eval "$as_ac_var=yes" | |
26460 | else | |
26461 | echo "$as_me: failed program was:" >&5 | |
26462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26463 | ||
26464 | eval "$as_ac_var=no" | |
26465 | fi | |
26466 | rm -f conftest.err conftest.$ac_objext \ | |
26467 | conftest$ac_exeext conftest.$ac_ext | |
26468 | fi | |
26469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26470 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26471 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26472 | cat >>confdefs.h <<_ACEOF | |
26473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26474 | _ACEOF | |
26475 | ||
26476 | fi | |
26477 | done | |
26478 | ||
26479 | CFLAGS="$save_CFLAGS" | |
26480 | LIBS="$save_LIBS" | |
a848cd7e SC |
26481 | fi |
26482 | ||
26483 | wxUSE_UNIVERSAL="yes" | |
26484 | ||
26485 | if test "$wxUSE_NANOX" = "yes"; then | |
26486 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
26487 | 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" | |
26488 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
26489 | else | |
26490 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
26491 | fi | |
26492 | ||
a848cd7e SC |
26493 | TOOLKIT=X11 |
26494 | GUIDIST=X11_DIST | |
26495 | fi | |
26496 | ||
26497 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
26498 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
26499 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 26500 | |
74b84332 VS |
26501 | ac_find_includes= |
26502 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26503 | do | |
26504 | if test -f "$ac_dir/Xm/Xm.h"; then | |
26505 | ac_find_includes=$ac_dir | |
26506 | break | |
26507 | fi | |
26508 | done | |
a848cd7e | 26509 | |
74b84332 VS |
26510 | if test "$ac_find_includes" != "" ; then |
26511 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26512 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26513 | ||
26514 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26515 | ac_path_to_include="" | |
26516 | else | |
26517 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
26518 | result=$? | |
26519 | if test $result = 0; then | |
26520 | ac_path_to_include="" | |
26521 | else | |
26522 | ac_path_to_include=" -I$ac_find_includes" | |
26523 | fi | |
a848cd7e SC |
26524 | fi |
26525 | ||
74b84332 VS |
26526 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
26527 | else | |
26528 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26529 | /* confdefs.h. */ |
26530 | _ACEOF | |
26531 | cat confdefs.h >>conftest.$ac_ext | |
26532 | cat >>conftest.$ac_ext <<_ACEOF | |
26533 | /* end confdefs.h. */ | |
26534 | ||
74b84332 VS |
26535 | #include <Xm/Xm.h> |
26536 | ||
a848cd7e SC |
26537 | int |
26538 | main () | |
26539 | { | |
26540 | ||
74b84332 VS |
26541 | int version; |
26542 | version = xmUseVersion; | |
26543 | ||
a848cd7e SC |
26544 | ; |
26545 | return 0; | |
26546 | } | |
26547 | _ACEOF | |
74b84332 VS |
26548 | rm -f conftest.$ac_objext |
26549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26550 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26551 | ac_status=$? |
ac1cb8d3 VS |
26552 | grep -v '^ *+' conftest.er1 >conftest.err |
26553 | rm -f conftest.er1 | |
26554 | cat conftest.err >&5 | |
a848cd7e SC |
26555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26556 | (exit $ac_status); } && | |
89be85c2 VS |
26557 | { ac_try='test -z "$ac_c_werror_flag" |
26558 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26560 | (eval $ac_try) 2>&5 | |
26561 | ac_status=$? | |
26562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26563 | (exit $ac_status); }; } && | |
74b84332 | 26564 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26566 | (eval $ac_try) 2>&5 | |
26567 | ac_status=$? | |
26568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26569 | (exit $ac_status); }; }; then | |
74b84332 VS |
26570 | |
26571 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26572 | echo "${ECHO_T}found in default search path" >&6 | |
26573 | COMPILED_X_PROGRAM=1 | |
26574 | ||
a848cd7e SC |
26575 | else |
26576 | echo "$as_me: failed program was:" >&5 | |
26577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26578 | ||
a848cd7e | 26579 | |
74b84332 VS |
26580 | echo "$as_me:$LINENO: result: no" >&5 |
26581 | echo "${ECHO_T}no" >&6 | |
26582 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26583 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26584 | { (exit 1); exit 1; }; } | |
a848cd7e | 26585 | |
a848cd7e | 26586 | |
a848cd7e | 26587 | fi |
74b84332 VS |
26588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
26589 | fi | |
26590 | ||
26591 | if test "$COMPILED_X_PROGRAM" = 0; then | |
26592 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
26593 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26594 | ||
26595 | ac_find_libraries= | |
26596 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26597 | do | |
26598 | for ac_extension in a so sl dylib; do | |
26599 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26600 | ac_find_libraries=$ac_dir | |
26601 | break 2 | |
a848cd7e | 26602 | fi |
74b84332 VS |
26603 | done |
26604 | done | |
a848cd7e | 26605 | |
74b84332 VS |
26606 | if test "$ac_find_libraries" != "" ; then |
26607 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26608 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 26609 | |
74b84332 VS |
26610 | |
26611 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26612 | result=$? | |
26613 | if test $result = 0; then | |
26614 | ac_path_to_link="" | |
a848cd7e | 26615 | else |
74b84332 VS |
26616 | ac_path_to_link=" -L$ac_find_libraries" |
26617 | fi | |
26618 | ||
26619 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26620 | else | |
26621 | save_CFLAGS=$CFLAGS | |
26622 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26623 | ||
26624 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26625 | /* confdefs.h. */ |
26626 | _ACEOF | |
26627 | cat confdefs.h >>conftest.$ac_ext | |
26628 | cat >>conftest.$ac_ext <<_ACEOF | |
26629 | /* end confdefs.h. */ | |
26630 | ||
74b84332 VS |
26631 | #include <Xm/Xm.h> |
26632 | ||
a848cd7e SC |
26633 | int |
26634 | main () | |
26635 | { | |
74b84332 VS |
26636 | |
26637 | int version; | |
26638 | version = xmUseVersion; | |
26639 | ||
a848cd7e SC |
26640 | ; |
26641 | return 0; | |
26642 | } | |
26643 | _ACEOF | |
74b84332 VS |
26644 | rm -f conftest.$ac_objext |
26645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26646 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26647 | ac_status=$? |
ac1cb8d3 VS |
26648 | grep -v '^ *+' conftest.er1 >conftest.err |
26649 | rm -f conftest.er1 | |
26650 | cat conftest.err >&5 | |
a848cd7e SC |
26651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26652 | (exit $ac_status); } && | |
89be85c2 VS |
26653 | { ac_try='test -z "$ac_c_werror_flag" |
26654 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26656 | (eval $ac_try) 2>&5 | |
26657 | ac_status=$? | |
26658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26659 | (exit $ac_status); }; } && | |
74b84332 | 26660 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26662 | (eval $ac_try) 2>&5 | |
26663 | ac_status=$? | |
26664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26665 | (exit $ac_status); }; }; then | |
74b84332 VS |
26666 | |
26667 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26668 | echo "${ECHO_T}found in default search path" >&6 | |
26669 | COMPILED_X_PROGRAM=1 | |
26670 | ||
a848cd7e SC |
26671 | else |
26672 | echo "$as_me: failed program was:" >&5 | |
26673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26674 | ||
74b84332 VS |
26675 | |
26676 | echo "$as_me:$LINENO: result: no" >&5 | |
26677 | echo "${ECHO_T}no" >&6 | |
26678 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26679 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26680 | { (exit 1); exit 1; }; } | |
26681 | ||
26682 | ||
26683 | fi | |
26684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26685 | ||
26686 | CFLAGS=$save_CFLAGS | |
26687 | fi | |
26688 | fi | |
26689 | ||
26690 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
26691 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
26692 | libp_link="" | |
26693 | libsm_ice_link="" | |
26694 | libs_found=0 | |
26695 | for libp in "" " -lXp"; do | |
26696 | if test "$libs_found" = "0"; then | |
26697 | for libsm_ice in "" " -lSM -lICE"; do | |
26698 | if test "$libs_found" = "0"; then | |
26699 | save_LIBS="$LIBS" | |
26700 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
26701 | save_CFLAGS=$CFLAGS | |
26702 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26703 | ||
26704 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26705 | /* confdefs.h. */ |
26706 | _ACEOF | |
26707 | cat confdefs.h >>conftest.$ac_ext | |
26708 | cat >>conftest.$ac_ext <<_ACEOF | |
26709 | /* end confdefs.h. */ | |
26710 | ||
74b84332 VS |
26711 | #include <Xm/Xm.h> |
26712 | #include <Xm/List.h> | |
26713 | ||
a848cd7e SC |
26714 | int |
26715 | main () | |
26716 | { | |
74b84332 VS |
26717 | |
26718 | XmString string = NULL; | |
26719 | Widget w = NULL; | |
26720 | int position = 0; | |
26721 | XmListAddItem(w, string, position); | |
26722 | ||
a848cd7e SC |
26723 | ; |
26724 | return 0; | |
26725 | } | |
26726 | _ACEOF | |
26727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26729 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26730 | ac_status=$? |
ac1cb8d3 VS |
26731 | grep -v '^ *+' conftest.er1 >conftest.err |
26732 | rm -f conftest.er1 | |
26733 | cat conftest.err >&5 | |
a848cd7e SC |
26734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26735 | (exit $ac_status); } && | |
89be85c2 VS |
26736 | { ac_try='test -z "$ac_c_werror_flag" |
26737 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26739 | (eval $ac_try) 2>&5 | |
26740 | ac_status=$? | |
26741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26742 | (exit $ac_status); }; } && | |
26743 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26745 | (eval $ac_try) 2>&5 | |
26746 | ac_status=$? | |
26747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26748 | (exit $ac_status); }; }; then | |
26749 | ||
26750 | libp_link="$libp" | |
26751 | libsm_ice_link="$libsm_ice" | |
26752 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26753 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26754 | libs_found=1 | |
26755 | ||
26756 | else | |
26757 | echo "$as_me: failed program was:" >&5 | |
26758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26759 | ||
26760 | ||
26761 | ||
26762 | fi | |
ac1cb8d3 VS |
26763 | rm -f conftest.err conftest.$ac_objext \ |
26764 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26765 | |
26766 | LIBS="$save_LIBS" | |
26767 | CFLAGS=$save_CFLAGS | |
26768 | fi | |
26769 | done | |
26770 | fi | |
26771 | done | |
26772 | ||
26773 | if test "$libs_found" = "0"; then | |
26774 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26775 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26776 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26777 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26778 | { (exit 1); exit 1; }; } | |
26779 | fi | |
26780 | ||
26781 | save_CFLAGS=$CFLAGS | |
26782 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26783 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26784 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26785 | cat >conftest.$ac_ext <<_ACEOF | |
26786 | /* confdefs.h. */ | |
26787 | _ACEOF | |
26788 | cat confdefs.h >>conftest.$ac_ext | |
26789 | cat >>conftest.$ac_ext <<_ACEOF | |
26790 | /* end confdefs.h. */ | |
26791 | ||
26792 | #include <Xm/Xm.h> | |
26793 | ||
26794 | int | |
26795 | main () | |
26796 | { | |
26797 | ||
26798 | #if XmVersion < 2000 | |
26799 | #error "Not Motif 2" | |
26800 | #endif | |
26801 | ||
26802 | ; | |
26803 | return 0; | |
26804 | } | |
26805 | _ACEOF | |
26806 | rm -f conftest.$ac_objext | |
26807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26808 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26809 | ac_status=$? |
ac1cb8d3 VS |
26810 | grep -v '^ *+' conftest.er1 >conftest.err |
26811 | rm -f conftest.er1 | |
26812 | cat conftest.err >&5 | |
a848cd7e SC |
26813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26814 | (exit $ac_status); } && | |
89be85c2 VS |
26815 | { ac_try='test -z "$ac_c_werror_flag" |
26816 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26818 | (eval $ac_try) 2>&5 | |
26819 | ac_status=$? | |
26820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26821 | (exit $ac_status); }; } && | |
26822 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26824 | (eval $ac_try) 2>&5 | |
26825 | ac_status=$? | |
26826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26827 | (exit $ac_status); }; }; then | |
26828 | ||
26829 | cat >>confdefs.h <<\_ACEOF | |
26830 | #define __WXMOTIF20__ 1 | |
26831 | _ACEOF | |
26832 | ||
26833 | echo "$as_me:$LINENO: result: found" >&5 | |
26834 | echo "${ECHO_T}found" >&6 | |
26835 | ||
26836 | else | |
26837 | echo "$as_me: failed program was:" >&5 | |
26838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26839 | ||
26840 | ||
26841 | cat >>confdefs.h <<\_ACEOF | |
26842 | #define __WXMOTIF20__ 0 | |
26843 | _ACEOF | |
26844 | ||
26845 | echo "$as_me:$LINENO: result: not found" >&5 | |
26846 | echo "${ECHO_T}not found" >&6 | |
26847 | ||
26848 | fi | |
ac1cb8d3 | 26849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26850 | CFLAGS=$save_CFLAGS |
26851 | ||
26852 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26853 | TOOLKIT=MOTIF |
26854 | GUIDIST=MOTIF_DIST | |
26855 | fi | |
26856 | ||
74b84332 | 26857 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26858 | if test "$wxUSE_LIBXPM" = "sys"; then |
26859 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26860 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26861 | ||
26862 | ac_find_libraries= | |
26863 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26864 | do | |
26865 | for ac_extension in a so sl dylib; do | |
26866 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26867 | ac_find_libraries=$ac_dir | |
26868 | break 2 | |
26869 | fi | |
26870 | done | |
26871 | done | |
26872 | ||
26873 | if test "$ac_find_libraries" != "" ; then | |
26874 | ||
26875 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26876 | result=$? | |
26877 | if test $result = 0; then | |
26878 | ac_path_to_link="" | |
26879 | else | |
26880 | ac_path_to_link=" -L$ac_find_libraries" | |
26881 | fi | |
26882 | ||
26883 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26884 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26885 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26886 | ||
26887 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26888 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26889 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26891 | else | |
26892 | ||
26893 | save_CFLAGS=$CFLAGS | |
26894 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26895 | ||
26896 | cat >conftest.$ac_ext <<_ACEOF | |
26897 | /* confdefs.h. */ | |
26898 | _ACEOF | |
26899 | cat confdefs.h >>conftest.$ac_ext | |
26900 | cat >>conftest.$ac_ext <<_ACEOF | |
26901 | /* end confdefs.h. */ | |
26902 | ||
26903 | #include <X11/xpm.h> | |
26904 | ||
26905 | int | |
26906 | main () | |
26907 | { | |
26908 | ||
26909 | int version; | |
26910 | version = XpmLibraryVersion(); | |
26911 | ||
26912 | ; | |
26913 | return 0; | |
26914 | } | |
26915 | _ACEOF | |
26916 | rm -f conftest.$ac_objext | |
26917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26918 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26919 | ac_status=$? |
ac1cb8d3 VS |
26920 | grep -v '^ *+' conftest.er1 >conftest.err |
26921 | rm -f conftest.er1 | |
26922 | cat conftest.err >&5 | |
a848cd7e SC |
26923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26924 | (exit $ac_status); } && | |
89be85c2 VS |
26925 | { ac_try='test -z "$ac_c_werror_flag" |
26926 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26928 | (eval $ac_try) 2>&5 | |
26929 | ac_status=$? | |
26930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26931 | (exit $ac_status); }; } && | |
26932 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26934 | (eval $ac_try) 2>&5 | |
26935 | ac_status=$? | |
26936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26937 | (exit $ac_status); }; }; then | |
26938 | wx_cv_x11_xpm_h=yes | |
26939 | else | |
26940 | echo "$as_me: failed program was:" >&5 | |
26941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26942 | ||
26943 | wx_cv_x11_xpm_h=no | |
26944 | ||
26945 | fi | |
ac1cb8d3 | 26946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26947 | |
26948 | CFLAGS=$save_CFLAGS | |
26949 | ||
26950 | ||
26951 | fi | |
26952 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26953 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26954 | ||
26955 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26956 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26957 | cat >>confdefs.h <<\_ACEOF | |
26958 | #define wxHAVE_LIB_XPM 1 | |
26959 | _ACEOF | |
26960 | ||
26961 | else | |
26962 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26963 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26964 | fi | |
26965 | fi | |
26966 | ||
26967 | fi | |
26968 | ||
26969 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26970 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26971 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26973 | else | |
26974 | ac_check_lib_save_LIBS=$LIBS | |
26975 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26976 | cat >conftest.$ac_ext <<_ACEOF | |
26977 | /* confdefs.h. */ | |
26978 | _ACEOF | |
26979 | cat confdefs.h >>conftest.$ac_ext | |
26980 | cat >>conftest.$ac_ext <<_ACEOF | |
26981 | /* end confdefs.h. */ | |
26982 | ||
26983 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26984 | #ifdef __cplusplus | |
26985 | extern "C" | |
26986 | #endif | |
26987 | /* We use char because int might match the return type of a gcc2 | |
26988 | builtin and then its argument prototype would still apply. */ | |
26989 | char XShapeQueryExtension (); | |
26990 | int | |
26991 | main () | |
26992 | { | |
26993 | XShapeQueryExtension (); | |
26994 | ; | |
26995 | return 0; | |
26996 | } | |
26997 | _ACEOF | |
26998 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27000 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27001 | ac_status=$? |
ac1cb8d3 VS |
27002 | grep -v '^ *+' conftest.er1 >conftest.err |
27003 | rm -f conftest.er1 | |
27004 | cat conftest.err >&5 | |
a848cd7e SC |
27005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27006 | (exit $ac_status); } && | |
89be85c2 VS |
27007 | { ac_try='test -z "$ac_c_werror_flag" |
27008 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27010 | (eval $ac_try) 2>&5 | |
27011 | ac_status=$? | |
27012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27013 | (exit $ac_status); }; } && | |
27014 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27016 | (eval $ac_try) 2>&5 | |
27017 | ac_status=$? | |
27018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27019 | (exit $ac_status); }; }; then | |
27020 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
27021 | else | |
27022 | echo "$as_me: failed program was:" >&5 | |
27023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27024 | ||
27025 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
27026 | fi | |
ac1cb8d3 VS |
27027 | rm -f conftest.err conftest.$ac_objext \ |
27028 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27029 | LIBS=$ac_check_lib_save_LIBS |
27030 | fi | |
27031 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
27032 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
27033 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
27034 | ||
27035 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
27036 | wxHAVE_XEXT_LIB=1 | |
27037 | ||
27038 | fi | |
27039 | ||
27040 | ||
27041 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
27042 | save_CFLAGS="$CFLAGS" | |
27043 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27044 | ||
27045 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
27046 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
27047 | cat >conftest.$ac_ext <<_ACEOF | |
27048 | /* confdefs.h. */ | |
27049 | _ACEOF | |
27050 | cat confdefs.h >>conftest.$ac_ext | |
27051 | cat >>conftest.$ac_ext <<_ACEOF | |
27052 | /* end confdefs.h. */ | |
27053 | ||
27054 | #include <X11/Xlib.h> | |
27055 | #include <X11/extensions/shape.h> | |
27056 | ||
27057 | int | |
27058 | main () | |
27059 | { | |
27060 | ||
27061 | int dummy1, dummy2; | |
27062 | XShapeQueryExtension((Display*)NULL, | |
27063 | (int*)NULL, (int*)NULL); | |
27064 | ||
27065 | ; | |
27066 | return 0; | |
27067 | } | |
27068 | _ACEOF | |
27069 | rm -f conftest.$ac_objext | |
27070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27071 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27072 | ac_status=$? |
ac1cb8d3 VS |
27073 | grep -v '^ *+' conftest.er1 >conftest.err |
27074 | rm -f conftest.er1 | |
27075 | cat conftest.err >&5 | |
a848cd7e SC |
27076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27077 | (exit $ac_status); } && | |
89be85c2 VS |
27078 | { ac_try='test -z "$ac_c_werror_flag" |
27079 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27081 | (eval $ac_try) 2>&5 | |
27082 | ac_status=$? | |
27083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27084 | (exit $ac_status); }; } && | |
27085 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27087 | (eval $ac_try) 2>&5 | |
27088 | ac_status=$? | |
27089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27090 | (exit $ac_status); }; }; then | |
27091 | ||
27092 | cat >>confdefs.h <<\_ACEOF | |
27093 | #define HAVE_XSHAPE 1 | |
27094 | _ACEOF | |
27095 | ||
27096 | echo "$as_me:$LINENO: result: found" >&5 | |
27097 | echo "${ECHO_T}found" >&6 | |
27098 | ||
27099 | else | |
27100 | echo "$as_me: failed program was:" >&5 | |
27101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27102 | ||
27103 | ||
27104 | echo "$as_me:$LINENO: result: not found" >&5 | |
27105 | echo "${ECHO_T}not found" >&6 | |
27106 | ||
27107 | fi | |
ac1cb8d3 | 27108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27109 | CFLAGS="$save_CFLAGS" |
27110 | ||
27111 | fi | |
27112 | fi | |
27113 | ||
27114 | if test "$wxUSE_MAC" = 1; then | |
27115 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
27116 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
27117 | if test "$GCC" = yes; then | |
27118 | echo "$as_me:$LINENO: result: gcc" >&5 | |
27119 | echo "${ECHO_T}gcc" >&6 | |
27120 | CPPFLAGS_PASCAL="-fpascal-strings" | |
27121 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
27122 | echo "$as_me:$LINENO: result: xlc" >&5 | |
27123 | echo "${ECHO_T}xlc" >&6 | |
27124 | CPPFLAGS_PASCAL="-qmacpstr" | |
27125 | else | |
27126 | echo "$as_me:$LINENO: result: none" >&5 | |
27127 | echo "${ECHO_T}none" >&6 | |
27128 | fi | |
27129 | ||
1e9e8aba DE |
27130 | if test "x$wxUSE_UNIX" = "xyes"; then |
27131 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
27132 | else | |
27133 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
27134 | fi | |
a848cd7e | 27135 | |
a848cd7e SC |
27136 | TOOLKIT=MAC |
27137 | GUIDIST=MACX_DIST | |
dd21ced8 | 27138 | WXBASEPORT="_carbon" |
a848cd7e SC |
27139 | fi |
27140 | ||
27141 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
27142 | TOOLKIT=COCOA |
27143 | GUIDIST=COCOA_DIST | |
27144 | fi | |
27145 | ||
27146 | if test "$wxUSE_PM" = 1; then | |
27147 | TOOLKIT=PM | |
de59c161 RD |
27148 | GUIDIST=PM_DIST |
27149 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
27150 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
27151 | if test "${wx_cv_spbcdata+set}" = set; then | |
27152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27153 | else | |
27154 | ||
27155 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
27156 | /* confdefs.h. */ |
27157 | _ACEOF | |
27158 | cat confdefs.h >>conftest.$ac_ext | |
27159 | cat >>conftest.$ac_ext <<_ACEOF | |
27160 | /* end confdefs.h. */ | |
27161 | ||
27162 | #define INCL_PM | |
27163 | #include <os2.h> | |
27164 | ||
27165 | int | |
27166 | main () | |
27167 | { | |
27168 | ||
27169 | SPBCDATA test; | |
27170 | ||
27171 | ; | |
27172 | return 0; | |
27173 | } | |
27174 | _ACEOF | |
27175 | rm -f conftest.$ac_objext | |
27176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27177 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 27178 | ac_status=$? |
ac1cb8d3 VS |
27179 | grep -v '^ *+' conftest.er1 >conftest.err |
27180 | rm -f conftest.er1 | |
27181 | cat conftest.err >&5 | |
de59c161 RD |
27182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27183 | (exit $ac_status); } && | |
89be85c2 VS |
27184 | { ac_try='test -z "$ac_c_werror_flag" |
27185 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27187 | (eval $ac_try) 2>&5 | |
27188 | ac_status=$? | |
27189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27190 | (exit $ac_status); }; } && | |
27191 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
27192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27193 | (eval $ac_try) 2>&5 | |
27194 | ac_status=$? | |
27195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27196 | (exit $ac_status); }; }; then | |
27197 | wx_cv_spbcdata=yes | |
27198 | else | |
27199 | echo "$as_me: failed program was:" >&5 | |
27200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27201 | ||
27202 | wx_cv_spbcdata=no | |
27203 | ||
27204 | fi | |
ac1cb8d3 | 27205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
27206 | |
27207 | ||
27208 | fi | |
27209 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
27210 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
27211 | ||
27212 | if test $wx_cv_spbcdata = "yes"; then | |
27213 | cat >>confdefs.h <<\_ACEOF | |
27214 | #define HAVE_SPBCDATA 1 | |
27215 | _ACEOF | |
27216 | ||
27217 | fi | |
a848cd7e SC |
27218 | fi |
27219 | ||
27220 | if test "$TOOLKIT" = "PM" ; then | |
27221 | TOOLKIT_DIR="os2" | |
27222 | else | |
27223 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
27224 | fi | |
27225 | ||
a848cd7e | 27226 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
27227 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
27228 | WIDGET_SET=univ | |
a848cd7e SC |
27229 | fi |
27230 | ||
27231 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
27232 | DISTDIR="wx\$(TOOLKIT)" | |
27233 | else | |
27234 | USE_GUI=0 | |
27235 | ||
27236 | TOOLKIT_DIR="base" | |
27237 | ||
27238 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 27239 | TOOLKIT="MSW" |
a848cd7e SC |
27240 | fi |
27241 | ||
a848cd7e SC |
27242 | GUIDIST="BASE_DIST" |
27243 | DISTDIR="wxBase" | |
27244 | fi | |
27245 | ||
27246 | ||
27247 | ||
27248 | ||
27249 | IODBC_C_SRC="" | |
27250 | ||
27251 | ||
27252 | if test "$TOOLKIT" != "MSW" ; then | |
27253 | ||
27254 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
27255 | ||
27256 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27257 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27258 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27259 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27261 | fi | |
27262 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27263 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27264 | else | |
27265 | # Is the header compilable? | |
27266 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
27267 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
27268 | cat >conftest.$ac_ext <<_ACEOF | |
27269 | /* confdefs.h. */ | |
27270 | _ACEOF | |
27271 | cat confdefs.h >>conftest.$ac_ext | |
27272 | cat >>conftest.$ac_ext <<_ACEOF | |
27273 | /* end confdefs.h. */ | |
27274 | $ac_includes_default | |
27275 | #include <sql.h> | |
27276 | _ACEOF | |
27277 | rm -f conftest.$ac_objext | |
27278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27279 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27280 | ac_status=$? |
ac1cb8d3 VS |
27281 | grep -v '^ *+' conftest.er1 >conftest.err |
27282 | rm -f conftest.er1 | |
27283 | cat conftest.err >&5 | |
a848cd7e SC |
27284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27285 | (exit $ac_status); } && | |
89be85c2 VS |
27286 | { ac_try='test -z "$ac_c_werror_flag" |
27287 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27289 | (eval $ac_try) 2>&5 | |
27290 | ac_status=$? | |
27291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27292 | (exit $ac_status); }; } && | |
27293 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27295 | (eval $ac_try) 2>&5 | |
27296 | ac_status=$? | |
27297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27298 | (exit $ac_status); }; }; then | |
27299 | ac_header_compiler=yes | |
27300 | else | |
27301 | echo "$as_me: failed program was:" >&5 | |
27302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27303 | ||
27304 | ac_header_compiler=no | |
27305 | fi | |
ac1cb8d3 | 27306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27307 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27308 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27309 | ||
27310 | # Is the header present? | |
27311 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
27312 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
27313 | cat >conftest.$ac_ext <<_ACEOF | |
27314 | /* confdefs.h. */ | |
27315 | _ACEOF | |
27316 | cat confdefs.h >>conftest.$ac_ext | |
27317 | cat >>conftest.$ac_ext <<_ACEOF | |
27318 | /* end confdefs.h. */ | |
27319 | #include <sql.h> | |
27320 | _ACEOF | |
27321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27323 | ac_status=$? | |
27324 | grep -v '^ *+' conftest.er1 >conftest.err | |
27325 | rm -f conftest.er1 | |
27326 | cat conftest.err >&5 | |
27327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27328 | (exit $ac_status); } >/dev/null; then | |
27329 | if test -s conftest.err; then | |
27330 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27331 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27332 | else |
27333 | ac_cpp_err= | |
27334 | fi | |
27335 | else | |
27336 | ac_cpp_err=yes | |
27337 | fi | |
27338 | if test -z "$ac_cpp_err"; then | |
27339 | ac_header_preproc=yes | |
27340 | else | |
27341 | echo "$as_me: failed program was:" >&5 | |
27342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27343 | ||
27344 | ac_header_preproc=no | |
27345 | fi | |
27346 | rm -f conftest.err conftest.$ac_ext | |
27347 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27348 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27349 | ||
27350 | # So? What about this header? | |
ac1cb8d3 VS |
27351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27352 | yes:no: ) | |
a848cd7e SC |
27353 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27354 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27355 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
27356 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
27357 | ac_header_preproc=yes | |
a848cd7e | 27358 | ;; |
ac1cb8d3 | 27359 | no:yes:* ) |
a848cd7e SC |
27360 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
27361 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27362 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
27363 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
27364 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
27365 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
27366 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27367 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27368 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
27369 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27370 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
27371 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27372 | ( |
27373 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27374 | ## ----------------------------------------- ## |
27375 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27376 | ## ----------------------------------------- ## | |
a848cd7e SC |
27377 | _ASBOX |
27378 | ) | | |
27379 | sed "s/^/$as_me: WARNING: /" >&2 | |
27380 | ;; | |
27381 | esac | |
27382 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27383 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27384 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27386 | else | |
27387 | ac_cv_header_sql_h=$ac_header_preproc | |
27388 | fi | |
27389 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27390 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27391 | ||
27392 | fi | |
27393 | if test $ac_cv_header_sql_h = yes; then | |
27394 | found_sql_h=1 | |
27395 | fi | |
27396 | ||
27397 | ||
27398 | if test "x$found_sql_h" = "x1" ; then | |
27399 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
27400 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
27401 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
27402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27403 | else | |
27404 | ac_check_lib_save_LIBS=$LIBS | |
27405 | LIBS="-liodbc $LIBS" | |
27406 | cat >conftest.$ac_ext <<_ACEOF | |
27407 | /* confdefs.h. */ | |
27408 | _ACEOF | |
27409 | cat confdefs.h >>conftest.$ac_ext | |
27410 | cat >>conftest.$ac_ext <<_ACEOF | |
27411 | /* end confdefs.h. */ | |
27412 | ||
27413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27414 | #ifdef __cplusplus | |
27415 | extern "C" | |
27416 | #endif | |
27417 | /* We use char because int might match the return type of a gcc2 | |
27418 | builtin and then its argument prototype would still apply. */ | |
27419 | char SQLAllocEnv (); | |
27420 | int | |
27421 | main () | |
27422 | { | |
27423 | SQLAllocEnv (); | |
27424 | ; | |
27425 | return 0; | |
27426 | } | |
27427 | _ACEOF | |
27428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27430 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27431 | ac_status=$? |
ac1cb8d3 VS |
27432 | grep -v '^ *+' conftest.er1 >conftest.err |
27433 | rm -f conftest.er1 | |
27434 | cat conftest.err >&5 | |
a848cd7e SC |
27435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27436 | (exit $ac_status); } && | |
89be85c2 VS |
27437 | { ac_try='test -z "$ac_c_werror_flag" |
27438 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27440 | (eval $ac_try) 2>&5 | |
27441 | ac_status=$? | |
27442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27443 | (exit $ac_status); }; } && | |
27444 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27446 | (eval $ac_try) 2>&5 | |
27447 | ac_status=$? | |
27448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27449 | (exit $ac_status); }; }; then | |
27450 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
27451 | else | |
27452 | echo "$as_me: failed program was:" >&5 | |
27453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27454 | ||
27455 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
27456 | fi | |
ac1cb8d3 VS |
27457 | rm -f conftest.err conftest.$ac_objext \ |
27458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27459 | LIBS=$ac_check_lib_save_LIBS |
27460 | fi | |
27461 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
27462 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
27463 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
27464 | ODBC_LINK=" -liodbc" | |
27465 | else | |
27466 | ||
27467 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
27468 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
27469 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
27470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27471 | else | |
27472 | ac_check_lib_save_LIBS=$LIBS | |
27473 | LIBS="-lunixodbc $LIBS" | |
27474 | cat >conftest.$ac_ext <<_ACEOF | |
27475 | /* confdefs.h. */ | |
27476 | _ACEOF | |
27477 | cat confdefs.h >>conftest.$ac_ext | |
27478 | cat >>conftest.$ac_ext <<_ACEOF | |
27479 | /* end confdefs.h. */ | |
27480 | ||
27481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27482 | #ifdef __cplusplus | |
27483 | extern "C" | |
27484 | #endif | |
27485 | /* We use char because int might match the return type of a gcc2 | |
27486 | builtin and then its argument prototype would still apply. */ | |
27487 | char SQLAllocEnv (); | |
27488 | int | |
27489 | main () | |
27490 | { | |
27491 | SQLAllocEnv (); | |
27492 | ; | |
27493 | return 0; | |
27494 | } | |
27495 | _ACEOF | |
27496 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27498 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27499 | ac_status=$? |
ac1cb8d3 VS |
27500 | grep -v '^ *+' conftest.er1 >conftest.err |
27501 | rm -f conftest.er1 | |
27502 | cat conftest.err >&5 | |
a848cd7e SC |
27503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27504 | (exit $ac_status); } && | |
89be85c2 VS |
27505 | { ac_try='test -z "$ac_c_werror_flag" |
27506 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27508 | (eval $ac_try) 2>&5 | |
27509 | ac_status=$? | |
27510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27511 | (exit $ac_status); }; } && | |
27512 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27514 | (eval $ac_try) 2>&5 | |
27515 | ac_status=$? | |
27516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27517 | (exit $ac_status); }; }; then | |
27518 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
27519 | else | |
27520 | echo "$as_me: failed program was:" >&5 | |
27521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27522 | ||
27523 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
27524 | fi | |
ac1cb8d3 VS |
27525 | rm -f conftest.err conftest.$ac_objext \ |
27526 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27527 | LIBS=$ac_check_lib_save_LIBS |
27528 | fi | |
27529 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
27530 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
27531 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
27532 | ODBC_LINK=" -lunixodbc" | |
27533 | else | |
27534 | ||
27535 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
27536 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
27537 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
27538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27539 | else | |
27540 | ac_check_lib_save_LIBS=$LIBS | |
27541 | LIBS="-lodbc $LIBS" | |
27542 | cat >conftest.$ac_ext <<_ACEOF | |
27543 | /* confdefs.h. */ | |
27544 | _ACEOF | |
27545 | cat confdefs.h >>conftest.$ac_ext | |
27546 | cat >>conftest.$ac_ext <<_ACEOF | |
27547 | /* end confdefs.h. */ | |
27548 | ||
27549 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27550 | #ifdef __cplusplus | |
27551 | extern "C" | |
27552 | #endif | |
27553 | /* We use char because int might match the return type of a gcc2 | |
27554 | builtin and then its argument prototype would still apply. */ | |
27555 | char SQLAllocEnv (); | |
27556 | int | |
27557 | main () | |
27558 | { | |
27559 | SQLAllocEnv (); | |
27560 | ; | |
27561 | return 0; | |
27562 | } | |
27563 | _ACEOF | |
27564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27566 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27567 | ac_status=$? |
ac1cb8d3 VS |
27568 | grep -v '^ *+' conftest.er1 >conftest.err |
27569 | rm -f conftest.er1 | |
27570 | cat conftest.err >&5 | |
a848cd7e SC |
27571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27572 | (exit $ac_status); } && | |
89be85c2 VS |
27573 | { ac_try='test -z "$ac_c_werror_flag" |
27574 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27576 | (eval $ac_try) 2>&5 | |
27577 | ac_status=$? | |
27578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27579 | (exit $ac_status); }; } && | |
27580 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27582 | (eval $ac_try) 2>&5 | |
27583 | ac_status=$? | |
27584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27585 | (exit $ac_status); }; }; then | |
27586 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
27587 | else | |
27588 | echo "$as_me: failed program was:" >&5 | |
27589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27590 | ||
27591 | ac_cv_lib_odbc_SQLAllocEnv=no | |
27592 | fi | |
ac1cb8d3 VS |
27593 | rm -f conftest.err conftest.$ac_objext \ |
27594 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27595 | LIBS=$ac_check_lib_save_LIBS |
27596 | fi | |
27597 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
27598 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
27599 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
27600 | ODBC_LINK=" -lodbc" | |
27601 | fi | |
27602 | ||
27603 | ||
27604 | fi | |
27605 | ||
27606 | ||
27607 | fi | |
27608 | ||
27609 | fi | |
27610 | if test "x$ODBC_LINK" = "x" ; then | |
27611 | if test "$wxUSE_ODBC" = "sys" ; then | |
27612 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
27613 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
27614 | { (exit 1); exit 1; }; } | |
27615 | else | |
27616 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
27617 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
27618 | wxUSE_ODBC=builtin | |
27619 | fi | |
27620 | else | |
27621 | wxUSE_ODBC=sys | |
27622 | fi | |
27623 | fi | |
27624 | if test "$wxUSE_ODBC" != "no" ; then | |
27625 | cat >>confdefs.h <<\_ACEOF | |
27626 | #define wxUSE_ODBC 1 | |
27627 | _ACEOF | |
27628 | ||
27629 | if test "$wxUSE_ODBC" = "builtin" ; then | |
27630 | cat >>confdefs.h <<\_ACEOF | |
27631 | #define wxUSE_BUILTIN_IODBC 1 | |
27632 | _ACEOF | |
27633 | ||
27634 | fi | |
27635 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
27636 | ||
27637 | WXODBCFLAG="-D_IODBC_" | |
27638 | fi | |
27639 | fi | |
27640 | ||
a848cd7e | 27641 | |
01cb68df | 27642 | |
a848cd7e | 27643 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 27644 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
27645 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
27646 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
27647 | ||
27648 | ac_find_libraries= | |
27649 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27650 | do | |
27651 | for ac_extension in a so sl dylib; do | |
27652 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
27653 | ac_find_libraries=$ac_dir | |
27654 | break 2 | |
27655 | fi | |
27656 | done | |
27657 | done | |
27658 | ||
27659 | if test "$ac_find_libraries" != "" ; then | |
27660 | ||
27661 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27662 | result=$? | |
27663 | if test $result = 0; then | |
27664 | ac_path_to_link="" | |
27665 | else | |
27666 | ac_path_to_link=" -L$ac_find_libraries" | |
27667 | fi | |
27668 | ||
27669 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27670 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27671 | fi | |
27672 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27673 | echo "$as_me:$LINENO: result: yes" >&5 | |
27674 | echo "${ECHO_T}yes" >&6 | |
27675 | ||
27676 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27677 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27678 | ||
27679 | ac_find_libraries= | |
27680 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27681 | do | |
27682 | for ac_extension in a so sl dylib; do | |
27683 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27684 | ac_find_libraries=$ac_dir | |
27685 | break 2 | |
27686 | fi | |
27687 | done | |
27688 | done | |
27689 | ||
27690 | if test "$ac_find_libraries" != "" ; then | |
27691 | echo "$as_me:$LINENO: result: yes" >&5 | |
27692 | echo "${ECHO_T}yes" >&6 | |
27693 | ||
27694 | for ac_header in X11/extensions/xf86vmode.h | |
27695 | do | |
27696 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27701 | else | |
27702 | cat >conftest.$ac_ext <<_ACEOF | |
27703 | /* confdefs.h. */ | |
27704 | _ACEOF | |
27705 | cat confdefs.h >>conftest.$ac_ext | |
27706 | cat >>conftest.$ac_ext <<_ACEOF | |
27707 | /* end confdefs.h. */ | |
27708 | ||
27709 | #if HAVE_X11_XLIB_H | |
27710 | #include <X11/Xlib.h> | |
27711 | #endif | |
27712 | ||
27713 | ||
27714 | #include <$ac_header> | |
27715 | _ACEOF | |
27716 | rm -f conftest.$ac_objext | |
27717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27718 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27719 | ac_status=$? |
ac1cb8d3 VS |
27720 | grep -v '^ *+' conftest.er1 >conftest.err |
27721 | rm -f conftest.er1 | |
27722 | cat conftest.err >&5 | |
a848cd7e SC |
27723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27724 | (exit $ac_status); } && | |
89be85c2 VS |
27725 | { ac_try='test -z "$ac_c_werror_flag" |
27726 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27728 | (eval $ac_try) 2>&5 | |
27729 | ac_status=$? | |
27730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27731 | (exit $ac_status); }; } && | |
27732 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27734 | (eval $ac_try) 2>&5 | |
27735 | ac_status=$? | |
27736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27737 | (exit $ac_status); }; }; then | |
27738 | eval "$as_ac_Header=yes" | |
27739 | else | |
27740 | echo "$as_me: failed program was:" >&5 | |
27741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27742 | ||
27743 | eval "$as_ac_Header=no" | |
27744 | fi | |
ac1cb8d3 | 27745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27746 | fi |
27747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27748 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27749 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27750 | cat >>confdefs.h <<_ACEOF | |
27751 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27752 | _ACEOF | |
27753 | ||
27754 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27755 | ||
27756 | fi | |
27757 | ||
27758 | done | |
27759 | ||
27760 | else | |
27761 | echo "$as_me:$LINENO: result: no" >&5 | |
27762 | echo "${ECHO_T}no" >&6 | |
27763 | fi | |
27764 | ||
27765 | else | |
27766 | echo "$as_me:$LINENO: result: no" >&5 | |
27767 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27768 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27769 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27770 | wxUSE_DISPLAY="no" |
27771 | fi | |
01cb68df RG |
27772 | elif test "$wxUSE_MSW" = 1; then |
27773 | ||
27774 | ||
27775 | for ac_header in multimon.h ddraw.h | |
27776 | do | |
27777 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 27778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
27779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
27780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 27782 | else |
5294a27e | 27783 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
27784 | /* confdefs.h. */ |
27785 | _ACEOF | |
27786 | cat confdefs.h >>conftest.$ac_ext | |
27787 | cat >>conftest.$ac_ext <<_ACEOF | |
27788 | /* end confdefs.h. */ | |
5294a27e VZ |
27789 | #include <windows.h> |
27790 | ||
01cb68df RG |
27791 | #include <$ac_header> |
27792 | _ACEOF | |
27793 | rm -f conftest.$ac_objext | |
27794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27795 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27796 | ac_status=$? |
ac1cb8d3 VS |
27797 | grep -v '^ *+' conftest.er1 >conftest.err |
27798 | rm -f conftest.er1 | |
27799 | cat conftest.err >&5 | |
01cb68df RG |
27800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27801 | (exit $ac_status); } && | |
89be85c2 VS |
27802 | { ac_try='test -z "$ac_c_werror_flag" |
27803 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27805 | (eval $ac_try) 2>&5 | |
27806 | ac_status=$? | |
27807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27808 | (exit $ac_status); }; } && | |
27809 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27811 | (eval $ac_try) 2>&5 | |
27812 | ac_status=$? | |
27813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27814 | (exit $ac_status); }; }; then | |
5294a27e | 27815 | eval "$as_ac_Header=yes" |
01cb68df RG |
27816 | else |
27817 | echo "$as_me: failed program was:" >&5 | |
27818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27819 | ||
5294a27e | 27820 | eval "$as_ac_Header=no" |
01cb68df | 27821 | fi |
ac1cb8d3 | 27822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27823 | fi |
27824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27825 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
27826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
27827 | cat >>confdefs.h <<_ACEOF | |
27828 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27829 | _ACEOF | |
27830 | ||
27831 | else | |
27832 | ||
5294a27e VZ |
27833 | wxUSE_DISPLAY="no" |
27834 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 27835 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
27836 | |
27837 | fi | |
27838 | ||
27839 | done | |
27840 | ||
a848cd7e SC |
27841 | fi |
27842 | fi | |
27843 | ||
27844 | ||
27845 | USE_OPENGL=0 | |
27846 | if test "$wxUSE_OPENGL" = "yes"; then | |
27847 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27848 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27849 | elif test "$wxUSE_MSW" = 1; then | |
27850 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27851 | else | |
27852 | ||
27853 | ||
27854 | ac_find_includes= | |
27855 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27856 | do | |
27857 | if test -f "$ac_dir/GL/gl.h"; then | |
27858 | ac_find_includes=$ac_dir | |
27859 | break | |
27860 | fi | |
27861 | done | |
27862 | ||
27863 | if test "$ac_find_includes" != "" ; then | |
27864 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27865 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27866 | ||
27867 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27868 | ac_path_to_include="" | |
27869 | else | |
27870 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27871 | result=$? | |
27872 | if test $result = 0; then | |
27873 | ac_path_to_include="" | |
27874 | else | |
27875 | ac_path_to_include=" -I$ac_find_includes" | |
27876 | fi | |
27877 | fi | |
27878 | ||
27879 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27880 | fi | |
27881 | ||
27882 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27883 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27884 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27885 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27887 | fi | |
27888 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27889 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27890 | else | |
27891 | # Is the header compilable? | |
27892 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27893 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27894 | cat >conftest.$ac_ext <<_ACEOF | |
27895 | /* confdefs.h. */ | |
27896 | _ACEOF | |
27897 | cat confdefs.h >>conftest.$ac_ext | |
27898 | cat >>conftest.$ac_ext <<_ACEOF | |
27899 | /* end confdefs.h. */ | |
27900 | $ac_includes_default | |
27901 | #include <GL/gl.h> | |
27902 | _ACEOF | |
27903 | rm -f conftest.$ac_objext | |
27904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27905 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27906 | ac_status=$? |
ac1cb8d3 VS |
27907 | grep -v '^ *+' conftest.er1 >conftest.err |
27908 | rm -f conftest.er1 | |
27909 | cat conftest.err >&5 | |
a848cd7e SC |
27910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27911 | (exit $ac_status); } && | |
89be85c2 VS |
27912 | { ac_try='test -z "$ac_c_werror_flag" |
27913 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27915 | (eval $ac_try) 2>&5 | |
27916 | ac_status=$? | |
27917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27918 | (exit $ac_status); }; } && | |
27919 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27921 | (eval $ac_try) 2>&5 | |
27922 | ac_status=$? | |
27923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27924 | (exit $ac_status); }; }; then | |
27925 | ac_header_compiler=yes | |
27926 | else | |
27927 | echo "$as_me: failed program was:" >&5 | |
27928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27929 | ||
27930 | ac_header_compiler=no | |
27931 | fi | |
ac1cb8d3 | 27932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27933 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27934 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27935 | ||
27936 | # Is the header present? | |
27937 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27938 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27939 | cat >conftest.$ac_ext <<_ACEOF | |
27940 | /* confdefs.h. */ | |
27941 | _ACEOF | |
27942 | cat confdefs.h >>conftest.$ac_ext | |
27943 | cat >>conftest.$ac_ext <<_ACEOF | |
27944 | /* end confdefs.h. */ | |
27945 | #include <GL/gl.h> | |
27946 | _ACEOF | |
27947 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27948 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27949 | ac_status=$? | |
27950 | grep -v '^ *+' conftest.er1 >conftest.err | |
27951 | rm -f conftest.er1 | |
27952 | cat conftest.err >&5 | |
27953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27954 | (exit $ac_status); } >/dev/null; then | |
27955 | if test -s conftest.err; then | |
27956 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27957 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27958 | else |
27959 | ac_cpp_err= | |
27960 | fi | |
27961 | else | |
27962 | ac_cpp_err=yes | |
27963 | fi | |
27964 | if test -z "$ac_cpp_err"; then | |
27965 | ac_header_preproc=yes | |
27966 | else | |
27967 | echo "$as_me: failed program was:" >&5 | |
27968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27969 | ||
27970 | ac_header_preproc=no | |
27971 | fi | |
27972 | rm -f conftest.err conftest.$ac_ext | |
27973 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27974 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27975 | ||
27976 | # So? What about this header? | |
ac1cb8d3 VS |
27977 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27978 | yes:no: ) | |
a848cd7e SC |
27979 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27980 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27981 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27982 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27983 | ac_header_preproc=yes | |
a848cd7e | 27984 | ;; |
ac1cb8d3 | 27985 | no:yes:* ) |
a848cd7e SC |
27986 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27987 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27988 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27989 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27990 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27991 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27992 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27993 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27994 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27995 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27996 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27997 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27998 | ( |
27999 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28000 | ## ----------------------------------------- ## |
28001 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28002 | ## ----------------------------------------- ## | |
a848cd7e SC |
28003 | _ASBOX |
28004 | ) | | |
28005 | sed "s/^/$as_me: WARNING: /" >&2 | |
28006 | ;; | |
28007 | esac | |
28008 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28009 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28010 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28012 | else | |
28013 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
28014 | fi | |
28015 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28016 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28017 | ||
28018 | fi | |
28019 | if test $ac_cv_header_GL_gl_h = yes; then | |
28020 | ||
28021 | found_gl=0 | |
28022 | ||
28023 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
28024 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
28025 | ||
28026 | ac_find_libraries= | |
28027 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28028 | do | |
28029 | for ac_extension in a so sl dylib; do | |
28030 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
28031 | ac_find_libraries=$ac_dir | |
28032 | break 2 | |
28033 | fi | |
28034 | done | |
28035 | done | |
28036 | ||
28037 | if test "$ac_find_libraries" != "" ; then | |
28038 | ||
28039 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28040 | result=$? | |
28041 | if test $result = 0; then | |
28042 | ac_path_to_link="" | |
28043 | else | |
28044 | ac_path_to_link=" -L$ac_find_libraries" | |
28045 | fi | |
28046 | ||
28047 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28048 | LDFLAGS_GL="$ac_path_to_link" | |
28049 | fi | |
28050 | ||
28051 | ||
28052 | ac_find_libraries= | |
28053 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28054 | do | |
28055 | for ac_extension in a so sl dylib; do | |
28056 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
28057 | ac_find_libraries=$ac_dir | |
28058 | break 2 | |
28059 | fi | |
28060 | done | |
28061 | done | |
28062 | ||
28063 | if test "$ac_find_libraries" != "" ; then | |
28064 | ||
28065 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28066 | result=$? | |
28067 | if test $result = 0; then | |
28068 | ac_path_to_link="" | |
28069 | else | |
28070 | ac_path_to_link=" -L$ac_find_libraries" | |
28071 | fi | |
28072 | ||
28073 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
28074 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
28075 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
28076 | fi | |
28077 | ||
28078 | found_gl=1 | |
28079 | OPENGL_LIBS="-lGL -lGLU" | |
28080 | echo "$as_me:$LINENO: result: yes" >&5 | |
28081 | echo "${ECHO_T}yes" >&6 | |
28082 | fi | |
28083 | fi | |
28084 | ||
28085 | if test "$found_gl" != 1; then | |
28086 | echo "$as_me:$LINENO: result: no" >&5 | |
28087 | echo "${ECHO_T}no" >&6 | |
28088 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
28089 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
28090 | ||
28091 | ac_find_libraries= | |
28092 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28093 | do | |
28094 | for ac_extension in a so sl dylib; do | |
28095 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
28096 | ac_find_libraries=$ac_dir | |
28097 | break 2 | |
28098 | fi | |
28099 | done | |
28100 | done | |
28101 | ||
28102 | if test "$ac_find_libraries" != "" ; then | |
28103 | ||
28104 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28105 | result=$? | |
28106 | if test $result = 0; then | |
28107 | ac_path_to_link="" | |
28108 | else | |
28109 | ac_path_to_link=" -L$ac_find_libraries" | |
28110 | fi | |
28111 | ||
28112 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
28113 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
28114 | echo "$as_me:$LINENO: result: yes" >&5 | |
28115 | echo "${ECHO_T}yes" >&6 | |
28116 | else | |
28117 | echo "$as_me:$LINENO: result: no" >&5 | |
28118 | echo "${ECHO_T}no" >&6 | |
28119 | fi | |
28120 | fi | |
28121 | ||
28122 | fi | |
28123 | ||
28124 | ||
28125 | ||
28126 | if test "x$OPENGL_LIBS" = "x"; then | |
28127 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
28128 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
28129 | { (exit 1); exit 1; }; } | |
28130 | fi | |
28131 | fi | |
28132 | ||
28133 | if test "$wxUSE_OPENGL" = "yes"; then | |
28134 | USE_OPENGL=1 | |
28135 | cat >>confdefs.h <<\_ACEOF | |
28136 | #define wxUSE_OPENGL 1 | |
28137 | _ACEOF | |
28138 | ||
28139 | cat >>confdefs.h <<\_ACEOF | |
28140 | #define wxUSE_GLCANVAS 1 | |
28141 | _ACEOF | |
28142 | ||
28143 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
28144 | fi | |
28145 | fi | |
28146 | ||
a848cd7e SC |
28147 | |
28148 | if test -n "$TOOLKIT" ; then | |
28149 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
28150 | fi | |
28151 | ||
a848cd7e SC |
28152 | |
28153 | ||
28154 | if test "$wxUSE_SHARED" = "yes"; then | |
28155 | case "${host}" in | |
28156 | *-pc-msdosdjgpp ) | |
28157 | wxUSE_SHARED=no | |
28158 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
28159 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
28160 | ;; | |
28161 | esac | |
28162 | fi | |
28163 | ||
a848cd7e | 28164 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
28165 | |
28166 | ||
28167 | found_versioning=no | |
28168 | ||
28169 | ||
28170 | if test $found_versioning = no ; then | |
28171 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
28172 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
28173 | if test "${wx_cv_version_script+set}" = set; then | |
28174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28175 | else | |
28176 | ||
28177 | echo "VER_1 { *; };" >conftest.sym | |
28178 | echo "int main() { return 0; }" >conftest.cpp | |
28179 | ||
28180 | if { ac_try=' | |
28181 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28182 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
28183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28184 | (eval $ac_try) 2>&5 | |
28185 | ac_status=$? | |
28186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28187 | (exit $ac_status); }; } ; then | |
28188 | if test -s conftest.stderr ; then | |
28189 | wx_cv_version_script=no | |
28190 | else | |
28191 | wx_cv_version_script=yes | |
28192 | fi | |
28193 | else | |
28194 | wx_cv_version_script=no | |
28195 | fi | |
28196 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
28197 | ||
28198 | fi | |
28199 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
28200 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
28201 | if test $wx_cv_version_script = yes ; then | |
28202 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
28203 | fi | |
28204 | fi | |
28205 | ||
28206 | ||
28207 | case "${host}" in | |
28208 | *-*-linux* | *-*-gnu* ) | |
28209 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28210 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28211 | ;; |
28212 | ||
28213 | *-*-solaris2* ) | |
28214 | if test "$GCC" = yes ; then | |
28215 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
28216 | ||
28217 | saveLdflags="$LDFLAGS" | |
28218 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
28219 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
28220 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
28221 | cat >conftest.$ac_ext <<_ACEOF | |
28222 | /* confdefs.h. */ | |
28223 | _ACEOF | |
28224 | cat confdefs.h >>conftest.$ac_ext | |
28225 | cat >>conftest.$ac_ext <<_ACEOF | |
28226 | /* end confdefs.h. */ | |
28227 | ||
28228 | int | |
28229 | main () | |
28230 | { | |
28231 | ||
28232 | ; | |
28233 | return 0; | |
28234 | } | |
28235 | _ACEOF | |
28236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28238 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28239 | ac_status=$? |
ac1cb8d3 VS |
28240 | grep -v '^ *+' conftest.er1 >conftest.err |
28241 | rm -f conftest.er1 | |
28242 | cat conftest.err >&5 | |
a848cd7e SC |
28243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28244 | (exit $ac_status); } && | |
89be85c2 VS |
28245 | { ac_try='test -z "$ac_c_werror_flag" |
28246 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28248 | (eval $ac_try) 2>&5 | |
28249 | ac_status=$? | |
28250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28251 | (exit $ac_status); }; } && | |
28252 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28254 | (eval $ac_try) 2>&5 | |
28255 | ac_status=$? | |
28256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28257 | (exit $ac_status); }; }; then | |
28258 | ||
28259 | echo "$as_me:$LINENO: result: yes" >&5 | |
28260 | echo "${ECHO_T}yes" >&6 | |
28261 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28262 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28263 | |
28264 | else | |
28265 | echo "$as_me: failed program was:" >&5 | |
28266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28267 | ||
28268 | ||
28269 | echo "$as_me:$LINENO: result: no" >&5 | |
28270 | echo "${ECHO_T}no" >&6 | |
28271 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
28272 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
28273 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
28274 | cat >conftest.$ac_ext <<_ACEOF | |
28275 | /* confdefs.h. */ | |
28276 | _ACEOF | |
28277 | cat confdefs.h >>conftest.$ac_ext | |
28278 | cat >>conftest.$ac_ext <<_ACEOF | |
28279 | /* end confdefs.h. */ | |
28280 | ||
28281 | int | |
28282 | main () | |
28283 | { | |
28284 | ||
28285 | ; | |
28286 | return 0; | |
28287 | } | |
28288 | _ACEOF | |
28289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28291 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28292 | ac_status=$? |
ac1cb8d3 VS |
28293 | grep -v '^ *+' conftest.er1 >conftest.err |
28294 | rm -f conftest.er1 | |
28295 | cat conftest.err >&5 | |
a848cd7e SC |
28296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28297 | (exit $ac_status); } && | |
89be85c2 VS |
28298 | { ac_try='test -z "$ac_c_werror_flag" |
28299 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28301 | (eval $ac_try) 2>&5 | |
28302 | ac_status=$? | |
28303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28304 | (exit $ac_status); }; } && | |
28305 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28307 | (eval $ac_try) 2>&5 | |
28308 | ac_status=$? | |
28309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28310 | (exit $ac_status); }; }; then | |
28311 | ||
ffa0583f | 28312 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 28313 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
28314 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
28315 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
28316 | ||
a848cd7e SC |
28317 | else |
28318 | echo "$as_me: failed program was:" >&5 | |
28319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28320 | ||
28321 | ||
28322 | echo "$as_me:$LINENO: result: no" >&5 | |
28323 | echo "${ECHO_T}no" >&6 | |
28324 | ||
28325 | fi | |
ac1cb8d3 VS |
28326 | rm -f conftest.err conftest.$ac_objext \ |
28327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28328 | |
28329 | fi | |
ac1cb8d3 VS |
28330 | rm -f conftest.err conftest.$ac_objext \ |
28331 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28332 | LDFLAGS="$saveLdflags" |
28333 | else | |
a848cd7e | 28334 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 28335 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
28336 | fi |
28337 | ;; | |
28338 | ||
28339 | powerpc-*-darwin* ) | |
28340 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
28341 | cat <<EOF >change-install-names | |
28342 | #!/bin/sh | |
28343 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
28344 | inst_cmd="install_name_tool " | |
28345 | for i in \${libnames} ; do | |
28346 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
28347 | done | |
28348 | \${inst_cmd} \${3} | |
28349 | EOF | |
28350 | chmod +x change-install-names | |
28351 | ;; | |
28352 | ||
28353 | *-*-cygwin* | *-*-mingw32* ) | |
28354 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
28355 | ;; | |
28356 | ||
81f90336 MW |
28357 | *-*-hpux* ) |
28358 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
28359 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
28360 | ;; | |
28361 | ||
a848cd7e | 28362 | esac |
ceec2216 | 28363 | |
ffa0583f RL |
28364 | if test $wxUSE_RPATH = "no"; then |
28365 | SAMPLES_RPATH_FLAG='' | |
28366 | SAMPLES_RPATH_POSTLINK='' | |
28367 | WXCONFIG_RPATH='' | |
28368 | fi | |
28369 | ||
28370 | SHARED=1 | |
28371 | ||
28372 | else | |
28373 | ||
ceec2216 RL |
28374 | config_linkage_component="-static" |
28375 | SHARED=0 | |
ffa0583f | 28376 | |
ceec2216 | 28377 | fi |
a848cd7e | 28378 | |
a848cd7e | 28379 | |
ceec2216 RL |
28380 | UNICODE=0 |
28381 | lib_unicode_suffix= | |
28382 | WX_CHARTYPE="ansi" | |
28383 | if test "$wxUSE_UNICODE" = "yes"; then | |
28384 | lib_unicode_suffix=u | |
28385 | WX_CHARTYPE="unicode" | |
28386 | UNICODE=1 | |
a848cd7e SC |
28387 | fi |
28388 | ||
ceec2216 RL |
28389 | lib_debug_suffix= |
28390 | WX_DEBUGTYPE="release" | |
28391 | DEBUG_FLAG=0 | |
28392 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
28393 | lib_debug_suffix=d | |
28394 | WX_DEBUGTYPE="debug" | |
28395 | DEBUG_FLAG=1 | |
28396 | fi | |
a848cd7e | 28397 | |
ceec2216 RL |
28398 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
28399 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 28400 | |
ceec2216 RL |
28401 | DEBUG_INFO=0 |
28402 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
28403 | DEBUG_INFO=1 | |
28404 | fi | |
a848cd7e | 28405 | |
ceec2216 | 28406 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 28407 | |
ceec2216 | 28408 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 28409 | |
ceec2216 | 28410 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 28411 | |
ceec2216 RL |
28412 | if test "$cross_compiling" = "yes"; then |
28413 | HOST_SUFFIX="-$host_alias" | |
28414 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
28415 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
28416 | fi |
28417 | ||
dd21ced8 | 28418 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
28419 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
28420 | ||
28421 | ||
28422 | ||
a848cd7e | 28423 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
28424 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
28425 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 28426 | |
a848cd7e | 28427 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
28428 | |
28429 | # Extract the first word of "Rez", so it can be a program name with args. | |
28430 | set dummy Rez; ac_word=$2 | |
28431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28433 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
28434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28435 | else | |
28436 | if test -n "$RESCOMP"; then | |
28437 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
28438 | else | |
28439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28440 | for as_dir in $PATH | |
28441 | do | |
28442 | IFS=$as_save_IFS | |
28443 | test -z "$as_dir" && as_dir=. | |
28444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28445 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28446 | ac_cv_prog_RESCOMP="Rez" | |
28447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28448 | break 2 | |
28449 | fi | |
28450 | done | |
28451 | done | |
28452 | ||
28453 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
28454 | fi | |
28455 | fi | |
28456 | RESCOMP=$ac_cv_prog_RESCOMP | |
28457 | if test -n "$RESCOMP"; then | |
28458 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
28459 | echo "${ECHO_T}$RESCOMP" >&6 | |
28460 | else | |
28461 | echo "$as_me:$LINENO: result: no" >&5 | |
28462 | echo "${ECHO_T}no" >&6 | |
28463 | fi | |
28464 | ||
28465 | # Extract the first word of "DeRez", so it can be a program name with args. | |
28466 | set dummy DeRez; ac_word=$2 | |
28467 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28469 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
28470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28471 | else | |
28472 | if test -n "$DEREZ"; then | |
28473 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
28474 | else | |
28475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28476 | for as_dir in $PATH | |
28477 | do | |
28478 | IFS=$as_save_IFS | |
28479 | test -z "$as_dir" && as_dir=. | |
28480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28481 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28482 | ac_cv_prog_DEREZ="DeRez" | |
28483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28484 | break 2 | |
28485 | fi | |
28486 | done | |
28487 | done | |
28488 | ||
28489 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
28490 | fi | |
28491 | fi | |
28492 | DEREZ=$ac_cv_prog_DEREZ | |
28493 | if test -n "$DEREZ"; then | |
28494 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
28495 | echo "${ECHO_T}$DEREZ" >&6 | |
28496 | else | |
28497 | echo "$as_me:$LINENO: result: no" >&5 | |
28498 | echo "${ECHO_T}no" >&6 | |
28499 | fi | |
28500 | ||
28501 | # Extract the first word of "SetFile", so it can be a program name with args. | |
28502 | set dummy SetFile; ac_word=$2 | |
28503 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28505 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
28506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28507 | else | |
28508 | if test -n "$SETFILE"; then | |
28509 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
28510 | else | |
28511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28512 | for as_dir in $PATH | |
28513 | do | |
28514 | IFS=$as_save_IFS | |
28515 | test -z "$as_dir" && as_dir=. | |
28516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28518 | ac_cv_prog_SETFILE="SetFile" | |
28519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28520 | break 2 | |
28521 | fi | |
28522 | done | |
28523 | done | |
28524 | ||
28525 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
28526 | fi | |
28527 | fi | |
28528 | SETFILE=$ac_cv_prog_SETFILE | |
28529 | if test -n "$SETFILE"; then | |
28530 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
28531 | echo "${ECHO_T}$SETFILE" >&6 | |
28532 | else | |
28533 | echo "$as_me:$LINENO: result: no" >&5 | |
28534 | echo "${ECHO_T}no" >&6 | |
28535 | fi | |
28536 | ||
28537 | ||
28538 | MACSETFILE="\$(SETFILE)" | |
28539 | ||
28540 | if test "$wxUSE_MAC" = 1; then | |
28541 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
28542 | ||
28543 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28544 | else | |
28545 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
28546 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28547 | fi | |
28548 | else | |
ffa0583f RL |
28549 | MACSETFILE="@true" |
28550 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
28551 | |
28552 | if test "$wxUSE_PM" = 1; then | |
28553 | MACRESCOMP="emxbind -ep" | |
28554 | else | |
ffa0583f | 28555 | MACRESCOMP="@true" |
a848cd7e SC |
28556 | fi |
28557 | fi | |
28558 | ||
28559 | ||
28560 | ||
28561 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
28562 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28563 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28565 | else | |
28566 | cat >conftest.$ac_ext <<_ACEOF | |
28567 | /* confdefs.h. */ | |
28568 | _ACEOF | |
28569 | cat confdefs.h >>conftest.$ac_ext | |
28570 | cat >>conftest.$ac_ext <<_ACEOF | |
28571 | /* end confdefs.h. */ | |
28572 | $ac_includes_default | |
28573 | int | |
28574 | main () | |
28575 | { | |
28576 | if ((mode_t *) 0) | |
28577 | return 0; | |
28578 | if (sizeof (mode_t)) | |
28579 | return 0; | |
28580 | ; | |
28581 | return 0; | |
28582 | } | |
28583 | _ACEOF | |
28584 | rm -f conftest.$ac_objext | |
28585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28586 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28587 | ac_status=$? |
ac1cb8d3 VS |
28588 | grep -v '^ *+' conftest.er1 >conftest.err |
28589 | rm -f conftest.er1 | |
28590 | cat conftest.err >&5 | |
a848cd7e SC |
28591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28592 | (exit $ac_status); } && | |
89be85c2 VS |
28593 | { ac_try='test -z "$ac_c_werror_flag" |
28594 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28596 | (eval $ac_try) 2>&5 | |
28597 | ac_status=$? | |
28598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28599 | (exit $ac_status); }; } && | |
28600 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28602 | (eval $ac_try) 2>&5 | |
28603 | ac_status=$? | |
28604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28605 | (exit $ac_status); }; }; then | |
28606 | ac_cv_type_mode_t=yes | |
28607 | else | |
28608 | echo "$as_me: failed program was:" >&5 | |
28609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28610 | ||
28611 | ac_cv_type_mode_t=no | |
28612 | fi | |
ac1cb8d3 | 28613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28614 | fi |
28615 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
28616 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28617 | if test $ac_cv_type_mode_t = yes; then | |
28618 | : | |
28619 | else | |
28620 | ||
28621 | cat >>confdefs.h <<_ACEOF | |
28622 | #define mode_t int | |
28623 | _ACEOF | |
28624 | ||
28625 | fi | |
28626 | ||
28627 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28628 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28629 | if test "${ac_cv_type_off_t+set}" = set; then | |
28630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28631 | else | |
28632 | cat >conftest.$ac_ext <<_ACEOF | |
28633 | /* confdefs.h. */ | |
28634 | _ACEOF | |
28635 | cat confdefs.h >>conftest.$ac_ext | |
28636 | cat >>conftest.$ac_ext <<_ACEOF | |
28637 | /* end confdefs.h. */ | |
28638 | $ac_includes_default | |
28639 | int | |
28640 | main () | |
28641 | { | |
28642 | if ((off_t *) 0) | |
28643 | return 0; | |
28644 | if (sizeof (off_t)) | |
28645 | return 0; | |
28646 | ; | |
28647 | return 0; | |
28648 | } | |
28649 | _ACEOF | |
28650 | rm -f conftest.$ac_objext | |
28651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28652 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28653 | ac_status=$? |
ac1cb8d3 VS |
28654 | grep -v '^ *+' conftest.er1 >conftest.err |
28655 | rm -f conftest.er1 | |
28656 | cat conftest.err >&5 | |
a848cd7e SC |
28657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28658 | (exit $ac_status); } && | |
89be85c2 VS |
28659 | { ac_try='test -z "$ac_c_werror_flag" |
28660 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28662 | (eval $ac_try) 2>&5 | |
28663 | ac_status=$? | |
28664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28665 | (exit $ac_status); }; } && | |
28666 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28668 | (eval $ac_try) 2>&5 | |
28669 | ac_status=$? | |
28670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28671 | (exit $ac_status); }; }; then | |
28672 | ac_cv_type_off_t=yes | |
28673 | else | |
28674 | echo "$as_me: failed program was:" >&5 | |
28675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28676 | ||
28677 | ac_cv_type_off_t=no | |
28678 | fi | |
ac1cb8d3 | 28679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28680 | fi |
28681 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28682 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28683 | if test $ac_cv_type_off_t = yes; then | |
28684 | : | |
28685 | else | |
28686 | ||
28687 | cat >>confdefs.h <<_ACEOF | |
28688 | #define off_t long | |
28689 | _ACEOF | |
28690 | ||
28691 | fi | |
28692 | ||
28693 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28694 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28695 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28697 | else | |
28698 | cat >conftest.$ac_ext <<_ACEOF | |
28699 | /* confdefs.h. */ | |
28700 | _ACEOF | |
28701 | cat confdefs.h >>conftest.$ac_ext | |
28702 | cat >>conftest.$ac_ext <<_ACEOF | |
28703 | /* end confdefs.h. */ | |
28704 | $ac_includes_default | |
28705 | int | |
28706 | main () | |
28707 | { | |
28708 | if ((pid_t *) 0) | |
28709 | return 0; | |
28710 | if (sizeof (pid_t)) | |
28711 | return 0; | |
28712 | ; | |
28713 | return 0; | |
28714 | } | |
28715 | _ACEOF | |
28716 | rm -f conftest.$ac_objext | |
28717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28718 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28719 | ac_status=$? |
ac1cb8d3 VS |
28720 | grep -v '^ *+' conftest.er1 >conftest.err |
28721 | rm -f conftest.er1 | |
28722 | cat conftest.err >&5 | |
a848cd7e SC |
28723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28724 | (exit $ac_status); } && | |
89be85c2 VS |
28725 | { ac_try='test -z "$ac_c_werror_flag" |
28726 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28728 | (eval $ac_try) 2>&5 | |
28729 | ac_status=$? | |
28730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28731 | (exit $ac_status); }; } && | |
28732 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28734 | (eval $ac_try) 2>&5 | |
28735 | ac_status=$? | |
28736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28737 | (exit $ac_status); }; }; then | |
28738 | ac_cv_type_pid_t=yes | |
28739 | else | |
28740 | echo "$as_me: failed program was:" >&5 | |
28741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28742 | ||
28743 | ac_cv_type_pid_t=no | |
28744 | fi | |
ac1cb8d3 | 28745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28746 | fi |
28747 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28748 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28749 | if test $ac_cv_type_pid_t = yes; then | |
28750 | : | |
28751 | else | |
28752 | ||
28753 | cat >>confdefs.h <<_ACEOF | |
28754 | #define pid_t int | |
28755 | _ACEOF | |
28756 | ||
28757 | fi | |
28758 | ||
28759 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28760 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28761 | if test "${ac_cv_type_size_t+set}" = set; then | |
28762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28763 | else | |
28764 | cat >conftest.$ac_ext <<_ACEOF | |
28765 | /* confdefs.h. */ | |
28766 | _ACEOF | |
28767 | cat confdefs.h >>conftest.$ac_ext | |
28768 | cat >>conftest.$ac_ext <<_ACEOF | |
28769 | /* end confdefs.h. */ | |
28770 | $ac_includes_default | |
28771 | int | |
28772 | main () | |
28773 | { | |
28774 | if ((size_t *) 0) | |
28775 | return 0; | |
28776 | if (sizeof (size_t)) | |
28777 | return 0; | |
28778 | ; | |
28779 | return 0; | |
28780 | } | |
28781 | _ACEOF | |
28782 | rm -f conftest.$ac_objext | |
28783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28785 | ac_status=$? |
ac1cb8d3 VS |
28786 | grep -v '^ *+' conftest.er1 >conftest.err |
28787 | rm -f conftest.er1 | |
28788 | cat conftest.err >&5 | |
a848cd7e SC |
28789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28790 | (exit $ac_status); } && | |
89be85c2 VS |
28791 | { ac_try='test -z "$ac_c_werror_flag" |
28792 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28794 | (eval $ac_try) 2>&5 | |
28795 | ac_status=$? | |
28796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28797 | (exit $ac_status); }; } && | |
28798 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28800 | (eval $ac_try) 2>&5 | |
28801 | ac_status=$? | |
28802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28803 | (exit $ac_status); }; }; then | |
28804 | ac_cv_type_size_t=yes | |
28805 | else | |
28806 | echo "$as_me: failed program was:" >&5 | |
28807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28808 | ||
28809 | ac_cv_type_size_t=no | |
28810 | fi | |
ac1cb8d3 | 28811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28812 | fi |
28813 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28814 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28815 | if test $ac_cv_type_size_t = yes; then | |
28816 | : | |
28817 | else | |
28818 | ||
28819 | cat >>confdefs.h <<_ACEOF | |
28820 | #define size_t unsigned | |
28821 | _ACEOF | |
28822 | ||
28823 | fi | |
28824 | ||
28825 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28826 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28827 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28829 | else | |
28830 | cat >conftest.$ac_ext <<_ACEOF | |
28831 | /* confdefs.h. */ | |
28832 | _ACEOF | |
28833 | cat confdefs.h >>conftest.$ac_ext | |
28834 | cat >>conftest.$ac_ext <<_ACEOF | |
28835 | /* end confdefs.h. */ | |
28836 | #include <sys/types.h> | |
28837 | ||
28838 | _ACEOF | |
28839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28840 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28841 | ac_cv_type_uid_t=yes | |
28842 | else | |
28843 | ac_cv_type_uid_t=no | |
28844 | fi | |
28845 | rm -f conftest* | |
28846 | ||
28847 | fi | |
28848 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28849 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28850 | if test $ac_cv_type_uid_t = no; then | |
28851 | ||
28852 | cat >>confdefs.h <<\_ACEOF | |
28853 | #define uid_t int | |
28854 | _ACEOF | |
28855 | ||
28856 | ||
28857 | cat >>confdefs.h <<\_ACEOF | |
28858 | #define gid_t int | |
28859 | _ACEOF | |
28860 | ||
28861 | fi | |
28862 | ||
28863 | ||
d51253e8 RL |
28864 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
28865 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
28866 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
28867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28868 | else | |
28869 | cat >conftest.$ac_ext <<_ACEOF | |
28870 | /* confdefs.h. */ | |
28871 | _ACEOF | |
28872 | cat confdefs.h >>conftest.$ac_ext | |
28873 | cat >>conftest.$ac_ext <<_ACEOF | |
28874 | /* end confdefs.h. */ | |
28875 | $ac_includes_default | |
28876 | int | |
28877 | main () | |
28878 | { | |
28879 | if ((ssize_t *) 0) | |
28880 | return 0; | |
28881 | if (sizeof (ssize_t)) | |
28882 | return 0; | |
28883 | ; | |
28884 | return 0; | |
28885 | } | |
28886 | _ACEOF | |
28887 | rm -f conftest.$ac_objext | |
28888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28889 | (eval $ac_compile) 2>conftest.er1 | |
28890 | ac_status=$? | |
28891 | grep -v '^ *+' conftest.er1 >conftest.err | |
28892 | rm -f conftest.er1 | |
28893 | cat conftest.err >&5 | |
28894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28895 | (exit $ac_status); } && | |
89be85c2 VS |
28896 | { ac_try='test -z "$ac_c_werror_flag" |
28897 | || test ! -s conftest.err' | |
d51253e8 RL |
28898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28899 | (eval $ac_try) 2>&5 | |
28900 | ac_status=$? | |
28901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28902 | (exit $ac_status); }; } && | |
28903 | { ac_try='test -s conftest.$ac_objext' | |
28904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28905 | (eval $ac_try) 2>&5 | |
28906 | ac_status=$? | |
28907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28908 | (exit $ac_status); }; }; then | |
28909 | ac_cv_type_ssize_t=yes | |
28910 | else | |
28911 | echo "$as_me: failed program was:" >&5 | |
28912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28913 | ||
28914 | ac_cv_type_ssize_t=no | |
28915 | fi | |
28916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28917 | fi | |
28918 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
28919 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
28920 | if test $ac_cv_type_ssize_t = yes; then | |
28921 | ||
28922 | cat >>confdefs.h <<_ACEOF | |
28923 | #define HAVE_SSIZE_T 1 | |
28924 | _ACEOF | |
28925 | ||
28926 | ||
28927 | fi | |
28928 | ||
28929 | ||
a848cd7e SC |
28930 | |
28931 | ||
28932 | ac_ext=cc | |
28933 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28934 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28935 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28936 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28937 | ||
28938 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28939 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28940 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28942 | else | |
28943 | ||
28944 | cat >conftest.$ac_ext <<_ACEOF | |
28945 | /* confdefs.h. */ | |
28946 | _ACEOF | |
28947 | cat confdefs.h >>conftest.$ac_ext | |
28948 | cat >>conftest.$ac_ext <<_ACEOF | |
28949 | /* end confdefs.h. */ | |
28950 | #include <stddef.h> | |
28951 | int | |
28952 | main () | |
28953 | { | |
28954 | ||
28955 | return 0; } | |
28956 | ||
28957 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28958 | ||
28959 | int bar() { | |
28960 | ||
28961 | ; | |
28962 | return 0; | |
28963 | } | |
28964 | _ACEOF | |
28965 | rm -f conftest.$ac_objext | |
28966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28967 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28968 | ac_status=$? |
ac1cb8d3 VS |
28969 | grep -v '^ *+' conftest.er1 >conftest.err |
28970 | rm -f conftest.er1 | |
28971 | cat conftest.err >&5 | |
a848cd7e SC |
28972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28973 | (exit $ac_status); } && | |
89be85c2 VS |
28974 | { ac_try='test -z "$ac_cxx_werror_flag" |
28975 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28977 | (eval $ac_try) 2>&5 | |
28978 | ac_status=$? | |
28979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28980 | (exit $ac_status); }; } && | |
28981 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28983 | (eval $ac_try) 2>&5 | |
28984 | ac_status=$? | |
28985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28986 | (exit $ac_status); }; }; then | |
28987 | wx_cv_size_t_is_uint=no | |
28988 | else | |
28989 | echo "$as_me: failed program was:" >&5 | |
28990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28991 | ||
28992 | wx_cv_size_t_is_uint=yes | |
28993 | ||
28994 | fi | |
ac1cb8d3 | 28995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28996 | |
28997 | ||
28998 | fi | |
28999 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
29000 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
29001 | ||
29002 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
29003 | cat >>confdefs.h <<\_ACEOF | |
29004 | #define wxSIZE_T_IS_UINT 1 | |
29005 | _ACEOF | |
29006 | ||
29007 | else | |
29008 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
29009 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
29010 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
29011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29012 | else | |
29013 | cat >conftest.$ac_ext <<_ACEOF | |
29014 | /* confdefs.h. */ | |
29015 | _ACEOF | |
29016 | cat confdefs.h >>conftest.$ac_ext | |
29017 | cat >>conftest.$ac_ext <<_ACEOF | |
29018 | /* end confdefs.h. */ | |
29019 | #include <stddef.h> | |
29020 | int | |
29021 | main () | |
29022 | { | |
29023 | ||
29024 | return 0; } | |
29025 | ||
29026 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
29027 | ||
29028 | int bar() { | |
29029 | ||
29030 | ; | |
29031 | return 0; | |
29032 | } | |
29033 | _ACEOF | |
29034 | rm -f conftest.$ac_objext | |
29035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29036 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29037 | ac_status=$? |
ac1cb8d3 VS |
29038 | grep -v '^ *+' conftest.er1 >conftest.err |
29039 | rm -f conftest.er1 | |
29040 | cat conftest.err >&5 | |
a848cd7e SC |
29041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29042 | (exit $ac_status); } && | |
89be85c2 VS |
29043 | { ac_try='test -z "$ac_cxx_werror_flag" |
29044 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29046 | (eval $ac_try) 2>&5 | |
29047 | ac_status=$? | |
29048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29049 | (exit $ac_status); }; } && | |
29050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29052 | (eval $ac_try) 2>&5 | |
29053 | ac_status=$? | |
29054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29055 | (exit $ac_status); }; }; then | |
29056 | wx_cv_size_t_is_ulong=no | |
29057 | else | |
29058 | echo "$as_me: failed program was:" >&5 | |
29059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29060 | ||
29061 | wx_cv_size_t_is_ulong=yes | |
29062 | ||
29063 | fi | |
ac1cb8d3 | 29064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29065 | |
29066 | fi | |
29067 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
29068 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
29069 | ||
29070 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
29071 | cat >>confdefs.h <<\_ACEOF | |
29072 | #define wxSIZE_T_IS_ULONG 1 | |
29073 | _ACEOF | |
29074 | ||
29075 | fi | |
29076 | fi | |
29077 | ||
29078 | ac_ext=c | |
29079 | ac_cpp='$CPP $CPPFLAGS' | |
29080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29083 | ||
29084 | ||
29085 | ||
29086 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
29087 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
29088 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
29089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29090 | else | |
29091 | ||
29092 | cat >conftest.$ac_ext <<_ACEOF | |
29093 | /* confdefs.h. */ | |
29094 | _ACEOF | |
29095 | cat confdefs.h >>conftest.$ac_ext | |
29096 | cat >>conftest.$ac_ext <<_ACEOF | |
29097 | /* end confdefs.h. */ | |
29098 | #include <pwd.h> | |
29099 | int | |
29100 | main () | |
29101 | { | |
29102 | ||
29103 | char *p; | |
29104 | struct passwd *pw; | |
29105 | p = pw->pw_gecos; | |
29106 | ||
29107 | ; | |
29108 | return 0; | |
29109 | } | |
29110 | _ACEOF | |
29111 | rm -f conftest.$ac_objext | |
29112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29113 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29114 | ac_status=$? |
ac1cb8d3 VS |
29115 | grep -v '^ *+' conftest.er1 >conftest.err |
29116 | rm -f conftest.er1 | |
29117 | cat conftest.err >&5 | |
a848cd7e SC |
29118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29119 | (exit $ac_status); } && | |
89be85c2 VS |
29120 | { ac_try='test -z "$ac_c_werror_flag" |
29121 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29123 | (eval $ac_try) 2>&5 | |
29124 | ac_status=$? | |
29125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29126 | (exit $ac_status); }; } && | |
29127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29129 | (eval $ac_try) 2>&5 | |
29130 | ac_status=$? | |
29131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29132 | (exit $ac_status); }; }; then | |
29133 | ||
29134 | wx_cv_struct_pw_gecos=yes | |
29135 | ||
29136 | else | |
29137 | echo "$as_me: failed program was:" >&5 | |
29138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29139 | ||
29140 | ||
29141 | wx_cv_struct_pw_gecos=no | |
29142 | ||
29143 | ||
29144 | fi | |
ac1cb8d3 | 29145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29146 | |
29147 | ||
29148 | fi | |
29149 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
29150 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
29151 | ||
29152 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
29153 | cat >>confdefs.h <<\_ACEOF | |
29154 | #define HAVE_PW_GECOS 1 | |
29155 | _ACEOF | |
29156 | ||
29157 | fi | |
29158 | ||
29159 | ||
29160 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
29161 | cat >>confdefs.h <<\_ACEOF | |
29162 | #define wxUSE_WCHAR_T 1 | |
29163 | _ACEOF | |
29164 | ||
29165 | ||
29166 | WCSLEN_FOUND=0 | |
29167 | WCHAR_LINK= | |
29168 | ||
29169 | for ac_func in wcslen | |
29170 | do | |
29171 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29172 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29173 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29174 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29176 | else | |
29177 | cat >conftest.$ac_ext <<_ACEOF | |
29178 | /* confdefs.h. */ | |
29179 | _ACEOF | |
29180 | cat confdefs.h >>conftest.$ac_ext | |
29181 | cat >>conftest.$ac_ext <<_ACEOF | |
29182 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29183 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29185 | #define $ac_func innocuous_$ac_func | |
29186 | ||
a848cd7e SC |
29187 | /* System header to define __stub macros and hopefully few prototypes, |
29188 | which can conflict with char $ac_func (); below. | |
29189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29190 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29191 | |
a848cd7e SC |
29192 | #ifdef __STDC__ |
29193 | # include <limits.h> | |
29194 | #else | |
29195 | # include <assert.h> | |
29196 | #endif | |
ac1cb8d3 VS |
29197 | |
29198 | #undef $ac_func | |
29199 | ||
a848cd7e SC |
29200 | /* Override any gcc2 internal prototype to avoid an error. */ |
29201 | #ifdef __cplusplus | |
29202 | extern "C" | |
29203 | { | |
29204 | #endif | |
29205 | /* We use char because int might match the return type of a gcc2 | |
29206 | builtin and then its argument prototype would still apply. */ | |
29207 | char $ac_func (); | |
29208 | /* The GNU C library defines this for functions which it implements | |
29209 | to always fail with ENOSYS. Some functions are actually named | |
29210 | something starting with __ and the normal name is an alias. */ | |
29211 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29212 | choke me | |
29213 | #else | |
29214 | char (*f) () = $ac_func; | |
29215 | #endif | |
29216 | #ifdef __cplusplus | |
29217 | } | |
29218 | #endif | |
29219 | ||
29220 | int | |
29221 | main () | |
29222 | { | |
29223 | return f != $ac_func; | |
29224 | ; | |
29225 | return 0; | |
29226 | } | |
29227 | _ACEOF | |
29228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29230 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29231 | ac_status=$? |
ac1cb8d3 VS |
29232 | grep -v '^ *+' conftest.er1 >conftest.err |
29233 | rm -f conftest.er1 | |
29234 | cat conftest.err >&5 | |
a848cd7e SC |
29235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29236 | (exit $ac_status); } && | |
89be85c2 VS |
29237 | { ac_try='test -z "$ac_c_werror_flag" |
29238 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29240 | (eval $ac_try) 2>&5 | |
29241 | ac_status=$? | |
29242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29243 | (exit $ac_status); }; } && | |
29244 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29246 | (eval $ac_try) 2>&5 | |
29247 | ac_status=$? | |
29248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29249 | (exit $ac_status); }; }; then | |
29250 | eval "$as_ac_var=yes" | |
29251 | else | |
29252 | echo "$as_me: failed program was:" >&5 | |
29253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29254 | ||
29255 | eval "$as_ac_var=no" | |
29256 | fi | |
ac1cb8d3 VS |
29257 | rm -f conftest.err conftest.$ac_objext \ |
29258 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29259 | fi |
29260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29261 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29262 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29263 | cat >>confdefs.h <<_ACEOF | |
29264 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29265 | _ACEOF | |
29266 | WCSLEN_FOUND=1 | |
29267 | fi | |
29268 | done | |
29269 | ||
29270 | ||
29271 | if test "$WCSLEN_FOUND" = 0; then | |
29272 | if test "$TOOLKIT" = "MSW"; then | |
29273 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
29274 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
29275 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
29276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29277 | else | |
29278 | ac_check_lib_save_LIBS=$LIBS | |
29279 | LIBS="-lmsvcrt $LIBS" | |
29280 | cat >conftest.$ac_ext <<_ACEOF | |
29281 | /* confdefs.h. */ | |
29282 | _ACEOF | |
29283 | cat confdefs.h >>conftest.$ac_ext | |
29284 | cat >>conftest.$ac_ext <<_ACEOF | |
29285 | /* end confdefs.h. */ | |
29286 | ||
29287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29288 | #ifdef __cplusplus | |
29289 | extern "C" | |
29290 | #endif | |
29291 | /* We use char because int might match the return type of a gcc2 | |
29292 | builtin and then its argument prototype would still apply. */ | |
29293 | char wcslen (); | |
29294 | int | |
29295 | main () | |
29296 | { | |
29297 | wcslen (); | |
29298 | ; | |
29299 | return 0; | |
29300 | } | |
29301 | _ACEOF | |
29302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29305 | ac_status=$? |
ac1cb8d3 VS |
29306 | grep -v '^ *+' conftest.er1 >conftest.err |
29307 | rm -f conftest.er1 | |
29308 | cat conftest.err >&5 | |
a848cd7e SC |
29309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29310 | (exit $ac_status); } && | |
89be85c2 VS |
29311 | { ac_try='test -z "$ac_c_werror_flag" |
29312 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29314 | (eval $ac_try) 2>&5 | |
29315 | ac_status=$? | |
29316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29317 | (exit $ac_status); }; } && | |
29318 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29320 | (eval $ac_try) 2>&5 | |
29321 | ac_status=$? | |
29322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29323 | (exit $ac_status); }; }; then | |
29324 | ac_cv_lib_msvcrt_wcslen=yes | |
29325 | else | |
29326 | echo "$as_me: failed program was:" >&5 | |
29327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29328 | ||
29329 | ac_cv_lib_msvcrt_wcslen=no | |
29330 | fi | |
ac1cb8d3 VS |
29331 | rm -f conftest.err conftest.$ac_objext \ |
29332 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29333 | LIBS=$ac_check_lib_save_LIBS |
29334 | fi | |
29335 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
29336 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
29337 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
29338 | WCHAR_OK=1 | |
29339 | fi | |
29340 | ||
29341 | else | |
29342 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
29343 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
29344 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
29345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29346 | else | |
29347 | ac_check_lib_save_LIBS=$LIBS | |
29348 | LIBS="-lw $LIBS" | |
29349 | cat >conftest.$ac_ext <<_ACEOF | |
29350 | /* confdefs.h. */ | |
29351 | _ACEOF | |
29352 | cat confdefs.h >>conftest.$ac_ext | |
29353 | cat >>conftest.$ac_ext <<_ACEOF | |
29354 | /* end confdefs.h. */ | |
29355 | ||
29356 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29357 | #ifdef __cplusplus | |
29358 | extern "C" | |
29359 | #endif | |
29360 | /* We use char because int might match the return type of a gcc2 | |
29361 | builtin and then its argument prototype would still apply. */ | |
29362 | char wcslen (); | |
29363 | int | |
29364 | main () | |
29365 | { | |
29366 | wcslen (); | |
29367 | ; | |
29368 | return 0; | |
29369 | } | |
29370 | _ACEOF | |
29371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29373 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29374 | ac_status=$? |
ac1cb8d3 VS |
29375 | grep -v '^ *+' conftest.er1 >conftest.err |
29376 | rm -f conftest.er1 | |
29377 | cat conftest.err >&5 | |
a848cd7e SC |
29378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29379 | (exit $ac_status); } && | |
89be85c2 VS |
29380 | { ac_try='test -z "$ac_c_werror_flag" |
29381 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29383 | (eval $ac_try) 2>&5 | |
29384 | ac_status=$? | |
29385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29386 | (exit $ac_status); }; } && | |
29387 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29389 | (eval $ac_try) 2>&5 | |
29390 | ac_status=$? | |
29391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29392 | (exit $ac_status); }; }; then | |
29393 | ac_cv_lib_w_wcslen=yes | |
29394 | else | |
29395 | echo "$as_me: failed program was:" >&5 | |
29396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29397 | ||
29398 | ac_cv_lib_w_wcslen=no | |
29399 | fi | |
ac1cb8d3 VS |
29400 | rm -f conftest.err conftest.$ac_objext \ |
29401 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29402 | LIBS=$ac_check_lib_save_LIBS |
29403 | fi | |
29404 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
29405 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
29406 | if test $ac_cv_lib_w_wcslen = yes; then | |
29407 | ||
29408 | WCHAR_LINK=" -lw" | |
29409 | WCSLEN_FOUND=1 | |
29410 | ||
29411 | fi | |
29412 | ||
29413 | fi | |
29414 | fi | |
29415 | ||
29416 | if test "$WCSLEN_FOUND" = 1; then | |
29417 | cat >>confdefs.h <<\_ACEOF | |
29418 | #define HAVE_WCSLEN 1 | |
29419 | _ACEOF | |
29420 | ||
29421 | fi | |
29422 | ||
81f90336 | 29423 | if test "$USE_HPUX" = 1; then |
473276a9 VS |
29424 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
29425 | fi | |
29426 | ||
a848cd7e SC |
29427 | |
29428 | for ac_func in wcsrtombs | |
29429 | do | |
29430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29433 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29435 | else | |
29436 | cat >conftest.$ac_ext <<_ACEOF | |
29437 | /* confdefs.h. */ | |
29438 | _ACEOF | |
29439 | cat confdefs.h >>conftest.$ac_ext | |
29440 | cat >>conftest.$ac_ext <<_ACEOF | |
29441 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29442 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29444 | #define $ac_func innocuous_$ac_func | |
29445 | ||
a848cd7e SC |
29446 | /* System header to define __stub macros and hopefully few prototypes, |
29447 | which can conflict with char $ac_func (); below. | |
29448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29449 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29450 | |
a848cd7e SC |
29451 | #ifdef __STDC__ |
29452 | # include <limits.h> | |
29453 | #else | |
29454 | # include <assert.h> | |
29455 | #endif | |
ac1cb8d3 VS |
29456 | |
29457 | #undef $ac_func | |
29458 | ||
a848cd7e SC |
29459 | /* Override any gcc2 internal prototype to avoid an error. */ |
29460 | #ifdef __cplusplus | |
29461 | extern "C" | |
29462 | { | |
29463 | #endif | |
29464 | /* We use char because int might match the return type of a gcc2 | |
29465 | builtin and then its argument prototype would still apply. */ | |
29466 | char $ac_func (); | |
29467 | /* The GNU C library defines this for functions which it implements | |
29468 | to always fail with ENOSYS. Some functions are actually named | |
29469 | something starting with __ and the normal name is an alias. */ | |
29470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29471 | choke me | |
29472 | #else | |
29473 | char (*f) () = $ac_func; | |
29474 | #endif | |
29475 | #ifdef __cplusplus | |
29476 | } | |
29477 | #endif | |
29478 | ||
29479 | int | |
29480 | main () | |
29481 | { | |
29482 | return f != $ac_func; | |
29483 | ; | |
29484 | return 0; | |
29485 | } | |
29486 | _ACEOF | |
29487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29489 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29490 | ac_status=$? |
ac1cb8d3 VS |
29491 | grep -v '^ *+' conftest.er1 >conftest.err |
29492 | rm -f conftest.er1 | |
29493 | cat conftest.err >&5 | |
a848cd7e SC |
29494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29495 | (exit $ac_status); } && | |
89be85c2 VS |
29496 | { ac_try='test -z "$ac_c_werror_flag" |
29497 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29499 | (eval $ac_try) 2>&5 | |
29500 | ac_status=$? | |
29501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29502 | (exit $ac_status); }; } && | |
29503 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29505 | (eval $ac_try) 2>&5 | |
29506 | ac_status=$? | |
29507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29508 | (exit $ac_status); }; }; then | |
29509 | eval "$as_ac_var=yes" | |
29510 | else | |
29511 | echo "$as_me: failed program was:" >&5 | |
29512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29513 | ||
29514 | eval "$as_ac_var=no" | |
29515 | fi | |
ac1cb8d3 VS |
29516 | rm -f conftest.err conftest.$ac_objext \ |
29517 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29518 | fi |
29519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29521 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29522 | cat >>confdefs.h <<_ACEOF | |
29523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29524 | _ACEOF | |
29525 | ||
29526 | fi | |
29527 | done | |
29528 | ||
29529 | else | |
29530 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
29531 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
29532 | fi | |
29533 | ||
29534 | ||
29535 | ||
29536 | ac_ext=cc | |
29537 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29538 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29539 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29540 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29541 | ||
29542 | ||
29543 | ||
29544 | for ac_func in vsnprintf | |
29545 | do | |
29546 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29547 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29548 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29549 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29551 | else | |
29552 | cat >conftest.$ac_ext <<_ACEOF | |
29553 | /* confdefs.h. */ | |
29554 | _ACEOF | |
29555 | cat confdefs.h >>conftest.$ac_ext | |
29556 | cat >>conftest.$ac_ext <<_ACEOF | |
29557 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29558 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29559 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29560 | #define $ac_func innocuous_$ac_func | |
29561 | ||
a848cd7e SC |
29562 | /* System header to define __stub macros and hopefully few prototypes, |
29563 | which can conflict with char $ac_func (); below. | |
29564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29565 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29566 | |
a848cd7e SC |
29567 | #ifdef __STDC__ |
29568 | # include <limits.h> | |
29569 | #else | |
29570 | # include <assert.h> | |
29571 | #endif | |
ac1cb8d3 VS |
29572 | |
29573 | #undef $ac_func | |
29574 | ||
a848cd7e SC |
29575 | /* Override any gcc2 internal prototype to avoid an error. */ |
29576 | #ifdef __cplusplus | |
29577 | extern "C" | |
29578 | { | |
29579 | #endif | |
29580 | /* We use char because int might match the return type of a gcc2 | |
29581 | builtin and then its argument prototype would still apply. */ | |
29582 | char $ac_func (); | |
29583 | /* The GNU C library defines this for functions which it implements | |
29584 | to always fail with ENOSYS. Some functions are actually named | |
29585 | something starting with __ and the normal name is an alias. */ | |
29586 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29587 | choke me | |
29588 | #else | |
29589 | char (*f) () = $ac_func; | |
29590 | #endif | |
29591 | #ifdef __cplusplus | |
29592 | } | |
29593 | #endif | |
29594 | ||
29595 | int | |
29596 | main () | |
29597 | { | |
29598 | return f != $ac_func; | |
29599 | ; | |
29600 | return 0; | |
29601 | } | |
29602 | _ACEOF | |
29603 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29605 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29606 | ac_status=$? |
ac1cb8d3 VS |
29607 | grep -v '^ *+' conftest.er1 >conftest.err |
29608 | rm -f conftest.er1 | |
29609 | cat conftest.err >&5 | |
a848cd7e SC |
29610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29611 | (exit $ac_status); } && | |
89be85c2 VS |
29612 | { ac_try='test -z "$ac_cxx_werror_flag" |
29613 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29615 | (eval $ac_try) 2>&5 | |
29616 | ac_status=$? | |
29617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29618 | (exit $ac_status); }; } && | |
29619 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29621 | (eval $ac_try) 2>&5 | |
29622 | ac_status=$? | |
29623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29624 | (exit $ac_status); }; }; then | |
29625 | eval "$as_ac_var=yes" | |
29626 | else | |
29627 | echo "$as_me: failed program was:" >&5 | |
29628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29629 | ||
29630 | eval "$as_ac_var=no" | |
29631 | fi | |
ac1cb8d3 VS |
29632 | rm -f conftest.err conftest.$ac_objext \ |
29633 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29634 | fi |
29635 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29636 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29637 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29638 | cat >>confdefs.h <<_ACEOF | |
29639 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29640 | _ACEOF | |
29641 | ||
29642 | fi | |
29643 | done | |
29644 | ||
29645 | ||
29646 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
29647 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
29648 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29649 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29651 | else | |
29652 | ||
29653 | cat >conftest.$ac_ext <<_ACEOF | |
29654 | /* confdefs.h. */ | |
29655 | _ACEOF | |
29656 | cat confdefs.h >>conftest.$ac_ext | |
29657 | cat >>conftest.$ac_ext <<_ACEOF | |
29658 | /* end confdefs.h. */ | |
29659 | ||
29660 | #include <stdio.h> | |
29661 | #include <stdarg.h> | |
29662 | ||
29663 | int | |
29664 | main () | |
29665 | { | |
29666 | ||
29667 | char *buf; | |
29668 | va_list ap; | |
29669 | vsnprintf(buf, 10u, "%s", ap); | |
29670 | ||
29671 | ; | |
29672 | return 0; | |
29673 | } | |
29674 | _ACEOF | |
29675 | rm -f conftest.$ac_objext | |
29676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29677 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29678 | ac_status=$? |
ac1cb8d3 VS |
29679 | grep -v '^ *+' conftest.er1 >conftest.err |
29680 | rm -f conftest.er1 | |
29681 | cat conftest.err >&5 | |
a848cd7e SC |
29682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29683 | (exit $ac_status); } && | |
89be85c2 VS |
29684 | { ac_try='test -z "$ac_cxx_werror_flag" |
29685 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29687 | (eval $ac_try) 2>&5 | |
29688 | ac_status=$? | |
29689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29690 | (exit $ac_status); }; } && | |
29691 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29693 | (eval $ac_try) 2>&5 | |
29694 | ac_status=$? | |
29695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29696 | (exit $ac_status); }; }; then | |
29697 | wx_cv_func_vsnprintf_decl=yes | |
29698 | else | |
29699 | echo "$as_me: failed program was:" >&5 | |
29700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29701 | ||
c122b164 DE |
29702 | |
29703 | cat >conftest.$ac_ext <<_ACEOF | |
29704 | /* confdefs.h. */ | |
29705 | _ACEOF | |
29706 | cat confdefs.h >>conftest.$ac_ext | |
29707 | cat >>conftest.$ac_ext <<_ACEOF | |
29708 | /* end confdefs.h. */ | |
29709 | ||
29710 | #include <stdio.h> | |
29711 | #include <stdarg.h> | |
29712 | using namespace std; | |
29713 | ||
29714 | int | |
29715 | main () | |
29716 | { | |
29717 | ||
29718 | char *buf; | |
29719 | va_list ap; | |
29720 | vsnprintf(buf, 10u, "%s", ap); | |
29721 | ||
29722 | ; | |
29723 | return 0; | |
29724 | } | |
29725 | _ACEOF | |
29726 | rm -f conftest.$ac_objext | |
29727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29728 | (eval $ac_compile) 2>conftest.er1 | |
29729 | ac_status=$? | |
29730 | grep -v '^ *+' conftest.er1 >conftest.err | |
29731 | rm -f conftest.er1 | |
29732 | cat conftest.err >&5 | |
29733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29734 | (exit $ac_status); } && | |
89be85c2 VS |
29735 | { ac_try='test -z "$ac_cxx_werror_flag" |
29736 | || test ! -s conftest.err' | |
c122b164 DE |
29737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29738 | (eval $ac_try) 2>&5 | |
29739 | ac_status=$? | |
29740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29741 | (exit $ac_status); }; } && | |
29742 | { ac_try='test -s conftest.$ac_objext' | |
29743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29744 | (eval $ac_try) 2>&5 | |
29745 | ac_status=$? | |
29746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29747 | (exit $ac_status); }; }; then | |
29748 | wx_cv_func_vsnprintf_decl=yes | |
29749 | else | |
29750 | echo "$as_me: failed program was:" >&5 | |
29751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29752 | ||
a848cd7e SC |
29753 | wx_cv_func_vsnprintf_decl=no |
29754 | ||
29755 | fi | |
ac1cb8d3 | 29756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29757 | |
29758 | ||
c122b164 DE |
29759 | fi |
29760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29761 | ||
29762 | ||
a848cd7e SC |
29763 | fi |
29764 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29765 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29766 | ||
29767 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29768 | cat >>confdefs.h <<\_ACEOF | |
29769 | #define HAVE_VSNPRINTF_DECL 1 | |
29770 | _ACEOF | |
29771 | ||
29772 | fi | |
29773 | fi | |
29774 | ||
29775 | if test "$wxUSE_UNICODE" = yes; then | |
29776 | ||
29777 | ||
29778 | ||
fbe47c7b VS |
29779 | |
29780 | ||
29781 | ||
29782 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29783 | do |
29784 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29785 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29786 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29787 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29789 | else | |
29790 | cat >conftest.$ac_ext <<_ACEOF | |
29791 | /* confdefs.h. */ | |
29792 | _ACEOF | |
29793 | cat confdefs.h >>conftest.$ac_ext | |
29794 | cat >>conftest.$ac_ext <<_ACEOF | |
29795 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29796 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29797 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29798 | #define $ac_func innocuous_$ac_func | |
29799 | ||
a848cd7e SC |
29800 | /* System header to define __stub macros and hopefully few prototypes, |
29801 | which can conflict with char $ac_func (); below. | |
29802 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29803 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29804 | |
a848cd7e SC |
29805 | #ifdef __STDC__ |
29806 | # include <limits.h> | |
29807 | #else | |
29808 | # include <assert.h> | |
29809 | #endif | |
ac1cb8d3 VS |
29810 | |
29811 | #undef $ac_func | |
29812 | ||
a848cd7e SC |
29813 | /* Override any gcc2 internal prototype to avoid an error. */ |
29814 | #ifdef __cplusplus | |
29815 | extern "C" | |
29816 | { | |
29817 | #endif | |
29818 | /* We use char because int might match the return type of a gcc2 | |
29819 | builtin and then its argument prototype would still apply. */ | |
29820 | char $ac_func (); | |
29821 | /* The GNU C library defines this for functions which it implements | |
29822 | to always fail with ENOSYS. Some functions are actually named | |
29823 | something starting with __ and the normal name is an alias. */ | |
29824 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29825 | choke me | |
29826 | #else | |
29827 | char (*f) () = $ac_func; | |
29828 | #endif | |
29829 | #ifdef __cplusplus | |
29830 | } | |
29831 | #endif | |
29832 | ||
29833 | int | |
29834 | main () | |
29835 | { | |
29836 | return f != $ac_func; | |
29837 | ; | |
29838 | return 0; | |
29839 | } | |
29840 | _ACEOF | |
29841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29843 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29844 | ac_status=$? |
ac1cb8d3 VS |
29845 | grep -v '^ *+' conftest.er1 >conftest.err |
29846 | rm -f conftest.er1 | |
29847 | cat conftest.err >&5 | |
a848cd7e SC |
29848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29849 | (exit $ac_status); } && | |
89be85c2 VS |
29850 | { ac_try='test -z "$ac_cxx_werror_flag" |
29851 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29853 | (eval $ac_try) 2>&5 | |
29854 | ac_status=$? | |
29855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29856 | (exit $ac_status); }; } && | |
29857 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29859 | (eval $ac_try) 2>&5 | |
29860 | ac_status=$? | |
29861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29862 | (exit $ac_status); }; }; then | |
29863 | eval "$as_ac_var=yes" | |
29864 | else | |
29865 | echo "$as_me: failed program was:" >&5 | |
29866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29867 | ||
29868 | eval "$as_ac_var=no" | |
29869 | fi | |
ac1cb8d3 VS |
29870 | rm -f conftest.err conftest.$ac_objext \ |
29871 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29872 | fi |
29873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29874 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29875 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29876 | cat >>confdefs.h <<_ACEOF | |
29877 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29878 | _ACEOF | |
29879 | ||
29880 | fi | |
29881 | done | |
29882 | ||
29883 | ||
29884 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29885 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29886 | cat >conftest.$ac_ext <<_ACEOF | |
29887 | /* confdefs.h. */ | |
29888 | _ACEOF | |
29889 | cat confdefs.h >>conftest.$ac_ext | |
29890 | cat >>conftest.$ac_ext <<_ACEOF | |
29891 | /* end confdefs.h. */ | |
29892 | #include <wchar.h> | |
29893 | int | |
29894 | main () | |
29895 | { | |
29896 | &_vsnwprintf; | |
29897 | ; | |
29898 | return 0; | |
29899 | } | |
29900 | _ACEOF | |
29901 | rm -f conftest.$ac_objext | |
29902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29903 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29904 | ac_status=$? |
ac1cb8d3 VS |
29905 | grep -v '^ *+' conftest.er1 >conftest.err |
29906 | rm -f conftest.er1 | |
29907 | cat conftest.err >&5 | |
a848cd7e SC |
29908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29909 | (exit $ac_status); } && | |
89be85c2 VS |
29910 | { ac_try='test -z "$ac_cxx_werror_flag" |
29911 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29913 | (eval $ac_try) 2>&5 | |
29914 | ac_status=$? | |
29915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29916 | (exit $ac_status); }; } && | |
29917 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29919 | (eval $ac_try) 2>&5 | |
29920 | ac_status=$? | |
29921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29922 | (exit $ac_status); }; }; then | |
29923 | echo "$as_me:$LINENO: result: yes" >&5 | |
29924 | echo "${ECHO_T}yes" >&6 | |
29925 | cat >>confdefs.h <<\_ACEOF | |
29926 | #define HAVE__VSNWPRINTF 1 | |
29927 | _ACEOF | |
29928 | ||
29929 | else | |
29930 | echo "$as_me: failed program was:" >&5 | |
29931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29932 | ||
29933 | echo "$as_me:$LINENO: result: no" >&5 | |
29934 | echo "${ECHO_T}no" >&6 | |
29935 | fi | |
ac1cb8d3 | 29936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29937 | fi |
29938 | ||
29939 | ac_ext=c | |
29940 | ac_cpp='$CPP $CPPFLAGS' | |
29941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29944 | ||
29945 | ||
29946 | ||
29947 | ||
29948 | if test "$TOOLKIT" != "MSW"; then | |
29949 | ||
29950 | ||
29951 | ||
29952 | ||
29953 | ac_ext=cc | |
29954 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29955 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29956 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29957 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29958 | ||
29959 | ||
29960 | ||
29961 | ||
29962 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29963 | if test "${with_libiconv_prefix+set}" = set; then | |
29964 | withval="$with_libiconv_prefix" | |
29965 | ||
29966 | for dir in `echo "$withval" | tr : ' '`; do | |
29967 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29968 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29969 | done | |
29970 | ||
29971 | fi; | |
29972 | ||
29973 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29974 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29975 | if test "${am_cv_func_iconv+set}" = set; then | |
29976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29977 | else | |
29978 | ||
29979 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29980 | am_cv_lib_iconv=no | |
29981 | cat >conftest.$ac_ext <<_ACEOF | |
29982 | /* confdefs.h. */ | |
29983 | _ACEOF | |
29984 | cat confdefs.h >>conftest.$ac_ext | |
29985 | cat >>conftest.$ac_ext <<_ACEOF | |
29986 | /* end confdefs.h. */ | |
29987 | #include <stdlib.h> | |
29988 | #include <iconv.h> | |
29989 | int | |
29990 | main () | |
29991 | { | |
29992 | iconv_t cd = iconv_open("",""); | |
29993 | iconv(cd,NULL,NULL,NULL,NULL); | |
29994 | iconv_close(cd); | |
29995 | ; | |
29996 | return 0; | |
29997 | } | |
29998 | _ACEOF | |
29999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30001 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30002 | ac_status=$? |
ac1cb8d3 VS |
30003 | grep -v '^ *+' conftest.er1 >conftest.err |
30004 | rm -f conftest.er1 | |
30005 | cat conftest.err >&5 | |
a848cd7e SC |
30006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30007 | (exit $ac_status); } && | |
89be85c2 VS |
30008 | { ac_try='test -z "$ac_cxx_werror_flag" |
30009 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30011 | (eval $ac_try) 2>&5 | |
30012 | ac_status=$? | |
30013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30014 | (exit $ac_status); }; } && | |
30015 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30017 | (eval $ac_try) 2>&5 | |
30018 | ac_status=$? | |
30019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30020 | (exit $ac_status); }; }; then | |
30021 | am_cv_func_iconv=yes | |
30022 | else | |
30023 | echo "$as_me: failed program was:" >&5 | |
30024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30025 | ||
30026 | fi | |
ac1cb8d3 VS |
30027 | rm -f conftest.err conftest.$ac_objext \ |
30028 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30029 | if test "$am_cv_func_iconv" != yes; then |
30030 | am_save_LIBS="$LIBS" | |
30031 | LIBS="$LIBS -liconv" | |
30032 | cat >conftest.$ac_ext <<_ACEOF | |
30033 | /* confdefs.h. */ | |
30034 | _ACEOF | |
30035 | cat confdefs.h >>conftest.$ac_ext | |
30036 | cat >>conftest.$ac_ext <<_ACEOF | |
30037 | /* end confdefs.h. */ | |
30038 | #include <stdlib.h> | |
30039 | #include <iconv.h> | |
30040 | int | |
30041 | main () | |
30042 | { | |
30043 | iconv_t cd = iconv_open("",""); | |
30044 | iconv(cd,NULL,NULL,NULL,NULL); | |
30045 | iconv_close(cd); | |
30046 | ; | |
30047 | return 0; | |
30048 | } | |
30049 | _ACEOF | |
30050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30052 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30053 | ac_status=$? |
ac1cb8d3 VS |
30054 | grep -v '^ *+' conftest.er1 >conftest.err |
30055 | rm -f conftest.er1 | |
30056 | cat conftest.err >&5 | |
a848cd7e SC |
30057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30058 | (exit $ac_status); } && | |
89be85c2 VS |
30059 | { ac_try='test -z "$ac_cxx_werror_flag" |
30060 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30062 | (eval $ac_try) 2>&5 | |
30063 | ac_status=$? | |
30064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30065 | (exit $ac_status); }; } && | |
30066 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30068 | (eval $ac_try) 2>&5 | |
30069 | ac_status=$? | |
30070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30071 | (exit $ac_status); }; }; then | |
30072 | am_cv_lib_iconv=yes | |
30073 | am_cv_func_iconv=yes | |
30074 | else | |
30075 | echo "$as_me: failed program was:" >&5 | |
30076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30077 | ||
30078 | fi | |
ac1cb8d3 VS |
30079 | rm -f conftest.err conftest.$ac_objext \ |
30080 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30081 | LIBS="$am_save_LIBS" |
30082 | fi | |
30083 | ||
30084 | fi | |
30085 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
30086 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
30087 | if test "$am_cv_func_iconv" = yes; then | |
30088 | ||
30089 | cat >>confdefs.h <<\_ACEOF | |
30090 | #define HAVE_ICONV 1 | |
30091 | _ACEOF | |
30092 | ||
30093 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
30094 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
30095 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
30096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30097 | else | |
30098 | cat >conftest.$ac_ext <<_ACEOF | |
30099 | /* confdefs.h. */ | |
30100 | _ACEOF | |
30101 | cat confdefs.h >>conftest.$ac_ext | |
30102 | cat >>conftest.$ac_ext <<_ACEOF | |
30103 | /* end confdefs.h. */ | |
30104 | ||
30105 | #include <stdlib.h> | |
30106 | #include <iconv.h> | |
30107 | extern | |
30108 | #ifdef __cplusplus | |
30109 | "C" | |
30110 | #endif | |
30111 | #if defined(__STDC__) || defined(__cplusplus) | |
30112 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
30113 | #else | |
30114 | size_t iconv(); | |
30115 | #endif | |
30116 | ||
30117 | int | |
30118 | main () | |
30119 | { | |
30120 | ||
30121 | ; | |
30122 | return 0; | |
30123 | } | |
30124 | _ACEOF | |
30125 | rm -f conftest.$ac_objext | |
30126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30127 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30128 | ac_status=$? |
ac1cb8d3 VS |
30129 | grep -v '^ *+' conftest.er1 >conftest.err |
30130 | rm -f conftest.er1 | |
30131 | cat conftest.err >&5 | |
a848cd7e SC |
30132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30133 | (exit $ac_status); } && | |
89be85c2 VS |
30134 | { ac_try='test -z "$ac_cxx_werror_flag" |
30135 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30137 | (eval $ac_try) 2>&5 | |
30138 | ac_status=$? | |
30139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30140 | (exit $ac_status); }; } && | |
30141 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30143 | (eval $ac_try) 2>&5 | |
30144 | ac_status=$? | |
30145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30146 | (exit $ac_status); }; }; then | |
30147 | wx_cv_func_iconv_const="no" | |
30148 | else | |
30149 | echo "$as_me: failed program was:" >&5 | |
30150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30151 | ||
30152 | wx_cv_func_iconv_const="yes" | |
30153 | ||
30154 | fi | |
ac1cb8d3 | 30155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30156 | |
30157 | fi | |
30158 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
30159 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
30160 | ||
30161 | iconv_const= | |
30162 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
30163 | iconv_const="const" | |
30164 | fi | |
30165 | ||
30166 | ||
30167 | cat >>confdefs.h <<_ACEOF | |
30168 | #define ICONV_CONST $iconv_const | |
30169 | _ACEOF | |
30170 | ||
30171 | fi | |
30172 | LIBICONV= | |
30173 | if test "$am_cv_lib_iconv" = yes; then | |
30174 | LIBICONV="-liconv" | |
30175 | fi | |
30176 | ||
30177 | ||
30178 | LIBS="$LIBICONV $LIBS" | |
30179 | ac_ext=c | |
30180 | ac_cpp='$CPP $CPPFLAGS' | |
30181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30184 | ||
30185 | ||
30186 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
30187 | ||
30188 | for ac_func in sigaction | |
30189 | do | |
30190 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30191 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30192 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30193 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30195 | else | |
30196 | cat >conftest.$ac_ext <<_ACEOF | |
30197 | /* confdefs.h. */ | |
30198 | _ACEOF | |
30199 | cat confdefs.h >>conftest.$ac_ext | |
30200 | cat >>conftest.$ac_ext <<_ACEOF | |
30201 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30202 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30203 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30204 | #define $ac_func innocuous_$ac_func | |
30205 | ||
a848cd7e SC |
30206 | /* System header to define __stub macros and hopefully few prototypes, |
30207 | which can conflict with char $ac_func (); below. | |
30208 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30209 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30210 | |
a848cd7e SC |
30211 | #ifdef __STDC__ |
30212 | # include <limits.h> | |
30213 | #else | |
30214 | # include <assert.h> | |
30215 | #endif | |
ac1cb8d3 VS |
30216 | |
30217 | #undef $ac_func | |
30218 | ||
a848cd7e SC |
30219 | /* Override any gcc2 internal prototype to avoid an error. */ |
30220 | #ifdef __cplusplus | |
30221 | extern "C" | |
30222 | { | |
30223 | #endif | |
30224 | /* We use char because int might match the return type of a gcc2 | |
30225 | builtin and then its argument prototype would still apply. */ | |
30226 | char $ac_func (); | |
30227 | /* The GNU C library defines this for functions which it implements | |
30228 | to always fail with ENOSYS. Some functions are actually named | |
30229 | something starting with __ and the normal name is an alias. */ | |
30230 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30231 | choke me | |
30232 | #else | |
30233 | char (*f) () = $ac_func; | |
30234 | #endif | |
30235 | #ifdef __cplusplus | |
30236 | } | |
30237 | #endif | |
30238 | ||
30239 | int | |
30240 | main () | |
30241 | { | |
30242 | return f != $ac_func; | |
30243 | ; | |
30244 | return 0; | |
30245 | } | |
30246 | _ACEOF | |
30247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30249 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30250 | ac_status=$? |
ac1cb8d3 VS |
30251 | grep -v '^ *+' conftest.er1 >conftest.err |
30252 | rm -f conftest.er1 | |
30253 | cat conftest.err >&5 | |
a848cd7e SC |
30254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30255 | (exit $ac_status); } && | |
89be85c2 VS |
30256 | { ac_try='test -z "$ac_c_werror_flag" |
30257 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30259 | (eval $ac_try) 2>&5 | |
30260 | ac_status=$? | |
30261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30262 | (exit $ac_status); }; } && | |
30263 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30265 | (eval $ac_try) 2>&5 | |
30266 | ac_status=$? | |
30267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30268 | (exit $ac_status); }; }; then | |
30269 | eval "$as_ac_var=yes" | |
30270 | else | |
30271 | echo "$as_me: failed program was:" >&5 | |
30272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30273 | ||
30274 | eval "$as_ac_var=no" | |
30275 | fi | |
ac1cb8d3 VS |
30276 | rm -f conftest.err conftest.$ac_objext \ |
30277 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30278 | fi |
30279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30280 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30281 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30282 | cat >>confdefs.h <<_ACEOF | |
30283 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30284 | _ACEOF | |
30285 | ||
30286 | fi | |
30287 | done | |
30288 | ||
30289 | ||
30290 | if test "$ac_cv_func_sigaction" = "no"; then | |
30291 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
30292 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
30293 | wxUSE_ON_FATAL_EXCEPTION=no | |
30294 | fi | |
30295 | ||
30296 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
30297 | ||
30298 | ||
30299 | ac_ext=cc | |
30300 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30301 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30302 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30303 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30304 | ||
30305 | ||
30306 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
30307 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
30308 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
30309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30310 | else | |
30311 | ||
30312 | cat >conftest.$ac_ext <<_ACEOF | |
30313 | /* confdefs.h. */ | |
30314 | _ACEOF | |
30315 | cat confdefs.h >>conftest.$ac_ext | |
30316 | cat >>conftest.$ac_ext <<_ACEOF | |
30317 | /* end confdefs.h. */ | |
30318 | #include <signal.h> | |
30319 | int | |
30320 | main () | |
30321 | { | |
30322 | ||
30323 | extern void testSigHandler(int); | |
30324 | ||
30325 | struct sigaction sa; | |
30326 | sa.sa_handler = testSigHandler; | |
30327 | ||
30328 | ; | |
30329 | return 0; | |
30330 | } | |
30331 | _ACEOF | |
30332 | rm -f conftest.$ac_objext | |
30333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30334 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30335 | ac_status=$? |
ac1cb8d3 VS |
30336 | grep -v '^ *+' conftest.er1 >conftest.err |
30337 | rm -f conftest.er1 | |
30338 | cat conftest.err >&5 | |
a848cd7e SC |
30339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30340 | (exit $ac_status); } && | |
89be85c2 VS |
30341 | { ac_try='test -z "$ac_cxx_werror_flag" |
30342 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30344 | (eval $ac_try) 2>&5 | |
30345 | ac_status=$? | |
30346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30347 | (exit $ac_status); }; } && | |
30348 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30350 | (eval $ac_try) 2>&5 | |
30351 | ac_status=$? | |
30352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30353 | (exit $ac_status); }; }; then | |
30354 | ||
30355 | wx_cv_type_sa_handler=int | |
30356 | ||
30357 | else | |
30358 | echo "$as_me: failed program was:" >&5 | |
30359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30360 | ||
30361 | ||
30362 | wx_cv_type_sa_handler=void | |
30363 | ||
30364 | fi | |
ac1cb8d3 | 30365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30366 | |
30367 | fi | |
30368 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
30369 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
30370 | ||
30371 | ac_ext=c | |
30372 | ac_cpp='$CPP $CPPFLAGS' | |
30373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30376 | ||
30377 | ||
30378 | cat >>confdefs.h <<_ACEOF | |
30379 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
30380 | _ACEOF | |
30381 | ||
30382 | fi | |
30383 | fi | |
30384 | ||
eaff0f0d VZ |
30385 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
30386 | ||
30387 | ||
30388 | ac_ext=cc | |
30389 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30393 | ||
30394 | ||
30395 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
30396 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
30397 | if test "${wx_cv_func_backtrace+set}" = set; then | |
30398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30399 | else | |
30400 | ||
30401 | cat >conftest.$ac_ext <<_ACEOF | |
30402 | /* confdefs.h. */ | |
30403 | _ACEOF | |
30404 | cat confdefs.h >>conftest.$ac_ext | |
30405 | cat >>conftest.$ac_ext <<_ACEOF | |
30406 | /* end confdefs.h. */ | |
30407 | #include <execinfo.h> | |
30408 | int | |
30409 | main () | |
30410 | { | |
30411 | ||
30412 | void *trace[1]; | |
30413 | char **messages; | |
30414 | ||
30415 | backtrace(trace, 1); | |
30416 | messages = backtrace_symbols(trace, 1); | |
30417 | ||
30418 | ; | |
30419 | return 0; | |
30420 | } | |
30421 | _ACEOF | |
30422 | rm -f conftest.$ac_objext | |
30423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30424 | (eval $ac_compile) 2>conftest.er1 | |
30425 | ac_status=$? | |
30426 | grep -v '^ *+' conftest.er1 >conftest.err | |
30427 | rm -f conftest.er1 | |
30428 | cat conftest.err >&5 | |
30429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30430 | (exit $ac_status); } && | |
89be85c2 VS |
30431 | { ac_try='test -z "$ac_cxx_werror_flag" |
30432 | || test ! -s conftest.err' | |
eaff0f0d VZ |
30433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30434 | (eval $ac_try) 2>&5 | |
30435 | ac_status=$? | |
30436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30437 | (exit $ac_status); }; } && | |
30438 | { ac_try='test -s conftest.$ac_objext' | |
30439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30440 | (eval $ac_try) 2>&5 | |
30441 | ac_status=$? | |
30442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30443 | (exit $ac_status); }; }; then | |
30444 | wx_cv_func_backtrace=yes | |
30445 | else | |
30446 | echo "$as_me: failed program was:" >&5 | |
30447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30448 | ||
30449 | wx_cv_func_backtrace=no | |
30450 | ||
30451 | fi | |
30452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30453 | ||
30454 | ||
30455 | fi | |
30456 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
30457 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
30458 | ||
30459 | ||
30460 | if test "$wx_cv_func_backtrace" = "no"; then | |
30461 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
30462 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
30463 | wxUSE_STACKWALKER=no | |
30464 | else | |
30465 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
30466 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
30467 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
30468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30469 | else | |
30470 | ||
30471 | cat >conftest.$ac_ext <<_ACEOF | |
30472 | /* confdefs.h. */ | |
30473 | _ACEOF | |
30474 | cat confdefs.h >>conftest.$ac_ext | |
30475 | cat >>conftest.$ac_ext <<_ACEOF | |
30476 | /* end confdefs.h. */ | |
30477 | #include <cxxabi.h> | |
30478 | int | |
30479 | main () | |
30480 | { | |
30481 | ||
30482 | int rc; | |
30483 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
30484 | ||
30485 | ; | |
30486 | return 0; | |
30487 | } | |
30488 | _ACEOF | |
30489 | rm -f conftest.$ac_objext | |
30490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30491 | (eval $ac_compile) 2>conftest.er1 | |
30492 | ac_status=$? | |
30493 | grep -v '^ *+' conftest.er1 >conftest.err | |
30494 | rm -f conftest.er1 | |
30495 | cat conftest.err >&5 | |
30496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30497 | (exit $ac_status); } && | |
89be85c2 VS |
30498 | { ac_try='test -z "$ac_cxx_werror_flag" |
30499 | || test ! -s conftest.err' | |
eaff0f0d VZ |
30500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30501 | (eval $ac_try) 2>&5 | |
30502 | ac_status=$? | |
30503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30504 | (exit $ac_status); }; } && | |
30505 | { ac_try='test -s conftest.$ac_objext' | |
30506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30507 | (eval $ac_try) 2>&5 | |
30508 | ac_status=$? | |
30509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30510 | (exit $ac_status); }; }; then | |
30511 | wx_cv_func_cxa_demangle=yes | |
30512 | else | |
30513 | echo "$as_me: failed program was:" >&5 | |
30514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30515 | ||
30516 | wx_cv_func_cxa_demangle=no | |
30517 | ||
30518 | fi | |
30519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30520 | ||
30521 | ||
30522 | fi | |
30523 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
30524 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
30525 | ||
30526 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
30527 | cat >>confdefs.h <<\_ACEOF | |
30528 | #define HAVE_CXA_DEMANGLE 1 | |
30529 | _ACEOF | |
30530 | ||
30531 | fi | |
30532 | fi | |
30533 | ||
30534 | ac_ext=c | |
30535 | ac_cpp='$CPP $CPPFLAGS' | |
30536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30539 | ||
30540 | fi | |
30541 | ||
a848cd7e SC |
30542 | |
30543 | ||
30544 | for ac_func in mkstemp mktemp | |
30545 | do | |
30546 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30547 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30548 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30549 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30551 | else | |
30552 | cat >conftest.$ac_ext <<_ACEOF | |
30553 | /* confdefs.h. */ | |
30554 | _ACEOF | |
30555 | cat confdefs.h >>conftest.$ac_ext | |
30556 | cat >>conftest.$ac_ext <<_ACEOF | |
30557 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30558 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30559 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30560 | #define $ac_func innocuous_$ac_func | |
30561 | ||
a848cd7e SC |
30562 | /* System header to define __stub macros and hopefully few prototypes, |
30563 | which can conflict with char $ac_func (); below. | |
30564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30565 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30566 | |
a848cd7e SC |
30567 | #ifdef __STDC__ |
30568 | # include <limits.h> | |
30569 | #else | |
30570 | # include <assert.h> | |
30571 | #endif | |
ac1cb8d3 VS |
30572 | |
30573 | #undef $ac_func | |
30574 | ||
a848cd7e SC |
30575 | /* Override any gcc2 internal prototype to avoid an error. */ |
30576 | #ifdef __cplusplus | |
30577 | extern "C" | |
30578 | { | |
30579 | #endif | |
30580 | /* We use char because int might match the return type of a gcc2 | |
30581 | builtin and then its argument prototype would still apply. */ | |
30582 | char $ac_func (); | |
30583 | /* The GNU C library defines this for functions which it implements | |
30584 | to always fail with ENOSYS. Some functions are actually named | |
30585 | something starting with __ and the normal name is an alias. */ | |
30586 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30587 | choke me | |
30588 | #else | |
30589 | char (*f) () = $ac_func; | |
30590 | #endif | |
30591 | #ifdef __cplusplus | |
30592 | } | |
30593 | #endif | |
30594 | ||
30595 | int | |
30596 | main () | |
30597 | { | |
30598 | return f != $ac_func; | |
30599 | ; | |
30600 | return 0; | |
30601 | } | |
30602 | _ACEOF | |
30603 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30605 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30606 | ac_status=$? |
ac1cb8d3 VS |
30607 | grep -v '^ *+' conftest.er1 >conftest.err |
30608 | rm -f conftest.er1 | |
30609 | cat conftest.err >&5 | |
a848cd7e SC |
30610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30611 | (exit $ac_status); } && | |
89be85c2 VS |
30612 | { ac_try='test -z "$ac_c_werror_flag" |
30613 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30615 | (eval $ac_try) 2>&5 | |
30616 | ac_status=$? | |
30617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30618 | (exit $ac_status); }; } && | |
30619 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30621 | (eval $ac_try) 2>&5 | |
30622 | ac_status=$? | |
30623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30624 | (exit $ac_status); }; }; then | |
30625 | eval "$as_ac_var=yes" | |
30626 | else | |
30627 | echo "$as_me: failed program was:" >&5 | |
30628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30629 | ||
30630 | eval "$as_ac_var=no" | |
30631 | fi | |
ac1cb8d3 VS |
30632 | rm -f conftest.err conftest.$ac_objext \ |
30633 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30634 | fi |
30635 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30636 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30637 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30638 | cat >>confdefs.h <<_ACEOF | |
30639 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30640 | _ACEOF | |
30641 | break | |
30642 | fi | |
30643 | done | |
30644 | ||
30645 | ||
30646 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
30647 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
30648 | if test "${wx_cv_func_statfs+set}" = set; then | |
30649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30650 | else | |
30651 | cat >conftest.$ac_ext <<_ACEOF | |
30652 | /* confdefs.h. */ | |
30653 | _ACEOF | |
30654 | cat confdefs.h >>conftest.$ac_ext | |
30655 | cat >>conftest.$ac_ext <<_ACEOF | |
30656 | /* end confdefs.h. */ | |
30657 | ||
30658 | #if defined(__BSD__) | |
30659 | #include <sys/param.h> | |
30660 | #include <sys/mount.h> | |
30661 | #else | |
30662 | #include <sys/vfs.h> | |
30663 | #endif | |
30664 | ||
30665 | int | |
30666 | main () | |
30667 | { | |
30668 | ||
30669 | long l; | |
30670 | struct statfs fs; | |
30671 | statfs("/", &fs); | |
30672 | l = fs.f_bsize; | |
30673 | l += fs.f_blocks; | |
30674 | l += fs.f_bavail; | |
30675 | ||
30676 | ; | |
30677 | return 0; | |
30678 | } | |
30679 | _ACEOF | |
30680 | rm -f conftest.$ac_objext | |
30681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30682 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30683 | ac_status=$? |
ac1cb8d3 VS |
30684 | grep -v '^ *+' conftest.er1 >conftest.err |
30685 | rm -f conftest.er1 | |
30686 | cat conftest.err >&5 | |
a848cd7e SC |
30687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30688 | (exit $ac_status); } && | |
89be85c2 VS |
30689 | { ac_try='test -z "$ac_c_werror_flag" |
30690 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30692 | (eval $ac_try) 2>&5 | |
30693 | ac_status=$? | |
30694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30695 | (exit $ac_status); }; } && | |
30696 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30698 | (eval $ac_try) 2>&5 | |
30699 | ac_status=$? | |
30700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30701 | (exit $ac_status); }; }; then | |
30702 | ||
30703 | wx_cv_func_statfs=yes | |
30704 | ||
30705 | else | |
30706 | echo "$as_me: failed program was:" >&5 | |
30707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30708 | ||
30709 | ||
30710 | wx_cv_func_statfs=no | |
30711 | ||
30712 | ||
30713 | fi | |
ac1cb8d3 | 30714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30715 | |
30716 | fi | |
30717 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
30718 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
30719 | ||
30720 | if test "$wx_cv_func_statfs" = "yes"; then | |
30721 | wx_cv_type_statvfs_t="struct statfs" | |
30722 | cat >>confdefs.h <<\_ACEOF | |
30723 | #define HAVE_STATFS 1 | |
30724 | _ACEOF | |
30725 | ||
30726 | else | |
30727 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
30728 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
30729 | if test "${wx_cv_func_statvfs+set}" = set; then | |
30730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30731 | else | |
30732 | cat >conftest.$ac_ext <<_ACEOF | |
30733 | /* confdefs.h. */ | |
30734 | _ACEOF | |
30735 | cat confdefs.h >>conftest.$ac_ext | |
30736 | cat >>conftest.$ac_ext <<_ACEOF | |
30737 | /* end confdefs.h. */ | |
30738 | ||
30739 | #include <stddef.h> | |
30740 | #include <sys/statvfs.h> | |
30741 | ||
30742 | int | |
30743 | main () | |
30744 | { | |
30745 | ||
30746 | statvfs("/", NULL); | |
30747 | ||
30748 | ; | |
30749 | return 0; | |
30750 | } | |
30751 | _ACEOF | |
30752 | rm -f conftest.$ac_objext | |
30753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30754 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30755 | ac_status=$? |
ac1cb8d3 VS |
30756 | grep -v '^ *+' conftest.er1 >conftest.err |
30757 | rm -f conftest.er1 | |
30758 | cat conftest.err >&5 | |
a848cd7e SC |
30759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30760 | (exit $ac_status); } && | |
89be85c2 VS |
30761 | { ac_try='test -z "$ac_c_werror_flag" |
30762 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30764 | (eval $ac_try) 2>&5 | |
30765 | ac_status=$? | |
30766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30767 | (exit $ac_status); }; } && | |
30768 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30770 | (eval $ac_try) 2>&5 | |
30771 | ac_status=$? | |
30772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30773 | (exit $ac_status); }; }; then | |
30774 | wx_cv_func_statvfs=yes | |
30775 | else | |
30776 | echo "$as_me: failed program was:" >&5 | |
30777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30778 | ||
30779 | wx_cv_func_statvfs=no | |
30780 | ||
30781 | fi | |
ac1cb8d3 | 30782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30783 | |
30784 | fi | |
30785 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
30786 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
30787 | ||
30788 | if test "$wx_cv_func_statvfs" = "yes"; then | |
30789 | ||
30790 | ||
30791 | ac_ext=cc | |
30792 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30793 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30794 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30795 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30796 | ||
30797 | ||
30798 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
30799 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
30800 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
30801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30802 | else | |
30803 | cat >conftest.$ac_ext <<_ACEOF | |
30804 | /* confdefs.h. */ | |
30805 | _ACEOF | |
30806 | cat confdefs.h >>conftest.$ac_ext | |
30807 | cat >>conftest.$ac_ext <<_ACEOF | |
30808 | /* end confdefs.h. */ | |
30809 | ||
30810 | #include <sys/statvfs.h> | |
30811 | ||
30812 | int | |
30813 | main () | |
30814 | { | |
30815 | ||
30816 | long l; | |
30817 | statvfs_t fs; | |
30818 | statvfs("/", &fs); | |
30819 | l = fs.f_bsize; | |
30820 | l += fs.f_blocks; | |
30821 | l += fs.f_bavail; | |
30822 | ||
30823 | ; | |
30824 | return 0; | |
30825 | } | |
30826 | _ACEOF | |
30827 | rm -f conftest.$ac_objext | |
30828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30829 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30830 | ac_status=$? |
ac1cb8d3 VS |
30831 | grep -v '^ *+' conftest.er1 >conftest.err |
30832 | rm -f conftest.er1 | |
30833 | cat conftest.err >&5 | |
a848cd7e SC |
30834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30835 | (exit $ac_status); } && | |
89be85c2 VS |
30836 | { ac_try='test -z "$ac_cxx_werror_flag" |
30837 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30839 | (eval $ac_try) 2>&5 | |
30840 | ac_status=$? | |
30841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30842 | (exit $ac_status); }; } && | |
30843 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30845 | (eval $ac_try) 2>&5 | |
30846 | ac_status=$? | |
30847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30848 | (exit $ac_status); }; }; then | |
30849 | wx_cv_type_statvfs_t=statvfs_t | |
30850 | else | |
30851 | echo "$as_me: failed program was:" >&5 | |
30852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30853 | ||
30854 | ||
30855 | cat >conftest.$ac_ext <<_ACEOF | |
30856 | /* confdefs.h. */ | |
30857 | _ACEOF | |
30858 | cat confdefs.h >>conftest.$ac_ext | |
30859 | cat >>conftest.$ac_ext <<_ACEOF | |
30860 | /* end confdefs.h. */ | |
30861 | ||
30862 | #include <sys/statvfs.h> | |
30863 | ||
30864 | int | |
30865 | main () | |
30866 | { | |
30867 | ||
30868 | long l; | |
30869 | struct statvfs fs; | |
30870 | statvfs("/", &fs); | |
30871 | l = fs.f_bsize; | |
30872 | l += fs.f_blocks; | |
30873 | l += fs.f_bavail; | |
30874 | ||
30875 | ; | |
30876 | return 0; | |
30877 | } | |
30878 | _ACEOF | |
30879 | rm -f conftest.$ac_objext | |
30880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30881 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30882 | ac_status=$? |
ac1cb8d3 VS |
30883 | grep -v '^ *+' conftest.er1 >conftest.err |
30884 | rm -f conftest.er1 | |
30885 | cat conftest.err >&5 | |
a848cd7e SC |
30886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30887 | (exit $ac_status); } && | |
89be85c2 VS |
30888 | { ac_try='test -z "$ac_cxx_werror_flag" |
30889 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30891 | (eval $ac_try) 2>&5 | |
30892 | ac_status=$? | |
30893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30894 | (exit $ac_status); }; } && | |
30895 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30897 | (eval $ac_try) 2>&5 | |
30898 | ac_status=$? | |
30899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30900 | (exit $ac_status); }; }; then | |
30901 | wx_cv_type_statvfs_t="struct statvfs" | |
30902 | else | |
30903 | echo "$as_me: failed program was:" >&5 | |
30904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30905 | ||
30906 | wx_cv_type_statvfs_t="unknown" | |
30907 | ||
30908 | fi | |
ac1cb8d3 | 30909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30910 | |
30911 | ||
30912 | fi | |
ac1cb8d3 | 30913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30914 | |
30915 | fi | |
30916 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30917 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
30918 | ||
30919 | ac_ext=c | |
30920 | ac_cpp='$CPP $CPPFLAGS' | |
30921 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30922 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30923 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30924 | ||
30925 | ||
30926 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30927 | cat >>confdefs.h <<\_ACEOF | |
30928 | #define HAVE_STATVFS 1 | |
30929 | _ACEOF | |
30930 | ||
30931 | fi | |
30932 | else | |
30933 | wx_cv_type_statvfs_t="unknown" | |
30934 | fi | |
30935 | fi | |
30936 | ||
30937 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30938 | cat >>confdefs.h <<_ACEOF | |
30939 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30940 | _ACEOF | |
30941 | ||
30942 | else | |
30943 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30944 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30945 | fi | |
30946 | ||
30947 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30948 | ||
30949 | ||
30950 | for ac_func in fcntl flock | |
30951 | do | |
30952 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30953 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30954 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30955 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30957 | else | |
30958 | cat >conftest.$ac_ext <<_ACEOF | |
30959 | /* confdefs.h. */ | |
30960 | _ACEOF | |
30961 | cat confdefs.h >>conftest.$ac_ext | |
30962 | cat >>conftest.$ac_ext <<_ACEOF | |
30963 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30964 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30966 | #define $ac_func innocuous_$ac_func | |
30967 | ||
a848cd7e SC |
30968 | /* System header to define __stub macros and hopefully few prototypes, |
30969 | which can conflict with char $ac_func (); below. | |
30970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30971 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30972 | |
a848cd7e SC |
30973 | #ifdef __STDC__ |
30974 | # include <limits.h> | |
30975 | #else | |
30976 | # include <assert.h> | |
30977 | #endif | |
ac1cb8d3 VS |
30978 | |
30979 | #undef $ac_func | |
30980 | ||
a848cd7e SC |
30981 | /* Override any gcc2 internal prototype to avoid an error. */ |
30982 | #ifdef __cplusplus | |
30983 | extern "C" | |
30984 | { | |
30985 | #endif | |
30986 | /* We use char because int might match the return type of a gcc2 | |
30987 | builtin and then its argument prototype would still apply. */ | |
30988 | char $ac_func (); | |
30989 | /* The GNU C library defines this for functions which it implements | |
30990 | to always fail with ENOSYS. Some functions are actually named | |
30991 | something starting with __ and the normal name is an alias. */ | |
30992 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30993 | choke me | |
30994 | #else | |
30995 | char (*f) () = $ac_func; | |
30996 | #endif | |
30997 | #ifdef __cplusplus | |
30998 | } | |
30999 | #endif | |
31000 | ||
31001 | int | |
31002 | main () | |
31003 | { | |
31004 | return f != $ac_func; | |
31005 | ; | |
31006 | return 0; | |
31007 | } | |
31008 | _ACEOF | |
31009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31011 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31012 | ac_status=$? |
ac1cb8d3 VS |
31013 | grep -v '^ *+' conftest.er1 >conftest.err |
31014 | rm -f conftest.er1 | |
31015 | cat conftest.err >&5 | |
a848cd7e SC |
31016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31017 | (exit $ac_status); } && | |
89be85c2 VS |
31018 | { ac_try='test -z "$ac_c_werror_flag" |
31019 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31021 | (eval $ac_try) 2>&5 | |
31022 | ac_status=$? | |
31023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31024 | (exit $ac_status); }; } && | |
31025 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31027 | (eval $ac_try) 2>&5 | |
31028 | ac_status=$? | |
31029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31030 | (exit $ac_status); }; }; then | |
31031 | eval "$as_ac_var=yes" | |
31032 | else | |
31033 | echo "$as_me: failed program was:" >&5 | |
31034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31035 | ||
31036 | eval "$as_ac_var=no" | |
31037 | fi | |
ac1cb8d3 VS |
31038 | rm -f conftest.err conftest.$ac_objext \ |
31039 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31040 | fi |
31041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31042 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31043 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31044 | cat >>confdefs.h <<_ACEOF | |
31045 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31046 | _ACEOF | |
31047 | break | |
31048 | fi | |
31049 | done | |
31050 | ||
31051 | ||
31052 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
31053 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
31054 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
31055 | wxUSE_SNGLINST_CHECKER=no | |
31056 | fi | |
31057 | fi | |
31058 | ||
31059 | ||
31060 | for ac_func in timegm | |
31061 | do | |
31062 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31063 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31064 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31065 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31067 | else | |
31068 | cat >conftest.$ac_ext <<_ACEOF | |
31069 | /* confdefs.h. */ | |
31070 | _ACEOF | |
31071 | cat confdefs.h >>conftest.$ac_ext | |
31072 | cat >>conftest.$ac_ext <<_ACEOF | |
31073 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31074 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31076 | #define $ac_func innocuous_$ac_func | |
31077 | ||
a848cd7e SC |
31078 | /* System header to define __stub macros and hopefully few prototypes, |
31079 | which can conflict with char $ac_func (); below. | |
31080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31081 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31082 | |
a848cd7e SC |
31083 | #ifdef __STDC__ |
31084 | # include <limits.h> | |
31085 | #else | |
31086 | # include <assert.h> | |
31087 | #endif | |
ac1cb8d3 VS |
31088 | |
31089 | #undef $ac_func | |
31090 | ||
a848cd7e SC |
31091 | /* Override any gcc2 internal prototype to avoid an error. */ |
31092 | #ifdef __cplusplus | |
31093 | extern "C" | |
31094 | { | |
31095 | #endif | |
31096 | /* We use char because int might match the return type of a gcc2 | |
31097 | builtin and then its argument prototype would still apply. */ | |
31098 | char $ac_func (); | |
31099 | /* The GNU C library defines this for functions which it implements | |
31100 | to always fail with ENOSYS. Some functions are actually named | |
31101 | something starting with __ and the normal name is an alias. */ | |
31102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31103 | choke me | |
31104 | #else | |
31105 | char (*f) () = $ac_func; | |
31106 | #endif | |
31107 | #ifdef __cplusplus | |
31108 | } | |
31109 | #endif | |
31110 | ||
31111 | int | |
31112 | main () | |
31113 | { | |
31114 | return f != $ac_func; | |
31115 | ; | |
31116 | return 0; | |
31117 | } | |
31118 | _ACEOF | |
31119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31121 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31122 | ac_status=$? |
ac1cb8d3 VS |
31123 | grep -v '^ *+' conftest.er1 >conftest.err |
31124 | rm -f conftest.er1 | |
31125 | cat conftest.err >&5 | |
a848cd7e SC |
31126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31127 | (exit $ac_status); } && | |
89be85c2 VS |
31128 | { ac_try='test -z "$ac_c_werror_flag" |
31129 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31131 | (eval $ac_try) 2>&5 | |
31132 | ac_status=$? | |
31133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31134 | (exit $ac_status); }; } && | |
31135 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31137 | (eval $ac_try) 2>&5 | |
31138 | ac_status=$? | |
31139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31140 | (exit $ac_status); }; }; then | |
31141 | eval "$as_ac_var=yes" | |
31142 | else | |
31143 | echo "$as_me: failed program was:" >&5 | |
31144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31145 | ||
31146 | eval "$as_ac_var=no" | |
31147 | fi | |
ac1cb8d3 VS |
31148 | rm -f conftest.err conftest.$ac_objext \ |
31149 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31150 | fi |
31151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31152 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31153 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31154 | cat >>confdefs.h <<_ACEOF | |
31155 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31156 | _ACEOF | |
31157 | ||
31158 | fi | |
31159 | done | |
31160 | ||
31161 | ||
31162 | ||
31163 | ||
31164 | for ac_func in putenv setenv | |
31165 | do | |
31166 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31167 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31168 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31169 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31171 | else | |
31172 | cat >conftest.$ac_ext <<_ACEOF | |
31173 | /* confdefs.h. */ | |
31174 | _ACEOF | |
31175 | cat confdefs.h >>conftest.$ac_ext | |
31176 | cat >>conftest.$ac_ext <<_ACEOF | |
31177 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31178 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31179 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31180 | #define $ac_func innocuous_$ac_func | |
31181 | ||
a848cd7e SC |
31182 | /* System header to define __stub macros and hopefully few prototypes, |
31183 | which can conflict with char $ac_func (); below. | |
31184 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31185 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31186 | |
a848cd7e SC |
31187 | #ifdef __STDC__ |
31188 | # include <limits.h> | |
31189 | #else | |
31190 | # include <assert.h> | |
31191 | #endif | |
ac1cb8d3 VS |
31192 | |
31193 | #undef $ac_func | |
31194 | ||
a848cd7e SC |
31195 | /* Override any gcc2 internal prototype to avoid an error. */ |
31196 | #ifdef __cplusplus | |
31197 | extern "C" | |
31198 | { | |
31199 | #endif | |
31200 | /* We use char because int might match the return type of a gcc2 | |
31201 | builtin and then its argument prototype would still apply. */ | |
31202 | char $ac_func (); | |
31203 | /* The GNU C library defines this for functions which it implements | |
31204 | to always fail with ENOSYS. Some functions are actually named | |
31205 | something starting with __ and the normal name is an alias. */ | |
31206 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31207 | choke me | |
31208 | #else | |
31209 | char (*f) () = $ac_func; | |
31210 | #endif | |
31211 | #ifdef __cplusplus | |
31212 | } | |
31213 | #endif | |
31214 | ||
31215 | int | |
31216 | main () | |
31217 | { | |
31218 | return f != $ac_func; | |
31219 | ; | |
31220 | return 0; | |
31221 | } | |
31222 | _ACEOF | |
31223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31225 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31226 | ac_status=$? |
ac1cb8d3 VS |
31227 | grep -v '^ *+' conftest.er1 >conftest.err |
31228 | rm -f conftest.er1 | |
31229 | cat conftest.err >&5 | |
a848cd7e SC |
31230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31231 | (exit $ac_status); } && | |
89be85c2 VS |
31232 | { ac_try='test -z "$ac_c_werror_flag" |
31233 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31235 | (eval $ac_try) 2>&5 | |
31236 | ac_status=$? | |
31237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31238 | (exit $ac_status); }; } && | |
31239 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31241 | (eval $ac_try) 2>&5 | |
31242 | ac_status=$? | |
31243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31244 | (exit $ac_status); }; }; then | |
31245 | eval "$as_ac_var=yes" | |
31246 | else | |
31247 | echo "$as_me: failed program was:" >&5 | |
31248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31249 | ||
31250 | eval "$as_ac_var=no" | |
31251 | fi | |
ac1cb8d3 VS |
31252 | rm -f conftest.err conftest.$ac_objext \ |
31253 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31254 | fi |
31255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31256 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31257 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31258 | cat >>confdefs.h <<_ACEOF | |
31259 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31260 | _ACEOF | |
31261 | break | |
31262 | fi | |
31263 | done | |
31264 | ||
31265 | ||
31266 | HAVE_SOME_SLEEP_FUNC=0 | |
31267 | if test "$USE_BEOS" = 1; then | |
31268 | cat >>confdefs.h <<\_ACEOF | |
31269 | #define HAVE_SLEEP 1 | |
31270 | _ACEOF | |
31271 | ||
31272 | HAVE_SOME_SLEEP_FUNC=1 | |
31273 | fi | |
31274 | ||
31275 | if test "$USE_DARWIN" = 1; then | |
31276 | cat >>confdefs.h <<\_ACEOF | |
31277 | #define HAVE_USLEEP 1 | |
31278 | _ACEOF | |
31279 | ||
31280 | HAVE_SOME_SLEEP_FUNC=1 | |
31281 | fi | |
31282 | ||
31283 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
31284 | POSIX4_LINK= | |
31285 | ||
31286 | for ac_func in nanosleep | |
31287 | do | |
31288 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31289 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31290 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31291 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31293 | else | |
31294 | cat >conftest.$ac_ext <<_ACEOF | |
31295 | /* confdefs.h. */ | |
31296 | _ACEOF | |
31297 | cat confdefs.h >>conftest.$ac_ext | |
31298 | cat >>conftest.$ac_ext <<_ACEOF | |
31299 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31300 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31301 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31302 | #define $ac_func innocuous_$ac_func | |
31303 | ||
a848cd7e SC |
31304 | /* System header to define __stub macros and hopefully few prototypes, |
31305 | which can conflict with char $ac_func (); below. | |
31306 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31307 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31308 | |
a848cd7e SC |
31309 | #ifdef __STDC__ |
31310 | # include <limits.h> | |
31311 | #else | |
31312 | # include <assert.h> | |
31313 | #endif | |
ac1cb8d3 VS |
31314 | |
31315 | #undef $ac_func | |
31316 | ||
a848cd7e SC |
31317 | /* Override any gcc2 internal prototype to avoid an error. */ |
31318 | #ifdef __cplusplus | |
31319 | extern "C" | |
31320 | { | |
31321 | #endif | |
31322 | /* We use char because int might match the return type of a gcc2 | |
31323 | builtin and then its argument prototype would still apply. */ | |
31324 | char $ac_func (); | |
31325 | /* The GNU C library defines this for functions which it implements | |
31326 | to always fail with ENOSYS. Some functions are actually named | |
31327 | something starting with __ and the normal name is an alias. */ | |
31328 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31329 | choke me | |
31330 | #else | |
31331 | char (*f) () = $ac_func; | |
31332 | #endif | |
31333 | #ifdef __cplusplus | |
31334 | } | |
31335 | #endif | |
31336 | ||
31337 | int | |
31338 | main () | |
31339 | { | |
31340 | return f != $ac_func; | |
31341 | ; | |
31342 | return 0; | |
31343 | } | |
31344 | _ACEOF | |
31345 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31347 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31348 | ac_status=$? |
ac1cb8d3 VS |
31349 | grep -v '^ *+' conftest.er1 >conftest.err |
31350 | rm -f conftest.er1 | |
31351 | cat conftest.err >&5 | |
a848cd7e SC |
31352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31353 | (exit $ac_status); } && | |
89be85c2 VS |
31354 | { ac_try='test -z "$ac_c_werror_flag" |
31355 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31357 | (eval $ac_try) 2>&5 | |
31358 | ac_status=$? | |
31359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31360 | (exit $ac_status); }; } && | |
31361 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31363 | (eval $ac_try) 2>&5 | |
31364 | ac_status=$? | |
31365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31366 | (exit $ac_status); }; }; then | |
31367 | eval "$as_ac_var=yes" | |
31368 | else | |
31369 | echo "$as_me: failed program was:" >&5 | |
31370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31371 | ||
31372 | eval "$as_ac_var=no" | |
31373 | fi | |
ac1cb8d3 VS |
31374 | rm -f conftest.err conftest.$ac_objext \ |
31375 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31376 | fi |
31377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31378 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31379 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31380 | cat >>confdefs.h <<_ACEOF | |
31381 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31382 | _ACEOF | |
31383 | cat >>confdefs.h <<\_ACEOF | |
31384 | #define HAVE_NANOSLEEP 1 | |
31385 | _ACEOF | |
31386 | ||
31387 | else | |
31388 | ||
31389 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
31390 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
31391 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
31392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31393 | else | |
31394 | ac_check_lib_save_LIBS=$LIBS | |
31395 | LIBS="-lposix4 $LIBS" | |
31396 | cat >conftest.$ac_ext <<_ACEOF | |
31397 | /* confdefs.h. */ | |
31398 | _ACEOF | |
31399 | cat confdefs.h >>conftest.$ac_ext | |
31400 | cat >>conftest.$ac_ext <<_ACEOF | |
31401 | /* end confdefs.h. */ | |
31402 | ||
31403 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31404 | #ifdef __cplusplus | |
31405 | extern "C" | |
31406 | #endif | |
31407 | /* We use char because int might match the return type of a gcc2 | |
31408 | builtin and then its argument prototype would still apply. */ | |
31409 | char nanosleep (); | |
31410 | int | |
31411 | main () | |
31412 | { | |
31413 | nanosleep (); | |
31414 | ; | |
31415 | return 0; | |
31416 | } | |
31417 | _ACEOF | |
31418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31420 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31421 | ac_status=$? |
ac1cb8d3 VS |
31422 | grep -v '^ *+' conftest.er1 >conftest.err |
31423 | rm -f conftest.er1 | |
31424 | cat conftest.err >&5 | |
a848cd7e SC |
31425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31426 | (exit $ac_status); } && | |
89be85c2 VS |
31427 | { ac_try='test -z "$ac_c_werror_flag" |
31428 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31430 | (eval $ac_try) 2>&5 | |
31431 | ac_status=$? | |
31432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31433 | (exit $ac_status); }; } && | |
31434 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31436 | (eval $ac_try) 2>&5 | |
31437 | ac_status=$? | |
31438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31439 | (exit $ac_status); }; }; then | |
31440 | ac_cv_lib_posix4_nanosleep=yes | |
31441 | else | |
31442 | echo "$as_me: failed program was:" >&5 | |
31443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31444 | ||
31445 | ac_cv_lib_posix4_nanosleep=no | |
31446 | fi | |
ac1cb8d3 VS |
31447 | rm -f conftest.err conftest.$ac_objext \ |
31448 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31449 | LIBS=$ac_check_lib_save_LIBS |
31450 | fi | |
31451 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
31452 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
31453 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
31454 | ||
31455 | cat >>confdefs.h <<\_ACEOF | |
31456 | #define HAVE_NANOSLEEP 1 | |
31457 | _ACEOF | |
31458 | ||
31459 | POSIX4_LINK=" -lposix4" | |
31460 | ||
31461 | else | |
31462 | ||
31463 | ||
31464 | for ac_func in usleep | |
31465 | do | |
31466 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31467 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31468 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31469 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31471 | else | |
31472 | cat >conftest.$ac_ext <<_ACEOF | |
31473 | /* confdefs.h. */ | |
31474 | _ACEOF | |
31475 | cat confdefs.h >>conftest.$ac_ext | |
31476 | cat >>conftest.$ac_ext <<_ACEOF | |
31477 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31478 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31480 | #define $ac_func innocuous_$ac_func | |
31481 | ||
a848cd7e SC |
31482 | /* System header to define __stub macros and hopefully few prototypes, |
31483 | which can conflict with char $ac_func (); below. | |
31484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31485 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31486 | |
a848cd7e SC |
31487 | #ifdef __STDC__ |
31488 | # include <limits.h> | |
31489 | #else | |
31490 | # include <assert.h> | |
31491 | #endif | |
ac1cb8d3 VS |
31492 | |
31493 | #undef $ac_func | |
31494 | ||
a848cd7e SC |
31495 | /* Override any gcc2 internal prototype to avoid an error. */ |
31496 | #ifdef __cplusplus | |
31497 | extern "C" | |
31498 | { | |
31499 | #endif | |
31500 | /* We use char because int might match the return type of a gcc2 | |
31501 | builtin and then its argument prototype would still apply. */ | |
31502 | char $ac_func (); | |
31503 | /* The GNU C library defines this for functions which it implements | |
31504 | to always fail with ENOSYS. Some functions are actually named | |
31505 | something starting with __ and the normal name is an alias. */ | |
31506 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31507 | choke me | |
31508 | #else | |
31509 | char (*f) () = $ac_func; | |
31510 | #endif | |
31511 | #ifdef __cplusplus | |
31512 | } | |
31513 | #endif | |
31514 | ||
31515 | int | |
31516 | main () | |
31517 | { | |
31518 | return f != $ac_func; | |
31519 | ; | |
31520 | return 0; | |
31521 | } | |
31522 | _ACEOF | |
31523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31525 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31526 | ac_status=$? |
ac1cb8d3 VS |
31527 | grep -v '^ *+' conftest.er1 >conftest.err |
31528 | rm -f conftest.er1 | |
31529 | cat conftest.err >&5 | |
a848cd7e SC |
31530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31531 | (exit $ac_status); } && | |
89be85c2 VS |
31532 | { ac_try='test -z "$ac_c_werror_flag" |
31533 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31535 | (eval $ac_try) 2>&5 | |
31536 | ac_status=$? | |
31537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31538 | (exit $ac_status); }; } && | |
31539 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31541 | (eval $ac_try) 2>&5 | |
31542 | ac_status=$? | |
31543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31544 | (exit $ac_status); }; }; then | |
31545 | eval "$as_ac_var=yes" | |
31546 | else | |
31547 | echo "$as_me: failed program was:" >&5 | |
31548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31549 | ||
31550 | eval "$as_ac_var=no" | |
31551 | fi | |
ac1cb8d3 VS |
31552 | rm -f conftest.err conftest.$ac_objext \ |
31553 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31554 | fi |
31555 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31556 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31557 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31558 | cat >>confdefs.h <<_ACEOF | |
31559 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31560 | _ACEOF | |
31561 | cat >>confdefs.h <<\_ACEOF | |
31562 | #define HAVE_USLEEP 1 | |
31563 | _ACEOF | |
31564 | ||
31565 | else | |
31566 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
31567 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
31568 | ||
31569 | fi | |
31570 | done | |
31571 | ||
31572 | ||
31573 | ||
31574 | fi | |
31575 | ||
31576 | ||
31577 | ||
31578 | fi | |
31579 | done | |
31580 | ||
31581 | fi | |
31582 | ||
31583 | ||
31584 | ||
31585 | for ac_func in uname gethostname | |
31586 | do | |
31587 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31588 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31589 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31590 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31592 | else | |
31593 | cat >conftest.$ac_ext <<_ACEOF | |
31594 | /* confdefs.h. */ | |
31595 | _ACEOF | |
31596 | cat confdefs.h >>conftest.$ac_ext | |
31597 | cat >>conftest.$ac_ext <<_ACEOF | |
31598 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31599 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31601 | #define $ac_func innocuous_$ac_func | |
31602 | ||
a848cd7e SC |
31603 | /* System header to define __stub macros and hopefully few prototypes, |
31604 | which can conflict with char $ac_func (); below. | |
31605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31606 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31607 | |
a848cd7e SC |
31608 | #ifdef __STDC__ |
31609 | # include <limits.h> | |
31610 | #else | |
31611 | # include <assert.h> | |
31612 | #endif | |
ac1cb8d3 VS |
31613 | |
31614 | #undef $ac_func | |
31615 | ||
a848cd7e SC |
31616 | /* Override any gcc2 internal prototype to avoid an error. */ |
31617 | #ifdef __cplusplus | |
31618 | extern "C" | |
31619 | { | |
31620 | #endif | |
31621 | /* We use char because int might match the return type of a gcc2 | |
31622 | builtin and then its argument prototype would still apply. */ | |
31623 | char $ac_func (); | |
31624 | /* The GNU C library defines this for functions which it implements | |
31625 | to always fail with ENOSYS. Some functions are actually named | |
31626 | something starting with __ and the normal name is an alias. */ | |
31627 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31628 | choke me | |
31629 | #else | |
31630 | char (*f) () = $ac_func; | |
31631 | #endif | |
31632 | #ifdef __cplusplus | |
31633 | } | |
31634 | #endif | |
31635 | ||
31636 | int | |
31637 | main () | |
31638 | { | |
31639 | return f != $ac_func; | |
31640 | ; | |
31641 | return 0; | |
31642 | } | |
31643 | _ACEOF | |
31644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31646 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31647 | ac_status=$? |
ac1cb8d3 VS |
31648 | grep -v '^ *+' conftest.er1 >conftest.err |
31649 | rm -f conftest.er1 | |
31650 | cat conftest.err >&5 | |
a848cd7e SC |
31651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31652 | (exit $ac_status); } && | |
89be85c2 VS |
31653 | { ac_try='test -z "$ac_c_werror_flag" |
31654 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31656 | (eval $ac_try) 2>&5 | |
31657 | ac_status=$? | |
31658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31659 | (exit $ac_status); }; } && | |
31660 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31662 | (eval $ac_try) 2>&5 | |
31663 | ac_status=$? | |
31664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31665 | (exit $ac_status); }; }; then | |
31666 | eval "$as_ac_var=yes" | |
31667 | else | |
31668 | echo "$as_me: failed program was:" >&5 | |
31669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31670 | ||
31671 | eval "$as_ac_var=no" | |
31672 | fi | |
ac1cb8d3 VS |
31673 | rm -f conftest.err conftest.$ac_objext \ |
31674 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31675 | fi |
31676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31677 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31678 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31679 | cat >>confdefs.h <<_ACEOF | |
31680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31681 | _ACEOF | |
31682 | break | |
31683 | fi | |
31684 | done | |
31685 | ||
31686 | ||
31687 | ||
31688 | ||
31689 | ac_ext=cc | |
31690 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31691 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31692 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31693 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31694 | ||
31695 | ||
31696 | ||
31697 | for ac_func in strtok_r | |
31698 | do | |
31699 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31700 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31701 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31702 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31704 | else | |
31705 | cat >conftest.$ac_ext <<_ACEOF | |
31706 | /* confdefs.h. */ | |
31707 | _ACEOF | |
31708 | cat confdefs.h >>conftest.$ac_ext | |
31709 | cat >>conftest.$ac_ext <<_ACEOF | |
31710 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31711 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31713 | #define $ac_func innocuous_$ac_func | |
31714 | ||
a848cd7e SC |
31715 | /* System header to define __stub macros and hopefully few prototypes, |
31716 | which can conflict with char $ac_func (); below. | |
31717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31718 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31719 | |
a848cd7e SC |
31720 | #ifdef __STDC__ |
31721 | # include <limits.h> | |
31722 | #else | |
31723 | # include <assert.h> | |
31724 | #endif | |
ac1cb8d3 VS |
31725 | |
31726 | #undef $ac_func | |
31727 | ||
a848cd7e SC |
31728 | /* Override any gcc2 internal prototype to avoid an error. */ |
31729 | #ifdef __cplusplus | |
31730 | extern "C" | |
31731 | { | |
31732 | #endif | |
31733 | /* We use char because int might match the return type of a gcc2 | |
31734 | builtin and then its argument prototype would still apply. */ | |
31735 | char $ac_func (); | |
31736 | /* The GNU C library defines this for functions which it implements | |
31737 | to always fail with ENOSYS. Some functions are actually named | |
31738 | something starting with __ and the normal name is an alias. */ | |
31739 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31740 | choke me | |
31741 | #else | |
31742 | char (*f) () = $ac_func; | |
31743 | #endif | |
31744 | #ifdef __cplusplus | |
31745 | } | |
31746 | #endif | |
31747 | ||
31748 | int | |
31749 | main () | |
31750 | { | |
31751 | return f != $ac_func; | |
31752 | ; | |
31753 | return 0; | |
31754 | } | |
31755 | _ACEOF | |
31756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31758 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31759 | ac_status=$? |
ac1cb8d3 VS |
31760 | grep -v '^ *+' conftest.er1 >conftest.err |
31761 | rm -f conftest.er1 | |
31762 | cat conftest.err >&5 | |
a848cd7e SC |
31763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31764 | (exit $ac_status); } && | |
89be85c2 VS |
31765 | { ac_try='test -z "$ac_cxx_werror_flag" |
31766 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31768 | (eval $ac_try) 2>&5 | |
31769 | ac_status=$? | |
31770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31771 | (exit $ac_status); }; } && | |
31772 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31774 | (eval $ac_try) 2>&5 | |
31775 | ac_status=$? | |
31776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31777 | (exit $ac_status); }; }; then | |
31778 | eval "$as_ac_var=yes" | |
31779 | else | |
31780 | echo "$as_me: failed program was:" >&5 | |
31781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31782 | ||
31783 | eval "$as_ac_var=no" | |
31784 | fi | |
ac1cb8d3 VS |
31785 | rm -f conftest.err conftest.$ac_objext \ |
31786 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31787 | fi |
31788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31789 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31790 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31791 | cat >>confdefs.h <<_ACEOF | |
31792 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31793 | _ACEOF | |
31794 | ||
31795 | fi | |
31796 | done | |
31797 | ||
31798 | ||
31799 | ac_ext=c | |
31800 | ac_cpp='$CPP $CPPFLAGS' | |
31801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31804 | ||
31805 | ||
31806 | INET_LINK= | |
31807 | ||
31808 | for ac_func in inet_addr | |
31809 | do | |
31810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31811 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31813 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31815 | else | |
31816 | cat >conftest.$ac_ext <<_ACEOF | |
31817 | /* confdefs.h. */ | |
31818 | _ACEOF | |
31819 | cat confdefs.h >>conftest.$ac_ext | |
31820 | cat >>conftest.$ac_ext <<_ACEOF | |
31821 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31822 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31823 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31824 | #define $ac_func innocuous_$ac_func | |
31825 | ||
a848cd7e SC |
31826 | /* System header to define __stub macros and hopefully few prototypes, |
31827 | which can conflict with char $ac_func (); below. | |
31828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31829 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31830 | |
a848cd7e SC |
31831 | #ifdef __STDC__ |
31832 | # include <limits.h> | |
31833 | #else | |
31834 | # include <assert.h> | |
31835 | #endif | |
ac1cb8d3 VS |
31836 | |
31837 | #undef $ac_func | |
31838 | ||
a848cd7e SC |
31839 | /* Override any gcc2 internal prototype to avoid an error. */ |
31840 | #ifdef __cplusplus | |
31841 | extern "C" | |
31842 | { | |
31843 | #endif | |
31844 | /* We use char because int might match the return type of a gcc2 | |
31845 | builtin and then its argument prototype would still apply. */ | |
31846 | char $ac_func (); | |
31847 | /* The GNU C library defines this for functions which it implements | |
31848 | to always fail with ENOSYS. Some functions are actually named | |
31849 | something starting with __ and the normal name is an alias. */ | |
31850 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31851 | choke me | |
31852 | #else | |
31853 | char (*f) () = $ac_func; | |
31854 | #endif | |
31855 | #ifdef __cplusplus | |
31856 | } | |
31857 | #endif | |
31858 | ||
31859 | int | |
31860 | main () | |
31861 | { | |
31862 | return f != $ac_func; | |
31863 | ; | |
31864 | return 0; | |
31865 | } | |
31866 | _ACEOF | |
31867 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31869 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31870 | ac_status=$? |
ac1cb8d3 VS |
31871 | grep -v '^ *+' conftest.er1 >conftest.err |
31872 | rm -f conftest.er1 | |
31873 | cat conftest.err >&5 | |
a848cd7e SC |
31874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31875 | (exit $ac_status); } && | |
89be85c2 VS |
31876 | { ac_try='test -z "$ac_c_werror_flag" |
31877 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31879 | (eval $ac_try) 2>&5 | |
31880 | ac_status=$? | |
31881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31882 | (exit $ac_status); }; } && | |
31883 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31885 | (eval $ac_try) 2>&5 | |
31886 | ac_status=$? | |
31887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31888 | (exit $ac_status); }; }; then | |
31889 | eval "$as_ac_var=yes" | |
31890 | else | |
31891 | echo "$as_me: failed program was:" >&5 | |
31892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31893 | ||
31894 | eval "$as_ac_var=no" | |
31895 | fi | |
ac1cb8d3 VS |
31896 | rm -f conftest.err conftest.$ac_objext \ |
31897 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31898 | fi |
31899 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31900 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31901 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31902 | cat >>confdefs.h <<_ACEOF | |
31903 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31904 | _ACEOF | |
31905 | cat >>confdefs.h <<\_ACEOF | |
31906 | #define HAVE_INET_ADDR 1 | |
31907 | _ACEOF | |
31908 | ||
31909 | else | |
31910 | ||
31911 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31912 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31913 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31915 | else | |
31916 | ac_check_lib_save_LIBS=$LIBS | |
31917 | LIBS="-lnsl $LIBS" | |
31918 | cat >conftest.$ac_ext <<_ACEOF | |
31919 | /* confdefs.h. */ | |
31920 | _ACEOF | |
31921 | cat confdefs.h >>conftest.$ac_ext | |
31922 | cat >>conftest.$ac_ext <<_ACEOF | |
31923 | /* end confdefs.h. */ | |
31924 | ||
31925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31926 | #ifdef __cplusplus | |
31927 | extern "C" | |
31928 | #endif | |
31929 | /* We use char because int might match the return type of a gcc2 | |
31930 | builtin and then its argument prototype would still apply. */ | |
31931 | char inet_addr (); | |
31932 | int | |
31933 | main () | |
31934 | { | |
31935 | inet_addr (); | |
31936 | ; | |
31937 | return 0; | |
31938 | } | |
31939 | _ACEOF | |
31940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31942 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31943 | ac_status=$? |
ac1cb8d3 VS |
31944 | grep -v '^ *+' conftest.er1 >conftest.err |
31945 | rm -f conftest.er1 | |
31946 | cat conftest.err >&5 | |
a848cd7e SC |
31947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31948 | (exit $ac_status); } && | |
89be85c2 VS |
31949 | { ac_try='test -z "$ac_c_werror_flag" |
31950 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31952 | (eval $ac_try) 2>&5 | |
31953 | ac_status=$? | |
31954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31955 | (exit $ac_status); }; } && | |
31956 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31958 | (eval $ac_try) 2>&5 | |
31959 | ac_status=$? | |
31960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31961 | (exit $ac_status); }; }; then | |
31962 | ac_cv_lib_nsl_inet_addr=yes | |
31963 | else | |
31964 | echo "$as_me: failed program was:" >&5 | |
31965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31966 | ||
31967 | ac_cv_lib_nsl_inet_addr=no | |
31968 | fi | |
ac1cb8d3 VS |
31969 | rm -f conftest.err conftest.$ac_objext \ |
31970 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31971 | LIBS=$ac_check_lib_save_LIBS |
31972 | fi | |
31973 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31974 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31975 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31976 | INET_LINK="nsl" | |
31977 | else | |
31978 | ||
31979 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31980 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31981 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31983 | else | |
31984 | ac_check_lib_save_LIBS=$LIBS | |
31985 | LIBS="-lresolv $LIBS" | |
31986 | cat >conftest.$ac_ext <<_ACEOF | |
31987 | /* confdefs.h. */ | |
31988 | _ACEOF | |
31989 | cat confdefs.h >>conftest.$ac_ext | |
31990 | cat >>conftest.$ac_ext <<_ACEOF | |
31991 | /* end confdefs.h. */ | |
31992 | ||
31993 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31994 | #ifdef __cplusplus | |
31995 | extern "C" | |
31996 | #endif | |
31997 | /* We use char because int might match the return type of a gcc2 | |
31998 | builtin and then its argument prototype would still apply. */ | |
31999 | char inet_addr (); | |
32000 | int | |
32001 | main () | |
32002 | { | |
32003 | inet_addr (); | |
32004 | ; | |
32005 | return 0; | |
32006 | } | |
32007 | _ACEOF | |
32008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32010 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32011 | ac_status=$? |
ac1cb8d3 VS |
32012 | grep -v '^ *+' conftest.er1 >conftest.err |
32013 | rm -f conftest.er1 | |
32014 | cat conftest.err >&5 | |
a848cd7e SC |
32015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32016 | (exit $ac_status); } && | |
89be85c2 VS |
32017 | { ac_try='test -z "$ac_c_werror_flag" |
32018 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32020 | (eval $ac_try) 2>&5 | |
32021 | ac_status=$? | |
32022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32023 | (exit $ac_status); }; } && | |
32024 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32026 | (eval $ac_try) 2>&5 | |
32027 | ac_status=$? | |
32028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32029 | (exit $ac_status); }; }; then | |
32030 | ac_cv_lib_resolv_inet_addr=yes | |
32031 | else | |
32032 | echo "$as_me: failed program was:" >&5 | |
32033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32034 | ||
32035 | ac_cv_lib_resolv_inet_addr=no | |
32036 | fi | |
ac1cb8d3 VS |
32037 | rm -f conftest.err conftest.$ac_objext \ |
32038 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32039 | LIBS=$ac_check_lib_save_LIBS |
32040 | fi | |
32041 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
32042 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
32043 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
32044 | INET_LINK="resolv" | |
32045 | else | |
32046 | ||
32047 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
32048 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
32049 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
32050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32051 | else | |
32052 | ac_check_lib_save_LIBS=$LIBS | |
32053 | LIBS="-lsocket $LIBS" | |
32054 | cat >conftest.$ac_ext <<_ACEOF | |
32055 | /* confdefs.h. */ | |
32056 | _ACEOF | |
32057 | cat confdefs.h >>conftest.$ac_ext | |
32058 | cat >>conftest.$ac_ext <<_ACEOF | |
32059 | /* end confdefs.h. */ | |
32060 | ||
32061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32062 | #ifdef __cplusplus | |
32063 | extern "C" | |
32064 | #endif | |
32065 | /* We use char because int might match the return type of a gcc2 | |
32066 | builtin and then its argument prototype would still apply. */ | |
32067 | char inet_addr (); | |
32068 | int | |
32069 | main () | |
32070 | { | |
32071 | inet_addr (); | |
32072 | ; | |
32073 | return 0; | |
32074 | } | |
32075 | _ACEOF | |
32076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32078 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32079 | ac_status=$? |
ac1cb8d3 VS |
32080 | grep -v '^ *+' conftest.er1 >conftest.err |
32081 | rm -f conftest.er1 | |
32082 | cat conftest.err >&5 | |
a848cd7e SC |
32083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32084 | (exit $ac_status); } && | |
89be85c2 VS |
32085 | { ac_try='test -z "$ac_c_werror_flag" |
32086 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32088 | (eval $ac_try) 2>&5 | |
32089 | ac_status=$? | |
32090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32091 | (exit $ac_status); }; } && | |
32092 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32094 | (eval $ac_try) 2>&5 | |
32095 | ac_status=$? | |
32096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32097 | (exit $ac_status); }; }; then | |
32098 | ac_cv_lib_socket_inet_addr=yes | |
32099 | else | |
32100 | echo "$as_me: failed program was:" >&5 | |
32101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32102 | ||
32103 | ac_cv_lib_socket_inet_addr=no | |
32104 | fi | |
ac1cb8d3 VS |
32105 | rm -f conftest.err conftest.$ac_objext \ |
32106 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32107 | LIBS=$ac_check_lib_save_LIBS |
32108 | fi | |
32109 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
32110 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
32111 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
32112 | INET_LINK="socket" | |
32113 | ||
32114 | fi | |
32115 | ||
32116 | ||
32117 | ||
32118 | fi | |
32119 | ||
32120 | ||
32121 | ||
32122 | fi | |
32123 | ||
32124 | ||
32125 | ||
32126 | fi | |
32127 | done | |
32128 | ||
32129 | ||
32130 | ||
32131 | for ac_func in inet_aton | |
32132 | do | |
32133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32134 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32136 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32138 | else | |
32139 | cat >conftest.$ac_ext <<_ACEOF | |
32140 | /* confdefs.h. */ | |
32141 | _ACEOF | |
32142 | cat confdefs.h >>conftest.$ac_ext | |
32143 | cat >>conftest.$ac_ext <<_ACEOF | |
32144 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32145 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32147 | #define $ac_func innocuous_$ac_func | |
32148 | ||
a848cd7e SC |
32149 | /* System header to define __stub macros and hopefully few prototypes, |
32150 | which can conflict with char $ac_func (); below. | |
32151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32152 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32153 | |
a848cd7e SC |
32154 | #ifdef __STDC__ |
32155 | # include <limits.h> | |
32156 | #else | |
32157 | # include <assert.h> | |
32158 | #endif | |
ac1cb8d3 VS |
32159 | |
32160 | #undef $ac_func | |
32161 | ||
a848cd7e SC |
32162 | /* Override any gcc2 internal prototype to avoid an error. */ |
32163 | #ifdef __cplusplus | |
32164 | extern "C" | |
32165 | { | |
32166 | #endif | |
32167 | /* We use char because int might match the return type of a gcc2 | |
32168 | builtin and then its argument prototype would still apply. */ | |
32169 | char $ac_func (); | |
32170 | /* The GNU C library defines this for functions which it implements | |
32171 | to always fail with ENOSYS. Some functions are actually named | |
32172 | something starting with __ and the normal name is an alias. */ | |
32173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32174 | choke me | |
32175 | #else | |
32176 | char (*f) () = $ac_func; | |
32177 | #endif | |
32178 | #ifdef __cplusplus | |
32179 | } | |
32180 | #endif | |
32181 | ||
32182 | int | |
32183 | main () | |
32184 | { | |
32185 | return f != $ac_func; | |
32186 | ; | |
32187 | return 0; | |
32188 | } | |
32189 | _ACEOF | |
32190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32192 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32193 | ac_status=$? |
ac1cb8d3 VS |
32194 | grep -v '^ *+' conftest.er1 >conftest.err |
32195 | rm -f conftest.er1 | |
32196 | cat conftest.err >&5 | |
a848cd7e SC |
32197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32198 | (exit $ac_status); } && | |
89be85c2 VS |
32199 | { ac_try='test -z "$ac_c_werror_flag" |
32200 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32202 | (eval $ac_try) 2>&5 | |
32203 | ac_status=$? | |
32204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32205 | (exit $ac_status); }; } && | |
32206 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32208 | (eval $ac_try) 2>&5 | |
32209 | ac_status=$? | |
32210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32211 | (exit $ac_status); }; }; then | |
32212 | eval "$as_ac_var=yes" | |
32213 | else | |
32214 | echo "$as_me: failed program was:" >&5 | |
32215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32216 | ||
32217 | eval "$as_ac_var=no" | |
32218 | fi | |
ac1cb8d3 VS |
32219 | rm -f conftest.err conftest.$ac_objext \ |
32220 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32221 | fi |
32222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32225 | cat >>confdefs.h <<_ACEOF | |
32226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32227 | _ACEOF | |
32228 | cat >>confdefs.h <<\_ACEOF | |
32229 | #define HAVE_INET_ATON 1 | |
32230 | _ACEOF | |
32231 | ||
32232 | else | |
32233 | ||
32234 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
32235 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
32236 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
32237 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
32238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32239 | else | |
32240 | ac_check_lib_save_LIBS=$LIBS | |
32241 | LIBS="-l$INET_LINK $LIBS" | |
32242 | cat >conftest.$ac_ext <<_ACEOF | |
32243 | /* confdefs.h. */ | |
32244 | _ACEOF | |
32245 | cat confdefs.h >>conftest.$ac_ext | |
32246 | cat >>conftest.$ac_ext <<_ACEOF | |
32247 | /* end confdefs.h. */ | |
32248 | ||
32249 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32250 | #ifdef __cplusplus | |
32251 | extern "C" | |
32252 | #endif | |
32253 | /* We use char because int might match the return type of a gcc2 | |
32254 | builtin and then its argument prototype would still apply. */ | |
32255 | char inet_aton (); | |
32256 | int | |
32257 | main () | |
32258 | { | |
32259 | inet_aton (); | |
32260 | ; | |
32261 | return 0; | |
32262 | } | |
32263 | _ACEOF | |
32264 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32266 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32267 | ac_status=$? |
ac1cb8d3 VS |
32268 | grep -v '^ *+' conftest.er1 >conftest.err |
32269 | rm -f conftest.er1 | |
32270 | cat conftest.err >&5 | |
a848cd7e SC |
32271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32272 | (exit $ac_status); } && | |
89be85c2 VS |
32273 | { ac_try='test -z "$ac_c_werror_flag" |
32274 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32276 | (eval $ac_try) 2>&5 | |
32277 | ac_status=$? | |
32278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32279 | (exit $ac_status); }; } && | |
32280 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32282 | (eval $ac_try) 2>&5 | |
32283 | ac_status=$? | |
32284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32285 | (exit $ac_status); }; }; then | |
32286 | eval "$as_ac_Lib=yes" | |
32287 | else | |
32288 | echo "$as_me: failed program was:" >&5 | |
32289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32290 | ||
32291 | eval "$as_ac_Lib=no" | |
32292 | fi | |
ac1cb8d3 VS |
32293 | rm -f conftest.err conftest.$ac_objext \ |
32294 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32295 | LIBS=$ac_check_lib_save_LIBS |
32296 | fi | |
32297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
32298 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
32299 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
32300 | cat >>confdefs.h <<\_ACEOF | |
32301 | #define HAVE_INET_ATON 1 | |
32302 | _ACEOF | |
32303 | ||
32304 | fi | |
32305 | ||
32306 | ||
32307 | fi | |
32308 | done | |
32309 | ||
32310 | ||
32311 | if test "x$INET_LINK" != "x"; then | |
32312 | cat >>confdefs.h <<\_ACEOF | |
32313 | #define HAVE_INET_ADDR 1 | |
32314 | _ACEOF | |
32315 | ||
32316 | INET_LINK=" -l$INET_LINK" | |
32317 | fi | |
32318 | ||
32319 | fi | |
32320 | ||
32321 | ||
32322 | ||
32323 | EXTRALIBS_ESD= | |
32324 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
32325 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
32326 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
32327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32328 | else | |
32329 | ac_check_lib_save_LIBS=$LIBS | |
32330 | LIBS="-lesd $LIBS" | |
32331 | cat >conftest.$ac_ext <<_ACEOF | |
32332 | /* confdefs.h. */ | |
32333 | _ACEOF | |
32334 | cat confdefs.h >>conftest.$ac_ext | |
32335 | cat >>conftest.$ac_ext <<_ACEOF | |
32336 | /* end confdefs.h. */ | |
32337 | ||
32338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32339 | #ifdef __cplusplus | |
32340 | extern "C" | |
32341 | #endif | |
32342 | /* We use char because int might match the return type of a gcc2 | |
32343 | builtin and then its argument prototype would still apply. */ | |
32344 | char esd_close (); | |
32345 | int | |
32346 | main () | |
32347 | { | |
32348 | esd_close (); | |
32349 | ; | |
32350 | return 0; | |
32351 | } | |
32352 | _ACEOF | |
32353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32355 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32356 | ac_status=$? |
ac1cb8d3 VS |
32357 | grep -v '^ *+' conftest.er1 >conftest.err |
32358 | rm -f conftest.er1 | |
32359 | cat conftest.err >&5 | |
a848cd7e SC |
32360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32361 | (exit $ac_status); } && | |
89be85c2 VS |
32362 | { ac_try='test -z "$ac_c_werror_flag" |
32363 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32365 | (eval $ac_try) 2>&5 | |
32366 | ac_status=$? | |
32367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32368 | (exit $ac_status); }; } && | |
32369 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32371 | (eval $ac_try) 2>&5 | |
32372 | ac_status=$? | |
32373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32374 | (exit $ac_status); }; }; then | |
32375 | ac_cv_lib_esd_esd_close=yes | |
32376 | else | |
32377 | echo "$as_me: failed program was:" >&5 | |
32378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32379 | ||
32380 | ac_cv_lib_esd_esd_close=no | |
32381 | fi | |
ac1cb8d3 VS |
32382 | rm -f conftest.err conftest.$ac_objext \ |
32383 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32384 | LIBS=$ac_check_lib_save_LIBS |
32385 | fi | |
32386 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
32387 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
32388 | if test $ac_cv_lib_esd_esd_close = yes; then | |
32389 | ||
32390 | ||
32391 | for ac_header in esd.h | |
32392 | do | |
32393 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32394 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32395 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32397 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32399 | fi | |
32400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32401 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32402 | else | |
32403 | # Is the header compilable? | |
32404 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32405 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32406 | cat >conftest.$ac_ext <<_ACEOF | |
32407 | /* confdefs.h. */ | |
32408 | _ACEOF | |
32409 | cat confdefs.h >>conftest.$ac_ext | |
32410 | cat >>conftest.$ac_ext <<_ACEOF | |
32411 | /* end confdefs.h. */ | |
32412 | $ac_includes_default | |
32413 | #include <$ac_header> | |
32414 | _ACEOF | |
32415 | rm -f conftest.$ac_objext | |
32416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32417 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32418 | ac_status=$? |
ac1cb8d3 VS |
32419 | grep -v '^ *+' conftest.er1 >conftest.err |
32420 | rm -f conftest.er1 | |
32421 | cat conftest.err >&5 | |
a848cd7e SC |
32422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32423 | (exit $ac_status); } && | |
89be85c2 VS |
32424 | { ac_try='test -z "$ac_c_werror_flag" |
32425 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32427 | (eval $ac_try) 2>&5 | |
32428 | ac_status=$? | |
32429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32430 | (exit $ac_status); }; } && | |
32431 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32433 | (eval $ac_try) 2>&5 | |
32434 | ac_status=$? | |
32435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32436 | (exit $ac_status); }; }; then | |
32437 | ac_header_compiler=yes | |
32438 | else | |
32439 | echo "$as_me: failed program was:" >&5 | |
32440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32441 | ||
32442 | ac_header_compiler=no | |
32443 | fi | |
ac1cb8d3 | 32444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32445 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32446 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32447 | ||
32448 | # Is the header present? | |
32449 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32450 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32451 | cat >conftest.$ac_ext <<_ACEOF | |
32452 | /* confdefs.h. */ | |
32453 | _ACEOF | |
32454 | cat confdefs.h >>conftest.$ac_ext | |
32455 | cat >>conftest.$ac_ext <<_ACEOF | |
32456 | /* end confdefs.h. */ | |
32457 | #include <$ac_header> | |
32458 | _ACEOF | |
32459 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32460 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32461 | ac_status=$? | |
32462 | grep -v '^ *+' conftest.er1 >conftest.err | |
32463 | rm -f conftest.er1 | |
32464 | cat conftest.err >&5 | |
32465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32466 | (exit $ac_status); } >/dev/null; then | |
32467 | if test -s conftest.err; then | |
32468 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32470 | else |
32471 | ac_cpp_err= | |
32472 | fi | |
32473 | else | |
32474 | ac_cpp_err=yes | |
32475 | fi | |
32476 | if test -z "$ac_cpp_err"; then | |
32477 | ac_header_preproc=yes | |
32478 | else | |
32479 | echo "$as_me: failed program was:" >&5 | |
32480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32481 | ||
32482 | ac_header_preproc=no | |
32483 | fi | |
32484 | rm -f conftest.err conftest.$ac_ext | |
32485 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32486 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32487 | ||
32488 | # So? What about this header? | |
ac1cb8d3 VS |
32489 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32490 | yes:no: ) | |
a848cd7e SC |
32491 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32492 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32493 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32494 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32495 | ac_header_preproc=yes | |
a848cd7e | 32496 | ;; |
ac1cb8d3 | 32497 | no:yes:* ) |
a848cd7e SC |
32498 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32499 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32500 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32501 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32502 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32503 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32504 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32505 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32506 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32507 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32508 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32509 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32510 | ( |
32511 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32512 | ## ----------------------------------------- ## |
32513 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32514 | ## ----------------------------------------- ## | |
a848cd7e SC |
32515 | _ASBOX |
32516 | ) | | |
32517 | sed "s/^/$as_me: WARNING: /" >&2 | |
32518 | ;; | |
32519 | esac | |
32520 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32521 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32524 | else | |
ac1cb8d3 | 32525 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32526 | fi |
32527 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32528 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32529 | ||
32530 | fi | |
32531 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32532 | cat >>confdefs.h <<_ACEOF | |
32533 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32534 | _ACEOF | |
32535 | ||
32536 | EXTRALIBS_ESD="-lesd" | |
32537 | ||
32538 | fi | |
32539 | ||
32540 | done | |
32541 | ||
32542 | ||
32543 | fi | |
32544 | ||
32545 | ||
32546 | ||
32547 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
32548 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
32549 | cat >conftest.$ac_ext <<_ACEOF | |
32550 | /* confdefs.h. */ | |
32551 | _ACEOF | |
32552 | cat confdefs.h >>conftest.$ac_ext | |
32553 | cat >>conftest.$ac_ext <<_ACEOF | |
32554 | /* end confdefs.h. */ | |
32555 | #ifdef __linux__ | |
32556 | #include <linux/cdrom.h> | |
32557 | #else | |
32558 | /* For Solaris */ | |
32559 | #include <sys/cdio.h> | |
32560 | #endif | |
32561 | ||
32562 | int | |
32563 | main () | |
32564 | { | |
32565 | struct cdrom_tocentry entry, old_entry; | |
32566 | ; | |
32567 | return 0; | |
32568 | } | |
32569 | _ACEOF | |
32570 | rm -f conftest.$ac_objext | |
32571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32572 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32573 | ac_status=$? |
ac1cb8d3 VS |
32574 | grep -v '^ *+' conftest.er1 >conftest.err |
32575 | rm -f conftest.er1 | |
32576 | cat conftest.err >&5 | |
a848cd7e SC |
32577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32578 | (exit $ac_status); } && | |
89be85c2 VS |
32579 | { ac_try='test -z "$ac_c_werror_flag" |
32580 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32582 | (eval $ac_try) 2>&5 | |
32583 | ac_status=$? | |
32584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32585 | (exit $ac_status); }; } && | |
32586 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32588 | (eval $ac_try) 2>&5 | |
32589 | ac_status=$? | |
32590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32591 | (exit $ac_status); }; }; then | |
32592 | echo "$as_me:$LINENO: result: yes" >&5 | |
32593 | echo "${ECHO_T}yes" >&6 | |
32594 | cat >>confdefs.h <<\_ACEOF | |
32595 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
32596 | _ACEOF | |
32597 | ||
32598 | else | |
32599 | echo "$as_me: failed program was:" >&5 | |
32600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32601 | ||
32602 | echo "$as_me:$LINENO: result: no" >&5 | |
32603 | echo "${ECHO_T}no" >&6 | |
32604 | fi | |
ac1cb8d3 | 32605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32606 | |
32607 | ||
32608 | cat >confcache <<\_ACEOF | |
32609 | # This file is a shell script that caches the results of configure | |
32610 | # tests run on this system so they can be shared between configure | |
32611 | # scripts and configure runs, see configure's option --config-cache. | |
32612 | # It is not useful on other systems. If it contains results you don't | |
32613 | # want to keep, you may remove or edit it. | |
32614 | # | |
32615 | # config.status only pays attention to the cache file if you give it | |
32616 | # the --recheck option to rerun configure. | |
32617 | # | |
32618 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
32619 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
32620 | # following values. | |
32621 | ||
32622 | _ACEOF | |
32623 | ||
32624 | # The following way of writing the cache mishandles newlines in values, | |
32625 | # but we know of no workaround that is simple, portable, and efficient. | |
32626 | # So, don't put newlines in cache variables' values. | |
32627 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
32628 | # and sets the high bit in the cache file unless we assign to the vars. | |
32629 | { | |
32630 | (set) 2>&1 | | |
32631 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
32632 | *ac_space=\ *) | |
32633 | # `set' does not quote correctly, so add quotes (double-quote | |
32634 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
32635 | sed -n \ | |
ac1cb8d3 VS |
32636 | "s/'/'\\\\''/g; |
32637 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
32638 | ;; |
32639 | *) | |
32640 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
32641 | sed -n \ | |
ac1cb8d3 | 32642 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
32643 | ;; |
32644 | esac; | |
32645 | } | | |
32646 | sed ' | |
32647 | t clear | |
32648 | : clear | |
32649 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
32650 | t end | |
32651 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
32652 | : end' >>confcache | |
32653 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
32654 | if test -w $cache_file; then | |
32655 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
32656 | cat confcache >$cache_file | |
32657 | else | |
32658 | echo "not updating unwritable cache $cache_file" | |
32659 | fi | |
32660 | fi | |
32661 | rm -f confcache | |
32662 | ||
32663 | ||
32664 | CPP_MT_FLAG= | |
32665 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
32666 | ||
32667 | ||
32668 | THREADS_LINK= | |
32669 | THREADS_CFLAGS= | |
32670 | ||
32671 | if test "$wxUSE_THREADS" = "yes" ; then | |
32672 | if test "$USE_BEOS" = 1; then | |
32673 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
32674 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
32675 | wxUSE_THREADS="no" | |
32676 | fi | |
32677 | fi | |
32678 | ||
32679 | if test "$wxUSE_THREADS" = "yes" ; then | |
32680 | ||
32681 | ||
32682 | THREAD_OPTS="-pthread" | |
32683 | case "${host}" in | |
32684 | *-*-solaris2* | *-*-sunos4* ) | |
32685 | if test "x$GCC" = "xyes"; then | |
32686 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
32687 | else | |
32688 | THREAD_OPTS="-mt $THREAD_OPTS" | |
32689 | fi | |
32690 | ;; | |
32691 | *-*-freebsd*) | |
32692 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
32693 | ;; | |
32694 | *-*-darwin* | *-*-cygwin* ) | |
32695 | THREAD_OPTS="" | |
32696 | ;; | |
32697 | *-*-aix*) | |
32698 | THREAD_OPTS="pthreads" | |
32699 | ;; | |
32700 | *-hp-hpux* ) | |
32701 | if test "x$GCC" != "xyes"; then | |
32702 | THREAD_OPTS="" | |
32703 | fi | |
32704 | ;; | |
32705 | ||
32706 | *-*-irix* ) | |
32707 | if test "x$GCC" = "xyes"; then | |
32708 | THREAD_OPTS="" | |
32709 | fi | |
32710 | ;; | |
32711 | ||
32712 | *-*-*UnixWare*) | |
32713 | if test "x$GCC" != "xyes"; then | |
32714 | THREAD_OPTS="-Ethread" | |
32715 | fi | |
32716 | ;; | |
32717 | esac | |
32718 | ||
32719 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
32720 | ||
32721 | THREADS_OK=no | |
32722 | for flag in $THREAD_OPTS; do | |
32723 | case $flag in | |
32724 | none) | |
32725 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
32726 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
32727 | ;; | |
32728 | ||
32729 | -*) | |
32730 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
32731 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
32732 | THREADS_CFLAGS="$flag" | |
32733 | ;; | |
32734 | ||
32735 | *) | |
32736 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
32737 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
32738 | THREADS_LINK="-l$flag" | |
32739 | ;; | |
32740 | esac | |
32741 | ||
32742 | save_LIBS="$LIBS" | |
32743 | save_CFLAGS="$CFLAGS" | |
32744 | LIBS="$THREADS_LINK $LIBS" | |
32745 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
32746 | ||
32747 | cat >conftest.$ac_ext <<_ACEOF | |
32748 | /* confdefs.h. */ | |
32749 | _ACEOF | |
32750 | cat confdefs.h >>conftest.$ac_ext | |
32751 | cat >>conftest.$ac_ext <<_ACEOF | |
32752 | /* end confdefs.h. */ | |
32753 | #include <pthread.h> | |
32754 | int | |
32755 | main () | |
32756 | { | |
32757 | pthread_create(0,0,0,0); | |
32758 | ; | |
32759 | return 0; | |
32760 | } | |
32761 | _ACEOF | |
32762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32764 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32765 | ac_status=$? |
ac1cb8d3 VS |
32766 | grep -v '^ *+' conftest.er1 >conftest.err |
32767 | rm -f conftest.er1 | |
32768 | cat conftest.err >&5 | |
a848cd7e SC |
32769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32770 | (exit $ac_status); } && | |
89be85c2 VS |
32771 | { ac_try='test -z "$ac_c_werror_flag" |
32772 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32774 | (eval $ac_try) 2>&5 | |
32775 | ac_status=$? | |
32776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32777 | (exit $ac_status); }; } && | |
32778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32780 | (eval $ac_try) 2>&5 | |
32781 | ac_status=$? | |
32782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32783 | (exit $ac_status); }; }; then | |
32784 | THREADS_OK=yes | |
32785 | else | |
32786 | echo "$as_me: failed program was:" >&5 | |
32787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32788 | ||
32789 | fi | |
ac1cb8d3 VS |
32790 | rm -f conftest.err conftest.$ac_objext \ |
32791 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32792 | |
32793 | LIBS="$save_LIBS" | |
32794 | CFLAGS="$save_CFLAGS" | |
32795 | ||
32796 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
32797 | echo "${ECHO_T}$THREADS_OK" >&6 | |
32798 | if test "x$THREADS_OK" = "xyes"; then | |
32799 | break; | |
32800 | fi | |
32801 | ||
32802 | THREADS_LINK="" | |
32803 | THREADS_CFLAGS="" | |
32804 | done | |
32805 | ||
32806 | if test "x$THREADS_OK" != "xyes"; then | |
32807 | wxUSE_THREADS=no | |
32808 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
32809 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
32810 | else | |
32811 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
32812 | LIBS="$THREADS_LINK $LIBS" | |
32813 | ||
32814 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
32815 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
32816 | flag=no | |
32817 | case "${host}" in | |
32818 | *-aix*) | |
32819 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
32820 | flag="-D_THREAD_SAFE" | |
32821 | ;; | |
32822 | *-freebsd*) | |
32823 | flag="-D_THREAD_SAFE" | |
32824 | ;; | |
32825 | *-hp-hpux* ) | |
32826 | flag="-D_REENTRANT" | |
32827 | if test "x$GCC" != "xyes"; then | |
32828 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
32829 | fi | |
32830 | ;; | |
32831 | *solaris* | alpha*-osf*) | |
32832 | flag="-D_REENTRANT" | |
32833 | ;; | |
32834 | esac | |
32835 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
32836 | echo "${ECHO_T}${flag}" >&6 | |
32837 | if test "x$flag" != xno; then | |
32838 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
32839 | fi | |
32840 | ||
32841 | if test "x$THREADS_CFLAGS" != "x"; then | |
32842 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
32843 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
32844 | fi | |
32845 | fi | |
32846 | fi | |
32847 | ||
32848 | if test "$wxUSE_THREADS" = "yes" ; then | |
32849 | ||
32850 | for ac_func in thr_setconcurrency | |
32851 | do | |
32852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32853 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32855 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32857 | else | |
32858 | cat >conftest.$ac_ext <<_ACEOF | |
32859 | /* confdefs.h. */ | |
32860 | _ACEOF | |
32861 | cat confdefs.h >>conftest.$ac_ext | |
32862 | cat >>conftest.$ac_ext <<_ACEOF | |
32863 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32864 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32866 | #define $ac_func innocuous_$ac_func | |
32867 | ||
a848cd7e SC |
32868 | /* System header to define __stub macros and hopefully few prototypes, |
32869 | which can conflict with char $ac_func (); below. | |
32870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32871 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32872 | |
a848cd7e SC |
32873 | #ifdef __STDC__ |
32874 | # include <limits.h> | |
32875 | #else | |
32876 | # include <assert.h> | |
32877 | #endif | |
ac1cb8d3 VS |
32878 | |
32879 | #undef $ac_func | |
32880 | ||
a848cd7e SC |
32881 | /* Override any gcc2 internal prototype to avoid an error. */ |
32882 | #ifdef __cplusplus | |
32883 | extern "C" | |
32884 | { | |
32885 | #endif | |
32886 | /* We use char because int might match the return type of a gcc2 | |
32887 | builtin and then its argument prototype would still apply. */ | |
32888 | char $ac_func (); | |
32889 | /* The GNU C library defines this for functions which it implements | |
32890 | to always fail with ENOSYS. Some functions are actually named | |
32891 | something starting with __ and the normal name is an alias. */ | |
32892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32893 | choke me | |
32894 | #else | |
32895 | char (*f) () = $ac_func; | |
32896 | #endif | |
32897 | #ifdef __cplusplus | |
32898 | } | |
32899 | #endif | |
32900 | ||
32901 | int | |
32902 | main () | |
32903 | { | |
32904 | return f != $ac_func; | |
32905 | ; | |
32906 | return 0; | |
32907 | } | |
32908 | _ACEOF | |
32909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32911 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32912 | ac_status=$? |
ac1cb8d3 VS |
32913 | grep -v '^ *+' conftest.er1 >conftest.err |
32914 | rm -f conftest.er1 | |
32915 | cat conftest.err >&5 | |
a848cd7e SC |
32916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32917 | (exit $ac_status); } && | |
89be85c2 VS |
32918 | { ac_try='test -z "$ac_c_werror_flag" |
32919 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32921 | (eval $ac_try) 2>&5 | |
32922 | ac_status=$? | |
32923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32924 | (exit $ac_status); }; } && | |
32925 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32927 | (eval $ac_try) 2>&5 | |
32928 | ac_status=$? | |
32929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32930 | (exit $ac_status); }; }; then | |
32931 | eval "$as_ac_var=yes" | |
32932 | else | |
32933 | echo "$as_me: failed program was:" >&5 | |
32934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32935 | ||
32936 | eval "$as_ac_var=no" | |
32937 | fi | |
ac1cb8d3 VS |
32938 | rm -f conftest.err conftest.$ac_objext \ |
32939 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32940 | fi |
32941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32942 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32943 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32944 | cat >>confdefs.h <<_ACEOF | |
32945 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32946 | _ACEOF | |
32947 | ||
32948 | fi | |
32949 | done | |
32950 | ||
32951 | ||
32952 | ||
32953 | for ac_header in sched.h | |
32954 | do | |
32955 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32956 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32957 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32958 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32959 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32961 | fi | |
32962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32963 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32964 | else | |
32965 | # Is the header compilable? | |
32966 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32967 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32968 | cat >conftest.$ac_ext <<_ACEOF | |
32969 | /* confdefs.h. */ | |
32970 | _ACEOF | |
32971 | cat confdefs.h >>conftest.$ac_ext | |
32972 | cat >>conftest.$ac_ext <<_ACEOF | |
32973 | /* end confdefs.h. */ | |
32974 | $ac_includes_default | |
32975 | #include <$ac_header> | |
32976 | _ACEOF | |
32977 | rm -f conftest.$ac_objext | |
32978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32979 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32980 | ac_status=$? |
ac1cb8d3 VS |
32981 | grep -v '^ *+' conftest.er1 >conftest.err |
32982 | rm -f conftest.er1 | |
32983 | cat conftest.err >&5 | |
a848cd7e SC |
32984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32985 | (exit $ac_status); } && | |
89be85c2 VS |
32986 | { ac_try='test -z "$ac_c_werror_flag" |
32987 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32989 | (eval $ac_try) 2>&5 | |
32990 | ac_status=$? | |
32991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32992 | (exit $ac_status); }; } && | |
32993 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32995 | (eval $ac_try) 2>&5 | |
32996 | ac_status=$? | |
32997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32998 | (exit $ac_status); }; }; then | |
32999 | ac_header_compiler=yes | |
33000 | else | |
33001 | echo "$as_me: failed program was:" >&5 | |
33002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33003 | ||
33004 | ac_header_compiler=no | |
33005 | fi | |
ac1cb8d3 | 33006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33007 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33008 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33009 | ||
33010 | # Is the header present? | |
33011 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33012 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33013 | cat >conftest.$ac_ext <<_ACEOF | |
33014 | /* confdefs.h. */ | |
33015 | _ACEOF | |
33016 | cat confdefs.h >>conftest.$ac_ext | |
33017 | cat >>conftest.$ac_ext <<_ACEOF | |
33018 | /* end confdefs.h. */ | |
33019 | #include <$ac_header> | |
33020 | _ACEOF | |
33021 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33022 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33023 | ac_status=$? | |
33024 | grep -v '^ *+' conftest.er1 >conftest.err | |
33025 | rm -f conftest.er1 | |
33026 | cat conftest.err >&5 | |
33027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33028 | (exit $ac_status); } >/dev/null; then | |
33029 | if test -s conftest.err; then | |
33030 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33031 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33032 | else |
33033 | ac_cpp_err= | |
33034 | fi | |
33035 | else | |
33036 | ac_cpp_err=yes | |
33037 | fi | |
33038 | if test -z "$ac_cpp_err"; then | |
33039 | ac_header_preproc=yes | |
33040 | else | |
33041 | echo "$as_me: failed program was:" >&5 | |
33042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33043 | ||
33044 | ac_header_preproc=no | |
33045 | fi | |
33046 | rm -f conftest.err conftest.$ac_ext | |
33047 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33048 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33049 | ||
33050 | # So? What about this header? | |
ac1cb8d3 VS |
33051 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33052 | yes:no: ) | |
a848cd7e SC |
33053 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33054 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33056 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33057 | ac_header_preproc=yes | |
a848cd7e | 33058 | ;; |
ac1cb8d3 | 33059 | no:yes:* ) |
a848cd7e SC |
33060 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33061 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33062 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33063 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33064 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33065 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33066 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33067 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33069 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33070 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33071 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33072 | ( |
33073 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33074 | ## ----------------------------------------- ## |
33075 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33076 | ## ----------------------------------------- ## | |
a848cd7e SC |
33077 | _ASBOX |
33078 | ) | | |
33079 | sed "s/^/$as_me: WARNING: /" >&2 | |
33080 | ;; | |
33081 | esac | |
33082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33086 | else | |
ac1cb8d3 | 33087 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33088 | fi |
33089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33090 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33091 | ||
33092 | fi | |
33093 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33094 | cat >>confdefs.h <<_ACEOF | |
33095 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33096 | _ACEOF | |
33097 | ||
33098 | fi | |
33099 | ||
33100 | done | |
33101 | ||
33102 | if test "$ac_cv_header_sched_h" = "yes"; then | |
33103 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
33104 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
33105 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
33106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33107 | else | |
33108 | cat >conftest.$ac_ext <<_ACEOF | |
33109 | /* confdefs.h. */ | |
33110 | _ACEOF | |
33111 | cat confdefs.h >>conftest.$ac_ext | |
33112 | cat >>conftest.$ac_ext <<_ACEOF | |
33113 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33114 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
33115 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33116 | #define sched_yield innocuous_sched_yield | |
33117 | ||
a848cd7e SC |
33118 | /* System header to define __stub macros and hopefully few prototypes, |
33119 | which can conflict with char sched_yield (); below. | |
33120 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33121 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33122 | |
a848cd7e SC |
33123 | #ifdef __STDC__ |
33124 | # include <limits.h> | |
33125 | #else | |
33126 | # include <assert.h> | |
33127 | #endif | |
ac1cb8d3 VS |
33128 | |
33129 | #undef sched_yield | |
33130 | ||
a848cd7e SC |
33131 | /* Override any gcc2 internal prototype to avoid an error. */ |
33132 | #ifdef __cplusplus | |
33133 | extern "C" | |
33134 | { | |
33135 | #endif | |
33136 | /* We use char because int might match the return type of a gcc2 | |
33137 | builtin and then its argument prototype would still apply. */ | |
33138 | char sched_yield (); | |
33139 | /* The GNU C library defines this for functions which it implements | |
33140 | to always fail with ENOSYS. Some functions are actually named | |
33141 | something starting with __ and the normal name is an alias. */ | |
33142 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
33143 | choke me | |
33144 | #else | |
33145 | char (*f) () = sched_yield; | |
33146 | #endif | |
33147 | #ifdef __cplusplus | |
33148 | } | |
33149 | #endif | |
33150 | ||
33151 | int | |
33152 | main () | |
33153 | { | |
33154 | return f != sched_yield; | |
33155 | ; | |
33156 | return 0; | |
33157 | } | |
33158 | _ACEOF | |
33159 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33161 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33162 | ac_status=$? |
ac1cb8d3 VS |
33163 | grep -v '^ *+' conftest.er1 >conftest.err |
33164 | rm -f conftest.er1 | |
33165 | cat conftest.err >&5 | |
a848cd7e SC |
33166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33167 | (exit $ac_status); } && | |
89be85c2 VS |
33168 | { ac_try='test -z "$ac_c_werror_flag" |
33169 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33171 | (eval $ac_try) 2>&5 | |
33172 | ac_status=$? | |
33173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33174 | (exit $ac_status); }; } && | |
33175 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33177 | (eval $ac_try) 2>&5 | |
33178 | ac_status=$? | |
33179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33180 | (exit $ac_status); }; }; then | |
33181 | ac_cv_func_sched_yield=yes | |
33182 | else | |
33183 | echo "$as_me: failed program was:" >&5 | |
33184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33185 | ||
33186 | ac_cv_func_sched_yield=no | |
33187 | fi | |
ac1cb8d3 VS |
33188 | rm -f conftest.err conftest.$ac_objext \ |
33189 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33190 | fi |
33191 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
33192 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
33193 | if test $ac_cv_func_sched_yield = yes; then | |
33194 | cat >>confdefs.h <<\_ACEOF | |
33195 | #define HAVE_SCHED_YIELD 1 | |
33196 | _ACEOF | |
33197 | ||
33198 | else | |
33199 | ||
33200 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
33201 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
33202 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
33203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33204 | else | |
33205 | ac_check_lib_save_LIBS=$LIBS | |
33206 | LIBS="-lposix4 $LIBS" | |
33207 | cat >conftest.$ac_ext <<_ACEOF | |
33208 | /* confdefs.h. */ | |
33209 | _ACEOF | |
33210 | cat confdefs.h >>conftest.$ac_ext | |
33211 | cat >>conftest.$ac_ext <<_ACEOF | |
33212 | /* end confdefs.h. */ | |
33213 | ||
33214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33215 | #ifdef __cplusplus | |
33216 | extern "C" | |
33217 | #endif | |
33218 | /* We use char because int might match the return type of a gcc2 | |
33219 | builtin and then its argument prototype would still apply. */ | |
33220 | char sched_yield (); | |
33221 | int | |
33222 | main () | |
33223 | { | |
33224 | sched_yield (); | |
33225 | ; | |
33226 | return 0; | |
33227 | } | |
33228 | _ACEOF | |
33229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33231 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33232 | ac_status=$? |
ac1cb8d3 VS |
33233 | grep -v '^ *+' conftest.er1 >conftest.err |
33234 | rm -f conftest.er1 | |
33235 | cat conftest.err >&5 | |
a848cd7e SC |
33236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33237 | (exit $ac_status); } && | |
89be85c2 VS |
33238 | { ac_try='test -z "$ac_c_werror_flag" |
33239 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33241 | (eval $ac_try) 2>&5 | |
33242 | ac_status=$? | |
33243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33244 | (exit $ac_status); }; } && | |
33245 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33247 | (eval $ac_try) 2>&5 | |
33248 | ac_status=$? | |
33249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33250 | (exit $ac_status); }; }; then | |
33251 | ac_cv_lib_posix4_sched_yield=yes | |
33252 | else | |
33253 | echo "$as_me: failed program was:" >&5 | |
33254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33255 | ||
33256 | ac_cv_lib_posix4_sched_yield=no | |
33257 | fi | |
ac1cb8d3 VS |
33258 | rm -f conftest.err conftest.$ac_objext \ |
33259 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33260 | LIBS=$ac_check_lib_save_LIBS |
33261 | fi | |
33262 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
33263 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
33264 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
33265 | cat >>confdefs.h <<\_ACEOF | |
33266 | #define HAVE_SCHED_YIELD 1 | |
33267 | _ACEOF | |
33268 | POSIX4_LINK=" -lposix4" | |
33269 | else | |
33270 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
33271 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
33272 | ||
33273 | fi | |
33274 | ||
33275 | ||
33276 | ||
33277 | fi | |
33278 | ||
33279 | fi | |
33280 | ||
33281 | HAVE_PRIOR_FUNCS=0 | |
33282 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
33283 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
33284 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
33285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33286 | else | |
33287 | cat >conftest.$ac_ext <<_ACEOF | |
33288 | /* confdefs.h. */ | |
33289 | _ACEOF | |
33290 | cat confdefs.h >>conftest.$ac_ext | |
33291 | cat >>conftest.$ac_ext <<_ACEOF | |
33292 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33293 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
33294 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33295 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
33296 | ||
a848cd7e SC |
33297 | /* System header to define __stub macros and hopefully few prototypes, |
33298 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
33299 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33300 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33301 | |
a848cd7e SC |
33302 | #ifdef __STDC__ |
33303 | # include <limits.h> | |
33304 | #else | |
33305 | # include <assert.h> | |
33306 | #endif | |
ac1cb8d3 VS |
33307 | |
33308 | #undef pthread_attr_getschedpolicy | |
33309 | ||
a848cd7e SC |
33310 | /* Override any gcc2 internal prototype to avoid an error. */ |
33311 | #ifdef __cplusplus | |
33312 | extern "C" | |
33313 | { | |
33314 | #endif | |
33315 | /* We use char because int might match the return type of a gcc2 | |
33316 | builtin and then its argument prototype would still apply. */ | |
33317 | char pthread_attr_getschedpolicy (); | |
33318 | /* The GNU C library defines this for functions which it implements | |
33319 | to always fail with ENOSYS. Some functions are actually named | |
33320 | something starting with __ and the normal name is an alias. */ | |
33321 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
33322 | choke me | |
33323 | #else | |
33324 | char (*f) () = pthread_attr_getschedpolicy; | |
33325 | #endif | |
33326 | #ifdef __cplusplus | |
33327 | } | |
33328 | #endif | |
33329 | ||
33330 | int | |
33331 | main () | |
33332 | { | |
33333 | return f != pthread_attr_getschedpolicy; | |
33334 | ; | |
33335 | return 0; | |
33336 | } | |
33337 | _ACEOF | |
33338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33340 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33341 | ac_status=$? |
ac1cb8d3 VS |
33342 | grep -v '^ *+' conftest.er1 >conftest.err |
33343 | rm -f conftest.er1 | |
33344 | cat conftest.err >&5 | |
a848cd7e SC |
33345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33346 | (exit $ac_status); } && | |
89be85c2 VS |
33347 | { ac_try='test -z "$ac_c_werror_flag" |
33348 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33350 | (eval $ac_try) 2>&5 | |
33351 | ac_status=$? | |
33352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33353 | (exit $ac_status); }; } && | |
33354 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33356 | (eval $ac_try) 2>&5 | |
33357 | ac_status=$? | |
33358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33359 | (exit $ac_status); }; }; then | |
33360 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
33361 | else | |
33362 | echo "$as_me: failed program was:" >&5 | |
33363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33364 | ||
33365 | ac_cv_func_pthread_attr_getschedpolicy=no | |
33366 | fi | |
ac1cb8d3 VS |
33367 | rm -f conftest.err conftest.$ac_objext \ |
33368 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33369 | fi |
33370 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
33371 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
33372 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
33373 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
33374 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
33375 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
33376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33377 | else | |
33378 | cat >conftest.$ac_ext <<_ACEOF | |
33379 | /* confdefs.h. */ | |
33380 | _ACEOF | |
33381 | cat confdefs.h >>conftest.$ac_ext | |
33382 | cat >>conftest.$ac_ext <<_ACEOF | |
33383 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33384 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
33385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33386 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
33387 | ||
a848cd7e SC |
33388 | /* System header to define __stub macros and hopefully few prototypes, |
33389 | which can conflict with char pthread_attr_setschedparam (); below. | |
33390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33391 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33392 | |
a848cd7e SC |
33393 | #ifdef __STDC__ |
33394 | # include <limits.h> | |
33395 | #else | |
33396 | # include <assert.h> | |
33397 | #endif | |
ac1cb8d3 VS |
33398 | |
33399 | #undef pthread_attr_setschedparam | |
33400 | ||
a848cd7e SC |
33401 | /* Override any gcc2 internal prototype to avoid an error. */ |
33402 | #ifdef __cplusplus | |
33403 | extern "C" | |
33404 | { | |
33405 | #endif | |
33406 | /* We use char because int might match the return type of a gcc2 | |
33407 | builtin and then its argument prototype would still apply. */ | |
33408 | char pthread_attr_setschedparam (); | |
33409 | /* The GNU C library defines this for functions which it implements | |
33410 | to always fail with ENOSYS. Some functions are actually named | |
33411 | something starting with __ and the normal name is an alias. */ | |
33412 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
33413 | choke me | |
33414 | #else | |
33415 | char (*f) () = pthread_attr_setschedparam; | |
33416 | #endif | |
33417 | #ifdef __cplusplus | |
33418 | } | |
33419 | #endif | |
33420 | ||
33421 | int | |
33422 | main () | |
33423 | { | |
33424 | return f != pthread_attr_setschedparam; | |
33425 | ; | |
33426 | return 0; | |
33427 | } | |
33428 | _ACEOF | |
33429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33431 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33432 | ac_status=$? |
ac1cb8d3 VS |
33433 | grep -v '^ *+' conftest.er1 >conftest.err |
33434 | rm -f conftest.er1 | |
33435 | cat conftest.err >&5 | |
a848cd7e SC |
33436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33437 | (exit $ac_status); } && | |
89be85c2 VS |
33438 | { ac_try='test -z "$ac_c_werror_flag" |
33439 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33441 | (eval $ac_try) 2>&5 | |
33442 | ac_status=$? | |
33443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33444 | (exit $ac_status); }; } && | |
33445 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33447 | (eval $ac_try) 2>&5 | |
33448 | ac_status=$? | |
33449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33450 | (exit $ac_status); }; }; then | |
33451 | ac_cv_func_pthread_attr_setschedparam=yes | |
33452 | else | |
33453 | echo "$as_me: failed program was:" >&5 | |
33454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33455 | ||
33456 | ac_cv_func_pthread_attr_setschedparam=no | |
33457 | fi | |
ac1cb8d3 VS |
33458 | rm -f conftest.err conftest.$ac_objext \ |
33459 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33460 | fi |
33461 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
33462 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
33463 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
33464 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
33465 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
33466 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
33467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33468 | else | |
33469 | cat >conftest.$ac_ext <<_ACEOF | |
33470 | /* confdefs.h. */ | |
33471 | _ACEOF | |
33472 | cat confdefs.h >>conftest.$ac_ext | |
33473 | cat >>conftest.$ac_ext <<_ACEOF | |
33474 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33475 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
33476 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33477 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
33478 | ||
a848cd7e SC |
33479 | /* System header to define __stub macros and hopefully few prototypes, |
33480 | which can conflict with char sched_get_priority_max (); below. | |
33481 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33482 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33483 | |
a848cd7e SC |
33484 | #ifdef __STDC__ |
33485 | # include <limits.h> | |
33486 | #else | |
33487 | # include <assert.h> | |
33488 | #endif | |
ac1cb8d3 VS |
33489 | |
33490 | #undef sched_get_priority_max | |
33491 | ||
a848cd7e SC |
33492 | /* Override any gcc2 internal prototype to avoid an error. */ |
33493 | #ifdef __cplusplus | |
33494 | extern "C" | |
33495 | { | |
33496 | #endif | |
33497 | /* We use char because int might match the return type of a gcc2 | |
33498 | builtin and then its argument prototype would still apply. */ | |
33499 | char sched_get_priority_max (); | |
33500 | /* The GNU C library defines this for functions which it implements | |
33501 | to always fail with ENOSYS. Some functions are actually named | |
33502 | something starting with __ and the normal name is an alias. */ | |
33503 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
33504 | choke me | |
33505 | #else | |
33506 | char (*f) () = sched_get_priority_max; | |
33507 | #endif | |
33508 | #ifdef __cplusplus | |
33509 | } | |
33510 | #endif | |
33511 | ||
33512 | int | |
33513 | main () | |
33514 | { | |
33515 | return f != sched_get_priority_max; | |
33516 | ; | |
33517 | return 0; | |
33518 | } | |
33519 | _ACEOF | |
33520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33522 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33523 | ac_status=$? |
ac1cb8d3 VS |
33524 | grep -v '^ *+' conftest.er1 >conftest.err |
33525 | rm -f conftest.er1 | |
33526 | cat conftest.err >&5 | |
a848cd7e SC |
33527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33528 | (exit $ac_status); } && | |
89be85c2 VS |
33529 | { ac_try='test -z "$ac_c_werror_flag" |
33530 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33532 | (eval $ac_try) 2>&5 | |
33533 | ac_status=$? | |
33534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33535 | (exit $ac_status); }; } && | |
33536 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33538 | (eval $ac_try) 2>&5 | |
33539 | ac_status=$? | |
33540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33541 | (exit $ac_status); }; }; then | |
33542 | ac_cv_func_sched_get_priority_max=yes | |
33543 | else | |
33544 | echo "$as_me: failed program was:" >&5 | |
33545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33546 | ||
33547 | ac_cv_func_sched_get_priority_max=no | |
33548 | fi | |
ac1cb8d3 VS |
33549 | rm -f conftest.err conftest.$ac_objext \ |
33550 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33551 | fi |
33552 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
33553 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
33554 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
33555 | HAVE_PRIOR_FUNCS=1 | |
33556 | else | |
33557 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
33558 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
33559 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
33560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33561 | else | |
33562 | ac_check_lib_save_LIBS=$LIBS | |
33563 | LIBS="-lposix4 $LIBS" | |
33564 | cat >conftest.$ac_ext <<_ACEOF | |
33565 | /* confdefs.h. */ | |
33566 | _ACEOF | |
33567 | cat confdefs.h >>conftest.$ac_ext | |
33568 | cat >>conftest.$ac_ext <<_ACEOF | |
33569 | /* end confdefs.h. */ | |
33570 | ||
33571 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33572 | #ifdef __cplusplus | |
33573 | extern "C" | |
33574 | #endif | |
33575 | /* We use char because int might match the return type of a gcc2 | |
33576 | builtin and then its argument prototype would still apply. */ | |
33577 | char sched_get_priority_max (); | |
33578 | int | |
33579 | main () | |
33580 | { | |
33581 | sched_get_priority_max (); | |
33582 | ; | |
33583 | return 0; | |
33584 | } | |
33585 | _ACEOF | |
33586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33588 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33589 | ac_status=$? |
ac1cb8d3 VS |
33590 | grep -v '^ *+' conftest.er1 >conftest.err |
33591 | rm -f conftest.er1 | |
33592 | cat conftest.err >&5 | |
a848cd7e SC |
33593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33594 | (exit $ac_status); } && | |
89be85c2 VS |
33595 | { ac_try='test -z "$ac_c_werror_flag" |
33596 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33598 | (eval $ac_try) 2>&5 | |
33599 | ac_status=$? | |
33600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33601 | (exit $ac_status); }; } && | |
33602 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33604 | (eval $ac_try) 2>&5 | |
33605 | ac_status=$? | |
33606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33607 | (exit $ac_status); }; }; then | |
33608 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
33609 | else | |
33610 | echo "$as_me: failed program was:" >&5 | |
33611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33612 | ||
33613 | ac_cv_lib_posix4_sched_get_priority_max=no | |
33614 | fi | |
ac1cb8d3 VS |
33615 | rm -f conftest.err conftest.$ac_objext \ |
33616 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33617 | LIBS=$ac_check_lib_save_LIBS |
33618 | fi | |
33619 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
33620 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
33621 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
33622 | ||
33623 | HAVE_PRIOR_FUNCS=1 | |
33624 | POSIX4_LINK=" -lposix4" | |
33625 | ||
33626 | fi | |
33627 | ||
33628 | ||
33629 | fi | |
33630 | ||
33631 | ||
33632 | fi | |
33633 | ||
33634 | ||
33635 | fi | |
33636 | ||
33637 | ||
33638 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
33639 | cat >>confdefs.h <<\_ACEOF | |
33640 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
33641 | _ACEOF | |
33642 | ||
33643 | else | |
33644 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
33645 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
33646 | fi | |
33647 | ||
33648 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
33649 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
33650 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
33651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33652 | else | |
33653 | cat >conftest.$ac_ext <<_ACEOF | |
33654 | /* confdefs.h. */ | |
33655 | _ACEOF | |
33656 | cat confdefs.h >>conftest.$ac_ext | |
33657 | cat >>conftest.$ac_ext <<_ACEOF | |
33658 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33659 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
33660 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33661 | #define pthread_cancel innocuous_pthread_cancel | |
33662 | ||
a848cd7e SC |
33663 | /* System header to define __stub macros and hopefully few prototypes, |
33664 | which can conflict with char pthread_cancel (); below. | |
33665 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33666 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33667 | |
a848cd7e SC |
33668 | #ifdef __STDC__ |
33669 | # include <limits.h> | |
33670 | #else | |
33671 | # include <assert.h> | |
33672 | #endif | |
ac1cb8d3 VS |
33673 | |
33674 | #undef pthread_cancel | |
33675 | ||
a848cd7e SC |
33676 | /* Override any gcc2 internal prototype to avoid an error. */ |
33677 | #ifdef __cplusplus | |
33678 | extern "C" | |
33679 | { | |
33680 | #endif | |
33681 | /* We use char because int might match the return type of a gcc2 | |
33682 | builtin and then its argument prototype would still apply. */ | |
33683 | char pthread_cancel (); | |
33684 | /* The GNU C library defines this for functions which it implements | |
33685 | to always fail with ENOSYS. Some functions are actually named | |
33686 | something starting with __ and the normal name is an alias. */ | |
33687 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
33688 | choke me | |
33689 | #else | |
33690 | char (*f) () = pthread_cancel; | |
33691 | #endif | |
33692 | #ifdef __cplusplus | |
33693 | } | |
33694 | #endif | |
33695 | ||
33696 | int | |
33697 | main () | |
33698 | { | |
33699 | return f != pthread_cancel; | |
33700 | ; | |
33701 | return 0; | |
33702 | } | |
33703 | _ACEOF | |
33704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33706 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33707 | ac_status=$? |
ac1cb8d3 VS |
33708 | grep -v '^ *+' conftest.er1 >conftest.err |
33709 | rm -f conftest.er1 | |
33710 | cat conftest.err >&5 | |
a848cd7e SC |
33711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33712 | (exit $ac_status); } && | |
89be85c2 VS |
33713 | { ac_try='test -z "$ac_c_werror_flag" |
33714 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33716 | (eval $ac_try) 2>&5 | |
33717 | ac_status=$? | |
33718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33719 | (exit $ac_status); }; } && | |
33720 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
33726 | ac_cv_func_pthread_cancel=yes | |
33727 | else | |
33728 | echo "$as_me: failed program was:" >&5 | |
33729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33730 | ||
33731 | ac_cv_func_pthread_cancel=no | |
33732 | fi | |
ac1cb8d3 VS |
33733 | rm -f conftest.err conftest.$ac_objext \ |
33734 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33735 | fi |
33736 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
33737 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
33738 | if test $ac_cv_func_pthread_cancel = yes; then | |
33739 | cat >>confdefs.h <<\_ACEOF | |
33740 | #define HAVE_PTHREAD_CANCEL 1 | |
33741 | _ACEOF | |
33742 | ||
33743 | else | |
33744 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
33745 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
33746 | fi | |
33747 | ||
33748 | ||
33749 | ||
33750 | ||
33751 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
33752 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
33753 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
33754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33755 | else | |
33756 | ||
33757 | cat >conftest.$ac_ext <<_ACEOF | |
33758 | /* confdefs.h. */ | |
33759 | _ACEOF | |
33760 | cat confdefs.h >>conftest.$ac_ext | |
33761 | cat >>conftest.$ac_ext <<_ACEOF | |
33762 | /* end confdefs.h. */ | |
33763 | #include <pthread.h> | |
33764 | int | |
33765 | main () | |
33766 | { | |
33767 | ||
33768 | pthread_mutexattr_t attr; | |
33769 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
33770 | ||
33771 | ; | |
33772 | return 0; | |
33773 | } | |
33774 | _ACEOF | |
33775 | rm -f conftest.$ac_objext | |
33776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33777 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33778 | ac_status=$? |
ac1cb8d3 VS |
33779 | grep -v '^ *+' conftest.er1 >conftest.err |
33780 | rm -f conftest.er1 | |
33781 | cat conftest.err >&5 | |
a848cd7e SC |
33782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33783 | (exit $ac_status); } && | |
89be85c2 VS |
33784 | { ac_try='test -z "$ac_c_werror_flag" |
33785 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33787 | (eval $ac_try) 2>&5 | |
33788 | ac_status=$? | |
33789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33790 | (exit $ac_status); }; } && | |
33791 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33793 | (eval $ac_try) 2>&5 | |
33794 | ac_status=$? | |
33795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33796 | (exit $ac_status); }; }; then | |
33797 | ||
33798 | wx_cv_type_pthread_mutexattr_t=yes | |
33799 | ||
33800 | else | |
33801 | echo "$as_me: failed program was:" >&5 | |
33802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33803 | ||
33804 | ||
33805 | wx_cv_type_pthread_mutexattr_t=no | |
33806 | ||
33807 | ||
33808 | fi | |
ac1cb8d3 | 33809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33810 | |
33811 | fi | |
33812 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
33813 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
33814 | ||
33815 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
33816 | cat >>confdefs.h <<\_ACEOF | |
33817 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
33818 | _ACEOF | |
33819 | ||
33820 | else | |
33821 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
33822 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
33823 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
33824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33825 | else | |
33826 | ||
33827 | cat >conftest.$ac_ext <<_ACEOF | |
33828 | /* confdefs.h. */ | |
33829 | _ACEOF | |
33830 | cat confdefs.h >>conftest.$ac_ext | |
33831 | cat >>conftest.$ac_ext <<_ACEOF | |
33832 | /* end confdefs.h. */ | |
33833 | #include <pthread.h> | |
33834 | int | |
33835 | main () | |
33836 | { | |
33837 | ||
33838 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
33839 | ||
33840 | ; | |
33841 | return 0; | |
33842 | } | |
33843 | _ACEOF | |
33844 | rm -f conftest.$ac_objext | |
33845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33846 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33847 | ac_status=$? |
ac1cb8d3 VS |
33848 | grep -v '^ *+' conftest.er1 >conftest.err |
33849 | rm -f conftest.er1 | |
33850 | cat conftest.err >&5 | |
a848cd7e SC |
33851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33852 | (exit $ac_status); } && | |
89be85c2 VS |
33853 | { ac_try='test -z "$ac_c_werror_flag" |
33854 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33856 | (eval $ac_try) 2>&5 | |
33857 | ac_status=$? | |
33858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33859 | (exit $ac_status); }; } && | |
33860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33862 | (eval $ac_try) 2>&5 | |
33863 | ac_status=$? | |
33864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33865 | (exit $ac_status); }; }; then | |
33866 | ||
33867 | wx_cv_type_pthread_rec_mutex_init=yes | |
33868 | ||
33869 | else | |
33870 | echo "$as_me: failed program was:" >&5 | |
33871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33872 | ||
33873 | ||
33874 | wx_cv_type_pthread_rec_mutex_init=no | |
33875 | ||
33876 | ||
33877 | fi | |
ac1cb8d3 | 33878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33879 | |
33880 | fi | |
33881 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33882 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
33883 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
33884 | cat >>confdefs.h <<\_ACEOF | |
33885 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
33886 | _ACEOF | |
33887 | ||
33888 | else | |
33889 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
33890 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
33891 | fi | |
33892 | fi | |
33893 | fi | |
33894 | ||
33895 | else | |
33896 | if test "$wxUSE_THREADS" = "yes" ; then | |
33897 | case "${host}" in | |
33898 | *-*-mingw32* ) | |
33899 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
33900 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33901 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33903 | else | |
33904 | ||
33905 | CFLAGS_OLD="$CFLAGS" | |
33906 | CFLAGS="$CFLAGS -mthreads" | |
33907 | cat >conftest.$ac_ext <<_ACEOF | |
33908 | /* confdefs.h. */ | |
33909 | _ACEOF | |
33910 | cat confdefs.h >>conftest.$ac_ext | |
33911 | cat >>conftest.$ac_ext <<_ACEOF | |
33912 | /* end confdefs.h. */ | |
33913 | ||
33914 | int | |
33915 | main () | |
33916 | { | |
33917 | ||
33918 | ; | |
33919 | return 0; | |
33920 | } | |
33921 | _ACEOF | |
33922 | rm -f conftest.$ac_objext | |
33923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33924 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33925 | ac_status=$? |
ac1cb8d3 VS |
33926 | grep -v '^ *+' conftest.er1 >conftest.err |
33927 | rm -f conftest.er1 | |
33928 | cat conftest.err >&5 | |
a848cd7e SC |
33929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33930 | (exit $ac_status); } && | |
89be85c2 VS |
33931 | { ac_try='test -z "$ac_c_werror_flag" |
33932 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33934 | (eval $ac_try) 2>&5 | |
33935 | ac_status=$? | |
33936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33937 | (exit $ac_status); }; } && | |
33938 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33940 | (eval $ac_try) 2>&5 | |
33941 | ac_status=$? | |
33942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33943 | (exit $ac_status); }; }; then | |
33944 | wx_cv_cflags_mthread=yes | |
33945 | else | |
33946 | echo "$as_me: failed program was:" >&5 | |
33947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33948 | ||
33949 | wx_cv_cflags_mthread=no | |
33950 | ||
33951 | fi | |
ac1cb8d3 | 33952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33953 | |
33954 | ||
33955 | fi | |
33956 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33957 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33958 | ||
33959 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33960 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33961 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33962 | LDFLAGS="$LDFLAGS -mthreads" | |
33963 | else | |
33964 | CFLAGS="$CFLAGS_OLD" | |
33965 | fi | |
33966 | ;; | |
33967 | *-pc-os2*emx ) | |
33968 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33969 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33970 | LDFLAGS="$LDFLAGS -Zmt" | |
33971 | ;; | |
33972 | esac | |
33973 | fi | |
33974 | fi | |
33975 | ||
33976 | if test "$wxUSE_THREADS" = "yes"; then | |
33977 | cat >>confdefs.h <<\_ACEOF | |
33978 | #define wxUSE_THREADS 1 | |
33979 | _ACEOF | |
33980 | ||
33981 | ||
33982 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33983 | else | |
33984 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33985 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33986 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33987 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33988 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33989 | echo "$as_me:$LINENO: result: yes" >&5 | |
33990 | echo "${ECHO_T}yes" >&6 | |
33991 | else | |
33992 | echo "$as_me:$LINENO: result: no" >&5 | |
33993 | echo "${ECHO_T}no" >&6 | |
33994 | fi | |
33995 | fi | |
33996 | fi | |
33997 | ||
33998 | if test "$WXGTK20" = 1 ; then | |
33999 | cat >>confdefs.h <<_ACEOF | |
34000 | #define __WXGTK20__ $WXGTK20 | |
34001 | _ACEOF | |
34002 | ||
34003 | WXGTK12=1 | |
34004 | fi | |
34005 | ||
34006 | if test "$WXGTK12" = 1 ; then | |
34007 | cat >>confdefs.h <<_ACEOF | |
34008 | #define __WXGTK12__ $WXGTK12 | |
34009 | _ACEOF | |
34010 | ||
34011 | fi | |
34012 | ||
34013 | if test "$WXGTK127" = 1 ; then | |
34014 | cat >>confdefs.h <<_ACEOF | |
34015 | #define __WXGTK127__ $WXGTK127 | |
34016 | _ACEOF | |
34017 | ||
34018 | fi | |
34019 | ||
34020 | if test "$WXGPE" = 1 ; then | |
34021 | cat >>confdefs.h <<_ACEOF | |
34022 | #define __WXGPE__ $WXGPE | |
34023 | _ACEOF | |
34024 | ||
34025 | fi | |
34026 | ||
34027 | WXDEBUG= | |
34028 | ||
34029 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
34030 | WXDEBUG="-g" | |
34031 | wxUSE_OPTIMISE=no | |
34032 | fi | |
34033 | ||
34034 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
34035 | wxUSE_DEBUG_INFO=yes | |
34036 | WXDEBUG="-ggdb" | |
34037 | fi | |
34038 | ||
34039 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
34040 | cat >>confdefs.h <<\_ACEOF | |
34041 | #define WXDEBUG 1 | |
34042 | _ACEOF | |
34043 | ||
34044 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
34045 | else | |
34046 | if test "$wxUSE_GTK" = 1 ; then | |
34047 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
34048 | fi | |
34049 | fi | |
34050 | ||
34051 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
34052 | cat >>confdefs.h <<\_ACEOF | |
34053 | #define wxUSE_MEMORY_TRACING 1 | |
34054 | _ACEOF | |
34055 | ||
34056 | cat >>confdefs.h <<\_ACEOF | |
34057 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
34058 | _ACEOF | |
34059 | ||
34060 | cat >>confdefs.h <<\_ACEOF | |
34061 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
34062 | _ACEOF | |
34063 | ||
34064 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
34065 | fi | |
34066 | ||
34067 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
34068 | DMALLOC_LIBS="-ldmalloc" | |
34069 | fi | |
34070 | ||
34071 | PROFILE= | |
34072 | if test "$wxUSE_PROFILE" = "yes" ; then | |
34073 | PROFILE=" -pg" | |
34074 | fi | |
34075 | ||
34076 | CODE_GEN_FLAGS= | |
34077 | CODE_GEN_FLAGS_CXX= | |
34078 | if test "$GCC" = "yes" ; then | |
34079 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
34080 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
34081 | fi | |
34082 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
34083 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
34084 | fi | |
34085 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
34086 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
34087 | fi | |
34088 | ||
34089 | case "${host}" in | |
34090 | powerpc*-*-aix* ) | |
34091 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
34092 | ;; | |
34093 | *-hppa* ) | |
34094 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
34095 | ;; | |
34096 | esac | |
34097 | fi | |
34098 | ||
34099 | OPTIMISE= | |
34100 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
34101 | if test "$GCC" = yes ; then | |
34102 | OPTIMISE="-O0" | |
34103 | fi | |
34104 | else | |
34105 | if test "$GCC" = yes ; then | |
34106 | OPTIMISE="-O2" | |
34107 | ||
34108 | case "${host}" in | |
34109 | i586-*-*|i686-*-* ) | |
34110 | OPTIMISE="${OPTIMISE} " | |
34111 | ;; | |
34112 | esac | |
34113 | else | |
34114 | OPTIMISE="-O" | |
34115 | fi | |
34116 | fi | |
34117 | ||
34118 | ||
34119 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
34120 | cat >>confdefs.h <<\_ACEOF | |
34121 | #define WXWIN_COMPATIBILITY_2_2 1 | |
34122 | _ACEOF | |
34123 | ||
34124 | ||
34125 | WXWIN_COMPATIBILITY_2_4="yes" | |
34126 | fi | |
34127 | ||
34128 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
34129 | cat >>confdefs.h <<\_ACEOF | |
34130 | #define WXWIN_COMPATIBILITY_2_4 1 | |
34131 | _ACEOF | |
34132 | ||
34133 | fi | |
34134 | ||
34135 | ||
34136 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 34137 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
34138 | #define wxUSE_GUI 1 |
34139 | _ACEOF | |
34140 | ||
34141 | ||
370fd4c2 | 34142 | fi |
a848cd7e SC |
34143 | |
34144 | ||
34145 | if test "$wxUSE_UNIX" = "yes"; then | |
34146 | cat >>confdefs.h <<\_ACEOF | |
34147 | #define wxUSE_UNIX 1 | |
34148 | _ACEOF | |
34149 | ||
34150 | fi | |
34151 | ||
34152 | ||
34153 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
34154 | ||
34155 | HAVE_DL_FUNCS=0 | |
34156 | HAVE_SHL_FUNCS=0 | |
34157 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34158 | if test "$USE_DARWIN" = 1; then | |
34159 | HAVE_DL_FUNCS=1 | |
34160 | else | |
34161 | ||
34162 | for ac_func in dlopen | |
34163 | do | |
34164 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34165 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34166 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34167 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34169 | else | |
34170 | cat >conftest.$ac_ext <<_ACEOF | |
34171 | /* confdefs.h. */ | |
34172 | _ACEOF | |
34173 | cat confdefs.h >>conftest.$ac_ext | |
34174 | cat >>conftest.$ac_ext <<_ACEOF | |
34175 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34176 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34177 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34178 | #define $ac_func innocuous_$ac_func | |
34179 | ||
a848cd7e SC |
34180 | /* System header to define __stub macros and hopefully few prototypes, |
34181 | which can conflict with char $ac_func (); below. | |
34182 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34183 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34184 | |
a848cd7e SC |
34185 | #ifdef __STDC__ |
34186 | # include <limits.h> | |
34187 | #else | |
34188 | # include <assert.h> | |
34189 | #endif | |
ac1cb8d3 VS |
34190 | |
34191 | #undef $ac_func | |
34192 | ||
a848cd7e SC |
34193 | /* Override any gcc2 internal prototype to avoid an error. */ |
34194 | #ifdef __cplusplus | |
34195 | extern "C" | |
34196 | { | |
34197 | #endif | |
34198 | /* We use char because int might match the return type of a gcc2 | |
34199 | builtin and then its argument prototype would still apply. */ | |
34200 | char $ac_func (); | |
34201 | /* The GNU C library defines this for functions which it implements | |
34202 | to always fail with ENOSYS. Some functions are actually named | |
34203 | something starting with __ and the normal name is an alias. */ | |
34204 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34205 | choke me | |
34206 | #else | |
34207 | char (*f) () = $ac_func; | |
34208 | #endif | |
34209 | #ifdef __cplusplus | |
34210 | } | |
34211 | #endif | |
34212 | ||
34213 | int | |
34214 | main () | |
34215 | { | |
34216 | return f != $ac_func; | |
34217 | ; | |
34218 | return 0; | |
34219 | } | |
34220 | _ACEOF | |
34221 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34223 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34224 | ac_status=$? |
ac1cb8d3 VS |
34225 | grep -v '^ *+' conftest.er1 >conftest.err |
34226 | rm -f conftest.er1 | |
34227 | cat conftest.err >&5 | |
a848cd7e SC |
34228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34229 | (exit $ac_status); } && | |
89be85c2 VS |
34230 | { ac_try='test -z "$ac_c_werror_flag" |
34231 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34233 | (eval $ac_try) 2>&5 | |
34234 | ac_status=$? | |
34235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34236 | (exit $ac_status); }; } && | |
34237 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34239 | (eval $ac_try) 2>&5 | |
34240 | ac_status=$? | |
34241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34242 | (exit $ac_status); }; }; then | |
34243 | eval "$as_ac_var=yes" | |
34244 | else | |
34245 | echo "$as_me: failed program was:" >&5 | |
34246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34247 | ||
34248 | eval "$as_ac_var=no" | |
34249 | fi | |
ac1cb8d3 VS |
34250 | rm -f conftest.err conftest.$ac_objext \ |
34251 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34252 | fi |
34253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34254 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34255 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34256 | cat >>confdefs.h <<_ACEOF | |
34257 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34258 | _ACEOF | |
34259 | ||
34260 | cat >>confdefs.h <<\_ACEOF | |
34261 | #define HAVE_DLOPEN 1 | |
34262 | _ACEOF | |
34263 | ||
34264 | HAVE_DL_FUNCS=1 | |
34265 | ||
34266 | else | |
34267 | ||
34268 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
34269 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
34270 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
34271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34272 | else | |
34273 | ac_check_lib_save_LIBS=$LIBS | |
34274 | LIBS="-ldl $LIBS" | |
34275 | cat >conftest.$ac_ext <<_ACEOF | |
34276 | /* confdefs.h. */ | |
34277 | _ACEOF | |
34278 | cat confdefs.h >>conftest.$ac_ext | |
34279 | cat >>conftest.$ac_ext <<_ACEOF | |
34280 | /* end confdefs.h. */ | |
34281 | ||
34282 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34283 | #ifdef __cplusplus | |
34284 | extern "C" | |
34285 | #endif | |
34286 | /* We use char because int might match the return type of a gcc2 | |
34287 | builtin and then its argument prototype would still apply. */ | |
34288 | char dlopen (); | |
34289 | int | |
34290 | main () | |
34291 | { | |
34292 | dlopen (); | |
34293 | ; | |
34294 | return 0; | |
34295 | } | |
34296 | _ACEOF | |
34297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34299 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34300 | ac_status=$? |
ac1cb8d3 VS |
34301 | grep -v '^ *+' conftest.er1 >conftest.err |
34302 | rm -f conftest.er1 | |
34303 | cat conftest.err >&5 | |
a848cd7e SC |
34304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34305 | (exit $ac_status); } && | |
89be85c2 VS |
34306 | { ac_try='test -z "$ac_c_werror_flag" |
34307 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34309 | (eval $ac_try) 2>&5 | |
34310 | ac_status=$? | |
34311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34312 | (exit $ac_status); }; } && | |
34313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34315 | (eval $ac_try) 2>&5 | |
34316 | ac_status=$? | |
34317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34318 | (exit $ac_status); }; }; then | |
34319 | ac_cv_lib_dl_dlopen=yes | |
34320 | else | |
34321 | echo "$as_me: failed program was:" >&5 | |
34322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34323 | ||
34324 | ac_cv_lib_dl_dlopen=no | |
34325 | fi | |
ac1cb8d3 VS |
34326 | rm -f conftest.err conftest.$ac_objext \ |
34327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34328 | LIBS=$ac_check_lib_save_LIBS |
34329 | fi | |
34330 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
34331 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
34332 | if test $ac_cv_lib_dl_dlopen = yes; then | |
34333 | ||
34334 | cat >>confdefs.h <<\_ACEOF | |
34335 | #define HAVE_DLOPEN 1 | |
34336 | _ACEOF | |
34337 | ||
34338 | HAVE_DL_FUNCS=1 | |
34339 | DL_LINK=" -ldl$DL_LINK" | |
34340 | ||
34341 | else | |
34342 | ||
34343 | ||
34344 | for ac_func in shl_load | |
34345 | do | |
34346 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34347 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34348 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34349 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34351 | else | |
34352 | cat >conftest.$ac_ext <<_ACEOF | |
34353 | /* confdefs.h. */ | |
34354 | _ACEOF | |
34355 | cat confdefs.h >>conftest.$ac_ext | |
34356 | cat >>conftest.$ac_ext <<_ACEOF | |
34357 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34358 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34359 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34360 | #define $ac_func innocuous_$ac_func | |
34361 | ||
a848cd7e SC |
34362 | /* System header to define __stub macros and hopefully few prototypes, |
34363 | which can conflict with char $ac_func (); below. | |
34364 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34365 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34366 | |
a848cd7e SC |
34367 | #ifdef __STDC__ |
34368 | # include <limits.h> | |
34369 | #else | |
34370 | # include <assert.h> | |
34371 | #endif | |
ac1cb8d3 VS |
34372 | |
34373 | #undef $ac_func | |
34374 | ||
a848cd7e SC |
34375 | /* Override any gcc2 internal prototype to avoid an error. */ |
34376 | #ifdef __cplusplus | |
34377 | extern "C" | |
34378 | { | |
34379 | #endif | |
34380 | /* We use char because int might match the return type of a gcc2 | |
34381 | builtin and then its argument prototype would still apply. */ | |
34382 | char $ac_func (); | |
34383 | /* The GNU C library defines this for functions which it implements | |
34384 | to always fail with ENOSYS. Some functions are actually named | |
34385 | something starting with __ and the normal name is an alias. */ | |
34386 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34387 | choke me | |
34388 | #else | |
34389 | char (*f) () = $ac_func; | |
34390 | #endif | |
34391 | #ifdef __cplusplus | |
34392 | } | |
34393 | #endif | |
34394 | ||
34395 | int | |
34396 | main () | |
34397 | { | |
34398 | return f != $ac_func; | |
34399 | ; | |
34400 | return 0; | |
34401 | } | |
34402 | _ACEOF | |
34403 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34405 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34406 | ac_status=$? |
ac1cb8d3 VS |
34407 | grep -v '^ *+' conftest.er1 >conftest.err |
34408 | rm -f conftest.er1 | |
34409 | cat conftest.err >&5 | |
a848cd7e SC |
34410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34411 | (exit $ac_status); } && | |
89be85c2 VS |
34412 | { ac_try='test -z "$ac_c_werror_flag" |
34413 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34415 | (eval $ac_try) 2>&5 | |
34416 | ac_status=$? | |
34417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34418 | (exit $ac_status); }; } && | |
34419 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34421 | (eval $ac_try) 2>&5 | |
34422 | ac_status=$? | |
34423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34424 | (exit $ac_status); }; }; then | |
34425 | eval "$as_ac_var=yes" | |
34426 | else | |
34427 | echo "$as_me: failed program was:" >&5 | |
34428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34429 | ||
34430 | eval "$as_ac_var=no" | |
34431 | fi | |
ac1cb8d3 VS |
34432 | rm -f conftest.err conftest.$ac_objext \ |
34433 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34434 | fi |
34435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34436 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34437 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34438 | cat >>confdefs.h <<_ACEOF | |
34439 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34440 | _ACEOF | |
34441 | ||
34442 | cat >>confdefs.h <<\_ACEOF | |
34443 | #define HAVE_SHL_LOAD 1 | |
34444 | _ACEOF | |
34445 | ||
34446 | HAVE_SHL_FUNCS=1 | |
34447 | ||
34448 | else | |
34449 | ||
34450 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
34451 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
34452 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
34453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34454 | else | |
34455 | ac_check_lib_save_LIBS=$LIBS | |
34456 | LIBS="-lshl_load $LIBS" | |
34457 | cat >conftest.$ac_ext <<_ACEOF | |
34458 | /* confdefs.h. */ | |
34459 | _ACEOF | |
34460 | cat confdefs.h >>conftest.$ac_ext | |
34461 | cat >>conftest.$ac_ext <<_ACEOF | |
34462 | /* end confdefs.h. */ | |
34463 | ||
34464 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34465 | #ifdef __cplusplus | |
34466 | extern "C" | |
34467 | #endif | |
34468 | /* We use char because int might match the return type of a gcc2 | |
34469 | builtin and then its argument prototype would still apply. */ | |
34470 | char dld (); | |
34471 | int | |
34472 | main () | |
34473 | { | |
34474 | dld (); | |
34475 | ; | |
34476 | return 0; | |
34477 | } | |
34478 | _ACEOF | |
34479 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34481 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34482 | ac_status=$? |
ac1cb8d3 VS |
34483 | grep -v '^ *+' conftest.er1 >conftest.err |
34484 | rm -f conftest.er1 | |
34485 | cat conftest.err >&5 | |
a848cd7e SC |
34486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34487 | (exit $ac_status); } && | |
89be85c2 VS |
34488 | { ac_try='test -z "$ac_c_werror_flag" |
34489 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34491 | (eval $ac_try) 2>&5 | |
34492 | ac_status=$? | |
34493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34494 | (exit $ac_status); }; } && | |
34495 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34497 | (eval $ac_try) 2>&5 | |
34498 | ac_status=$? | |
34499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34500 | (exit $ac_status); }; }; then | |
34501 | ac_cv_lib_shl_load_dld=yes | |
34502 | else | |
34503 | echo "$as_me: failed program was:" >&5 | |
34504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34505 | ||
34506 | ac_cv_lib_shl_load_dld=no | |
34507 | fi | |
ac1cb8d3 VS |
34508 | rm -f conftest.err conftest.$ac_objext \ |
34509 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34510 | LIBS=$ac_check_lib_save_LIBS |
34511 | fi | |
34512 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
34513 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
34514 | if test $ac_cv_lib_shl_load_dld = yes; then | |
34515 | ||
34516 | HAVE_SHL_FUNCS=1 | |
34517 | DL_LINK=" -ldld$DL_LINK" | |
34518 | ||
34519 | fi | |
34520 | ||
34521 | ||
34522 | fi | |
34523 | done | |
34524 | ||
34525 | ||
34526 | fi | |
34527 | ||
34528 | ||
34529 | fi | |
34530 | done | |
34531 | ||
34532 | ||
34533 | if test "$HAVE_DL_FUNCS" = 1; then | |
34534 | ||
34535 | for ac_func in dlerror | |
34536 | do | |
34537 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34538 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34539 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34540 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34542 | else | |
34543 | cat >conftest.$ac_ext <<_ACEOF | |
34544 | /* confdefs.h. */ | |
34545 | _ACEOF | |
34546 | cat confdefs.h >>conftest.$ac_ext | |
34547 | cat >>conftest.$ac_ext <<_ACEOF | |
34548 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34549 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34551 | #define $ac_func innocuous_$ac_func | |
34552 | ||
a848cd7e SC |
34553 | /* System header to define __stub macros and hopefully few prototypes, |
34554 | which can conflict with char $ac_func (); below. | |
34555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34556 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34557 | |
a848cd7e SC |
34558 | #ifdef __STDC__ |
34559 | # include <limits.h> | |
34560 | #else | |
34561 | # include <assert.h> | |
34562 | #endif | |
ac1cb8d3 VS |
34563 | |
34564 | #undef $ac_func | |
34565 | ||
a848cd7e SC |
34566 | /* Override any gcc2 internal prototype to avoid an error. */ |
34567 | #ifdef __cplusplus | |
34568 | extern "C" | |
34569 | { | |
34570 | #endif | |
34571 | /* We use char because int might match the return type of a gcc2 | |
34572 | builtin and then its argument prototype would still apply. */ | |
34573 | char $ac_func (); | |
34574 | /* The GNU C library defines this for functions which it implements | |
34575 | to always fail with ENOSYS. Some functions are actually named | |
34576 | something starting with __ and the normal name is an alias. */ | |
34577 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34578 | choke me | |
34579 | #else | |
34580 | char (*f) () = $ac_func; | |
34581 | #endif | |
34582 | #ifdef __cplusplus | |
34583 | } | |
34584 | #endif | |
34585 | ||
34586 | int | |
34587 | main () | |
34588 | { | |
34589 | return f != $ac_func; | |
34590 | ; | |
34591 | return 0; | |
34592 | } | |
34593 | _ACEOF | |
34594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34596 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34597 | ac_status=$? |
ac1cb8d3 VS |
34598 | grep -v '^ *+' conftest.er1 >conftest.err |
34599 | rm -f conftest.er1 | |
34600 | cat conftest.err >&5 | |
a848cd7e SC |
34601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34602 | (exit $ac_status); } && | |
89be85c2 VS |
34603 | { ac_try='test -z "$ac_c_werror_flag" |
34604 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34606 | (eval $ac_try) 2>&5 | |
34607 | ac_status=$? | |
34608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34609 | (exit $ac_status); }; } && | |
34610 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34612 | (eval $ac_try) 2>&5 | |
34613 | ac_status=$? | |
34614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34615 | (exit $ac_status); }; }; then | |
34616 | eval "$as_ac_var=yes" | |
34617 | else | |
34618 | echo "$as_me: failed program was:" >&5 | |
34619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34620 | ||
34621 | eval "$as_ac_var=no" | |
34622 | fi | |
ac1cb8d3 VS |
34623 | rm -f conftest.err conftest.$ac_objext \ |
34624 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34625 | fi |
34626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34627 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34628 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34629 | cat >>confdefs.h <<_ACEOF | |
34630 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34631 | _ACEOF | |
34632 | cat >>confdefs.h <<\_ACEOF | |
34633 | #define HAVE_DLERROR 1 | |
34634 | _ACEOF | |
34635 | ||
34636 | else | |
34637 | ||
34638 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
34639 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
34640 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
34641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34642 | else | |
34643 | ac_check_lib_save_LIBS=$LIBS | |
34644 | LIBS="-ldl $LIBS" | |
34645 | cat >conftest.$ac_ext <<_ACEOF | |
34646 | /* confdefs.h. */ | |
34647 | _ACEOF | |
34648 | cat confdefs.h >>conftest.$ac_ext | |
34649 | cat >>conftest.$ac_ext <<_ACEOF | |
34650 | /* end confdefs.h. */ | |
34651 | ||
34652 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34653 | #ifdef __cplusplus | |
34654 | extern "C" | |
34655 | #endif | |
34656 | /* We use char because int might match the return type of a gcc2 | |
34657 | builtin and then its argument prototype would still apply. */ | |
34658 | char dlerror (); | |
34659 | int | |
34660 | main () | |
34661 | { | |
34662 | dlerror (); | |
34663 | ; | |
34664 | return 0; | |
34665 | } | |
34666 | _ACEOF | |
34667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34669 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34670 | ac_status=$? |
ac1cb8d3 VS |
34671 | grep -v '^ *+' conftest.er1 >conftest.err |
34672 | rm -f conftest.er1 | |
34673 | cat conftest.err >&5 | |
a848cd7e SC |
34674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34675 | (exit $ac_status); } && | |
89be85c2 VS |
34676 | { ac_try='test -z "$ac_c_werror_flag" |
34677 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34679 | (eval $ac_try) 2>&5 | |
34680 | ac_status=$? | |
34681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34682 | (exit $ac_status); }; } && | |
34683 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34685 | (eval $ac_try) 2>&5 | |
34686 | ac_status=$? | |
34687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34688 | (exit $ac_status); }; }; then | |
34689 | ac_cv_lib_dl_dlerror=yes | |
34690 | else | |
34691 | echo "$as_me: failed program was:" >&5 | |
34692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34693 | ||
34694 | ac_cv_lib_dl_dlerror=no | |
34695 | fi | |
ac1cb8d3 VS |
34696 | rm -f conftest.err conftest.$ac_objext \ |
34697 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34698 | LIBS=$ac_check_lib_save_LIBS |
34699 | fi | |
34700 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
34701 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
34702 | if test $ac_cv_lib_dl_dlerror = yes; then | |
34703 | cat >>confdefs.h <<\_ACEOF | |
34704 | #define HAVE_DLERROR 1 | |
34705 | _ACEOF | |
34706 | ||
34707 | fi | |
34708 | ||
34709 | ||
34710 | ||
34711 | fi | |
34712 | done | |
34713 | ||
34714 | fi | |
34715 | fi | |
34716 | ||
34717 | if test "$HAVE_DL_FUNCS" = 0; then | |
34718 | if test "$HAVE_SHL_FUNCS" = 0; then | |
34719 | if test "$USE_UNIX" = 1; then | |
34720 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
34721 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
34722 | wxUSE_DYNAMIC_LOADER=no | |
34723 | wxUSE_DYNLIB_CLASS=no | |
34724 | else | |
34725 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
34726 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
34727 | fi | |
34728 | fi | |
34729 | fi | |
34730 | fi | |
34731 | fi | |
34732 | ||
34733 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
34734 | cat >>confdefs.h <<\_ACEOF | |
34735 | #define wxUSE_DYNAMIC_LOADER 1 | |
34736 | _ACEOF | |
34737 | ||
34738 | fi | |
34739 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34740 | cat >>confdefs.h <<\_ACEOF | |
34741 | #define wxUSE_DYNLIB_CLASS 1 | |
34742 | _ACEOF | |
34743 | ||
34744 | fi | |
34745 | ||
34746 | ||
34747 | ||
34748 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34749 | if test "$wxUSE_SHARED" = "no" ; then | |
34750 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
34751 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
34752 | wxUSE_PLUGINS=no | |
34753 | fi | |
34754 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
34755 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
34756 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
34757 | wxUSE_PLUGINS=no | |
34758 | fi | |
34759 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
34760 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
34761 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
34762 | wxUSE_PLUGINS=no | |
34763 | fi | |
34764 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34765 | cat >>confdefs.h <<\_ACEOF | |
34766 | #define wxUSE_PLUGINS 1 | |
34767 | _ACEOF | |
34768 | ||
34769 | fi | |
34770 | fi | |
34771 | ||
34772 | ||
34773 | if test "$wxUSE_STL" = "yes"; then | |
34774 | cat >>confdefs.h <<\_ACEOF | |
34775 | #define wxUSE_STL 1 | |
34776 | _ACEOF | |
34777 | ||
34778 | fi | |
34779 | ||
34780 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
34781 | cat >>confdefs.h <<\_ACEOF | |
34782 | #define wxUSE_APPLE_IEEE 1 | |
34783 | _ACEOF | |
34784 | ||
34785 | fi | |
34786 | ||
34787 | if test "$wxUSE_TIMER" = "yes"; then | |
34788 | cat >>confdefs.h <<\_ACEOF | |
34789 | #define wxUSE_TIMER 1 | |
34790 | _ACEOF | |
34791 | ||
34792 | fi | |
34793 | ||
34794 | WITH_PLUGIN_SDL=0 | |
34795 | if test "$wxUSE_SOUND" = "yes"; then | |
34796 | if test "$USE_UNIX" = "1" ; then | |
34797 | ||
34798 | for ac_header in sys/soundcard.h | |
34799 | do | |
34800 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34802 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34803 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34806 | fi | |
34807 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34808 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34809 | else | |
34810 | # Is the header compilable? | |
34811 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34812 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34813 | cat >conftest.$ac_ext <<_ACEOF | |
34814 | /* confdefs.h. */ | |
34815 | _ACEOF | |
34816 | cat confdefs.h >>conftest.$ac_ext | |
34817 | cat >>conftest.$ac_ext <<_ACEOF | |
34818 | /* end confdefs.h. */ | |
34819 | $ac_includes_default | |
34820 | #include <$ac_header> | |
34821 | _ACEOF | |
34822 | rm -f conftest.$ac_objext | |
34823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34824 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34825 | ac_status=$? |
ac1cb8d3 VS |
34826 | grep -v '^ *+' conftest.er1 >conftest.err |
34827 | rm -f conftest.er1 | |
34828 | cat conftest.err >&5 | |
a848cd7e SC |
34829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34830 | (exit $ac_status); } && | |
89be85c2 VS |
34831 | { ac_try='test -z "$ac_c_werror_flag" |
34832 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34834 | (eval $ac_try) 2>&5 | |
34835 | ac_status=$? | |
34836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34837 | (exit $ac_status); }; } && | |
34838 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34840 | (eval $ac_try) 2>&5 | |
34841 | ac_status=$? | |
34842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34843 | (exit $ac_status); }; }; then | |
34844 | ac_header_compiler=yes | |
34845 | else | |
34846 | echo "$as_me: failed program was:" >&5 | |
34847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34848 | ||
34849 | ac_header_compiler=no | |
34850 | fi | |
ac1cb8d3 | 34851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34852 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34853 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34854 | ||
34855 | # Is the header present? | |
34856 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34857 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34858 | cat >conftest.$ac_ext <<_ACEOF | |
34859 | /* confdefs.h. */ | |
34860 | _ACEOF | |
34861 | cat confdefs.h >>conftest.$ac_ext | |
34862 | cat >>conftest.$ac_ext <<_ACEOF | |
34863 | /* end confdefs.h. */ | |
34864 | #include <$ac_header> | |
34865 | _ACEOF | |
34866 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34867 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34868 | ac_status=$? | |
34869 | grep -v '^ *+' conftest.er1 >conftest.err | |
34870 | rm -f conftest.er1 | |
34871 | cat conftest.err >&5 | |
34872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34873 | (exit $ac_status); } >/dev/null; then | |
34874 | if test -s conftest.err; then | |
34875 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34876 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34877 | else |
34878 | ac_cpp_err= | |
34879 | fi | |
34880 | else | |
34881 | ac_cpp_err=yes | |
34882 | fi | |
34883 | if test -z "$ac_cpp_err"; then | |
34884 | ac_header_preproc=yes | |
34885 | else | |
34886 | echo "$as_me: failed program was:" >&5 | |
34887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34888 | ||
34889 | ac_header_preproc=no | |
34890 | fi | |
34891 | rm -f conftest.err conftest.$ac_ext | |
34892 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34893 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34894 | ||
34895 | # So? What about this header? | |
ac1cb8d3 VS |
34896 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34897 | yes:no: ) | |
a848cd7e SC |
34898 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34899 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34900 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34901 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34902 | ac_header_preproc=yes | |
a848cd7e | 34903 | ;; |
ac1cb8d3 | 34904 | no:yes:* ) |
a848cd7e SC |
34905 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34906 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34907 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34908 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34909 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34910 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34911 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34912 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34914 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34915 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34916 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34917 | ( |
34918 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34919 | ## ----------------------------------------- ## |
34920 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34921 | ## ----------------------------------------- ## | |
a848cd7e SC |
34922 | _ASBOX |
34923 | ) | | |
34924 | sed "s/^/$as_me: WARNING: /" >&2 | |
34925 | ;; | |
34926 | esac | |
34927 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34931 | else | |
ac1cb8d3 | 34932 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34933 | fi |
34934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34935 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34936 | ||
34937 | fi | |
34938 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34939 | cat >>confdefs.h <<_ACEOF | |
34940 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34941 | _ACEOF | |
34942 | ||
34943 | fi | |
34944 | ||
34945 | done | |
34946 | ||
34947 | ||
34948 | if test "$wxUSE_LIBSDL" != "no"; then | |
34949 | ||
34950 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34951 | if test "${with_sdl_prefix+set}" = set; then | |
34952 | withval="$with_sdl_prefix" | |
34953 | sdl_prefix="$withval" | |
34954 | else | |
34955 | sdl_prefix="" | |
34956 | fi; | |
34957 | ||
34958 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34959 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34960 | withval="$with_sdl_exec_prefix" | |
34961 | sdl_exec_prefix="$withval" | |
34962 | else | |
34963 | sdl_exec_prefix="" | |
34964 | fi; | |
34965 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34966 | if test "${enable_sdltest+set}" = set; then | |
34967 | enableval="$enable_sdltest" | |
34968 | ||
34969 | else | |
34970 | enable_sdltest=yes | |
34971 | fi; | |
34972 | ||
34973 | if test x$sdl_exec_prefix != x ; then | |
34974 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34975 | if test x${SDL_CONFIG+set} != xset ; then | |
34976 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34977 | fi | |
34978 | fi | |
34979 | if test x$sdl_prefix != x ; then | |
34980 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34981 | if test x${SDL_CONFIG+set} != xset ; then | |
34982 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34983 | fi | |
34984 | fi | |
34985 | ||
34986 | ||
34987 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34988 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34989 | set dummy sdl-config; ac_word=$2 | |
34990 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34992 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34994 | else | |
34995 | case $SDL_CONFIG in | |
34996 | [\\/]* | ?:[\\/]*) | |
34997 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34998 | ;; | |
34999 | *) | |
35000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35001 | for as_dir in $PATH | |
35002 | do | |
35003 | IFS=$as_save_IFS | |
35004 | test -z "$as_dir" && as_dir=. | |
35005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35007 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35009 | break 2 | |
35010 | fi | |
35011 | done | |
35012 | done | |
35013 | ||
35014 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
35015 | ;; | |
35016 | esac | |
35017 | fi | |
35018 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
35019 | ||
35020 | if test -n "$SDL_CONFIG"; then | |
35021 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
35022 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
35023 | else | |
35024 | echo "$as_me:$LINENO: result: no" >&5 | |
35025 | echo "${ECHO_T}no" >&6 | |
35026 | fi | |
35027 | ||
35028 | min_sdl_version=1.2.0 | |
35029 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
35030 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
35031 | no_sdl="" | |
35032 | if test "$SDL_CONFIG" = "no" ; then | |
35033 | no_sdl=yes | |
35034 | else | |
35035 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
35036 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
35037 | ||
35038 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
35039 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
35040 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
35041 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
35042 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
35043 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
35044 | if test "x$enable_sdltest" = "xyes" ; then | |
35045 | ac_save_CFLAGS="$CFLAGS" | |
35046 | ac_save_LIBS="$LIBS" | |
35047 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
35048 | LIBS="$LIBS $SDL_LIBS" | |
35049 | rm -f conf.sdltest | |
35050 | if test "$cross_compiling" = yes; then | |
35051 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
35052 | else | |
35053 | cat >conftest.$ac_ext <<_ACEOF | |
35054 | /* confdefs.h. */ | |
35055 | _ACEOF | |
35056 | cat confdefs.h >>conftest.$ac_ext | |
35057 | cat >>conftest.$ac_ext <<_ACEOF | |
35058 | /* end confdefs.h. */ | |
35059 | ||
35060 | #include <stdio.h> | |
35061 | #include <stdlib.h> | |
35062 | #include <string.h> | |
35063 | #include "SDL.h" | |
35064 | ||
35065 | char* | |
35066 | my_strdup (char *str) | |
35067 | { | |
35068 | char *new_str; | |
35069 | ||
35070 | if (str) | |
35071 | { | |
35072 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
35073 | strcpy (new_str, str); | |
35074 | } | |
35075 | else | |
35076 | new_str = NULL; | |
35077 | ||
35078 | return new_str; | |
35079 | } | |
35080 | ||
35081 | int main (int argc, char *argv[]) | |
35082 | { | |
35083 | int major, minor, micro; | |
35084 | char *tmp_version; | |
35085 | ||
35086 | /* This hangs on some systems (?) | |
35087 | system ("touch conf.sdltest"); | |
35088 | */ | |
35089 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
35090 | ||
35091 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
35092 | tmp_version = my_strdup("$min_sdl_version"); | |
35093 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
35094 | printf("%s, bad version string\n", "$min_sdl_version"); | |
35095 | exit(1); | |
35096 | } | |
35097 | ||
35098 | if (($sdl_major_version > major) || | |
35099 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
35100 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
35101 | { | |
35102 | return 0; | |
35103 | } | |
35104 | else | |
35105 | { | |
35106 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
35107 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
35108 | printf("*** best to upgrade to the required version.\n"); | |
35109 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
35110 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
35111 | printf("*** config.cache before re-running configure\n"); | |
35112 | return 1; | |
35113 | } | |
35114 | } | |
35115 | ||
35116 | ||
35117 | _ACEOF | |
35118 | rm -f conftest$ac_exeext | |
35119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35120 | (eval $ac_link) 2>&5 | |
35121 | ac_status=$? | |
35122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35123 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
35124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35125 | (eval $ac_try) 2>&5 | |
35126 | ac_status=$? | |
35127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35128 | (exit $ac_status); }; }; then | |
35129 | : | |
35130 | else | |
35131 | echo "$as_me: program exited with status $ac_status" >&5 | |
35132 | echo "$as_me: failed program was:" >&5 | |
35133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35134 | ||
35135 | ( exit $ac_status ) | |
35136 | no_sdl=yes | |
35137 | fi | |
ac1cb8d3 | 35138 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35139 | fi |
35140 | CFLAGS="$ac_save_CFLAGS" | |
35141 | LIBS="$ac_save_LIBS" | |
35142 | fi | |
35143 | fi | |
35144 | if test "x$no_sdl" = x ; then | |
35145 | echo "$as_me:$LINENO: result: yes" >&5 | |
35146 | echo "${ECHO_T}yes" >&6 | |
35147 | ||
35148 | EXTRALIBS_SDL="$SDL_LIBS" | |
35149 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
35150 | cat >>confdefs.h <<\_ACEOF | |
35151 | #define wxUSE_LIBSDL 1 | |
35152 | _ACEOF | |
35153 | ||
35154 | ||
35155 | else | |
35156 | echo "$as_me:$LINENO: result: no" >&5 | |
35157 | echo "${ECHO_T}no" >&6 | |
35158 | if test "$SDL_CONFIG" = "no" ; then | |
35159 | echo "*** The sdl-config script installed by SDL could not be found" | |
35160 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
35161 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
35162 | echo "*** full path to sdl-config." | |
35163 | else | |
35164 | if test -f conf.sdltest ; then | |
35165 | : | |
35166 | else | |
35167 | echo "*** Could not run SDL test program, checking why..." | |
35168 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
35169 | LIBS="$LIBS $SDL_LIBS" | |
35170 | cat >conftest.$ac_ext <<_ACEOF | |
35171 | /* confdefs.h. */ | |
35172 | _ACEOF | |
35173 | cat confdefs.h >>conftest.$ac_ext | |
35174 | cat >>conftest.$ac_ext <<_ACEOF | |
35175 | /* end confdefs.h. */ | |
35176 | ||
35177 | #include <stdio.h> | |
35178 | #include "SDL.h" | |
35179 | ||
35180 | int main(int argc, char *argv[]) | |
35181 | { return 0; } | |
35182 | #undef main | |
35183 | #define main K_and_R_C_main | |
35184 | ||
35185 | int | |
35186 | main () | |
35187 | { | |
35188 | return 0; | |
35189 | ; | |
35190 | return 0; | |
35191 | } | |
35192 | _ACEOF | |
35193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35195 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35196 | ac_status=$? |
ac1cb8d3 VS |
35197 | grep -v '^ *+' conftest.er1 >conftest.err |
35198 | rm -f conftest.er1 | |
35199 | cat conftest.err >&5 | |
a848cd7e SC |
35200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35201 | (exit $ac_status); } && | |
89be85c2 VS |
35202 | { ac_try='test -z "$ac_c_werror_flag" |
35203 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35205 | (eval $ac_try) 2>&5 | |
35206 | ac_status=$? | |
35207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35208 | (exit $ac_status); }; } && | |
35209 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35211 | (eval $ac_try) 2>&5 | |
35212 | ac_status=$? | |
35213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35214 | (exit $ac_status); }; }; then | |
35215 | echo "*** The test program compiled, but did not run. This usually means" | |
35216 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
35217 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
35218 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
35219 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
35220 | echo "*** is required on your system" | |
35221 | echo "***" | |
35222 | echo "*** If you have an old version installed, it is best to remove it, although" | |
35223 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
35224 | else | |
35225 | echo "$as_me: failed program was:" >&5 | |
35226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35227 | ||
35228 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
35229 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
35230 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
35231 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
35232 | fi | |
ac1cb8d3 VS |
35233 | rm -f conftest.err conftest.$ac_objext \ |
35234 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35235 | CFLAGS="$ac_save_CFLAGS" |
35236 | LIBS="$ac_save_LIBS" | |
35237 | fi | |
35238 | fi | |
35239 | SDL_CFLAGS="" | |
35240 | SDL_LIBS="" | |
35241 | wxUSE_LIBSDL="no" | |
35242 | fi | |
35243 | ||
35244 | ||
35245 | rm -f conf.sdltest | |
35246 | ||
35247 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
35248 | WITH_PLUGIN_SDL=1 | |
35249 | fi | |
35250 | fi | |
35251 | fi | |
35252 | ||
35253 | cat >>confdefs.h <<\_ACEOF | |
35254 | #define wxUSE_SOUND 1 | |
35255 | _ACEOF | |
35256 | ||
35257 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
35258 | fi | |
35259 | ||
d1c38808 VZ |
35260 | if test "$WXGTK20" = 1; then |
35261 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
35262 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
35263 | ||
35264 | ||
35265 | succeeded=no | |
35266 | ||
35267 | if test -z "$PKG_CONFIG"; then | |
35268 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
35269 | set dummy pkg-config; ac_word=$2 | |
35270 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35272 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
35273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35274 | else | |
35275 | case $PKG_CONFIG in | |
35276 | [\\/]* | ?:[\\/]*) | |
35277 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
35278 | ;; | |
35279 | *) | |
35280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35281 | for as_dir in $PATH | |
35282 | do | |
35283 | IFS=$as_save_IFS | |
35284 | test -z "$as_dir" && as_dir=. | |
35285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35286 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35287 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35289 | break 2 | |
35290 | fi | |
35291 | done | |
35292 | done | |
35293 | ||
35294 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
35295 | ;; | |
35296 | esac | |
35297 | fi | |
35298 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
35299 | ||
35300 | if test -n "$PKG_CONFIG"; then | |
35301 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
35302 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
35303 | else | |
35304 | echo "$as_me:$LINENO: result: no" >&5 | |
35305 | echo "${ECHO_T}no" >&6 | |
35306 | fi | |
35307 | ||
35308 | fi | |
35309 | ||
35310 | if test "$PKG_CONFIG" = "no" ; then | |
35311 | echo "*** The pkg-config script could not be found. Make sure it is" | |
35312 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
35313 | echo "*** to the full path to pkg-config." | |
35314 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
35315 | else | |
35316 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
35317 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
35318 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
35319 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 35320 | |
ffa762ff | 35321 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
35322 | echo "$as_me:$LINENO: result: yes" >&5 |
35323 | echo "${ECHO_T}yes" >&6 | |
35324 | succeeded=yes | |
35325 | ||
35326 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
35327 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 35328 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35329 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
35330 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
35331 | ||
35332 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
35333 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 35334 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35335 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
35336 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
35337 | else | |
35338 | LIBGNOMEPRINTUI_CFLAGS="" | |
35339 | LIBGNOMEPRINTUI_LIBS="" | |
35340 | ## If we have a custom action on failure, don't print errors, but | |
35341 | ## do set a variable so people can do so. | |
ffa762ff | 35342 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35343 | |
35344 | fi | |
35345 | ||
35346 | ||
35347 | ||
35348 | else | |
35349 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
35350 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
35351 | fi | |
35352 | fi | |
35353 | ||
35354 | if test $succeeded = yes; then | |
35355 | ||
d1c38808 VZ |
35356 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
35357 | cat >>confdefs.h <<\_ACEOF | |
35358 | #define wxUSE_LIBGNOMEPRINT 1 | |
35359 | _ACEOF | |
35360 | ||
35361 | ||
35362 | else | |
35363 | ||
35364 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
35365 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
35366 | wxUSE_LIBGNOMEPRINT="no" | |
35367 | ||
35368 | ||
35369 | fi | |
35370 | ||
35371 | fi | |
35372 | fi | |
35373 | fi | |
35374 | ||
35375 | ||
a848cd7e SC |
35376 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
35377 | cat >>confdefs.h <<\_ACEOF | |
35378 | #define wxUSE_CMDLINE_PARSER 1 | |
35379 | _ACEOF | |
35380 | ||
35381 | fi | |
35382 | ||
35383 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
35384 | cat >>confdefs.h <<\_ACEOF | |
35385 | #define wxUSE_STOPWATCH 1 | |
35386 | _ACEOF | |
35387 | ||
35388 | fi | |
35389 | ||
35390 | if test "$wxUSE_DATETIME" = "yes"; then | |
35391 | cat >>confdefs.h <<\_ACEOF | |
35392 | #define wxUSE_DATETIME 1 | |
35393 | _ACEOF | |
35394 | ||
35395 | fi | |
35396 | ||
35397 | if test "$wxUSE_FILE" = "yes"; then | |
35398 | cat >>confdefs.h <<\_ACEOF | |
35399 | #define wxUSE_FILE 1 | |
35400 | _ACEOF | |
35401 | ||
35402 | fi | |
35403 | ||
35404 | if test "$wxUSE_FFILE" = "yes"; then | |
35405 | cat >>confdefs.h <<\_ACEOF | |
35406 | #define wxUSE_FFILE 1 | |
35407 | _ACEOF | |
35408 | ||
35409 | fi | |
35410 | ||
35411 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
35412 | cat >>confdefs.h <<\_ACEOF | |
35413 | #define wxUSE_FILESYSTEM 1 | |
35414 | _ACEOF | |
35415 | ||
35416 | fi | |
35417 | ||
35418 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
35419 | cat >>confdefs.h <<\_ACEOF | |
35420 | #define wxUSE_FS_ZIP 1 | |
35421 | _ACEOF | |
35422 | ||
35423 | fi | |
35424 | ||
9e8e867f | 35425 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 35426 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 35427 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
35428 | _ACEOF |
35429 | ||
35430 | fi | |
35431 | ||
35432 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 35433 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
35434 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
35435 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
35436 | elif test "$wxUSE_ZLIB" = "no"; then | |
35437 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
35438 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
35439 | else | |
35440 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
35441 | #define wxUSE_ZIPSTREAM 1 |
35442 | _ACEOF | |
35443 | ||
81f90336 | 35444 | fi |
a848cd7e SC |
35445 | fi |
35446 | ||
a848cd7e SC |
35447 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
35448 | cat >>confdefs.h <<\_ACEOF | |
35449 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
35450 | _ACEOF | |
35451 | ||
35452 | fi | |
35453 | ||
eaff0f0d VZ |
35454 | if test "$wxUSE_STACKWALKER" = "yes"; then |
35455 | cat >>confdefs.h <<\_ACEOF | |
35456 | #define wxUSE_STACKWALKER 1 | |
35457 | _ACEOF | |
35458 | ||
35459 | fi | |
35460 | ||
a848cd7e SC |
35461 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
35462 | cat >>confdefs.h <<\_ACEOF | |
35463 | #define wxUSE_SNGLINST_CHECKER 1 | |
35464 | _ACEOF | |
35465 | ||
35466 | fi | |
35467 | ||
35468 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
35469 | cat >>confdefs.h <<\_ACEOF | |
35470 | #define wxUSE_BUSYINFO 1 | |
35471 | _ACEOF | |
35472 | ||
35473 | fi | |
35474 | ||
35475 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
35476 | cat >>confdefs.h <<\_ACEOF | |
35477 | #define wxUSE_STD_IOSTREAM 1 | |
35478 | _ACEOF | |
35479 | ||
35480 | fi | |
35481 | ||
35482 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
35483 | cat >>confdefs.h <<\_ACEOF | |
35484 | #define wxUSE_TEXTBUFFER 1 | |
35485 | _ACEOF | |
35486 | ||
35487 | fi | |
35488 | ||
35489 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
35490 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
35491 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
35492 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
35493 | else | |
35494 | cat >>confdefs.h <<\_ACEOF | |
35495 | #define wxUSE_TEXTFILE 1 | |
35496 | _ACEOF | |
35497 | ||
35498 | fi | |
35499 | fi | |
35500 | ||
35501 | if test "$wxUSE_CONFIG" = "yes" ; then | |
35502 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
35503 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
35504 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
35505 | else | |
35506 | cat >>confdefs.h <<\_ACEOF | |
35507 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
35508 | _ACEOF |
35509 | ||
35510 | cat >>confdefs.h <<\_ACEOF | |
35511 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
35512 | _ACEOF |
35513 | ||
35514 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
35515 | fi | |
35516 | fi | |
35517 | ||
35518 | if test "$wxUSE_INTL" = "yes" ; then | |
35519 | if test "$wxUSE_FILE" != "yes"; then | |
35520 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
35521 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
35522 | else | |
35523 | cat >>confdefs.h <<\_ACEOF | |
35524 | #define wxUSE_INTL 1 | |
35525 | _ACEOF | |
35526 | ||
35527 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
35528 | GUIDIST="$GUIDIST INTL_DIST" | |
35529 | fi | |
35530 | fi | |
35531 | ||
35532 | if test "$wxUSE_LOG" = "yes"; then | |
35533 | cat >>confdefs.h <<\_ACEOF | |
35534 | #define wxUSE_LOG 1 | |
35535 | _ACEOF | |
35536 | ||
35537 | ||
35538 | if test "$wxUSE_LOGGUI" = "yes"; then | |
35539 | cat >>confdefs.h <<\_ACEOF | |
35540 | #define wxUSE_LOGGUI 1 | |
35541 | _ACEOF | |
35542 | ||
35543 | fi | |
35544 | ||
35545 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
35546 | cat >>confdefs.h <<\_ACEOF | |
35547 | #define wxUSE_LOGWINDOW 1 | |
35548 | _ACEOF | |
35549 | ||
35550 | fi | |
35551 | ||
35552 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
35553 | cat >>confdefs.h <<\_ACEOF | |
35554 | #define wxUSE_LOG_DIALOG 1 | |
35555 | _ACEOF | |
35556 | ||
35557 | fi | |
35558 | fi | |
35559 | ||
35560 | if test "$wxUSE_LONGLONG" = "yes"; then | |
35561 | cat >>confdefs.h <<\_ACEOF | |
35562 | #define wxUSE_LONGLONG 1 | |
35563 | _ACEOF | |
35564 | ||
35565 | fi | |
35566 | ||
35567 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
35568 | cat >>confdefs.h <<\_ACEOF | |
35569 | #define wxUSE_GEOMETRY 1 | |
35570 | _ACEOF | |
35571 | ||
35572 | fi | |
35573 | ||
a848cd7e SC |
35574 | if test "$wxUSE_STREAMS" = "yes" ; then |
35575 | cat >>confdefs.h <<\_ACEOF | |
35576 | #define wxUSE_STREAMS 1 | |
35577 | _ACEOF | |
35578 | ||
35579 | fi | |
35580 | ||
35581 | ||
35582 | if test "$wxUSE_DATETIME" = "yes"; then | |
35583 | ||
35584 | for ac_func in strptime | |
35585 | do | |
35586 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35587 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35588 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35589 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35591 | else | |
35592 | cat >conftest.$ac_ext <<_ACEOF | |
35593 | /* confdefs.h. */ | |
35594 | _ACEOF | |
35595 | cat confdefs.h >>conftest.$ac_ext | |
35596 | cat >>conftest.$ac_ext <<_ACEOF | |
35597 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35598 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35600 | #define $ac_func innocuous_$ac_func | |
35601 | ||
a848cd7e SC |
35602 | /* System header to define __stub macros and hopefully few prototypes, |
35603 | which can conflict with char $ac_func (); below. | |
35604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35605 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35606 | |
a848cd7e SC |
35607 | #ifdef __STDC__ |
35608 | # include <limits.h> | |
35609 | #else | |
35610 | # include <assert.h> | |
35611 | #endif | |
ac1cb8d3 VS |
35612 | |
35613 | #undef $ac_func | |
35614 | ||
a848cd7e SC |
35615 | /* Override any gcc2 internal prototype to avoid an error. */ |
35616 | #ifdef __cplusplus | |
35617 | extern "C" | |
35618 | { | |
35619 | #endif | |
35620 | /* We use char because int might match the return type of a gcc2 | |
35621 | builtin and then its argument prototype would still apply. */ | |
35622 | char $ac_func (); | |
35623 | /* The GNU C library defines this for functions which it implements | |
35624 | to always fail with ENOSYS. Some functions are actually named | |
35625 | something starting with __ and the normal name is an alias. */ | |
35626 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35627 | choke me | |
35628 | #else | |
35629 | char (*f) () = $ac_func; | |
35630 | #endif | |
35631 | #ifdef __cplusplus | |
35632 | } | |
35633 | #endif | |
35634 | ||
35635 | int | |
35636 | main () | |
35637 | { | |
35638 | return f != $ac_func; | |
35639 | ; | |
35640 | return 0; | |
35641 | } | |
35642 | _ACEOF | |
35643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35645 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35646 | ac_status=$? |
ac1cb8d3 VS |
35647 | grep -v '^ *+' conftest.er1 >conftest.err |
35648 | rm -f conftest.er1 | |
35649 | cat conftest.err >&5 | |
a848cd7e SC |
35650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35651 | (exit $ac_status); } && | |
89be85c2 VS |
35652 | { ac_try='test -z "$ac_c_werror_flag" |
35653 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35655 | (eval $ac_try) 2>&5 | |
35656 | ac_status=$? | |
35657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35658 | (exit $ac_status); }; } && | |
35659 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35661 | (eval $ac_try) 2>&5 | |
35662 | ac_status=$? | |
35663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35664 | (exit $ac_status); }; }; then | |
35665 | eval "$as_ac_var=yes" | |
35666 | else | |
35667 | echo "$as_me: failed program was:" >&5 | |
35668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35669 | ||
35670 | eval "$as_ac_var=no" | |
35671 | fi | |
ac1cb8d3 VS |
35672 | rm -f conftest.err conftest.$ac_objext \ |
35673 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35674 | fi |
35675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35676 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35677 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35678 | cat >>confdefs.h <<_ACEOF | |
35679 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35680 | _ACEOF | |
35681 | ||
35682 | fi | |
35683 | done | |
35684 | ||
35685 | ||
35686 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
35687 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
35688 | if test "${wx_cv_var_timezone+set}" = set; then | |
35689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35690 | else | |
35691 | ||
35692 | cat >conftest.$ac_ext <<_ACEOF | |
35693 | /* confdefs.h. */ | |
35694 | _ACEOF | |
35695 | cat confdefs.h >>conftest.$ac_ext | |
35696 | cat >>conftest.$ac_ext <<_ACEOF | |
35697 | /* end confdefs.h. */ | |
35698 | ||
35699 | #include <time.h> | |
35700 | ||
35701 | int | |
35702 | main () | |
35703 | { | |
35704 | ||
35705 | int tz; | |
35706 | tz = timezone; | |
35707 | ||
35708 | ; | |
35709 | return 0; | |
35710 | } | |
35711 | _ACEOF | |
35712 | rm -f conftest.$ac_objext | |
35713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35714 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35715 | ac_status=$? |
ac1cb8d3 VS |
35716 | grep -v '^ *+' conftest.er1 >conftest.err |
35717 | rm -f conftest.er1 | |
35718 | cat conftest.err >&5 | |
a848cd7e SC |
35719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35720 | (exit $ac_status); } && | |
89be85c2 VS |
35721 | { ac_try='test -z "$ac_c_werror_flag" |
35722 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35724 | (eval $ac_try) 2>&5 | |
35725 | ac_status=$? | |
35726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35727 | (exit $ac_status); }; } && | |
35728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35730 | (eval $ac_try) 2>&5 | |
35731 | ac_status=$? | |
35732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35733 | (exit $ac_status); }; }; then | |
35734 | ||
35735 | wx_cv_var_timezone=timezone | |
35736 | ||
35737 | else | |
35738 | echo "$as_me: failed program was:" >&5 | |
35739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35740 | ||
35741 | ||
35742 | cat >conftest.$ac_ext <<_ACEOF | |
35743 | /* confdefs.h. */ | |
35744 | _ACEOF | |
35745 | cat confdefs.h >>conftest.$ac_ext | |
35746 | cat >>conftest.$ac_ext <<_ACEOF | |
35747 | /* end confdefs.h. */ | |
35748 | ||
35749 | #include <time.h> | |
35750 | ||
35751 | int | |
35752 | main () | |
35753 | { | |
35754 | ||
35755 | int tz; | |
35756 | tz = _timezone; | |
35757 | ||
35758 | ; | |
35759 | return 0; | |
35760 | } | |
35761 | _ACEOF | |
35762 | rm -f conftest.$ac_objext | |
35763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35764 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35765 | ac_status=$? |
ac1cb8d3 VS |
35766 | grep -v '^ *+' conftest.er1 >conftest.err |
35767 | rm -f conftest.er1 | |
35768 | cat conftest.err >&5 | |
a848cd7e SC |
35769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35770 | (exit $ac_status); } && | |
89be85c2 VS |
35771 | { ac_try='test -z "$ac_c_werror_flag" |
35772 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35774 | (eval $ac_try) 2>&5 | |
35775 | ac_status=$? | |
35776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35777 | (exit $ac_status); }; } && | |
35778 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35780 | (eval $ac_try) 2>&5 | |
35781 | ac_status=$? | |
35782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35783 | (exit $ac_status); }; }; then | |
35784 | ||
35785 | wx_cv_var_timezone=_timezone | |
35786 | ||
35787 | else | |
35788 | echo "$as_me: failed program was:" >&5 | |
35789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35790 | ||
35791 | ||
35792 | cat >conftest.$ac_ext <<_ACEOF | |
35793 | /* confdefs.h. */ | |
35794 | _ACEOF | |
35795 | cat confdefs.h >>conftest.$ac_ext | |
35796 | cat >>conftest.$ac_ext <<_ACEOF | |
35797 | /* end confdefs.h. */ | |
35798 | ||
35799 | #include <time.h> | |
35800 | ||
35801 | int | |
35802 | main () | |
35803 | { | |
35804 | ||
35805 | int tz; | |
35806 | tz = __timezone; | |
35807 | ||
35808 | ; | |
35809 | return 0; | |
35810 | } | |
35811 | _ACEOF | |
35812 | rm -f conftest.$ac_objext | |
35813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35814 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35815 | ac_status=$? |
ac1cb8d3 VS |
35816 | grep -v '^ *+' conftest.er1 >conftest.err |
35817 | rm -f conftest.er1 | |
35818 | cat conftest.err >&5 | |
a848cd7e SC |
35819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35820 | (exit $ac_status); } && | |
89be85c2 VS |
35821 | { ac_try='test -z "$ac_c_werror_flag" |
35822 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35824 | (eval $ac_try) 2>&5 | |
35825 | ac_status=$? | |
35826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35827 | (exit $ac_status); }; } && | |
35828 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35830 | (eval $ac_try) 2>&5 | |
35831 | ac_status=$? | |
35832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35833 | (exit $ac_status); }; }; then | |
35834 | ||
35835 | wx_cv_var_timezone=__timezone | |
35836 | ||
35837 | else | |
35838 | echo "$as_me: failed program was:" >&5 | |
35839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35840 | ||
35841 | ||
35842 | if test "$USE_DOS" = 0 ; then | |
35843 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
35844 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
35845 | fi | |
35846 | ||
35847 | ||
35848 | fi | |
ac1cb8d3 | 35849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35850 | |
35851 | ||
35852 | fi | |
ac1cb8d3 | 35853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35854 | |
35855 | ||
35856 | fi | |
ac1cb8d3 | 35857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35858 | |
35859 | ||
35860 | fi | |
35861 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
35862 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
35863 | ||
35864 | if test "x$wx_cv_var_timezone" != x ; then | |
35865 | cat >>confdefs.h <<_ACEOF | |
35866 | #define WX_TIMEZONE $wx_cv_var_timezone | |
35867 | _ACEOF | |
35868 | ||
35869 | fi | |
35870 | ||
35871 | ||
35872 | for ac_func in localtime | |
35873 | do | |
35874 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35875 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35876 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35877 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35879 | else | |
35880 | cat >conftest.$ac_ext <<_ACEOF | |
35881 | /* confdefs.h. */ | |
35882 | _ACEOF | |
35883 | cat confdefs.h >>conftest.$ac_ext | |
35884 | cat >>conftest.$ac_ext <<_ACEOF | |
35885 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35886 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35887 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35888 | #define $ac_func innocuous_$ac_func | |
35889 | ||
a848cd7e SC |
35890 | /* System header to define __stub macros and hopefully few prototypes, |
35891 | which can conflict with char $ac_func (); below. | |
35892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35893 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35894 | |
a848cd7e SC |
35895 | #ifdef __STDC__ |
35896 | # include <limits.h> | |
35897 | #else | |
35898 | # include <assert.h> | |
35899 | #endif | |
ac1cb8d3 VS |
35900 | |
35901 | #undef $ac_func | |
35902 | ||
a848cd7e SC |
35903 | /* Override any gcc2 internal prototype to avoid an error. */ |
35904 | #ifdef __cplusplus | |
35905 | extern "C" | |
35906 | { | |
35907 | #endif | |
35908 | /* We use char because int might match the return type of a gcc2 | |
35909 | builtin and then its argument prototype would still apply. */ | |
35910 | char $ac_func (); | |
35911 | /* The GNU C library defines this for functions which it implements | |
35912 | to always fail with ENOSYS. Some functions are actually named | |
35913 | something starting with __ and the normal name is an alias. */ | |
35914 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35915 | choke me | |
35916 | #else | |
35917 | char (*f) () = $ac_func; | |
35918 | #endif | |
35919 | #ifdef __cplusplus | |
35920 | } | |
35921 | #endif | |
35922 | ||
35923 | int | |
35924 | main () | |
35925 | { | |
35926 | return f != $ac_func; | |
35927 | ; | |
35928 | return 0; | |
35929 | } | |
35930 | _ACEOF | |
35931 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35933 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35934 | ac_status=$? |
ac1cb8d3 VS |
35935 | grep -v '^ *+' conftest.er1 >conftest.err |
35936 | rm -f conftest.er1 | |
35937 | cat conftest.err >&5 | |
a848cd7e SC |
35938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35939 | (exit $ac_status); } && | |
89be85c2 VS |
35940 | { ac_try='test -z "$ac_c_werror_flag" |
35941 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35943 | (eval $ac_try) 2>&5 | |
35944 | ac_status=$? | |
35945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35946 | (exit $ac_status); }; } && | |
35947 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35949 | (eval $ac_try) 2>&5 | |
35950 | ac_status=$? | |
35951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35952 | (exit $ac_status); }; }; then | |
35953 | eval "$as_ac_var=yes" | |
35954 | else | |
35955 | echo "$as_me: failed program was:" >&5 | |
35956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35957 | ||
35958 | eval "$as_ac_var=no" | |
35959 | fi | |
ac1cb8d3 VS |
35960 | rm -f conftest.err conftest.$ac_objext \ |
35961 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35962 | fi |
35963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35964 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35965 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35966 | cat >>confdefs.h <<_ACEOF | |
35967 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35968 | _ACEOF | |
35969 | ||
35970 | fi | |
35971 | done | |
35972 | ||
35973 | ||
35974 | if test "$ac_cv_func_localtime" = "yes"; then | |
35975 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
35976 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
35977 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
35978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35979 | else | |
35980 | ||
35981 | cat >conftest.$ac_ext <<_ACEOF | |
35982 | /* confdefs.h. */ | |
35983 | _ACEOF | |
35984 | cat confdefs.h >>conftest.$ac_ext | |
35985 | cat >>conftest.$ac_ext <<_ACEOF | |
35986 | /* end confdefs.h. */ | |
35987 | ||
35988 | #include <time.h> | |
35989 | ||
35990 | int | |
35991 | main () | |
35992 | { | |
35993 | ||
35994 | struct tm tm; | |
35995 | tm.tm_gmtoff++; | |
35996 | ||
35997 | ; | |
35998 | return 0; | |
35999 | } | |
36000 | _ACEOF | |
36001 | rm -f conftest.$ac_objext | |
36002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36004 | ac_status=$? |
ac1cb8d3 VS |
36005 | grep -v '^ *+' conftest.er1 >conftest.err |
36006 | rm -f conftest.er1 | |
36007 | cat conftest.err >&5 | |
a848cd7e SC |
36008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36009 | (exit $ac_status); } && | |
89be85c2 VS |
36010 | { ac_try='test -z "$ac_c_werror_flag" |
36011 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36013 | (eval $ac_try) 2>&5 | |
36014 | ac_status=$? | |
36015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36016 | (exit $ac_status); }; } && | |
36017 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36019 | (eval $ac_try) 2>&5 | |
36020 | ac_status=$? | |
36021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36022 | (exit $ac_status); }; }; then | |
36023 | ||
36024 | wx_cv_struct_tm_has_gmtoff=yes | |
36025 | ||
36026 | else | |
36027 | echo "$as_me: failed program was:" >&5 | |
36028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36029 | ||
36030 | wx_cv_struct_tm_has_gmtoff=no | |
36031 | ||
36032 | fi | |
ac1cb8d3 | 36033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36034 | |
36035 | fi | |
36036 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
36037 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
36038 | fi | |
36039 | ||
36040 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
36041 | cat >>confdefs.h <<\_ACEOF | |
36042 | #define WX_GMTOFF_IN_TM 1 | |
36043 | _ACEOF | |
36044 | ||
36045 | fi | |
36046 | ||
36047 | ||
36048 | ||
36049 | for ac_func in gettimeofday ftime | |
36050 | do | |
36051 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36052 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36053 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36054 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36056 | else | |
36057 | cat >conftest.$ac_ext <<_ACEOF | |
36058 | /* confdefs.h. */ | |
36059 | _ACEOF | |
36060 | cat confdefs.h >>conftest.$ac_ext | |
36061 | cat >>conftest.$ac_ext <<_ACEOF | |
36062 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36063 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36064 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36065 | #define $ac_func innocuous_$ac_func | |
36066 | ||
a848cd7e SC |
36067 | /* System header to define __stub macros and hopefully few prototypes, |
36068 | which can conflict with char $ac_func (); below. | |
36069 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36070 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36071 | |
a848cd7e SC |
36072 | #ifdef __STDC__ |
36073 | # include <limits.h> | |
36074 | #else | |
36075 | # include <assert.h> | |
36076 | #endif | |
ac1cb8d3 VS |
36077 | |
36078 | #undef $ac_func | |
36079 | ||
a848cd7e SC |
36080 | /* Override any gcc2 internal prototype to avoid an error. */ |
36081 | #ifdef __cplusplus | |
36082 | extern "C" | |
36083 | { | |
36084 | #endif | |
36085 | /* We use char because int might match the return type of a gcc2 | |
36086 | builtin and then its argument prototype would still apply. */ | |
36087 | char $ac_func (); | |
36088 | /* The GNU C library defines this for functions which it implements | |
36089 | to always fail with ENOSYS. Some functions are actually named | |
36090 | something starting with __ and the normal name is an alias. */ | |
36091 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36092 | choke me | |
36093 | #else | |
36094 | char (*f) () = $ac_func; | |
36095 | #endif | |
36096 | #ifdef __cplusplus | |
36097 | } | |
36098 | #endif | |
36099 | ||
36100 | int | |
36101 | main () | |
36102 | { | |
36103 | return f != $ac_func; | |
36104 | ; | |
36105 | return 0; | |
36106 | } | |
36107 | _ACEOF | |
36108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36110 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36111 | ac_status=$? |
ac1cb8d3 VS |
36112 | grep -v '^ *+' conftest.er1 >conftest.err |
36113 | rm -f conftest.er1 | |
36114 | cat conftest.err >&5 | |
a848cd7e SC |
36115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36116 | (exit $ac_status); } && | |
89be85c2 VS |
36117 | { ac_try='test -z "$ac_c_werror_flag" |
36118 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36120 | (eval $ac_try) 2>&5 | |
36121 | ac_status=$? | |
36122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36123 | (exit $ac_status); }; } && | |
36124 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36126 | (eval $ac_try) 2>&5 | |
36127 | ac_status=$? | |
36128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36129 | (exit $ac_status); }; }; then | |
36130 | eval "$as_ac_var=yes" | |
36131 | else | |
36132 | echo "$as_me: failed program was:" >&5 | |
36133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36134 | ||
36135 | eval "$as_ac_var=no" | |
36136 | fi | |
ac1cb8d3 VS |
36137 | rm -f conftest.err conftest.$ac_objext \ |
36138 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36139 | fi |
36140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36141 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36142 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36143 | cat >>confdefs.h <<_ACEOF | |
36144 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36145 | _ACEOF | |
36146 | break | |
36147 | fi | |
36148 | done | |
36149 | ||
36150 | ||
36151 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
36152 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
36153 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
36154 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
36155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36156 | else | |
36157 | ||
36158 | ||
36159 | ||
36160 | ac_ext=cc | |
36161 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36162 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36163 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36164 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36165 | ||
36166 | ||
36167 | cat >conftest.$ac_ext <<_ACEOF | |
36168 | /* confdefs.h. */ | |
36169 | _ACEOF | |
36170 | cat confdefs.h >>conftest.$ac_ext | |
36171 | cat >>conftest.$ac_ext <<_ACEOF | |
36172 | /* end confdefs.h. */ | |
36173 | ||
36174 | #include <sys/time.h> | |
36175 | #include <unistd.h> | |
36176 | ||
36177 | int | |
36178 | main () | |
36179 | { | |
36180 | ||
36181 | struct timeval tv; | |
36182 | gettimeofday(&tv, NULL); | |
36183 | ||
36184 | ; | |
36185 | return 0; | |
36186 | } | |
36187 | _ACEOF | |
36188 | rm -f conftest.$ac_objext | |
36189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36191 | ac_status=$? |
ac1cb8d3 VS |
36192 | grep -v '^ *+' conftest.er1 >conftest.err |
36193 | rm -f conftest.er1 | |
36194 | cat conftest.err >&5 | |
a848cd7e SC |
36195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36196 | (exit $ac_status); } && | |
89be85c2 VS |
36197 | { ac_try='test -z "$ac_cxx_werror_flag" |
36198 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36200 | (eval $ac_try) 2>&5 | |
36201 | ac_status=$? | |
36202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36203 | (exit $ac_status); }; } && | |
36204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36206 | (eval $ac_try) 2>&5 | |
36207 | ac_status=$? | |
36208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36209 | (exit $ac_status); }; }; then | |
36210 | wx_cv_func_gettimeofday_has_2_args=yes | |
36211 | else | |
36212 | echo "$as_me: failed program was:" >&5 | |
36213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36214 | ||
36215 | cat >conftest.$ac_ext <<_ACEOF | |
36216 | /* confdefs.h. */ | |
36217 | _ACEOF | |
36218 | cat confdefs.h >>conftest.$ac_ext | |
36219 | cat >>conftest.$ac_ext <<_ACEOF | |
36220 | /* end confdefs.h. */ | |
36221 | ||
36222 | #include <sys/time.h> | |
36223 | #include <unistd.h> | |
36224 | ||
36225 | int | |
36226 | main () | |
36227 | { | |
36228 | ||
36229 | struct timeval tv; | |
36230 | gettimeofday(&tv); | |
36231 | ||
36232 | ; | |
36233 | return 0; | |
36234 | } | |
36235 | _ACEOF | |
36236 | rm -f conftest.$ac_objext | |
36237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36238 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36239 | ac_status=$? |
ac1cb8d3 VS |
36240 | grep -v '^ *+' conftest.er1 >conftest.err |
36241 | rm -f conftest.er1 | |
36242 | cat conftest.err >&5 | |
a848cd7e SC |
36243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36244 | (exit $ac_status); } && | |
89be85c2 VS |
36245 | { ac_try='test -z "$ac_cxx_werror_flag" |
36246 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36248 | (eval $ac_try) 2>&5 | |
36249 | ac_status=$? | |
36250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36251 | (exit $ac_status); }; } && | |
36252 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36254 | (eval $ac_try) 2>&5 | |
36255 | ac_status=$? | |
36256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36257 | (exit $ac_status); }; }; then | |
36258 | wx_cv_func_gettimeofday_has_2_args=no | |
36259 | else | |
36260 | echo "$as_me: failed program was:" >&5 | |
36261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36262 | ||
36263 | ||
36264 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
36265 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
36266 | wx_cv_func_gettimeofday_has_2_args=unknown | |
36267 | ||
36268 | ||
36269 | fi | |
ac1cb8d3 | 36270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36271 | |
36272 | fi | |
ac1cb8d3 | 36273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36274 | ac_ext=c |
36275 | ac_cpp='$CPP $CPPFLAGS' | |
36276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36279 | ||
36280 | ||
36281 | fi | |
36282 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
36283 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
36284 | ||
36285 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
36286 | cat >>confdefs.h <<\_ACEOF | |
36287 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
36288 | _ACEOF | |
36289 | ||
36290 | fi | |
36291 | fi | |
36292 | ||
36293 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
36294 | fi | |
36295 | ||
36296 | ||
36297 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36298 | if test "$wxUSE_MGL" = "1"; then | |
36299 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
36300 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
36301 | wxUSE_SOCKETS="no" | |
36302 | fi | |
36303 | fi | |
36304 | ||
36305 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36306 | if test "$TOOLKIT" != "MSW"; then | |
36307 | echo "$as_me:$LINENO: checking for socket" >&5 | |
36308 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
36309 | if test "${ac_cv_func_socket+set}" = set; then | |
36310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36311 | else | |
36312 | cat >conftest.$ac_ext <<_ACEOF | |
36313 | /* confdefs.h. */ | |
36314 | _ACEOF | |
36315 | cat confdefs.h >>conftest.$ac_ext | |
36316 | cat >>conftest.$ac_ext <<_ACEOF | |
36317 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36318 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
36319 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36320 | #define socket innocuous_socket | |
36321 | ||
a848cd7e SC |
36322 | /* System header to define __stub macros and hopefully few prototypes, |
36323 | which can conflict with char socket (); below. | |
36324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36325 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36326 | |
a848cd7e SC |
36327 | #ifdef __STDC__ |
36328 | # include <limits.h> | |
36329 | #else | |
36330 | # include <assert.h> | |
36331 | #endif | |
ac1cb8d3 VS |
36332 | |
36333 | #undef socket | |
36334 | ||
a848cd7e SC |
36335 | /* Override any gcc2 internal prototype to avoid an error. */ |
36336 | #ifdef __cplusplus | |
36337 | extern "C" | |
36338 | { | |
36339 | #endif | |
36340 | /* We use char because int might match the return type of a gcc2 | |
36341 | builtin and then its argument prototype would still apply. */ | |
36342 | char socket (); | |
36343 | /* The GNU C library defines this for functions which it implements | |
36344 | to always fail with ENOSYS. Some functions are actually named | |
36345 | something starting with __ and the normal name is an alias. */ | |
36346 | #if defined (__stub_socket) || defined (__stub___socket) | |
36347 | choke me | |
36348 | #else | |
36349 | char (*f) () = socket; | |
36350 | #endif | |
36351 | #ifdef __cplusplus | |
36352 | } | |
36353 | #endif | |
36354 | ||
36355 | int | |
36356 | main () | |
36357 | { | |
36358 | return f != socket; | |
36359 | ; | |
36360 | return 0; | |
36361 | } | |
36362 | _ACEOF | |
36363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36365 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36366 | ac_status=$? |
ac1cb8d3 VS |
36367 | grep -v '^ *+' conftest.er1 >conftest.err |
36368 | rm -f conftest.er1 | |
36369 | cat conftest.err >&5 | |
a848cd7e SC |
36370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36371 | (exit $ac_status); } && | |
89be85c2 VS |
36372 | { ac_try='test -z "$ac_c_werror_flag" |
36373 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36375 | (eval $ac_try) 2>&5 | |
36376 | ac_status=$? | |
36377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36378 | (exit $ac_status); }; } && | |
36379 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36381 | (eval $ac_try) 2>&5 | |
36382 | ac_status=$? | |
36383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36384 | (exit $ac_status); }; }; then | |
36385 | ac_cv_func_socket=yes | |
36386 | else | |
36387 | echo "$as_me: failed program was:" >&5 | |
36388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36389 | ||
36390 | ac_cv_func_socket=no | |
36391 | fi | |
ac1cb8d3 VS |
36392 | rm -f conftest.err conftest.$ac_objext \ |
36393 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36394 | fi |
36395 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
36396 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
36397 | if test $ac_cv_func_socket = yes; then | |
36398 | : | |
36399 | else | |
36400 | ||
36401 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
36402 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
36403 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
36404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36405 | else | |
36406 | ac_check_lib_save_LIBS=$LIBS | |
36407 | LIBS="-lsocket $LIBS" | |
36408 | cat >conftest.$ac_ext <<_ACEOF | |
36409 | /* confdefs.h. */ | |
36410 | _ACEOF | |
36411 | cat confdefs.h >>conftest.$ac_ext | |
36412 | cat >>conftest.$ac_ext <<_ACEOF | |
36413 | /* end confdefs.h. */ | |
36414 | ||
36415 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36416 | #ifdef __cplusplus | |
36417 | extern "C" | |
36418 | #endif | |
36419 | /* We use char because int might match the return type of a gcc2 | |
36420 | builtin and then its argument prototype would still apply. */ | |
36421 | char socket (); | |
36422 | int | |
36423 | main () | |
36424 | { | |
36425 | socket (); | |
36426 | ; | |
36427 | return 0; | |
36428 | } | |
36429 | _ACEOF | |
36430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36432 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36433 | ac_status=$? |
ac1cb8d3 VS |
36434 | grep -v '^ *+' conftest.er1 >conftest.err |
36435 | rm -f conftest.er1 | |
36436 | cat conftest.err >&5 | |
a848cd7e SC |
36437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36438 | (exit $ac_status); } && | |
89be85c2 VS |
36439 | { ac_try='test -z "$ac_c_werror_flag" |
36440 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36442 | (eval $ac_try) 2>&5 | |
36443 | ac_status=$? | |
36444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36445 | (exit $ac_status); }; } && | |
36446 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36448 | (eval $ac_try) 2>&5 | |
36449 | ac_status=$? | |
36450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36451 | (exit $ac_status); }; }; then | |
36452 | ac_cv_lib_socket_socket=yes | |
36453 | else | |
36454 | echo "$as_me: failed program was:" >&5 | |
36455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36456 | ||
36457 | ac_cv_lib_socket_socket=no | |
36458 | fi | |
ac1cb8d3 VS |
36459 | rm -f conftest.err conftest.$ac_objext \ |
36460 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36461 | LIBS=$ac_check_lib_save_LIBS |
36462 | fi | |
36463 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
36464 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
36465 | if test $ac_cv_lib_socket_socket = yes; then | |
36466 | if test "$INET_LINK" != " -lsocket"; then | |
36467 | INET_LINK="$INET_LINK -lsocket" | |
36468 | fi | |
36469 | else | |
36470 | ||
36471 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
36472 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
36473 | wxUSE_SOCKETS=no | |
36474 | ||
36475 | ||
36476 | fi | |
36477 | ||
36478 | ||
36479 | ||
36480 | fi | |
36481 | ||
36482 | fi | |
36483 | fi | |
36484 | ||
36485 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36486 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
36487 | ac_ext=cc |
36488 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36489 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36490 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36491 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36492 | ||
36493 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
36494 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
36495 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
36496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36497 | else | |
36498 | ||
36499 | cat >conftest.$ac_ext <<_ACEOF | |
36500 | /* confdefs.h. */ | |
36501 | _ACEOF | |
36502 | cat confdefs.h >>conftest.$ac_ext | |
36503 | cat >>conftest.$ac_ext <<_ACEOF | |
36504 | /* end confdefs.h. */ | |
36505 | ||
36506 | #include <sys/types.h> | |
36507 | #include <sys/socket.h> | |
36508 | ||
36509 | int | |
36510 | main () | |
36511 | { | |
36512 | ||
36513 | socklen_t len; | |
36514 | getsockname(0, 0, &len); | |
36515 | ||
36516 | ; | |
36517 | return 0; | |
36518 | } | |
36519 | _ACEOF | |
36520 | rm -f conftest.$ac_objext | |
36521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36523 | ac_status=$? |
ac1cb8d3 VS |
36524 | grep -v '^ *+' conftest.er1 >conftest.err |
36525 | rm -f conftest.er1 | |
36526 | cat conftest.err >&5 | |
a848cd7e SC |
36527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36528 | (exit $ac_status); } && | |
89be85c2 VS |
36529 | { ac_try='test -z "$ac_cxx_werror_flag" |
36530 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36532 | (eval $ac_try) 2>&5 | |
36533 | ac_status=$? | |
36534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36535 | (exit $ac_status); }; } && | |
36536 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36538 | (eval $ac_try) 2>&5 | |
36539 | ac_status=$? | |
36540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36541 | (exit $ac_status); }; }; then | |
36542 | wx_cv_type_getsockname3=socklen_t | |
36543 | else | |
36544 | echo "$as_me: failed program was:" >&5 | |
36545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36546 | ||
36547 | ||
36548 | CFLAGS_OLD="$CFLAGS" | |
36549 | if test "$GCC" = yes ; then | |
36550 | CFLAGS="$CFLAGS -Werror" | |
36551 | fi | |
36552 | ||
36553 | cat >conftest.$ac_ext <<_ACEOF | |
36554 | /* confdefs.h. */ | |
36555 | _ACEOF | |
36556 | cat confdefs.h >>conftest.$ac_ext | |
36557 | cat >>conftest.$ac_ext <<_ACEOF | |
36558 | /* end confdefs.h. */ | |
36559 | ||
36560 | #include <sys/types.h> | |
36561 | #include <sys/socket.h> | |
36562 | ||
36563 | int | |
36564 | main () | |
36565 | { | |
36566 | ||
36567 | size_t len; | |
36568 | getsockname(0, 0, &len); | |
36569 | ||
36570 | ; | |
36571 | return 0; | |
36572 | } | |
36573 | _ACEOF | |
36574 | rm -f conftest.$ac_objext | |
36575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36576 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36577 | ac_status=$? |
ac1cb8d3 VS |
36578 | grep -v '^ *+' conftest.er1 >conftest.err |
36579 | rm -f conftest.er1 | |
36580 | cat conftest.err >&5 | |
a848cd7e SC |
36581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36582 | (exit $ac_status); } && | |
89be85c2 VS |
36583 | { ac_try='test -z "$ac_cxx_werror_flag" |
36584 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36586 | (eval $ac_try) 2>&5 | |
36587 | ac_status=$? | |
36588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36589 | (exit $ac_status); }; } && | |
36590 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36592 | (eval $ac_try) 2>&5 | |
36593 | ac_status=$? | |
36594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36595 | (exit $ac_status); }; }; then | |
36596 | wx_cv_type_getsockname3=size_t | |
36597 | else | |
36598 | echo "$as_me: failed program was:" >&5 | |
36599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36600 | ||
36601 | cat >conftest.$ac_ext <<_ACEOF | |
36602 | /* confdefs.h. */ | |
36603 | _ACEOF | |
36604 | cat confdefs.h >>conftest.$ac_ext | |
36605 | cat >>conftest.$ac_ext <<_ACEOF | |
36606 | /* end confdefs.h. */ | |
36607 | ||
36608 | #include <sys/types.h> | |
36609 | #include <sys/socket.h> | |
36610 | ||
36611 | int | |
36612 | main () | |
36613 | { | |
36614 | ||
36615 | int len; | |
36616 | getsockname(0, 0, &len); | |
36617 | ||
36618 | ; | |
36619 | return 0; | |
36620 | } | |
36621 | _ACEOF | |
36622 | rm -f conftest.$ac_objext | |
36623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36624 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36625 | ac_status=$? |
ac1cb8d3 VS |
36626 | grep -v '^ *+' conftest.er1 >conftest.err |
36627 | rm -f conftest.er1 | |
36628 | cat conftest.err >&5 | |
a848cd7e SC |
36629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36630 | (exit $ac_status); } && | |
89be85c2 VS |
36631 | { ac_try='test -z "$ac_cxx_werror_flag" |
36632 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36634 | (eval $ac_try) 2>&5 | |
36635 | ac_status=$? | |
36636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36637 | (exit $ac_status); }; } && | |
36638 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36640 | (eval $ac_try) 2>&5 | |
36641 | ac_status=$? | |
36642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36643 | (exit $ac_status); }; }; then | |
36644 | wx_cv_type_getsockname3=int | |
36645 | else | |
36646 | echo "$as_me: failed program was:" >&5 | |
36647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36648 | ||
36649 | wx_cv_type_getsockname3=unknown | |
36650 | ||
36651 | fi | |
ac1cb8d3 | 36652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36653 | |
36654 | fi | |
ac1cb8d3 | 36655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36656 | |
36657 | CFLAGS="$CFLAGS_OLD" | |
36658 | ||
36659 | ||
36660 | fi | |
ac1cb8d3 | 36661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36662 | |
36663 | fi | |
36664 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
36665 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
36666 | ||
36667 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
36668 | wxUSE_SOCKETS=no | |
36669 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
36670 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
36671 | else | |
36672 | cat >>confdefs.h <<_ACEOF | |
36673 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
36674 | _ACEOF |
36675 | ||
36676 | fi | |
36677 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
36678 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
36679 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
36680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36681 | else | |
36682 | ||
36683 | cat >conftest.$ac_ext <<_ACEOF | |
36684 | /* confdefs.h. */ | |
36685 | _ACEOF | |
36686 | cat confdefs.h >>conftest.$ac_ext | |
36687 | cat >>conftest.$ac_ext <<_ACEOF | |
36688 | /* end confdefs.h. */ | |
36689 | ||
36690 | #include <sys/types.h> | |
36691 | #include <sys/socket.h> | |
36692 | ||
36693 | int | |
36694 | main () | |
36695 | { | |
36696 | ||
36697 | socklen_t len; | |
36698 | getsockopt(0, 0, 0, 0, &len); | |
36699 | ||
36700 | ; | |
36701 | return 0; | |
36702 | } | |
36703 | _ACEOF | |
36704 | rm -f conftest.$ac_objext | |
36705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36706 | (eval $ac_compile) 2>conftest.er1 | |
36707 | ac_status=$? | |
36708 | grep -v '^ *+' conftest.er1 >conftest.err | |
36709 | rm -f conftest.er1 | |
36710 | cat conftest.err >&5 | |
36711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36712 | (exit $ac_status); } && | |
89be85c2 VS |
36713 | { ac_try='test -z "$ac_cxx_werror_flag" |
36714 | || test ! -s conftest.err' | |
5b674b9d DE |
36715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36716 | (eval $ac_try) 2>&5 | |
36717 | ac_status=$? | |
36718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36719 | (exit $ac_status); }; } && | |
36720 | { ac_try='test -s conftest.$ac_objext' | |
36721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36722 | (eval $ac_try) 2>&5 | |
36723 | ac_status=$? | |
36724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36725 | (exit $ac_status); }; }; then | |
36726 | wx_cv_type_getsockopt5=socklen_t | |
36727 | else | |
36728 | echo "$as_me: failed program was:" >&5 | |
36729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36730 | ||
36731 | ||
36732 | CFLAGS_OLD="$CFLAGS" | |
36733 | if test "$GCC" = yes ; then | |
36734 | CFLAGS="$CFLAGS -Werror" | |
36735 | fi | |
36736 | ||
36737 | cat >conftest.$ac_ext <<_ACEOF | |
36738 | /* confdefs.h. */ | |
36739 | _ACEOF | |
36740 | cat confdefs.h >>conftest.$ac_ext | |
36741 | cat >>conftest.$ac_ext <<_ACEOF | |
36742 | /* end confdefs.h. */ | |
36743 | ||
36744 | #include <sys/types.h> | |
36745 | #include <sys/socket.h> | |
36746 | ||
36747 | int | |
36748 | main () | |
36749 | { | |
36750 | ||
36751 | size_t len; | |
36752 | getsockopt(0, 0, 0, 0, &len); | |
36753 | ||
36754 | ; | |
36755 | return 0; | |
36756 | } | |
36757 | _ACEOF | |
36758 | rm -f conftest.$ac_objext | |
36759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36760 | (eval $ac_compile) 2>conftest.er1 | |
36761 | ac_status=$? | |
36762 | grep -v '^ *+' conftest.er1 >conftest.err | |
36763 | rm -f conftest.er1 | |
36764 | cat conftest.err >&5 | |
36765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36766 | (exit $ac_status); } && | |
89be85c2 VS |
36767 | { ac_try='test -z "$ac_cxx_werror_flag" |
36768 | || test ! -s conftest.err' | |
5b674b9d DE |
36769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36770 | (eval $ac_try) 2>&5 | |
36771 | ac_status=$? | |
36772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36773 | (exit $ac_status); }; } && | |
36774 | { ac_try='test -s conftest.$ac_objext' | |
36775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36776 | (eval $ac_try) 2>&5 | |
36777 | ac_status=$? | |
36778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36779 | (exit $ac_status); }; }; then | |
36780 | wx_cv_type_getsockopt5=size_t | |
36781 | else | |
36782 | echo "$as_me: failed program was:" >&5 | |
36783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36784 | ||
36785 | cat >conftest.$ac_ext <<_ACEOF | |
36786 | /* confdefs.h. */ | |
36787 | _ACEOF | |
36788 | cat confdefs.h >>conftest.$ac_ext | |
36789 | cat >>conftest.$ac_ext <<_ACEOF | |
36790 | /* end confdefs.h. */ | |
36791 | ||
36792 | #include <sys/types.h> | |
36793 | #include <sys/socket.h> | |
36794 | ||
36795 | int | |
36796 | main () | |
36797 | { | |
36798 | ||
36799 | int len; | |
36800 | getsockopt(0, 0, 0, 0, &len); | |
36801 | ||
36802 | ; | |
36803 | return 0; | |
36804 | } | |
36805 | _ACEOF | |
36806 | rm -f conftest.$ac_objext | |
36807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36808 | (eval $ac_compile) 2>conftest.er1 | |
36809 | ac_status=$? | |
36810 | grep -v '^ *+' conftest.er1 >conftest.err | |
36811 | rm -f conftest.er1 | |
36812 | cat conftest.err >&5 | |
36813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36814 | (exit $ac_status); } && | |
89be85c2 VS |
36815 | { ac_try='test -z "$ac_cxx_werror_flag" |
36816 | || test ! -s conftest.err' | |
5b674b9d DE |
36817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36818 | (eval $ac_try) 2>&5 | |
36819 | ac_status=$? | |
36820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36821 | (exit $ac_status); }; } && | |
36822 | { ac_try='test -s conftest.$ac_objext' | |
36823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36824 | (eval $ac_try) 2>&5 | |
36825 | ac_status=$? | |
36826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36827 | (exit $ac_status); }; }; then | |
36828 | wx_cv_type_getsockopt5=int | |
36829 | else | |
36830 | echo "$as_me: failed program was:" >&5 | |
36831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36832 | ||
36833 | wx_cv_type_getsockopt5=unknown | |
36834 | ||
36835 | fi | |
36836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36837 | ||
36838 | fi | |
36839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36840 | ||
36841 | CFLAGS="$CFLAGS_OLD" | |
36842 | ||
36843 | ||
36844 | fi | |
36845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36846 | ||
36847 | fi | |
36848 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
36849 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
36850 | ||
36851 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
36852 | wxUSE_SOCKETS=no | |
36853 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
36854 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
36855 | else | |
36856 | cat >>confdefs.h <<_ACEOF | |
36857 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
36858 | _ACEOF |
36859 | ||
36860 | fi | |
4d4ff94c VZ |
36861 | ac_ext=c |
36862 | ac_cpp='$CPP $CPPFLAGS' | |
36863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36866 | ||
a848cd7e SC |
36867 | fi |
36868 | fi | |
36869 | ||
36870 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36871 | cat >>confdefs.h <<\_ACEOF | |
36872 | #define wxUSE_SOCKETS 1 | |
36873 | _ACEOF | |
36874 | ||
36875 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
36876 | fi | |
36877 | ||
36878 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36879 | if test "$wxUSE_SOCKETS" != "yes"; then | |
36880 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
36881 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
36882 | wxUSE_PROTOCOL=no | |
36883 | fi | |
36884 | fi | |
36885 | ||
36886 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36887 | cat >>confdefs.h <<\_ACEOF | |
36888 | #define wxUSE_PROTOCOL 1 | |
36889 | _ACEOF | |
36890 | ||
36891 | ||
36892 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
36893 | cat >>confdefs.h <<\_ACEOF | |
36894 | #define wxUSE_PROTOCOL_HTTP 1 | |
36895 | _ACEOF | |
36896 | ||
36897 | fi | |
36898 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
36899 | cat >>confdefs.h <<\_ACEOF | |
36900 | #define wxUSE_PROTOCOL_FTP 1 | |
36901 | _ACEOF | |
36902 | ||
36903 | fi | |
36904 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
36905 | cat >>confdefs.h <<\_ACEOF | |
36906 | #define wxUSE_PROTOCOL_FILE 1 | |
36907 | _ACEOF | |
36908 | ||
36909 | fi | |
36910 | else | |
36911 | if test "$wxUSE_FS_INET" = "yes"; then | |
36912 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
36913 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
36914 | wxUSE_FS_INET="no" | |
36915 | fi | |
36916 | fi | |
36917 | ||
36918 | if test "$wxUSE_URL" = "yes"; then | |
36919 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
36920 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
36921 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
36922 | wxUSE_URL=no | |
36923 | fi | |
36924 | if test "$wxUSE_URL" = "yes"; then | |
36925 | cat >>confdefs.h <<\_ACEOF | |
36926 | #define wxUSE_URL 1 | |
36927 | _ACEOF | |
36928 | ||
36929 | fi | |
36930 | fi | |
36931 | ||
36932 | if test "$wxUSE_FS_INET" = "yes"; then | |
36933 | cat >>confdefs.h <<\_ACEOF | |
36934 | #define wxUSE_FS_INET 1 | |
36935 | _ACEOF | |
36936 | ||
36937 | fi | |
36938 | ||
36939 | ||
36940 | if test "$wxUSE_GUI" = "yes"; then | |
36941 | ||
36942 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
36943 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
36944 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
36945 | wxUSE_JOYSTICK=no | |
36946 | fi | |
36947 | ||
36948 | if test "$TOOLKIT" != "MSW"; then | |
36949 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36950 | ||
36951 | for ac_header in linux/joystick.h | |
36952 | do | |
36953 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36955 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36956 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36959 | fi | |
36960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36961 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36962 | else | |
36963 | # Is the header compilable? | |
36964 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36965 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36966 | cat >conftest.$ac_ext <<_ACEOF | |
36967 | /* confdefs.h. */ | |
36968 | _ACEOF | |
36969 | cat confdefs.h >>conftest.$ac_ext | |
36970 | cat >>conftest.$ac_ext <<_ACEOF | |
36971 | /* end confdefs.h. */ | |
36972 | $ac_includes_default | |
36973 | #include <$ac_header> | |
36974 | _ACEOF | |
36975 | rm -f conftest.$ac_objext | |
36976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36977 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36978 | ac_status=$? |
ac1cb8d3 VS |
36979 | grep -v '^ *+' conftest.er1 >conftest.err |
36980 | rm -f conftest.er1 | |
36981 | cat conftest.err >&5 | |
a848cd7e SC |
36982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36983 | (exit $ac_status); } && | |
89be85c2 VS |
36984 | { ac_try='test -z "$ac_c_werror_flag" |
36985 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36987 | (eval $ac_try) 2>&5 | |
36988 | ac_status=$? | |
36989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36990 | (exit $ac_status); }; } && | |
36991 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36993 | (eval $ac_try) 2>&5 | |
36994 | ac_status=$? | |
36995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36996 | (exit $ac_status); }; }; then | |
36997 | ac_header_compiler=yes | |
36998 | else | |
36999 | echo "$as_me: failed program was:" >&5 | |
37000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37001 | ||
37002 | ac_header_compiler=no | |
37003 | fi | |
ac1cb8d3 | 37004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37005 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37006 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37007 | ||
37008 | # Is the header present? | |
37009 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37010 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37011 | cat >conftest.$ac_ext <<_ACEOF | |
37012 | /* confdefs.h. */ | |
37013 | _ACEOF | |
37014 | cat confdefs.h >>conftest.$ac_ext | |
37015 | cat >>conftest.$ac_ext <<_ACEOF | |
37016 | /* end confdefs.h. */ | |
37017 | #include <$ac_header> | |
37018 | _ACEOF | |
37019 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37020 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37021 | ac_status=$? | |
37022 | grep -v '^ *+' conftest.er1 >conftest.err | |
37023 | rm -f conftest.er1 | |
37024 | cat conftest.err >&5 | |
37025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37026 | (exit $ac_status); } >/dev/null; then | |
37027 | if test -s conftest.err; then | |
37028 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37029 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37030 | else |
37031 | ac_cpp_err= | |
37032 | fi | |
37033 | else | |
37034 | ac_cpp_err=yes | |
37035 | fi | |
37036 | if test -z "$ac_cpp_err"; then | |
37037 | ac_header_preproc=yes | |
37038 | else | |
37039 | echo "$as_me: failed program was:" >&5 | |
37040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37041 | ||
37042 | ac_header_preproc=no | |
37043 | fi | |
37044 | rm -f conftest.err conftest.$ac_ext | |
37045 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37046 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37047 | ||
37048 | # So? What about this header? | |
ac1cb8d3 VS |
37049 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37050 | yes:no: ) | |
a848cd7e SC |
37051 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37052 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37053 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37054 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37055 | ac_header_preproc=yes | |
a848cd7e | 37056 | ;; |
ac1cb8d3 | 37057 | no:yes:* ) |
a848cd7e SC |
37058 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37059 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37060 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37061 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37062 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37063 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37064 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37065 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37066 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37067 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37068 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37069 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37070 | ( |
37071 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37072 | ## ----------------------------------------- ## |
37073 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37074 | ## ----------------------------------------- ## | |
a848cd7e SC |
37075 | _ASBOX |
37076 | ) | | |
37077 | sed "s/^/$as_me: WARNING: /" >&2 | |
37078 | ;; | |
37079 | esac | |
37080 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37081 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37084 | else | |
ac1cb8d3 | 37085 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37086 | fi |
37087 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37088 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37089 | ||
37090 | fi | |
37091 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37092 | cat >>confdefs.h <<_ACEOF | |
37093 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37094 | _ACEOF | |
37095 | ||
37096 | fi | |
37097 | ||
37098 | done | |
37099 | ||
37100 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
37101 | wxUSE_JOYSTICK=no | |
37102 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
37103 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
37104 | fi | |
37105 | fi | |
37106 | fi | |
37107 | ||
37108 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
37109 | cat >>confdefs.h <<\_ACEOF | |
37110 | #define wxUSE_JOYSTICK 1 | |
37111 | _ACEOF | |
37112 | ||
37113 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
37114 | fi | |
37115 | fi | |
37116 | ||
37117 | ||
37118 | ||
37119 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
37120 | cat >>confdefs.h <<\_ACEOF | |
37121 | #define wxUSE_FONTMAP 1 | |
37122 | _ACEOF | |
37123 | ||
37124 | fi | |
37125 | ||
37126 | if test "$wxUSE_UNICODE" = "yes" ; then | |
37127 | cat >>confdefs.h <<\_ACEOF | |
37128 | #define wxUSE_UNICODE 1 | |
37129 | _ACEOF | |
37130 | ||
37131 | ||
37132 | if test "$USE_WIN32" != 1; then | |
37133 | wxUSE_UNICODE_MSLU=no | |
37134 | fi | |
37135 | ||
37136 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
37137 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
37138 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
37139 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
37140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37141 | else | |
37142 | ac_check_lib_save_LIBS=$LIBS | |
37143 | LIBS="-lunicows $LIBS" | |
37144 | cat >conftest.$ac_ext <<_ACEOF | |
37145 | /* confdefs.h. */ | |
37146 | _ACEOF | |
37147 | cat confdefs.h >>conftest.$ac_ext | |
37148 | cat >>conftest.$ac_ext <<_ACEOF | |
37149 | /* end confdefs.h. */ | |
37150 | ||
37151 | ||
37152 | int | |
37153 | main () | |
37154 | { | |
37155 | main (); | |
37156 | ; | |
37157 | return 0; | |
37158 | } | |
37159 | _ACEOF | |
37160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37162 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37163 | ac_status=$? |
ac1cb8d3 VS |
37164 | grep -v '^ *+' conftest.er1 >conftest.err |
37165 | rm -f conftest.er1 | |
37166 | cat conftest.err >&5 | |
a848cd7e SC |
37167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37168 | (exit $ac_status); } && | |
89be85c2 VS |
37169 | { ac_try='test -z "$ac_c_werror_flag" |
37170 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37172 | (eval $ac_try) 2>&5 | |
37173 | ac_status=$? | |
37174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37175 | (exit $ac_status); }; } && | |
37176 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37178 | (eval $ac_try) 2>&5 | |
37179 | ac_status=$? | |
37180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37181 | (exit $ac_status); }; }; then | |
37182 | ac_cv_lib_unicows_main=yes | |
37183 | else | |
37184 | echo "$as_me: failed program was:" >&5 | |
37185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37186 | ||
37187 | ac_cv_lib_unicows_main=no | |
37188 | fi | |
ac1cb8d3 VS |
37189 | rm -f conftest.err conftest.$ac_objext \ |
37190 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37191 | LIBS=$ac_check_lib_save_LIBS |
37192 | fi | |
37193 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
37194 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
37195 | if test $ac_cv_lib_unicows_main = yes; then | |
37196 | ||
37197 | cat >>confdefs.h <<\_ACEOF | |
37198 | #define wxUSE_UNICODE_MSLU 1 | |
37199 | _ACEOF | |
37200 | ||
37201 | ||
37202 | else | |
37203 | ||
37204 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37205 | Applications will only run on Windows NT/2000/XP!" >&5 | |
37206 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37207 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
37208 | wxUSE_UNICODE_MSLU=no | |
37209 | ||
37210 | fi | |
37211 | ||
37212 | fi | |
37213 | fi | |
37214 | ||
37215 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
37216 | cat >>confdefs.h <<\_ACEOF | |
37217 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
37218 | _ACEOF | |
37219 | ||
37220 | fi | |
37221 | ||
37222 | ||
37223 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
37224 | cat >>confdefs.h <<\_ACEOF | |
37225 | #define wxUSE_POSTSCRIPT 1 | |
37226 | _ACEOF | |
37227 | ||
37228 | fi | |
37229 | ||
37230 | cat >>confdefs.h <<\_ACEOF | |
37231 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
37232 | _ACEOF | |
37233 | ||
37234 | ||
37235 | cat >>confdefs.h <<\_ACEOF | |
37236 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
37237 | _ACEOF | |
37238 | ||
37239 | ||
37240 | ||
37241 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
37242 | cat >>confdefs.h <<\_ACEOF | |
37243 | #define wxUSE_CONSTRAINTS 1 | |
37244 | _ACEOF | |
37245 | ||
37246 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
37247 | fi | |
37248 | ||
8a7b1113 VZ |
37249 | if test "$wxUSE_MDI" = "yes"; then |
37250 | cat >>confdefs.h <<\_ACEOF | |
37251 | #define wxUSE_MDI 1 | |
37252 | _ACEOF | |
37253 | ||
37254 | ||
37255 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37256 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37257 | #define wxUSE_MDI_ARCHITECTURE 1 |
37258 | _ACEOF | |
37259 | ||
8a7b1113 VZ |
37260 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
37261 | fi | |
a848cd7e SC |
37262 | fi |
37263 | ||
37264 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
37265 | cat >>confdefs.h <<\_ACEOF | |
37266 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
37267 | _ACEOF | |
37268 | ||
37269 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
37270 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37271 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
37272 | fi | |
37273 | fi | |
37274 | ||
37275 | if test "$wxUSE_HELP" = "yes"; then | |
37276 | cat >>confdefs.h <<\_ACEOF | |
37277 | #define wxUSE_HELP 1 | |
37278 | _ACEOF | |
37279 | ||
37280 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
37281 | ||
37282 | if test "$wxUSE_MSW" = 1; then | |
37283 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
37284 | cat >>confdefs.h <<\_ACEOF | |
37285 | #define wxUSE_MS_HTML_HELP 1 | |
37286 | _ACEOF | |
37287 | ||
37288 | fi | |
37289 | fi | |
37290 | ||
37291 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
37292 | if test "$wxUSE_HTML" = "yes"; then | |
37293 | cat >>confdefs.h <<\_ACEOF | |
37294 | #define wxUSE_WXHTML_HELP 1 | |
37295 | _ACEOF | |
37296 | ||
37297 | else | |
37298 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
37299 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
37300 | wxUSE_WXHTML_HELP=no | |
37301 | fi | |
37302 | fi | |
37303 | fi | |
37304 | ||
37305 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
37306 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37307 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
37308 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
37309 | else | |
37310 | cat >>confdefs.h <<\_ACEOF | |
37311 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
37312 | _ACEOF | |
37313 | ||
37314 | fi | |
37315 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
37316 | fi | |
37317 | ||
37318 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
37319 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
37320 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
37321 | { (exit 1); exit 1; }; } | |
37322 | fi | |
37323 | ||
37324 | ||
37325 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
37326 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
37327 | -o "$wxUSE_OLE" = "yes" \ | |
37328 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
37329 | ||
37330 | for ac_header in ole2.h | |
37331 | do | |
37332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37338 | fi | |
37339 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37340 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37341 | else | |
37342 | # Is the header compilable? | |
37343 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37344 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37345 | cat >conftest.$ac_ext <<_ACEOF | |
37346 | /* confdefs.h. */ | |
37347 | _ACEOF | |
37348 | cat confdefs.h >>conftest.$ac_ext | |
37349 | cat >>conftest.$ac_ext <<_ACEOF | |
37350 | /* end confdefs.h. */ | |
37351 | $ac_includes_default | |
37352 | #include <$ac_header> | |
37353 | _ACEOF | |
37354 | rm -f conftest.$ac_objext | |
37355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37356 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37357 | ac_status=$? |
ac1cb8d3 VS |
37358 | grep -v '^ *+' conftest.er1 >conftest.err |
37359 | rm -f conftest.er1 | |
37360 | cat conftest.err >&5 | |
a848cd7e SC |
37361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37362 | (exit $ac_status); } && | |
89be85c2 VS |
37363 | { ac_try='test -z "$ac_c_werror_flag" |
37364 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37366 | (eval $ac_try) 2>&5 | |
37367 | ac_status=$? | |
37368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37369 | (exit $ac_status); }; } && | |
37370 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37372 | (eval $ac_try) 2>&5 | |
37373 | ac_status=$? | |
37374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37375 | (exit $ac_status); }; }; then | |
37376 | ac_header_compiler=yes | |
37377 | else | |
37378 | echo "$as_me: failed program was:" >&5 | |
37379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37380 | ||
37381 | ac_header_compiler=no | |
37382 | fi | |
ac1cb8d3 | 37383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37384 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37385 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37386 | ||
37387 | # Is the header present? | |
37388 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37389 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37390 | cat >conftest.$ac_ext <<_ACEOF | |
37391 | /* confdefs.h. */ | |
37392 | _ACEOF | |
37393 | cat confdefs.h >>conftest.$ac_ext | |
37394 | cat >>conftest.$ac_ext <<_ACEOF | |
37395 | /* end confdefs.h. */ | |
37396 | #include <$ac_header> | |
37397 | _ACEOF | |
37398 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37399 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37400 | ac_status=$? | |
37401 | grep -v '^ *+' conftest.er1 >conftest.err | |
37402 | rm -f conftest.er1 | |
37403 | cat conftest.err >&5 | |
37404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37405 | (exit $ac_status); } >/dev/null; then | |
37406 | if test -s conftest.err; then | |
37407 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37408 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37409 | else |
37410 | ac_cpp_err= | |
37411 | fi | |
37412 | else | |
37413 | ac_cpp_err=yes | |
37414 | fi | |
37415 | if test -z "$ac_cpp_err"; then | |
37416 | ac_header_preproc=yes | |
37417 | else | |
37418 | echo "$as_me: failed program was:" >&5 | |
37419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37420 | ||
37421 | ac_header_preproc=no | |
37422 | fi | |
37423 | rm -f conftest.err conftest.$ac_ext | |
37424 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37425 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37426 | ||
37427 | # So? What about this header? | |
ac1cb8d3 VS |
37428 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37429 | yes:no: ) | |
a848cd7e SC |
37430 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37431 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37432 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37433 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37434 | ac_header_preproc=yes | |
a848cd7e | 37435 | ;; |
ac1cb8d3 | 37436 | no:yes:* ) |
a848cd7e SC |
37437 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37438 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37439 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37440 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37441 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37442 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37443 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37444 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37446 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37447 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37448 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37449 | ( |
37450 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37451 | ## ----------------------------------------- ## |
37452 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37453 | ## ----------------------------------------- ## | |
a848cd7e SC |
37454 | _ASBOX |
37455 | ) | | |
37456 | sed "s/^/$as_me: WARNING: /" >&2 | |
37457 | ;; | |
37458 | esac | |
37459 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37461 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37463 | else | |
ac1cb8d3 | 37464 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37465 | fi |
37466 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37467 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37468 | ||
37469 | fi | |
37470 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37471 | cat >>confdefs.h <<_ACEOF | |
37472 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37473 | _ACEOF | |
37474 | ||
37475 | fi | |
37476 | ||
37477 | done | |
37478 | ||
37479 | ||
37480 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
37481 | if test "$GCC" = yes ; then | |
37482 | ||
37483 | ||
37484 | ac_ext=cc | |
37485 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37486 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37487 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37488 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37489 | ||
37490 | ||
37491 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
37492 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
37493 | cat >conftest.$ac_ext <<_ACEOF | |
37494 | /* confdefs.h. */ | |
37495 | _ACEOF | |
37496 | cat confdefs.h >>conftest.$ac_ext | |
37497 | cat >>conftest.$ac_ext <<_ACEOF | |
37498 | /* end confdefs.h. */ | |
37499 | #include <windows.h> | |
37500 | #include <ole2.h> | |
37501 | int | |
37502 | main () | |
37503 | { | |
37504 | ||
37505 | ; | |
37506 | return 0; | |
37507 | } | |
37508 | _ACEOF | |
37509 | rm -f conftest.$ac_objext | |
37510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37511 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37512 | ac_status=$? |
ac1cb8d3 VS |
37513 | grep -v '^ *+' conftest.er1 >conftest.err |
37514 | rm -f conftest.er1 | |
37515 | cat conftest.err >&5 | |
a848cd7e SC |
37516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37517 | (exit $ac_status); } && | |
89be85c2 VS |
37518 | { ac_try='test -z "$ac_cxx_werror_flag" |
37519 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37521 | (eval $ac_try) 2>&5 | |
37522 | ac_status=$? | |
37523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37524 | (exit $ac_status); }; } && | |
37525 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37527 | (eval $ac_try) 2>&5 | |
37528 | ac_status=$? | |
37529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37530 | (exit $ac_status); }; }; then | |
37531 | echo "$as_me:$LINENO: result: no" >&5 | |
37532 | echo "${ECHO_T}no" >&6 | |
37533 | else | |
37534 | echo "$as_me: failed program was:" >&5 | |
37535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37536 | ||
37537 | echo "$as_me:$LINENO: result: yes" >&5 | |
37538 | echo "${ECHO_T}yes" >&6 | |
37539 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
37540 | fi | |
ac1cb8d3 | 37541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37542 | ac_ext=c |
37543 | ac_cpp='$CPP $CPPFLAGS' | |
37544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37547 | ||
a848cd7e SC |
37548 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
37549 | if test "$wxUSE_OLE" = "yes" ; then | |
37550 | cat >>confdefs.h <<\_ACEOF | |
37551 | #define wxUSE_OLE 1 | |
37552 | _ACEOF | |
37553 | ||
37554 | fi | |
37555 | fi | |
37556 | ||
37557 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
37558 | cat >>confdefs.h <<\_ACEOF | |
37559 | #define wxUSE_DATAOBJ 1 | |
37560 | _ACEOF | |
37561 | ||
37562 | fi | |
37563 | else | |
37564 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
37565 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
37566 | ||
37567 | wxUSE_CLIPBOARD=no | |
37568 | wxUSE_DRAG_AND_DROP=no | |
37569 | wxUSE_DATAOBJ=no | |
37570 | wxUSE_OLE=no | |
37571 | fi | |
37572 | ||
37573 | if test "$wxUSE_METAFILE" = "yes"; then | |
37574 | cat >>confdefs.h <<\_ACEOF | |
37575 | #define wxUSE_METAFILE 1 | |
37576 | _ACEOF | |
37577 | ||
37578 | ||
37579 | cat >>confdefs.h <<\_ACEOF | |
37580 | #define wxUSE_ENH_METAFILE 1 | |
37581 | _ACEOF | |
37582 | ||
37583 | fi | |
37584 | fi | |
37585 | ||
37586 | if test "$wxUSE_IPC" = "yes"; then | |
37587 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
37588 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
37589 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
37590 | fi |
37591 | ||
37592 | cat >>confdefs.h <<\_ACEOF | |
37593 | #define wxUSE_IPC 1 | |
37594 | _ACEOF | |
37595 | ||
37596 | fi | |
37597 | ||
37598 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
37599 | if test "$wxUSE_MGL" = 1; then | |
37600 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
37601 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
37602 | wxUSE_CLIPBOARD=no | |
37603 | fi | |
37604 | ||
37605 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
37606 | cat >>confdefs.h <<\_ACEOF | |
37607 | #define wxUSE_CLIPBOARD 1 | |
37608 | _ACEOF | |
37609 | ||
37610 | ||
37611 | cat >>confdefs.h <<\_ACEOF | |
37612 | #define wxUSE_DATAOBJ 1 | |
37613 | _ACEOF | |
37614 | ||
37615 | fi | |
37616 | fi | |
37617 | ||
37618 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
37619 | if test "$wxUSE_GTK" = 1; then | |
37620 | if test "$WXGTK12" != 1; then | |
37621 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
37622 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
37623 | wxUSE_DRAG_AND_DROP=no | |
37624 | fi | |
37625 | fi | |
37626 | ||
37627 | if test "$wxUSE_MOTIF" = 1; then | |
37628 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
37629 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
37630 | wxUSE_DRAG_AND_DROP=no | |
37631 | fi | |
37632 | ||
37633 | if test "$wxUSE_X11" = 1; then | |
37634 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
37635 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
37636 | wxUSE_DRAG_AND_DROP=no | |
37637 | fi | |
37638 | ||
37639 | if test "$wxUSE_MGL" = 1; then | |
37640 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
37641 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
37642 | wxUSE_DRAG_AND_DROP=no | |
37643 | fi | |
37644 | ||
37645 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
37646 | cat >>confdefs.h <<\_ACEOF | |
37647 | #define wxUSE_DRAG_AND_DROP 1 | |
37648 | _ACEOF | |
37649 | ||
37650 | fi | |
37651 | ||
37652 | fi | |
37653 | ||
37654 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
37655 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
37656 | fi | |
37657 | ||
37658 | if test "$wxUSE_SPLINES" = "yes" ; then | |
37659 | cat >>confdefs.h <<\_ACEOF | |
37660 | #define wxUSE_SPLINES 1 | |
37661 | _ACEOF | |
37662 | ||
37663 | fi | |
37664 | ||
37665 | ||
37666 | USES_CONTROLS=0 | |
37667 | if test "$wxUSE_CONTROLS" = "yes"; then | |
37668 | USES_CONTROLS=1 | |
37669 | fi | |
37670 | ||
37671 | if test "$wxUSE_ACCEL" = "yes"; then | |
37672 | cat >>confdefs.h <<\_ACEOF | |
37673 | #define wxUSE_ACCEL 1 | |
37674 | _ACEOF | |
37675 | ||
37676 | USES_CONTROLS=1 | |
37677 | fi | |
37678 | ||
37679 | if test "$wxUSE_BUTTON" = "yes"; then | |
37680 | cat >>confdefs.h <<\_ACEOF | |
37681 | #define wxUSE_BUTTON 1 | |
37682 | _ACEOF | |
37683 | ||
37684 | USES_CONTROLS=1 | |
37685 | fi | |
37686 | ||
37687 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
37688 | cat >>confdefs.h <<\_ACEOF | |
37689 | #define wxUSE_BMPBUTTON 1 | |
37690 | _ACEOF | |
37691 | ||
37692 | USES_CONTROLS=1 | |
37693 | fi | |
37694 | ||
37695 | if test "$wxUSE_CALCTRL" = "yes"; then | |
37696 | cat >>confdefs.h <<\_ACEOF | |
37697 | #define wxUSE_CALENDARCTRL 1 | |
37698 | _ACEOF | |
37699 | ||
37700 | USES_CONTROLS=1 | |
37701 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
37702 | fi | |
37703 | ||
37704 | if test "$wxUSE_CARET" = "yes"; then | |
37705 | cat >>confdefs.h <<\_ACEOF | |
37706 | #define wxUSE_CARET 1 | |
37707 | _ACEOF | |
37708 | ||
37709 | USES_CONTROLS=1 | |
37710 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
37711 | fi | |
37712 | ||
37713 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
37714 | cat >>confdefs.h <<\_ACEOF | |
37715 | #define wxUSE_COMBOBOX 1 | |
37716 | _ACEOF | |
37717 | ||
37718 | USES_CONTROLS=1 | |
37719 | fi | |
37720 | ||
37721 | if test "$wxUSE_CHOICE" = "yes"; then | |
37722 | cat >>confdefs.h <<\_ACEOF | |
37723 | #define wxUSE_CHOICE 1 | |
37724 | _ACEOF | |
37725 | ||
37726 | USES_CONTROLS=1 | |
37727 | fi | |
37728 | ||
92bbdbcd WS |
37729 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
37730 | cat >>confdefs.h <<\_ACEOF | |
37731 | #define wxUSE_CHOICEBOOK 1 | |
37732 | _ACEOF | |
37733 | ||
37734 | USES_CONTROLS=1 | |
37735 | fi | |
37736 | ||
a848cd7e SC |
37737 | if test "$wxUSE_CHECKBOX" = "yes"; then |
37738 | cat >>confdefs.h <<\_ACEOF | |
37739 | #define wxUSE_CHECKBOX 1 | |
37740 | _ACEOF | |
37741 | ||
37742 | USES_CONTROLS=1 | |
37743 | fi | |
37744 | ||
37745 | if test "$wxUSE_CHECKLST" = "yes"; then | |
37746 | cat >>confdefs.h <<\_ACEOF | |
37747 | #define wxUSE_CHECKLISTBOX 1 | |
37748 | _ACEOF | |
37749 | ||
37750 | USES_CONTROLS=1 | |
37751 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
37752 | fi | |
37753 | ||
da98e9be VZ |
37754 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
37755 | cat >>confdefs.h <<\_ACEOF | |
37756 | #define wxUSE_DATEPICKCTRL 1 | |
37757 | _ACEOF | |
37758 | ||
37759 | USES_CONTROLS=1 | |
37760 | fi | |
37761 | ||
a848cd7e SC |
37762 | if test "$wxUSE_DISPLAY" = "yes"; then |
37763 | cat >>confdefs.h <<\_ACEOF | |
37764 | #define wxUSE_DISPLAY 1 | |
37765 | _ACEOF | |
37766 | ||
37767 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
37768 | fi | |
37769 | ||
37770 | if test "$wxUSE_GAUGE" = "yes"; then | |
37771 | cat >>confdefs.h <<\_ACEOF | |
37772 | #define wxUSE_GAUGE 1 | |
37773 | _ACEOF | |
37774 | ||
37775 | USES_CONTROLS=1 | |
37776 | fi | |
37777 | ||
37778 | if test "$wxUSE_GRID" = "yes"; then | |
37779 | cat >>confdefs.h <<\_ACEOF | |
37780 | #define wxUSE_GRID 1 | |
37781 | _ACEOF | |
37782 | ||
37783 | USES_CONTROLS=1 | |
37784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
37785 | fi | |
37786 | ||
37787 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37788 | cat >>confdefs.h <<\_ACEOF | |
37789 | #define wxUSE_IMAGLIST 1 | |
37790 | _ACEOF | |
37791 | ||
37792 | fi | |
37793 | ||
37794 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
37795 | cat >>confdefs.h <<\_ACEOF | |
37796 | #define wxUSE_LISTBOOK 1 | |
37797 | _ACEOF | |
37798 | ||
37799 | USES_CONTROLS=1 | |
37800 | fi | |
37801 | ||
37802 | if test "$wxUSE_LISTBOX" = "yes"; then | |
37803 | cat >>confdefs.h <<\_ACEOF | |
37804 | #define wxUSE_LISTBOX 1 | |
37805 | _ACEOF | |
37806 | ||
37807 | USES_CONTROLS=1 | |
37808 | fi | |
37809 | ||
37810 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
37811 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37812 | cat >>confdefs.h <<\_ACEOF | |
37813 | #define wxUSE_LISTCTRL 1 | |
37814 | _ACEOF | |
37815 | ||
37816 | USES_CONTROLS=1 | |
37817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
37818 | else | |
37819 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
37820 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37821 | fi | |
37822 | fi | |
37823 | ||
37824 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
37825 | cat >>confdefs.h <<\_ACEOF | |
37826 | #define wxUSE_NOTEBOOK 1 | |
37827 | _ACEOF | |
37828 | ||
37829 | USES_CONTROLS=1 | |
37830 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
37831 | fi | |
37832 | ||
37833 | ||
37834 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
37835 | cat >>confdefs.h <<\_ACEOF | |
37836 | #define wxUSE_RADIOBOX 1 | |
37837 | _ACEOF | |
37838 | ||
37839 | USES_CONTROLS=1 | |
37840 | fi | |
37841 | ||
37842 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
37843 | cat >>confdefs.h <<\_ACEOF | |
37844 | #define wxUSE_RADIOBTN 1 | |
37845 | _ACEOF | |
37846 | ||
37847 | USES_CONTROLS=1 | |
37848 | fi | |
37849 | ||
37850 | if test "$wxUSE_SASH" = "yes"; then | |
37851 | cat >>confdefs.h <<\_ACEOF | |
37852 | #define wxUSE_SASH 1 | |
37853 | _ACEOF | |
37854 | ||
37855 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
37856 | fi | |
37857 | ||
37858 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
37859 | cat >>confdefs.h <<\_ACEOF | |
37860 | #define wxUSE_SCROLLBAR 1 | |
37861 | _ACEOF | |
37862 | ||
37863 | USES_CONTROLS=1 | |
37864 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
37865 | fi | |
37866 | ||
37867 | if test "$wxUSE_SLIDER" = "yes"; then | |
37868 | cat >>confdefs.h <<\_ACEOF | |
37869 | #define wxUSE_SLIDER 1 | |
37870 | _ACEOF | |
37871 | ||
37872 | USES_CONTROLS=1 | |
37873 | fi | |
37874 | ||
37875 | if test "$wxUSE_SPINBTN" = "yes"; then | |
37876 | cat >>confdefs.h <<\_ACEOF | |
37877 | #define wxUSE_SPINBTN 1 | |
37878 | _ACEOF | |
37879 | ||
37880 | USES_CONTROLS=1 | |
37881 | fi | |
37882 | ||
37883 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
37884 | cat >>confdefs.h <<\_ACEOF | |
37885 | #define wxUSE_SPINCTRL 1 | |
37886 | _ACEOF | |
37887 | ||
37888 | USES_CONTROLS=1 | |
37889 | fi | |
37890 | ||
37891 | if test "$wxUSE_SPLITTER" = "yes"; then | |
37892 | cat >>confdefs.h <<\_ACEOF | |
37893 | #define wxUSE_SPLITTER 1 | |
37894 | _ACEOF | |
37895 | ||
37896 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
37897 | fi | |
37898 | ||
37899 | if test "$wxUSE_STATBMP" = "yes"; then | |
37900 | cat >>confdefs.h <<\_ACEOF | |
37901 | #define wxUSE_STATBMP 1 | |
37902 | _ACEOF | |
37903 | ||
37904 | USES_CONTROLS=1 | |
37905 | fi | |
37906 | ||
37907 | if test "$wxUSE_STATBOX" = "yes"; then | |
37908 | cat >>confdefs.h <<\_ACEOF | |
37909 | #define wxUSE_STATBOX 1 | |
37910 | _ACEOF | |
37911 | ||
37912 | USES_CONTROLS=1 | |
37913 | fi | |
37914 | ||
37915 | if test "$wxUSE_STATTEXT" = "yes"; then | |
37916 | cat >>confdefs.h <<\_ACEOF | |
37917 | #define wxUSE_STATTEXT 1 | |
37918 | _ACEOF | |
37919 | ||
37920 | USES_CONTROLS=1 | |
37921 | fi | |
37922 | ||
37923 | if test "$wxUSE_STATLINE" = "yes"; then | |
37924 | cat >>confdefs.h <<\_ACEOF | |
37925 | #define wxUSE_STATLINE 1 | |
37926 | _ACEOF | |
37927 | ||
37928 | USES_CONTROLS=1 | |
37929 | fi | |
37930 | ||
37931 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
37932 | cat >>confdefs.h <<\_ACEOF |
37933 | #define wxUSE_NATIVE_STATUSBAR 1 | |
37934 | _ACEOF | |
37935 | ||
a848cd7e SC |
37936 | cat >>confdefs.h <<\_ACEOF |
37937 | #define wxUSE_STATUSBAR 1 | |
37938 | _ACEOF | |
37939 | ||
37940 | USES_CONTROLS=1 | |
37941 | ||
37942 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
37943 | fi | |
37944 | ||
37945 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
37946 | cat >>confdefs.h <<\_ACEOF | |
37947 | #define wxUSE_TAB_DIALOG 1 | |
37948 | _ACEOF | |
37949 | ||
a848cd7e SC |
37950 | fi |
37951 | ||
37952 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
37953 | cat >>confdefs.h <<\_ACEOF | |
37954 | #define wxUSE_TEXTCTRL 1 | |
37955 | _ACEOF | |
37956 | ||
37957 | USES_CONTROLS=1 | |
37958 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
37959 | fi | |
37960 | ||
37961 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37962 | if test "$wxUSE_COCOA" = 1 ; then | |
37963 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
37964 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
37965 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
37966 | else |
37967 | if test "$wxUSE_PM" = 1; then | |
37968 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
37969 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
37970 | wxUSE_TOGGLEBTN=no | |
37971 | fi | |
a848cd7e SC |
37972 | fi |
37973 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37974 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
37975 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
37976 | wxUSE_TOGGLEBTN=no | |
37977 | fi | |
37978 | ||
37979 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37980 | cat >>confdefs.h <<\_ACEOF | |
37981 | #define wxUSE_TOGGLEBTN 1 | |
37982 | _ACEOF | |
37983 | ||
37984 | USES_CONTROLS=1 | |
37985 | fi | |
37986 | fi | |
37987 | ||
37988 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
37989 | cat >>confdefs.h <<\_ACEOF | |
37990 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
37991 | _ACEOF | |
37992 | ||
37993 | wxUSE_TOOLBAR="yes" | |
37994 | USES_CONTROLS=1 | |
37995 | fi | |
37996 | ||
37997 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
37998 | cat >>confdefs.h <<\_ACEOF | |
37999 | #define wxUSE_TOOLBAR 1 | |
38000 | _ACEOF | |
38001 | ||
38002 | USES_CONTROLS=1 | |
38003 | ||
38004 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
38005 | wxUSE_TOOLBAR_NATIVE="yes" | |
38006 | fi | |
38007 | ||
38008 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
38009 | cat >>confdefs.h <<\_ACEOF | |
38010 | #define wxUSE_TOOLBAR_NATIVE 1 | |
38011 | _ACEOF | |
38012 | ||
38013 | USES_CONTROLS=1 | |
38014 | fi | |
38015 | ||
38016 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
38017 | fi | |
38018 | ||
38019 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
38020 | if test "$wxUSE_MOTIF" = 1; then | |
38021 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
38022 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
38023 | else | |
38024 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
38025 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
38026 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
38027 | else | |
38028 | cat >>confdefs.h <<\_ACEOF | |
38029 | #define wxUSE_TOOLTIPS 1 | |
38030 | _ACEOF | |
38031 | ||
38032 | fi | |
38033 | fi | |
38034 | fi | |
38035 | ||
38036 | if test "$wxUSE_TREECTRL" = "yes"; then | |
38037 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38038 | cat >>confdefs.h <<\_ACEOF | |
38039 | #define wxUSE_TREECTRL 1 | |
38040 | _ACEOF | |
38041 | ||
38042 | USES_CONTROLS=1 | |
38043 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
38044 | else | |
38045 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
38046 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
38047 | fi | |
38048 | fi | |
38049 | ||
38050 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
38051 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
38052 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
38053 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
38054 | else | |
38055 | if test "$wxUSE_PM" = 1; then | |
38056 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
38057 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
38058 | else | |
38059 | cat >>confdefs.h <<\_ACEOF | |
38060 | #define wxUSE_POPUPWIN 1 | |
38061 | _ACEOF | |
38062 | ||
38063 | ||
38064 | USES_CONTROLS=1 | |
38065 | fi | |
38066 | fi | |
38067 | fi | |
38068 | ||
0dcd06dd | 38069 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
38070 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
38071 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
38072 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
38073 | else | |
38074 | cat >>confdefs.h <<\_ACEOF | |
38075 | #define wxUSE_DIALUP_MANAGER 1 | |
38076 | _ACEOF | |
38077 | ||
38078 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
38079 | fi | |
38080 | fi | |
38081 | ||
a848cd7e SC |
38082 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
38083 | if test "$wxUSE_PM" = 1; then | |
38084 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
38085 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
38086 | else | |
38087 | cat >>confdefs.h <<\_ACEOF | |
38088 | #define wxUSE_TIPWINDOW 1 | |
38089 | _ACEOF | |
38090 | ||
38091 | fi | |
38092 | fi | |
38093 | ||
38094 | if test "$USES_CONTROLS" = 1; then | |
38095 | cat >>confdefs.h <<\_ACEOF | |
38096 | #define wxUSE_CONTROLS 1 | |
38097 | _ACEOF | |
38098 | ||
38099 | fi | |
38100 | ||
38101 | ||
38102 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
38103 | cat >>confdefs.h <<\_ACEOF | |
38104 | #define wxUSE_ACCESSIBILITY 1 | |
38105 | _ACEOF | |
38106 | ||
38107 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
38108 | fi | |
38109 | ||
38110 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
38111 | cat >>confdefs.h <<\_ACEOF | |
38112 | #define wxUSE_DRAGIMAGE 1 | |
38113 | _ACEOF | |
38114 | ||
38115 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
38116 | fi | |
38117 | ||
38118 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
38119 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
38120 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
38121 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
38122 | else | |
38123 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38124 | #define wxUSE_EXCEPTIONS 1 |
38125 | _ACEOF | |
38126 | ||
07bea8f0 VS |
38127 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
38128 | fi | |
a848cd7e SC |
38129 | fi |
38130 | ||
38131 | USE_HTML=0 | |
38132 | if test "$wxUSE_HTML" = "yes"; then | |
38133 | cat >>confdefs.h <<\_ACEOF | |
38134 | #define wxUSE_HTML 1 | |
38135 | _ACEOF | |
38136 | ||
38137 | USE_HTML=1 | |
38138 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
38139 | if test "$wxUSE_MAC" = 1; then |
38140 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
38141 | fi | |
a848cd7e | 38142 | fi |
646b6ec1 | 38143 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 38144 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
38145 | old_CPPFLAGS="$CPPFLAGS" |
38146 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
38147 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
38148 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
38149 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
38150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38151 | else | |
38152 | cat >conftest.$ac_ext <<_ACEOF | |
38153 | /* confdefs.h. */ | |
38154 | _ACEOF | |
38155 | cat confdefs.h >>conftest.$ac_ext | |
38156 | cat >>conftest.$ac_ext <<_ACEOF | |
38157 | /* end confdefs.h. */ | |
38158 | #include <Carbon/Carbon.h> | |
38159 | ||
38160 | #include <WebKit/HIWebView.h> | |
38161 | _ACEOF | |
38162 | rm -f conftest.$ac_objext | |
38163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38164 | (eval $ac_compile) 2>conftest.er1 | |
38165 | ac_status=$? | |
38166 | grep -v '^ *+' conftest.er1 >conftest.err | |
38167 | rm -f conftest.er1 | |
38168 | cat conftest.err >&5 | |
38169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38170 | (exit $ac_status); } && | |
89be85c2 VS |
38171 | { ac_try='test -z "$ac_c_werror_flag" |
38172 | || test ! -s conftest.err' | |
07bea8f0 VS |
38173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38174 | (eval $ac_try) 2>&5 | |
38175 | ac_status=$? | |
38176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38177 | (exit $ac_status); }; } && | |
38178 | { ac_try='test -s conftest.$ac_objext' | |
38179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38180 | (eval $ac_try) 2>&5 | |
38181 | ac_status=$? | |
38182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38183 | (exit $ac_status); }; }; then | |
38184 | ac_cv_header_WebKit_HIWebView_h=yes | |
38185 | else | |
38186 | echo "$as_me: failed program was:" >&5 | |
38187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38188 | ||
38189 | ac_cv_header_WebKit_HIWebView_h=no | |
38190 | fi | |
38191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38192 | fi | |
38193 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
38194 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
38195 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
38196 | ||
38197 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
38198 | #define wxUSE_WEBKIT 1 |
38199 | _ACEOF | |
38200 | ||
07bea8f0 VS |
38201 | WEBKIT_LINK="-framework WebKit" |
38202 | ||
38203 | else | |
38204 | ||
38205 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
38206 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
38207 | wxUSE_WEBKIT=no | |
38208 | ||
646b6ec1 VS |
38209 | fi |
38210 | ||
07bea8f0 VS |
38211 | |
38212 | CPPFLAGS="$old_CPPFLAGS" | |
38213 | elif test "$wxUSE_COCOA" = 1; then | |
38214 | cat >>confdefs.h <<\_ACEOF | |
38215 | #define wxUSE_WEBKIT 1 | |
38216 | _ACEOF | |
38217 | ||
38218 | else | |
38219 | wxUSE_WEBKIT=no | |
38220 | fi | |
38221 | fi | |
38222 | ||
9a8f0513 VS |
38223 | USE_XRC=0 |
38224 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
38225 | if test "$wxUSE_XML" != "yes"; then |
38226 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
38227 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
38228 | wxUSE_XRC=no | |
38229 | else | |
38230 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
38231 | #define wxUSE_XRC 1 |
38232 | _ACEOF | |
38233 | ||
d2ebf0b7 VS |
38234 | USE_XRC=1 |
38235 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
38236 | fi | |
9a8f0513 | 38237 | fi |
07bea8f0 | 38238 | |
a848cd7e SC |
38239 | if test "$wxUSE_MENUS" = "yes"; then |
38240 | cat >>confdefs.h <<\_ACEOF | |
38241 | #define wxUSE_MENUS 1 | |
38242 | _ACEOF | |
38243 | ||
38244 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
38245 | fi | |
38246 | ||
38247 | if test "$wxUSE_METAFILE" = "yes"; then | |
38248 | cat >>confdefs.h <<\_ACEOF | |
38249 | #define wxUSE_METAFILE 1 | |
38250 | _ACEOF | |
38251 | ||
38252 | fi | |
38253 | ||
38254 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
38255 | cat >>confdefs.h <<\_ACEOF | |
38256 | #define wxUSE_MIMETYPE 1 | |
38257 | _ACEOF | |
38258 | ||
38259 | fi | |
38260 | ||
38261 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
38262 | cat >>confdefs.h <<\_ACEOF | |
38263 | #define wxUSE_MINIFRAME 1 | |
38264 | _ACEOF | |
38265 | ||
38266 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
38267 | fi | |
38268 | ||
38269 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
38270 | cat >>confdefs.h <<\_ACEOF | |
38271 | #define wxUSE_SYSTEM_OPTIONS 1 | |
38272 | _ACEOF | |
38273 | ||
38274 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 38275 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
38276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
38277 | fi | |
38278 | fi | |
38279 | ||
38280 | ||
38281 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
38282 | cat >>confdefs.h <<\_ACEOF | |
38283 | #define wxUSE_VALIDATORS 1 | |
38284 | _ACEOF | |
38285 | ||
38286 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
38287 | fi | |
38288 | ||
38289 | if test "$wxUSE_PALETTE" = "yes" ; then | |
38290 | cat >>confdefs.h <<\_ACEOF | |
38291 | #define wxUSE_PALETTE 1 | |
38292 | _ACEOF | |
38293 | ||
38294 | fi | |
38295 | ||
38296 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
38297 | LIBS=" -lunicows $LIBS" | |
38298 | fi | |
38299 | ||
38300 | ||
38301 | if test "$wxUSE_IMAGE" = "yes" ; then | |
38302 | cat >>confdefs.h <<\_ACEOF | |
38303 | #define wxUSE_IMAGE 1 | |
38304 | _ACEOF | |
38305 | ||
38306 | ||
38307 | if test "$wxUSE_GIF" = "yes" ; then | |
38308 | cat >>confdefs.h <<\_ACEOF | |
38309 | #define wxUSE_GIF 1 | |
38310 | _ACEOF | |
38311 | ||
38312 | fi | |
38313 | ||
38314 | if test "$wxUSE_PCX" = "yes" ; then | |
38315 | cat >>confdefs.h <<\_ACEOF | |
38316 | #define wxUSE_PCX 1 | |
38317 | _ACEOF | |
38318 | ||
38319 | fi | |
38320 | ||
38321 | if test "$wxUSE_IFF" = "yes" ; then | |
38322 | cat >>confdefs.h <<\_ACEOF | |
38323 | #define wxUSE_IFF 1 | |
38324 | _ACEOF | |
38325 | ||
38326 | fi | |
38327 | ||
38328 | if test "$wxUSE_PNM" = "yes" ; then | |
38329 | cat >>confdefs.h <<\_ACEOF | |
38330 | #define wxUSE_PNM 1 | |
38331 | _ACEOF | |
38332 | ||
38333 | fi | |
38334 | ||
38335 | if test "$wxUSE_XPM" = "yes" ; then | |
38336 | cat >>confdefs.h <<\_ACEOF | |
38337 | #define wxUSE_XPM 1 | |
38338 | _ACEOF | |
38339 | ||
38340 | fi | |
38341 | ||
38342 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
38343 | cat >>confdefs.h <<\_ACEOF | |
38344 | #define wxUSE_ICO_CUR 1 | |
38345 | _ACEOF | |
38346 | ||
38347 | fi | |
38348 | fi | |
38349 | ||
38350 | ||
38351 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
38352 | cat >>confdefs.h <<\_ACEOF | |
38353 | #define wxUSE_CHOICEDLG 1 | |
38354 | _ACEOF | |
38355 | ||
38356 | fi | |
38357 | ||
38358 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
38359 | cat >>confdefs.h <<\_ACEOF | |
38360 | #define wxUSE_COLOURDLG 1 | |
38361 | _ACEOF | |
38362 | ||
38363 | fi | |
38364 | ||
38365 | if test "$wxUSE_FILEDLG" = "yes"; then | |
38366 | cat >>confdefs.h <<\_ACEOF | |
38367 | #define wxUSE_FILEDLG 1 | |
38368 | _ACEOF | |
38369 | ||
38370 | fi | |
38371 | ||
38372 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
38373 | cat >>confdefs.h <<\_ACEOF | |
38374 | #define wxUSE_FINDREPLDLG 1 | |
38375 | _ACEOF | |
38376 | ||
38377 | fi | |
38378 | ||
38379 | if test "$wxUSE_FONTDLG" = "yes"; then | |
38380 | cat >>confdefs.h <<\_ACEOF | |
38381 | #define wxUSE_FONTDLG 1 | |
38382 | _ACEOF | |
38383 | ||
38384 | fi | |
38385 | ||
38386 | if test "$wxUSE_DIRDLG" = "yes"; then | |
38387 | if test "$wxUSE_TREECTRL" != "yes"; then | |
38388 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
38389 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
38390 | else | |
38391 | cat >>confdefs.h <<\_ACEOF | |
38392 | #define wxUSE_DIRDLG 1 | |
38393 | _ACEOF | |
38394 | ||
38395 | fi | |
38396 | fi | |
38397 | ||
38398 | if test "$wxUSE_MSGDLG" = "yes"; then | |
38399 | cat >>confdefs.h <<\_ACEOF | |
38400 | #define wxUSE_MSGDLG 1 | |
38401 | _ACEOF | |
38402 | ||
38403 | fi | |
38404 | ||
38405 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
38406 | cat >>confdefs.h <<\_ACEOF | |
38407 | #define wxUSE_NUMBERDLG 1 | |
38408 | _ACEOF | |
38409 | ||
38410 | fi | |
38411 | ||
38412 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
38413 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38414 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
38415 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
38416 | else | |
38417 | cat >>confdefs.h <<\_ACEOF | |
38418 | #define wxUSE_PROGRESSDLG 1 | |
38419 | _ACEOF | |
38420 | ||
38421 | fi | |
38422 | fi | |
38423 | ||
38424 | if test "$wxUSE_SPLASH" = "yes"; then | |
38425 | cat >>confdefs.h <<\_ACEOF | |
38426 | #define wxUSE_SPLASH 1 | |
38427 | _ACEOF | |
38428 | ||
2057db16 | 38429 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
38430 | fi |
38431 | ||
38432 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
38433 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38434 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
38435 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
38436 | else | |
38437 | cat >>confdefs.h <<\_ACEOF | |
38438 | #define wxUSE_STARTUP_TIPS 1 | |
38439 | _ACEOF | |
38440 | ||
38441 | fi | |
38442 | fi | |
38443 | ||
38444 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
38445 | cat >>confdefs.h <<\_ACEOF | |
38446 | #define wxUSE_TEXTDLG 1 | |
38447 | _ACEOF | |
38448 | ||
38449 | fi | |
38450 | ||
38451 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
38452 | cat >>confdefs.h <<\_ACEOF | |
38453 | #define wxUSE_WIZARDDLG 1 | |
38454 | _ACEOF | |
38455 | ||
38456 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
38457 | fi | |
38458 | ||
38459 | ||
ce756cb0 RN |
38460 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
38461 | if test "$wxUSE_MSW" = 1; then | |
38462 | wxUSE_DIRECTSHOW="yes" | |
38463 | ||
38464 | for ac_header in dshow.h | |
38465 | do | |
38466 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38467 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38471 | else | |
38472 | cat >conftest.$ac_ext <<_ACEOF | |
38473 | /* confdefs.h. */ | |
38474 | _ACEOF | |
38475 | cat confdefs.h >>conftest.$ac_ext | |
38476 | cat >>conftest.$ac_ext <<_ACEOF | |
38477 | /* end confdefs.h. */ | |
38478 | #include <windows.h> | |
38479 | ||
38480 | #include <$ac_header> | |
38481 | _ACEOF | |
38482 | rm -f conftest.$ac_objext | |
38483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38484 | (eval $ac_compile) 2>conftest.er1 | |
38485 | ac_status=$? | |
38486 | grep -v '^ *+' conftest.er1 >conftest.err | |
38487 | rm -f conftest.er1 | |
38488 | cat conftest.err >&5 | |
38489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38490 | (exit $ac_status); } && | |
38491 | { ac_try='test -z "$ac_c_werror_flag" | |
38492 | || test ! -s conftest.err' | |
38493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38494 | (eval $ac_try) 2>&5 | |
38495 | ac_status=$? | |
38496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38497 | (exit $ac_status); }; } && | |
38498 | { ac_try='test -s conftest.$ac_objext' | |
38499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38500 | (eval $ac_try) 2>&5 | |
38501 | ac_status=$? | |
38502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38503 | (exit $ac_status); }; }; then | |
38504 | eval "$as_ac_Header=yes" | |
38505 | else | |
38506 | echo "$as_me: failed program was:" >&5 | |
38507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38508 | ||
38509 | eval "$as_ac_Header=no" | |
38510 | fi | |
38511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38512 | fi | |
38513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38515 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38516 | cat >>confdefs.h <<_ACEOF | |
38517 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38518 | _ACEOF | |
38519 | ||
38520 | else | |
38521 | ||
38522 | wxUSE_DIRECTSHOW="no" | |
38523 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
38524 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} | |
38525 | ||
38526 | fi | |
38527 | ||
38528 | done | |
38529 | ||
38530 | ||
38531 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
38532 | cat >>confdefs.h <<\_ACEOF | |
38533 | #define wxUSE_DIRECTSHOW 1 | |
38534 | _ACEOF | |
38535 | ||
38536 | LIBS="$LIBS -lstrmiids" | |
38537 | fi | |
38538 | fi | |
38539 | ||
38540 | if test "$wxUSE_GTK" = 1; then | |
38541 | wxUSE_GSTREAMER="yes" | |
38542 | ||
ce756cb0 | 38543 | |
dae87f93 | 38544 | succeeded=no |
ce756cb0 | 38545 | |
dae87f93 RN |
38546 | if test -z "$PKG_CONFIG"; then |
38547 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
38548 | set dummy pkg-config; ac_word=$2 | |
38549 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38551 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
38552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38553 | else | |
38554 | case $PKG_CONFIG in | |
38555 | [\\/]* | ?:[\\/]*) | |
38556 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
38557 | ;; | |
38558 | *) | |
38559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38560 | for as_dir in $PATH | |
38561 | do | |
38562 | IFS=$as_save_IFS | |
38563 | test -z "$as_dir" && as_dir=. | |
38564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38565 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38566 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38567 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38568 | break 2 | |
38569 | fi | |
38570 | done | |
38571 | done | |
38572 | ||
38573 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
38574 | ;; | |
38575 | esac | |
38576 | fi | |
38577 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
38578 | ||
38579 | if test -n "$PKG_CONFIG"; then | |
38580 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
38581 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
38582 | else | |
38583 | echo "$as_me:$LINENO: result: no" >&5 | |
38584 | echo "${ECHO_T}no" >&6 | |
38585 | fi | |
38586 | ||
38587 | fi | |
38588 | ||
38589 | if test "$PKG_CONFIG" = "no" ; then | |
38590 | echo "*** The pkg-config script could not be found. Make sure it is" | |
38591 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
38592 | echo "*** to the full path to pkg-config." | |
38593 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
38594 | else | |
38595 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
38596 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
38597 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
38598 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
38599 | ||
38600 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
38601 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 38602 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 38603 | succeeded=yes |
ce756cb0 | 38604 | |
dae87f93 RN |
38605 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
38606 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
38607 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
38608 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
38609 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
38610 | ||
38611 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
38612 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
38613 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
38614 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
38615 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
38616 | else | |
38617 | GSTREAMER_CFLAGS="" | |
38618 | GSTREAMER_LIBS="" | |
38619 | ## If we have a custom action on failure, don't print errors, but | |
38620 | ## do set a variable so people can do so. | |
38621 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 38622 | |
dae87f93 RN |
38623 | fi |
38624 | ||
38625 | ||
38626 | ||
38627 | else | |
38628 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
38629 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
38630 | fi | |
38631 | fi | |
38632 | ||
38633 | if test $succeeded = yes; then | |
38634 | ||
38635 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
38636 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 38637 | |
ce756cb0 | 38638 | else |
dae87f93 RN |
38639 | |
38640 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
38641 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
38642 | wxUSE_GSTREAMER="no" | |
38643 | ||
38644 | fi | |
38645 | ||
38646 | ||
38647 | ||
38648 | ||
38649 | ||
38650 | if test "x$GST_INSPECT" == "x"; then | |
38651 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
38652 | set dummy gst-inspect; ac_word=$2 | |
38653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38655 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
38656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38657 | else | |
38658 | if test -n "$GST_INSPECT"; then | |
38659 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
38660 | else | |
38661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38662 | for as_dir in $PATH | |
38663 | do | |
38664 | IFS=$as_save_IFS | |
38665 | test -z "$as_dir" && as_dir=. | |
38666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38668 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
38669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38670 | break 2 | |
ce756cb0 | 38671 | fi |
dae87f93 RN |
38672 | done |
38673 | done | |
38674 | ||
38675 | fi | |
38676 | fi | |
38677 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
38678 | if test -n "$GST_INSPECT"; then | |
38679 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
38680 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
38681 | else | |
38682 | echo "$as_me:$LINENO: result: no" >&5 | |
38683 | echo "${ECHO_T}no" >&6 | |
38684 | fi | |
38685 | ||
38686 | fi | |
38687 | ||
38688 | if test "x$GST_INSPECT" != "x"; then | |
38689 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
38690 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
38691 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
38692 | echo "$as_me:$LINENO: result: found." >&5 | |
38693 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 38694 | |
ce756cb0 | 38695 | else |
dae87f93 RN |
38696 | echo "$as_me:$LINENO: result: not found." >&5 |
38697 | echo "${ECHO_T}not found." >&6 | |
38698 | ||
38699 | wxUSE_GSTREAMER="no" | |
38700 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
38701 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
38702 | ||
38703 | fi | |
38704 | fi | |
38705 | ||
38706 | ||
38707 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
38708 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
38709 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
38710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38711 | else | |
38712 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
38713 | /* confdefs.h. */ |
38714 | _ACEOF | |
38715 | cat confdefs.h >>conftest.$ac_ext | |
38716 | cat >>conftest.$ac_ext <<_ACEOF | |
38717 | /* end confdefs.h. */ | |
dae87f93 | 38718 | #include <gst/gst.h> |
ce756cb0 | 38719 | |
dae87f93 | 38720 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
38721 | _ACEOF |
38722 | rm -f conftest.$ac_objext | |
38723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38724 | (eval $ac_compile) 2>conftest.er1 | |
38725 | ac_status=$? | |
38726 | grep -v '^ *+' conftest.er1 >conftest.err | |
38727 | rm -f conftest.er1 | |
38728 | cat conftest.err >&5 | |
38729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38730 | (exit $ac_status); } && | |
38731 | { ac_try='test -z "$ac_c_werror_flag" | |
38732 | || test ! -s conftest.err' | |
38733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38734 | (eval $ac_try) 2>&5 | |
38735 | ac_status=$? | |
38736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38737 | (exit $ac_status); }; } && | |
38738 | { ac_try='test -s conftest.$ac_objext' | |
38739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38740 | (eval $ac_try) 2>&5 | |
38741 | ac_status=$? | |
38742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38743 | (exit $ac_status); }; }; then | |
dae87f93 | 38744 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
38745 | else |
38746 | echo "$as_me: failed program was:" >&5 | |
38747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38748 | ||
dae87f93 | 38749 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
38750 | fi |
38751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
38752 | fi |
38753 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
38754 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
38755 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
38756 | : | |
38757 | else | |
ce756cb0 | 38758 | |
dae87f93 RN |
38759 | wxUSE_GSTREAMER="no" |
38760 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
38761 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 38762 | |
dae87f93 | 38763 | fi |
ce756cb0 | 38764 | |
dae87f93 RN |
38765 | |
38766 | ||
38767 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
38768 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
38769 | ||
38770 | ac_find_libraries= | |
38771 | for ac_dir in $SEARCH_LIB /usr/lib; | |
38772 | do | |
38773 | for ac_extension in a so sl dylib; do | |
38774 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then | |
38775 | ac_find_libraries=$ac_dir | |
38776 | break 2 | |
38777 | fi | |
38778 | done | |
38779 | done | |
38780 | ||
ce756cb0 | 38781 | |
dae87f93 RN |
38782 | if test "$ac_find_libraries" = "" ; then |
38783 | echo "$as_me:$LINENO: result: no" >&5 | |
38784 | echo "${ECHO_T}no" >&6 | |
38785 | wxUSE_GSTREAMER="no" | |
38786 | else | |
38787 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 38788 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 38789 | fi |
ce756cb0 | 38790 | |
dae87f93 RN |
38791 | if test "$wxUSE_GSTREAMER" = "yes"; then |
38792 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
38793 | #define wxUSE_GSTREAMER 1 |
38794 | _ACEOF | |
38795 | ||
dae87f93 RN |
38796 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
38797 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
38798 | fi |
38799 | fi | |
38800 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
38801 | cat >>confdefs.h <<\_ACEOF | |
38802 | #define wxUSE_MEDIACTRL 1 | |
38803 | _ACEOF | |
38804 | ||
38805 | fi | |
38806 | ||
38807 | ||
a848cd7e SC |
38808 | if test "$cross_compiling" = "yes"; then |
38809 | OSINFO="\"$host\"" | |
38810 | else | |
38811 | OSINFO=`uname -s -r -m` | |
38812 | OSINFO="\"$OSINFO\"" | |
38813 | fi | |
38814 | ||
38815 | cat >>confdefs.h <<_ACEOF | |
38816 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
38817 | _ACEOF | |
38818 | ||
38819 | ||
38820 | ||
38821 | if test "x$prefix" != "xNONE"; then | |
38822 | wxPREFIX=$prefix | |
38823 | else | |
38824 | wxPREFIX=$ac_default_prefix | |
38825 | fi | |
38826 | ||
38827 | cat >>confdefs.h <<_ACEOF | |
38828 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
38829 | _ACEOF | |
38830 | ||
38831 | ||
a848cd7e SC |
38832 | |
38833 | ||
38834 | CORE_BASE_LIBS="net base" | |
38835 | CORE_GUI_LIBS="adv core" | |
38836 | ||
38837 | if test "$wxUSE_XML" = "yes" ; then | |
38838 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
38839 | fi | |
38840 | if test "$wxUSE_ODBC" != "no" ; then | |
38841 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
38842 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
38843 | fi | |
38844 | if test "$wxUSE_HTML" = "yes" ; then | |
38845 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
38846 | fi | |
9a8f0513 VS |
38847 | if test "$wxUSE_XRC" = "yes" ; then |
38848 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
38849 | fi | |
a848cd7e SC |
38850 | |
38851 | if test "$wxUSE_GUI" != "yes"; then | |
38852 | CORE_GUI_LIBS="" | |
38853 | fi | |
38854 | ||
38855 | ||
38856 | ||
38857 | ||
38858 | ||
38859 | ||
38860 | ||
38861 | ||
38862 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 38863 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
38864 | if test "$USE_DARWIN" = 1; then |
38865 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
38866 | else | |
38867 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
38868 | fi | |
07bea8f0 | 38869 | fi |
5dcf30a0 | 38870 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
38871 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
38872 | else | |
38873 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 38874 | fi |
a848cd7e SC |
38875 | fi |
38876 | if test "$wxUSE_COCOA" = 1 ; then | |
f7e98dee | 38877 | LDFLAGS="$LDFLAGS -framework Cocoa" |
4fc81cbc RN |
38878 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
38879 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
38880 | fi | |
a848cd7e SC |
38881 | fi |
38882 | ||
38883 | ||
38884 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
38885 | ||
38886 | have_cos=0 | |
38887 | have_floor=0 | |
38888 | ||
38889 | for ac_func in cos | |
38890 | do | |
38891 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38892 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38893 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38894 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38896 | else | |
38897 | cat >conftest.$ac_ext <<_ACEOF | |
38898 | /* confdefs.h. */ | |
38899 | _ACEOF | |
38900 | cat confdefs.h >>conftest.$ac_ext | |
38901 | cat >>conftest.$ac_ext <<_ACEOF | |
38902 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38903 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38904 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38905 | #define $ac_func innocuous_$ac_func | |
38906 | ||
a848cd7e SC |
38907 | /* System header to define __stub macros and hopefully few prototypes, |
38908 | which can conflict with char $ac_func (); below. | |
38909 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38910 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38911 | |
a848cd7e SC |
38912 | #ifdef __STDC__ |
38913 | # include <limits.h> | |
38914 | #else | |
38915 | # include <assert.h> | |
38916 | #endif | |
ac1cb8d3 VS |
38917 | |
38918 | #undef $ac_func | |
38919 | ||
a848cd7e SC |
38920 | /* Override any gcc2 internal prototype to avoid an error. */ |
38921 | #ifdef __cplusplus | |
38922 | extern "C" | |
38923 | { | |
38924 | #endif | |
38925 | /* We use char because int might match the return type of a gcc2 | |
38926 | builtin and then its argument prototype would still apply. */ | |
38927 | char $ac_func (); | |
38928 | /* The GNU C library defines this for functions which it implements | |
38929 | to always fail with ENOSYS. Some functions are actually named | |
38930 | something starting with __ and the normal name is an alias. */ | |
38931 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38932 | choke me | |
38933 | #else | |
38934 | char (*f) () = $ac_func; | |
38935 | #endif | |
38936 | #ifdef __cplusplus | |
38937 | } | |
38938 | #endif | |
38939 | ||
38940 | int | |
38941 | main () | |
38942 | { | |
38943 | return f != $ac_func; | |
38944 | ; | |
38945 | return 0; | |
38946 | } | |
38947 | _ACEOF | |
38948 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38950 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38951 | ac_status=$? |
ac1cb8d3 VS |
38952 | grep -v '^ *+' conftest.er1 >conftest.err |
38953 | rm -f conftest.er1 | |
38954 | cat conftest.err >&5 | |
a848cd7e SC |
38955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38956 | (exit $ac_status); } && | |
89be85c2 VS |
38957 | { ac_try='test -z "$ac_c_werror_flag" |
38958 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38960 | (eval $ac_try) 2>&5 | |
38961 | ac_status=$? | |
38962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38963 | (exit $ac_status); }; } && | |
38964 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38966 | (eval $ac_try) 2>&5 | |
38967 | ac_status=$? | |
38968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38969 | (exit $ac_status); }; }; then | |
38970 | eval "$as_ac_var=yes" | |
38971 | else | |
38972 | echo "$as_me: failed program was:" >&5 | |
38973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38974 | ||
38975 | eval "$as_ac_var=no" | |
38976 | fi | |
ac1cb8d3 VS |
38977 | rm -f conftest.err conftest.$ac_objext \ |
38978 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38979 | fi |
38980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38981 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38982 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38983 | cat >>confdefs.h <<_ACEOF | |
38984 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38985 | _ACEOF | |
38986 | have_cos=1 | |
38987 | fi | |
38988 | done | |
38989 | ||
38990 | ||
38991 | for ac_func in floor | |
38992 | do | |
38993 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38994 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38995 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38996 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38998 | else | |
38999 | cat >conftest.$ac_ext <<_ACEOF | |
39000 | /* confdefs.h. */ | |
39001 | _ACEOF | |
39002 | cat confdefs.h >>conftest.$ac_ext | |
39003 | cat >>conftest.$ac_ext <<_ACEOF | |
39004 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39005 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39006 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39007 | #define $ac_func innocuous_$ac_func | |
39008 | ||
a848cd7e SC |
39009 | /* System header to define __stub macros and hopefully few prototypes, |
39010 | which can conflict with char $ac_func (); below. | |
39011 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39012 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39013 | |
a848cd7e SC |
39014 | #ifdef __STDC__ |
39015 | # include <limits.h> | |
39016 | #else | |
39017 | # include <assert.h> | |
39018 | #endif | |
ac1cb8d3 VS |
39019 | |
39020 | #undef $ac_func | |
39021 | ||
a848cd7e SC |
39022 | /* Override any gcc2 internal prototype to avoid an error. */ |
39023 | #ifdef __cplusplus | |
39024 | extern "C" | |
39025 | { | |
39026 | #endif | |
39027 | /* We use char because int might match the return type of a gcc2 | |
39028 | builtin and then its argument prototype would still apply. */ | |
39029 | char $ac_func (); | |
39030 | /* The GNU C library defines this for functions which it implements | |
39031 | to always fail with ENOSYS. Some functions are actually named | |
39032 | something starting with __ and the normal name is an alias. */ | |
39033 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39034 | choke me | |
39035 | #else | |
39036 | char (*f) () = $ac_func; | |
39037 | #endif | |
39038 | #ifdef __cplusplus | |
39039 | } | |
39040 | #endif | |
39041 | ||
39042 | int | |
39043 | main () | |
39044 | { | |
39045 | return f != $ac_func; | |
39046 | ; | |
39047 | return 0; | |
39048 | } | |
39049 | _ACEOF | |
39050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39052 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39053 | ac_status=$? |
ac1cb8d3 VS |
39054 | grep -v '^ *+' conftest.er1 >conftest.err |
39055 | rm -f conftest.er1 | |
39056 | cat conftest.err >&5 | |
a848cd7e SC |
39057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39058 | (exit $ac_status); } && | |
89be85c2 VS |
39059 | { ac_try='test -z "$ac_c_werror_flag" |
39060 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39062 | (eval $ac_try) 2>&5 | |
39063 | ac_status=$? | |
39064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39065 | (exit $ac_status); }; } && | |
39066 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39068 | (eval $ac_try) 2>&5 | |
39069 | ac_status=$? | |
39070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39071 | (exit $ac_status); }; }; then | |
39072 | eval "$as_ac_var=yes" | |
39073 | else | |
39074 | echo "$as_me: failed program was:" >&5 | |
39075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39076 | ||
39077 | eval "$as_ac_var=no" | |
39078 | fi | |
ac1cb8d3 VS |
39079 | rm -f conftest.err conftest.$ac_objext \ |
39080 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39081 | fi |
39082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39083 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39084 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39085 | cat >>confdefs.h <<_ACEOF | |
39086 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39087 | _ACEOF | |
39088 | have_floor=1 | |
39089 | fi | |
39090 | done | |
39091 | ||
39092 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
39093 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
39094 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
39095 | echo "$as_me:$LINENO: result: yes" >&5 | |
39096 | echo "${ECHO_T}yes" >&6 | |
39097 | else | |
39098 | echo "$as_me:$LINENO: result: no" >&5 | |
39099 | echo "${ECHO_T}no" >&6 | |
39100 | LIBS="$LIBS -lm" | |
39101 | # use different functions to avoid configure caching | |
39102 | have_sin=0 | |
39103 | have_ceil=0 | |
39104 | ||
39105 | for ac_func in sin | |
39106 | do | |
39107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39108 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39110 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39112 | else | |
39113 | cat >conftest.$ac_ext <<_ACEOF | |
39114 | /* confdefs.h. */ | |
39115 | _ACEOF | |
39116 | cat confdefs.h >>conftest.$ac_ext | |
39117 | cat >>conftest.$ac_ext <<_ACEOF | |
39118 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39119 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39121 | #define $ac_func innocuous_$ac_func | |
39122 | ||
a848cd7e SC |
39123 | /* System header to define __stub macros and hopefully few prototypes, |
39124 | which can conflict with char $ac_func (); below. | |
39125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39126 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39127 | |
a848cd7e SC |
39128 | #ifdef __STDC__ |
39129 | # include <limits.h> | |
39130 | #else | |
39131 | # include <assert.h> | |
39132 | #endif | |
ac1cb8d3 VS |
39133 | |
39134 | #undef $ac_func | |
39135 | ||
a848cd7e SC |
39136 | /* Override any gcc2 internal prototype to avoid an error. */ |
39137 | #ifdef __cplusplus | |
39138 | extern "C" | |
39139 | { | |
39140 | #endif | |
39141 | /* We use char because int might match the return type of a gcc2 | |
39142 | builtin and then its argument prototype would still apply. */ | |
39143 | char $ac_func (); | |
39144 | /* The GNU C library defines this for functions which it implements | |
39145 | to always fail with ENOSYS. Some functions are actually named | |
39146 | something starting with __ and the normal name is an alias. */ | |
39147 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39148 | choke me | |
39149 | #else | |
39150 | char (*f) () = $ac_func; | |
39151 | #endif | |
39152 | #ifdef __cplusplus | |
39153 | } | |
39154 | #endif | |
39155 | ||
39156 | int | |
39157 | main () | |
39158 | { | |
39159 | return f != $ac_func; | |
39160 | ; | |
39161 | return 0; | |
39162 | } | |
39163 | _ACEOF | |
39164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39166 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39167 | ac_status=$? |
ac1cb8d3 VS |
39168 | grep -v '^ *+' conftest.er1 >conftest.err |
39169 | rm -f conftest.er1 | |
39170 | cat conftest.err >&5 | |
a848cd7e SC |
39171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39172 | (exit $ac_status); } && | |
89be85c2 VS |
39173 | { ac_try='test -z "$ac_c_werror_flag" |
39174 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39176 | (eval $ac_try) 2>&5 | |
39177 | ac_status=$? | |
39178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39179 | (exit $ac_status); }; } && | |
39180 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39182 | (eval $ac_try) 2>&5 | |
39183 | ac_status=$? | |
39184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39185 | (exit $ac_status); }; }; then | |
39186 | eval "$as_ac_var=yes" | |
39187 | else | |
39188 | echo "$as_me: failed program was:" >&5 | |
39189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39190 | ||
39191 | eval "$as_ac_var=no" | |
39192 | fi | |
ac1cb8d3 VS |
39193 | rm -f conftest.err conftest.$ac_objext \ |
39194 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39195 | fi |
39196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39197 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39198 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39199 | cat >>confdefs.h <<_ACEOF | |
39200 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39201 | _ACEOF | |
39202 | have_sin=1 | |
39203 | fi | |
39204 | done | |
39205 | ||
39206 | ||
39207 | for ac_func in ceil | |
39208 | do | |
39209 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39210 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39211 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39212 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39214 | else | |
39215 | cat >conftest.$ac_ext <<_ACEOF | |
39216 | /* confdefs.h. */ | |
39217 | _ACEOF | |
39218 | cat confdefs.h >>conftest.$ac_ext | |
39219 | cat >>conftest.$ac_ext <<_ACEOF | |
39220 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39221 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39222 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39223 | #define $ac_func innocuous_$ac_func | |
39224 | ||
a848cd7e SC |
39225 | /* System header to define __stub macros and hopefully few prototypes, |
39226 | which can conflict with char $ac_func (); below. | |
39227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39228 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39229 | |
a848cd7e SC |
39230 | #ifdef __STDC__ |
39231 | # include <limits.h> | |
39232 | #else | |
39233 | # include <assert.h> | |
39234 | #endif | |
ac1cb8d3 VS |
39235 | |
39236 | #undef $ac_func | |
39237 | ||
a848cd7e SC |
39238 | /* Override any gcc2 internal prototype to avoid an error. */ |
39239 | #ifdef __cplusplus | |
39240 | extern "C" | |
39241 | { | |
39242 | #endif | |
39243 | /* We use char because int might match the return type of a gcc2 | |
39244 | builtin and then its argument prototype would still apply. */ | |
39245 | char $ac_func (); | |
39246 | /* The GNU C library defines this for functions which it implements | |
39247 | to always fail with ENOSYS. Some functions are actually named | |
39248 | something starting with __ and the normal name is an alias. */ | |
39249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39250 | choke me | |
39251 | #else | |
39252 | char (*f) () = $ac_func; | |
39253 | #endif | |
39254 | #ifdef __cplusplus | |
39255 | } | |
39256 | #endif | |
39257 | ||
39258 | int | |
39259 | main () | |
39260 | { | |
39261 | return f != $ac_func; | |
39262 | ; | |
39263 | return 0; | |
39264 | } | |
39265 | _ACEOF | |
39266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39268 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39269 | ac_status=$? |
ac1cb8d3 VS |
39270 | grep -v '^ *+' conftest.er1 >conftest.err |
39271 | rm -f conftest.er1 | |
39272 | cat conftest.err >&5 | |
a848cd7e SC |
39273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39274 | (exit $ac_status); } && | |
89be85c2 VS |
39275 | { ac_try='test -z "$ac_c_werror_flag" |
39276 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39278 | (eval $ac_try) 2>&5 | |
39279 | ac_status=$? | |
39280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39281 | (exit $ac_status); }; } && | |
39282 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39284 | (eval $ac_try) 2>&5 | |
39285 | ac_status=$? | |
39286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39287 | (exit $ac_status); }; }; then | |
39288 | eval "$as_ac_var=yes" | |
39289 | else | |
39290 | echo "$as_me: failed program was:" >&5 | |
39291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39292 | ||
39293 | eval "$as_ac_var=no" | |
39294 | fi | |
ac1cb8d3 VS |
39295 | rm -f conftest.err conftest.$ac_objext \ |
39296 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39297 | fi |
39298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39299 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39300 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39301 | cat >>confdefs.h <<_ACEOF | |
39302 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39303 | _ACEOF | |
39304 | have_ceil=1 | |
39305 | fi | |
39306 | done | |
39307 | ||
39308 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
39309 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
39310 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
39311 | echo "$as_me:$LINENO: result: yes" >&5 | |
39312 | echo "${ECHO_T}yes" >&6 | |
39313 | else | |
39314 | echo "$as_me:$LINENO: result: no" >&5 | |
39315 | echo "${ECHO_T}no" >&6 | |
39316 | # not sure we should warn the user, crash, etc. | |
39317 | fi | |
39318 | fi | |
39319 | ||
39320 | if test "$wxUSE_GUI" = "yes"; then | |
39321 | ||
39322 | ||
39323 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
39324 | drawing dynamic erase event exec font image \ | |
39325 | minimal propsize rotate shaped widgets render" | |
39326 | ||
39327 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
39328 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
39329 | fi | |
39330 | else | |
39331 | SAMPLES_SUBDIRS="console" | |
39332 | fi | |
39333 | ||
39334 | ||
ceec2216 | 39335 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
39336 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
39337 | ||
39338 | if test "$GXX" = yes ; then | |
5294a27e VZ |
39339 | CWARNINGS="-Wall" |
39340 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
39341 | fi |
39342 | ||
39343 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
39344 | ||
0c3c69fc | 39345 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 39346 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 39347 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 39348 | |
95986553 DE |
39349 | if test "x$MWCC" = "xyes"; then |
39350 | ||
39351 | CC="$CC -cwd source -I-" | |
39352 | CXX="$CXX -cwd source -I-" | |
39353 | fi | |
39354 | ||
a848cd7e | 39355 | |
0c3c69fc | 39356 | LIBS=`echo $LIBS` |
a848cd7e SC |
39357 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
39358 | EXTRALIBS_XML="$EXPAT_LINK" | |
39359 | EXTRALIBS_HTML="$MSPACK_LINK" | |
39360 | EXTRALIBS_ODBC="$ODBC_LINK" | |
39361 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 39362 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
39363 | fi |
39364 | if test "$wxUSE_OPENGL" = "yes"; then | |
39365 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
39366 | fi | |
39367 | ||
39368 | LDFLAGS="$LDFLAGS $PROFILE" | |
39369 | ||
39370 | if test "$wxUSE_GTK" = 1; then | |
39371 | WXCONFIG_INCLUDE= | |
39372 | else | |
39373 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
39374 | fi | |
39375 | ||
39376 | WXCONFIG_EXTRALIBS="$LIBS" | |
39377 | ||
39378 | if test "$wxUSE_REGEX" = "builtin" ; then | |
39379 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
39380 | fi | |
39381 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
39382 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
39383 | fi | |
39384 | if test "$wxUSE_ODBC" = "builtin" ; then | |
39385 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
39386 | fi | |
39387 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
39388 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
39389 | fi | |
39390 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
39391 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
39392 | fi | |
39393 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
39394 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
39395 | fi | |
39396 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
39397 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
39398 | fi | |
39399 | if test "$wxUSE_ODBC" = "builtin" ; then | |
39400 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
39401 | fi | |
39402 | ||
39403 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 39404 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
39405 | done |
39406 | ||
39407 | ||
39408 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
39409 | WXUNIV=1 | |
39410 | else | |
39411 | WXUNIV=0 | |
39412 | fi | |
39413 | ||
39414 | ||
39415 | ||
39416 | ||
39417 | ||
39418 | ||
39419 | ||
39420 | ||
39421 | ||
39422 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
39423 | MONOLITHIC=1 | |
39424 | else | |
39425 | MONOLITHIC=0 | |
39426 | fi | |
39427 | ||
39428 | if test $wxUSE_PLUGINS = "yes" ; then | |
39429 | USE_PLUGINS=1 | |
39430 | else | |
39431 | USE_PLUGINS=0 | |
39432 | fi | |
39433 | ||
39434 | if test $wxUSE_ODBC != "no" ; then | |
39435 | USE_ODBC=1 | |
39436 | else | |
39437 | USE_ODBC=0 | |
39438 | fi | |
39439 | ||
39440 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
39441 | OFFICIAL_BUILD=1 | |
39442 | else | |
39443 | OFFICIAL_BUILD=0 | |
39444 | fi | |
39445 | ||
39446 | ||
39447 | ||
39448 | ||
39449 | ||
39450 | ||
39451 | ||
39452 | ||
39453 | ||
39454 | ||
39455 | ||
39456 | ||
39457 | ||
39458 | ||
39459 | ||
39460 | ||
39461 | ||
39462 | ||
39463 | ||
ceec2216 | 39464 | |
d1c38808 | 39465 | |
a848cd7e SC |
39466 | |
39467 | ||
39468 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
39469 | ||
39470 | ||
39471 | ||
39472 | ||
39473 | ||
39474 | ||
39475 | ||
39476 | ||
4d4ff94c VZ |
39477 | case "$TOOLKIT" in |
39478 | GTK) | |
39479 | TOOLKIT_USER="GTK+" | |
39480 | if test "$WXGTK20" = 1; then | |
39481 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
39482 | fi | |
9a8f0513 | 39483 | ;; |
4d4ff94c VZ |
39484 | |
39485 | *) | |
39486 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 39487 | ;; |
4d4ff94c | 39488 | esac |
a848cd7e | 39489 | |
9a8f0513 | 39490 | |
1e9e8aba DE |
39491 | |
39492 | ||
a848cd7e SC |
39493 | if test "x$BAKEFILE_HOST" = "x"; then |
39494 | BAKEFILE_HOST="${host}" | |
39495 | fi | |
39496 | ||
39497 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
39498 | ||
39499 | if test -n "$ac_tool_prefix"; then | |
39500 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
39501 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
39502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39504 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
39505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39506 | else | |
39507 | if test -n "$RANLIB"; then | |
39508 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
39509 | else | |
39510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39511 | for as_dir in $PATH | |
39512 | do | |
39513 | IFS=$as_save_IFS | |
39514 | test -z "$as_dir" && as_dir=. | |
39515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39516 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39517 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
39518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39519 | break 2 | |
39520 | fi | |
39521 | done | |
39522 | done | |
39523 | ||
39524 | fi | |
39525 | fi | |
39526 | RANLIB=$ac_cv_prog_RANLIB | |
39527 | if test -n "$RANLIB"; then | |
39528 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
39529 | echo "${ECHO_T}$RANLIB" >&6 | |
39530 | else | |
39531 | echo "$as_me:$LINENO: result: no" >&5 | |
39532 | echo "${ECHO_T}no" >&6 | |
39533 | fi | |
39534 | ||
39535 | fi | |
39536 | if test -z "$ac_cv_prog_RANLIB"; then | |
39537 | ac_ct_RANLIB=$RANLIB | |
39538 | # Extract the first word of "ranlib", so it can be a program name with args. | |
39539 | set dummy ranlib; ac_word=$2 | |
39540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39542 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
39543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39544 | else | |
39545 | if test -n "$ac_ct_RANLIB"; then | |
39546 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
39547 | else | |
39548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39549 | for as_dir in $PATH | |
39550 | do | |
39551 | IFS=$as_save_IFS | |
39552 | test -z "$as_dir" && as_dir=. | |
39553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39555 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
39556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39557 | break 2 | |
39558 | fi | |
39559 | done | |
39560 | done | |
39561 | ||
39562 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
39563 | fi | |
39564 | fi | |
39565 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
39566 | if test -n "$ac_ct_RANLIB"; then | |
39567 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
39568 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
39569 | else | |
39570 | echo "$as_me:$LINENO: result: no" >&5 | |
39571 | echo "${ECHO_T}no" >&6 | |
39572 | fi | |
39573 | ||
39574 | RANLIB=$ac_ct_RANLIB | |
39575 | else | |
39576 | RANLIB="$ac_cv_prog_RANLIB" | |
39577 | fi | |
39578 | ||
39579 | # Find a good install program. We prefer a C program (faster), | |
39580 | # so one script is as good as another. But avoid the broken or | |
39581 | # incompatible versions: | |
39582 | # SysV /etc/install, /usr/sbin/install | |
39583 | # SunOS /usr/etc/install | |
39584 | # IRIX /sbin/install | |
39585 | # AIX /bin/install | |
39586 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
39587 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
39588 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
39589 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 39590 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
39591 | # ./install, which can be erroneously created by make from ./install.sh. |
39592 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
39593 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
39594 | if test -z "$INSTALL"; then | |
39595 | if test "${ac_cv_path_install+set}" = set; then | |
39596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39597 | else | |
39598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39599 | for as_dir in $PATH | |
39600 | do | |
39601 | IFS=$as_save_IFS | |
39602 | test -z "$as_dir" && as_dir=. | |
39603 | # Account for people who put trailing slashes in PATH elements. | |
39604 | case $as_dir/ in | |
39605 | ./ | .// | /cC/* | \ | |
39606 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 39607 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
39608 | /usr/ucb/* ) ;; |
39609 | *) | |
39610 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
39611 | # Don't use installbsd from OSF since it installs stuff as root | |
39612 | # by default. | |
39613 | for ac_prog in ginstall scoinst install; do | |
39614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
39615 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
39616 | if test $ac_prog = install && | |
39617 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
39618 | # AIX install. It has an incompatible calling convention. | |
39619 | : | |
39620 | elif test $ac_prog = install && | |
39621 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
39622 | # program-specific install script used by HP pwplus--don't use. | |
39623 | : | |
39624 | else | |
39625 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
39626 | break 3 | |
39627 | fi | |
39628 | fi | |
a848cd7e SC |
39629 | done |
39630 | done | |
39631 | ;; | |
39632 | esac | |
39633 | done | |
39634 | ||
39635 | ||
39636 | fi | |
39637 | if test "${ac_cv_path_install+set}" = set; then | |
39638 | INSTALL=$ac_cv_path_install | |
39639 | else | |
39640 | # As a last resort, use the slow shell script. We don't cache a | |
39641 | # path for INSTALL within a source directory, because that will | |
39642 | # break other packages using the cache if that directory is | |
39643 | # removed, or if the path is relative. | |
39644 | INSTALL=$ac_install_sh | |
39645 | fi | |
39646 | fi | |
39647 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
39648 | echo "${ECHO_T}$INSTALL" >&6 | |
39649 | ||
39650 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
39651 | # It thinks the first close brace ends the variable substitution. | |
39652 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
39653 | ||
39654 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
39655 | ||
39656 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
39657 | ||
39658 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
39659 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
39660 | LN_S=$as_ln_s | |
39661 | if test "$LN_S" = "ln -s"; then | |
39662 | echo "$as_me:$LINENO: result: yes" >&5 | |
39663 | echo "${ECHO_T}yes" >&6 | |
39664 | else | |
39665 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
39666 | echo "${ECHO_T}no, using $LN_S" >&6 | |
39667 | fi | |
39668 | ||
39669 | ||
39670 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
39671 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 39672 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
39673 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
39674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39675 | else | |
39676 | cat >conftest.make <<\_ACEOF | |
39677 | all: | |
39678 | @echo 'ac_maketemp="$(MAKE)"' | |
39679 | _ACEOF | |
39680 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
39681 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
39682 | if test -n "$ac_maketemp"; then | |
39683 | eval ac_cv_prog_make_${ac_make}_set=yes | |
39684 | else | |
39685 | eval ac_cv_prog_make_${ac_make}_set=no | |
39686 | fi | |
39687 | rm -f conftest.make | |
39688 | fi | |
39689 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
39690 | echo "$as_me:$LINENO: result: yes" >&5 | |
39691 | echo "${ECHO_T}yes" >&6 | |
39692 | SET_MAKE= | |
39693 | else | |
39694 | echo "$as_me:$LINENO: result: no" >&5 | |
39695 | echo "${ECHO_T}no" >&6 | |
39696 | SET_MAKE="MAKE=${MAKE-make}" | |
39697 | fi | |
39698 | ||
39699 | ||
39700 | ||
39701 | if test -n "$ac_tool_prefix"; then | |
39702 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
39703 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
39704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39706 | if test "${ac_cv_prog_AR+set}" = set; then | |
39707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39708 | else | |
39709 | if test -n "$AR"; then | |
39710 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
39711 | else | |
39712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39713 | for as_dir in $PATH | |
39714 | do | |
39715 | IFS=$as_save_IFS | |
39716 | test -z "$as_dir" && as_dir=. | |
39717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39719 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
39720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39721 | break 2 | |
39722 | fi | |
39723 | done | |
39724 | done | |
39725 | ||
39726 | fi | |
39727 | fi | |
39728 | AR=$ac_cv_prog_AR | |
39729 | if test -n "$AR"; then | |
39730 | echo "$as_me:$LINENO: result: $AR" >&5 | |
39731 | echo "${ECHO_T}$AR" >&6 | |
39732 | else | |
39733 | echo "$as_me:$LINENO: result: no" >&5 | |
39734 | echo "${ECHO_T}no" >&6 | |
39735 | fi | |
39736 | ||
39737 | fi | |
39738 | if test -z "$ac_cv_prog_AR"; then | |
39739 | ac_ct_AR=$AR | |
39740 | # Extract the first word of "ar", so it can be a program name with args. | |
39741 | set dummy ar; ac_word=$2 | |
39742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39744 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
39745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39746 | else | |
39747 | if test -n "$ac_ct_AR"; then | |
39748 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
39749 | else | |
39750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39751 | for as_dir in $PATH | |
39752 | do | |
39753 | IFS=$as_save_IFS | |
39754 | test -z "$as_dir" && as_dir=. | |
39755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39757 | ac_cv_prog_ac_ct_AR="ar" | |
39758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39759 | break 2 | |
39760 | fi | |
39761 | done | |
39762 | done | |
39763 | ||
39764 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
39765 | fi | |
39766 | fi | |
39767 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
39768 | if test -n "$ac_ct_AR"; then | |
39769 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
39770 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
39771 | else | |
39772 | echo "$as_me:$LINENO: result: no" >&5 | |
39773 | echo "${ECHO_T}no" >&6 | |
39774 | fi | |
39775 | ||
39776 | AR=$ac_ct_AR | |
39777 | else | |
39778 | AR="$ac_cv_prog_AR" | |
39779 | fi | |
39780 | ||
39781 | if test -n "$ac_tool_prefix"; then | |
39782 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
39783 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
39784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39786 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
39787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39788 | else | |
39789 | if test -n "$STRIP"; then | |
39790 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
39791 | else | |
39792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39793 | for as_dir in $PATH | |
39794 | do | |
39795 | IFS=$as_save_IFS | |
39796 | test -z "$as_dir" && as_dir=. | |
39797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39799 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
39800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39801 | break 2 | |
39802 | fi | |
39803 | done | |
39804 | done | |
39805 | ||
39806 | fi | |
39807 | fi | |
39808 | STRIP=$ac_cv_prog_STRIP | |
39809 | if test -n "$STRIP"; then | |
39810 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
39811 | echo "${ECHO_T}$STRIP" >&6 | |
39812 | else | |
39813 | echo "$as_me:$LINENO: result: no" >&5 | |
39814 | echo "${ECHO_T}no" >&6 | |
39815 | fi | |
39816 | ||
39817 | fi | |
39818 | if test -z "$ac_cv_prog_STRIP"; then | |
39819 | ac_ct_STRIP=$STRIP | |
39820 | # Extract the first word of "strip", so it can be a program name with args. | |
39821 | set dummy strip; ac_word=$2 | |
39822 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39824 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
39825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39826 | else | |
39827 | if test -n "$ac_ct_STRIP"; then | |
39828 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
39829 | else | |
39830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39831 | for as_dir in $PATH | |
39832 | do | |
39833 | IFS=$as_save_IFS | |
39834 | test -z "$as_dir" && as_dir=. | |
39835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39836 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39837 | ac_cv_prog_ac_ct_STRIP="strip" | |
39838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39839 | break 2 | |
39840 | fi | |
39841 | done | |
39842 | done | |
39843 | ||
39844 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
39845 | fi | |
39846 | fi | |
39847 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
39848 | if test -n "$ac_ct_STRIP"; then | |
39849 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
39850 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
39851 | else | |
39852 | echo "$as_me:$LINENO: result: no" >&5 | |
39853 | echo "${ECHO_T}no" >&6 | |
39854 | fi | |
39855 | ||
39856 | STRIP=$ac_ct_STRIP | |
39857 | else | |
39858 | STRIP="$ac_cv_prog_STRIP" | |
39859 | fi | |
39860 | ||
39861 | if test -n "$ac_tool_prefix"; then | |
39862 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
39863 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
39864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39866 | if test "${ac_cv_prog_NM+set}" = set; then | |
39867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39868 | else | |
39869 | if test -n "$NM"; then | |
39870 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
39871 | else | |
39872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39873 | for as_dir in $PATH | |
39874 | do | |
39875 | IFS=$as_save_IFS | |
39876 | test -z "$as_dir" && as_dir=. | |
39877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39878 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39879 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
39880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39881 | break 2 | |
39882 | fi | |
39883 | done | |
39884 | done | |
39885 | ||
39886 | fi | |
39887 | fi | |
39888 | NM=$ac_cv_prog_NM | |
39889 | if test -n "$NM"; then | |
39890 | echo "$as_me:$LINENO: result: $NM" >&5 | |
39891 | echo "${ECHO_T}$NM" >&6 | |
39892 | else | |
39893 | echo "$as_me:$LINENO: result: no" >&5 | |
39894 | echo "${ECHO_T}no" >&6 | |
39895 | fi | |
39896 | ||
39897 | fi | |
39898 | if test -z "$ac_cv_prog_NM"; then | |
39899 | ac_ct_NM=$NM | |
39900 | # Extract the first word of "nm", so it can be a program name with args. | |
39901 | set dummy nm; ac_word=$2 | |
39902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39904 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
39905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39906 | else | |
39907 | if test -n "$ac_ct_NM"; then | |
39908 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
39909 | else | |
39910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39911 | for as_dir in $PATH | |
39912 | do | |
39913 | IFS=$as_save_IFS | |
39914 | test -z "$as_dir" && as_dir=. | |
39915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39916 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39917 | ac_cv_prog_ac_ct_NM="nm" | |
39918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39919 | break 2 | |
39920 | fi | |
39921 | done | |
39922 | done | |
39923 | ||
39924 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
39925 | fi | |
39926 | fi | |
39927 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
39928 | if test -n "$ac_ct_NM"; then | |
39929 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
39930 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
39931 | else | |
39932 | echo "$as_me:$LINENO: result: no" >&5 | |
39933 | echo "${ECHO_T}no" >&6 | |
39934 | fi | |
39935 | ||
39936 | NM=$ac_ct_NM | |
39937 | else | |
39938 | NM="$ac_cv_prog_NM" | |
39939 | fi | |
39940 | ||
39941 | ||
39942 | case ${BAKEFILE_HOST} in | |
39943 | *-hp-hpux* ) | |
1e9e8aba | 39944 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
39945 | ;; |
39946 | *) INSTALL_DIR="$INSTALL -d" | |
39947 | ;; | |
39948 | esac | |
39949 | ||
39950 | ||
39951 | LDFLAGS_GUI= | |
39952 | case ${BAKEFILE_HOST} in | |
39953 | *-*-cygwin* | *-*-mingw32* ) | |
39954 | LDFLAGS_GUI="-mwindows" | |
39955 | esac | |
39956 | ||
39957 | ||
39958 | fi | |
39959 | ||
39960 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
39961 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
39962 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
39963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39964 | else | |
39965 | ||
39966 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
39967 | egrep -s GNU > /dev/null); then | |
39968 | bakefile_cv_prog_makeisgnu="yes" | |
39969 | else | |
39970 | bakefile_cv_prog_makeisgnu="no" | |
39971 | fi | |
39972 | ||
39973 | fi | |
39974 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
39975 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
39976 | ||
39977 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
39978 | IF_GNU_MAKE="" | |
39979 | else | |
39980 | IF_GNU_MAKE="#" | |
39981 | fi | |
39982 | ||
39983 | ||
39984 | ||
39985 | PLATFORM_UNIX=0 | |
39986 | PLATFORM_WIN32=0 | |
39987 | PLATFORM_MSDOS=0 | |
39988 | PLATFORM_MAC=0 | |
1e9e8aba | 39989 | PLATFORM_MACOS=0 |
a848cd7e SC |
39990 | PLATFORM_MACOSX=0 |
39991 | PLATFORM_OS2=0 | |
1e9e8aba | 39992 | PLATFORM_BEOS=0 |
a848cd7e SC |
39993 | |
39994 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
39995 | case "${BAKEFILE_HOST}" in | |
39996 | *-*-cygwin* | *-*-mingw32* ) | |
39997 | PLATFORM_WIN32=1 | |
39998 | ;; | |
39999 | *-pc-msdosdjgpp ) | |
40000 | PLATFORM_MSDOS=1 | |
40001 | ;; | |
40002 | *-pc-os2_emx | *-pc-os2-emx ) | |
40003 | PLATFORM_OS2=1 | |
40004 | ;; | |
40005 | powerpc-*-darwin* ) | |
40006 | PLATFORM_MAC=1 | |
40007 | PLATFORM_MACOSX=1 | |
40008 | ;; | |
1e9e8aba DE |
40009 | *-*-beos* ) |
40010 | PLATFORM_BEOS=1 | |
40011 | ;; | |
40012 | powerpc-apple-macos* ) | |
40013 | PLATFORM_MAC=1 | |
40014 | PLATFORM_MACOS=1 | |
40015 | ;; | |
a848cd7e SC |
40016 | * ) |
40017 | PLATFORM_UNIX=1 | |
40018 | ;; | |
40019 | esac | |
40020 | else | |
40021 | case "$BAKEFILE_FORCE_PLATFORM" in | |
40022 | win32 ) | |
40023 | PLATFORM_WIN32=1 | |
40024 | ;; | |
40025 | msdos ) | |
40026 | PLATFORM_MSDOS=1 | |
40027 | ;; | |
40028 | os2 ) | |
40029 | PLATFORM_OS2=1 | |
40030 | ;; | |
40031 | darwin ) | |
40032 | PLATFORM_MAC=1 | |
40033 | PLATFORM_MACOSX=1 | |
40034 | ;; | |
40035 | unix ) | |
40036 | PLATFORM_UNIX=1 | |
40037 | ;; | |
1e9e8aba DE |
40038 | beos ) |
40039 | PLATFORM_BEOS=1 | |
40040 | ;; | |
a848cd7e SC |
40041 | * ) |
40042 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
40043 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
40044 | { (exit 1); exit 1; }; } | |
40045 | ;; | |
40046 | esac | |
40047 | fi | |
40048 | ||
40049 | ||
40050 | ||
40051 | ||
40052 | ||
40053 | ||
40054 | ||
40055 | ||
40056 | ||
1e9e8aba DE |
40057 | |
40058 | ||
a848cd7e SC |
40059 | # Check whether --enable-omf or --disable-omf was given. |
40060 | if test "${enable_omf+set}" = set; then | |
40061 | enableval="$enable_omf" | |
40062 | bk_os2_use_omf="$enableval" | |
40063 | fi; | |
40064 | ||
40065 | case "${BAKEFILE_HOST}" in | |
40066 | *-*-darwin* ) | |
40067 | CFLAGS="$CFLAGS -fno-common" | |
40068 | CXXFLAGS="$CXXFLAGS -fno-common" | |
40069 | ;; | |
40070 | ||
40071 | *-pc-os2_emx | *-pc-os2-emx ) | |
40072 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
40073 | AR=emxomfar | |
40074 | RANLIB=: | |
40075 | LDFLAGS="-Zomf $LDFLAGS" | |
40076 | CFLAGS="-Zomf $CFLAGS" | |
40077 | CXXFLAGS="-Zomf $CXXFLAGS" | |
40078 | OS2_LIBEXT="lib" | |
40079 | else | |
40080 | OS2_LIBEXT="a" | |
40081 | fi | |
40082 | ;; | |
1e9e8aba DE |
40083 | |
40084 | i*86-*-beos* ) | |
40085 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
40086 | ;; | |
a848cd7e SC |
40087 | esac |
40088 | ||
40089 | ||
40090 | SO_SUFFIX="so" | |
40091 | SO_SUFFIX_MODULE="so" | |
40092 | EXEEXT="" | |
40093 | LIBPREFIX="lib" | |
40094 | LIBEXT=".a" | |
40095 | DLLPREFIX="lib" | |
40096 | DLLPREFIX_MODULE="" | |
40097 | DLLIMP_SUFFIX="" | |
40098 | ||
40099 | case "${BAKEFILE_HOST}" in | |
40100 | *-hp-hpux* ) | |
40101 | SO_SUFFIX="sl" | |
40102 | SO_SUFFIX_MODULE="sl" | |
40103 | ;; | |
40104 | *-*-aix* ) | |
40105 | SO_SUFFIX="a" | |
40106 | SO_SUFFIX_MODULE="a" | |
40107 | ;; | |
40108 | *-*-cygwin* | *-*-mingw32* ) | |
40109 | SO_SUFFIX="dll" | |
40110 | SO_SUFFIX_MODULE="dll" | |
40111 | DLLIMP_SUFFIX="dll.a" | |
40112 | EXEEXT=".exe" | |
40113 | DLLPREFIX="" | |
40114 | ;; | |
40115 | *-pc-msdosdjgpp ) | |
40116 | EXEEXT=".exe" | |
40117 | DLLPREFIX="" | |
40118 | ;; | |
40119 | *-pc-os2_emx | *-pc-os2-emx ) | |
40120 | SO_SUFFIX="dll" | |
40121 | SO_SUFFIX_MODULE="dll" | |
40122 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
40123 | EXEEXT=".exe" | |
40124 | DLLPREFIX="" | |
40125 | LIBPREFIX="" | |
40126 | LIBEXT=".$OS2_LIBEXT" | |
40127 | ;; | |
40128 | powerpc-*-darwin* ) | |
40129 | SO_SUFFIX="dylib" | |
40130 | SO_SUFFIX_MODULE="bundle" | |
40131 | ;; | |
40132 | esac | |
40133 | ||
40134 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
40135 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
40136 | fi | |
40137 | ||
40138 | ||
40139 | ||
40140 | ||
40141 | ||
40142 | ||
40143 | ||
40144 | ||
40145 | ||
40146 | ||
40147 | ||
1e9e8aba DE |
40148 | PIC_FLAG="" |
40149 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
40150 | PIC_FLAG="-fPIC" |
40151 | fi | |
40152 | ||
1e9e8aba DE |
40153 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
40154 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
40155 | ||
a848cd7e SC |
40156 | case "${BAKEFILE_HOST}" in |
40157 | *-hp-hpux* ) | |
1e9e8aba | 40158 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
40159 | LDFLAGS="$LDFLAGS -L/usr/lib" |
40160 | ||
40161 | SHARED_LD_CC="${CC} -b -o" | |
40162 | SHARED_LD_CXX="${CXX} -b -o" | |
40163 | PIC_FLAG="+Z" | |
40164 | fi | |
40165 | ;; | |
40166 | ||
40167 | *-*-linux* ) | |
40168 | if test "x$GCC" != "xyes"; then | |
40169 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
40170 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
40171 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
40172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40173 | else | |
40174 | ||
40175 | cat >conftest.$ac_ext <<_ACEOF | |
40176 | /* confdefs.h. */ | |
40177 | _ACEOF | |
40178 | cat confdefs.h >>conftest.$ac_ext | |
40179 | cat >>conftest.$ac_ext <<_ACEOF | |
40180 | /* end confdefs.h. */ | |
40181 | ||
40182 | int | |
40183 | main () | |
40184 | { | |
40185 | ||
40186 | #ifndef __INTEL_COMPILER | |
40187 | #error Not icc | |
40188 | #endif | |
40189 | ||
40190 | ; | |
40191 | return 0; | |
40192 | } | |
40193 | _ACEOF | |
40194 | rm -f conftest.$ac_objext | |
40195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40196 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40197 | ac_status=$? |
ac1cb8d3 VS |
40198 | grep -v '^ *+' conftest.er1 >conftest.err |
40199 | rm -f conftest.er1 | |
40200 | cat conftest.err >&5 | |
a848cd7e SC |
40201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40202 | (exit $ac_status); } && | |
89be85c2 VS |
40203 | { ac_try='test -z "$ac_c_werror_flag" |
40204 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40206 | (eval $ac_try) 2>&5 | |
40207 | ac_status=$? | |
40208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40209 | (exit $ac_status); }; } && | |
40210 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40212 | (eval $ac_try) 2>&5 | |
40213 | ac_status=$? | |
40214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40215 | (exit $ac_status); }; }; then | |
40216 | bakefile_cv_prog_icc=yes | |
40217 | else | |
40218 | echo "$as_me: failed program was:" >&5 | |
40219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40220 | ||
40221 | bakefile_cv_prog_icc=no | |
40222 | ||
40223 | fi | |
ac1cb8d3 | 40224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40225 | |
40226 | fi | |
40227 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
40228 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
40229 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
40230 | PIC_FLAG="-KPIC" | |
40231 | fi | |
40232 | fi | |
40233 | ;; | |
40234 | ||
40235 | *-*-solaris2* ) | |
40236 | if test "x$GCC" != xyes ; then | |
40237 | SHARED_LD_CC="${CC} -G -o" | |
40238 | SHARED_LD_CXX="${CXX} -G -o" | |
40239 | PIC_FLAG="-KPIC" | |
40240 | fi | |
40241 | ;; | |
40242 | ||
40243 | *-*-darwin* ) | |
40244 | ||
40245 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
40246 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
40247 | if test "${wx_cv_gcc31+set}" = set; then | |
40248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40249 | else | |
40250 | ||
40251 | cat >conftest.$ac_ext <<_ACEOF | |
40252 | /* confdefs.h. */ | |
40253 | _ACEOF | |
40254 | cat confdefs.h >>conftest.$ac_ext | |
40255 | cat >>conftest.$ac_ext <<_ACEOF | |
40256 | /* end confdefs.h. */ | |
40257 | ||
40258 | int | |
40259 | main () | |
40260 | { | |
40261 | ||
40262 | #if (__GNUC__ < 3) || \ | |
40263 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
40264 | #error old gcc | |
40265 | #endif | |
40266 | ||
40267 | ; | |
40268 | return 0; | |
40269 | } | |
40270 | _ACEOF | |
40271 | rm -f conftest.$ac_objext | |
40272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40273 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40274 | ac_status=$? |
ac1cb8d3 VS |
40275 | grep -v '^ *+' conftest.er1 >conftest.err |
40276 | rm -f conftest.er1 | |
40277 | cat conftest.err >&5 | |
a848cd7e SC |
40278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40279 | (exit $ac_status); } && | |
89be85c2 VS |
40280 | { ac_try='test -z "$ac_c_werror_flag" |
40281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40283 | (eval $ac_try) 2>&5 | |
40284 | ac_status=$? | |
40285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40286 | (exit $ac_status); }; } && | |
40287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40289 | (eval $ac_try) 2>&5 | |
40290 | ac_status=$? | |
40291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40292 | (exit $ac_status); }; }; then | |
40293 | ||
40294 | wx_cv_gcc31=yes | |
40295 | ||
40296 | else | |
40297 | echo "$as_me: failed program was:" >&5 | |
40298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40299 | ||
40300 | ||
40301 | wx_cv_gcc31=no | |
40302 | ||
40303 | ||
40304 | fi | |
ac1cb8d3 | 40305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40306 | |
40307 | fi | |
40308 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
40309 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
40310 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
40311 | |
40312 | D='$' | |
40313 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
40314 | #!/bin/sh |
40315 | #----------------------------------------------------------------------------- | |
40316 | #-- Name: distrib/mac/shared-ld-sh | |
40317 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
40318 | #-- Author: Gilles Depeyrot | |
40319 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
40320 | #-- Licence: any use permitted | |
40321 | #----------------------------------------------------------------------------- | |
40322 | ||
40323 | verbose=0 | |
40324 | args="" | |
40325 | objects="" | |
40326 | linking_flag="-dynamiclib" | |
40327 | ||
473276a9 VS |
40328 | while test ${D}# -gt 0; do |
40329 | case ${D}1 in | |
a848cd7e SC |
40330 | |
40331 | -v) | |
40332 | verbose=1 | |
40333 | ;; | |
40334 | ||
40335 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
40336 | # collect these options and values | |
473276a9 | 40337 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
40338 | shift |
40339 | ;; | |
40340 | ||
40341 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
40342 | # collect these options | |
473276a9 | 40343 | args="${D}{args} ${D}1" |
a848cd7e SC |
40344 | ;; |
40345 | ||
40346 | -dynamiclib|-bundle) | |
473276a9 | 40347 | linking_flag="${D}1" |
a848cd7e SC |
40348 | ;; |
40349 | ||
40350 | -*) | |
473276a9 | 40351 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
40352 | exit 1 |
40353 | ;; | |
40354 | ||
40355 | *.o | *.a | *.dylib) | |
40356 | # collect object files | |
473276a9 | 40357 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
40358 | ;; |
40359 | ||
40360 | *) | |
473276a9 | 40361 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
40362 | exit 1 |
40363 | ;; | |
40364 | ||
40365 | esac | |
40366 | shift | |
40367 | done | |
40368 | ||
40369 | # | |
40370 | # Link one module containing all the others | |
40371 | # | |
473276a9 VS |
40372 | if test ${D}{verbose} = 1; then |
40373 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 40374 | fi |
473276a9 VS |
40375 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
40376 | status=${D}? | |
40377 | if test ${D}{status} != 0; then | |
40378 | exit ${D}{status} | |
a848cd7e SC |
40379 | fi |
40380 | ||
40381 | # | |
40382 | # Link the shared library from the single module created | |
40383 | # | |
473276a9 VS |
40384 | if test ${D}{verbose} = 1; then |
40385 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 40386 | fi |
473276a9 VS |
40387 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
40388 | status=${D}? | |
40389 | if test ${D}{status} != 0; then | |
40390 | exit ${D}{status} | |
a848cd7e SC |
40391 | fi |
40392 | ||
40393 | # | |
40394 | # Remove intermediate module | |
40395 | # | |
473276a9 | 40396 | rm -f master.${D}${D}.o |
a848cd7e SC |
40397 | |
40398 | exit 0 | |
40399 | EOF | |
473276a9 | 40400 | |
a848cd7e SC |
40401 | chmod +x shared-ld-sh |
40402 | ||
40403 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
40404 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
40405 | SHARED_LD_CXX="$SHARED_LD_CC" | |
40406 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
40407 | else | |
40408 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
40409 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
40410 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
40411 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
40412 | fi | |
40413 | ||
40414 | PIC_FLAG="-dynamic -fPIC" | |
40415 | ;; | |
40416 | ||
40417 | *-*-aix* ) | |
40418 | if test "x$GCC" != "xyes"; then | |
40419 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
40420 | set dummy makeC++SharedLib; ac_word=$2 | |
40421 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40423 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
40424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40425 | else | |
40426 | if test -n "$AIX_CXX_LD"; then | |
40427 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
40428 | else | |
40429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40430 | for as_dir in $PATH | |
40431 | do | |
40432 | IFS=$as_save_IFS | |
40433 | test -z "$as_dir" && as_dir=. | |
40434 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40435 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40436 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
40437 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40438 | break 2 | |
40439 | fi | |
40440 | done | |
40441 | done | |
40442 | ||
40443 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
40444 | fi | |
40445 | fi | |
40446 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
40447 | if test -n "$AIX_CXX_LD"; then | |
40448 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
40449 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
40450 | else | |
40451 | echo "$as_me:$LINENO: result: no" >&5 | |
40452 | echo "${ECHO_T}no" >&6 | |
40453 | fi | |
40454 | ||
40455 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
40456 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
40457 | fi | |
40458 | ;; | |
40459 | ||
40460 | *-*-beos* ) | |
1e9e8aba DE |
40461 | SHARED_LD_CC="${LD} -nostart -o" |
40462 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
40463 | ;; |
40464 | ||
40465 | *-*-irix* ) | |
40466 | if test "x$GCC" != "xyes"; then | |
40467 | PIC_FLAG="-KPIC" | |
40468 | fi | |
40469 | ;; | |
40470 | ||
40471 | *-*-cygwin* | *-*-mingw32* ) | |
40472 | PIC_FLAG="" | |
1e9e8aba DE |
40473 | SHARED_LD_CC="\$(CC) -shared -o" |
40474 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
40475 | ;; |
40476 | ||
40477 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
40478 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
40479 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 40480 | PIC_FLAG="" |
473276a9 VS |
40481 | |
40482 | D='$' | |
40483 | cat <<EOF >dllar.sh | |
40484 | #!/bin/sh | |
40485 | # | |
40486 | # dllar - a tool to build both a .dll and an .a file | |
40487 | # from a set of object (.o) files for EMX/OS2. | |
40488 | # | |
40489 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
40490 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
40491 | # | |
40492 | # This script will accept a set of files on the command line. | |
40493 | # All the public symbols from the .o files will be exported into | |
40494 | # a .DEF file, then linker will be run (through gcc) against them to | |
40495 | # build a shared library consisting of all given .o files. All libraries | |
40496 | # (.a) will be first decompressed into component .o files then act as | |
40497 | # described above. You can optionally give a description (-d "description") | |
40498 | # which will be put into .DLL. To see the list of accepted options (as well | |
40499 | # as command-line format) simply run this program without options. The .DLL | |
40500 | # is built to be imported by name (there is no guarantee that new versions | |
40501 | # of the library you build will have same ordinals for same symbols). | |
40502 | # | |
40503 | # dllar is free software; you can redistribute it and/or modify | |
40504 | # it under the terms of the GNU General Public License as published by | |
40505 | # the Free Software Foundation; either version 2, or (at your option) | |
40506 | # any later version. | |
40507 | # | |
40508 | # dllar is distributed in the hope that it will be useful, | |
40509 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
40510 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
40511 | # GNU General Public License for more details. | |
40512 | # | |
40513 | # You should have received a copy of the GNU General Public License | |
40514 | # along with dllar; see the file COPYING. If not, write to the Free | |
40515 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
40516 | # 02111-1307, USA. | |
40517 | ||
40518 | # To successfuly run this program you will need: | |
40519 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
40520 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
40521 | # - gcc | |
40522 | # (used to build the .dll) | |
40523 | # - emxexp | |
40524 | # (used to create .def file from .o files) | |
40525 | # - emximp | |
40526 | # (used to create .a file from .def file) | |
40527 | # - GNU text utilites (cat, sort, uniq) | |
40528 | # used to process emxexp output | |
40529 | # - GNU file utilities (mv, rm) | |
40530 | # - GNU sed | |
40531 | # - lxlite (optional, see flag below) | |
40532 | # (used for general .dll cleanup) | |
40533 | # | |
40534 | ||
40535 | flag_USE_LXLITE=1; | |
40536 | ||
40537 | # | |
40538 | # helper functions | |
40539 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
40540 | # second argument (suffix to remove) is given | |
40541 | basnam(){ | |
40542 | case ${D}# in | |
40543 | 1) | |
1e9e8aba | 40544 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
40545 | ;; |
40546 | 2) | |
40547 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
40548 | ;; | |
40549 | *) | |
40550 | echo "error in basnam ${D}*" | |
40551 | exit 8 | |
40552 | ;; | |
40553 | esac | |
40554 | } | |
40555 | ||
40556 | # Cleanup temporary files and output | |
40557 | CleanUp() { | |
40558 | cd ${D}curDir | |
40559 | for i in ${D}inputFiles ; do | |
40560 | case ${D}i in | |
40561 | *!) | |
40562 | rm -rf \`basnam ${D}i !\` | |
40563 | ;; | |
40564 | *) | |
40565 | ;; | |
40566 | esac | |
40567 | done | |
40568 | ||
40569 | # Kill result in case of failure as there is just to many stupid make/nmake | |
40570 | # things out there which doesn't do this. | |
1e9e8aba | 40571 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
40572 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
40573 | fi | |
40574 | } | |
40575 | ||
40576 | # Print usage and exit script with rc=1. | |
40577 | PrintHelp() { | |
b1d22ded DE |
40578 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
40579 | echo ' [-name-mangler-script script.sh]' | |
40580 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
40581 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
40582 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 40583 | echo ' [*.o] [*.a]' |
473276a9 VS |
40584 | echo '*> "output_file" should have no extension.' |
40585 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
40586 | echo ' The import library name is derived from this and is set to "name".a,' | |
40587 | echo ' unless overridden by -import' | |
40588 | echo '*> "importlib_name" should have no extension.' | |
40589 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
40590 | echo ' This name is used as the import library name and may be longer and' | |
40591 | echo ' more descriptive than the DLL name which has to follow the old ' | |
40592 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
40593 | echo '*> "script.sh may be given to override the output_file name by a' |
40594 | echo ' different name. It is mainly useful if the regular make process' | |
40595 | echo ' of some package does not take into account OS/2 restriction of' | |
40596 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
40597 | echo ' supposed to procude a shorter name as output. The script should' | |
40598 | echo ' expect to get importlib_name without extension and should produce' | |
40599 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
40600 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
40601 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
40602 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
40603 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
40604 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
40605 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
40606 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
40607 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 40608 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 40609 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 40610 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 40611 | echo ' C runtime DLLs.' |
b1d22ded | 40612 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
40613 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
40614 | echo ' unchanged to GCC at the end of command line.' | |
40615 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
40616 | echo ' the basename for DLL and import library will be set to library name,' | |
40617 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
40618 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
40619 | echo ' library will be renamed into gcc_s.a.' | |
40620 | echo '--------' | |
40621 | echo 'Example:' | |
40622 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
40623 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
40624 | CleanUp | |
40625 | exit 1 | |
40626 | } | |
40627 | ||
40628 | # Execute a command. | |
40629 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
40630 | # @Uses Whatever CleanUp() uses. | |
40631 | doCommand() { | |
40632 | echo "${D}*" | |
40633 | eval ${D}* | |
40634 | rcCmd=${D}? | |
40635 | ||
1e9e8aba | 40636 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
40637 | echo "command failed, exit code="${D}rcCmd |
40638 | CleanUp | |
40639 | exit ${D}rcCmd | |
40640 | fi | |
40641 | } | |
40642 | ||
40643 | # main routine | |
40644 | # setup globals | |
40645 | cmdLine=${D}* | |
40646 | outFile="" | |
40647 | outimpFile="" | |
40648 | inputFiles="" | |
b1d22ded | 40649 | renameScript="" |
473276a9 VS |
40650 | description="" |
40651 | CC=gcc.exe | |
40652 | CFLAGS="-s -Zcrtdll" | |
40653 | EXTRA_CFLAGS="" | |
40654 | EXPORT_BY_ORDINALS=0 | |
40655 | exclude_symbols="" | |
40656 | library_flags="" | |
40657 | curDir=\`pwd\` | |
40658 | curDirS=curDir | |
40659 | case ${D}curDirS in | |
40660 | */) | |
40661 | ;; | |
40662 | *) | |
40663 | curDirS=${D}{curDirS}"/" | |
40664 | ;; | |
40665 | esac | |
40666 | # Parse commandline | |
40667 | libsToLink=0 | |
b1d22ded | 40668 | omfLinking=0 |
1e9e8aba | 40669 | while [ ${D}1 ]; do |
473276a9 VS |
40670 | case ${D}1 in |
40671 | -ord*) | |
40672 | EXPORT_BY_ORDINALS=1; | |
40673 | ;; | |
40674 | -o*) | |
40675 | shift | |
40676 | outFile=${D}1 | |
40677 | ;; | |
40678 | -i*) | |
40679 | shift | |
40680 | outimpFile=${D}1 | |
40681 | ;; | |
b1d22ded DE |
40682 | -name-mangler-script) |
40683 | shift | |
40684 | renameScript=${D}1 | |
40685 | ;; | |
473276a9 VS |
40686 | -d*) |
40687 | shift | |
40688 | description=${D}1 | |
40689 | ;; | |
40690 | -f*) | |
40691 | shift | |
40692 | CFLAGS=${D}1 | |
40693 | ;; | |
40694 | -c*) | |
40695 | shift | |
40696 | CC=${D}1 | |
40697 | ;; | |
40698 | -h*) | |
40699 | PrintHelp | |
40700 | ;; | |
40701 | -ex*) | |
40702 | shift | |
40703 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
40704 | ;; | |
40705 | -libf*) | |
40706 | shift | |
40707 | library_flags=${D}{library_flags}${D}1" " | |
40708 | ;; | |
40709 | -nocrt*) | |
40710 | CFLAGS="-s" | |
40711 | ;; | |
40712 | -nolxl*) | |
40713 | flag_USE_LXLITE=0 | |
40714 | ;; | |
40715 | -* | /*) | |
40716 | case ${D}1 in | |
40717 | -L* | -l*) | |
40718 | libsToLink=1 | |
40719 | ;; | |
b1d22ded DE |
40720 | -Zomf) |
40721 | omfLinking=1 | |
40722 | ;; | |
473276a9 VS |
40723 | *) |
40724 | ;; | |
40725 | esac | |
40726 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
40727 | ;; | |
b1d22ded DE |
40728 | *.dll) |
40729 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
40730 | if [ ${D}omfLinking -eq 1 ]; then | |
40731 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
40732 | else | |
40733 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
40734 | fi | |
40735 | ;; | |
473276a9 VS |
40736 | *) |
40737 | found=0; | |
1e9e8aba | 40738 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
40739 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
40740 | else | |
40741 | for file in ${D}1 ; do | |
1e9e8aba | 40742 | if [ -f ${D}file ]; then |
473276a9 VS |
40743 | inputFiles="${D}{inputFiles} ${D}file" |
40744 | found=1 | |
40745 | fi | |
40746 | done | |
1e9e8aba | 40747 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
40748 | echo "ERROR: No file(s) found: "${D}1 |
40749 | exit 8 | |
40750 | fi | |
40751 | fi | |
40752 | ;; | |
40753 | esac | |
40754 | shift | |
40755 | done # iterate cmdline words | |
40756 | ||
40757 | # | |
1e9e8aba | 40758 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
40759 | echo "dllar: no input files" |
40760 | PrintHelp | |
40761 | fi | |
40762 | ||
40763 | # Now extract all .o files from .a files | |
40764 | newInputFiles="" | |
40765 | for file in ${D}inputFiles ; do | |
40766 | case ${D}file in | |
40767 | *.a | *.lib) | |
40768 | case ${D}file in | |
40769 | *.a) | |
40770 | suffix=".a" | |
40771 | AR="ar" | |
40772 | ;; | |
40773 | *.lib) | |
40774 | suffix=".lib" | |
40775 | AR="emxomfar" | |
40776 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
40777 | ;; | |
40778 | *) | |
40779 | ;; | |
40780 | esac | |
40781 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
40782 | mkdir ${D}dirname | |
1e9e8aba | 40783 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
40784 | echo "Failed to create subdirectory ./${D}dirname" |
40785 | CleanUp | |
40786 | exit 8; | |
40787 | fi | |
40788 | # Append '!' to indicate archive | |
40789 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
40790 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
40791 | cd ${D}curDir | |
40792 | found=0; | |
40793 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 40794 | if [ -f ${D}subfile ]; then |
473276a9 | 40795 | found=1 |
1e9e8aba | 40796 | if [ -s ${D}subfile ]; then |
473276a9 VS |
40797 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
40798 | newInputFiles="${D}newInputFiles ${D}subfile" | |
40799 | fi | |
40800 | fi | |
40801 | done | |
1e9e8aba DE |
40802 | if [ ${D}found -eq 0 ]; then |
40803 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
40804 | fi |
40805 | ;; | |
40806 | *) | |
40807 | newInputFiles="${D}{newInputFiles} ${D}file" | |
40808 | ;; | |
40809 | esac | |
40810 | done | |
40811 | inputFiles="${D}newInputFiles" | |
40812 | ||
40813 | # Output filename(s). | |
40814 | do_backup=0; | |
1e9e8aba | 40815 | if [ -z ${D}outFile ]; then |
473276a9 VS |
40816 | do_backup=1; |
40817 | set outFile ${D}inputFiles; outFile=${D}2 | |
40818 | fi | |
40819 | ||
40820 | # If it is an archive, remove the '!' and the '_%' suffixes | |
40821 | case ${D}outFile in | |
40822 | *_%!) | |
40823 | outFile=\`basnam ${D}outFile _%!\` | |
40824 | ;; | |
40825 | *) | |
40826 | ;; | |
40827 | esac | |
40828 | case ${D}outFile in | |
40829 | *.dll) | |
40830 | outFile=\`basnam ${D}outFile .dll\` | |
40831 | ;; | |
40832 | *.DLL) | |
40833 | outFile=\`basnam ${D}outFile .DLL\` | |
40834 | ;; | |
40835 | *.o) | |
40836 | outFile=\`basnam ${D}outFile .o\` | |
40837 | ;; | |
40838 | *.obj) | |
40839 | outFile=\`basnam ${D}outFile .obj\` | |
40840 | ;; | |
40841 | *.a) | |
40842 | outFile=\`basnam ${D}outFile .a\` | |
40843 | ;; | |
40844 | *.lib) | |
40845 | outFile=\`basnam ${D}outFile .lib\` | |
40846 | ;; | |
40847 | *) | |
40848 | ;; | |
40849 | esac | |
40850 | case ${D}outimpFile in | |
40851 | *.a) | |
40852 | outimpFile=\`basnam ${D}outimpFile .a\` | |
40853 | ;; | |
40854 | *.lib) | |
40855 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
40856 | ;; | |
40857 | *) | |
40858 | ;; | |
40859 | esac | |
1e9e8aba | 40860 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
40861 | outimpFile=${D}outFile |
40862 | fi | |
40863 | defFile="${D}{outFile}.def" | |
40864 | arcFile="${D}{outimpFile}.a" | |
40865 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
40866 | |
40867 | #create ${D}dllFile as something matching 8.3 restrictions, | |
40868 | if [ -z ${D}renameScript ] ; then | |
40869 | dllFile="${D}outFile" | |
40870 | else | |
40871 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
40872 | fi | |
473276a9 | 40873 | |
1e9e8aba DE |
40874 | if [ ${D}do_backup -ne 0 ] ; then |
40875 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
40876 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
40877 | fi | |
1e9e8aba | 40878 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
40879 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
40880 | fi | |
40881 | fi | |
40882 | ||
40883 | # Extract public symbols from all the object files. | |
40884 | tmpdefFile=${D}{defFile}_% | |
40885 | rm -f ${D}tmpdefFile | |
40886 | for file in ${D}inputFiles ; do | |
40887 | case ${D}file in | |
40888 | *!) | |
40889 | ;; | |
40890 | *) | |
40891 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
40892 | ;; | |
40893 | esac | |
40894 | done | |
40895 | ||
40896 | # Create the def file. | |
40897 | rm -f ${D}defFile | |
40898 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
40899 | dllFile="${D}{dllFile}.dll" |
40900 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 40901 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
40902 | fi |
40903 | echo "EXPORTS" >> ${D}defFile | |
40904 | ||
40905 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
40906 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
40907 | ||
40908 | # Checks if the export is ok or not. | |
40909 | for word in ${D}exclude_symbols; do | |
40910 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
40911 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
40912 | done | |
40913 | ||
40914 | ||
1e9e8aba DE |
40915 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
40916 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
40917 | sed ' |
40918 | N | |
40919 | : loop | |
1e9e8aba | 40920 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
40921 | t loop |
40922 | ' > ${D}{tmpdefFile}% | |
40923 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
40924 | else | |
40925 | rm -f ${D}{tmpdefFile}% | |
40926 | fi | |
40927 | cat ${D}tmpdefFile >> ${D}defFile | |
40928 | rm -f ${D}tmpdefFile | |
40929 | ||
40930 | # Do linking, create implib, and apply lxlite. | |
40931 | gccCmdl=""; | |
40932 | for file in ${D}inputFiles ; do | |
40933 | case ${D}file in | |
40934 | *!) | |
40935 | ;; | |
40936 | *) | |
40937 | gccCmdl="${D}gccCmdl ${D}file" | |
40938 | ;; | |
40939 | esac | |
40940 | done | |
40941 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
40942 | touch "${D}{outFile}.dll" | |
40943 | ||
40944 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 40945 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 40946 | add_flags=""; |
1e9e8aba | 40947 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
40948 | add_flags="-ynd" |
40949 | fi | |
40950 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
40951 | fi | |
40952 | doCommand "emxomf -s -l ${D}arcFile" | |
40953 | ||
40954 | # Successful exit. | |
40955 | CleanUp 1 | |
40956 | exit 0 | |
40957 | EOF | |
40958 | ||
40959 | chmod +x dllar.sh | |
a848cd7e SC |
40960 | ;; |
40961 | ||
1e9e8aba | 40962 | powerpc-apple-macos* | \ |
a848cd7e SC |
40963 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
40964 | *-*-sunos4* | \ | |
40965 | *-*-osf* | \ | |
40966 | *-*-dgux5* | \ | |
40967 | *-*-sysv5* ) | |
40968 | ;; | |
40969 | ||
40970 | *) | |
40971 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
40972 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
40973 | { (exit 1); exit 1; }; } | |
40974 | esac | |
40975 | ||
2057db16 VS |
40976 | if test "x$PIC_FLAG" != "x" ; then |
40977 | PIC_FLAG="$PIC_FLAG -DPIC" | |
40978 | fi | |
40979 | ||
a848cd7e SC |
40980 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
40981 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
40982 | fi | |
40983 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
40984 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
40985 | fi | |
40986 | ||
40987 | ||
40988 | ||
40989 | ||
40990 | ||
40991 | ||
40992 | ||
40993 | ||
40994 | USE_SOVERSION=0 | |
40995 | USE_SOVERLINUX=0 | |
40996 | USE_SOVERSOLARIS=0 | |
40997 | USE_SOSYMLINKS=0 | |
40998 | USE_MACVERSION=0 | |
40999 | SONAME_FLAG= | |
41000 | ||
41001 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 41002 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
41003 | SONAME_FLAG="-Wl,-soname," |
41004 | USE_SOVERSION=1 | |
41005 | USE_SOVERLINUX=1 | |
41006 | USE_SOSYMLINKS=1 | |
41007 | ;; | |
41008 | ||
a848cd7e SC |
41009 | *-*-solaris2* ) |
41010 | SONAME_FLAG="-h " | |
41011 | USE_SOVERSION=1 | |
41012 | USE_SOVERSOLARIS=1 | |
41013 | USE_SOSYMLINKS=1 | |
41014 | ;; | |
41015 | ||
41016 | *-*-darwin* ) | |
41017 | USE_MACVERSION=1 | |
41018 | USE_SOVERSION=1 | |
41019 | USE_SOSYMLINKS=1 | |
41020 | ;; | |
41021 | esac | |
41022 | ||
41023 | ||
41024 | ||
41025 | ||
41026 | ||
41027 | ||
41028 | ||
41029 | ||
41030 | ||
41031 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
41032 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
41033 | DEPS_TRACKING=0 | |
41034 | ||
41035 | if test "x$GCC" = "xyes"; then | |
41036 | DEPSMODE=gcc | |
41037 | DEPS_TRACKING=1 | |
41038 | case "${BAKEFILE_HOST}" in | |
41039 | powerpc-*-darwin* ) | |
41040 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
41041 | ;; | |
41042 | * ) | |
41043 | DEPSFLAG_GCC="-MMD" | |
41044 | ;; | |
41045 | esac | |
41046 | echo "$as_me:$LINENO: result: gcc" >&5 | |
41047 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 41048 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 41049 | DEPSMODE=mwcc |
b1d22ded | 41050 | DEPS_TRACKING=1 |
81f90336 | 41051 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
41052 | echo "$as_me:$LINENO: result: mwcc" >&5 |
41053 | echo "${ECHO_T}mwcc" >&6 | |
a848cd7e SC |
41054 | else |
41055 | echo "$as_me:$LINENO: result: none" >&5 | |
41056 | echo "${ECHO_T}none" >&6 | |
41057 | fi | |
41058 | ||
41059 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
41060 | |
41061 | D='$' | |
41062 | cat <<EOF >bk-deps | |
a848cd7e SC |
41063 | #!/bin/sh |
41064 | ||
41065 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
41066 | # script. It is used to track C/C++ files dependencies in portable way. | |
41067 | # | |
41068 | # Permission is given to use this file in any way. | |
41069 | ||
473276a9 | 41070 | DEPSMODE=${DEPSMODE} |
a848cd7e | 41071 | DEPSDIR=.deps |
473276a9 | 41072 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 41073 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a848cd7e | 41074 | |
473276a9 | 41075 | mkdir -p ${D}DEPSDIR |
a848cd7e | 41076 | |
473276a9 VS |
41077 | if test ${D}DEPSMODE = gcc ; then |
41078 | ${D}* ${D}{DEPSFLAG_GCC} | |
41079 | status=${D}? | |
41080 | if test ${D}{status} != 0 ; then | |
41081 | exit ${D}{status} | |
a848cd7e SC |
41082 | fi |
41083 | # move created file to the location we want it in: | |
473276a9 VS |
41084 | while test ${D}# -gt 0; do |
41085 | case "${D}1" in | |
a848cd7e SC |
41086 | -o ) |
41087 | shift | |
473276a9 | 41088 | objfile=${D}1 |
a848cd7e SC |
41089 | ;; |
41090 | -* ) | |
41091 | ;; | |
41092 | * ) | |
473276a9 | 41093 | srcfile=${D}1 |
a848cd7e SC |
41094 | ;; |
41095 | esac | |
41096 | shift | |
41097 | done | |
1e9e8aba DE |
41098 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
41099 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
41100 | if test -f ${D}depfile ; then |
41101 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41102 | rm -f ${D}depfile | |
a848cd7e | 41103 | else |
1e9e8aba | 41104 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
41105 | if test -f ${D}depfile ; then |
41106 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41107 | rm -f ${D}depfile | |
a848cd7e SC |
41108 | fi |
41109 | fi | |
41110 | exit 0 | |
81f90336 MW |
41111 | elif test ${D}DEPSMODE = mwcc ; then |
41112 | ${D}* | |
41113 | status=${D}? | |
41114 | if test ${D}{status} != 0 ; then | |
41115 | exit ${D}{status} | |
41116 | fi | |
41117 | # Run mwcc again with -MM and redirect into the dep file we want | |
41118 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
41119 | prevarg= | |
41120 | for arg in ${D}* ; do | |
41121 | if test "${D}prevarg" = "-o"; then | |
41122 | objfile=${D}arg | |
41123 | else | |
41124 | case "${D}arg" in | |
41125 | -* ) | |
41126 | ;; | |
41127 | * ) | |
41128 | srcfile=${D}arg | |
41129 | ;; | |
41130 | esac | |
41131 | fi | |
41132 | prevarg="${D}arg" | |
41133 | done | |
41134 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
41135 | exit 0 | |
a848cd7e | 41136 | else |
473276a9 VS |
41137 | ${D}* |
41138 | exit ${D}? | |
a848cd7e SC |
41139 | fi |
41140 | EOF | |
473276a9 | 41141 | |
a848cd7e SC |
41142 | chmod +x bk-deps |
41143 | fi | |
41144 | ||
41145 | ||
41146 | ||
41147 | ||
41148 | RESCOMP= | |
41149 | SETFILE= | |
41150 | ||
41151 | case ${BAKEFILE_HOST} in | |
41152 | *-*-cygwin* | *-*-mingw32* ) | |
41153 | if test "$build" != "$host" ; then | |
41154 | RESCOMP=$host_alias-windres | |
41155 | else | |
41156 | # Extract the first word of "windres", so it can be a program name with args. | |
41157 | set dummy windres; ac_word=$2 | |
41158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41160 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
41161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41162 | else | |
41163 | if test -n "$RESCOMP"; then | |
41164 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
41165 | else | |
41166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41167 | for as_dir in $PATH | |
41168 | do | |
41169 | IFS=$as_save_IFS | |
41170 | test -z "$as_dir" && as_dir=. | |
41171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41173 | ac_cv_prog_RESCOMP="windres" | |
41174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41175 | break 2 | |
41176 | fi | |
41177 | done | |
41178 | done | |
41179 | ||
41180 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
41181 | fi | |
41182 | fi | |
41183 | RESCOMP=$ac_cv_prog_RESCOMP | |
41184 | if test -n "$RESCOMP"; then | |
41185 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
41186 | echo "${ECHO_T}$RESCOMP" >&6 | |
41187 | else | |
41188 | echo "$as_me:$LINENO: result: no" >&5 | |
41189 | echo "${ECHO_T}no" >&6 | |
41190 | fi | |
41191 | ||
41192 | fi | |
41193 | ;; | |
41194 | ||
1e9e8aba | 41195 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
41196 | # Extract the first word of "Rez", so it can be a program name with args. |
41197 | set dummy Rez; ac_word=$2 | |
41198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41200 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
41201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41202 | else | |
41203 | if test -n "$RESCOMP"; then | |
41204 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
41205 | else | |
41206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41207 | for as_dir in $PATH | |
41208 | do | |
41209 | IFS=$as_save_IFS | |
41210 | test -z "$as_dir" && as_dir=. | |
41211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41212 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41213 | ac_cv_prog_RESCOMP="Rez" | |
41214 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41215 | break 2 | |
41216 | fi | |
41217 | done | |
41218 | done | |
41219 | ||
41220 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
41221 | fi | |
41222 | fi | |
41223 | RESCOMP=$ac_cv_prog_RESCOMP | |
41224 | if test -n "$RESCOMP"; then | |
41225 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
41226 | echo "${ECHO_T}$RESCOMP" >&6 | |
41227 | else | |
41228 | echo "$as_me:$LINENO: result: no" >&5 | |
41229 | echo "${ECHO_T}no" >&6 | |
41230 | fi | |
41231 | ||
41232 | # Extract the first word of "SetFile", so it can be a program name with args. | |
41233 | set dummy SetFile; ac_word=$2 | |
41234 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41236 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
41237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41238 | else | |
41239 | if test -n "$SETFILE"; then | |
41240 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
41241 | else | |
41242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41243 | for as_dir in $PATH | |
41244 | do | |
41245 | IFS=$as_save_IFS | |
41246 | test -z "$as_dir" && as_dir=. | |
41247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41248 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41249 | ac_cv_prog_SETFILE="SetFile" | |
41250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41251 | break 2 | |
41252 | fi | |
41253 | done | |
41254 | done | |
41255 | ||
41256 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
41257 | fi | |
41258 | fi | |
41259 | SETFILE=$ac_cv_prog_SETFILE | |
41260 | if test -n "$SETFILE"; then | |
41261 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
41262 | echo "${ECHO_T}$SETFILE" >&6 | |
41263 | else | |
41264 | echo "$as_me:$LINENO: result: no" >&5 | |
41265 | echo "${ECHO_T}no" >&6 | |
41266 | fi | |
41267 | ||
41268 | ;; | |
41269 | esac | |
41270 | ||
41271 | ||
41272 | ||
41273 | ||
41274 | ||
2e350179 | 41275 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.7" |
a848cd7e | 41276 | |
dcc1b6ad | 41277 | |
2e350179 | 41278 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7" |
a848cd7e | 41279 | |
646b6ec1 | 41280 | |
74b84332 | 41281 | |
a848cd7e SC |
41282 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
41283 | if test "${enable_precomp_headers+set}" = set; then | |
41284 | enableval="$enable_precomp_headers" | |
41285 | bk_use_pch="$enableval" | |
41286 | fi; | |
41287 | ||
41288 | GCC_PCH=0 | |
41289 | ||
41290 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
41291 | if test "x$GCC" = "xyes"; then | |
41292 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
41293 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
41294 | cat >conftest.$ac_ext <<_ACEOF | |
41295 | /* confdefs.h. */ | |
41296 | _ACEOF | |
41297 | cat confdefs.h >>conftest.$ac_ext | |
41298 | cat >>conftest.$ac_ext <<_ACEOF | |
41299 | /* end confdefs.h. */ | |
41300 | ||
41301 | int | |
41302 | main () | |
41303 | { | |
41304 | ||
41305 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
41306 | #error "no pch support" | |
41307 | #endif | |
41308 | #if (__GNUC__ < 3) | |
41309 | #error "no pch support" | |
41310 | #endif | |
41311 | #if (__GNUC__ == 3) && \ | |
41312 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
41313 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
41314 | #error "no pch support" | |
41315 | #endif | |
41316 | ||
41317 | ; | |
41318 | return 0; | |
41319 | } | |
41320 | _ACEOF | |
41321 | rm -f conftest.$ac_objext | |
41322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41324 | ac_status=$? |
ac1cb8d3 VS |
41325 | grep -v '^ *+' conftest.er1 >conftest.err |
41326 | rm -f conftest.er1 | |
41327 | cat conftest.err >&5 | |
a848cd7e SC |
41328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41329 | (exit $ac_status); } && | |
89be85c2 VS |
41330 | { ac_try='test -z "$ac_c_werror_flag" |
41331 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41333 | (eval $ac_try) 2>&5 | |
41334 | ac_status=$? | |
41335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41336 | (exit $ac_status); }; } && | |
41337 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41339 | (eval $ac_try) 2>&5 | |
41340 | ac_status=$? | |
41341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41342 | (exit $ac_status); }; }; then | |
41343 | ||
41344 | echo "$as_me:$LINENO: result: yes" >&5 | |
41345 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
41346 | GCC_PCH=1 |
41347 | ||
41348 | else | |
41349 | echo "$as_me: failed program was:" >&5 | |
41350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41351 | ||
41352 | ||
41353 | echo "$as_me:$LINENO: result: no" >&5 | |
41354 | echo "${ECHO_T}no" >&6 | |
41355 | ||
41356 | fi | |
ac1cb8d3 | 41357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 41358 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
41359 | |
41360 | D='$' | |
41361 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
41362 | #!/bin/sh |
41363 | ||
41364 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
41365 | # script. It is used to generated precompiled headers. | |
41366 | # | |
41367 | # Permission is given to use this file in any way. | |
41368 | ||
1e9e8aba DE |
41369 | outfile="${D}{1}" |
41370 | header="${D}{2}" | |
a848cd7e SC |
41371 | shift |
41372 | shift | |
41373 | ||
41374 | compiler= | |
41375 | headerfile= | |
1e9e8aba DE |
41376 | while test ${D}{#} -gt 0; do |
41377 | case "${D}{1}" in | |
a848cd7e | 41378 | -I* ) |
1e9e8aba DE |
41379 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
41380 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
41381 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
41382 | fi |
41383 | ;; | |
41384 | esac | |
1e9e8aba | 41385 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
41386 | shift |
41387 | done | |
41388 | ||
1e9e8aba DE |
41389 | if test "x${D}{headerfile}" = "x" ; then |
41390 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 41391 | else |
1e9e8aba DE |
41392 | if test -f ${D}{outfile} ; then |
41393 | rm -f ${D}{outfile} | |
a848cd7e | 41394 | else |
1e9e8aba | 41395 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 41396 | fi |
1e9e8aba | 41397 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
41398 | mkdir -p .deps |
41399 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
41400 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
41401 | exit ${D}{?} | |
a848cd7e SC |
41402 | fi |
41403 | EOF | |
1e9e8aba | 41404 | |
a848cd7e SC |
41405 | chmod +x bk-make-pch |
41406 | fi | |
41407 | fi | |
41408 | fi | |
41409 | ||
41410 | ||
41411 | ||
a848cd7e SC |
41412 | COND_BUILD_DEBUG="#" |
41413 | if test "x$BUILD" = "xdebug" ; then | |
41414 | COND_BUILD_DEBUG="" | |
41415 | fi | |
41416 | ||
41417 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
41418 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
41419 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
41420 | fi | |
41421 | ||
41422 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
41423 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41424 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
41425 | fi | |
41426 | ||
41427 | COND_BUILD_DEBUG_UNICODE_0="#" | |
41428 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
41429 | COND_BUILD_DEBUG_UNICODE_0="" | |
41430 | fi | |
41431 | ||
41432 | COND_BUILD_DEBUG_UNICODE_1="#" | |
41433 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
41434 | COND_BUILD_DEBUG_UNICODE_1="" | |
41435 | fi | |
41436 | ||
41437 | COND_BUILD_RELEASE="#" | |
41438 | if test "x$BUILD" = "xrelease" ; then | |
41439 | COND_BUILD_RELEASE="" | |
41440 | fi | |
41441 | ||
41442 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
41443 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41444 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
41445 | fi | |
41446 | ||
41447 | COND_BUILD_RELEASE_UNICODE_0="#" | |
41448 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
41449 | COND_BUILD_RELEASE_UNICODE_0="" | |
41450 | fi | |
41451 | ||
41452 | COND_BUILD_RELEASE_UNICODE_1="#" | |
41453 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
41454 | COND_BUILD_RELEASE_UNICODE_1="" | |
41455 | fi | |
41456 | ||
41457 | COND_DEBUG_FLAG_1="#" | |
41458 | if test "x$DEBUG_FLAG" = "x1" ; then | |
41459 | COND_DEBUG_FLAG_1="" | |
41460 | fi | |
41461 | ||
41462 | COND_DEBUG_INFO_0="#" | |
41463 | if test "x$DEBUG_INFO" = "x0" ; then | |
41464 | COND_DEBUG_INFO_0="" | |
41465 | fi | |
41466 | ||
41467 | COND_DEBUG_INFO_1="#" | |
41468 | if test "x$DEBUG_INFO" = "x1" ; then | |
41469 | COND_DEBUG_INFO_1="" | |
41470 | fi | |
41471 | ||
41472 | COND_DEPS_TRACKING_0="#" | |
41473 | if test "x$DEPS_TRACKING" = "x0" ; then | |
41474 | COND_DEPS_TRACKING_0="" | |
41475 | fi | |
41476 | ||
41477 | COND_DEPS_TRACKING_1="#" | |
41478 | if test "x$DEPS_TRACKING" = "x1" ; then | |
41479 | COND_DEPS_TRACKING_1="" | |
41480 | fi | |
41481 | ||
41482 | COND_GCC_PCH_1="#" | |
41483 | if test "x$GCC_PCH" = "x1" ; then | |
41484 | COND_GCC_PCH_1="" | |
41485 | fi | |
41486 | ||
41487 | COND_MONOLITHIC_0="#" | |
41488 | if test "x$MONOLITHIC" = "x0" ; then | |
41489 | COND_MONOLITHIC_0="" | |
41490 | fi | |
41491 | ||
41492 | COND_MONOLITHIC_0_SHARED_0="#" | |
41493 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
41494 | COND_MONOLITHIC_0_SHARED_0="" | |
41495 | fi | |
41496 | ||
41497 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
41498 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
41499 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
41500 | fi | |
41501 | ||
90970d69 DE |
41502 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
41503 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41504 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
41505 | fi | |
41506 | ||
a848cd7e SC |
41507 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
41508 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41509 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
41510 | fi | |
41511 | ||
a848cd7e SC |
41512 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
41513 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41514 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
41515 | fi | |
41516 | ||
ceec2216 RL |
41517 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
41518 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
41519 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
41520 | fi | |
41521 | ||
a848cd7e SC |
41522 | COND_MONOLITHIC_0_SHARED_1="#" |
41523 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
41524 | COND_MONOLITHIC_0_SHARED_1="" | |
41525 | fi | |
41526 | ||
41527 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
41528 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41529 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
41530 | fi | |
41531 | ||
90970d69 DE |
41532 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
41533 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41534 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
41535 | fi | |
41536 | ||
a848cd7e SC |
41537 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
41538 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41539 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
41540 | fi | |
41541 | ||
a848cd7e SC |
41542 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
41543 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41544 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
41545 | fi | |
41546 | ||
ceec2216 RL |
41547 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
41548 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
41549 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
41550 | fi | |
41551 | ||
a848cd7e SC |
41552 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
41553 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41554 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
41555 | fi | |
41556 | ||
41557 | COND_MONOLITHIC_1="#" | |
41558 | if test "x$MONOLITHIC" = "x1" ; then | |
41559 | COND_MONOLITHIC_1="" | |
41560 | fi | |
41561 | ||
41562 | COND_MONOLITHIC_1_SHARED_0="#" | |
41563 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
41564 | COND_MONOLITHIC_1_SHARED_0="" | |
41565 | fi | |
41566 | ||
41567 | COND_MONOLITHIC_1_SHARED_1="#" | |
41568 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
41569 | COND_MONOLITHIC_1_SHARED_1="" | |
41570 | fi | |
41571 | ||
41572 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
41573 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41574 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
41575 | fi | |
41576 | ||
41577 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
41578 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41579 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
41580 | fi | |
41581 | ||
41582 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
41583 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
41584 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
41585 | fi | |
41586 | ||
41587 | COND_PLATFORM_MACOSX_1="#" | |
41588 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
41589 | COND_PLATFORM_MACOSX_1="" | |
41590 | fi | |
41591 | ||
a30f955f VS |
41592 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
41593 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
41594 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
41595 | fi | |
41596 | ||
a848cd7e SC |
41597 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
41598 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
41599 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
41600 | fi | |
41601 | ||
41602 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
41603 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
41604 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
41605 | fi | |
41606 | ||
41607 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
41608 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
41609 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
41610 | fi | |
41611 | ||
fc480dc1 DE |
41612 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
41613 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41614 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
41615 | fi | |
41616 | ||
1e9e8aba DE |
41617 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
41618 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41619 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41620 | fi | |
41621 | ||
ebee3cd0 VS |
41622 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
41623 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
41624 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
41625 | fi | |
41626 | ||
41627 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
41628 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
41629 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
41630 | fi | |
41631 | ||
a848cd7e SC |
41632 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
41633 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41634 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
41635 | fi | |
41636 | ||
41637 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
41638 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
41639 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
41640 | fi | |
41641 | ||
b48a2016 DE |
41642 | COND_PLATFORM_MACOS_1="#" |
41643 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
41644 | COND_PLATFORM_MACOS_1="" | |
41645 | fi | |
41646 | ||
a848cd7e SC |
41647 | COND_PLATFORM_MAC_1="#" |
41648 | if test "x$PLATFORM_MAC" = "x1" ; then | |
41649 | COND_PLATFORM_MAC_1="" | |
41650 | fi | |
41651 | ||
41652 | COND_PLATFORM_OS2_1="#" | |
41653 | if test "x$PLATFORM_OS2" = "x1" ; then | |
41654 | COND_PLATFORM_OS2_1="" | |
41655 | fi | |
41656 | ||
41657 | COND_PLATFORM_UNIX_0="#" | |
41658 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
41659 | COND_PLATFORM_UNIX_0="" | |
41660 | fi | |
41661 | ||
41662 | COND_PLATFORM_UNIX_1="#" | |
41663 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
41664 | COND_PLATFORM_UNIX_1="" | |
41665 | fi | |
41666 | ||
41667 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
41668 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41669 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
41670 | fi | |
41671 | ||
41672 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
41673 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
41674 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
41675 | fi | |
41676 | ||
41677 | COND_PLATFORM_WIN32_0="#" | |
41678 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
41679 | COND_PLATFORM_WIN32_0="" | |
41680 | fi | |
41681 | ||
41682 | COND_PLATFORM_WIN32_1="#" | |
41683 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
41684 | COND_PLATFORM_WIN32_1="" | |
41685 | fi | |
41686 | ||
41687 | COND_SHARED_0="#" | |
41688 | if test "x$SHARED" = "x0" ; then | |
41689 | COND_SHARED_0="" | |
41690 | fi | |
41691 | ||
ceec2216 RL |
41692 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
41693 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
41694 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
41695 | fi | |
41696 | ||
41697 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
41698 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
41699 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
41700 | fi | |
41701 | ||
41702 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
41703 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
41704 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
41705 | fi | |
41706 | ||
a848cd7e SC |
41707 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
41708 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41709 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
41710 | fi | |
41711 | ||
41712 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41713 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41714 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41715 | fi | |
41716 | ||
41717 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41718 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41719 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41720 | fi | |
41721 | ||
41722 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41723 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41724 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41725 | fi | |
41726 | ||
41727 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
41728 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41729 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
41730 | fi | |
41731 | ||
41732 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
41733 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41734 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
41735 | fi | |
41736 | ||
41737 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
41738 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41739 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
41740 | fi | |
41741 | ||
41742 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
41743 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41744 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
41745 | fi | |
41746 | ||
41747 | COND_SHARED_1="#" | |
41748 | if test "x$SHARED" = "x1" ; then | |
41749 | COND_SHARED_1="" | |
41750 | fi | |
41751 | ||
41752 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
41753 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41754 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
41755 | fi | |
41756 | ||
a30f955f VS |
41757 | COND_TOOLKIT_="#" |
41758 | if test "x$TOOLKIT" = "x" ; then | |
41759 | COND_TOOLKIT_="" | |
41760 | fi | |
41761 | ||
a848cd7e SC |
41762 | COND_TOOLKIT_COCOA="#" |
41763 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
41764 | COND_TOOLKIT_COCOA="" | |
41765 | fi | |
41766 | ||
a49baeab DE |
41767 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
41768 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
41769 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
41770 | fi | |
41771 | ||
a848cd7e SC |
41772 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
41773 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41774 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
41775 | fi | |
41776 | ||
41777 | COND_TOOLKIT_GTK="#" | |
41778 | if test "x$TOOLKIT" = "xGTK" ; then | |
41779 | COND_TOOLKIT_GTK="" | |
41780 | fi | |
41781 | ||
41782 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
41783 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
41784 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
41785 | fi | |
41786 | ||
41787 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
41788 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41789 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
41790 | fi | |
41791 | ||
41792 | COND_TOOLKIT_MAC="#" | |
41793 | if test "x$TOOLKIT" = "xMAC" ; then | |
41794 | COND_TOOLKIT_MAC="" | |
41795 | fi | |
41796 | ||
41797 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
41798 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41799 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
41800 | fi | |
41801 | ||
41802 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
41803 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41804 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41805 | fi | |
41806 | ||
41807 | COND_TOOLKIT_MGL="#" | |
41808 | if test "x$TOOLKIT" = "xMGL" ; then | |
41809 | COND_TOOLKIT_MGL="" | |
41810 | fi | |
41811 | ||
41812 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
41813 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
41814 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
41815 | fi | |
41816 | ||
41817 | COND_TOOLKIT_MOTIF="#" | |
41818 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
41819 | COND_TOOLKIT_MOTIF="" | |
41820 | fi | |
41821 | ||
41822 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
41823 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
41824 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
41825 | fi | |
41826 | ||
41827 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
41828 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41829 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
41830 | fi | |
41831 | ||
41832 | COND_TOOLKIT_MSW="#" | |
41833 | if test "x$TOOLKIT" = "xMSW" ; then | |
41834 | COND_TOOLKIT_MSW="" | |
41835 | fi | |
41836 | ||
41837 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
41838 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
41839 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
41840 | fi | |
41841 | ||
41842 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
41843 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41844 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
41845 | fi | |
41846 | ||
41847 | COND_TOOLKIT_PM="#" | |
41848 | if test "x$TOOLKIT" = "xPM" ; then | |
41849 | COND_TOOLKIT_PM="" | |
41850 | fi | |
41851 | ||
41852 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
41853 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
41854 | COND_TOOLKIT_PM_USE_GUI_1="" | |
41855 | fi | |
41856 | ||
41857 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
41858 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41859 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
41860 | fi | |
41861 | ||
3fd9c298 DE |
41862 | COND_TOOLKIT_WINCE="#" |
41863 | if test "x$TOOLKIT" = "xWINCE" ; then | |
41864 | COND_TOOLKIT_WINCE="" | |
41865 | fi | |
41866 | ||
41867 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
41868 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
41869 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
41870 | fi | |
41871 | ||
41872 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
41873 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41874 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
41875 | fi | |
41876 | ||
a848cd7e SC |
41877 | COND_TOOLKIT_X11="#" |
41878 | if test "x$TOOLKIT" = "xX11" ; then | |
41879 | COND_TOOLKIT_X11="" | |
41880 | fi | |
41881 | ||
41882 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
41883 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
41884 | COND_TOOLKIT_X11_USE_GUI_1="" | |
41885 | fi | |
41886 | ||
41887 | COND_UNICODE_1="#" | |
41888 | if test "x$UNICODE" = "x1" ; then | |
41889 | COND_UNICODE_1="" | |
41890 | fi | |
41891 | ||
41892 | COND_USE_EXCEPTIONS_0="#" | |
41893 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
41894 | COND_USE_EXCEPTIONS_0="" | |
41895 | fi | |
41896 | ||
41897 | COND_USE_EXCEPTIONS_1="#" | |
41898 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
41899 | COND_USE_EXCEPTIONS_1="" | |
41900 | fi | |
41901 | ||
41902 | COND_USE_GUI_0="#" | |
41903 | if test "x$USE_GUI" = "x0" ; then | |
41904 | COND_USE_GUI_0="" | |
41905 | fi | |
41906 | ||
41907 | COND_USE_GUI_1="#" | |
41908 | if test "x$USE_GUI" = "x1" ; then | |
41909 | COND_USE_GUI_1="" | |
41910 | fi | |
41911 | ||
41912 | COND_USE_GUI_1_WXUNIV_0="#" | |
41913 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41914 | COND_USE_GUI_1_WXUNIV_0="" | |
41915 | fi | |
41916 | ||
41917 | COND_USE_GUI_1_WXUNIV_1="#" | |
41918 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
41919 | COND_USE_GUI_1_WXUNIV_1="" | |
41920 | fi | |
41921 | ||
41922 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41923 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41924 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41925 | fi | |
41926 | ||
41927 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41928 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41929 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41930 | fi | |
41931 | ||
41932 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41933 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41934 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41935 | fi | |
41936 | ||
ceec2216 RL |
41937 | COND_USE_ODBC_1="#" |
41938 | if test "x$USE_ODBC" = "x1" ; then | |
41939 | COND_USE_ODBC_1="" | |
41940 | fi | |
41941 | ||
ffa0583f RL |
41942 | COND_USE_OPENGL_1="#" |
41943 | if test "x$USE_OPENGL" = "x1" ; then | |
41944 | COND_USE_OPENGL_1="" | |
41945 | fi | |
41946 | ||
a848cd7e SC |
41947 | COND_USE_PLUGINS_0="#" |
41948 | if test "x$USE_PLUGINS" = "x0" ; then | |
41949 | COND_USE_PLUGINS_0="" | |
41950 | fi | |
41951 | ||
41952 | COND_USE_SOSYMLINKS_1="#" | |
41953 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
41954 | COND_USE_SOSYMLINKS_1="" | |
41955 | fi | |
41956 | ||
41957 | COND_USE_SOVERLINUX_1="#" | |
41958 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
41959 | COND_USE_SOVERLINUX_1="" | |
41960 | fi | |
41961 | ||
41962 | COND_USE_SOVERSION_0="#" | |
41963 | if test "x$USE_SOVERSION" = "x0" ; then | |
41964 | COND_USE_SOVERSION_0="" | |
41965 | fi | |
41966 | ||
41967 | COND_USE_SOVERSOLARIS_1="#" | |
41968 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41969 | COND_USE_SOVERSOLARIS_1="" | |
41970 | fi | |
41971 | ||
a13a7f89 RL |
41972 | COND_USE_XRC_1="#" |
41973 | if test "x$USE_XRC" = "x1" ; then | |
41974 | COND_USE_XRC_1="" | |
41975 | fi | |
41976 | ||
a848cd7e SC |
41977 | COND_WITH_PLUGIN_SDL_1="#" |
41978 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41979 | COND_WITH_PLUGIN_SDL_1="" | |
41980 | fi | |
41981 | ||
1e6eb025 VZ |
41982 | COND_WXUNIV_0="#" |
41983 | if test "x$WXUNIV" = "x0" ; then | |
41984 | COND_WXUNIV_0="" | |
41985 | fi | |
41986 | ||
a848cd7e SC |
41987 | COND_WXUNIV_1="#" |
41988 | if test "x$WXUNIV" = "x1" ; then | |
41989 | COND_WXUNIV_1="" | |
41990 | fi | |
41991 | ||
41992 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41993 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41994 | COND_WXUSE_EXPAT_BUILTIN="" | |
41995 | fi | |
41996 | ||
41997 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41998 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41999 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
42000 | fi | |
42001 | ||
42002 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
42003 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42004 | COND_WXUSE_LIBPNG_BUILTIN="" | |
42005 | fi | |
42006 | ||
42007 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
42008 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42009 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
42010 | fi | |
42011 | ||
42012 | COND_WXUSE_ODBC_BUILTIN="#" | |
42013 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
42014 | COND_WXUSE_ODBC_BUILTIN="" | |
42015 | fi | |
42016 | ||
42017 | COND_WXUSE_REGEX_BUILTIN="#" | |
42018 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
42019 | COND_WXUSE_REGEX_BUILTIN="" | |
42020 | fi | |
42021 | ||
42022 | COND_WXUSE_ZLIB_BUILTIN="#" | |
42023 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
42024 | COND_WXUSE_ZLIB_BUILTIN="" | |
42025 | fi | |
42026 | ||
42027 | ||
42028 | ||
2057db16 VS |
42029 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
42030 | { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5 | |
42031 | echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;} | |
42032 | { (exit 1); exit 1; }; } | |
42033 | fi | |
42034 | ||
a848cd7e | 42035 | |
ceec2216 RL |
42036 | if test "$wxUSE_SHARED" = "yes"; then |
42037 | ||
42038 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
42039 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
42040 | ||
5b674b9d DE |
42041 | case "${host}" in |
42042 | *-pc-os2_emx | *-pc-os2-emx ) | |
42043 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42044 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42045 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
42046 | cp -p ${srcdir}/src/os2/dllar.sh . | |
42047 | ;; | |
42048 | esac | |
ceec2216 RL |
42049 | else |
42050 | ||
42051 | EXE_LINKER="$CXX -o" | |
42052 | ||
42053 | fi | |
a848cd7e | 42054 | |
74b84332 | 42055 | GCC_PRAGMA_FLAGS="" |
c08ebc62 DE |
42056 | PCH_FLAGS="" |
42057 | if test $GCC_PCH = 1 ; then | |
42058 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42059 | PCH_FLAGS="-DWX_PRECOMP" | |
42060 | else | |
a848cd7e SC |
42061 | case "${host}" in |
42062 | powerpc-*-darwin* ) | |
74b84332 | 42063 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 42064 | ;; |
bea8e651 | 42065 | *-*-mingw32* ) |
1f344abf VS |
42066 | if test "$wxUSE_STL" = "yes" -o \ |
42067 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
42068 | "$wxUSE_NO_RTTI" != "yes"; then | |
42069 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
42070 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
42071 | cat >conftest.$ac_ext <<_ACEOF |
42072 | /* confdefs.h. */ | |
42073 | _ACEOF | |
42074 | cat confdefs.h >>conftest.$ac_ext | |
42075 | cat >>conftest.$ac_ext <<_ACEOF | |
42076 | /* end confdefs.h. */ | |
42077 | ||
3314e67b RR |
42078 | int |
42079 | main () | |
42080 | { | |
42081 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
42082 | #error "Not GCC 3.2 or greater" | |
42083 | #endif | |
42084 | ||
42085 | ; | |
42086 | return 0; | |
42087 | } | |
42088 | _ACEOF | |
42089 | rm -f conftest.$ac_objext | |
42090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42091 | (eval $ac_compile) 2>conftest.er1 | |
42092 | ac_status=$? | |
42093 | grep -v '^ *+' conftest.er1 >conftest.err | |
42094 | rm -f conftest.er1 | |
42095 | cat conftest.err >&5 | |
42096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42097 | (exit $ac_status); } && | |
89be85c2 VS |
42098 | { ac_try='test -z "$ac_c_werror_flag" |
42099 | || test ! -s conftest.err' | |
3314e67b RR |
42100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42101 | (eval $ac_try) 2>&5 | |
42102 | ac_status=$? | |
42103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42104 | (exit $ac_status); }; } && | |
42105 | { ac_try='test -s conftest.$ac_objext' | |
42106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42107 | (eval $ac_try) 2>&5 | |
42108 | ac_status=$? | |
42109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42110 | (exit $ac_status); }; }; then | |
42111 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42112 | echo "$as_me:$LINENO: result: yes" >&5 | |
42113 | echo "${ECHO_T}yes" >&6 | |
42114 | else | |
42115 | echo "$as_me: failed program was:" >&5 | |
42116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42117 | ||
42118 | echo "$as_me:$LINENO: result: no" >&5 | |
42119 | echo "${ECHO_T}no" >&6 | |
42120 | fi | |
42121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42122 | fi | |
42123 | ;; | |
42124 | *-pc-os2_emx | *-pc-os2-emx ) | |
42125 | if test "$wxUSE_STL" = "yes"; then | |
42126 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
42127 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
42128 | cat >conftest.$ac_ext <<_ACEOF | |
42129 | /* confdefs.h. */ | |
42130 | _ACEOF | |
42131 | cat confdefs.h >>conftest.$ac_ext | |
42132 | cat >>conftest.$ac_ext <<_ACEOF | |
42133 | /* end confdefs.h. */ | |
42134 | ||
bea8e651 MB |
42135 | int |
42136 | main () | |
42137 | { | |
1f344abf | 42138 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
42139 | #error "Not GCC 3.2 or greater" |
42140 | #endif | |
42141 | ||
42142 | ; | |
42143 | return 0; | |
42144 | } | |
42145 | _ACEOF | |
42146 | rm -f conftest.$ac_objext | |
42147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42148 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 42149 | ac_status=$? |
ac1cb8d3 VS |
42150 | grep -v '^ *+' conftest.er1 >conftest.err |
42151 | rm -f conftest.er1 | |
42152 | cat conftest.err >&5 | |
bea8e651 MB |
42153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42154 | (exit $ac_status); } && | |
89be85c2 VS |
42155 | { ac_try='test -z "$ac_c_werror_flag" |
42156 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42158 | (eval $ac_try) 2>&5 | |
42159 | ac_status=$? | |
42160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42161 | (exit $ac_status); }; } && | |
42162 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
42163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42164 | (eval $ac_try) 2>&5 | |
42165 | ac_status=$? | |
42166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42167 | (exit $ac_status); }; }; then | |
74b84332 | 42168 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
42169 | echo "$as_me:$LINENO: result: yes" >&5 |
42170 | echo "${ECHO_T}yes" >&6 | |
42171 | else | |
42172 | echo "$as_me: failed program was:" >&5 | |
42173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42174 | ||
42175 | echo "$as_me:$LINENO: result: no" >&5 | |
42176 | echo "${ECHO_T}no" >&6 | |
42177 | fi | |
ac1cb8d3 | 42178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
42179 | fi |
42180 | ;; | |
a848cd7e SC |
42181 | esac |
42182 | fi | |
d2083416 | 42183 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
42184 | |
42185 | ||
42186 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
42187 | ||
42188 | ||
42189 | ||
42190 | ||
42191 | ||
42192 | ||
42193 | ||
42194 | ||
42195 | ||
42196 | ||
42197 | ||
42198 | ||
42199 | ||
42200 | ||
42201 | ||
42202 | ||
42203 | ||
42204 | ||
42205 | ||
42206 | ||
42207 | ||
42208 | ||
42209 | ||
42210 | ||
42211 | ||
42212 | ||
42213 | ||
42214 | ||
42215 | ||
42216 | ||
42217 | ||
42218 | ||
42219 | ||
42220 | ||
42221 | ||
42222 | ||
42223 | ||
42224 | ||
42225 | ||
42226 | ||
42227 | ||
42228 | ||
a848cd7e SC |
42229 | |
42230 | ||
42231 | ||
42232 | ||
42233 | ||
42234 | ||
42235 | ||
42236 | ||
42237 | ||
42238 | ||
42239 | ||
42240 | ||
42241 | ||
42242 | ||
42243 | ||
42244 | ||
42245 | ||
42246 | ||
74b84332 | 42247 | |
a848cd7e SC |
42248 | |
42249 | ||
42250 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
42251 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 42252 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
42253 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
42254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42255 | else | |
42256 | cat >conftest.make <<\_ACEOF | |
42257 | all: | |
42258 | @echo 'ac_maketemp="$(MAKE)"' | |
42259 | _ACEOF | |
42260 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
42261 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
42262 | if test -n "$ac_maketemp"; then | |
42263 | eval ac_cv_prog_make_${ac_make}_set=yes | |
42264 | else | |
42265 | eval ac_cv_prog_make_${ac_make}_set=no | |
42266 | fi | |
42267 | rm -f conftest.make | |
42268 | fi | |
42269 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
42270 | echo "$as_me:$LINENO: result: yes" >&5 | |
42271 | echo "${ECHO_T}yes" >&6 | |
42272 | SET_MAKE= | |
42273 | else | |
42274 | echo "$as_me:$LINENO: result: no" >&5 | |
42275 | echo "${ECHO_T}no" >&6 | |
42276 | SET_MAKE="MAKE=${MAKE-make}" | |
42277 | fi | |
42278 | ||
42279 | ||
a848cd7e | 42280 | |
ceec2216 RL |
42281 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
42282 | ||
a848cd7e | 42283 | |
ceec2216 | 42284 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 42285 | |
a848cd7e | 42286 | |
ceec2216 | 42287 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 42288 | |
ceec2216 RL |
42289 | |
42290 | ac_config_files="$ac_config_files version-script Makefile" | |
42291 | ||
42292 | ||
42293 | ac_config_commands="$ac_config_commands wx-config | |
42294 | " | |
a848cd7e SC |
42295 | |
42296 | ||
9103d280 RL |
42297 | |
42298 | ||
a848cd7e SC |
42299 | if test "$wxUSE_GUI" = "yes"; then |
42300 | SUBDIRS="samples demos utils contrib" | |
42301 | else SUBDIRS="samples utils" | |
42302 | fi | |
42303 | ||
42304 | ||
42305 | ||
42306 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
42307 | if test "${with_cppunit_prefix+set}" = set; then | |
42308 | withval="$with_cppunit_prefix" | |
42309 | cppunit_config_prefix="$withval" | |
42310 | else | |
42311 | cppunit_config_prefix="" | |
42312 | fi; | |
42313 | ||
42314 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
42315 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
42316 | withval="$with_cppunit_exec_prefix" | |
42317 | cppunit_config_exec_prefix="$withval" | |
42318 | else | |
42319 | cppunit_config_exec_prefix="" | |
42320 | fi; | |
42321 | ||
42322 | if test x$cppunit_config_exec_prefix != x ; then | |
42323 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
42324 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42325 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
42326 | fi | |
42327 | fi | |
42328 | if test x$cppunit_config_prefix != x ; then | |
42329 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
42330 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42331 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
42332 | fi | |
42333 | fi | |
42334 | ||
42335 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
42336 | set dummy cppunit-config; ac_word=$2 | |
42337 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42339 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
42340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42341 | else | |
42342 | case $CPPUNIT_CONFIG in | |
42343 | [\\/]* | ?:[\\/]*) | |
42344 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
42345 | ;; | |
42346 | *) | |
42347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42348 | for as_dir in $PATH | |
42349 | do | |
42350 | IFS=$as_save_IFS | |
42351 | test -z "$as_dir" && as_dir=. | |
42352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42353 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42354 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42356 | break 2 | |
42357 | fi | |
42358 | done | |
42359 | done | |
42360 | ||
42361 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
42362 | ;; | |
42363 | esac | |
42364 | fi | |
42365 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
42366 | ||
42367 | if test -n "$CPPUNIT_CONFIG"; then | |
42368 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
42369 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
42370 | else | |
42371 | echo "$as_me:$LINENO: result: no" >&5 | |
42372 | echo "${ECHO_T}no" >&6 | |
42373 | fi | |
42374 | ||
42375 | cppunit_version_min=1.8.0 | |
42376 | ||
42377 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
42378 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
42379 | no_cppunit="" | |
42380 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
42381 | no_cppunit=yes | |
42382 | else | |
42383 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
42384 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
42385 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
42386 | ||
42387 | cppunit_major_version=`echo $cppunit_version | \ | |
42388 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42389 | cppunit_minor_version=`echo $cppunit_version | \ | |
42390 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42391 | cppunit_micro_version=`echo $cppunit_version | \ | |
42392 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42393 | ||
42394 | cppunit_major_min=`echo $cppunit_version_min | \ | |
42395 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42396 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
42397 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42398 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
42399 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42400 | ||
42401 | cppunit_version_proper=`expr \ | |
42402 | $cppunit_major_version \> $cppunit_major_min \| \ | |
42403 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42404 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
42405 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42406 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
42407 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
42408 | ||
42409 | if test "$cppunit_version_proper" = "1" ; then | |
42410 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
42411 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
42412 | else | |
42413 | echo "$as_me:$LINENO: result: no" >&5 | |
42414 | echo "${ECHO_T}no" >&6 | |
42415 | no_cppunit=yes | |
42416 | fi | |
42417 | fi | |
42418 | ||
42419 | if test "x$no_cppunit" = x ; then | |
c2218763 | 42420 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
42421 | else |
42422 | CPPUNIT_CFLAGS="" | |
42423 | CPPUNIT_LIBS="" | |
c2218763 | 42424 | : |
a848cd7e SC |
42425 | fi |
42426 | ||
42427 | ||
42428 | ||
42429 | ||
42430 | ||
42431 | for subdir in `echo $SUBDIRS`; do | |
42432 | if test -d ${srcdir}/${subdir} ; then | |
42433 | if test "$wxUSE_GUI" = "yes"; then | |
42434 | if test ${subdir} = "samples"; then | |
42435 | makefiles="samples/Makefile.in $makefiles" | |
42436 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
42437 | if test -d $srcdir/samples/$sample; then | |
42438 | makefiles="samples/$sample/Makefile.in $makefiles" | |
42439 | fi | |
42440 | done | |
42441 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
42442 | fi | |
42443 | else if test ${subdir} = "samples"; then | |
42444 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
42445 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
42446 | makefiles="" |
42447 | for util in HelpGen tex2rtf ; do | |
42448 | if test -d $srcdir/utils/$util ; then | |
42449 | makefiles="utils/$util/Makefile.in \ | |
42450 | utils/$util/src/Makefile.in \ | |
42451 | $makefiles" | |
42452 | fi | |
42453 | done | |
a848cd7e SC |
42454 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
42455 | fi | |
42456 | fi | |
42457 | ||
42458 | for mkin in $makefiles ; do | |
42459 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
42460 | ac_config_files="$ac_config_files $mk" | |
42461 | ||
42462 | done | |
42463 | fi | |
42464 | done | |
42465 | ||
42466 | ||
42467 | cat >confcache <<\_ACEOF | |
42468 | # This file is a shell script that caches the results of configure | |
42469 | # tests run on this system so they can be shared between configure | |
42470 | # scripts and configure runs, see configure's option --config-cache. | |
42471 | # It is not useful on other systems. If it contains results you don't | |
42472 | # want to keep, you may remove or edit it. | |
42473 | # | |
42474 | # config.status only pays attention to the cache file if you give it | |
42475 | # the --recheck option to rerun configure. | |
42476 | # | |
42477 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
42478 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
42479 | # following values. | |
42480 | ||
42481 | _ACEOF | |
42482 | ||
42483 | # The following way of writing the cache mishandles newlines in values, | |
42484 | # but we know of no workaround that is simple, portable, and efficient. | |
42485 | # So, don't put newlines in cache variables' values. | |
42486 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
42487 | # and sets the high bit in the cache file unless we assign to the vars. | |
42488 | { | |
42489 | (set) 2>&1 | | |
42490 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
42491 | *ac_space=\ *) | |
42492 | # `set' does not quote correctly, so add quotes (double-quote | |
42493 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
42494 | sed -n \ | |
ac1cb8d3 VS |
42495 | "s/'/'\\\\''/g; |
42496 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
42497 | ;; |
42498 | *) | |
42499 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
42500 | sed -n \ | |
ac1cb8d3 | 42501 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
42502 | ;; |
42503 | esac; | |
42504 | } | | |
42505 | sed ' | |
42506 | t clear | |
42507 | : clear | |
42508 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
42509 | t end | |
42510 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
42511 | : end' >>confcache | |
42512 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
42513 | if test -w $cache_file; then | |
42514 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
42515 | cat confcache >$cache_file | |
42516 | else | |
42517 | echo "not updating unwritable cache $cache_file" | |
42518 | fi | |
42519 | fi | |
42520 | rm -f confcache | |
42521 | ||
42522 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
42523 | # Let make expand exec_prefix. | |
42524 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
42525 | ||
42526 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
42527 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
42528 | # trailing colons and then remove the whole line if VPATH becomes empty | |
42529 | # (actually we leave an empty line to preserve line numbers). | |
42530 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 42531 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
42532 | s/:*\$(srcdir):*/:/; |
42533 | s/:*\${srcdir}:*/:/; | |
42534 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 42535 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 42536 | s/:*$//; |
ac1cb8d3 | 42537 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
42538 | }' |
42539 | fi | |
42540 | ||
42541 | DEFS=-DHAVE_CONFIG_H | |
42542 | ||
42543 | ac_libobjs= | |
42544 | ac_ltlibobjs= | |
42545 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
42546 | # 1. Remove the extension, and $U if already installed. | |
42547 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 42548 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
42549 | # 2. Add them. |
42550 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
42551 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
42552 | done | |
42553 | LIBOBJS=$ac_libobjs | |
42554 | ||
42555 | LTLIBOBJS=$ac_ltlibobjs | |
42556 | ||
42557 | ||
42558 | ||
42559 | : ${CONFIG_STATUS=./config.status} | |
42560 | ac_clean_files_save=$ac_clean_files | |
42561 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
42562 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
42563 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
42564 | cat >$CONFIG_STATUS <<_ACEOF | |
42565 | #! $SHELL | |
42566 | # Generated by $as_me. | |
42567 | # Run this file to recreate the current configuration. | |
42568 | # Compiler output produced by configure, useful for debugging | |
42569 | # configure, is in config.log if it exists. | |
42570 | ||
42571 | debug=false | |
42572 | ac_cs_recheck=false | |
42573 | ac_cs_silent=false | |
42574 | SHELL=\${CONFIG_SHELL-$SHELL} | |
42575 | _ACEOF | |
42576 | ||
42577 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42578 | ## --------------------- ## | |
42579 | ## M4sh Initialization. ## | |
42580 | ## --------------------- ## | |
42581 | ||
42582 | # Be Bourne compatible | |
42583 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
42584 | emulate sh | |
42585 | NULLCMD=: | |
42586 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
42587 | # is contrary to our usage. Disable this feature. | |
42588 | alias -g '${1+"$@"}'='"$@"' | |
42589 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
42590 | set -o posix | |
42591 | fi | |
ac1cb8d3 | 42592 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
42593 | |
42594 | # Support unset when possible. | |
ac1cb8d3 | 42595 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
42596 | as_unset=unset |
42597 | else | |
42598 | as_unset=false | |
42599 | fi | |
42600 | ||
42601 | ||
42602 | # Work around bugs in pre-3.0 UWIN ksh. | |
42603 | $as_unset ENV MAIL MAILPATH | |
42604 | PS1='$ ' | |
42605 | PS2='> ' | |
42606 | PS4='+ ' | |
42607 | ||
42608 | # NLS nuisances. | |
42609 | for as_var in \ | |
42610 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
42611 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42612 | LC_TELEPHONE LC_TIME | |
42613 | do | |
ac1cb8d3 | 42614 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
42615 | eval $as_var=C; export $as_var |
42616 | else | |
42617 | $as_unset $as_var | |
42618 | fi | |
42619 | done | |
42620 | ||
42621 | # Required to use basename. | |
42622 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42623 | as_expr=expr | |
42624 | else | |
42625 | as_expr=false | |
42626 | fi | |
42627 | ||
42628 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
42629 | as_basename=basename | |
42630 | else | |
42631 | as_basename=false | |
42632 | fi | |
42633 | ||
42634 | ||
42635 | # Name of the executable. | |
42636 | as_me=`$as_basename "$0" || | |
42637 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
42638 | X"$0" : 'X\(//\)$' \| \ | |
42639 | X"$0" : 'X\(/\)$' \| \ | |
42640 | . : '\(.\)' 2>/dev/null || | |
42641 | echo X/"$0" | | |
42642 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
42643 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
42644 | /^X\/\(\/\).*/{ s//\1/; q; } | |
42645 | s/.*/./; q'` | |
42646 | ||
42647 | ||
42648 | # PATH needs CR, and LINENO needs CR and PATH. | |
42649 | # Avoid depending upon Character Ranges. | |
42650 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
42651 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
42652 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
42653 | as_cr_digits='0123456789' | |
42654 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42655 | ||
42656 | # The user is always right. | |
42657 | if test "${PATH_SEPARATOR+set}" != set; then | |
42658 | echo "#! /bin/sh" >conf$$.sh | |
42659 | echo "exit 0" >>conf$$.sh | |
42660 | chmod +x conf$$.sh | |
42661 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
42662 | PATH_SEPARATOR=';' | |
42663 | else | |
42664 | PATH_SEPARATOR=: | |
42665 | fi | |
42666 | rm -f conf$$.sh | |
42667 | fi | |
42668 | ||
42669 | ||
42670 | as_lineno_1=$LINENO | |
42671 | as_lineno_2=$LINENO | |
42672 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42673 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42674 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
42675 | # Find who we are. Look in the path if we contain no path at all | |
42676 | # relative or not. | |
42677 | case $0 in | |
42678 | *[\\/]* ) as_myself=$0 ;; | |
42679 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42680 | for as_dir in $PATH | |
42681 | do | |
42682 | IFS=$as_save_IFS | |
42683 | test -z "$as_dir" && as_dir=. | |
42684 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
42685 | done | |
42686 | ||
42687 | ;; | |
42688 | esac | |
42689 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
42690 | # in which case we are not to be found in the path. | |
42691 | if test "x$as_myself" = x; then | |
42692 | as_myself=$0 | |
42693 | fi | |
42694 | if test ! -f "$as_myself"; then | |
42695 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
42696 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
42697 | { (exit 1); exit 1; }; } | |
42698 | fi | |
42699 | case $CONFIG_SHELL in | |
42700 | '') | |
42701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42702 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42703 | do | |
42704 | IFS=$as_save_IFS | |
42705 | test -z "$as_dir" && as_dir=. | |
42706 | for as_base in sh bash ksh sh5; do | |
42707 | case $as_dir in | |
42708 | /*) | |
42709 | if ("$as_dir/$as_base" -c ' | |
42710 | as_lineno_1=$LINENO | |
42711 | as_lineno_2=$LINENO | |
42712 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42713 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42714 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
42715 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
42716 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
42717 | CONFIG_SHELL=$as_dir/$as_base | |
42718 | export CONFIG_SHELL | |
42719 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
42720 | fi;; | |
42721 | esac | |
42722 | done | |
42723 | done | |
42724 | ;; | |
42725 | esac | |
42726 | ||
42727 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
42728 | # uniformly replaced by the line number. The first 'sed' inserts a | |
42729 | # line-number line before each line; the second 'sed' does the real | |
42730 | # work. The second script uses 'N' to pair each line-number line | |
42731 | # with the numbered line, and appends trailing '-' during | |
42732 | # substitution so that $LINENO is not a special case at line end. | |
42733 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
42734 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
42735 | sed '=' <$as_myself | | |
42736 | sed ' | |
42737 | N | |
42738 | s,$,-, | |
42739 | : loop | |
42740 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
42741 | t loop | |
42742 | s,-$,, | |
42743 | s,^['$as_cr_digits']*\n,, | |
42744 | ' >$as_me.lineno && | |
42745 | chmod +x $as_me.lineno || | |
42746 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
42747 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
42748 | { (exit 1); exit 1; }; } | |
42749 | ||
42750 | # Don't try to exec as it changes $[0], causing all sort of problems | |
42751 | # (the dirname of $[0] is not the place where we might find the | |
42752 | # original and so on. Autoconf is especially sensible to this). | |
42753 | . ./$as_me.lineno | |
42754 | # Exit status is that of the last command. | |
42755 | exit | |
42756 | } | |
42757 | ||
42758 | ||
42759 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
42760 | *c*,-n*) ECHO_N= ECHO_C=' | |
42761 | ' ECHO_T=' ' ;; | |
42762 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
42763 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
42764 | esac | |
42765 | ||
42766 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42767 | as_expr=expr | |
42768 | else | |
42769 | as_expr=false | |
42770 | fi | |
42771 | ||
42772 | rm -f conf$$ conf$$.exe conf$$.file | |
42773 | echo >conf$$.file | |
42774 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42775 | # We could just check for DJGPP; but this test a) works b) is more generic | |
42776 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
42777 | if test -f conf$$.exe; then | |
42778 | # Don't use ln at all; we don't have any links | |
42779 | as_ln_s='cp -p' | |
42780 | else | |
42781 | as_ln_s='ln -s' | |
42782 | fi | |
42783 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
42784 | as_ln_s=ln | |
42785 | else | |
42786 | as_ln_s='cp -p' | |
42787 | fi | |
42788 | rm -f conf$$ conf$$.exe conf$$.file | |
42789 | ||
42790 | if mkdir -p . 2>/dev/null; then | |
42791 | as_mkdir_p=: | |
42792 | else | |
ac1cb8d3 | 42793 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
42794 | as_mkdir_p=false |
42795 | fi | |
42796 | ||
42797 | as_executable_p="test -f" | |
42798 | ||
42799 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 42800 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42801 | |
42802 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 42803 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42804 | |
42805 | ||
42806 | # IFS | |
42807 | # We need space, tab and new line, in precisely that order. | |
42808 | as_nl=' | |
42809 | ' | |
42810 | IFS=" $as_nl" | |
42811 | ||
42812 | # CDPATH. | |
42813 | $as_unset CDPATH | |
42814 | ||
42815 | exec 6>&1 | |
42816 | ||
42817 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
42818 | # report actual input values of CONFIG_FILES etc. instead of their | |
42819 | # values after options handling. Logging --version etc. is OK. | |
42820 | exec 5>>config.log | |
42821 | { | |
42822 | echo | |
42823 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
42824 | ## Running $as_me. ## | |
42825 | _ASBOX | |
42826 | } >&5 | |
42827 | cat >&5 <<_CSEOF | |
42828 | ||
81f90336 | 42829 | This file was extended by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 42830 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
42831 | |
42832 | CONFIG_FILES = $CONFIG_FILES | |
42833 | CONFIG_HEADERS = $CONFIG_HEADERS | |
42834 | CONFIG_LINKS = $CONFIG_LINKS | |
42835 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
42836 | $ $0 $@ | |
42837 | ||
42838 | _CSEOF | |
42839 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
42840 | echo >&5 | |
42841 | _ACEOF | |
42842 | ||
42843 | # Files that config.status was made for. | |
42844 | if test -n "$ac_config_files"; then | |
42845 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
42846 | fi | |
42847 | ||
42848 | if test -n "$ac_config_headers"; then | |
42849 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
42850 | fi | |
42851 | ||
42852 | if test -n "$ac_config_links"; then | |
42853 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
42854 | fi | |
42855 | ||
42856 | if test -n "$ac_config_commands"; then | |
42857 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
42858 | fi | |
42859 | ||
42860 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42861 | ||
42862 | ac_cs_usage="\ | |
42863 | \`$as_me' instantiates files from templates according to the | |
42864 | current configuration. | |
42865 | ||
42866 | Usage: $0 [OPTIONS] [FILE]... | |
42867 | ||
42868 | -h, --help print this help, then exit | |
42869 | -V, --version print version number, then exit | |
42870 | -q, --quiet do not print progress messages | |
42871 | -d, --debug don't remove temporary files | |
42872 | --recheck update $as_me by reconfiguring in the same conditions | |
42873 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 42874 | instantiate the configuration file FILE |
a848cd7e | 42875 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 42876 | instantiate the configuration header FILE |
a848cd7e SC |
42877 | |
42878 | Configuration files: | |
42879 | $config_files | |
42880 | ||
42881 | Configuration headers: | |
42882 | $config_headers | |
42883 | ||
42884 | Configuration commands: | |
42885 | $config_commands | |
42886 | ||
42887 | Report bugs to <bug-autoconf@gnu.org>." | |
42888 | _ACEOF | |
42889 | ||
42890 | cat >>$CONFIG_STATUS <<_ACEOF | |
42891 | ac_cs_version="\\ | |
81f90336 | 42892 | wxWidgets config.status 2.5.4 |
ac1cb8d3 | 42893 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
42894 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
42895 | ||
ac1cb8d3 | 42896 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
42897 | This config.status script is free software; the Free Software Foundation |
42898 | gives unlimited permission to copy, distribute and modify it." | |
42899 | srcdir=$srcdir | |
42900 | INSTALL="$INSTALL" | |
42901 | _ACEOF | |
42902 | ||
42903 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42904 | # If no file are specified by the user, then we need to provide default | |
42905 | # value. By we need to know if files were specified by the user. | |
42906 | ac_need_defaults=: | |
42907 | while test $# != 0 | |
42908 | do | |
42909 | case $1 in | |
42910 | --*=*) | |
42911 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
42912 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
42913 | ac_shift=: | |
42914 | ;; | |
42915 | -*) | |
42916 | ac_option=$1 | |
42917 | ac_optarg=$2 | |
42918 | ac_shift=shift | |
42919 | ;; | |
42920 | *) # This is not an option, so the user has probably given explicit | |
42921 | # arguments. | |
42922 | ac_option=$1 | |
42923 | ac_need_defaults=false;; | |
42924 | esac | |
42925 | ||
42926 | case $ac_option in | |
42927 | # Handling of the options. | |
42928 | _ACEOF | |
42929 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42930 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
42931 | ac_cs_recheck=: ;; | |
42932 | --version | --vers* | -V ) | |
42933 | echo "$ac_cs_version"; exit 0 ;; | |
42934 | --he | --h) | |
42935 | # Conflict between --help and --header | |
42936 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
42937 | Try \`$0 --help' for more information." >&5 | |
42938 | echo "$as_me: error: ambiguous option: $1 | |
42939 | Try \`$0 --help' for more information." >&2;} | |
42940 | { (exit 1); exit 1; }; };; | |
42941 | --help | --hel | -h ) | |
42942 | echo "$ac_cs_usage"; exit 0 ;; | |
42943 | --debug | --d* | -d ) | |
42944 | debug=: ;; | |
42945 | --file | --fil | --fi | --f ) | |
42946 | $ac_shift | |
42947 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
42948 | ac_need_defaults=false;; | |
42949 | --header | --heade | --head | --hea ) | |
42950 | $ac_shift | |
42951 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
42952 | ac_need_defaults=false;; | |
42953 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
42954 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
42955 | ac_cs_silent=: ;; | |
42956 | ||
42957 | # This is an error. | |
42958 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
42959 | Try \`$0 --help' for more information." >&5 | |
42960 | echo "$as_me: error: unrecognized option: $1 | |
42961 | Try \`$0 --help' for more information." >&2;} | |
42962 | { (exit 1); exit 1; }; } ;; | |
42963 | ||
42964 | *) ac_config_targets="$ac_config_targets $1" ;; | |
42965 | ||
42966 | esac | |
42967 | shift | |
42968 | done | |
42969 | ||
42970 | ac_configure_extra_args= | |
42971 | ||
42972 | if $ac_cs_silent; then | |
42973 | exec 6>/dev/null | |
42974 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
42975 | fi | |
42976 | ||
42977 | _ACEOF | |
42978 | cat >>$CONFIG_STATUS <<_ACEOF | |
42979 | if \$ac_cs_recheck; then | |
42980 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
42981 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
42982 | fi | |
42983 | ||
42984 | _ACEOF | |
42985 | ||
42986 | cat >>$CONFIG_STATUS <<_ACEOF | |
42987 | # | |
42988 | # INIT-COMMANDS section. | |
42989 | # | |
42990 | ||
ceec2216 RL |
42991 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
42992 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42993 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42994 | LN_S="${LN_S}" | |
a848cd7e SC |
42995 | |
42996 | ||
42997 | _ACEOF | |
42998 | ||
42999 | ||
43000 | ||
43001 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43002 | for ac_config_target in $ac_config_targets | |
43003 | do | |
43004 | case "$ac_config_target" in | |
43005 | # Handling of arguments. | |
ceec2216 RL |
43006 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
43007 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
43008 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
43009 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
43010 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
43011 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
43012 | "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;; | |
a848cd7e SC |
43013 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
43014 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
43015 | { (exit 1); exit 1; }; };; | |
43016 | esac | |
43017 | done | |
43018 | ||
43019 | # If the user did not use the arguments to specify the items to instantiate, | |
43020 | # then the envvar interface is used. Set only those that are not. | |
43021 | # We use the long form for the default assignment because of an extremely | |
43022 | # bizarre bug on SunOS 4.1.3. | |
43023 | if $ac_need_defaults; then | |
43024 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
43025 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
43026 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
43027 | fi | |
43028 | ||
43029 | # Have a temporary directory for convenience. Make it in the build tree | |
43030 | # simply because there is no reason to put it here, and in addition, | |
43031 | # creating and moving files from /tmp can sometimes cause problems. | |
43032 | # Create a temporary directory, and hook for its removal unless debugging. | |
43033 | $debug || | |
43034 | { | |
43035 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
43036 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
43037 | } | |
43038 | ||
43039 | # Create a (secure) tmp directory for tmp files. | |
43040 | ||
43041 | { | |
43042 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
43043 | test -n "$tmp" && test -d "$tmp" | |
43044 | } || | |
43045 | { | |
43046 | tmp=./confstat$$-$RANDOM | |
43047 | (umask 077 && mkdir $tmp) | |
43048 | } || | |
43049 | { | |
43050 | echo "$me: cannot create a temporary directory in ." >&2 | |
43051 | { (exit 1); exit 1; } | |
43052 | } | |
43053 | ||
43054 | _ACEOF | |
43055 | ||
43056 | cat >>$CONFIG_STATUS <<_ACEOF | |
43057 | ||
43058 | # | |
43059 | # CONFIG_FILES section. | |
43060 | # | |
43061 | ||
43062 | # No need to generate the scripts if there are no CONFIG_FILES. | |
43063 | # This happens for instance when ./config.status config.h | |
43064 | if test -n "\$CONFIG_FILES"; then | |
43065 | # Protect against being on the right side of a sed subst in config.status. | |
43066 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
43067 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
43068 | s,@SHELL@,$SHELL,;t t | |
43069 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
43070 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
43071 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
43072 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
43073 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
43074 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
43075 | s,@exec_prefix@,$exec_prefix,;t t | |
43076 | s,@prefix@,$prefix,;t t | |
43077 | s,@program_transform_name@,$program_transform_name,;t t | |
43078 | s,@bindir@,$bindir,;t t | |
43079 | s,@sbindir@,$sbindir,;t t | |
43080 | s,@libexecdir@,$libexecdir,;t t | |
43081 | s,@datadir@,$datadir,;t t | |
43082 | s,@sysconfdir@,$sysconfdir,;t t | |
43083 | s,@sharedstatedir@,$sharedstatedir,;t t | |
43084 | s,@localstatedir@,$localstatedir,;t t | |
43085 | s,@libdir@,$libdir,;t t | |
43086 | s,@includedir@,$includedir,;t t | |
43087 | s,@oldincludedir@,$oldincludedir,;t t | |
43088 | s,@infodir@,$infodir,;t t | |
43089 | s,@mandir@,$mandir,;t t | |
43090 | s,@build_alias@,$build_alias,;t t | |
43091 | s,@host_alias@,$host_alias,;t t | |
43092 | s,@target_alias@,$target_alias,;t t | |
43093 | s,@DEFS@,$DEFS,;t t | |
43094 | s,@ECHO_C@,$ECHO_C,;t t | |
43095 | s,@ECHO_N@,$ECHO_N,;t t | |
43096 | s,@ECHO_T@,$ECHO_T,;t t | |
43097 | s,@LIBS@,$LIBS,;t t | |
43098 | s,@build@,$build,;t t | |
43099 | s,@build_cpu@,$build_cpu,;t t | |
43100 | s,@build_vendor@,$build_vendor,;t t | |
43101 | s,@build_os@,$build_os,;t t | |
43102 | s,@host@,$host,;t t | |
43103 | s,@host_cpu@,$host_cpu,;t t | |
43104 | s,@host_vendor@,$host_vendor,;t t | |
43105 | s,@host_os@,$host_os,;t t | |
43106 | s,@target@,$target,;t t | |
43107 | s,@target_cpu@,$target_cpu,;t t | |
43108 | s,@target_vendor@,$target_vendor,;t t | |
43109 | s,@target_os@,$target_os,;t t | |
43110 | s,@CC@,$CC,;t t | |
43111 | s,@CFLAGS@,$CFLAGS,;t t | |
43112 | s,@LDFLAGS@,$LDFLAGS,;t t | |
43113 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
43114 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
43115 | s,@EXEEXT@,$EXEEXT,;t t | |
43116 | s,@OBJEXT@,$OBJEXT,;t t | |
43117 | s,@CPP@,$CPP,;t t | |
43118 | s,@EGREP@,$EGREP,;t t | |
43119 | s,@CXX@,$CXX,;t t | |
43120 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
43121 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
43122 | s,@RANLIB@,$RANLIB,;t t | |
43123 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
43124 | s,@AR@,$AR,;t t | |
43125 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
43126 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
43127 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
43128 | s,@STRIP@,$STRIP,;t t | |
43129 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
43130 | s,@LN_S@,$LN_S,;t t | |
43131 | s,@CXXCPP@,$CXXCPP,;t t | |
43132 | s,@subdirs@,$subdirs,;t t | |
43133 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
43134 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
43135 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
43136 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
43137 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
43138 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
43139 | s,@X_LIBS@,$X_LIBS,;t t | |
43140 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
43141 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
43142 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
43143 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
43144 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
43145 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
43146 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
43147 | s,@RESCOMP@,$RESCOMP,;t t | |
43148 | s,@DEREZ@,$DEREZ,;t t | |
43149 | s,@SETFILE@,$SETFILE,;t t | |
43150 | s,@LIBICONV@,$LIBICONV,;t t | |
43151 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
43152 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
43153 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
43154 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
43155 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
43156 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
43157 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
43158 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
43159 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
43160 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
43161 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
43162 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
43163 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
43164 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
43165 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
43166 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
43167 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
43168 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
43169 | s,@VENDOR@,$VENDOR,;t t | |
43170 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
43171 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
43172 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
43173 | s,@WXUNIV@,$WXUNIV,;t t |
43174 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
43175 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
43176 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
43177 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
43178 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
43179 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
43180 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
43181 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
43182 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
43183 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 43184 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
43185 | s,@UNICODE@,$UNICODE,;t t |
43186 | s,@BUILD@,$BUILD,;t t | |
43187 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
43188 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
43189 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
43190 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
43191 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
43192 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
43193 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
43194 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
43195 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
43196 | s,@SET_MAKE@,$SET_MAKE,;t t | |
43197 | s,@MAKE_SET@,$MAKE_SET,;t t | |
43198 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
43199 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
43200 | s,@NM@,$NM,;t t | |
43201 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
43202 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
43203 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
43204 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
43205 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
43206 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
43207 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 43208 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
43209 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
43210 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 43211 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
43212 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
43213 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
43214 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
43215 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
43216 | s,@LIBEXT@,$LIBEXT,;t t | |
43217 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
43218 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
43219 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
43220 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
43221 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
43222 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
43223 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
43224 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
43225 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
43226 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
43227 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
43228 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
43229 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
43230 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
43231 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
43232 | s,@GCC_PCH@,$GCC_PCH,;t t | |
43233 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
43234 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
43235 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
43236 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
43237 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
43238 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
43239 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
43240 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
43241 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
43242 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
43243 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
43244 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
43245 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
43246 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
43247 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
43248 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
43249 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
43250 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 43251 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 43252 | 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 |
a848cd7e | 43253 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 43254 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
43255 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
43256 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 43257 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 43258 | 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 |
a848cd7e | 43259 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 43260 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
43261 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
43262 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
43263 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
43264 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
43265 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
43266 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
43267 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
43268 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 43269 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
43270 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
43271 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
43272 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 43273 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 43274 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
ebee3cd0 VS |
43275 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
43276 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
43277 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
43278 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 43279 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
43280 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
43281 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
43282 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
43283 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
43284 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
43285 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
43286 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
43287 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
43288 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
43289 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
43290 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
43291 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
43292 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
43293 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43294 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43295 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
43296 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
43297 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
43298 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
43299 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
43300 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
43301 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 43302 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 43303 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 43304 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
43305 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
43306 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
43307 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
43308 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
43309 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
43310 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
43311 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
43312 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
43313 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
43314 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
43315 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
43316 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
43317 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
43318 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
43319 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
43320 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
43321 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
43322 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
43323 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
43324 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
43325 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
43326 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
43327 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
43328 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
43329 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
43330 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
43331 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
43332 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
43333 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
43334 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
43335 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43336 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43337 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 43338 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 43339 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e SC |
43340 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
43341 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
43342 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
43343 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
43344 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 43345 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 43346 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 43347 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
43348 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
43349 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
43350 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
43351 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
43352 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
43353 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
43354 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
43355 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 43356 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
43357 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
43358 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
43359 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
43360 | s,@USE_GUI@,$USE_GUI,;t t | |
43361 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
43362 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
43363 | s,@TOOLKIT@,$TOOLKIT,;t t | |
43364 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 43365 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 43366 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
43367 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
43368 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 43369 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
43370 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
43371 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
43372 | s,@WX_VERSION@,$WX_VERSION,;t t | |
43373 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
43374 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
43375 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 43376 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
43377 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
43378 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
43379 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
43380 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 43381 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
43382 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
43383 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 43384 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 43385 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
43386 | s,@DISTDIR@,$DISTDIR,;t t |
43387 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
43388 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
43389 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
43390 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
43391 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
43392 | s,@RESFLAGS@,$RESFLAGS,;t t | |
43393 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
43394 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
43395 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
43396 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
43397 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
43398 | s,@MACSETFILE@,$MACSETFILE,;t t | |
43399 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
43400 | s,@GCC@,$GCC,;t t | |
a848cd7e | 43401 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
43402 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
43403 | s,@LIBOBJS@,$LIBOBJS,;t t | |
43404 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
43405 | CEOF | |
43406 | ||
43407 | _ACEOF | |
43408 | ||
43409 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43410 | # Split the substitutions into bite-sized pieces for seds with | |
43411 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
43412 | ac_max_sed_lines=48 | |
43413 | ac_sed_frag=1 # Number of current file. | |
43414 | ac_beg=1 # First line for current file. | |
43415 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
43416 | ac_more_lines=: | |
43417 | ac_sed_cmds= | |
43418 | while $ac_more_lines; do | |
43419 | if test $ac_beg -gt 1; then | |
43420 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43421 | else | |
43422 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43423 | fi | |
43424 | if test ! -s $tmp/subs.frag; then | |
43425 | ac_more_lines=false | |
43426 | else | |
43427 | # The purpose of the label and of the branching condition is to | |
43428 | # speed up the sed processing (if there are no `@' at all, there | |
43429 | # is no need to browse any of the substitutions). | |
43430 | # These are the two extra sed commands mentioned above. | |
43431 | (echo ':t | |
43432 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
43433 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 43434 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 43435 | else |
ac1cb8d3 | 43436 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
43437 | fi |
43438 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
43439 | ac_beg=$ac_end | |
43440 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
43441 | fi | |
43442 | done | |
43443 | if test -z "$ac_sed_cmds"; then | |
43444 | ac_sed_cmds=cat | |
43445 | fi | |
43446 | fi # test -n "$CONFIG_FILES" | |
43447 | ||
43448 | _ACEOF | |
43449 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43450 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
43451 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43452 | case $ac_file in | |
43453 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43454 | cat >$tmp/stdin |
43455 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43456 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43457 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43458 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43459 | * ) ac_file_in=$ac_file.in ;; |
43460 | esac | |
43461 | ||
43462 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
43463 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43464 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43465 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43466 | X"$ac_file" : 'X\(//\)$' \| \ | |
43467 | X"$ac_file" : 'X\(/\)' \| \ | |
43468 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43469 | echo X"$ac_file" | |
43470 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43471 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43472 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43473 | /^X\(\/\).*/{ s//\1/; q; } | |
43474 | s/.*/./; q'` | |
43475 | { if $as_mkdir_p; then | |
43476 | mkdir -p "$ac_dir" | |
43477 | else | |
43478 | as_dir="$ac_dir" | |
43479 | as_dirs= | |
43480 | while test ! -d "$as_dir"; do | |
43481 | as_dirs="$as_dir $as_dirs" | |
43482 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43483 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43484 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43485 | X"$as_dir" : 'X\(//\)$' \| \ | |
43486 | X"$as_dir" : 'X\(/\)' \| \ | |
43487 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43488 | echo X"$as_dir" | |
43489 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43490 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43491 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43492 | /^X\(\/\).*/{ s//\1/; q; } | |
43493 | s/.*/./; q'` | |
43494 | done | |
43495 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43496 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43497 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43498 | { (exit 1); exit 1; }; }; } | |
43499 | ||
43500 | ac_builddir=. | |
43501 | ||
43502 | if test "$ac_dir" != .; then | |
43503 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43504 | # A "../" for each directory in $ac_dir_suffix. | |
43505 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43506 | else | |
43507 | ac_dir_suffix= ac_top_builddir= | |
43508 | fi | |
43509 | ||
43510 | case $srcdir in | |
43511 | .) # No --srcdir option. We are building in place. | |
43512 | ac_srcdir=. | |
43513 | if test -z "$ac_top_builddir"; then | |
43514 | ac_top_srcdir=. | |
43515 | else | |
43516 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43517 | fi ;; | |
43518 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43519 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43520 | ac_top_srcdir=$srcdir ;; | |
43521 | *) # Relative path. | |
43522 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43523 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43524 | esac | |
ac1cb8d3 VS |
43525 | |
43526 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43527 | # the directories may not exist. | |
43528 | case `pwd` in | |
43529 | .) ac_abs_builddir="$ac_dir";; | |
43530 | *) | |
43531 | case "$ac_dir" in | |
43532 | .) ac_abs_builddir=`pwd`;; | |
43533 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43534 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43535 | esac;; | |
43536 | esac | |
43537 | case $ac_abs_builddir in | |
43538 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43539 | *) | |
43540 | case ${ac_top_builddir}. in | |
43541 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43542 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43543 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43544 | esac;; | |
43545 | esac | |
43546 | case $ac_abs_builddir in | |
43547 | .) ac_abs_srcdir=$ac_srcdir;; | |
43548 | *) | |
43549 | case $ac_srcdir in | |
43550 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43551 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43552 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43553 | esac;; | |
43554 | esac | |
43555 | case $ac_abs_builddir in | |
43556 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43557 | *) | |
43558 | case $ac_top_srcdir in | |
43559 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43560 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43561 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43562 | esac;; | |
43563 | esac | |
a848cd7e SC |
43564 | |
43565 | ||
43566 | case $INSTALL in | |
43567 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
43568 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
43569 | esac | |
43570 | ||
89be85c2 VS |
43571 | if test x"$ac_file" != x-; then |
43572 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
43573 | echo "$as_me: creating $ac_file" >&6;} | |
43574 | rm -f "$ac_file" | |
43575 | fi | |
a848cd7e SC |
43576 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
43577 | # use $as_me), people would be surprised to read: | |
43578 | # /* config.h. Generated by config.status. */ | |
43579 | if test x"$ac_file" = x-; then | |
43580 | configure_input= | |
43581 | else | |
43582 | configure_input="$ac_file. " | |
43583 | fi | |
43584 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 43585 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
43586 | |
43587 | # First look for the input files in the build tree, otherwise in the | |
43588 | # src tree. | |
43589 | ac_file_inputs=`IFS=: | |
43590 | for f in $ac_file_in; do | |
43591 | case $f in | |
43592 | -) echo $tmp/stdin ;; | |
43593 | [\\/$]*) | |
ac1cb8d3 VS |
43594 | # Absolute (can't be DOS-style, as IFS=:) |
43595 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43596 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43597 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43598 | echo "$f";; |
a848cd7e | 43599 | *) # Relative |
ac1cb8d3 VS |
43600 | if test -f "$f"; then |
43601 | # Build tree | |
43602 | echo "$f" | |
43603 | elif test -f "$srcdir/$f"; then | |
43604 | # Source tree | |
43605 | echo "$srcdir/$f" | |
43606 | else | |
43607 | # /dev/null tree | |
43608 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43609 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43610 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43611 | fi;; |
a848cd7e SC |
43612 | esac |
43613 | done` || { (exit 1); exit 1; } | |
43614 | _ACEOF | |
43615 | cat >>$CONFIG_STATUS <<_ACEOF | |
43616 | sed "$ac_vpsub | |
43617 | $extrasub | |
43618 | _ACEOF | |
43619 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43620 | :t | |
43621 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
43622 | s,@configure_input@,$configure_input,;t t | |
43623 | s,@srcdir@,$ac_srcdir,;t t | |
43624 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
43625 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
43626 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
43627 | s,@builddir@,$ac_builddir,;t t | |
43628 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
43629 | s,@top_builddir@,$ac_top_builddir,;t t | |
43630 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
43631 | s,@INSTALL@,$ac_INSTALL,;t t | |
43632 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
43633 | rm -f $tmp/stdin | |
43634 | if test x"$ac_file" != x-; then | |
43635 | mv $tmp/out $ac_file | |
43636 | else | |
43637 | cat $tmp/out | |
43638 | rm -f $tmp/out | |
43639 | fi | |
43640 | ||
ceec2216 RL |
43641 | # Run the commands associated with the file. |
43642 | case $ac_file in | |
43643 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
43644 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
43645 | esac | |
a848cd7e SC |
43646 | done |
43647 | _ACEOF | |
43648 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43649 | ||
43650 | # | |
43651 | # CONFIG_HEADER section. | |
43652 | # | |
43653 | ||
43654 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
43655 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
43656 | # | |
43657 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
43658 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
43659 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
43660 | ac_dC=' ' |
43661 | ac_dD=',;t' | |
43662 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 43663 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
43664 | ac_uB='$,\1#\2define\3' |
43665 | ac_uC=' ' | |
43666 | ac_uD=',;t' | |
43667 | ||
43668 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
43669 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43670 | case $ac_file in | |
43671 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43672 | cat >$tmp/stdin |
43673 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43674 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43675 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43676 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43677 | * ) ac_file_in=$ac_file.in ;; |
43678 | esac | |
43679 | ||
43680 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
43681 | echo "$as_me: creating $ac_file" >&6;} | |
43682 | ||
43683 | # First look for the input files in the build tree, otherwise in the | |
43684 | # src tree. | |
43685 | ac_file_inputs=`IFS=: | |
43686 | for f in $ac_file_in; do | |
43687 | case $f in | |
43688 | -) echo $tmp/stdin ;; | |
43689 | [\\/$]*) | |
ac1cb8d3 VS |
43690 | # Absolute (can't be DOS-style, as IFS=:) |
43691 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43692 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43693 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
43694 | # Do quote $f, to prevent DOS paths from being IFS'd. |
43695 | echo "$f";; | |
a848cd7e | 43696 | *) # Relative |
ac1cb8d3 VS |
43697 | if test -f "$f"; then |
43698 | # Build tree | |
43699 | echo "$f" | |
43700 | elif test -f "$srcdir/$f"; then | |
43701 | # Source tree | |
43702 | echo "$srcdir/$f" | |
43703 | else | |
43704 | # /dev/null tree | |
43705 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43706 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43707 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43708 | fi;; |
a848cd7e SC |
43709 | esac |
43710 | done` || { (exit 1); exit 1; } | |
43711 | # Remove the trailing spaces. | |
ac1cb8d3 | 43712 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
43713 | |
43714 | _ACEOF | |
43715 | ||
43716 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
43717 | # `conftest.undefs', that substitutes the proper values into | |
43718 | # config.h.in to produce config.h. The first handles `#define' | |
43719 | # templates, and the second `#undef' templates. | |
43720 | # And first: Protect against being on the right side of a sed subst in | |
43721 | # config.status. Protect against being in an unquoted here document | |
43722 | # in config.status. | |
43723 | rm -f conftest.defines conftest.undefs | |
43724 | # Using a here document instead of a string reduces the quoting nightmare. | |
43725 | # Putting comments in sed scripts is not portable. | |
43726 | # | |
43727 | # `end' is used to avoid that the second main sed command (meant for | |
43728 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
43729 | # See the Autoconf documentation for `clear'. | |
43730 | cat >confdef2sed.sed <<\_ACEOF | |
43731 | s/[\\&,]/\\&/g | |
43732 | s,[\\$`],\\&,g | |
43733 | t clear | |
43734 | : clear | |
ac1cb8d3 | 43735 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 43736 | t end |
ac1cb8d3 | 43737 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
43738 | : end |
43739 | _ACEOF | |
43740 | # If some macros were called several times there might be several times | |
43741 | # the same #defines, which is useless. Nevertheless, we may not want to | |
43742 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
43743 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
43744 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
43745 | rm -f confdef2sed.sed | |
43746 | ||
43747 | # This sed command replaces #undef with comments. This is necessary, for | |
43748 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
43749 | # on some systems where configure will not decide to define it. | |
43750 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 43751 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
43752 | _ACEOF |
43753 | ||
43754 | # Break up conftest.defines because some shells have a limit on the size | |
43755 | # of here documents, and old seds have small limits too (100 cmds). | |
43756 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 43757 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
43758 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
43759 | echo ' :' >>$CONFIG_STATUS | |
43760 | rm -f conftest.tail | |
43761 | while grep . conftest.defines >/dev/null | |
43762 | do | |
43763 | # Write a limited-size here document to $tmp/defines.sed. | |
43764 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
43765 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 43766 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43767 | # Work around the forget-to-reset-the-flag bug. |
43768 | echo 't clr' >>$CONFIG_STATUS | |
43769 | echo ': clr' >>$CONFIG_STATUS | |
43770 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
43771 | echo 'CEOF | |
43772 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
43773 | rm -f $tmp/in | |
43774 | mv $tmp/out $tmp/in | |
43775 | ' >>$CONFIG_STATUS | |
43776 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
43777 | rm -f conftest.defines | |
43778 | mv conftest.tail conftest.defines | |
43779 | done | |
43780 | rm -f conftest.defines | |
43781 | echo ' fi # grep' >>$CONFIG_STATUS | |
43782 | echo >>$CONFIG_STATUS | |
43783 | ||
43784 | # Break up conftest.undefs because some shells have a limit on the size | |
43785 | # of here documents, and old seds have small limits too (100 cmds). | |
43786 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
43787 | rm -f conftest.tail | |
43788 | while grep . conftest.undefs >/dev/null | |
43789 | do | |
43790 | # Write a limited-size here document to $tmp/undefs.sed. | |
43791 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
43792 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 43793 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43794 | # Work around the forget-to-reset-the-flag bug. |
43795 | echo 't clr' >>$CONFIG_STATUS | |
43796 | echo ': clr' >>$CONFIG_STATUS | |
43797 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
43798 | echo 'CEOF | |
43799 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
43800 | rm -f $tmp/in | |
43801 | mv $tmp/out $tmp/in | |
43802 | ' >>$CONFIG_STATUS | |
43803 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
43804 | rm -f conftest.undefs | |
43805 | mv conftest.tail conftest.undefs | |
43806 | done | |
43807 | rm -f conftest.undefs | |
43808 | ||
43809 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43810 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
43811 | # use $as_me), people would be surprised to read: | |
43812 | # /* config.h. Generated by config.status. */ | |
43813 | if test x"$ac_file" = x-; then | |
43814 | echo "/* Generated by configure. */" >$tmp/config.h | |
43815 | else | |
43816 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
43817 | fi | |
43818 | cat $tmp/in >>$tmp/config.h | |
43819 | rm -f $tmp/in | |
43820 | if test x"$ac_file" != x-; then | |
43821 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
43822 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
43823 | echo "$as_me: $ac_file is unchanged" >&6;} | |
43824 | else | |
43825 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43826 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43827 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43828 | X"$ac_file" : 'X\(//\)$' \| \ | |
43829 | X"$ac_file" : 'X\(/\)' \| \ | |
43830 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43831 | echo X"$ac_file" | |
43832 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43833 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43834 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43835 | /^X\(\/\).*/{ s//\1/; q; } | |
43836 | s/.*/./; q'` | |
43837 | { if $as_mkdir_p; then | |
43838 | mkdir -p "$ac_dir" | |
43839 | else | |
43840 | as_dir="$ac_dir" | |
43841 | as_dirs= | |
43842 | while test ! -d "$as_dir"; do | |
43843 | as_dirs="$as_dir $as_dirs" | |
43844 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43845 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43846 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43847 | X"$as_dir" : 'X\(//\)$' \| \ | |
43848 | X"$as_dir" : 'X\(/\)' \| \ | |
43849 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43850 | echo X"$as_dir" | |
43851 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43852 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43853 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43854 | /^X\(\/\).*/{ s//\1/; q; } | |
43855 | s/.*/./; q'` | |
43856 | done | |
43857 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43858 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43859 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43860 | { (exit 1); exit 1; }; }; } | |
43861 | ||
43862 | rm -f $ac_file | |
43863 | mv $tmp/config.h $ac_file | |
43864 | fi | |
43865 | else | |
43866 | cat $tmp/config.h | |
43867 | rm -f $tmp/config.h | |
43868 | fi | |
43869 | done | |
43870 | _ACEOF | |
43871 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43872 | ||
43873 | # | |
43874 | # CONFIG_COMMANDS section. | |
43875 | # | |
43876 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
43877 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
43878 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43879 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
43880 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43881 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
43882 | X"$ac_dest" : 'X\(//\)$' \| \ | |
43883 | X"$ac_dest" : 'X\(/\)' \| \ | |
43884 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43885 | echo X"$ac_dest" | |
43886 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43887 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43888 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43889 | /^X\(\/\).*/{ s//\1/; q; } | |
43890 | s/.*/./; q'` | |
ac1cb8d3 VS |
43891 | { if $as_mkdir_p; then |
43892 | mkdir -p "$ac_dir" | |
43893 | else | |
43894 | as_dir="$ac_dir" | |
43895 | as_dirs= | |
43896 | while test ! -d "$as_dir"; do | |
43897 | as_dirs="$as_dir $as_dirs" | |
43898 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43899 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
43900 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
43901 | X"$as_dir" : 'X\(//\)$' \| \ | |
43902 | X"$as_dir" : 'X\(/\)' \| \ | |
43903 | . : '\(.\)' 2>/dev/null || | |
43904 | echo X"$as_dir" | | |
43905 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43906 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43907 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43908 | /^X\(\/\).*/{ s//\1/; q; } | |
43909 | s/.*/./; q'` | |
43910 | done | |
43911 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43912 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43913 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43914 | { (exit 1); exit 1; }; }; } | |
43915 | ||
a848cd7e SC |
43916 | ac_builddir=. |
43917 | ||
43918 | if test "$ac_dir" != .; then | |
43919 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43920 | # A "../" for each directory in $ac_dir_suffix. | |
43921 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43922 | else | |
43923 | ac_dir_suffix= ac_top_builddir= | |
43924 | fi | |
43925 | ||
43926 | case $srcdir in | |
43927 | .) # No --srcdir option. We are building in place. | |
43928 | ac_srcdir=. | |
43929 | if test -z "$ac_top_builddir"; then | |
43930 | ac_top_srcdir=. | |
43931 | else | |
43932 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43933 | fi ;; | |
43934 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43935 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43936 | ac_top_srcdir=$srcdir ;; | |
43937 | *) # Relative path. | |
43938 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43939 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43940 | esac | |
ac1cb8d3 VS |
43941 | |
43942 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43943 | # the directories may not exist. | |
43944 | case `pwd` in | |
43945 | .) ac_abs_builddir="$ac_dir";; | |
43946 | *) | |
43947 | case "$ac_dir" in | |
43948 | .) ac_abs_builddir=`pwd`;; | |
43949 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43950 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43951 | esac;; | |
43952 | esac | |
43953 | case $ac_abs_builddir in | |
43954 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43955 | *) | |
43956 | case ${ac_top_builddir}. in | |
43957 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43958 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43959 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43960 | esac;; | |
43961 | esac | |
43962 | case $ac_abs_builddir in | |
43963 | .) ac_abs_srcdir=$ac_srcdir;; | |
43964 | *) | |
43965 | case $ac_srcdir in | |
43966 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43967 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43968 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43969 | esac;; | |
43970 | esac | |
43971 | case $ac_abs_builddir in | |
43972 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43973 | *) | |
43974 | case $ac_top_srcdir in | |
43975 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43976 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43977 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43978 | esac;; | |
43979 | esac | |
a848cd7e SC |
43980 | |
43981 | ||
43982 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
43983 | echo "$as_me: executing $ac_dest commands" >&6;} | |
43984 | case $ac_dest in | |
ceec2216 RL |
43985 | wx-config ) rm -f wx-config |
43986 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
43987 | ;; | |
a848cd7e SC |
43988 | esac |
43989 | done | |
43990 | _ACEOF | |
43991 | ||
43992 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43993 | ||
43994 | { (exit 0); exit 0; } | |
43995 | _ACEOF | |
43996 | chmod +x $CONFIG_STATUS | |
43997 | ac_clean_files=$ac_clean_files_save | |
43998 | ||
43999 | ||
44000 | # configure is writing to config.log, and then calls config.status. | |
44001 | # config.status does its own redirection, appending to config.log. | |
44002 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
44003 | # by configure, so config.status won't be able to write to it; its | |
44004 | # output is simply discarded. So we exec the FD to /dev/null, | |
44005 | # effectively closing config.log, so it can be properly (re)opened and | |
44006 | # appended to by config.status. When coming back to configure, we | |
44007 | # need to make the FD available again. | |
44008 | if test "$no_create" != yes; then | |
44009 | ac_cs_success=: | |
44010 | ac_config_status_args= | |
44011 | test "$silent" = yes && | |
44012 | ac_config_status_args="$ac_config_status_args --quiet" | |
44013 | exec 5>/dev/null | |
44014 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
44015 | exec 5>>config.log | |
44016 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
44017 | # would make configure fail if this is the last instruction. | |
44018 | $ac_cs_success || { (exit 1); exit 1; } | |
44019 | fi | |
44020 | ||
44021 | # | |
44022 | # CONFIG_SUBDIRS section. | |
44023 | # | |
44024 | if test "$no_recursion" != yes; then | |
44025 | ||
44026 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
44027 | ac_sub_configure_args= | |
44028 | ac_prev= | |
44029 | for ac_arg in $ac_configure_args; do | |
44030 | if test -n "$ac_prev"; then | |
44031 | ac_prev= | |
44032 | continue | |
44033 | fi | |
44034 | case $ac_arg in | |
44035 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
44036 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
44037 | ac_prev=cache_file ;; | |
44038 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
44039 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
44040 | | --c=*) | |
44041 | ;; | |
44042 | --config-cache | -C) | |
44043 | ;; | |
44044 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
44045 | ac_prev=srcdir ;; | |
44046 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
44047 | ;; | |
44048 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
44049 | ac_prev=prefix ;; | |
44050 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
44051 | ;; | |
44052 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
44053 | esac | |
44054 | done | |
44055 | ||
44056 | # Always prepend --prefix to ensure using the same prefix | |
44057 | # in subdir configurations. | |
44058 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
44059 | ||
44060 | ac_popdir=`pwd` | |
44061 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
44062 | ||
44063 | # Do not complain, so a configure script can configure whichever | |
44064 | # parts of a large source tree are present. | |
44065 | test -d $srcdir/$ac_dir || continue | |
44066 | ||
44067 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
44068 | echo "$as_me: configuring in $ac_dir" >&6;} | |
44069 | { if $as_mkdir_p; then | |
44070 | mkdir -p "$ac_dir" | |
44071 | else | |
44072 | as_dir="$ac_dir" | |
44073 | as_dirs= | |
44074 | while test ! -d "$as_dir"; do | |
44075 | as_dirs="$as_dir $as_dirs" | |
44076 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44077 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44078 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44079 | X"$as_dir" : 'X\(//\)$' \| \ | |
44080 | X"$as_dir" : 'X\(/\)' \| \ | |
44081 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44082 | echo X"$as_dir" | |
44083 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44084 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44085 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44086 | /^X\(\/\).*/{ s//\1/; q; } | |
44087 | s/.*/./; q'` | |
44088 | done | |
44089 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44090 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44091 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44092 | { (exit 1); exit 1; }; }; } | |
44093 | ||
44094 | ac_builddir=. | |
44095 | ||
44096 | if test "$ac_dir" != .; then | |
44097 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44098 | # A "../" for each directory in $ac_dir_suffix. | |
44099 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44100 | else | |
44101 | ac_dir_suffix= ac_top_builddir= | |
44102 | fi | |
44103 | ||
44104 | case $srcdir in | |
44105 | .) # No --srcdir option. We are building in place. | |
44106 | ac_srcdir=. | |
44107 | if test -z "$ac_top_builddir"; then | |
44108 | ac_top_srcdir=. | |
44109 | else | |
44110 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44111 | fi ;; | |
44112 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44113 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44114 | ac_top_srcdir=$srcdir ;; | |
44115 | *) # Relative path. | |
44116 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44117 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44118 | esac | |
ac1cb8d3 VS |
44119 | |
44120 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44121 | # the directories may not exist. | |
44122 | case `pwd` in | |
44123 | .) ac_abs_builddir="$ac_dir";; | |
44124 | *) | |
44125 | case "$ac_dir" in | |
44126 | .) ac_abs_builddir=`pwd`;; | |
44127 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44128 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44129 | esac;; | |
44130 | esac | |
44131 | case $ac_abs_builddir in | |
44132 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44133 | *) | |
44134 | case ${ac_top_builddir}. in | |
44135 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44136 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44137 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44138 | esac;; | |
44139 | esac | |
44140 | case $ac_abs_builddir in | |
44141 | .) ac_abs_srcdir=$ac_srcdir;; | |
44142 | *) | |
44143 | case $ac_srcdir in | |
44144 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44145 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44146 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44147 | esac;; | |
44148 | esac | |
44149 | case $ac_abs_builddir in | |
44150 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44151 | *) | |
44152 | case $ac_top_srcdir in | |
44153 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44154 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44155 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44156 | esac;; | |
44157 | esac | |
a848cd7e SC |
44158 | |
44159 | ||
44160 | cd $ac_dir | |
44161 | ||
44162 | # Check for guested configure; otherwise get Cygnus style configure. | |
44163 | if test -f $ac_srcdir/configure.gnu; then | |
44164 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
44165 | elif test -f $ac_srcdir/configure; then | |
44166 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
44167 | elif test -f $ac_srcdir/configure.in; then | |
44168 | ac_sub_configure=$ac_configure | |
44169 | else | |
44170 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
44171 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
44172 | ac_sub_configure= | |
44173 | fi | |
44174 | ||
44175 | # The recursion is here. | |
44176 | if test -n "$ac_sub_configure"; then | |
44177 | # Make the cache file name correct relative to the subdirectory. | |
44178 | case $cache_file in | |
44179 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
44180 | *) # Relative path. | |
ac1cb8d3 | 44181 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
44182 | esac |
44183 | ||
44184 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
44185 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
44186 | # The eval makes quoting arguments work. | |
44187 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
44188 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
44189 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
44190 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
44191 | { (exit 1); exit 1; }; } | |
44192 | fi | |
44193 | ||
89be85c2 | 44194 | cd $ac_popdir |
a848cd7e SC |
44195 | done |
44196 | fi | |
44197 | ||
44198 | ||
44199 | echo | |
77ffb593 | 44200 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 44201 | echo "" |
4d4ff94c | 44202 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 44203 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 44204 | |
77ffb593 JS |
44205 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
44206 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
44207 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 44208 | |
77ffb593 JS |
44209 | echo " What level of wxWidgets compatibility should be enabled?" |
44210 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
44211 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 44212 | |
77ffb593 | 44213 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
44214 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
44215 | echo " png ${wxUSE_LIBPNG-none}" | |
44216 | echo " regex ${wxUSE_REGEX}" | |
44217 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
44218 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
44219 | echo " xpm ${wxUSE_LIBXPM-none}" | |
44220 | fi | |
44221 | echo " zlib ${wxUSE_ZLIB}" | |
44222 | echo " odbc ${wxUSE_ODBC}" | |
44223 | echo " expat ${wxUSE_EXPAT}" | |
44224 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
44225 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 44226 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
44227 | |
44228 | echo "" | |
44229 |